joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x489161
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x489145
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x489097
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x489075
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x489ba9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x489c00
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x489c00
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x489c00
xor eax, eax
inc eax
jmp 0x489c02
xor eax, eax
leave
ret 0x10
Function at 0x489c2b
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x489c99
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x4f3f64
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x489c90
cmp dword [ebp - 0xc], 4
jne 0x489c90
cmp dword [ebp - 0x10], edi
je 0x489c90
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x51a008], edi
xor eax, eax
jmp 0x489cd8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x51a008], edi
jge 0x489cd3
lea eax, [ebp - 0x34]
push eax
mov dword [0x51a008], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x489cd3
cmp word [ebp - 0x14], 5
jb 0x489cd3
call fcn.00489c06
test eax, eax
je 0x489cd3
emms
mov dword [0x51a008], 1
mov eax, dword [0x51a008]
pop edi
leave
ret

Function at 0x4ab408
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ab440
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a94d9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a94b1
jmp 0x4ab44c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4acaf9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4acb3b
call fcn.004b247b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4acb3b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4acb32
xor eax, eax
jmp 0x4acb43
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004acb49
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b29ab
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b29d9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b29f7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b2911
jmp 0x4b29f7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b29f7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b2911
test edi, edi
mov eax, edi
jne 0x4b29e1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4013d0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x47c21e
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4a05d0]
xor eax, esp
mov dword [esp + 0x24c], eax
mov eax, dword [0x4a05d0]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
push 0
mov ecx, 0x4a5980
mov dword [esp + 8], 0x4a5980
call fcn.0043a854
mov dword [esp + 0x25c], 0
push 0x4a5a24
mov dword [0x4a5980], 0x485f24
call fcn.0042b2a0
push 0x485fe4
mov ecx, 0x4a68b0
mov byte [esp + 0x260], 1
call fcn.0040a630
push 0x485fe4
mov ecx, 0x4a68b4
mov byte [esp + 0x260], 2
call fcn.0040a630
xor eax, eax
push 0x206
mov byte [esp + 0x260], 3
push eax
lea ecx, [esp + 0x52]
push ecx
mov dword [0x4a68ac], 0
mov dword [0x4a68a8], 0
mov word [esp + 0x54], ax
call fcn.0045db90
xor edx, edx
push 0x3e
push edx
lea eax, [esp + 0x1e]
push eax
mov word [esp + 0x20], dx
call fcn.0045db90
add esp, 0x18
lea ecx, [esp + 0x48]
push ecx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x485264
lea edx, [esp + 0x4c]
push 0x104
push edx
call fcn.00459b8e
add esp, 0xc
lea eax, [esp + 0x48]
push eax
push 0x20
lea ecx, [esp + 0x10]
push ecx
push 0x485fe4
push 0x4852a0
call fcn.00413560
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edx, edx
cmp dx, word [esp + 8]
je 0x40151b
lea eax, [esp + 8]
push eax
push 0x20
push 0x4a1ac0
call fcn.00459b1f
add esp, 0xc
mov eax, 0x4a5980
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.004597c7
add esp, 0x25c
ret
Function at 0x403fc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x234
mov eax, dword [0x4a05d0]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [0x4857b0]
mov ecx, dword [str.stallTag]
mov edx, dword [0x4857b8]
mov dword [esp], eax
mov eax, dword [0x4857bc]
mov dword [esp + 4], ecx
mov ecx, dword [0x4857c0]
mov dword [esp + 0xc], eax
xor eax, eax
push 0x206
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edx
mov dx, word [0x4857c4]
push eax
lea ecx, [esp + 0x32]
push ecx
mov word [esp + 0x20], dx
mov dword [esp + 0x24], 0x31
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov word [esp + 0x34], ax
call fcn.0045db90
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x485264
lea eax, [esp + 0x2c]
push 0x104
push eax
call fcn.00459b8e
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 8]
push eax
call fcn.00413560
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.004597c7
add esp, 0x234
ret
Function at 0x404640
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x350
mov eax, dword [0x4a05d0]
xor eax, esp
mov dword [esp + 0x34c], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x15a]
push ecx
xor esi, esi
mov word [esp + 0x15c], ax
call fcn.0045db90
add esp, 0xc
xor edx, edx
push 0x3e
push edx
lea eax, [esp + 0xda]
push eax
mov word [esp + 0xdc], dx
call fcn.0045db90
add esp, 0xc
xor ecx, ecx
push 0x3e
push ecx
lea edx, [esp + 0x11a]
push edx
mov word [esp + 0x11c], cx
call fcn.0045db90
mov edi, dword [esp + 0x370]
add esp, 0xc
jmp dword [edi*4 + 0x404dc8]

Function at 0x404df0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x47b24b
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x4a05d0]
xor eax, esp
mov dword [esp + 0x290], eax
push esi
mov eax, dword [0x4a05d0]
xor eax, esp
push eax
lea eax, [esp + 0x29c]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x9a]
push ecx
mov word [esp + 0x9c], ax
call fcn.0045db90
xor edx, edx
push 0x7e
push edx
lea eax, [esp + 0x26]
push eax
mov word [esp + 0x28], dx
call fcn.0045db90
add esp, 0x18
push 0x104
lea ecx, [esp + 0x94]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x90]
push 0x5c
push edx
call fcn.00459ccc
add eax, 2
push eax
lea eax, [esp + 0x1c]
push 0x40
push eax
call fcn.00459b1f
add esp, 0x14
push str.Software4399GameLogin_
lea ecx, [esp + 0xc]
call fcn.0040a630
mov esi, eax
mov dword [esp + 0x2a4], 0
call fcn.00413560
push eax
lea ecx, [esp + 0x10]
push esi
push ecx
call fcn.00408c50
mov eax, dword [eax]
add esp, 0xc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404ef0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2a4], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404f1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
push str.SOFTWAREMicrosoftInternet_ExplorerMAINFeatureControlFEATURE_BROWSER_EMULATION
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
xor eax, eax
mov ecx, dword [esp + 0x29c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.004597c7
add esp, 0x2a0
ret
Function at 0x405270
Capabilities:
Create process on windows
Get common file path
Self delete

Disassembly:
sub esp, 0xd88
mov eax, dword [0x4a05d0]
xor eax, esp
mov dword [esp + 0xd80], eax
push esi
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0045db90
add esp, 0xc
lea edx, [esp + 0x168]
push edx
xor ecx, ecx
push 0x104
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x4c], 1
mov word [esp + 0x50], cx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x168]
push eax
push 0
push str.DelSelf
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push str..bat
lea edx, [esp + 0x16c]
push 0x104
push edx
call fcn.0045ae18
add esp, 0xc
push 0x104
lea eax, [esp + 0x64]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x405460
lea ecx, [esp + 0x60]
push 0x5c
push ecx
call fcn.0045ae90
add esp, 8
test eax, eax
je 0x405338
lea edx, [esp + 0x60]
sub eax, edx
push eax
mov eax, edx
push eax
push 0x104
lea ecx, [esp + 0x27c]
push ecx
jmp 0x40535c
lea eax, [esp + 0x60]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405340
sub eax, edx
push eax
lea edx, [esp + 0x64]
push edx
push 0x104
lea eax, [esp + 0x27c]
push eax
call fcn.0045aebd
add esp, 0x10
push 0x104
lea ecx, [esp + 0x37c]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x27c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0x378]
push eax
call fcn.004179f0
add esp, 4
cmp eax, 1
push 0
jle 0x4053ca
lea ecx, [esp + 0x16c]
push ecx
lea edx, [esp + 0x68]
push edx
mov eax, edx
push eax
push 1
push str.cd_r_n:delexe_r_nping__n__d_127.0.0.1_r_ndel___s__r_nif_exist___s__goto_:delexe_r_ndel___s__r_n
lea ecx, [esp + 0x598]
push 0x800
push ecx
call fcn.0045af72
add esp, 0x20
jmp 0x405401
lea edx, [esp + 0x16c]
push edx
lea eax, [esp + 0x278]
push eax
mov ecx, eax
push ecx
lea edx, [esp + 0x70]
push edx
mov eax, edx
push eax
push 1
push str.cd_r_n:delexe_r_nping__n__d_127.0.0.1_r_ndel___s__r_nif_exist___s__goto_:delexe_r_ndel___s___Q__F__A_r_nrd___s__r_ndel___s__r_n
lea ecx, [esp + 0x5a0]
push 0x800
push ecx
call fcn.0045af72
add esp, 0x28
lea edx, [esp + 0x580]
push edx
lea eax, [esp + 0x16c]
call fcn.00405480
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x188]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405460
mov eax, dword [esp + 0xc]
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
mov ecx, dword [esp + 0xd84]
pop esi
xor ecx, esp
call fcn.004597c7
add esp, 0xd88
ret
Function at 0x405480
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push 0
push 0
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4054a6
or eax, eax
pop esi
pop ecx
ret 4
mov eax, dword [esp + 0xc]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4054b0
push ebx
push ebp
push edi
push 2
push 0
push 0
sub eax, edx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x4054f7
call ebp
mov ebx, eax
test ebx, ebx
je 0x4054f7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebp
pop ebx
or eax, 0xffffffff
pop esi
pop ecx
ret 4
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40552c
call ebp
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebp
pop ebx
or eax, 0xffffffff
pop esi
pop ecx
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 4
Function at 0x406420
Capabilities:
Create thread

Disassembly:
sub esp, 0x14
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [esp + 0x10]
push edx
push 0x406470
push 0
push 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [esi + 0xf28]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0xf28]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, 1
add esp, 0x14
ret
Function at 0x406770
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x270
mov eax, dword [0x4a05d0]
xor eax, esp
mov dword [esp + 0x268], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x6a]
push ecx
mov word [esp + 0x6c], ax
call fcn.0045db90
add esp, 0xc
test esi, esi
jne 0x4067b8
push 0x104
lea edx, [esp + 0x64]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x4067cb
push esi
lea eax, [esp + 0x64]
push 0x104
push eax
call fcn.00459b1f
add esp, 0xc
push 0x44
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.0045db90
add esp, 0xc
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x40
push 0
push 0
mov edx, 1
mov word [esp + 0x64], dx
push 0
lea edx, [esp + 0x80]
push edx
push 0
mov dword [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40682c
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov ecx, dword [esp + 0x26c]
pop esi
xor ecx, esp
call fcn.004597c7
add esp, 0x270
ret

Function at 0x406850
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x406870
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x407060
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x479a38
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a05d0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x24]
mov eax, dword [eax - 0xc]
lea edi, [eax + eax]
lea ebp, [edi + 2]
push ebp
call fcn.00439af0
add esp, 4
push ebp
mov esi, eax
push ebx
push esi
call fcn.0045db90
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x4070c8
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x28]
call fcn.0040a380
mov eax, dword [esp + 0x24]
push edi
push eax
push esi
call fcn.0045f9a0
mov edx, dword [esp + 0x38]
add esp, 0xc
push edx
mov byte [esi + edi], bl
mov byte [esi + edi + 1], bl
mov ebx, dword [esp + 0x2c]
push esi
mov ecx, edi
call fcn.00406d00
push esi
call fcn.00439ae5
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40711c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x407440
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4a05d0]
xor eax, esp
mov dword [esp + 0x108], eax
xor eax, eax
push 0xfe
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.0045db90
add esp, 0xc
push str.IsWow64Process
push str.kernel32
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4a5668], eax
test eax, eax
je 0x4074a7
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x4a5668]
cmp dword [esp], 0
je 0x4074be
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionRun
push 0x80
lea eax, [esp + 0x10]
push eax
jmp 0x4074cd
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80
lea ecx, [esp + 0x10]
push ecx
call fcn.00459b1f
add esp, 0xc
cmp dword [esp + 0x110], 0
lea edx, [esp + 4]
push edx
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x10]
push 0
je 0x40753f
push 0x20006
push 0
push 0
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x407571
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407510
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
push edx
push esi
push 1
push 0
call fcn.00413560
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp]
push ecx
jmp 0x40756b
push 2
push 0
push 0
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x407571
call fcn.00413560
mov edx, dword [esp]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004597c7
add esp, 0x10c
ret

Function at 0x40a100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40a119
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a154
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40a150
lea ebx, [ebx]
cmp esi, eax
jae 0x40a154
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40a140
cmp esi, eax
jb 0x40a15a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40ad90
Capabilities:
Get graphical window text
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
mov edi, ecx
call fcn.0041b9e0
mov eax, dword [edi + 0x3d8]
mov ecx, dword [edi + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 1
push 0x80
push ecx
call esi
mov edx, dword [edi + 0x3d8]
mov eax, dword [edi + 0x20]
push edx
push 0
push 0x80
push eax
call esi
mov ecx, dword [0x4a59c4]
push 0
push ecx
push 0x40a9c0
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4a56f4], eax
lea eax, [edi + 0xe64]
push eax
mov dword [eax], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
call fcn.0040ae70
mov ecx, edi
call fcn.0040b2b0
cmp dword [edi + 0x1900], 0
mov edx, dword [edi + 0xf84]
mov dword [0x4a5694], edx
je 0x40ae3f
lea esi, [edi + 0x18e0]
push 5
mov ecx, esi
call fcn.0043fbc1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00443a23
push eax
mov ecx, esi
call fcn.0044334b
mov eax, dword [edi + 0x20]
push 0
push 0xea60
push 8
push eax
call dword [sym.imp.USER32.dll_SetTimer]
call fcn.00411460
mov dword [edi + 0x1068], eax
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b400
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x2a8
mov eax, dword [0x4a05d0]
xor eax, esp
mov dword [esp + 0x2a0], eax
push esi
xor eax, eax
push 0x23e
push eax
lea ecx, [esp + 0x6a]
push ecx
mov word [esp + 0x6c], ax
call fcn.0045db90
add esp, 0xc
push 0x104
lea edx, [esp + 0x64]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x486350
lea eax, [esp + 0x64]
push 0x120
push eax
call fcn.00459b8e
push 0x44
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.0045db90
add esp, 0x18
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x40
push 0
push 0
mov edx, 1
mov word [esp + 0x64], dx
push 0
lea edx, [esp + 0x80]
push edx
push 0
mov dword [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40b4b6
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov ecx, dword [esp + 0x2a4]
pop esi
xor ecx, esp
call fcn.004597c7
add esp, 0x2a8
ret