joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43eea0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov edi, eax
mov esi, ecx
mov ebx, edx
call fcn.0040c660
test al, al
je 0x43eec8
push 0x10
push 0
push edi
call fcn.00480724
add esp, 0xc
jmp 0x43eed1
push edi
call fcn.00480326
add esp, 4
cmp eax, 1
je 0x43ef33
call fcn.0044f840
test al, al
je 0x43ef33
mov eax, dword [0x49f440]
cmp byte [eax + 0xe4], 0
jne 0x43ef0e
mov ecx, dword [0x4a3434]
push ecx
or eax, 0xffffffff
mov ecx, 0x493f18
call fcn.004011f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov ecx, dword [esp + 0x124]
push 0x4927f1
push 0
push 0x493f18
call fcn.0042cb70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x43ef7e
mov edx, dword [0x49f440]
cmp byte [edx + 0xe4], 0
jne 0x43ef0e
mov eax, dword [0x4a3434]
push eax
or eax, ebp
mov ecx, 0x493f18
call fcn.004011f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43ef83
sub eax, edx
cmp eax, 0x104
jb 0x43ef98
mov eax, 0x103
inc eax
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.00487530
lea edx, [esp + 0x24]
add esp, 0xc
push edx
call fcn.004815bc
add esp, 4
push 0xa
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x43f004
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x43f004
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x43f004
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
jmp 0x43f006
xor bl, bl
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x124]
test bl, bl
sete dl
movzx eax, dl
push eax
push ecx
call fcn.0042cc60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
Function at 0x43f030
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4a2bd0]
sub esp, 0x84
push esi
push 1
push 0
push 0xffffffffffffffff
push 0
mov esi, eax
call fcn.0046f180
test esi, esi
je 0x43f0c4
cmp byte [esi], 0
je 0x43f0c4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43f081
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x49f440]
cmp byte [ecx + 0xe4], 0
mov dword [ecx + 0x30], eax
jmp 0x43f0d7
mov ecx, dword [0x49f440]
mov edx, dword [0x4a3434]
mov dword [ecx + 0x30], 0
push edx
or eax, 0xffffffff
mov ecx, 0x492868
call fcn.004011f0
mov edx, esi
lea eax, [esp + 8]
call fcn.0046d620
mov ecx, dword [0x4a2bd0]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.0046f180
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x49f440]
cmp byte [eax + 0xe4], 0
mov dword [eax + 0x30], 0x57
jne 0x43f0f1
mov eax, dword [0x4a3434]
push eax
or eax, 0xffffffff
mov ecx, 0x493f18
call fcn.004011f0
pop esi
mov esp, ebp
pop ebp
ret
push 0x4927f1
push 0
push 0x493f18
mov ecx, edi
call fcn.0042cb70
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44b0e0
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x44b0e7
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x44b10f
dec eax
je 0x44b101
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 1
ret
lea edx, [ebx - 1]
cmp dl, 5
ja 0x44b11c
cmp bl, 3
jne 0x44b123
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x44b149
cmp dword [0x4a2d64], 0
je 0x44b139
movzx ecx, bl
mov al, byte [ecx + 0x4a2c50]
shr al, 7
ret
movzx edx, bl
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
cmp dword [0x4a2d60], 0
je 0x44b178
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.00410f80
test al, al
je 0x44b16b
push 1
call fcn.00410db0
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4a2c50]
shr al, 7
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
Function at 0x44b6c0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push esi
push edi
mov esi, ecx
push esi
push 0
mov edi, eax
push 0x410
mov byte [edi], 0
call ebx
mov ebp, eax
test ebp, ebp
jne 0x44b701
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x44b701
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
cmp byte [esp + 0x11c], 0
push 0x104
push edi
push 0
push ebp
je 0x44b71c
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
jmp 0x44b722
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test byte [0x4a5d5c], 1
mov ebx, eax
jne 0x44b752
or dword [0x4a5d5c], 1
push str.GetProcessImageFileNameA
push str.psapi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4a5d58], eax
jmp 0x44b757
mov eax, dword [0x4a5d58]
test ebx, ebx
jne 0x44b854
test eax, eax
je 0x44b854
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x44b854
cmp byte [esp + 0x11c], 0
je 0x44b7c9
push 0x5c
push edi
call fcn.00480cae
add esp, 8
test eax, eax
je 0x44b854
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x44b7a0
sub ecx, esi
push ecx
inc eax
push eax
push edi
call fcn.0047f980
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
mov word [esp + 0x11], 0x3a
mov byte [esp + 0x10], 0x41
push 0x104
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov esi, eax
cmp esi, 2
jbe 0x44b80d
sub esi, 2
push esi
lea edx, [esp + 0x18]
push edi
push edx
call fcn.00480eeb
add esp, 0xc
test eax, eax
jne 0x44b80d
cmp byte [esi + edi], 0x5c
je 0x44b82f
mov al, byte [esp + 0x10]
inc al
mov byte [esp + 0x10], al
cmp al, 0x5a
jle 0x44b7d5
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
mov al, byte [esp + 0x10]
mov cl, byte [esp + 0x11]
sub ebx, esi
lea edx, [ebx + 1]
push edx
add esi, edi
mov byte [edi], al
mov byte [edi + 1], cl
push esi
add edi, 2
push edi
call fcn.0047f980
add esp, 0xc
add ebx, 2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
Function at 0x44ea50
Capabilities:
Delete file

Disassembly:
sub esp, 0x130
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x44eb04
cmp byte [eax], bl
je 0x44eb04
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x44ea86
sub eax, edx
cmp eax, ebx
je 0x44eaa0
cmp byte [esp + eax + 0x2b], 0x5c
lea eax, [esp + eax + 0x2b]
jne 0x44eaa0
mov byte [eax], bl
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x44eaa7
sub eax, edx
mov byte [esp + eax + 0x2d], bl
lea edx, [esp + 8]
lea eax, [esp + 0x2c]
mov ecx, 0x4054
push edx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x26], ebx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 3
mov word [esp + 0x1c], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
setne al
movzx ecx, al
push ecx
push esi
call fcn.0042cc60
pop ebx
add esp, 0x130
ret
mov edx, dword [0x49f440]
cmp byte [edx + 0xe4], bl
jne 0x44eb2d
mov eax, dword [0x4a3434]
push eax
or eax, 0xffffffff
mov ecx, 0x493f18
call fcn.004011f0
pop ebx
add esp, 0x130
ret
push 0x4927f1
push ebx
push 0x493f18
mov ecx, esi
call fcn.0042cb70
pop ebx
add esp, 0x130
ret
Function at 0x44ec00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4a2bd0]
sub esp, 0x8c
push ebx
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
push 0
mov edi, eax
call fcn.0046f180
test edi, edi
je 0x44ed3a
cmp byte [edi], 0
je 0x44ed3a
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x44ec62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x49f440]
cmp byte [ecx + 0xe4], 0
mov dword [ecx + 0x30], eax
jmp 0x44ed4d
push esi
call fcn.0047ef79
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x44ed10
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4962f0
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x44ed10
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
mov esi, 0x80
lea edi, [esp + 0x2c]
call fcn.0046c720
add esp, 0x14
push ebx
call fcn.0047edd8
mov eax, dword [0x4a3434]
mov edx, dword [0x49f440]
add esp, 4
push eax
or eax, 0xffffffff
mov ecx, 0x492868
mov dword [edx + 0x30], 0
call fcn.004011f0
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
mov ecx, dword [0x4a2bd0]
call fcn.0046f180
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x49f440]
push ebx
mov dword [edx + 0x30], eax
call fcn.0047edd8
mov eax, dword [ebp + 8]
add esp, 4
push eax
call fcn.0042f070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x49f440]
cmp byte [eax + 0xe4], 0
mov dword [eax + 0x30], 0x57
jne 0x44ed6c
mov ecx, dword [0x4a3434]
push ecx
or eax, 0xffffffff
mov ecx, 0x493f18
call fcn.004011f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push 0x4927f1
push 0
push 0x493f18
call fcn.0042cb70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44ed90
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
sub esp, 0x234
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x104
push edx
call esi
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44edb6
sub eax, edx
je 0x44edce
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x44edce
mov byte [eax], cl
mov edx, dword [esp + 0x23c]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x134]
push ecx
push 0x104
push edx
call esi
lea eax, [esp + 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44edf4
sub eax, edx
je 0x44ee12
cmp byte [esp + eax + 0x12f], 0x5c
lea eax, [esp + eax + 0x12f]
jne 0x44ee12
mov byte [eax], cl
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x44ee45
test al, 0x10
je 0x44ee45
lea ecx, [esp + 0x130]
push ecx
call esi
cmp eax, 0xffffffff
je 0x44ee4f
test al, 0x10
je 0x44ee4f
cmp byte [esp + 0x240], 0
jne 0x44ee6b
xor al, al
pop esi
add esp, 0x234
ret
lea edx, [esp + 0x130]
push edx
call fcn.0044f7a0
add esp, 4
test al, al
jne 0x44ee6b
pop esi
add esp, 0x234
ret
lea eax, [esp + 0x28]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x44ee70
mov ecx, dword [str..]
mov dl, byte [0x498150]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44ee90
sub eax, edx
mov byte [esp + eax + 0x29], cl
lea eax, [esp + 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44eea7
sub eax, edx
mov byte [esp + eax + 0x131], cl
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
lea eax, [esp + 0x28]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x130]
mov edx, 0x614
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 2
mov word [esp + 0x1c], dx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop esi
add esp, 0x234
ret
Function at 0x44ef20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x234
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x104
push edx
call esi
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44ef46
sub eax, edx
je 0x44ef5e
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x44ef5e
mov byte [eax], cl
mov edx, dword [esp + 0x23c]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x134]
push ecx
push 0x104
push edx
call esi
lea eax, [esp + 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44ef84
sub eax, edx
je 0x44efa2
cmp byte [esp + eax + 0x12f], 0x5c
lea eax, [esp + eax + 0x12f]
jne 0x44efa2
mov byte [eax], cl
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x44efd5
test al, 0x10
je 0x44efd5
lea ecx, [esp + 0x130]
push ecx
call esi
cmp eax, 0xffffffff
je 0x44efdf
test al, 0x10
je 0x44efd5
cmp edi, 1
je 0x44efdf
cmp edi, 2
je 0x44efdf
xor al, al
pop esi
add esp, 0x234
ret
lea edx, [esp + 0x130]
push edx
lea edx, [esp + 0x2c]
call fcn.0044f8b0
add esp, 4
test al, al
je 0x44f027
lea eax, [esp + 0x130]
push 1
push eax
lea edx, [esp + 0x30]
call fcn.0044ed90
add esp, 8
test al, al
je 0x44efd5
push 1
lea edx, [esp + 0x2c]
call fcn.0044f0d0
add esp, 4
pop esi
add esp, 0x234
ret
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44f030
sub eax, edx
mov byte [esp + eax + 0x29], cl
lea eax, [esp + 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44f047
sub eax, edx
mov byte [esp + eax + 0x131], cl
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
lea ecx, [esp + 0x28]
lea edx, [esp + 0x130]
mov eax, 0x614
mov dword [esp + 8], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 1
mov word [esp + 0x18], ax
cmp edi, 2
jne 0x44f0b2
mov ecx, 0x615
mov word [esp + 0x18], cx
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop esi
add esp, 0x234
ret
Function at 0x44f0d0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
sub esp, 0x12c
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x44f0f6
sub eax, edx
cmp eax, ebx
je 0x44f110
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x44f110
mov byte [eax], bl
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x44f124
test al, 0x10
jne 0x44f12e
xor al, al
pop ebx
add esp, 0x12c
ret
cmp byte [esp + 0x134], bl
jne 0x44f14f
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
pop ebx
add esp, 0x12c
ret
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x44f156
sub eax, edx
mov byte [esp + eax + 0x29], bl
lea ecx, [esp + 4]
lea edx, [esp + 0x28]
mov eax, 0x614
push ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 3
mov word [esp + 0x18], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop ebx
add esp, 0x12c
ret
Function at 0x44f7a0
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 0x44f823
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x44f80e
dec eax
jne 0x44f830
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44f7c7
sub eax, edx
cmp eax, 0x104
ja 0x44f830
inc eax
call fcn.00488660
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 0x44f7e5
push 0x5c
push esi
call fcn.00480cae
add esp, 8
test eax, eax
je 0x44f830
push esi
mov byte [eax], 0
call fcn.0044f7a0
add esp, 4
test al, al
je 0x44f830
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 0x44f830
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 0x44f840
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x144
push 0x2a
push esi
call fcn.0047fd91
add esp, 8
test eax, eax
jne 0x44f878
push 0x3f
push esi
call fcn.0047fd91
add esp, 8
test eax, eax
jne 0x44f878
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
add esp, 0x144
ret
lea eax, [esp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x44f891
xor al, al
add esp, 0x144
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
add esp, 0x144
ret

Function at 0x44f9c0
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 0x44f9e1
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 0x44f9db
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

Function at 0x44fa40
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x44fa91
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x44fa91
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x44fa91
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret
Function at 0x45f3b0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [eax + 4]
test eax, eax
je 0x45f3c0
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret

Function at 0x45f3d0
Capabilities:
Hide graphical window

Disassembly:
cmp dword [eax + 0x24], 0
mov eax, dword [eax + 4]
jne 0x45f3ec
test eax, eax
je 0x45f3ff
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret
push 0
push 0x2af80006
push 0x414
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
ret

Function at 0x45f440
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
cmp dword [edi + 4], 0
push ebx
push esi
je 0x45f5a8
xor ebx, ebx
cmp dword [edi + 0x10], ebx
jbe 0x45f48b
xor esi, esi
mov eax, dword [edi + 0x18]
cmp dword [eax + esi + 8], 0
je 0x45f482
cmp byte [eax + esi + 4], 6
je 0x45f482
mov edx, dword [esi + eax + 8]
lea ecx, [esi + eax]
push edx
push edi
mov eax, str.Submit
call fcn.0045f650
inc ebx
add esi, 0x14
cmp ebx, dword [edi + 0x10]
jb 0x45f45e
xor esi, esi
xor ebx, ebx
cmp esi, dword [edi + 0x10]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
je 0x45f4c2
mov eax, dword [edi + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x20000
je 0x45f511
mov eax, 1
cmp dword [esp + 0x10], eax
jne 0x45f4fe
cmp dword [esp + 0xc], eax
jle 0x45f4fe
cmp ebx, 0xffffffff
jne 0x45f4da
xor ebx, ebx
push 0xa
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.0047ea52
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0046f180
cmp esi, dword [edi + 0x10]
je 0x45f596
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov edx, dword [edi + 0x18]
mov eax, dword [esp + 0x14]
cmp byte [eax + edx + 4], 6
jne 0x45f57f
mov esi, dword [eax + edx + 8]
inc dword [esp + 0xc]
test esi, esi
je 0x45f533
inc dword [esp + 0x10]
mov dword [esp + 0x18], esi
mov ecx, dword [eax + edx]
push 0
push 0
push pe_nt_image_headers32
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x45f569
test ebx, ebx
je 0x45f554
or ebx, 0xffffffff
jmp 0x45f558
mov ebx, dword [esp + 0xc]
test esi, esi
je 0x45f57f
push 1
push 0
push 0xffffffffffffffff
push 0x493f18
jmp 0x45f578
test esi, esi
je 0x45f57f
push 1
push 0
push 0xffffffffffffffff
push 0x492868
mov ecx, esi
call fcn.0046f180
mov esi, dword [esp + 0x1c]
add dword [esp + 0x14], 0x14
inc esi
mov dword [esp + 0x1c], esi
cmp esi, dword [edi + 0x10]
jbe 0x45f4a6
cmp byte [ebp + 8], 0
je 0x45f5a8
mov edx, dword [edi + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x461ee0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, eax
mov al, byte [edi]
xor bl, bl
mov byte [esp + 0xf], bl
test al, al
je 0x461f19
cmp al, 0x21
je 0x461f0a
cmp al, 0x2b
je 0x461f05
cmp al, 0x5e
jne 0x461f15
or bl, 2
jmp 0x461f0d
or bl, 1
jmp 0x461f0d
or bl, 4
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x461ef4
mov byte [esp + 0xf], bl
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov cl, byte [edi]
test cl, cl
je 0x46200a
cmp byte [edi + 1], 0
jne 0x461f74
mov byte [esp + 0x10], cl
cmp cl, 0xa
jne 0x461f41
mov al, 0xd
jmp 0x461fff
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanExA]
movzx ecx, ax
mov eax, ecx
shr eax, 8
cmp al, 0xff
jne 0x461f65
cmp cl, 0xff
jne 0x461f65
xor al, al
jmp 0x461fff
and al, 0x38
neg al
sbb al, al
not al
and al, cl
jmp 0x461fff
movzx esi, cl
test esi, 0xffffff80
jne 0x461f91
push 2
push esi
call fcn.004802de
add esp, 8
test eax, eax
je 0x461f91
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x56
jne 0x461fcd
movzx esi, byte [edi + 1]
test esi, 0xffffff80
jne 0x461fb5
push 2
push esi
call fcn.004802de
add esp, 8
test eax, eax
je 0x461fb5
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x4b
jne 0x461fcd
push 0x10
lea eax, [edi + 2]
push 0
push eax
call fcn.00480724
add esp, 0xc
jmp 0x461fff
xor esi, esi
nop
mov eax, dword [esi*8 + 0x4a01c8]
push edi
push eax
call fcn.0047edc1
add esp, 8
test eax, eax
je 0x462013
inc esi
cmp esi, 0x6d
jl 0x461fd0
mov eax, edi
call fcn.00411480
movzx ecx, ax
test cx, cx
je 0x46200a
call fcn.00411be0
mov byte [esp + 0x10], al
cmp byte [esp + 0x10], 0
jne 0x462020
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov cl, byte [esi*8 + 0x4a01cc]
mov byte [esp + 0x10], cl
jmp 0x462003
mov eax, edi
call fcn.00411480
movzx eax, ax
test ax, ax
jne 0x462045
mov edx, dword [esp + 0x10]
push edx
xor bl, bl
call fcn.00411960
mov bl, byte [esp + 0x13]
add esp, 4
movzx eax, ax
test eax, 0x100
je 0x46204f
or bl, 8
movzx ecx, byte [esp + 0x10]
movzx eax, bl
pop edi
shl eax, 8
pop esi
or eax, ecx
pop ebx
add esp, 8
ret