joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c050
Capabilities:
Check for time delay via gettickcount
Set current directory

Disassembly:
mov eax, dword [0x4c2014]
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
cmp eax, dword [0x4be3d0]
jl 0x42c079
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
mov esi, dword [0x4c26a8]
cmp byte [esi + 0x17], 0
jne 0x42c088
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x42c095
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x42c0ae
test byte [esi + 0x15], 4
je 0x42c0a9
mov eax, esi
call fcn.0042f660
mov eax, dword [esi + 8]
jmp 0x42c0be
cmp al, 2
jne 0x42c0b9
call fcn.00401000
jmp 0x42c0be
mov eax, 0x4c3fa8
push 0x7f
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0048ad94
mov eax, dword [0x4be3fc]
inc dword [0x4c2014]
add eax, 0x108
xor edx, edx
mov edi, eax
mov word [esp + 0x122], dx
mov ecx, 0x42
mov esi, 0x4c0af0
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
mov esi, eax
xor edi, edi
mov dword [0x4be3fc], eax
push edi
mov eax, 0x4c4000
mov dword [esi + 0x2c], edi
call fcn.004154a0
mov dword [0x4c4aa8], edi
mov dword [0x4c4aac], edi
cmp dword [0x4c2040], edi
je 0x42c12c
push 0x4c26b0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
or eax, 0xffffffff
cmp byte [esi + 0xe6], 0
jne 0x42c147
mov byte [esi + 0xe6], 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x24], eax
cmp dword [0x4c4ab4], edi
je 0x42c157
cmp dword [0x4c4ab0], edi
jne 0x42c160
cmp byte [esi + 0xe6], 0
je 0x42c18f
cmp byte [esi + 0xe6], 0
mov byte [esi + 0xe4], 0
jne 0x42c18f
cmp dword [0x4c4ab4], edi
jl 0x42c189
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xd4], eax
mov eax, dword [0x4c4ab4]
mov dword [esi + 0xd8], eax
mov eax, dword [0x4c4a40]
mov ebp, dword [0x4c4a44]
mov ecx, dword [0x4c4a78]
mov edx, dword [0x4c4a7c]
mov edi, eax
mov dword [0x4c4a44], eax
mov eax, dword [esp + 0x124]
mov ebx, ecx
mov dword [esp + 0x14], edx
mov dword [0x4c4a7c], ecx
mov dword [0x4c4a40], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x120]
push 0
push 0xffffffffffffffff
push 0
push ecx
mov dword [0x4c4abc], eax
mov dword [0x4c4ab8], eax
mov dword [0x4c4a78], eax
call fcn.004580e0
mov esi, eax
cmp esi, 1
jne 0x42c203
mov edx, dword [esp + 0x120]
push edx
call fcn.0042a6a0
mov esi, eax
mov eax, dword [0x4be3fc]
mov ecx, dword [eax + 0xc0]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
mov dword [0x4c2030], ecx
mov dword [0x4c4a40], edi
mov dword [0x4c4a78], ebx
mov dword [0x4c4a44], ebp
mov dword [0x4c4a7c], edx
call fcn.004030c0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
Function at 0x42f530
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4000
call fcn.00493810
cmp dword [esp + 0x4008], 0
push ebx
push ebp
mov ebp, dword [esp + 0x4018]
mov ebx, ecx
je 0x42f653
test ebx, ebx
jne 0x42f568
mov eax, dword [esp + 0x400c]
mov ebx, dword [eax + 0x624]
test ebx, ebx
je 0x42f572
movzx ecx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x42f57f
mov ecx, dword [eax + 0x260]
movzx eax, word [eax + 0x264]
mov edx, dword [esp + 0x4014]
mov ecx, dword [ecx*4 + 0x4c1e98]
push esi
push edi
push edx
movzx eax, ax
push eax
push ecx
push str._s___d__:___Warning:__s_n
mov esi, 0x2000
lea edi, [esp + 0x20]
call fcn.0046f260
add esp, 0x10
cmp word [ebp], 0
lea edi, [esp + eax*2 + 0x10]
je 0x42f5d0
lea eax, [esp + 0x10]
mov edx, edi
sub edx, eax
sar edx, 1
push ebp
push str._____Specifically:__s_n
sub esi, edx
call fcn.0046f260
add esp, 8
mov esi, dword [esp + 0x4018]
cmp esi, 3
jne 0x42f5ff
call fcn.004888a8
add eax, 0x20
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0048a197
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4000
ret 0x10
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x42f651
test ebx, ebx
jne 0x42f624
mov ecx, dword [esp + 0x4014]
mov ebx, dword [ecx + 0x624]
test ebx, ebx
je 0x42f643
mov eax, dword [esp + 0x401c]
push ebp
push 1
push eax
mov ecx, ebx
call fcn.0042ee10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4000
ret 0x10
mov edx, dword [esp + 0x401c]
push ebp
push edx
call fcn.0042f0c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4000
ret 0x10
Function at 0x42f970
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x3d8
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x42f997
push 0x64
lea ecx, [esp + 0x124]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42f9a1
xor edx, edx
mov word [esp + 0x120], dx
xor eax, eax
push 0xfe
push eax
lea ecx, [esp + 0x2a]
push ecx
mov word [esp + 0x2c], ax
call fcn.00490ef0
mov esi, dword [0x4c4a5c]
add esp, 0xc
test esi, esi
je 0x42f9ed
cmp byte [esi + 0x11], 0
je 0x42f9e6
mov edx, dword [esi]
mov eax, dword [edx]
push eax
push 0x4a2fd0
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.0046f2a0
add esp, 8
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x42f9c5
cmp word [esp + 0x20], 0
je 0x42fa48
lea eax, [esp + 0x20]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42fa00
sub eax, edx
sar eax, 1
cmp eax, 0x7b
jbe 0x42fa36
mov esi, 0x7f
sub esi, eax
push esi
lea edi, [esp + eax*2 + 0x24]
push 0x49e9ec
push edi
call fcn.0048ad94
add esp, 0xc
xor ecx, ecx
mov word [edi + esi*2], cx
jmp 0x42fa48
cmp word [esp + eax*2 + 0x1e], 0x20
lea eax, [esp + eax*2 + 0x20]
jne 0x42fa48
xor edx, edx
mov word [eax - 2], dx
mov eax, dword [0x4c09e0]
cmp byte [eax + 0xef], 0
je 0x42fa67
cmp byte [0x4c4a9d], 0
mov dword [esp + 0x14], 1
je 0x42fa6f
mov dword [esp + 0x14], 0
mov eax, dword [0x4c2014]
mov dword [esp + 0x18], str.__preempted:_they_will_resume_when_the_current_thread_finishes_
cmp eax, 1
jg 0x42fb8d
mov dword [esp + 0x18], 0x4a59a4
xor ebp, ebp
cmp dword [0x4c1fdc], 0
mov edi, 0x49d9b0
je 0x42faa2
mov edi, 0x49d9a8
cmp dword [0x4c1fd8], 0
mov esi, 0x49d9b0
je 0x42fab5
mov esi, 0x49d9a8
push 1
call fcn.00411170
mov bl, al
add esp, 4
lea eax, [esp + 0x1e8]
call fcn.00411500
mov ecx, dword [0x4c2010]
mov edx, dword [0x4c2014]
push eax
mov eax, dword [0x4c2018]
sub eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [0x4c4a64]
push ecx
mov ecx, dword [0x4c4a68]
push ebp
lea edx, [esp + 0x38]
push edx
push eax
push ecx
push edi
mov edi, dword [esp + 0x414]
push esi
lea edx, [esp + 0x14c]
push edx
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
mov esi, 0xfffe
call fcn.0046f260
lea esi, [edi + eax*2]
mov eax, esi
mov ebx, edi
sub eax, ebx
sar eax, 1
mov ecx, 0xfffe
add esp, 0x34
sub ecx, eax
push ecx
push esi
call fcn.00408cc0
mov eax, esi
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42fb42
sub eax, edx
sar eax, 1
cmp dword [0x4c28bc], 0
lea edi, [esi + eax*2]
mov eax, str._r_nPress__F5__to_refresh.
jne 0x42fb67
mov eax, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
mov edx, edi
sub edx, ebx
sar edx, 1
mov esi, 0xfffe
push eax
sub esi, edx
call fcn.0046f260
add esp, 4
lea eax, [edi + eax*2]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3d8
ret 4
lea ebp, [eax - 1]
jmp 0x42fa8f
Function at 0x435510
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
push ebx
mov ebx, dword [0x4c1e48]
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.00471d60
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x14]
call fcn.004428b0
mov esi, eax
test esi, esi
je 0x4355f5
push 0
push esi
mov byte [esp + 0x17], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
test edi, edi
je 0x43558c
cmp edi, dword [0x4c3fc0]
je 0x43558c
call fcn.00473b70
test al, al
jne 0x43558c
mov ecx, dword [0x4c3fc0]
push 1
push edi
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0xf]
call dword [sym.imp.USER32.dll_GetFocus]
cmp byte [esp + 0xf], 0
mov dword [esp + 0x1c], eax
je 0x4355b1
mov edx, dword [0x4c3fc0]
push 0
push edi
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4355f5
lea ecx, [esp + 0x20]
push 0xfc
mov edx, ecx
push edx
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x4355f5
lea eax, [esp + 0x10]
push eax
push 0x435690
push esi
mov dword [esp + 0x24], 0
mov byte [esp + 0x20], 0
call dword [sym.imp.USER32.dll_EnumChildWindows]
cmp byte [esp + 0x14], 0
jne 0x43563e
mov ecx, dword [0x4be3fc]
cmp byte [ecx + 0x100], 0
jne 0x435621
mov edx, dword [0x4c26a8]
push edx
or eax, 0xffffffff
mov ecx, 0x49e334
call fcn.00401200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 8]
push 0x4a59a4
push 0
push 0x49e334
call fcn.0042eae0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esp + 0x18]
push eax
push 0x49b868
mov eax, 0x101
lea ecx, [esp + 0x28]
call fcn.0046f2a0
mov ecx, dword [0x4c26a8]
add esp, 8
push 1
push 0
push 0xffffffffffffffff
push 0x49b8c0
call fcn.00471d60
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.00471d60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x435720
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x10]
sub esp, 0xc
push ebx
push esi
push edi
push eax
mov eax, dword [ebp + 0x14]
call fcn.004428b0
mov edi, eax
test edi, edi
je 0x435752
mov esi, dword [ebp + 0xc]
push edi
call fcn.00473630
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x43579b
mov ecx, dword [0x4be3fc]
cmp byte [ecx + 0x100], 0
jne 0x43577e
mov edx, dword [0x4c26a8]
push edx
or eax, 0xffffffff
mov ecx, 0x49e334
call fcn.00401200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 8]
push 0x4a59a4
push 0
push 0x49e334
call fcn.0042eae0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push edi
mov byte [esp + 0x1b], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
test ebx, ebx
je 0x4357d8
cmp ebx, dword [0x4c3fc0]
je 0x4357d8
mov esi, edi
call fcn.00473b70
test al, al
jne 0x4357d8
mov eax, dword [0x4c3fc0]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x13]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x435816
mov ecx, dword [0x4c26a8]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8c0
call fcn.00471d60
mov edx, dword [0x4be3fc]
mov eax, dword [edx + 0x58]
cmp eax, 0xffffffff
jle 0x435816
push 1
push eax
call fcn.004012b0
add esp, 8
cmp byte [esp + 0x13], 0
je 0x43582c
mov eax, dword [0x4c3fc0]
push 0
push ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x436640
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.00430a70
mov ebx, eax
test ebx, ebx
jne 0x436673
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.0042ee10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx - 1]
cmp eax, 4
ja case.default.0x43667f
jmp dword [eax*4 + 0x43685c]
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x43669a
push eax
call fcn.00452b10
add esp, 4
jmp 0x4366a0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4c26a8]
call fcn.004010e0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push eax
call fcn.00452b10
mov ebx, eax
add esp, 4
test ebx, ebx
je case.0x436755.67
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je case.0x436755.67
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg esi
sbb esi, esi
and esi, ebx
mov eax, dword [0x4c26a8]
push 0x18
push 0
push esi
call fcn.004010e0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4c26a8]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8c0
call fcn.00471d60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx ecx, word [edi]
push ecx
call fcn.0048a30b
movzx eax, ax
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x436755.67
movzx edx, byte [eax + 0x43688c]
jmp dword [edx*4 + 0x436870]
mov esi, 0x40
jmp 0x436784
mov esi, 0x4000
jmp 0x436784
mov esi, 0x20
jmp 0x436784
mov esi, 0x8000
jmp 0x436784
mov esi, 0x80
jmp 0x436784
mov esi, 0x100
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x436798
push eax
call fcn.00452b10
add esp, 4
jmp 0x43679e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je case.0x436755.67
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je case.0x436755.67
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x4366ec
cmp word [edi], 0
je 0x4367f8
mov esi, edi
mov byte [esp + 0x13], 0
call fcn.00412740
fmul qword [0x4b8958]
call fcn.00496940
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x436800
mov byte [esp + 0x13], 1
xor edi, edi
nop
mov eax, dword [ebp + 0xc]
push eax
call fcn.00452b10
add esp, 4
mov esi, eax
cmp ebx, 4
jne 0x43681d
test esi, esi
jne 0x4366fb
jmp 0x436825
test esi, esi
je case.0x436755.67
cmp byte [esp + 0x13], 0
jne 0x436843
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x14]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x4366fb
push 1
push 0x64
call fcn.004012b0
add esp, 8
jmp 0x436800
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x437100
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [0x4c1e48]
push eax
mov eax, dword [esp + 0x18]
call fcn.004428b0
mov ebp, eax
test ebp, ebp
je 0x437126
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
jmp 0x43712b
mov ebx, 1
push 1
push 0
lea ecx, [ebx - 1]
push ecx
push 0
mov ecx, edi
call fcn.00471d60
cmp eax, 1
je 0x43714a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
test ebp, ebp
je 0x43725f
cmp byte [edi + 0x17], 0
jne 0x43715d
mov esi, dword [edi + 0xc]
jmp 0x43715f
mov esi, edi
test byte [esi + 0x15], 8
je 0x43716c
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x437185
test byte [esi + 0x15], 4
je 0x437180
mov eax, esi
call fcn.0042f660
mov eax, dword [esi + 8]
jmp 0x437195
cmp al, 2
jne 0x437190
call fcn.00401000
jmp 0x437195
mov eax, 0x4c3fa8
push ebx
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [edi + 0x17], 0
mov ebx, eax
jne 0x4371ab
mov esi, dword [edi + 0xc]
jmp 0x4371ad
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x4371c5
test byte [esi + 0x15], 8
je 0x4371c0
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x4371ca
mov eax, 0x4c4e80
lea edx, [ebx + ebx]
mov dword [eax], edx
cmp byte [edi + 0x17], 0
jne 0x4371da
mov esi, dword [edi + 0xc]
jmp 0x4371dc
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x4371f4
test byte [esi + 0x15], 8
je 0x4371ef
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x4371f9
mov eax, 0x4c4e80
test dword [eax], 0xfffffffe
jne 0x4372d6
cmp byte [edi + 0x17], 0
jne 0x437210
mov esi, dword [edi + 0xc]
jmp 0x437212
mov esi, edi
test byte [esi + 0x15], 8
je 0x43721f
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x437240
test byte [esi + 0x15], 4
je 0x437233
mov eax, esi
call fcn.0042f660
mov eax, dword [esi + 8]
xor ecx, ecx
mov word [eax], cx
jmp 0x4372d6
cmp al, 2
jne 0x437253
call fcn.00401000
xor ecx, ecx
mov word [eax], cx
jmp 0x4372d6
mov eax, 0x4c3fa8
xor ecx, ecx
mov word [eax], cx
jmp 0x4372d6
cmp byte [edi + 0x17], 0
jne 0x43726a
mov esi, dword [edi + 0xc]
jmp 0x43726c
mov esi, edi
test byte [esi + 0x15], 8
je 0x437279
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x437292
test byte [esi + 0x15], 4
je 0x43728d
mov eax, esi
call fcn.0042f660
mov eax, dword [esi + 8]
jmp 0x4372a2
cmp al, 2
jne 0x43729d
call fcn.00401000
jmp 0x4372a2
mov eax, 0x4c3fa8
xor edx, edx
mov word [eax], dx
cmp byte [edi + 0x17], dl
jne 0x4372b1
mov esi, dword [edi + 0xc]
jmp 0x4372b3
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x4372cb
test byte [esi + 0x15], 8
je 0x4372c6
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x4372d0
mov eax, 0x4c4e80
mov dword [eax], 0
cmp byte [edi + 0x17], 0
jne 0x4372df
mov edi, dword [edi + 0xc]
cmp byte [edi + 0x17], 2
jne 0x4372ff
cmp dword [0x4c4b0c], 0
je 0x4372ff
mov ecx, 0x4c4b00
call fcn.00403cd0
pop edi
pop esi
pop ebp
pop ebx
ret 4
and byte [edi + 0x15], 0x86
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
Function at 0x43df90
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x4c1e48]
push ebx
push edi
push 0
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [esi]
test cx, cx
je 0x43e075
cmp word [esi + 2], 0
jne 0x43dffa
cmp ecx, 0xa
jne 0x43dfce
mov al, 0xd
jmp 0x43e06f
push eax
push ecx
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx ecx, ax
mov eax, ecx
shr eax, 8
cmp al, 0xff
jne 0x43dfee
cmp cl, 0xff
jne 0x43dfee
xor al, al
jmp 0x43e06f
and al, 0x38
neg al
sbb al, al
not al
and al, cl
jmp 0x43e06f
mov edi, ecx
test edi, 0xffffff80
jne 0x43e016
push 2
push edi
call fcn.0048954e
add esp, 8
test eax, eax
je 0x43e016
and edi, 0xffffffdf
cmp di, 0x56
jne 0x43e03d
mov ax, word [esi + 2]
call fcn.00408f40
cmp ax, 0x4b
jne 0x43e03d
push 0x10
lea eax, [esi + 4]
push 0
push eax
call fcn.0048992b
add esp, 0xc
jmp 0x43e06f
xor edi, edi
nop
mov ecx, dword [edi*8 + 0x4bf230]
push esi
push ecx
call fcn.00488309
add esp, 8
test eax, eax
je 0x43e0a6
inc edi
cmp edi, 0x6d
jl 0x43e040
mov eax, esi
call fcn.004118f0
movzx ecx, ax
test cx, cx
je 0x43e075
call fcn.00412070
mov bl, al
test bl, bl
jne 0x43e0e9
push 0
lea ebx, [esp + 0x10]
mov eax, esi
call fcn.0044db80
mov edi, eax
add esp, 4
test edi, edi
jne 0x43e0af
mov ecx, dword [esp + 8]
push 1
push eax
push 0xffffffffffffffff
push 0x4a59a4
call fcn.00471d60
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov bl, byte [edi*8 + 0x4bf234]
jmp 0x43e071
mov eax, dword [esp + 0xc]
push 0
lea edx, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], edx
call fcn.0044de30
fstp st(0)
mov edi, dword [esp + 0x10]
add esp, 8
lea eax, [esp + 0x10]
call fcn.00471770
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
movzx edi, word [ecx]
test edi, 0xffffff80
jne 0x43e109
push 2
push edi
call fcn.0048954e
add esp, 8
test eax, eax
je 0x43e109
and edi, 0xffffffdf
movzx eax, di
cmp eax, 0x50
je 0x43e121
xor edx, edx
cmp eax, 0x54
setne dl
lea eax, [edx - 1]
and eax, 2
jmp 0x43e126
mov eax, 1
push eax
call fcn.0044dd80
add esp, 4
test al, al
mov eax, 0x4a4a04
jne 0x43e13d
mov eax, 0x4a4a08
mov ecx, dword [esp + 8]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.00471d60
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43e160
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4c1e48]
sub esp, 0x238
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
push 0
mov esi, eax
call fcn.00471d60
test esi, esi
je 0x43e2ef
cmp word [esi], 0
je 0x43e2ef
push 0x104
lea eax, [esp + 0x34]
push esi
push eax
call fcn.0048ad94
add esp, 0xc
xor ecx, ecx
lea eax, [esp + 0x30]
mov word [esp + 0x238], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43e1c0
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x2e], 0x5c
je 0x43e1f7
lea edx, [eax + 1]
cmp edx, 0x105
jae 0x43e2ef
mov ecx, 0x5c
xor edx, edx
mov word [esp + eax*2 + 0x30], cx
mov word [esp + eax*2 + 0x32], dx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
test byte [0x4c5750], 1
jne 0x43e22d
or dword [0x4c5750], 1
push str.GetDiskFreeSpaceExW
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c574c], eax
jmp 0x43e232
mov eax, dword [0x4c574c]
test eax, eax
je 0x43e27e
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
call eax
test eax, eax
je 0x43e2ef
test bl, bl
je 0x43e26b
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43e2be
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43e2be
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x43e2ef
mov eax, dword [esp + 0x14]
test bl, bl
jne 0x43e2ad
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0xc]
imul eax, dword [esp + 8]
shr eax, 0x14
mov esi, eax
xor edi, edi
mov ecx, dword [0x4c26a8]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8c0
call fcn.00471d60
mov eax, dword [0x4c1e48]
push 0x18
push edi
push esi
call fcn.004010e0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [0x4be3fc]
cmp byte [edx + 0x100], 0
jne 0x43e319
mov eax, dword [0x4c26a8]
push eax
or eax, 0xffffffff
mov ecx, 0x49e334
call fcn.00401200
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push 0x4a59a4
push 0
push 0x49e334
call fcn.0042eae0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43f5e0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x43f610
cmp byte [0x4c4a9c], al
je 0x43f6bb
call fcn.00409000
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x4c4a9c], 0
mov esi, 0x4c26b0
jne 0x43f622
lea esi, [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
push 0x104
call ebx
test eax, eax
je 0x43f684
cmp word [edi], 0
je 0x43f69c
cmp word [edi + 2], 0x3a
jne 0x43f69c
cmp word [edi + 4], 0
jne 0x43f69c
push esi
push edi
call fcn.00488309
add esp, 8
test eax, eax
je 0x43f69c
push edi
lea ecx, [esp + 0xc]
push 0x4a4e98
push ecx
call fcn.00488713
add esp, 0xc
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x43f69c
push esi
push 0x104
call ebx
test eax, eax
jne 0x43f69c
push 0x103
push edi
push esi
call fcn.0048ad94
add esp, 0xc
xor eax, eax
mov word [esi + 0x206], ax
cmp byte [0x4c4a9c], 0
je 0x43f6bb
mov ecx, dword [0x4c26a8]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8c0
call fcn.00471d60
pop esi
pop ebx
mov esp, ebp
pop ebp
ret