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

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret
Function at 0x408e7a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
mov dword [ebp - 0x14], ebx
mov esi, ecx
push ebx
push 0x4011e0
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0x417888
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x408ef9
mov ecx, dword [ebp - 8]
mov byte [ebp - 0x14], bl
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x408ebe
push dword [ebp - 0x14]
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 8]
lea ecx, [ebp - 0x30]
call fcn.0040ab33
add esp, 0xc
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x18]
push eax
call fcn.00408c64
pop ecx
xor ecx, ecx
inc ecx
cmp dword [eax], 3
jne 0x408efc
jmp 0x408efe
mov ecx, dword [ebp - 0x14]
mov bl, 1
test cl, 1
je 0x408f0b
lea ecx, [ebp - 0x30]
call fcn.00409f74
mov ecx, esi
test bl, bl
je 0x408f18
push 0x406dcc
jmp 0x408f1b
push dword [ebp - 8]
call fcn.00409e33
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b323
leave
ret

Function at 0x40913d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x44], 0x417888
push edi
xor edi, edi
mov dword [ebp - 0x48], edi
cmp dword [ebx + 0x10], edi
je 0x4091f2
lea edx, [ebp - 0x48]
call fcn.00408c33
test al, al
je 0x4091f2
push 0x44
pop esi
push esi
lea eax, [ebp - 0x90]
push edi
push eax
call fcn.0040d000
xor eax, eax
mov dword [ebp - 0x90], esi
lea edi, [ebp - 0xa0]
add esp, 0xc
cmp dword [ebx + 0x14], 8
mov esi, 0x406dd0
stosd dword es:[edi], eax
push 0xf
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
jb 0x4091b1
mov ebx, dword [ebx]
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x90]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4091f2
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4091f4
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b323
leave
ret
Function at 0x409936
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0xc]
lea ecx, [ebp - 0x6c]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push ecx
push 0x20019
push ebx
movzx eax, al
push 0x406e10
sub eax, 0x7fffffff
mov dword [ebp - 0x6c], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409998
push 0x406dcc
mov ecx, esi
call fcn.00409e33
cmp dword [ebp - 0x6c], ebx
je 0x409a40
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409a40
push edi
push 0x64
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], ebx
push ebx
push eax
call fcn.0040d000
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push 0x406db8
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409a25
mov edi, dword [ebp - 0x74]
test edi, edi
je 0x409a25
cmp dword [ebp - 0x70], 1
jne 0x409a25
shr edi, 1
cmp edi, 0x32
jae 0x409a25
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push 0x406db8
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [edi + edi]
mov edx, eax
cmp word [ebp + ecx - 0x6a], bx
je 0x409a16
lea eax, [edi + 1]
cmp eax, 0x32
jae 0x409a16
cmp ecx, 0x64
jae 0x409a52
xor eax, eax
mov word [ebp + ecx - 0x68], ax
lea eax, [ebp - 0x68]
test edx, edx
je 0x409a22
mov eax, 0x406dcc
push eax
jmp 0x409a2a
push 0x406dcc
mov ecx, esi
call fcn.00409e33
cmp dword [ebp - 0x6c], ebx
je 0x409a3f
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b323
leave
ret 8
call fcn.0040b453
int3

Function at 0x416610
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41663d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41663d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401950
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov esi, dword [edi + 0xbc]
mov eax, dword [ecx + 0x14]
add esi, edi
mov edx, dword [edi + 0x1c]
mov dword [ebp - 0xc], edx
mov dword [esi + 8], eax
mov eax, dword [ecx + 0x18]
mov ecx, 1
mov dword [esi + 0xc], eax
mov eax, 0x100
mov dword [esi + 0x10], 1
test word [edi + 0x94], ax
jne 0x40199a
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x78]
mov dword [ebp - 8], eax
lea eax, [edx + 0x3a]
test byte [ebp - 8], 4
je 0x4019b5
test byte [eax], 1
je 0x4019ec
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
and eax, 0xfffffffb
mov dword [edi + 0x78], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 4]
or ecx, 0x200
mov edx, eax
mov dword [esi + 0x10], ecx
test byte [edx], 2
mov edx, dword [ebp - 0xc]
je 0x4019ec
mov eax, dword [edx + 0x46]
or ecx, 0x400
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x10], ecx
test dword [edi + 0x78], 0x400
je 0x4019fe
or ecx, 0x4000
mov dword [esi + 0x10], ecx
test byte [eax], 4
je 0x401a0c
or ecx, 0x100
mov dword [esi + 0x10], ecx
mov eax, dword [ebp + 8]
test byte [eax + 6], 2
je 0x401a39
or ecx, 0x80
mov eax, 1
mov dword [esi + 0x10], ecx
mov word [esi + 0x20], ax
cmp word [edi + 0x18], 3
jne 0x401a3e
mov eax, 0x2000
or word [edi + 0x7c], ax
jmp 0x401a3e
or word [esi + 0x20], 0x20
mov ecx, dword [edx + 0x3c]
mov dword [esi + 0x18], ecx
mov eax, dword [edx + 0x40]
mov dword [esi + 0x1c], eax
cmp cx, 0xd
jne 0x401aa3
mov ecx, dword [0x4b00b4]
movsx edx, word [edx]
cmp edx, dword [ecx + 0x194]
jge 0x401a96
mov eax, dword [ecx + 0x198]
movzx eax, word [eax + edx*2]
mov dword [ecx + 0x1a0], eax
mov eax, dword [0x4b00b4]
imul edx, dword [eax + 0x1a0], 0x2c
add edx, dword [eax + 0x400]
je 0x401a96
mov ecx, dword [edx + 0x24]
test ecx, ecx
je 0x401a96
mov edx, dword [edx + 0xc]
call fcn.004371f0
jmp 0x401a98
xor eax, eax
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x401aa3
mov word [esi + 0x18], ax
cmp dword [edi + 0xcc], 0
jne 0x401aca
or word [esi + 0x20], 2
mov eax, 1
or dword [esi + 0x10], 8
mov ecx, dword [esi + 0x10]
movzx ecx, cx
pop edi
mov word [esi + 0x22], cx
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, word [esi + 0x10]
mov word [esi + 0x22], ax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402c00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov dword [ebp - 0xc], edx
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], 0
mov eax, dword [0x4b00b4]
test eax, eax
je 0x402c34
cmp dword [eax + 0x1fc], 0
jne 0x402dd0
push 0
push 0
push 0
push 0
push esi
mov dword [0x4aff6c], 0
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x402db8
push edi
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageW]
nop dword [eax]
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x402d6c
mov ecx, dword [0x4afe9c]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x402cb3
mov eax, dword [ecx + 4]
mov dword [ebp - 8], eax
test eax, eax
je 0x402cb3
lea eax, [ebp - 8]
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_536]
push esi
push eax
call edi
test eax, eax
jne 0x402d6c
cmp dword [ebp - 8], eax
je 0x402cb3
mov ecx, dword [0x4afe9c]
jmp 0x402c90
mov eax, dword [0x4b00b4]
test eax, eax
je 0x402d5e
mov ecx, 0x4000
test word [eax + 0x16], cx
je 0x402d5e
push dword [0x4b0088]
call dword [sym.imp.MMFS2.dll_Ordinal_19]
test eax, eax
je 0x402cf7
push esi
push eax
call dword [sym.imp.USER32.dll_TranslateMDISysAccel]
mov ecx, dword [ebp - 4]
test eax, eax
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 4], ecx
mov eax, dword [esi + 4]
cmp eax, 0x100
je 0x402d08
cmp eax, 0x104
jne 0x402d58
mov edi, dword [esi + 8]
cmp edi, 0x10
je 0x402d58
cmp edi, 0x11
je 0x402d58
mov ecx, dword [0x4b00b4]
test ecx, ecx
je 0x402d58
mov ecx, dword [ecx + 0xb4]
test ecx, ecx
je 0x402d58
cmp eax, 0x104
je 0x402d3f
mov eax, 0x2000
test word [esi + 0xe], ax
jne 0x402d3f
xor edx, edx
jmp 0x402d44
mov edx, 1
push ecx
mov ecx, dword [0x4b0090]
push edi
call fcn.00453db0
add esp, 8
test eax, eax
jne 0x402d6c
cmp dword [ebp - 4], 0
jne 0x402d6c
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x402d9a
test al, 1
je 0x402d80
cmp dword [esi + 4], 0x111
je 0x402db7
test al, 2
je 0x402d8d
cmp dword [esi + 4], 0x201
je 0x402db7
test al, 4
je 0x402d9a
cmp dword [esi + 4], 0x202
je 0x402db7
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x402c60
pop edi
push 0
call dword [sym.imp.USER32.dll_GetKeyState]
push 0x4aff70
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov dword [0x4aff6c], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407fe0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea edx, [ecx + 2]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407ff0
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 4]
push eax
call fcn.00473fa9
mov ebx, eax
add esp, 8
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x4080b1
mov ecx, ebx
sub ecx, esi
nop
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x408020
push 0x5c
push ebx
call fcn.00471776
add esp, 8
test eax, eax
je 0x408045
xor ecx, ecx
mov word [eax + 2], cx
cmp word [ebx], 0x5c
jne 0x40806e
cmp word [ebx + 2], 0x5c
jne 0x40806e
lea eax, [ebx + 4]
push 0x5c
push eax
call fcn.00471818
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x408091
push 0x5c
lea eax, [ebx + 2]
push eax
jmp 0x408087
cmp word [ebx + 2], 0x3a
jne 0x408084
cmp word [ebx + 4], 0x5c
jne 0x408084
push 0x5c
lea eax, [ebx + 6]
push eax
jmp 0x408087
push 0x5c
push ebx
call fcn.00471818
add esp, 8
mov ebx, eax
push 2
push 0x104
call fcn.00473fa9
mov esi, eax
add esp, 8
test esi, esi
jne 0x4080bb
push dword [ebp - 4]
call fcn.00473fbf
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
test ebx, ebx
je 0x408128
mov eax, ebx
sub eax, ecx
sar eax, 1
push eax
push ecx
push esi
call fcn.0047782d
push esi
call fcn.004779d7
add esp, 0x10
test eax, eax
je 0x408104
push esi
call fcn.004779e2
add esp, 4
test eax, eax
je 0x4080f1
mov edi, 1
jmp 0x408104
push esi
call fcn.004779d7
add esp, 4
test eax, eax
mov eax, 1
cmovne edi, eax
lea eax, [ebx + 2]
mov dword [ebp - 8], ebx
push 0x5c
push eax
call fcn.00471818
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40819c
mov ecx, dword [ebp - 8]
test edi, edi
je 0x4080c2
jmp 0x40819c
mov edx, esi
sub edx, dword [ebp - 4]
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x408130
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408145
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x408168
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x408168
xor eax, eax
mov word [esi + ecx*2 - 2], ax
push esi
call fcn.004779d7
add esp, 4
test eax, eax
je 0x40819c
push esi
call fcn.004779e2
add esp, 4
test eax, eax
je 0x408189
mov edi, 1
jmp 0x40819c
push esi
call fcn.004779d7
add esp, 4
mov ecx, 1
test eax, eax
cmovne edi, ecx
push esi
call fcn.00473fbf
push dword [ebp - 4]
call fcn.00473fbf
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4089b0
Capabilities:
Set current directory

Disassembly:
mov eax, dword [0x4b0240]
test eax, eax
je 0x4089e3
cmp dword [0x4b023c], 0
je 0x4089d2
push eax
mov ecx, 0x4b0398
call fcn.00465380
mov eax, dword [0x4b0240]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4b0240], 0
mov eax, dword [0x4afe64]
test eax, eax
je 0x408a20
push 0x5c
push eax
call fcn.00471776
add esp, 8
test eax, eax
je 0x408a20
mov edx, dword [0x4afe64]
mov ecx, eax
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jae 0x408a14
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x408a19
xor ecx, ecx
mov word [eax], cx
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
mov edi, dword [0x4afe5c]
test edi, edi
je 0x408b0d
cmp word [edi], 0
je 0x408b04
xor esi, esi
push edi
call fcn.004751aa
add esp, 4
test eax, eax
je 0x408a69
call fcn.00477bfa
cmp dword [eax], 2
je 0x408a69
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jl 0x408a43
jmp 0x408ad6
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408a70
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 1]
push eax
call fcn.00473fa9
mov esi, eax
add esp, 8
test esi, esi
je 0x408ad6
mov edx, esi
mov ecx, edi
sub edx, edi
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x408aa0
push 0x5c
push esi
call fcn.00471776
add esp, 8
test eax, eax
je 0x408acd
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.00477c0d
add esp, 4
push esi
call fcn.00473fbf
add esp, 4
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408ae0
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], ax
jne 0x408a41
mov edi, dword [0x4afe5c]
push edi
call fcn.00473fbf
add esp, 4
mov edx, dword [0x4afe58]
test edx, edx
je 0x408b7a
xor esi, esi
nop dword [eax]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408b25
sub ecx, edi
sar ecx, 1
cmp ecx, 3
jle 0x408b48
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x408b48
xor eax, eax
mov word [edx + ecx*2 - 2], ax
push edx
call fcn.00477c0d
add esp, 4
test eax, eax
je 0x408b74
call fcn.00477bfa
cmp dword [eax], 2
je 0x408b74
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jge 0x408b74
mov edx, dword [0x4afe58]
jmp 0x408b20
mov edx, dword [0x4afe58]
push edx
call fcn.00473fbf
push dword [0x4afe64]
mov dword [0x4afe58], 0
call fcn.00473fbf
add esp, 8
mov dword [0x4afe64], 0
pop edi
pop esi
pop ebx
ret
Function at 0x4121e0
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push edi
push eax
mov dword [ebp - 0x50], 0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], 0x440
mov dword [ebp - 0x4c], str.open
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x412304
mov ebx, dword [ebp + 0xc]
test bl, 1
je 0x4122f2
call fcn.0042d8c0
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
and ebx, 2
je 0x412283
mov eax, dword [0x4b00bc]
push 0
push dword [eax + 0x10]
call esi
mov eax, dword [0x4b00bc]
mov eax, dword [eax + 0x4c4]
test eax, eax
je 0x412283
push 0
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
nop dword [eax]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4122c8
cmp dword [ebp + 8], 0x103
jne 0x4122c8
xor edx, edx
lea ecx, [ebp - 0x1c]
call fcn.00402c00
push 0x4ff
push 0xc8
push 0
push 0
push 0
call edi
jmp 0x412290
test bx, bx
je 0x4122ed
mov eax, dword [0x4b00bc]
push 5
push dword [eax + 0x10]
call esi
mov eax, dword [0x4b00bc]
mov eax, dword [eax + 0x4c4]
test eax, eax
je 0x4122ed
push 5
push eax
call esi
call fcn.0042d9d0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x426050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0xc], ecx
xor esi, esi
mov ecx, dword [eax + 0x404]
mov ebx, dword [eax + 0x400]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
push edi
test edx, edx
jle 0x4260b8
nop word [eax + eax]
inc bl
movzx ebx, bl
mov edx, dword [eax + ebx*4]
mov cl, dl
add cl, byte [ebp - 4]
mov eax, dword [ebp - 8]
movzx ecx, cl
mov dword [ebp - 4], ecx
mov edi, dword [ebp - 4]
mov ecx, dword [eax + ecx*4]
mov dword [eax + ebx*4], ecx
mov dword [eax + edi*4], edx
add dl, cl
movzx ecx, dl
mov edx, dword [ebp - 0xc]
mov cl, byte [eax + ecx*4]
xor byte [esi + edx], cl
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x426080
mov ecx, edi
pop edi
mov dword [eax + 0x400], ebx
pop esi
mov dword [eax + 0x404], ecx
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426e50
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 2
push 0x104
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00473fa9
mov esi, eax
add esp, 8
test esi, esi
je 0x426f7a
push edi
push 2
push 0x104
call fcn.00473fa9
mov edi, eax
add esp, 8
test edi, edi
je 0x426ead
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push ebx
push 0x4ae054
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
call fcn.00473fbf
add esp, 4
cmp word [esi], bx
je 0x426f6b
push esi
call fcn.004751aa
mov ecx, esi
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426ec4
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
je 0x426ef3
lea edi, [esi - 2]
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x426ee0
mov eax, dword [0x49d3f4]
mov dword [edi], eax
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426f00
sub ecx, edx
sar ecx, 1
lea edi, [ecx*2 + 4]
push edi
call fcn.00473f9e
mov edx, eax
add esp, 4
test edx, edx
jne 0x426f35
call fcn.0047d430
push edi
call fcn.00473f9e
add esp, 4
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, esi
mov dword [eax], edx
sub edx, esi
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x426f40
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call fcn.00473fbf
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov ebx, 0xe
call fcn.00473fbf
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f750
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4acca0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [0x4b00bc]
add edi, 0x2c
cmp dword [0x4b03a8], 0
mov dword [ebp - 0x44], edi
mov dword [edi], 0
je 0x42f892
push ebx
push esi
xor esi, esi
xor edx, edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], edx
nop dword [eax]
mov eax, dword [0x4b00b4]
xor ebx, ebx
mov ecx, dword [eax + 0x254]
movzx eax, word [esi + ecx]
mov esi, eax
test esi, esi
je 0x42f874
cmp esi, 4
jbe 0x42f7e5
cmp eax, 5
jne 0x42f874
lea esi, [ecx + 0x16]
add esi, edx
lea edi, [ebx + 8]
movzx eax, word [esi]
add ebx, ebx
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x42f7d5
or ebx, 1
sub esi, 2
sub edi, 1
jne 0x42f7c1
mov edi, dword [ebp - 0x44]
jmp 0x42f86f
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x34
push eax
dec esi
mov dword [ebp - 0x34], 0x83
push esi
call dword [sym.imp.WINMM.dll_joyGetPosEx]
test eax, eax
jne 0x42f86f
mov edx, dword [ebp - 0x30]
shl esi, 5
mov eax, dword [esi + 0x4b00f0]
sub edx, eax
mov ecx, dword [esi + 0x4b00f4]
sub ecx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x42f829
mov ebx, 4
jmp 0x42f839
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
mov eax, 8
cmovae ebx, eax
mov eax, dword [esi + 0x4b00f8]
mov ecx, dword [esi + 0x4b00fc]
mov edx, dword [ebp - 0x2c]
sub ecx, eax
sub edx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x42f85a
or ebx, 1
jmp 0x42f867
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
jb 0x42f867
or ebx, 2
mov eax, dword [ebp - 0x18]
shl eax, 4
or ebx, eax
mov edx, dword [ebp - 0x3c]
mov byte [edi], bl
mov esi, dword [ebp - 0x40]
add edx, 0x10
add esi, 2
mov dword [ebp - 0x3c], edx
inc edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], edi
cmp edx, 0x40
jl 0x42f790
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004704c7
mov esp, ebp
pop ebp
ret

Function at 0x434650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x60]
mov edx, dword [esi + 0x54]
mov dword [esi + 0x104], ecx
sub ecx, dword [esi + 0x58]
add eax, ecx
mov dword [esi + 0x108], edx
sub edx, dword [esi + 0x5c]
mov dword [esi + 0x120], eax
mov eax, dword [esi + 0x64]
add eax, edx
mov dword [esi + 0x118], ecx
mov dword [esi + 0x124], eax
mov ecx, esi
mov eax, dword [esi + 0xdc]
mov dword [esi + 0x10c], eax
mov eax, dword [esi + 0xe8]
mov dword [esi + 0x11c], edx
mov edx, 1
mov dword [esi + 0x110], eax
pop esi
pop ebp
jmp fcn.004346c0