joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40526c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42bfe8], 0x44
push eax
xor eax, eax
push 0x42bfe8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4052a7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405331
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004055e0
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405365
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42ebe8], eax
jmp 0x4054f9
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405383
test eax, eax
je 0x4054a4
test byte [ebp + 0xc], 2
je 0x4054a4
mov esi, 0x42afe8
push edi
push esi
call fcn.00405a0c
test ebx, ebx
je 0x4053a0
push 0x409328
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4053a6
push edi
call fcn.00405546
cmp byte [edi], 0
jne 0x4053b4
cmp byte [0x42afe8], 0x5c
jne 0x4053bf
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40549a
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040552a
cmp byte [eax], 0
je 0x405405
cmp byte [ebp - 0x18], 0
je 0x405405
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40541b
mov al, byte [esi + 1]
test al, al
je 0x405479
cmp al, 0x2e
jne 0x40541b
cmp byte [esi + 2], 0
je 0x405479
push esi
push ebx
call fcn.00405a0c
test byte [ebp - 0x148], 0x10
je 0x405440
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405479
push dword [ebp + 0xc]
push edi
call fcn.00405331
jmp 0x405479
push edi
call fcn.004056c4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405471
test byte [ebp + 0xc], 4
je 0x405469
push edi
push 0xfffffffffffffff1
call fcn.00404daa
push 0
push edi
call fcn.0040575a
jmp 0x405479
inc dword [0x42ebe8]
jmp 0x405479
push edi
push 0xfffffffffffffff2
call fcn.00404daa
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053e3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4054a4
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4054f9
cmp dword [ebp - 8], esi
jne 0x4054b9
inc dword [0x42ebe8]
jmp 0x4054f9
push edi
call fcn.00405d03
test eax, eax
je 0x4054f9
push edi
call fcn.004054ff
push edi
call fcn.004056c4
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054f1
test byte [ebp + 0xc], 4
je 0x4054b1
push edi
push 0xfffffffffffffff1
call fcn.00404daa
push esi
push edi
call fcn.0040575a
jmp 0x4054f9
push edi
push 0xffffffffffffffe5
call fcn.00404daa
pop edi
pop esi
leave
ret 8
Function at 0x45d279
Capabilities:
Encode data using xor

Disassembly:
cmp ecx, eax
mov dl, 4
and eax, 0xf8e7f525
cmc
out 0xf8, eax
xor ebp, dword [eax - 0x6b2e9ffd]
and byte [edi*4 + 0x506ec8f2], 0x5a
std
cdq
mov ah, 0xa2
xchg dword [ebp - 0x6e93dfda], edi
and byte [edx + 0x13], 0xee
imul dl
out 0x33, eax
xchg edi, eax
shl dword [0xe0ed32a6], 1
mov dh, 0x70
scasd eax, dword es:[edi]
xchg ecx, eax
push 0x46
loop 0x45d25b

Function at 0x4bbf29
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33f8
cmp edx, dword [eax]
je 0x4bbf4b
add eax, 8
inc ecx
cmp eax, 0x4c3488
jl 0x4bbf3c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33f8]
jne 0x4bc079
mov eax, dword [0x4c8e20]
cmp eax, 1
je 0x4bc053
test eax, eax
jne 0x4bbf7c
cmp dword [0x4c3320], 1
je 0x4bc053
cmp edx, 0xfc
je 0x4bc079
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bbfb3
lea eax, [ebp - 0x1a4]
push 0x4c16c0
push eax
call fcn.004bc910
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bcda0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bbff6
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bcda0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c16bc
push edi
call fcn.004bec70
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c16a0
push eax
call fcn.004bc910
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc920
lea eax, [ebp - 0xa0]
push 0x4c169c
push eax
call fcn.004bc920
push dword [esi + 0x4c33fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc920
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c1674
push eax
call fcn.004bebe4
add esp, 0x2c
pop edi
jmp 0x4bc079
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33fc]
push 0
push eax
push dword [esi]
call fcn.004bcda0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4029f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x402a48
cmp byte [esi + ebx - 1], 0xa
je 0x402a1c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x40a4a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x402ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x40a4b4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x4031b0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x40a4b4]
movzx eax, al
bt eax, esi
jae 0x403210
mov ecx, dword [0x40a4a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x4030b5
test byte [0x404068], 8
jne 0x403150
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x404078], 8
jne 0x403100
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x403084
cmp esi, 3
jbe 0x4030c0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x408358]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x403084
mov ecx, dword [0x40a4b4]
test ecx, ecx
je 0x4031f0
mov dword [esp], 0x404078
call dword [0x40a4b4]
test al, 8
je 0x40305b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x40305b
mov ebx, dword [0x40a4b4]
test ebx, ebx
je 0x4031d0
mov dword [esp], 0x404068
call dword [0x40a4b4]
test al, 8
je 0x403046
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x40304e
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x40a4b4
call sym._load_func.part.0
jmp 0x40300d
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x40a4b4
call sym._load_func.part.0
jmp 0x40315a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x40a4b4
call sym._load_func.part.0
jmp 0x40310e
mov eax, 0xffffffff
jmp 0x4030b5
Function at 0x403370
Capabilities:
Accept command line arguments
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop

Function at 0x4033e0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x403437
xor ecx, ecx
xor edx, edx
jmp 0x403419
cmp ax, 0x5c
jne 0x4034a0
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x403437
cmp ax, 9
je 0x403425
cmp ax, 0x20
jne 0x403400
test ecx, ecx
je 0x40348b
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x403419
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x20], 1
je 0x4034c0
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.wWinMain@16
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x403488
cmp ax, 0x20
je 0x403488
jmp 0x403437
cmp ax, 0x22
jne 0x403429
and edx, 1
jne 0x403429
xor ecx, 1
jmp 0x40340d
mov eax, 1
mov esi, 1
mov word [ebp - 0x1c], ax
jmp 0x403450
Function at 0x403b60
Capabilities:
Encode data using xor

Disassembly:
xor byte [ebp + 0x28], ch
adc al, byte [edx + 2]
add bl, byte [edx + 0x21]
and dword [eax + 0x10801440], eax
add byte [eax + 0xd28402d], ch
mov al, byte [0xac18c683]
and dword [eax + 0x10801440], eax
add byte [eax + 0xd28402d], ch
mov al, byte [0xac18c683]
add al, 0x42
sub ah, bl
push eax
imul eax, dword [ecx], 0x91111980
xor byte [ecx], ah
dec edx
add byte [eax], cl
lds eax, [ecx]
pushal
add dword [ebx], 0x23705184
mov al, byte [esp + edx - 0x38]
adc byte [edx], cl
jb 0x403b58
dec edx
and eax, 0x9650e204
pop esi
sbb byte [edi], al
mov dword [ecx*2 - 0x77ddb4de], ebx
ror byte [eax], 1
add dword [0x4051a80a], eax
imul ecx, dword [esi + 0xd29818], 0x220330a3
or eax, 0x854c2440
or ebp, dword [eax - 0x18]
xor byte [esi + ecx], bl
and al, 0
ret 0x80
Function at 0x427020
Capabilities:
Check for time delay via gettickcount
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x4a0b94]
sub esp, 0x84
push ebx
push esi
push edi
cmp eax, dword [0x49d334]
jl 0x42704a
mov eax, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [0x4a13a4]
cmp byte [esi + 0x17], 0
jne 0x427059
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x427066
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x427072
mov eax, dword [esi + 8]
jmp 0x427082
cmp al, 2
jne 0x42707d
call fcn.00401000
jmp 0x427082
mov eax, 0x4a2ba4
push 0x7f
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0047a8e0
mov eax, dword [0x49d3c8]
inc dword [0x4a0b94]
add eax, 0xd8
mov edi, eax
mov byte [esp + 0x9b], 0
mov ecx, 0x36
mov esi, 0x49f708
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
mov esi, eax
xor edi, edi
mov dword [0x49d3c8], eax
push edi
mov eax, 0x4a2c18
mov dword [esi + 0x2c], edi
call 0x414620
mov dword [0x4a30f0], edi
mov dword [0x4a30f4], edi
cmp dword [0x4a0bbc], edi
je 0x4270ee
push 0x4a13a8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
or eax, 0xffffffff
cmp byte [esi + 0xc6], 0
jne 0x427109
mov byte [esi + 0xc6], 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x24], eax
cmp dword [0x4a30fc], edi
je 0x427119
cmp dword [0x4a30f8], edi
jne 0x427122
cmp byte [esi + 0xc6], 0
je 0x42715a
cmp byte [esi + 0xc6], 0
mov byte [esi + 0xc4], 0
jne 0x42715a
cmp dword [0x4a30fc], edi
jge 0x427142
mov dword [esi + 0xb8], eax
jmp 0x42715a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xb4], eax
mov edx, dword [0x4a30fc]
mov dword [esi + 0xb8], edx
mov eax, dword [ebp + 0xc]
mov edi, dword [0x4a3088]
mov ebx, dword [0x4a30c0]
mov dword [0x4a3088], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
push 0
push 0xffffffffffffffff
push 0
push ecx
mov dword [0x4a3104], eax
mov dword [0x4a3100], eax
mov dword [0x4a30c0], eax
call fcn.0044f1f0
mov esi, eax
cmp esi, 1
jne 0x4271a4
mov edx, dword [ebp + 8]
push edx
call fcn.00425cf0
mov esi, eax
mov ecx, dword [0x4a13a4]
dec dword [0x4a0b94]
sub dword [0x49d3c8], 0xd8
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push eax
mov dword [0x4a3088], edi
mov dword [0x4a30c0], ebx
call fcn.004668b0
push 0
mov eax, 0x4a2c18
call 0x414620
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4303d0
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.0042ac70
mov ebx, eax
test ebx, ebx
jne 0x430403
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid__The_current_thread_will_exit.
call fcn.004296d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx - 1]
cmp eax, 4
ja case.default.0x43040f
jmp dword [eax*4 + 0x4305f0]
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x43042b
push eax
xor eax, eax
call fcn.0044a5e0
add esp, 4
jmp 0x430431
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4a13a4]
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push eax
xor eax, eax
call fcn.0044a5e0
mov ebx, eax
add esp, 4
test ebx, ebx
je case.0x4304e5.67
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je case.0x4304e5.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 [0x4a13a4]
push 0x18
push 0
push esi
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4900b0
call fcn.004668b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movsx ecx, byte [edi]
push ecx
call fcn.00479f90
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x4304e5.67
movzx edx, byte [eax + 0x430620]
jmp dword [edx*4 + 0x430604]
mov esi, 0x40
jmp 0x430514
mov esi, 0x4000
jmp 0x430514
mov esi, 0x20
jmp 0x430514
mov esi, 0x8000
jmp 0x430514
mov esi, 0x80
jmp 0x430514
mov esi, 0x100
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x430529
push eax
xor eax, eax
call fcn.0044a5e0
add esp, 4
jmp 0x43052f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je case.0x4304e5.67
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je case.0x4304e5.67
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x43047f
cmp byte [edi], 0
je 0x430588
mov esi, edi
mov byte [esp + 0x13], 0
call 0x411d00
fmul qword [0x497bd8]
call fcn.00489fa0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x430590
mov byte [esp + 0x13], 1
xor edi, edi
nop
mov eax, dword [ebp + 0xc]
push eax
xor eax, eax
call fcn.0044a5e0
add esp, 4
mov esi, eax
cmp ebx, 4
jne 0x4305af
test esi, esi
jne 0x43048e
jmp 0x4305b7
test esi, esi
je case.0x4304e5.67
cmp byte [esp + 0x13], 0
jne 0x4305d5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x14]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x43048e
push 1
push 0x64
call fcn.00401340
add esp, 8
jmp 0x430590
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4375e0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
mov eax, dword [0x4a09d8]
push ebx
push edi
push 0
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov cl, byte [esi]
test cl, cl
je 0x4376bd
cmp byte [esi + 1], 0
jne 0x437640
mov byte [esp + 0x10], cl
cmp cl, 0xa
jne 0x43761f
mov al, 0xd
jmp 0x4376b2
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_VkKeyScanExA]
movzx eax, ax
mov edx, eax
shr edx, 8
cmp dl, 0xff
jne 0x4376b2
cmp al, 0xff
jne 0x4376b2
xor al, al
jmp 0x4376b2
movzx edi, cl
test edi, 0xffffff80
jne 0x43765d
push 2
push edi
call 0x47814e
add esp, 8
test eax, eax
je 0x43765d
and edi, 0xffffffdf
mov eax, edi
cmp al, 0x56
jne 0x437681
mov al, byte [esi + 1]
call fcn.00408bc0
cmp al, 0x4b
jne 0x437681
push 0x10
lea eax, [esi + 2]
push 0
push eax
call 0x478594
add esp, 0xc
jmp 0x4376b2
xor edi, edi
mov eax, dword [edi*8 + 0x49e108]
push esi
push eax
call 0x476cb6
add esp, 8
test eax, eax
je 0x4376ee
inc edi
cmp edi, 0x6d
jl 0x437683
mov eax, esi
call fcn.00410e90
movzx ecx, ax
test cx, cx
je 0x4376bd
call fcn.004115c0
mov byte [esp + 0xf], al
cmp byte [esp + 0xf], 0
jne 0x437735
push 0
lea ebx, [esp + 0x14]
mov eax, esi
call fcn.00445c20
mov edi, eax
add esp, 4
test edi, edi
jne 0x4376fb
mov ecx, dword [esp + 0x14]
push 1
push eax
push 0xffffffffffffffff
push 0x49588a
call fcn.004668b0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov cl, byte [edi*8 + 0x49e10c]
mov byte [esp + 0xf], cl
jmp 0x4376b6
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], edx
call fcn.00445ec0
fstp st(0)
mov edi, dword [esp + 0x1c]
add esp, 8
lea eax, [esp + 0x18]
call fcn.004662d0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
movzx ebx, byte [ecx]
test ebx, 0xffffff80
jne 0x437755
push 2
push ebx
call 0x47814e
add esp, 8
test eax, eax
je 0x437755
and bl, 0xdf
cmp bl, 0x50
je 0x437768
xor eax, eax
cmp bl, 0x54
setne al
dec eax
and eax, 2
jmp 0x43776d
mov eax, 1
mov bl, byte [esp + 0xf]
push eax
call fcn.00445e10
add esp, 4
test al, al
mov eax, 0x494ddc
jne 0x437788
mov eax, 0x494de0
mov ecx, dword [esp + 0x14]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004668b0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x438ae0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x438b20
cmp byte [0x4a30e4], al
je 0x438bc6
mov ecx, dword [0x4a13a4]
push 1
push eax
push 0xffffffffffffffff
push 0x4916f4
call fcn.004668b0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x4a30e4], 0
mov esi, 0x4a13a8
jne 0x438b32
lea esi, [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0x104
call ebx
test eax, eax
je 0x438b91
cmp byte [edi], 0
je 0x438ba7
cmp byte [edi + 1], 0x3a
jne 0x438ba7
cmp byte [edi + 2], 0
jne 0x438ba7
push esi
push edi
call 0x476cb6
add esp, 8
test eax, eax
je 0x438ba7
push edi
lea eax, [esp + 0xc]
push 0x49504c
push eax
call 0x477162
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x438ba7
push esi
push 0x104
call ebx
test eax, eax
jne 0x438ba7
push 0x103
push edi
push esi
call fcn.0047a8e0
mov byte [esi + 0x103], 0
add esp, 0xc
cmp byte [0x4a30e4], 0
je 0x438bc6
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4900b0
call fcn.004668b0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4391d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0xc], ecx
test esi, esi
je 0x43930a
cmp byte [esi], 0
je 0x43930a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43923e
mov ecx, dword [0x49d3c8]
shr eax, 4
not eax
test al, 1
mov dword [ecx + 0x30], 0xb7
mov eax, 0x4916f4
jne 0x439223
mov eax, 0x4900b0
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004668b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x5c
push esi
call 0x478bf7
mov ebx, eax
add esp, 8
cmp ebx, esi
jbe 0x4392c2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x439254
sub eax, edx
cmp eax, 0x104
jb 0x439276
mov edx, dword [0x49d3c8]
mov dword [edx + 0x30], 0x6f
jmp 0x439316
mov edi, ebx
sub edi, esi
push edi
lea eax, [esp + 0x14]
push esi
push eax
call fcn.0047a8e0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
mov byte [esp + edi + 0x14], 0
call fcn.004391d0
cmp byte [ebx + 1], 0
je 0x4392b4
mov ecx, dword [0x4a13a4]
push 1
call fcn.00401230
cmp byte [eax], 0x31
jne 0x4392c2
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
neg eax
sbb esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc esi
mov edx, dword [0x49d3c8]
mov dword [edx + 0x30], eax
mov eax, 0x4916f4
jne 0x439223
mov ecx, dword [0x4a13a4]
push 1
push 0
mov eax, 0x4900b0
push 0xffffffffffffffff
push eax
call fcn.004668b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x49d3c8]
mov dword [eax + 0x30], 0x57
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4916f4
call fcn.004668b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44a1d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44a253
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x44a23e
dec eax
jne 0x44a260
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44a1f7
sub eax, edx
cmp eax, 0x104
ja 0x44a260
inc eax
call fcn.004854f0
mov esi, esp
mov edx, esi
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x44a215
push 0x5c
push esi
call 0x478bf7
add esp, 8
test eax, eax
je 0x44a260
push esi
mov byte [eax], 0
call fcn.0044a1d0
add esp, 4
test al, al
je 0x44a260
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
test al, 0x10
je 0x44a260
mov al, 1
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
xor al, al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret

Function at 0x44a3f0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x44a411
xor al, al
add esp, 0x18
ret
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44a40b
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
add esp, 0x18
ret