joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4033a0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push eax
push 0x20006
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4033d8
lea ecx, [esp + 0x10]
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4033d8
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
ret

Function at 0x4034a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push esi
lea eax, [esp + 0x14]
push edi
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40355f
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push edi
push edx
call ebx
test eax, eax
jne 0x403554
cmp dword [esp + 0xc], 1
jne 0x403554
mov eax, dword [esp + 0x14]
push eax
call fcn.00412e0e
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push esi
push edx
push 0
push edi
push eax
call ebx
mov ecx, dword [esp + 0x18]
mov edi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
push esi
je 0x403538
call fcn.00412e37
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x24]
call fcn.00413a7b
push esi
call fcn.00412e37
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x4085e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x426178
cmp edx, dword [eax]
je 0x408607
add eax, 8
inc ecx
cmp eax, 0x426208
jl 0x4085f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x426178]
jne 0x408735
mov eax, dword [0x428bbc]
cmp eax, 1
je 0x40870f
test eax, eax
jne 0x408638
cmp dword [0x425cbc], 1
je 0x40870f
cmp edx, 0xfc
je 0x408735
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40866f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407020
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407110
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4086b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407110
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x420dd4
push edi
call fcn.00409da0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407020
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407030
lea eax, [ebp - 0xa0]
push 0x420db4
push eax
call fcn.00407030
push dword [esi + 0x42617c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407030
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409d17
add esp, 0x2c
pop edi
jmp 0x408735
lea eax, [ebp + 8]
lea esi, [esi + 0x42617c]
push 0
push eax
push dword [esi]
call fcn.00407110
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 0x40e3f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00405590
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40e4bb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40e4bb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40e46e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40e479
or bh, 8
and edi, 0x8000000
je 0x40e494
mov eax, dword [0x42a35c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40e4bb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40e8bb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40e8df
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40e8fa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x411f8e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x411fd0
call fcn.0041b412
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x411fd0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x411fc7
xor eax, eax
jmp 0x411fd8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00411fde
pop edi
pop esi
pop ebx
ret 4

Function at 0x413319
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41cfc8
call fcn.00404a38
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0041b412
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x413358
call fcn.0041b412
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x413366
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x413374
or eax, 0xffffffff
jmp 0x41345c
mov ecx, esi
call fcn.0041328f
mov dword [ebp - 0x14], eax
call fcn.0041031c
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4133ab
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4133ab
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004102d0
push dword [ebp - 0x14]
call fcn.0040fe1d
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0041301c
cmp eax, edi
je 0x41341e
test byte [esi + 0x24], 0x10
je 0x4133ec
push 4
mov ecx, esi
pop ebx
call fcn.0041271b
test ah, 1
je 0x4133e4
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004120e0
cmp dword [esi + 0x1c], edi
je 0x41341e
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004127a7
jmp 0x41341e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x413432
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41344b
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41344b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004132c9
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4140a7
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x4140d7
push edi
call ebx
push eax
call fcn.00415079
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x414101
test byte [ebp - 4], 1
je 0x414101
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x414101
push edi
call ebx
push eax
call fcn.00415079
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x4141a7
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00413ff4
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x414133
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00413ff4
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x414149
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00413ff4
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x414173
push 0
call ebx
push eax
call fcn.00415079
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x414191
push eax
call ebx
push eax
call fcn.00415079
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4141a5
push eax
call ebx
push eax
call fcn.00415079
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x4141ce
test byte [ebp - 4], 1
jne 0x4141ce
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4141ce
push edi
call ebx
push eax
call fcn.00415079
pop edi
pop ebx
leave
ret 8

Function at 0x41bf9f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41bfcd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41bfeb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041bf05
jmp 0x41bfeb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41bfeb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041bf05
test edi, edi
mov eax, edi
jne 0x41bfd5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x41c748
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x41c7f8
mov ecx, 0x428bb0
call fcn.0041c08c
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x41c7d6
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x41c7b4
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41c7b4
push ebx
push edi
push eax
call fcn.00415bbb
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.00413a7b
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x463550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464eeb
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x51481c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x230]
push ecx
push edx
push eax
mov byte [ebp - 4], 1
call fcn.00430e90
add esp, 0xc
cmp eax, edi
je 0x4636f8
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 0x22c]
je 0x4636f8
lea ecx, [ebp - 0x230]
push 0x4019d8
push ecx
call fcn.00431e20
add esp, 8
push 0x4019c8
push 0x4019b0
call dword [0x401188]
push eax
call dword [fcn.004011ac]
cmp eax, edi
je 0x4636f8
push esi
call eax
cmp eax, edi
je 0x46367d
push esi
call dword [0x401068]
test eax, eax
jne 0x46367d
push 0x206
lea eax, [ebp - 0x21a]
xor edx, edx
push edi
push eax
mov word [ebp - 0x21c], dx
call fcn.00454bd0
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
call dword [0x401064]
test eax, eax
je 0x4636f8
lea edx, [ebp - 0x21c]
push edx
push edi
push edi
mov eax, edx
push eax
call dword [0x401060]
test eax, eax
je 0x4636f8
push 1
lea ecx, [ebp - 0x21c]
push ecx
push esi
call dword [0x40105c]
test eax, eax
je 0x4636f8
push 0x4019a8
lea edx, [ebp - 0x220]
push esi
push edx
mov dword [ebp - 0x220], edi
call fcn.004567f8
add esp, 0xc
test eax, eax
jne 0x4636f8
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x4636f8
mov ecx, dword [ebp - 0x22c]
push eax
mov eax, dword [ebp - 0x230]
sub ecx, eax
push ecx
push 1
push eax
call fcn.004566c0
mov edx, dword [ebp - 0x220]
push edx
call fcn.0045650d
mov eax, dword [ebp - 0x220]
mov esi, dword [ebp - 0x22c]
sub esi, dword [ebp - 0x230]
push eax
call fcn.0045631e
mov ecx, dword [ebp - 0x220]
xor ebx, ebx
cmp esi, eax
push ecx
sete bl
call fcn.00456116
add esp, 0x1c
mov eax, dword [ebp - 0x230]
cmp eax, edi
je 0x463723
push eax
call fcn.00454a31
add esp, 4
jmp 0x463723
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004546bb
mov esp, ebp
pop ebp
ret
Function at 0x4638b0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464f68
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x51481c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x463a97
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4638f3
sub eax, edx
sar eax, 1
je 0x463a97
push edi
call dword [0x4011c4]
test eax, eax
je 0x463a97
push 0x409
push 0x65
push ebx
call dword [0x401194]
mov esi, eax
cmp esi, ebx
je 0x463a89
push esi
push ebx
call dword [0x4011a0]
mov edi, eax
cmp edi, ebx
je 0x463a97
push esi
push ebx
call dword [int.00401198]
cmp eax, ebx
je 0x463a97
push eax
call dword [0x40119c]
cmp eax, ebx
je 0x463a97
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x2c]
push ecx
push edi
push eax
mov byte [ebp - 4], 1
call fcn.00430e90
add esp, 0xc
cmp eax, ebx
je 0x463a70
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x28]
je 0x463a70
mov edi, dword [ebp + 8]
push 0x4019a8
lea eax, [ebp - 0x18]
push edi
push eax
mov dword [ebp - 0x18], ebx
call fcn.004567f8
add esp, 0xc
test eax, eax
jne 0x463a70
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x463a70
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
push ecx
sub esi, eax
push esi
push 1
push eax
call fcn.004566c0
mov edx, dword [ebp - 0x18]
xor ecx, ecx
cmp esi, eax
sete cl
push edx
mov esi, ecx
call fcn.00456116
add esp, 0x14
cmp esi, ebx
je 0x463a70
mov eax, dword [0x515720]
mov edx, dword [eax + 0xc]
mov ecx, 0x515720
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0x6b
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004292d0
cmp eax, ebx
je 0x463a68
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 0xc], ebx
je 0x463a68
push edi
lea ecx, [ebp + 8]
call fcn.00429b00
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0044f480
push esi
lea ecx, [ebp + 8]
call fcn.0044eb40
cmp eax, ebx
je 0x463a60
mov eax, dword [ebp + 8]
push eax
push edi
call dword [0x40106c]
test eax, eax
je 0x463a60
mov ecx, dword [ebp + 8]
push 1
push ebx
push ebx
push ecx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x14], 1
lea ecx, [ebp + 8]
call fcn.0044dc10
lea ecx, [ebp - 0x1c]
call fcn.004264f0
lea ecx, [ebp - 0x2c]
call fcn.0042e5e0
jmp 0x463a97
push edi
call dword [0x401068]
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
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 0x43d3a2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004351c6
and dword [ebp - 4], 0
cmp dword [0x460c78], 0
mov ebx, eax
jne 0x43d453
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43d504
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x43d504
push eax
call fcn.00435154
mov dword [esp], 0x44c4cc
push edi
mov dword [0x460c78], eax
call esi
push eax
call fcn.00435154
mov dword [esp], 0x44c4b8
push edi
mov dword [0x460c7c], eax
call esi
push eax
call fcn.00435154
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x460c80], eax
call esi
push eax
call fcn.00435154
pop ecx
mov dword [0x460c88], eax
test eax, eax
je 0x43d453
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00435154
pop ecx
mov dword [0x460c84], eax
mov eax, dword [0x460c84]
cmp eax, ebx
je 0x43d4ab
cmp dword [0x460c88], ebx
je 0x43d4ab
push eax
call fcn.004351cf
push dword [0x460c88]
mov esi, eax
call fcn.004351cf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43d4ab
test edi, edi
je 0x43d4ab
call esi
test eax, eax
je 0x43d4a2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43d4a2
test byte [ebp - 0xc], 1
jne 0x43d4ab
or dword [ebp + 0x10], 0x200000
jmp 0x43d4e4
mov eax, dword [0x460c7c]
cmp eax, ebx
je 0x43d4e4
push eax
call fcn.004351cf
pop ecx
test eax, eax
je 0x43d4e4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43d4e4
mov eax, dword [0x460c80]
cmp eax, ebx
je 0x43d4e4
push eax
call fcn.004351cf
pop ecx
test eax, eax
je 0x43d4e4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x460c78]
call fcn.004351cf
pop ecx
test eax, eax
je 0x43d504
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43d506
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401270
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x418be4]
test eax, eax
jne 0x4012ad
xor ecx, ecx
mov eax, ecx
mov edx, 8
test al, 0x80
je 0x40128f
add eax, eax
xor eax, 0x107
jmp 0x401291
shl eax, 1
dec edx
jne 0x401282
mov byte [ecx + 0x418ae0], al
inc ecx
cmp ecx, 0x100
jb 0x40127b
mov dword [0x418be4], 1
mov ecx, dword [esp + 8]
xor al, al
mov edx, ecx
dec ecx
test edx, edx
mov byte [0x418be0], al
je 0x4012e9
lea edx, [ecx + 1]
mov ecx, dword [esp + 4]
push esi
mov esi, dword [0x418be0]
xor eax, eax
mov al, byte [ecx]
and esi, 0xff
xor eax, esi
inc ecx
dec edx
mov al, byte [eax + 0x418ae0]
mov byte [0x418be0], al
jne 0x4012c7
pop esi
ret
Function at 0x407000
Capabilities:
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0x10c
push ebx
push esi
lea eax, [esp + 8]
push edi
xor ebx, ebx
push eax
push 0xf003f
push ebx
push str.SOFTWAREHumongous_EntertainmentMoonbasePath
push 0x80000002
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40705c
mov ebx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push 0x4254b4
push edx
push eax
push 0x4256e0
push ebx
mov dword [esp + 0x24], 0x104
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x4070be
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.HEGAMES.INI
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x14]
mov ecx, edx
push eax
push 0x104
push 0x4254b4
and ecx, 3
push 0x4256e0
push str.GameResourcePath
rep movsb byte es:[edi], byte [esi]
push str.Moonbase
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, 0x4254b4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x4255cc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4172f4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x4255cc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
je 0x407119
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10c
ret