joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413670
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ebx, edx
push edi
mov edi, dword [esp + 0x14]
mov dh, cl
xor eax, eax
mov byte [esp + 0xf], dh
mov word [edi], ax
test dh, dh
jne 0x4136dc
test bx, bx
je 0x413775
movzx ecx, bx
movzx eax, bx
sub ecx, 0x45
je 0x4136d4
sub ecx, 0xf1
je 0x4136ae
sub ecx, 0xf
jne 0x4136b1
movzx eax, bl
test eax, 0x100
je 0x4136c0
movzx eax, al
or eax, 0xe000
push 3
movzx eax, ax
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dh, al
mov byte [esp + 0xf], dh
jmp 0x413716
mov dh, 0x13
mov byte [esp + 0xf], dh
jmp 0x413716
test bx, bx
jne 0x413716
cmp dh, 0xd
je 0x4136fb
mov dl, 1
mov cl, dh
call fcn.00413780
mov dh, byte [esp + 0xf]
movzx ebx, ax
test bx, bx
jne 0x413716
xor dl, dl
mov cl, dh
call fcn.00413780
mov dh, byte [esp + 0xf]
movzx eax, ax
mov byte [esp + 0xf], dh
mov ebx, eax
test ax, ax
je 0x41375a
cmp dh, 0x9c
jb 0x413720
cmp dh, 0x9f
jbe 0x41375a
xor eax, eax
cmp word [eax*8 + 0x4d78dc], bx
je 0x413739
inc eax
cmp eax, 0xd
jl 0x413722
xor eax, eax
mov word [edi], ax
jmp 0x41375a
push esi
lea esi, [ebp - 1]
push esi
push dword [eax*8 + 0x4d78d8]
push edi
call fcn.0049fc44
add esp, 0xc
xor eax, eax
mov word [edi + esi*2], ax
pop esi
cmp word [edi], ax
jne 0x413775
mov cl, byte [esp + 0xf]
mov edx, edi
push 0
push ebp
call fcn.00412e80
add esp, 8
cmp word [eax], 0
mov eax, dword [esp + 0x1c]
je 0x413777
mov eax, edi
pop edi
pop ebp
pop ebx
pop ecx
ret

Function at 0x413780
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
movzx esi, cl
mov bl, dl
mov eax, esi
sub eax, 0x13
je 0x413826
sub eax, 0x19
je 0x413814
sub eax, 0x64
je 0x413802
push 4
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
movzx ecx, ax
test cx, cx
jne 0x4137b2
pop esi
xor eax, eax
pop ebx
ret
test ecx, 0xe000
je 0x4137c3
movzx ecx, cl
or ecx, 0x100
add esi, 0xfffffff3
cmp esi, 0x94
ja case.0x4137d5.14
movzx eax, byte [esi + 0x413844]
jmp dword [eax*4 + 0x413838]
movzx eax, cx
mov ecx, eax
or ecx, 0x100
test bl, bl
pop esi
cmovne eax, ecx
pop ebx
ret
or ecx, 0x100
xor eax, eax
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x145
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x137
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
mov ecx, 0x45
xor eax, eax
movzx ecx, cx
test bl, bl
pop esi
cmove eax, ecx
pop ebx
ret

Function at 0x4138e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4dd700], ecx
mov eax, 1
nop dword [eax + eax]
mov ecx, dword [eax*4 + 0x4dd6fc]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul ecx, edx, 0x6c078965
add ecx, eax
mov dword [eax*4 + 0x4dd700], ecx
inc eax
cmp eax, 0x270
jl 0x4138f0
mov dword [0x4da9bc], 1
mov dword [0x4de0c0], 1
ret
Function at 0x413930
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4de0c0], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x4dd700
jne 0x41394f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.004138e0
mov eax, dword [0x4dd700]
mov ebx, 0xe3
mov dword [0x4da9bc], 0x270
mov dword [0x4de0c4], 0x4dd700
nop dword [eax]
mov edi, dword [esi + 4]
mov ecx, edi
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi + 0x634]
mov dword [esi], ecx
add esi, 4
sub ebx, 1
jne 0x413970
mov ebp, 0x18c
nop word [eax + eax]
mov ebx, dword [esi + 4]
lea esi, [esi + 4]
mov ecx, ebx
mov eax, ebx
xor ecx, edi
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, edi
mov edi, ebx
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x390]
mov dword [esi - 4], ecx
sub ebp, 1
jne 0x4139b0
mov eax, dword [0x4dd700]
mov ecx, ebx
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, ebx
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
pop ebp
pop ebx
ret
Function at 0x4285e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], 0
mov dword [esp + 4], eax
mov edx, ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x2c], str.What
mov dword [esp + 8], eax
mov ecx, 0x4b431c
lea eax, [esp + 0x4c]
mov dword [esp + 0x30], 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xac]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xbc]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
test eax, eax
push esi
cmovne ecx, eax
mov dword [esp + 0x48], 0
movzx eax, word [edx + 2]
mov esi, 8
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x58], 0
mov eax, dword [eax*4 + 0x4dccf4]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x50], 0x4cc078
mov dword [esp + 0x54], 4
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x78], 0
mov dword [esp + 0x70], str.Line
mov dword [esp + 0x74], 4
mov dword [esp + 0x88], 1
mov dword [esp + 0x84], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x90], str.Message
mov dword [esp + 0x94], 7
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa4], 0xffffffff
test eax, eax
je 0x428789
cmp word [eax], 0
je 0x428789
mov esi, 0xa
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb0], str.Extra
mov dword [esp + 0xb4], 5
mov dword [esp + 0xc8], 0
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], 0xffffffff
push 0
mov edx, esi
lea ecx, [esp + 0xc]
call fcn.0046f360
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x429db0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4004
call fcn.004ac150
push ebx
mov ebx, dword [esp + 0x400c]
push ebp
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x429e9d
mov esi, dword [esp + 0x4024]
test esi, esi
jne 0x429df3
mov esi, dword [edi + 0x644]
test esi, esi
jne 0x429df3
mov ecx, dword [edi + 0x27c]
movzx eax, word [edi + 0x280]
jmp 0x429dfb
movzx ecx, word [esi + 2]
movzx eax, word [esi + 4]
push dword [esp + 0x401c]
movzx eax, ax
push eax
push dword [ecx*4 + 0x4dccf4]
lea eax, [esp + 0x1c]
push str._s___d__:___Warning:__s_n
push 0x2000
push eax
call fcn.0047a7e0
mov ebp, dword [esp + 0x4038]
mov edx, eax
add esp, 0x18
add edx, edx
cmp word [ebp], 0
je 0x429e57
mov ecx, edx
mov eax, 0x2000
push ebp
sar ecx, 1
sub eax, ecx
push str._____Specifically:__s_n
push eax
lea eax, [esp + 0x1c]
add eax, edx
push eax
call fcn.0047a7e0
add esp, 0x10
lea eax, [esp + 0x10]
cmp ebx, 3
jne 0x429e7c
push 0x4c9e84
push 0
push eax
mov ecx, edi
call fcn.00428900
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4004
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebx, 2
jne 0x429e9d
push esi
push 1
push ebp
push dword [esp + 0x4028]
mov ecx, 0x4dcd68
call fcn.00428b60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4004
ret 0x10
Function at 0x42a660
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x3cc
push ebx
mov ebx, dword [esp + 0x3d4]
push ebp
push esi
push edi
mov ebp, ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x42a690
push 0x64
lea ecx, [esp + 0x114]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42a69a
xor eax, eax
mov word [esp + 0x110], ax
mov esi, dword [0x4dd3f0]
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x42a758
nop
cmp byte [esi + 0x11], 0
je 0x42a6f3
push 0
push 0x4dac94
push 0x4dac48
push 0
push dword [esi]
call fcn.004acf9d
add esp, 0x14
test eax, eax
je 0x42a6d7
mov eax, dword [eax + 0x14]
jmp 0x42a6de
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x20]
push eax
push 0x4cca70
lea eax, [esp + 0x18]
push 0x7d
push eax
call fcn.0047a830
add esp, 0x10
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x42a6b0
cmp word [esp + 0x10], si
je 0x42a758
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42a710
sub ecx, edx
sar ecx, 1
cmp ecx, 0x7b
jbe 0x42a749
mov esi, 0x7f
lea edi, [esp + 0x10]
sub esi, ecx
lea edi, [edi + ecx*2]
push esi
push 0x4c7074
push edi
call fcn.0049fc44
add esp, 0xc
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x42a758
cmp word [esp + ecx*2 + 0xe], 0x20
jne 0x42a758
xor eax, eax
mov word [esp + ecx*2 + 0xe], ax
mov eax, dword [0x4dbc48]
cmp byte [eax + 0x50], 0
je 0x42a773
cmp byte [0x4dd435], 0
jne 0x42a773
mov esi, 1
jmp 0x42a775
xor esi, esi
mov eax, dword [0x4dbc60]
cmp eax, 1
jle 0x42a784
lea edi, [eax - 1]
jmp 0x42a786
xor edi, edi
mov cl, 1
call fcn.00412810
lea edx, [esp + 0x1d8]
mov cl, al
call fcn.00412bb0
mov ecx, dword [0x4dbc60]
mov edx, 0x4b431c
push eax
push dword [0x4dbc74]
mov eax, dword [0x4dbc50]
push ecx
sub eax, esi
cmp ecx, 1
push eax
mov eax, str.__preempted:_they_will_resume_when_the_current_thread_finishes_
mov ecx, 0x4c5c88
cmovle eax, edx
cmp dword [0x4dbeac], 0
push eax
push edi
lea eax, [esp + 0x28]
mov edx, 0x4c5c80
push eax
push dword [0x4dd3f8]
mov eax, ecx
push dword [0x4dd3fc]
cmovne eax, edx
cmp dword [0x4dbeb0], 0
push eax
cmovne ecx, edx
lea eax, [esp + 0x138]
push ecx
push eax
push str.Window:__s_r_nKeybd_hook:__s_r_nMouse_hook:__s_r_nEnabled_Timers:__u_of__u___s__r_nInterrupted_threads:__d_s_r_nPaused_threads:__d_of__d___d_layers__r_nModifiers__GetKeyState___now____s_r_n
push 0xfffe
push ebx
call fcn.0047a7e0
add eax, eax
mov edi, 0xfffe
add ebx, eax
add esp, 0x3c
sar eax, 1
mov edx, edi
sub edx, eax
mov ecx, ebx
call fcn.004099d0
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42a830
sub ecx, edx
mov eax, str._r_nPress__F5__to_refresh.
sar ecx, 1
cmp dword [0x4dbc80], 0
lea esi, [ebx + ecx*2]
mov ecx, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
cmove eax, ecx
push eax
mov eax, esi
sub eax, ebp
sar eax, 1
sub edi, eax
push edi
push esi
call fcn.0047a7e0
add esp, 0xc
lea eax, [esi + eax*2]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3cc
ret 8
Function at 0x42ce20
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x134
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov eax, dword [ebx]
mov edi, dword [esp + 0x148]
cmp eax, 5
ja case.0x42ce3e.1
jmp dword [eax*4 + 0x42d018]
mov eax, str.Timeout
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 8
mov eax, str.Match
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 8
test edi, edi
je 0x42cfce
movzx eax, word [ebx + 0x48]
test ax, ax
je 0x42ce95
mov word [edi], ax
xor eax, eax
mov word [edi + 2], ax
mov eax, str.EndKey
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 8
cmp byte [ebx + 0x4b], 0
je 0x42cf44
push 0x100
lea eax, [esp + 0x44]
push 0
push eax
call fcn.004956d0
add esp, 0xc
mov byte [esp + 0x50], 0x80
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test eax, eax
je 0x42cef7
mov ebp, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call ebp
mov esi, eax
mov dword [esp + 0x10], 0x30
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x42cef7
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42cef7
push 0
push eax
call ebp
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov cl, byte [ebx + 0x45]
push eax
xor eax, eax
cmp dword [0x4dbc4c], eax
setne al
xor dl, dl
push eax
push 2
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.00413780
movzx eax, ax
push eax
movzx eax, byte [ebx + 0x45]
push eax
call dword [sym.imp.USER32.dll_ToUnicodeEx]
xor ecx, ecx
mov word [edi + eax*2], cx
mov eax, str.EndKey
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 8
mov ebp, dword [esp + 0x14c]
xor eax, eax
mov word [edi], ax
cmp byte [ebx + 0x4a], al
je 0x42cf8f
movzx ecx, word [ebx + 0x46]
nop dword [eax]
cmp word [eax*8 + 0x4d78dc], cx
je 0x42cf72
inc eax
cmp eax, 0xd
jl 0x42cf60
jmp 0x42cf99
lea esi, [ebp - 1]
push esi
push dword [eax*8 + 0x4d78d8]
push edi
call fcn.0049fc44
add esp, 0xc
xor eax, eax
mov word [edi + esi*2], ax
movzx eax, word [edi]
movzx eax, ax
mov ecx, eax
test ax, ax
jne 0x42cfb5
cmp byte [ebx + 0x4a], 0
mov edx, edi
mov cl, byte [ebx + 0x45]
sete al
movzx eax, al
push eax
push ebp
call fcn.00412e80
movzx ecx, word [edi]
add esp, 8
test cx, cx
jne 0x42cfce
movzx eax, word [ebx + 0x46]
push eax
push str.sc_03X
push ebp
push edi
call fcn.0047a7e0
add esp, 0x10
mov eax, str.EndKey
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 8
mov eax, 0x4c835c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 8
mov eax, str.Stopped
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 8
pop edi
pop esi
pop ebp
mov eax, 0x4b431c
pop ebx
add esp, 0x134
ret 8
Function at 0x432060
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c6c
call fcn.004ac150
push ebx
push ebp
push esi
mov ebp, edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x1020], 0x4b431c
xorps xmm0, xmm0
mov dword [esp + 0x1850], 0
mov dword [esp + 0x1854], 0
mov dword [esp + 0x1860], 0
mov dword [esp + 0x1864], 0
mov byte [esp + 0x183d], 1
push edi
mov edi, ecx
movups xmmword [esp + 0x1844], xmm0
cmp ebp, 6
jne 0x432139
push 0x20
call fcn.00493fe8
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
xor ecx, ecx
mov ebx, dword [0x4dd608]
mov dword [esi + 4], 1
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0x4de0f8
mov dword [esi + 8], 0
mov dword [esi], vtable.Array.0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
test ebx, ebx
je 0x432125
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x43212f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0xc], ebx
mov dword [esp + 0x1864], esi
mov eax, dword [esp + 0x11c80]
mov edx, dword [esp + 0x11c8c]
mov esi, dword [esp + 0x11c88]
mov ebx, dword [esp + 0x11c84]
movzx ecx, word [eax]
cmp ecx, 0x41
je 0x432166
cmp ecx, 0x61
jne 0x432249
cmp word [eax + 2], 0
jne 0x432249
cmp word [ebx], 0
jne 0x432249
cmp word [esi], 0
jne 0x432249
cmp word [edx], 0
jne 0x432249
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4321da
mov ecx, dword [0x4d78c8]
cmp byte [ecx + 0x93], 0
jne 0x4321da
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4321d8
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0xe
push esi
call dword [sym.imp.dwmapi.dll_DwmGetWindowAttribute]
test eax, eax
js 0x4321da
cmp dword [esp + 0x10], 0
je 0x4321da
xor esi, esi
cmp ebp, 5
jne 0x43221b
test esi, esi
je 0x4321fa
mov eax, 1
xor ecx, ecx
mov dword [edi + 4], ecx
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c6c
ret
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [edi + 4], ecx
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c6c
ret
test esi, esi
je 0x432278
mov ecx, dword [esp + 0x1864]
push 0
push esi
call fcn.0042b4c0
mov eax, dword [esp + 0x1864]
mov dword [edi + 8], 5
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c6c
ret
push edx
push esi
push ebx
push eax
mov eax, dword [0x4d78c8]
lea ecx, [esp + 0x28]
add eax, 0x58
push eax
call fcn.0047ffa0
test eax, eax
je 0x432273
lea eax, [esp + 0x18]
push eax
push 0x47f3d0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebp, 6
jne 0x432293
mov eax, dword [esp + 0x1864]
mov dword [edi + 8], 5
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c6c
ret
mov eax, dword [esp + 0x1844]
cdq
mov dword [edi + 4], edx
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c6c
ret
Function at 0x435a10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x2214
call fcn.004ac150
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov byte [esp + 0x17], dl
push esi
push dword [0x4dd42c]
lea ebp, [esp + 0x228]
push str.__s_s
mov eax, ebp
push 0x800
push eax
call fcn.0047a7e0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
add esp, 0x14
lea ecx, [ebx + 1]
cmp ecx, 0x800
jg 0x435a70
lea eax, [esp + 0x222]
push eax
call edi
cmp eax, 0xffffffff
je 0x435a70
mov eax, dword [0x4dd42c]
jmp 0x435ac9
lea ecx, [esp + 0x18]
call fcn.004360f0
test eax, eax
je 0x435b61
push esi
lea eax, [esp + 0x1c]
push eax
push str.__s_s
lea eax, [esp + 0x22c]
push 0x800
push eax
call fcn.0047a7e0
mov ebx, eax
add esp, 0x14
lea ecx, [ebx + 1]
cmp ecx, 0x800
jg 0x435b61
lea eax, [esp + 0x222]
push eax
call edi
cmp eax, 0xffffffff
je 0x435b61
lea eax, [esp + 0x18]
cmp byte [esp + 0x17], 0
mov dword [esp + ebx*2 + 0x220], 0x22
je 0x435b32
push 0x4cd778
push eax
push str.__s_s
lea eax, [esp + 0x122c]
push 0x800
push eax
call fcn.0047a7e0
mov ebx, eax
add esp, 0x14
lea ecx, [ebx + 1]
cmp ecx, 0x800
jg 0x435b32
lea eax, [esp + 0x1222]
push eax
call edi
cmp eax, 0xffffffff
je 0x435b32
mov dword [esp + ebx*2 + 0x1220], 0x22
lea ebp, [esp + 0x1220]
lea eax, [esp + 0x220]
jmp 0x435b37
mov eax, 0x4b431c
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push ebp
mov ecx, 0x4dcd68
call fcn.0042a880
test eax, eax
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2214
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x2214
ret

Function at 0x43c6c0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004ac150
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x43c6f9
push ecx
lea esi, [esp + 8]
mov ecx, 0x4da9ac
push esi
call fcn.00450bb0
pop esi
add esp, 0x10000
ret
test esi, esi
je 0x43c709
push ecx
push esi
mov ecx, 0x4da9ac
call fcn.00450bb0
pop esi
add esp, 0x10000
ret
Function at 0x43d1d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x43d2a4
cmp word [ebx], 0
je 0x43d2a4
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x43d219
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
shr eax, 4
and al, 1
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c
push ebx
call fcn.00495490
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
cmp esi, ebx
jbe 0x43d28c
cmp word [esi - 2], 0x3a
je 0x43d28c
test edi, edi
je 0x43d250
xor eax, eax
mov edx, ebx
mov ecx, ebx
mov word [esi], ax
call fcn.0043d1d0
mov ecx, 0x5c
mov word [esi], cx
jmp 0x43d281
mov edi, esi
sub edi, ebx
sar edi, 1
lea eax, [edi*2 + 2]
call fcn.004ac040
mov esi, esp
push edi
push ebx
push esi
call fcn.0049fc44
add esp, 0xc
xor eax, eax
mov edx, esi
mov word [esi + edi*2], ax
mov ecx, esi
call fcn.0043d1d0
mov esi, dword [ebp - 4]
cmp word [esi + 2], 0
je 0x43d2ae
test al, al
je 0x43d2ae
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43dfe0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, 0x10008
call fcn.004ac150
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x10024]
call fcn.0047b060
mov esi, dword [esp + 0x10020]
cmp eax, 1
je 0x43e017
mov ecx, esi
call fcn.004547f0
test al, al
jne 0x43e0f5
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43e0f5
mov edx, dword [esp + 0x1001c]
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43e044
sub ecx, ebx
mov eax, 0x7fff
sar ecx, 1
cmp ecx, 0x8000
cmovae ecx, eax
lea eax, [ecx*2 + 2]
push eax
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00497340
add esp, 0xc
lea eax, [esp + 0x18]
push eax
call fcn.0049f097
add esp, 4
lea eax, [esp + 0x18]
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
je 0x43e0ee
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x43e0ee
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x43e0ee
push 0
lea eax, [esp + 0x18]
push eax
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x43e0f5
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10008
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push edi
push 0x4b431c
push 0
push str.Failed
mov ecx, 0x4dcd68
call fcn.004287a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10008
ret 0xc
Function at 0x4503c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, cl
test bl, bl
jne 0x4503cb
xor al, al
pop ebx
ret
sub edx, 1
je 0x4503f0
movzx eax, bl
push eax
sub edx, 1
je 0x4503e6
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
pop ebx
ret
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
pop ebx
ret
mov al, bl
dec al
cmp al, 5
ja 0x4503fd
cmp bl, 3
jne 0x450405
mov al, bl
add al, 0x66
cmp al, 5
ja 0x45041c
cmp dword [0x4dbeac], 0
movzx eax, bl
je 0x45044d
mov al, byte [eax + 0x4dbec0]
shr al, 7
pop ebx
ret
cmp dword [0x4dbeb0], 0
je 0x45044a
push 0
xor edx, edx
call fcn.00412a20
add esp, 4
test al, al
je 0x45043c
mov cl, 1
call fcn.00412810
movzx eax, bl
pop ebx
mov al, byte [eax + 0x4dbec0]
shr al, 7
ret
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
pop ebx
ret

Function at 0x4509a0
Capabilities:
Get disk information
Get process image filename

Disassembly:
sub esp, 0x214
push edi
xor eax, eax
mov edi, edx
push ecx
push eax
push 0x1000
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4509cb
pop edi
add esp, 0x214
ret
push ebx
push 0x104
push edi
push eax
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
mov ebx, eax
test ebx, ebx
je 0x450ac9
cmp byte [esp + 0x224], 0
push esi
je 0x450a35
push 0x5c
push edi
call fcn.00495490
mov edx, eax
add esp, 8
test edx, edx
je 0x450ac8
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x450a10
sub ecx, esi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.00496c80
add esp, 0xc
jmp 0x450ac8
mov eax, 0x41
mov dword [esp + 0xe], 0x3a
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov word [esp + 0x10], ax
nop
push 0x104
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
call ebp
mov esi, eax
cmp esi, 2
jbe 0x450a88
sub esi, 2
lea eax, [esp + 0x1c]
push esi
push edi
push eax
call fcn.0049ecf3
add esp, 0xc
test eax, eax
jne 0x450a88
cmp word [edi + esi*2], 0x5c
lea ecx, [edi + esi*2]
je 0x450a9c
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x450a50
jmp 0x450ac7
movzx eax, word [esp + 0x10]
sub ebx, esi
mov word [edi], ax
movzx eax, word [esp + 0x12]
mov word [edi + 2], ax
lea eax, [ebx*2 + 2]
push eax
push ecx
lea eax, [edi + 4]
push eax
call fcn.00496c80
add esp, 0xc
add ebx, 2
pop ebp
pop esi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
add esp, 0x214
ret