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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40995b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409974
push ebx
push 0x409980
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409908
mov al, 0x62
call fcn.00409460
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040985c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409911
call fcn.0040985c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409962
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409a14
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
jmp 0x409abd
cmp dword [esi + 0x10], 0x1000
jne 0x409aa9
test byte [esi + 0x15], 1
jne 0x409aa9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409a68
cmp eax, 2
je 0x409a68
cmp eax, 0x10
je 0x409a68
cmp eax, 0x20
jne 0x409a7d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409a7d
mov bl, 1
xor ebp, ebp
jmp 0x409a8e
mov eax, dword [esi]
add eax, ebp
call fcn.00409a0c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409a81
test bl, bl
je 0x409aa9
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409a40
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43cf42
Capabilities:
Encode data using xor

Disassembly:
push 0x43ccda
pop edi
add eax, 0x8e3c4991
dec eax
call fcn.0043cf73
xor dword [ecx], edi
inc ecx
or ebx, eax
add ebx, 0x61ac0090
cmp ecx, esi
jne fcn.0043cf42
push 0x39ffff94
mov ebx, dword [esp]
add esp, 4
add eax, ebx
ret
Function at 0x401d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448c10
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x45f024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401df7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401df7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401dd7
cmp esi, edx
jae 0x401df7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x401dc5
cmp esi, edx
jae 0x401df7
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405ee0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor ecx, ecx
test esi, esi
je 0x405f0a
mov edx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x405ef4
pop edi
mov eax, edx
pop esi
ret
mov eax, dword [esp + 8]
pop esi
ret

Function at 0x406010
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x44941d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x45f024]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x4558e8
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
lea eax, [ebp]
push 0x105
push eax
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4060f7
cmp eax, 0x105
jae 0x4060f7
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401fc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push 1
push 0x45790c
call fcn.004027c0
push 9
push str.ntdll.dll
lea ecx, [ebp - 0x10]
call fcn.004027c0
mov edi, dword [ebp - 0x10]
push 0x5c
push edi
call fcn.004294a1
add esp, 8
test eax, eax
jne 0x4060c9
xor edi, edi
jmp 0x4060d6
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4060f9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4060f9
xor edi, edi
mov eax, dword [esi + 4]
cmp edi, eax
je 0x40610c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [esi + 4], edi
mov eax, edi
test eax, eax
jne 0x406119
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 8], eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.0042817f
lea esp, [ebp + 0x210]
pop ebp
ret 8
Function at 0x40c120
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a39f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45f024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call fcn.00415ef0
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x40c1d1
push eax
push esi
call fcn.00415dae
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.004120c3
int3
Function at 0x4113f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44af6d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x45f024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], 0x455d30
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
mov eax, edi
cmp word [edi], cx
je 0x41146a
nop dword [eax + eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x411460
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ecx + ecx]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x455d30
test esi, esi
je 0x4114a3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411a10
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b167
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x45f024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x288]
mov esi, eax
call fcn.00404bf0
mov dword [ebp - 4], 0
push 0x1000
call fcn.00404e50
lea ecx, [ebp - 0x288]
call fcn.00404270
mov edi, eax
mov edx, 0x457ec8
push 0
push esi
mov ecx, edi
mov dword [ebp - 0x280], edi
call fcn.004085b0
add esp, 8
mov ecx, esi
call fcn.004086a0
xor ecx, ecx
cmp word [eax], 0x22
sete cl
lea ecx, [ecx*2 + 0x20]
movzx edx, cx
lea ecx, [eax + 2]
call fcn.00408580
lea ecx, [eax + 2]
call fcn.004086a0
mov esi, eax
mov ecx, esi
call fcn.00408b20
test al, al
je 0x411acd
mov edx, edi
mov ecx, esi
call fcn.00408710
mov esi, eax
jmp 0x411c16
push ecx
lea ecx, [ebp - 0x2a4]
call fcn.00410b70
mov byte [ebp - 4], 1
lea eax, [ebp - 0x218]
push eax
lea edx, [ebp - 0x2a4]
mov ecx, esi
call fcn.00410e90
add esp, 4
lea ecx, [ebp - 0x230]
push dword [ebp - 0x2a4]
call fcn.004029d0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x260]
call fcn.00409090
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x230]
call fcn.00403cd0
lea eax, [ebp - 0x2ac]
mov ecx, 0x461784
push eax
call fcn.00404430
lea ecx, [ebp - 0x260]
mov edi, dword [eax]
mov esi, dword [eax + 4]
lea eax, [ebp - 0x278]
push eax
call fcn.00409520
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2b4]
push ecx
mov ecx, eax
call fcn.00404430
push esi
push edi
xor cl, cl
push dword [eax + 4]
push dword [eax]
call fcn.0040ab90
add esp, 0x10
mov byte [ebp - 0x279], al
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x278]
call fcn.00403cd0
cmp byte [ebp - 0x279], 0
je 0x411bcc
push dword [ebp - 0x2a0]
lea ecx, [ebp - 0x248]
call fcn.004029d0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.00411740
mov esi, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x248]
call fcn.00403cd0
cmp esi, 0xffff
je 0x411bf8
mov edi, dword [ebp - 0x280]
lea ecx, [ebp - 0x2a4]
mov edx, edi
call fcn.00408da0
cmp word [ebp - 0x218], 0
mov esi, eax
je 0x411bf8
lea edx, [ebp - 0x218]
mov ecx, edi
call fcn.004113f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x260]
call fcn.00403fd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2a4]
call fcn.00411c20
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x412154
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00412130
pop esi
leave
ret 8
Function at 0x427c38
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00437a6e
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x427c77
sub eax, 1
je 0x427c72
sub eax, 1
je 0x427c6e
xor eax, eax
leave
ret
push 3
jmp 0x427c79
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x428e6d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x428eac
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x428eac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x428eac
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x428eac
cmp dword [ecx + 0x74], 0xe
jbe 0x428eac
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x43d0db
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x451d50
push 0x451d48
push str.FlsAlloc
push 0x1e
call fcn.0043cf48
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43d10f
push dword [ebp + 8]
mov ecx, esi
call dword [0x44d26c]
call esi
jmp 0x43d115
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43d159
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x451d60
push 0x451d58
push str.FlsGetValue
push 0x20
call fcn.0043cf48
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43d190
push dword [ebp + 8]
mov ecx, esi
call dword [0x44d26c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x43f6cf
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45f024]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x43f71a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0043f86e
test al, al
jne 0x43f714
sub edx, 2
cmp edx, edi
jne 0x43f6fa
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x43f73c
lea eax, [edi + 2]
cmp edx, eax
je 0x43f73c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043f61b
add esp, 0x10
jmp 0x43f836
push esi
lea ecx, [ebp - 0x255]
call fcn.0043f86e
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43f77f
push dword [ebp - 0x25c]
jmp 0x43f72c
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x43f7bc
cmp word [ebp - 0x226], 0
je 0x43f7dd
cmp word [ebp - 0x226], ax
jne 0x43f7bc
cmp word [ebp - 0x224], 0
je 0x43f7dd
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043f61b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43f829
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x43f796
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x43f811
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43f836
push 0x43f44b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00445910
add esp, 0x10
jmp 0x43f806
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042817f
leave
ret

Function at 0x44015a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x44016b
pop esi
ret
push ebx
push edi
push esi
call fcn.00440123
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0043b639
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x440193
push ebx
push esi
push edi
call fcn.00429940
add esp, 0xc
push 0
call fcn.0043af38
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x440557
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004401a8
Function at 0x448690
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4486bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4486bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x438c8f
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
add edx, edi
call fcn.00438cc0
sub edi, edx
sub edx, edi
add edx, 0xce5c0f14
xor dword [eax], ecx
add edx, 0x3c20b939
inc eax
and edx, edi
dec edx
or edi, edx
cmp eax, esi
jne fcn.00438c8f
inc edi
ret

Function at 0x4013f6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x150
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
call esi
push edx
mov dword [ebp - 0x124], eax
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x118], 6
push ecx
push ecx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push edx
push edx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x11c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push ecx
push ecx
mov dword [esp], 0
mov dword [ebp - 0x120], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
lea eax, [ebp - 0x134]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push eax
mov dword [esp], 0
call esi
lea esi, [ebp - 0x10c]
push edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push ecx
push ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1a
mov dword [esp], 0
call dword [sym.imp.SHELL32.DLL_SHGetFolderPathA]
sub esp, 0x14
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
sub esp, 0x1c
call ebx
mov dword [esp], esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 5]
push esi
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x401628
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 1
call fcn.004013f6
test eax, eax
jne 0x4016c2
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x40212e
sub eax, 0x4016cc
mov dword [esp], 0x4016cc
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x4016c2
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.0040136e
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.0040159c
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b400
mov dword [esp], 0x40300c
call fcn.00401e31
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x4018e8
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov al, byte [ebp + 8]
cmp al, 7
jb 0x40193d
sub al, 7
je 0x4019b1
dec al
je 0x40190b
sub al, 2
je 0x401935
sub al, 3
je 0x401927
jmp 0x40193d
mov eax, dword [0x406220]
cmp eax, dword [0x4061a0]
jle 0x4019b1
dec dword [0x406220]
jmp 0x4019b1
mov edi, dword [0x4061a0]
mov dword [0x406220], edi
jmp 0x4019b1
inc dword [0x406210]
jmp 0x4019b1
mov word [ebp - 8], 1
mov word [ebp - 6], 1
mov word [ebp - 0xc], 0
mov word [ebp - 0xa], 0
movzx ax, byte [ebp + 8]
mov word [ebp - 4], ax
movzx ax, byte [0x406160]
mov word [ebp - 2], ax
mov eax, dword [0x406220]
dec eax
mov word [ebp - 0x14], ax
mov eax, dword [0x406210]
dec eax
mov word [ebp - 0x12], ax
mov eax, dword [0x406220]
dec eax
mov word [ebp - 0x10], ax
mov eax, dword [0x406210]
dec eax
mov word [ebp - 0xe], ax
lea edi, [ebp - 0x14]
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [0x4060d0]
call sub.kernel32.dll_WriteConsoleOutputA
inc dword [0x406220]
mov eax, dword [0x406220]
cmp eax, dword [0x4061c0]
jle 0x4019df
mov edi, dword [0x4061a0]
mov dword [0x406220], edi
inc dword [0x406210]
jmp 0x4019df
push 1
call fcn.00401ad8
dec dword [0x406210]
mov eax, dword [0x406210]
cmp eax, dword [0x4061d0]
jg 0x4019d2
leave
ret 4
Function at 0x1031f7b
Capabilities:
Create thread
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 8]
push esi
call fcn.01031a68
xor esi, esi
cmp eax, esi
jne 0x1032068
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 8]
push 0x1031aff
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1031fdb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
test eax, eax
jg 0x1031fca
call esi
jmp 0x1032068
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x1032068
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov ebx, 0x4ff
jmp 0x103201b
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push esi
push esi
lea eax, [ebp - 0x28]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1031fea
mov ecx, 0x103ee08
call sub.MFC42u.DLL_CCmdTarget::RestoreWaitCursor
push ebx
push 0xffffffffffffffff
push esi
lea eax, [ebp - 4]
push eax
push 1
call edi
cmp eax, 1
je 0x1031ffe
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 8], 0x103
pop edi
pop ebx
jne 0x103205c
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebp - 8], 0x80004005
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
leave
ret 4

Function at 0x10350e7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1007478
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x103513f
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x10074b4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1035132
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1035141
xor eax, eax
pop esi
leave
ret 4