joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c6a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
mov cx, word [0x4c48d0]
push ebx
push ebp
mov ebp, dword [esp + 0x40]
mov eax, 0x20
push esi
mov word [esp + 0xc], ax
push edi
lea ebx, [esp + 0x10]
mov eax, ebp
mov word [esp + 0x12], cx
mov dword [esp + 0x14], 0x90028
mov dword [esp + 0x18], 0x3e003c
mov dword [esp + 0x1c], 0x3d003a
mov dword [esp + 0x20], 0x2d002b
mov dword [esp + 0x24], 0x2f002a
mov dword [esp + 0x28], 0x7e0021
mov dword [esp + 0x2c], 0x7c0026
mov dword [esp + 0x30], 0x5b005e
mov dword [esp + 0x34], 0x3f002e
mov dword [esp + 0x38], 0x7b
call fcn.004096c0
test eax, eax
je 0x41c729
cmp eax, ebp
jbe 0x41c743
sub eax, 2
jmp 0x41c743
mov eax, ebp
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c730
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 2]
mov edi, eax
cmp eax, ebp
jbe 0x41c764
lea esp, [esp]
movzx eax, word [edi]
cmp eax, 0x20
je 0x41c75d
cmp eax, 9
jne 0x41c764
sub edi, 2
cmp edi, ebp
ja 0x41c750
mov esi, edi
sub esi, ebp
sar esi, 1
inc esi
cmp esi, 0xfd
jbe 0x41c795
cmp byte [esp + 0x4c], 0
je 0x41c789
mov ecx, dword [esp + 0x40]
push ebp
push str.This_line_does_not_contain_a_recognized_action.
call fcn.0042e460
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
mov ebx, dword [esp + 0x44]
push esi
push ebp
push ebx
call fcn.00490304
add esp, 0xc
xor ecx, ecx
mov eax, edi
pop edi
mov word [ebx + esi*2], cx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
Function at 0x42b310
Capabilities:
Check for time delay via gettickcount
Set current directory

Disassembly:
mov eax, dword [0x4c8614]
sub esp, 0x124
push ebx
push ebp
push esi
push edi
cmp eax, dword [0x4c48c0]
jl 0x42b339
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 8
mov esi, dword [0x4c8ca4]
cmp byte [esi + 0x17], 0
jne 0x42b348
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x42b355
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x42b36e
test byte [esi + 0x15], 4
je 0x42b369
mov eax, esi
call fcn.0042ea10
mov eax, dword [esi + 8]
jmp 0x42b37e
cmp al, 2
jne 0x42b379
call fcn.00401000
jmp 0x42b37e
mov eax, 0x4ca5a8
push 0x7f
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00490304
mov eax, dword [0x4c49ac]
inc dword [0x4c8614]
add eax, 0x110
xor edx, edx
mov edi, eax
mov word [esp + 0x13a], dx
mov ecx, 0x44
mov esi, 0x4c70d8
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
mov esi, eax
xor edi, edi
mov dword [0x4c49ac], eax
push edi
mov eax, 0x4ca630
mov dword [esi + 0x2c], edi
call fcn.00415e20
mov dword [0x4cb100], edi
mov dword [0x4cb104], edi
cmp dword [0x4c8640], edi
je 0x42b3ec
push 0x4c8ca8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
or eax, 0xffffffff
cmp byte [esi + 0xee], 0
jne 0x42b407
mov byte [esi + 0xee], 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x24], eax
cmp dword [0x4cb10c], edi
je 0x42b417
cmp dword [0x4cb108], edi
jne 0x42b420
cmp byte [esi + 0xee], 0
je 0x42b44f
cmp byte [esi + 0xee], 0
mov byte [esi + 0xec], 0
jne 0x42b44f
cmp dword [0x4cb10c], edi
jl 0x42b449
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xdc], eax
mov eax, dword [0x4cb10c]
mov dword [esi + 0xe0], eax
mov eax, dword [0x4cb080]
mov ecx, dword [0x4cb0d8]
mov edx, dword [0x4cb0dc]
mov ebp, dword [0x4cb084]
mov esi, dword [esp + 0x13c]
mov edi, eax
mov ebx, ecx
mov dword [esp + 0x1c], edx
mov dword [0x4cb084], eax
mov dword [0x4cb0dc], ecx
mov dword [0x4cb080], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4cb114], eax
mov dword [0x4cb110], eax
mov dword [0x4cb0d8], eax
mov eax, dword [esp + 0x138]
cmp byte [eax], 5
jne 0x42b4b3
mov esi, dword [eax + 0xc]
call fcn.0042b2a0
mov esi, eax
jmp 0x42b4f0
mov ecx, dword [eax + 0xc]
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x24]
push edx
xor eax, eax
push 0x4a18a4
push ecx
lea edx, [eax + 1]
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], esi
call fcn.0046c720
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b4f0
mov esi, dword [esp + 0x14]
neg esi
sbb esi, esi
add esi, 4
mov eax, dword [0x4c49ac]
mov ecx, dword [eax + 0xc4]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push eax
mov dword [0x4c8628], ecx
mov dword [0x4cb080], edi
mov dword [0x4cb0d8], ebx
mov dword [0x4cb084], ebp
mov dword [0x4cb0dc], edx
call fcn.004036a0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 8
Function at 0x42e8e0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4000
call fcn.00498e00
cmp dword [esp + 0x4008], 0
push ebx
push ebp
mov ebp, dword [esp + 0x4018]
mov ebx, ecx
je 0x42ea03
test ebx, ebx
jne 0x42e918
mov eax, dword [esp + 0x400c]
mov ebx, dword [eax + 0x630]
test ebx, ebx
je 0x42e922
movzx ecx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x42e92f
mov ecx, dword [eax + 0x26c]
movzx eax, word [eax + 0x270]
mov edx, dword [esp + 0x4014]
mov ecx, dword [ecx*4 + 0x4c8440]
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.00474190
add esp, 0x10
cmp word [ebp], 0
lea edi, [esp + eax*2 + 0x10]
je 0x42e980
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.00474190
add esp, 8
mov esi, dword [esp + 0x4018]
cmp esi, 3
jne 0x42e9af
call fcn.0048dbbd
add eax, 0x20
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0048f5e9
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 0x42ea01
test ebx, ebx
jne 0x42e9d4
mov ecx, dword [esp + 0x4014]
mov ebx, dword [ecx + 0x630]
test ebx, ebx
je 0x42e9f3
mov eax, dword [esp + 0x401c]
push ebp
push 1
push eax
mov ecx, ebx
call fcn.0042e1a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4000
ret 0x10
mov edx, dword [esp + 0x401c]
push ebp
push edx
call fcn.0042e460
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4000
ret 0x10
Function at 0x42ed20
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 0x42ed47
push 0x64
lea ecx, [esp + 0x124]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42ed51
xor edx, edx
mov word [esp + 0x120], dx
mov esi, dword [0x4cb0bc]
xor eax, eax
mov word [esp + 0x20], ax
test esi, esi
je 0x42ee08
cmp byte [esi + 0x11], 0
je 0x42eda9
mov ecx, dword [esi]
push ecx
call fcn.0046f580
add esp, 4
sub eax, 0
je 0x42ed8d
dec eax
je 0x42ed86
mov eax, str.Object
jmp 0x42ed92
mov edx, dword [esi]
mov eax, dword [edx + 4]
jmp 0x42ed92
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
push 0x4a9500
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.004741d0
add esp, 8
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x42ed66
cmp word [esp + 0x20], si
je 0x42ee08
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42edc0
sub eax, edx
sar eax, 1
cmp eax, 0x7b
jbe 0x42edf6
mov esi, 0x7f
sub esi, eax
push esi
lea edi, [esp + eax*2 + 0x24]
push 0x4a5870
push edi
call fcn.00490304
add esp, 0xc
xor ecx, ecx
mov word [edi + esi*2], cx
jmp 0x42ee08
cmp word [esp + eax*2 + 0x1e], 0x20
lea eax, [esp + eax*2 + 0x20]
jne 0x42ee08
xor edx, edx
mov word [eax - 2], dx
mov eax, dword [0x4c6fc0]
cmp byte [eax + 0xf8], 0
je 0x42ee27
cmp byte [0x4cb0fd], 0
mov dword [esp + 0x14], 1
je 0x42ee2f
mov dword [esp + 0x14], 0
mov eax, dword [0x4c8614]
mov dword [esp + 0x18], str.__preempted:_they_will_resume_when_the_current_thread_finishes_
cmp eax, 1
jg 0x42ef4d
mov dword [esp + 0x18], 0x4a1840
xor ebp, ebp
cmp dword [0x4c85dc], 0
mov edi, 0x4a39d8
je 0x42ee62
mov edi, 0x4a39d0
cmp dword [0x4c85d8], 0
mov esi, 0x4a39d8
je 0x42ee75
mov esi, 0x4a39d0
push 1
call fcn.00411a50
mov bl, al
add esp, 4
lea eax, [esp + 0x1e8]
call fcn.00411e10
mov ecx, dword [0x4c8610]
mov edx, dword [0x4c8614]
push eax
mov eax, dword [0x4c8618]
sub eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [0x4cb0c4]
push ecx
mov ecx, dword [0x4cb0c8]
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.00474190
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.00409410
mov eax, esi
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ef02
sub eax, edx
sar eax, 1
cmp dword [0x4c8eb8], 0
lea edi, [esi + eax*2]
mov eax, str._r_nPress__F5__to_refresh.
jne 0x42ef27
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.00474190
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 0x42ee4f
Function at 0x4356a0
Capabilities:
Log keystrokes

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
push edi
push eax
mov eax, dword [esp + 0x28]
call fcn.00442bc0
mov edi, eax
test edi, edi
je 0x4356ce
mov esi, dword [esp + 0x1c]
push edi
call fcn.004788e0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x435719
mov ecx, dword [0x4c49ac]
cmp byte [ecx + 0x108], 0
jne 0x4356fc
mov edx, dword [0x4c8ca4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a4428
push edx
call fcn.00476f40
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, dword [esp + 0x18]
push 0x4a1840
push 0
push 0x4a4428
call fcn.0042dee0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
push 0
push edi
xor bl, bl
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
test ebp, ebp
je 0x435751
cmp ebp, dword [0x4ca5bc]
je 0x435751
mov esi, edi
call fcn.00478e00
test al, al
jne 0x435751
mov eax, dword [0x4ca5bc]
push 1
push ebp
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne bl
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x43578f
mov edx, dword [0x4c8ca4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a1914
push edx
call fcn.00476f40
mov eax, dword [0x4c49ac]
mov eax, dword [eax + 0x58]
cmp eax, 0xffffffff
jle 0x43578f
push 1
push eax
call fcn.00401360
add esp, 8
test bl, bl
je 0x4357a3
mov ecx, dword [0x4ca5bc]
push 0
push ebp
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0x10
Function at 0x436600
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.004301e0
mov ebx, eax
test ebx, ebx
jne 0x436633
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.0042e1a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx - 1]
cmp eax, 4
ja case.default.0x43663f
jmp dword [eax*4 + 0x436838]
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x43665a
push eax
call fcn.00454410
add esp, 4
jmp 0x436660
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4c8ca4]
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.00454410
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4366d8
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4366d8
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 [0x4c8ca4]
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 [0x4c8ca4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a1914
push ecx
call fcn.00476f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx edx, word [edi]
push edx
call fcn.0048f75d
movzx eax, ax
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x436716.67
movzx eax, byte [eax + 0x436868]
jmp dword [eax*4 + 0x43684c]
mov esi, 0x40
jmp 0x436745
mov esi, 0x4000
jmp 0x436745
mov esi, 0x20
jmp 0x436745
mov esi, 0x8000
jmp 0x436745
mov esi, 0x80
jmp 0x436745
mov esi, 0x100
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x436759
push eax
call fcn.00454410
add esp, 4
jmp 0x43675f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x4366d8
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4366d8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x4366ac
mov edx, dword [0x4c8ca4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a1914
push edx
call fcn.00476f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp word [edi], 0
je 0x4367d9
mov esi, edi
mov byte [esp + 0x13], 0
call fcn.004131e0
fmul qword [0x4be748]
call fcn.0049bf30
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x4367e0
mov byte [esp + 0x13], 1
xor edi, edi
mov eax, dword [ebp + 0xc]
push eax
call fcn.00454410
add esp, 4
mov esi, eax
cmp ebx, 4
jne 0x4367fd
test esi, esi
jne 0x4366bb
jmp 0x436801
test esi, esi
je case.0x436716.67
cmp byte [esp + 0x13], 0
jne 0x43681f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x14]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x4366bb
push 1
push 0x64
call fcn.00401360
add esp, 8
jmp 0x4367e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4370a0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [0x4c83f0]
push eax
mov eax, dword [esp + 0x18]
call fcn.00442bc0
mov ebp, eax
test ebp, ebp
je 0x4370c6
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
jmp 0x4370cb
mov ebx, 1
push 1
push 0
lea ecx, [ebx - 1]
push ecx
push 0
push edi
call fcn.00476f40
cmp eax, 1
je 0x4370e9
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
test ebp, ebp
je 0x4371fe
cmp byte [edi + 0x17], 0
jne 0x4370fc
mov esi, dword [edi + 0xc]
jmp 0x4370fe
mov esi, edi
test byte [esi + 0x15], 8
je 0x43710b
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x437124
test byte [esi + 0x15], 4
je 0x43711f
mov eax, esi
call fcn.0042ea10
mov eax, dword [esi + 8]
jmp 0x437134
cmp al, 2
jne 0x43712f
call fcn.00401000
jmp 0x437134
mov eax, 0x4ca5a8
push ebx
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [edi + 0x17], 0
mov ebx, eax
jne 0x43714a
mov esi, dword [edi + 0xc]
jmp 0x43714c
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x437164
test byte [esi + 0x15], 8
je 0x43715f
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x437169
mov eax, 0x4cb2f8
lea edx, [ebx + ebx]
mov dword [eax], edx
cmp byte [edi + 0x17], 0
jne 0x437179
mov esi, dword [edi + 0xc]
jmp 0x43717b
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x437193
test byte [esi + 0x15], 8
je 0x43718e
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x437198
mov eax, 0x4cb2f8
test dword [eax], 0xfffffffe
jne 0x437275
cmp byte [edi + 0x17], 0
jne 0x4371af
mov esi, dword [edi + 0xc]
jmp 0x4371b1
mov esi, edi
test byte [esi + 0x15], 8
je 0x4371be
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4371df
test byte [esi + 0x15], 4
je 0x4371d2
mov eax, esi
call fcn.0042ea10
mov eax, dword [esi + 8]
xor ecx, ecx
mov word [eax], cx
jmp 0x437275
cmp al, 2
jne 0x4371f2
call fcn.00401000
xor ecx, ecx
mov word [eax], cx
jmp 0x437275
mov eax, 0x4ca5a8
xor ecx, ecx
mov word [eax], cx
jmp 0x437275
cmp byte [edi + 0x17], 0
jne 0x437209
mov esi, dword [edi + 0xc]
jmp 0x43720b
mov esi, edi
test byte [esi + 0x15], 8
je 0x437218
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x437231
test byte [esi + 0x15], 4
je 0x43722c
mov eax, esi
call fcn.0042ea10
mov eax, dword [esi + 8]
jmp 0x437241
cmp al, 2
jne 0x43723c
call fcn.00401000
jmp 0x437241
mov eax, 0x4ca5a8
xor edx, edx
mov word [eax], dx
cmp byte [edi + 0x17], dl
jne 0x437250
mov esi, dword [edi + 0xc]
jmp 0x437252
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x43726a
test byte [esi + 0x15], 8
je 0x437265
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x43726f
mov eax, 0x4cb2f8
mov dword [eax], 0
cmp byte [edi + 0x17], 0
jne 0x43727e
mov edi, dword [edi + 0xc]
cmp byte [edi + 0x17], 2
jne 0x43729e
cmp dword [0x4ca5e0], 0
je 0x43729e
mov ecx, 0x4ca5d4
call fcn.004042f0
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 0x4380d0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.00498e00
push ebp
mov ebp, dword [0x4c83f0]
push esi
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp edi, 0x7fff
jb 0x4381fa
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push ebp
call fcn.00476f40
test eax, eax
jne 0x438120
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
cmp byte [ebp + 0x17], 0
jne 0x43812b
mov esi, dword [ebp + 0xc]
jmp 0x43812d
mov esi, ebp
test byte [esi + 0x15], 8
je 0x43813a
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x438153
test byte [esi + 0x15], 4
je 0x43814e
mov eax, esi
call fcn.0042ea10
mov eax, dword [esi + 8]
jmp 0x438163
cmp al, 2
jne 0x43815e
call fcn.00401000
jmp 0x438163
mov eax, 0x4ca5a8
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4381b7
cmp byte [ebp + 0x17], al
jne 0x43817a
mov esi, dword [ebp + 0xc]
jmp 0x43817c
mov esi, ebp
test byte [esi + 0x15], 8
je 0x438189
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4381a2
test byte [esi + 0x15], 4
je 0x43819d
mov eax, esi
call fcn.0042ea10
mov eax, dword [esi + 8]
jmp 0x4381b2
cmp al, 2
jne 0x4381ad
call fcn.00401000
jmp 0x4381b2
mov eax, 0x4ca5a8
xor edx, edx
mov word [eax], dx
cmp byte [ebp + 0x17], 0
jne 0x4381c2
mov eax, dword [ebp + 0xc]
jmp 0x4381c4
mov eax, ebp
cmp byte [eax + 0x17], 2
jne 0x4381e7
cmp dword [0x4ca5e0], 0
je 0x4381e7
mov ecx, 0x4ca5d4
call fcn.004042f0
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
and byte [eax + 0x15], 0x86
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
lea eax, [esp + 0xc]
test edi, edi
jne 0x438207
mov eax, 0x4a1840
push 1
push 0
push edi
push eax
push ebp
call fcn.00476f40
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
Function at 0x43e3e0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 0x218
push ebx
push ebp
mov ebp, dword [0x4c83f0]
push esi
push edi
push 0
mov edi, eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [edi]
test cx, cx
je 0x43e4c5
cmp word [edi + 2], 0
jne 0x43e445
cmp ecx, 0xa
jne 0x43e419
mov al, 0xd
jmp 0x43e4bf
push eax
push ecx
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx ecx, ax
mov eax, ecx
shr eax, 8
cmp al, 0xff
jne 0x43e439
cmp cl, 0xff
jne 0x43e439
xor al, al
jmp 0x43e4bf
and al, 0x38
neg al
sbb al, al
not al
and al, cl
jmp 0x43e4bf
mov esi, ecx
test esi, 0xffffff80
jne 0x43e461
push 2
push esi
call fcn.0048e85e
add esp, 8
test eax, eax
je 0x43e461
and esi, 0xffffffdf
cmp si, 0x56
jne 0x43e488
mov ax, word [edi + 2]
call fcn.00409690
cmp ax, 0x4b
jne 0x43e488
push 0x10
lea ecx, [edi + 4]
push 0
push ecx
call fcn.0048ec3b
add esp, 0xc
jmp 0x43e4bf
xor esi, esi
lea ebx, [ebx]
mov edx, dword [esi*8 + 0x4c56e8]
push edi
push edx
call fcn.0048d609
add esp, 8
test eax, eax
je 0x43e4f8
inc esi
cmp esi, 0x6d
jl 0x43e490
mov eax, edi
call fcn.00412310
movzx ecx, ax
test cx, cx
je 0x43e4c5
call fcn.00412a90
mov bl, al
test bl, bl
jne 0x43e53e
push 0
lea ebx, [esp + 0x18]
mov eax, edi
call fcn.0044f4c0
mov edi, eax
add esp, 4
test edi, edi
jne 0x43e501
push 1
push eax
push 0xffffffffffffffff
push 0x4a1840
push ebp
call fcn.00476f40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
mov bl, byte [esi*8 + 0x4c56ec]
jmp 0x43e4c1
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
mov dword [esp + 0x18], eax
push 0
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
call fcn.0044f770
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00476860
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
mov edx, dword [esp + 0x22c]
movzx esi, word [edx]
test esi, 0xffffff80
jne 0x43e562
push 2
push esi
call fcn.0048e85e
add esp, 8
test eax, eax
je 0x43e562
and esi, 0xffffffdf
movzx eax, si
cmp eax, 0x50
je 0x43e57a
xor ecx, ecx
cmp eax, 0x54
setne cl
lea eax, [ecx - 1]
and eax, 2
jmp 0x43e57f
mov eax, 1
push eax
call fcn.0044f6c0
add esp, 4
test al, al
mov eax, 0x4ab158
jne 0x43e596
mov eax, 0x4ab15c
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.00476f40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
Function at 0x43e5b0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x238
push esi
mov esi, ecx
mov ecx, dword [0x4c83f0]
push edi
call fcn.00413220
test esi, esi
je 0x43e729
cmp word [esi], 0
je 0x43e729
push 0x104
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00490304
add esp, 0xc
xor ecx, ecx
lea eax, [esp + 0x30]
mov word [esp + 0x238], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43e601
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x2e], 0x5c
je 0x43e638
lea edx, [eax + 1]
cmp edx, 0x105
jae 0x43e729
mov ecx, 0x5c
xor edx, edx
mov word [esp + eax*2 + 0x30], cx
mov word [esp + eax*2 + 0x32], dx
test byte [0x4cbeb4], 1
jne 0x43e666
or dword [0x4cbeb4], 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 [0x4cbeb0], eax
jmp 0x43e66b
mov eax, dword [0x4cbeb0]
test eax, eax
je 0x43e6b7
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 0x43e729
test bl, bl
je 0x43e6a4
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43e6f7
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43e6f7
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 0x43e729
mov eax, dword [esp + 0x14]
test bl, bl
jne 0x43e6e6
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 edx, dword [0x4c8ca4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a1914
push edx
call fcn.00476f40
mov eax, dword [0x4c83f0]
push 0x18
push edi
push esi
call fcn.004010e0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4c49ac]
cmp byte [eax + 0x108], 0
jne 0x43e756
mov ecx, dword [0x4c8ca4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a4428
push ecx
call fcn.00476f40
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push 0x4a1840
push 0
push 0x4a4428
call fcn.0042dee0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4