joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46840f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x468447
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.004664c6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046649e
jmp 0x468453
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x469b09
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 0x469b4b
call fcn.0046f67e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x469b4b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x469b42
xor eax, eax
jmp 0x469b53
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00469b59
pop edi
pop esi
pop ebx
ret 4

Function at 0x46fbae
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 0x46fbdc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46fbfa
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046fb14
jmp 0x46fbfa
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46fbfa
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046fb14
test edi, edi
mov eax, edi
jne 0x46fbe4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401970
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 0x4019ba
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 0x4019d5
test byte [eax], 1
je 0x401a0c
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 0x401a0c
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 0x401a1e
or ecx, 0x4000
mov dword [esi + 0x10], ecx
test byte [eax], 4
je 0x401a2c
or ecx, 0x100
mov dword [esi + 0x10], ecx
mov eax, dword [ebp + 8]
test byte [eax + 6], 2
je 0x401a59
or ecx, 0x80
mov eax, 1
mov dword [esi + 0x10], ecx
mov word [esi + 0x20], ax
cmp word [edi + 0x18], 3
jne 0x401a5e
mov eax, 0x2000
or word [edi + 0x7c], ax
jmp 0x401a5e
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 0x401ac3
mov ecx, dword [0x4b00b4]
movsx edx, word [edx]
cmp edx, dword [ecx + 0x194]
jge 0x401ab6
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 0x401ab6
mov ecx, dword [edx + 0x24]
test ecx, ecx
je 0x401ab6
mov edx, dword [edx + 0xc]
call fcn.00437260
jmp 0x401ab8
xor eax, eax
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x401ac3
mov word [esi + 0x18], ax
cmp dword [edi + 0xcc], 0
jne 0x401aea
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 0x402c10
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 0x402c44
cmp dword [eax + 0x1fc], 0
jne 0x402de0
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 0x402dc8
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 0x402d7c
mov ecx, dword [0x4afe9c]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x402cc3
mov eax, dword [ecx + 4]
mov dword [ebp - 8], eax
test eax, eax
je 0x402cc3
lea eax, [ebp - 8]
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_536]
push esi
push eax
call edi
test eax, eax
jne 0x402d7c
cmp dword [ebp - 8], eax
je 0x402cc3
mov ecx, dword [0x4afe9c]
jmp 0x402ca0
mov eax, dword [0x4b00b4]
test eax, eax
je 0x402d6e
mov ecx, 0x4000
test word [eax + 0x16], cx
je 0x402d6e
push dword [0x4b0088]
call dword [sym.imp.MMFS2.dll_Ordinal_19]
test eax, eax
je 0x402d07
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 0x402d18
cmp eax, 0x104
jne 0x402d68
mov edi, dword [esi + 8]
cmp edi, 0x10
je 0x402d68
cmp edi, 0x11
je 0x402d68
mov ecx, dword [0x4b00b4]
test ecx, ecx
je 0x402d68
mov ecx, dword [ecx + 0xb4]
test ecx, ecx
je 0x402d68
cmp eax, 0x104
je 0x402d4f
mov eax, 0x2000
test word [esi + 0xe], ax
jne 0x402d4f
xor edx, edx
jmp 0x402d54
mov edx, 1
push ecx
mov ecx, dword [0x4b0090]
push edi
call fcn.00453ea0
add esp, 8
test eax, eax
jne 0x402d7c
cmp dword [ebp - 4], 0
jne 0x402d7c
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 0x402daa
test al, 1
je 0x402d90
cmp dword [esi + 4], 0x111
je 0x402dc7
test al, 2
je 0x402d9d
cmp dword [esi + 4], 0x201
je 0x402dc7
test al, 4
je 0x402daa
cmp dword [esi + 4], 0x202
je 0x402dc7
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 0x402c70
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 0x408030
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 0x408040
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 4]
push eax
call fcn.00474099
mov ebx, eax
add esp, 8
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x408101
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 0x408070
push 0x5c
push ebx
call fcn.00471866
add esp, 8
test eax, eax
je 0x408095
xor ecx, ecx
mov word [eax + 2], cx
cmp word [ebx], 0x5c
jne 0x4080be
cmp word [ebx + 2], 0x5c
jne 0x4080be
lea eax, [ebx + 4]
push 0x5c
push eax
call fcn.00471908
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4080e1
push 0x5c
lea eax, [ebx + 2]
push eax
jmp 0x4080d7
cmp word [ebx + 2], 0x3a
jne 0x4080d4
cmp word [ebx + 4], 0x5c
jne 0x4080d4
push 0x5c
lea eax, [ebx + 6]
push eax
jmp 0x4080d7
push 0x5c
push ebx
call fcn.00471908
add esp, 8
mov ebx, eax
push 2
push 0x104
call fcn.00474099
mov esi, eax
add esp, 8
test esi, esi
jne 0x40810b
push dword [ebp - 4]
call fcn.004740af
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 0x408178
mov eax, ebx
sub eax, ecx
sar eax, 1
push eax
push ecx
push esi
call fcn.0047791d
push esi
call fcn.00477ac7
add esp, 0x10
test eax, eax
je 0x408154
push esi
call fcn.00477ad2
add esp, 4
test eax, eax
je 0x408141
mov edi, 1
jmp 0x408154
push esi
call fcn.00477ac7
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.00471908
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4081ec
mov ecx, dword [ebp - 8]
test edi, edi
je 0x408112
jmp 0x4081ec
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 0x408180
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408195
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x4081b8
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x4081b8
xor eax, eax
mov word [esi + ecx*2 - 2], ax
push esi
call fcn.00477ac7
add esp, 4
test eax, eax
je 0x4081ec
push esi
call fcn.00477ad2
add esp, 4
test eax, eax
je 0x4081d9
mov edi, 1
jmp 0x4081ec
push esi
call fcn.00477ac7
add esp, 4
mov ecx, 1
test eax, eax
cmovne edi, ecx
push esi
call fcn.004740af
push dword [ebp - 4]
call fcn.004740af
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408a00
Capabilities:
Set current directory

Disassembly:
mov eax, dword [0x4b0240]
test eax, eax
je 0x408a33
cmp dword [0x4b023c], 0
je 0x408a22
push eax
mov ecx, 0x4b0398
call fcn.00465470
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 0x408a70
push 0x5c
push eax
call fcn.00471866
add esp, 8
test eax, eax
je 0x408a70
mov edx, dword [0x4afe64]
mov ecx, eax
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jae 0x408a64
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x408a69
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 0x408b5d
cmp word [edi], 0
je 0x408b54
xor esi, esi
push edi
call fcn.0047529a
add esp, 4
test eax, eax
je 0x408ab9
call fcn.00477cea
cmp dword [eax], 2
je 0x408ab9
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jl 0x408a93
jmp 0x408b26
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408ac0
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 1]
push eax
call fcn.00474099
mov esi, eax
add esp, 8
test esi, esi
je 0x408b26
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 0x408af0
push 0x5c
push esi
call fcn.00471866
add esp, 8
test eax, eax
je 0x408b1d
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.00477cfd
add esp, 4
push esi
call fcn.004740af
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 0x408b30
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], ax
jne 0x408a91
mov edi, dword [0x4afe5c]
push edi
call fcn.004740af
add esp, 4
mov edx, dword [0x4afe58]
test edx, edx
je 0x408bca
xor esi, esi
nop dword [eax]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408b75
sub ecx, edi
sar ecx, 1
cmp ecx, 3
jle 0x408b98
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x408b98
xor eax, eax
mov word [edx + ecx*2 - 2], ax
push edx
call fcn.00477cfd
add esp, 4
test eax, eax
je 0x408bc4
call fcn.00477cea
cmp dword [eax], 2
je 0x408bc4
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jge 0x408bc4
mov edx, dword [0x4afe58]
jmp 0x408b70
mov edx, dword [0x4afe58]
push edx
call fcn.004740af
push dword [0x4afe64]
mov dword [0x4afe58], 0
call fcn.004740af
add esp, 8
mov dword [0x4afe64], 0
pop edi
pop esi
pop ebx
ret
Function at 0x412200
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 0x412324
mov ebx, dword [ebp + 0xc]
test bl, 1
je 0x412312
call fcn.0042d970
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
and ebx, 2
je 0x4122a3
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 0x4122a3
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 0x4122e8
cmp dword [ebp + 8], 0x103
jne 0x4122e8
xor edx, edx
lea ecx, [ebp - 0x1c]
call fcn.00402c10
push 0x4ff
push 0xc8
push 0
push 0
push 0
call edi
jmp 0x4122b0
test bx, bx
je 0x41230d
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 0x41230d
push 5
push eax
call esi
call fcn.0042da80
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 0x426100
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 0x426168
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 0x426130
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 0x426f00
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.00474099
mov esi, eax
add esp, 8
test esi, esi
je 0x42702a
push edi
push 2
push 0x104
call fcn.00474099
mov edi, eax
add esp, 8
test edi, edi
je 0x426f5d
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.004740af
add esp, 4
cmp word [esi], bx
je 0x42701b
push esi
call fcn.0047529a
mov ecx, esi
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426f74
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
je 0x426fa3
lea edi, [esi - 2]
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x426f90
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 0x426fb0
sub ecx, edx
sar ecx, 1
lea edi, [ecx*2 + 4]
push edi
call fcn.0047408e
mov edx, eax
add esp, 4
test edx, edx
jne 0x426fe5
call fcn.0047d520
push edi
call fcn.0047408e
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 0x426ff0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call fcn.004740af
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.004740af
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f7b0
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 0x42f8f2
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 0x42f8d4
cmp esi, 4
jbe 0x42f845
cmp eax, 5
jne 0x42f8d4
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 0x42f835
or ebx, 1
sub esi, 2
sub edi, 1
jne 0x42f821
mov edi, dword [ebp - 0x44]
jmp 0x42f8cf
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 0x42f8cf
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 0x42f889
mov ebx, 4
jmp 0x42f899
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 0x42f8ba
or ebx, 1
jmp 0x42f8c7
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
jb 0x42f8c7
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 0x42f7f0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004705b7
mov esp, ebp
pop ebp
ret

Function at 0x4346b0
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.00434720
Function at 0x443680
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 2
push 0x104
mov esi, ecx
call fcn.00474099
mov edi, eax
add esp, 8
test edi, edi
je 0x4436c6
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp + 8]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
mov esi, eax
call fcn.004740af
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x444840
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [0x4b00bc]
mov dword [ebp - 8], ecx
xor ecx, ecx
mov dword [ebp - 4], edx
test edi, edi
jne 0x444860
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
cmp edx, 0x100
jne 0x4448b7
cmp dword [ebp + 8], 9
jne 0x44491c
cmp dword [edi + 0x518], ecx
jle 0x44491c
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [0x4b00bc]
test ax, ax
js 0x44489a
call fcn.00452b40
jmp 0x44489f
call fcn.00452d00
test eax, eax
je 0x4448af
pop esi
pop ebx
mov eax, 4
pop edi
mov esp, ebp
pop ebp
ret
mov edi, dword [0x4b00bc]
jmp 0x444917
cmp edx, 5
jne 0x44491c
mov eax, dword [0x4b00b4]
test byte [eax + 0x14], 0x10
je 0x44491c
cmp byte [edi + 0x4c8], cl
je 0x44491c
mov esi, dword [edi + 0x1278]
xor ebx, ebx
cmp dword [edi + 0x3c], ecx
jle 0x44491c
nop dword [eax]
mov eax, dword [esi]
test eax, eax
jne 0x4448f0
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x4448e6
test byte [eax + 0x7c], 4
jne 0x44490e
test dword [eax + 0x78], 0x2b0
je 0x44490e
push eax
mov eax, dword [eax + 0x8c]
call eax
mov edi, dword [0x4b00bc]
inc ebx
add esi, 8
cmp ebx, dword [edi + 0x3c]
jl 0x4448e0
mov edx, dword [ebp - 4]
xor ecx, ecx
movsx eax, word [edi + 0x1d8]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x444959
xor esi, esi
test eax, eax
jle 0x444959
lea ebx, [edi + 0x1dc]
push dword [ebp + 0xc]
mov eax, dword [ebx]
push dword [ebp + 8]
push edx
push dword [ebp - 8]
push edi
call eax
movsx ecx, ax
test cl, 0x5c
jne 0x444959
mov edx, dword [ebp - 4]
inc esi
add ebx, 4
cmp esi, dword [ebp - 0xc]
jl 0x444936
pop esi
pop ebx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x444a50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [0x4b0090]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov dword [ebp - 4], eax
test eax, eax
je 0x444a77
push 0
push dword [0x4b0090]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push esi
push edi
push 0x304
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_RedrawWindow]
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
push 0
push dword [0x4b0090]
call ebx
mov esi, eax
test esi, esi
je 0x444ac7
nop dword [eax + eax]
push 0x100
push 0
push 0
push esi
call edi
push 2
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x444ab0
mov eax, dword [0x4b00b4]
cmp dword [eax + 0x1fc], 0
jne 0x444b1e
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
lea eax, [ebp - 0x20]
push 1
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x444b1e
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop dword [eax]
lea eax, [ebp - 0x20]
push eax
call edi
lea eax, [ebp - 0x20]
push eax
call ebx
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x444b00
push dword [0x4b008c]
call dword [sym.imp.MMFS2.dll_Ordinal_35]
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x444b41
push 5
push dword [0x4b0090]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x44ab30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, edx
push edi
push 0
mov edi, ecx
movzx eax, word [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push edi
call ebx
test eax, eax
jne 0x44ab65
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, word [ebp - 4]
sub eax, 0
je 0x44abaf
sub eax, 2
jne 0x44ab5c
mov eax, dword [esi]
sub eax, 0
je 0x44ab8b
sub eax, 2
je 0x44ab84
xorps xmm0, xmm0
jmp 0x44ab94
movsd xmm0, qword [esi + 8]
jmp 0x44ab94
movd xmm0, dword [esi + 8]
cvtdq2pd xmm0, xmm0
push 0
lea eax, [ebp - 8]
movsd qword [ebp - 0x18], xmm0
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push edi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
sub eax, 0
je 0x44abc6
sub eax, 2
je 0x44abbf
xor eax, eax
jmp 0x44abc9
cvttsd2si eax, qword [esi + 8]
jmp 0x44abc9
mov eax, dword [esi + 8]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret