joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b450
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov edx, ebx
push esi
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40b460
sub edx, ecx
sar edx, 1
push 2
lea eax, [edx + 4]
push eax
call fcn.00466a94
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
test esi, esi
jne 0x40b48f
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 2
push 0x104
call fcn.00466a94
mov edi, eax
add esp, 8
test edi, edi
jne 0x40b4b8
push esi
call fcn.00466aaa
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor esi, esi
sub ecx, ebx
nop
movzx eax, word [ebx]
lea ebx, [ebx + 2]
mov word [ecx + ebx - 2], ax
test ax, ax
jne 0x40b4c0
mov ebx, dword [ebp - 4]
push 0x5c
push ebx
call fcn.004644e5
add esp, 8
test eax, eax
je 0x40b4e8
xor ecx, ecx
mov word [eax + 2], cx
cmp word [ebx], 0x5c
jne 0x40b510
cmp word [ebx + 2], 0x5c
jne 0x40b510
lea eax, [ebx + 4]
push 0x5c
push eax
call fcn.00464587
add esp, 8
test eax, eax
je 0x40b5b3
lea ebx, [eax + 2]
jmp 0x40b521
cmp word [ebx + 2], 0x3a
jne 0x40b521
cmp word [ebx + 4], 0x5c
jne 0x40b521
add ebx, 6
push 0x5c
push ebx
call fcn.00464587
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40b5b0
mov ecx, dword [ebp - 4]
mov eax, ebx
sub eax, ecx
sar eax, 1
push eax
push ecx
push edi
call fcn.0046801e
push edi
call fcn.004681ec
add esp, 0x10
test eax, eax
je 0x40b577
push edi
call fcn.004681f7
add esp, 4
test eax, eax
je 0x40b564
mov esi, 1
jmp 0x40b577
push edi
call fcn.004681ec
add esp, 4
test eax, eax
mov eax, 1
cmovne esi, eax
lea eax, [ebx + 2]
mov dword [ebp - 8], ebx
push 0x5c
push eax
call fcn.00464587
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40b595
mov ecx, dword [ebp - 8]
test esi, esi
je 0x40b535
mov ebx, dword [ebp - 4]
push edi
call fcn.00466aaa
push ebx
call fcn.00466aaa
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 4]
mov edx, edi
mov ecx, ebx
sub edx, ebx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40b5c0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b5d5
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x40b5f8
cmp word [edi + ecx*2 - 2], 0x5c
jne 0x40b5f8
xor eax, eax
mov word [edi + ecx*2 - 2], ax
push edi
call fcn.004681ec
add esp, 4
test eax, eax
je 0x40b598
push edi
call fcn.004681f7
add esp, 4
test eax, eax
je 0x40b61c
mov esi, 1
jmp 0x40b598
push edi
call fcn.004681ec
add esp, 4
mov ecx, 1
test eax, eax
cmovne esi, ecx
jmp 0x40b598
Function at 0x40b740
Capabilities:
Enumerate pe sections
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x4a1014]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, ecx
push edi
push 0
push 0
push 0
push ebx
call esi
push 0
lea eax, [esp + 0x24]
push eax
push 0x40
lea eax, [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b7a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00462fbd
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x40b78d
cmp eax, 0x40
jne 0x40b78d
mov eax, 0x5a4d
cmp ax, word [esp + 0x30]
jne 0x40b78d
push 0
push 0
push dword [esp + 0x74]
push ebx
call esi
push 1
xorps xmm0, xmm0
lea eax, [esp + 0x14]
push eax
movlpd qword [esp + 0x28], xmm0
push dword [esp + 0x2c]
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40b7fc
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cdq
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
cmp esi, eax
jne 0x40b78d
cmp ecx, edx
jne 0x40b78d
push 0xf8
call fcn.00462fce
add esp, 4
mov esi, eax
mov edx, esi
mov dword [esp + 0x20], esi
mov ecx, ebx
push 0xf8
call fcn.0040b660
add esp, 4
test eax, eax
je 0x40b86f
push 0xf8
push esi
call fcn.00462ffe
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00462fbd
mov esp, ebp
pop ebp
ret
movzx eax, word [esi + 6]
mov ecx, ebx
mov edi, dword [esi + 0x54]
mov dword [esp + 0x2c], eax
movzx eax, word [esi + 0x14]
cdq
add eax, dword [esp + 0x18]
adc edx, dword [esp + 0x1c]
add eax, 0x18
adc edx, 0
push edx
push eax
call fcn.0040b700
add esp, 8
mov ecx, ebx
call fcn.0040b6c0
mov ecx, eax
mov dword [esp + 0x10], edx
movzx eax, word [esi + 0x14]
cdq
add eax, dword [esp + 0x18]
adc edx, dword [esp + 0x1c]
add eax, 0x18
adc edx, 0
cmp ecx, eax
jne 0x40b91a
cmp dword [esp + 0x10], edx
jne 0x40b91a
xor esi, esi
cmp dword [esp + 0x2c], esi
jbe 0x40b8f2
nop dword [eax + eax]
push 0x28
lea edx, [esp + 0x78]
mov ecx, ebx
call fcn.0040b660
add esp, 4
test eax, eax
jne 0x40b8f2
add edi, dword [esp + 0x84]
inc esi
cmp esi, dword [esp + 0x2c]
jb 0x40b8d0
push 0xf8
push dword [esp + 0x24]
call fcn.00462ffe
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00462fbd
mov esp, ebp
pop ebp
ret
push 0xf8
push esi
call fcn.00462ffe
mov ecx, dword [esp + 0xa4]
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00462fbd
mov esp, ebp
pop ebp
ret
Function at 0x40de10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
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 [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 0x40de56
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x14], 0
lea eax, [edx + 0x3a]
mov ebx, dword [edi + 0x78]
test bl, 4
je 0x40de6d
test byte [eax], 1
je 0x40de97
and ebx, 0xfffffffb
mov dword [edi + 0x78], ebx
mov ebx, eax
mov ecx, dword [esi + 0x10]
or ecx, 0x200
mov dword [esi + 0x10], ecx
test byte [ebx], 2
je 0x40de97
mov eax, dword [edx + 0x46]
or ecx, 0x400
mov dword [esi + 0x14], eax
mov eax, ebx
mov dword [esi + 0x10], ecx
test dword [edi + 0x78], 0x400
je 0x40dea9
or ecx, 0x4000
mov dword [esi + 0x10], ecx
test byte [eax], 4
je 0x40deb7
or ecx, 0x100
mov dword [esi + 0x10], ecx
mov eax, dword [ebp + 8]
mov ebx, 1
test byte [eax + 6], 2
je 0x40dee4
or ecx, 0x80
mov word [esi + 0x20], bx
mov dword [esi + 0x10], ecx
cmp word [edi + 0x18], 3
jne 0x40dee9
mov eax, 0x2000
or word [edi + 0x7c], ax
jmp 0x40dee9
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 0x40df48
mov ecx, dword [0x4a35cc]
movsx edx, word [edx]
cmp edx, dword [ecx + 0x194]
jge 0x40df3b
mov eax, dword [ecx + 0x198]
movzx eax, word [eax + edx*2]
mov dword [ecx + 0x1a0], eax
lea edx, [eax + eax*2]
shl edx, 4
add edx, dword [ecx + 0x400]
je 0x40df3b
mov ecx, dword [edx + 0x28]
test ecx, ecx
je 0x40df3b
mov edx, dword [edx + 0xc]
call fcn.0044d1f0
jmp 0x40df3d
xor eax, eax
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x40df48
mov word [esi + 0x18], ax
cmp dword [edi + 0xcc], 0
jne 0x40df6d
or word [esi + 0x20], 2
mov eax, ebx
or dword [esi + 0x10], 8
mov ecx, dword [esi + 0x10]
movzx ecx, cx
pop edi
mov word [esi + 0x22], cx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [esi + 0x10]
pop edi
mov word [esi + 0x22], ax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427b40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4a1014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4a37cc], 0
mov ecx, dword [0x4a35d4]
push edi
mov dword [ebp - 0x48], ecx
mov dword [ecx + 0x2c], 0
lea edi, [ecx + 0x2c]
mov dword [ebp - 0x44], edi
je 0x427cab
push ebx
push esi
xor esi, esi
xor edx, edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], edx
mov eax, dword [ecx + 0x18]
xor ebx, ebx
mov ecx, dword [eax + 0x254]
movzx eax, word [edx + ecx]
test eax, eax
je 0x427c8d
cmp eax, 4
jbe 0x427bf9
cmp eax, 5
jne 0x427c8d
add esi, 0x16
lea edi, [ebx + 8]
add esi, ecx
nop dword [eax]
movzx eax, word [esi]
add ebx, ebx
cmp dword [0x4a37cc], 0
je 0x427be9
cmp dword [0x4a3428], 0
je 0x427bd7
movzx eax, al
movzx eax, byte [eax + 0x4a3430]
shl ax, 8
jmp 0x427bde
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, ax
test ax, ax
jns 0x427be9
or ebx, 1
sub esi, 2
sub edi, 1
jne 0x427bb0
mov edi, dword [ebp - 0x44]
jmp 0x427c85
lea esi, [eax - 1]
mov dword [ebp - 0x38], 0x34
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0x83
push eax
push esi
call dword [sym.imp.WINMM.dll_joyGetPosEx]
test eax, eax
jne 0x427c85
mov edx, dword [ebp - 0x30]
shl esi, 5
mov eax, dword [esi + 0x4a3608]
sub edx, eax
mov ecx, dword [esi + 0x4a360c]
sub ecx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x427c3f
mov ebx, 4
jmp 0x427c4f
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
mov eax, 8
cmovae ebx, eax
mov eax, dword [esi + 0x4a3610]
mov ecx, dword [esi + 0x4a3614]
mov edx, dword [ebp - 0x2c]
sub ecx, eax
sub edx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x427c70
or ebx, 1
jmp 0x427c7d
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
jb 0x427c7d
or ebx, 2
mov eax, dword [ebp - 0x18]
shl eax, 4
or ebx, eax
mov esi, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov byte [edi], bl
mov ecx, dword [ebp - 0x48]
add edx, 2
add esi, 0x10
mov dword [ebp - 0x3c], edx
inc edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], edi
cmp edx, 8
jl 0x427b80
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00462fbd
mov esp, ebp
pop ebp
ret
Function at 0x42f480
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 0x42f4b5
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, word [ebp - 4]
sub eax, 0
je 0x42f4ff
sub eax, 2
jne 0x42f4ac
mov eax, dword [esi]
sub eax, 0
je 0x42f4db
sub eax, 2
je 0x42f4d4
xorps xmm0, xmm0
jmp 0x42f4e4
movsd xmm0, qword [esi + 8]
jmp 0x42f4e4
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 0x42f516
sub eax, 2
je 0x42f50f
xor eax, eax
jmp 0x42f519
cvttsd2si eax, qword [esi + 8]
jmp 0x42f519
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
Function at 0x431140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
push 0
push eax
push 2
lea eax, [ebp - 4]
mov edi, ecx
push eax
push edi
mov esi, edx
call ebx
test eax, eax
je 0x4311da
cmp dword [ebp - 8], 2
jb 0x4311da
movsx eax, word [ebp - 4]
mov dword [esi], eax
sub eax, 0
je 0x4311af
sub eax, 1
je 0x4311da
sub eax, 1
jne 0x4311da
push eax
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push edi
call ebx
test eax, eax
je 0x4311da
cmp dword [ebp - 8], 8
jb 0x4311da
movsd xmm0, qword [ebp - 0x18]
mov eax, 1
movsd qword [esi + 8], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call ebx
test eax, eax
je 0x4311da
cmp dword [ebp - 8], 4
jb 0x4311da
mov eax, dword [ebp - 0xc]
mov dword [esi + 8], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442b90
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
push edi
mov edi, dword [0x4a35d4]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x44], 0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x5c], 0x3c
mov dword [ebp - 0x58], 0x440
mov dword [ebp - 0x50], str.open
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x40], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x442ca5
mov ebx, dword [ebp + 0xc]
test bl, 1
je 0x442c93
call fcn.00425ae0
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
and ebx, 2
je 0x442c32
push 0
push dword [edi + 0x10]
call esi
mov eax, dword [edi + 0x4c4]
test eax, eax
je 0x442c32
push 0
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x442c70
cmp dword [ebp + 8], 0x103
jne 0x442c70
xor edx, edx
lea ecx, [ebp - 0x20]
call fcn.004014a0
push 0x4ff
push 0xc8
push 0
push 0
push 0
call edi
jmp 0x442c38
test bx, bx
je 0x442c8e
mov edi, dword [ebp - 4]
push 5
push dword [edi + 0x10]
call esi
mov eax, dword [edi + 0x4c4]
test eax, eax
je 0x442c8e
push 5
push eax
call esi
call fcn.00425be0
push dword [ebp - 0x24]
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 0x44acf0
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.0044ad60
Function at 0x456650
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
mov byte [ebp - 1], 0
xor edi, edi
lea ecx, [ebp - 0x10]
push edi
push ecx
push 1
lea ecx, [ebp - 1]
mov eax, edx
push ecx
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4566d9
cmp byte [ebp - 1], 0
je 0x4566d4
push dword [ebx + 0x2ac]
mov edx, dword [ebx + 0x44]
mov ecx, ebx
push edi
call fcn.00455b10
mov ecx, dword [ebx + 0x2a4]
add esp, 8
test ecx, ecx
je 0x4566d9
call fcn.00401410
mov ecx, dword [ebx + 0x2a4]
xor edx, edx
mov esi, eax
call fcn.00404e80
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 8]
mov dword [ebp - 8], edi
call fcn.004311f0
mov ecx, esi
mov edi, eax
call fcn.00401410
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x457c70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [0x4a35d4]
mov dword [ebp - 8], ecx
xor ecx, ecx
mov dword [ebp - 4], edx
test ebx, ebx
jne 0x457c90
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
cmp edx, 0x100
jne 0x457cdb
cmp dword [ebp + 8], 9
jne 0x457d36
cmp dword [ebx + 0x518], ecx
jle 0x457d36
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, ebx
test ax, ax
js 0x457cc6
call fcn.00433b50
jmp 0x457ccb
call fcn.00433d10
test eax, eax
je 0x457d31
pop edi
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret
cmp edx, 5
jne 0x457d36
mov eax, dword [ebx + 0x18]
test byte [eax + 0x14], 0x10
je 0x457d36
cmp byte [ebx + 0x4c8], cl
je 0x457d36
mov esi, dword [ebx + 0x1278]
xor edi, edi
cmp dword [ebx + 0x3c], ecx
jle 0x457d36
nop
mov eax, dword [esi]
test eax, eax
jne 0x457d10
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x457d06
test byte [eax + 0x7c], 4
jne 0x457d28
test dword [eax + 0x78], 0x2b0
je 0x457d28
push eax
mov eax, dword [eax + 0x8c]
call eax
inc edi
add esi, 8
cmp edi, dword [ebx + 0x3c]
jl 0x457d00
mov edx, dword [ebp - 4]
xor ecx, ecx
movsx eax, word [ebx + 0x1d8]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x457d73
xor esi, esi
test eax, eax
jle 0x457d73
lea edi, [ebx + 0x1dc]
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
push edx
push dword [ebp - 8]
push ebx
call eax
movsx ecx, ax
test cl, 0x5c
jne 0x457d73
mov edx, dword [ebp - 4]
inc esi
add edi, 4
cmp esi, dword [ebp - 0xc]
jl 0x457d50
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457d80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [0x4a35a8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov dword [ebp - 4], eax
test eax, eax
je 0x457da7
push 0
push dword [0x4a35a8]
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 [0x4a35a8]
call ebx
mov esi, eax
test esi, esi
je 0x457df7
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 0x457de0
mov eax, dword [0x4a35cc]
cmp dword [eax + 0x1fc], 0
jne 0x457e4e
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 0x457e4e
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 0x457e30
push dword [0x4a35a4]
call dword [sym.imp.MMFS2.dll_Ordinal_35]
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x457e71
push 5
push dword [0x4a35a8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x4589c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4a1014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x4a35cc]
push edi
mov ax, word [esi + 0x14]
mov word [esi + 0x1f8], ax
push dword [0x4a35a8]
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
setne al
mov byte [esi + 0x3d1], al
push dword [0x4a35a8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x458a5b
push 1
push dword [0x4a35a8]
call edi
push dword [0x4a35ac]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x458a34
push 1
push dword [0x4a35ac]
call edi
mov ax, word [esi + 0x14]
mov ecx, 0x180
and ax, cx
mov ecx, 0x100
cmp ax, cx
jne 0x458a56
call fcn.00459800
mov byte [esi + 0x3d1], 1
call fcn.004579e0
mov dword [esi + 0x20c], 0
lea eax, [esi + 0x208]
mov dword [esi + 0x210], 0
mov dword [esi + 0x214], 0
mov dword [esi + 0x218], 0
mov dword [esi + 0x21c], 0
mov dword [esi + 0x220], 0
mov dword [esi + 0x224], 0
mov dword [esi + 0x228], 0
mov dword [esi + 0x22c], 0
mov dword [esi + 0x230], 0
push eax
mov dword [eax], 0x2c
push dword [0x4a35a8]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
push dword [0x4a35a8]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x458af2
push 1
push dword [0x4a35a8]
call edi
mov ax, word [esi + 0x14]
mov ecx, 0xfefe
and ax, cx
mov ecx, 0x82
or ax, cx
test byte [esi + 0x1f8], 0x10
mov word [esi + 0x14], ax
jne 0x458b9a
mov ecx, dword [0x4a35d0]
test ecx, ecx
je 0x458b76
movsx eax, word [esi + 0x1c]
cmp dword [ecx], eax
jl 0x458b76
movsx eax, word [esi + 0x1e]
cmp dword [ecx + 4], eax
jl 0x458b76
push 2
push dword [0x4a35a8]
call dword [sym.imp.USER32.dll_MonitorFromWindow]
test eax, eax
je 0x458b76
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x28
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x458b76
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x28]
movsx eax, word [esi + 0x1c]
cmp eax, ecx
jne 0x458b76
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
movsx eax, word [esi + 0x1e]
cmp eax, ecx
je 0x458b9a
or word [esi + 0x14], 0x14
push dword [0x4a35a4]
call dword [sym.imp.MMFS2.dll_Ordinal_16]
movzx eax, ax
or eax, 2
push eax
push dword [0x4a35a4]
call dword [sym.imp.MMFS2.dll_Ordinal_17]
call fcn.00457b20
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x458bcf
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x458bcf
push 8
push 0x401
push dword [esi + 0xb0]
call dword [sym.imp.USER32.dll_CheckMenuItem]
call fcn.00459a40
call fcn.004579e0
call fcn.00457600
push 3
push dword [0x4a35a8]
call edi
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push dword [0x4a35ac]
call esi
push 1
push 0
push dword [0x4a35a8]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [0x4a35e0], 1
pop esi
call fcn.00462fbd
mov esp, ebp
pop ebp
ret
Function at 0x459b00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
push edi
xor edi, edi
mov dword [ebp - 4], ecx
test esi, esi
je 0x459bd8
mov eax, dword [ebp + 8]
nop dword [eax]
cmp ax, word [esi + 2]
jne 0x459b72
test byte [esi], 0x10
je 0x459b31
test ebx, ebx
jne 0x459b35
jmp 0x459b72
test ebx, ebx
jne 0x459b72
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test byte [esi], 8
cwde
je 0x459b49
test eax, eax
jns 0x459b6f
jmp 0x459b4d
test eax, eax
js 0x459b6f
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [esi]
cwde
test cl, 4
je 0x459b63
test eax, eax
jns 0x459b6b
jmp 0x459b67
test eax, eax
js 0x459b6b
movzx edi, word [esi + 4]
test edi, edi
jne 0x459b7c
mov eax, dword [ebp + 8]
cmp byte [esi], 0
jl 0x459bd8
add esi, 8
jmp 0x459b20
test cl, 0x40
je 0x459baf
cmp edi, 0x7d0
jl 0x459bb7
mov esi, dword [ebp - 4]
push 0
movzx eax, di
or eax, 0x10000
push eax
push 0x111
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0x7d0
jl 0x459b89
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
je 0x459bd8
push 0
push edi
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x459bd8
test al, 1
je 0x459b8c
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x459c40
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x4a1014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
xor eax, eax
mov word [edi], ax
lea eax, [esi - 0x60]
cmp eax, 9
ja 0x459c8f
push 0x3f
lea edx, [ebp - 0x84]
mov ecx, 0x65
call fcn.004587b0
lea eax, [esi - 0x60]
push eax
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x459cd4
lea eax, [esi - 0x70]
cmp eax, 0x17
ja 0x459cac
lea eax, [esi - 0x6f]
push eax
push 0x492904
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x459cd4
xor ecx, ecx
nop
cmp dword [ecx*8 + 0x48fac0], esi
je 0x459cc1
inc ecx
cmp ecx, 0x14
jl 0x459cb0
jmp 0x459cd4
mov ecx, dword [ecx*8 + 0x48fac4]
mov edx, edi
push 0x3f
call fcn.004587b0
add esp, 4
cmp word [edi], 0
jne 0x459cec
push 2
xor eax, eax
push esi
mov word [edi + 2], ax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [edi], ax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00462fbd
mov esp, ebp
pop ebp
ret