joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d40
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x440f7b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x44fb24]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00421811
push 4
mov dword [esp + 0x24], 0
call fcn.0042261e
mov edi, eax
add esp, 4
test edi, edi
je 0x405dc4
call fcn.00421687
mov dword [edi], eax
call fcn.004214bb
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0042142d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405db9
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0042144e
jmp 0x405dc6
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x40aa40
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x440f7b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x44fb24]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00421811
push 4
mov dword [esp + 0x24], 0
call fcn.0042261e
mov edi, eax
add esp, 4
test edi, edi
je 0x40aac4
call fcn.00421687
mov dword [edi], eax
call fcn.004214bb
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0042142d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40aab9
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0042144e
jmp 0x40aac6
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x40b1a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x441058
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x44fb24]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.0040e990
push eax
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x60], 0
call fcn.0040e9e0
add esp, 0x10
push 0x44bbb0
lea eax, [esp + 0x28]
push eax
call fcn.0042232c
int3

Function at 0x40f820
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x441368
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x44fb24]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x44fb24]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov esi, ecx
mov ecx, dword [esp + 8]
push ecx
push edx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], 0
call fcn.0040fd90
mov dword [esp + 0x38], 0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0xc]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
mov ecx, esi
call fcn.0040f8e0
cmp dword [esp + 0x24], 8
jb 0x40f8bc
mov edx, dword [esp + 0x10]
push edx
call fcn.00422251
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00422a4f
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x4141d0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x4141f0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x414206
push 0x80004005
call fcn.00413460
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x414230
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x414248
push 0x80004005
call fcn.00413460
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x414255
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x4148a0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x44fb24]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x41490e
test ecx, ecx
je 0x414900
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x41491c
test ecx, ecx
je 0x4149c1
push ecx
jmp 0x4149bb
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x41498e
jmp 0x414950
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.004148a0
mov edi, eax
test edi, edi
jne 0x4149dd
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x414950
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4149a5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4149c1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00422a4f
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4149ec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4149c3
Function at 0x4174b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x43fe80
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x44fb24]
xor eax, ebp
mov dword [ebp + 0x404], 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, ecx
mov eax, dword [ebp + 0x418]
mov edi, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
mov dword [ebp - 0x14], eax
call dword [0x44f8d0]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x41753d
call fcn.00414050
mov esi, eax
jmp 0x417625
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x417559
call fcn.00414050
jmp 0x41761c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x417572
call fcn.00414050
jmp 0x41761c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x14], esi
jae 0x4175a8
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x417596
lea ecx, [ebp]
call fcn.00414840
lea ecx, [ebp - 0x1c]
call fcn.004147d0
mov eax, 0x8007000e
jmp 0x417642
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00415070
mov dword [ebp - 4], 1
jmp 0x4175d1
mov ebx, dword [ebp]
test ebx, ebx
jne 0x4175df
mov esi, 0x8007000e
jmp 0x41761e
call dword [0x44f8d0]
mov ecx, dword [ebp - 0x20]
push esi
push ebx
push esi
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x417600
call fcn.00414050
jmp 0x41761c
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00416de0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x417640
lea ecx, [ebp]
call fcn.00414840
jmp 0x417640
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00422a4f
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x418570
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x44000b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x44fb24]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push edi
mov eax, dword [0x44fb24]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x258]
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [esp + 0x10]
mov edi, 8
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, dword [esp + 0x250]
push esi
push ecx
push esi
mov ecx, 0x451920
call fcn.00413ca0
lea edx, [esp + 0x34]
push edx
push esi
call fcn.004208b0
lea eax, [esp + 0x3c]
add esp, 8
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], si
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x418620
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
call fcn.00405f80
push 0x17
push str.LanguagesCrashSender_
lea ecx, [esp + 0x20]
mov dword [esp + 0x250], esi
call fcn.00405e80
cmp dword [esp + 0x30], edi
mov eax, dword [esp + 0x1c]
jae 0x418663
lea eax, [esp + 0x1c]
push eax
push str.Language_path__s.
push esi
call fcn.00413800
push eax
call fcn.004203d0
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp dword [esp + 0x30], edi
jae 0x418686
lea eax, [esp + 0x1c]
push eax
call fcn.00401530
add esp, 4
call fcn.004138c0
mov ecx, eax
call fcn.0041e4c0
call fcn.004138c0
mov ecx, eax
call fcn.0041a820
cmp dword [eax + 0x18], edi
jb 0x4186b1
mov eax, dword [eax + 4]
jmp 0x4186b4
add eax, 4
push eax
call fcn.00401520
add esp, 4
call fcn.00413740
mov ecx, eax
call fcn.00420910
mov ecx, dword [esp + 0x25c]
push ecx
push ebx
call fcn.00417fe0
add esp, 8
mov esi, eax
call fcn.00413800
mov ecx, eax
call fcn.0041fda0
mov ecx, 0x451920
call fcn.00416ff0
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x30], edi
jb 0x41870b
mov edx, dword [esp + 0x1c]
push edx
call fcn.00422251
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00422a4f
add esp, 0x23c
ret 0x10
Function at 0x41d2d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x440784
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44fb24]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
xor ebx, ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
lea esi, [edi + 0x10]
lea ecx, [esi + 0x3c]
mov eax, ecx
neg eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ebx
and eax, 3
lea edx, [esi + 0x1003c]
add eax, ecx
mov dword [esp + 0xc8], ebx
mov dword [edx], ebx
mov dword [esi + 0x10040], ebx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], edx
mov eax, dword [esp + 0xd0]
push 1
push 0x40
push 1
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0xd8], 1
call fcn.004036e0
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 4]
mov eax, dword [esp + edx + 0x3c]
test al, 6
mov byte [esp + 0xc8], 2
jne 0x41d452
push 2
push ebx
lea ecx, [esp + 0x3c]
call fcn.00402e40
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 4]
test byte [esp + eax + 0x3c], 6
jne 0x41d3bf
mov ecx, dword [esp + eax + 0x5c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
push 1
push 1
push ebx
lea eax, [esp + 0x28]
push eax
call edx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
jmp 0x41d3ca
mov eax, dword [0x444064]
xor ecx, ecx
mov dword [esp + 0x28], ebx
sub esp, 0x18
lea ebp, [ecx + eax]
mov eax, esp
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2c], esp
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
call fcn.00402db0
push ebx
lea eax, [ebp + 1]
push eax
mov ecx, edi
call fcn.00419d70
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x41d404
mov ecx, dword [edi + 8]
sub ecx, eax
jne 0x41d409
call fcn.004233c2
mov eax, dword [edi + 4]
push ebp
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x40]
call fcn.004046d0
mov ecx, dword [edi + 4]
cmp ecx, ebx
je 0x41d429
mov eax, dword [edi + 8]
sub eax, ecx
cmp ebp, eax
jb 0x41d42e
call fcn.004233c2
mov edx, dword [edi + 4]
mov byte [edx + ebp], bl
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x41d442
mov ecx, dword [edi + 8]
sub ecx, eax
jne 0x41d447
call fcn.004233c2
mov edx, dword [edi + 4]
push edx
mov ecx, esi
call fcn.00413240
lea ecx, [esp + 0x8c]
mov byte [esp + 0xc8], 1
call fcn.00403850
lea eax, [esp + 0x8c]
push eax
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.004217d3
mov eax, edi
add esp, 4
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret 4
Function at 0x420730
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [ecx + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
ret 4

Function at 0x420780
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x4207ae
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x4206b0
push 0
push 0
mov dword [esp + 0x1c], 0
call fcn.004254c1
add esp, 0x18
mov dword [esi + 4], eax
pop esi
pop ecx
ret

Function at 0x420f18
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4519ac], 0
push esi
jne 0x420e8b
call fcn.00420db6
test eax, eax
je 0x420ece
mov eax, dword [0x4519ac]
cmp eax, 1
jne 0x420eac
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x420ece
pop esi
ret
push eax
call dword [0x4519b4]
test eax, eax
jne 0x420f16
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x420ed2
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4519ac]
call dword [0x4519b4]
mov edi, eax
test edi, edi
je 0x420ef9
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x420f15
lea edi, [esi + 0xff0]
push esi
push dword [0x4519ac]
call dword [0x4519b0]
add esi, 0x10
cmp esi, edi
jb 0x420eff
mov eax, esi
pop edi
pop esi
ret
jmp 0x420e78

Function at 0x421136
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44fb24]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004210cb
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00423100
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x421185
cmp dword [ebp - 0x1c], 5
jb 0x42119d
jmp 0x421199
cmp dword [ebp - 0x10], 1
jne 0x42119d
cmp dword [ebp - 0x1c], 4
ja 0x421199
jne 0x42119d
cmp dword [ebp - 0x18], 0
jbe 0x42119d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x444020
call fcn.00413540
test eax, eax
jge 0x4211be
mov byte [0x451860], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00422a4f
add ebp, 0x78
leave
ret

Function at 0x422a4f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44fb24]
jne 0x422a59
repz ret
jmp fcn.0042b85c
Function at 0x42a05b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x450010]
je 0x42a076
inc edi
cmp edi, 0x17
jb 0x42a067
cmp edi, 0x17
jae 0x42a1f6
push ebp
push 3
call fcn.00439998
cmp eax, 1
pop ecx
je 0x42a1c2
push 3
call fcn.00439998
test eax, eax
pop ecx
jne 0x42a0aa
cmp dword [0x44fe04], 1
je 0x42a1c2
cmp ebx, 0xfc
je 0x42a1f5
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x451ce8
push ebp
call fcn.0042b960
add esp, 0xc
test eax, eax
je 0x42a0e0
push esi
push esi
push esi
push esi
push esi
call fcn.004232a2
add esp, 0x14
push 0x104
mov esi, 0x451d01
push esi
push 0
mov byte [0x451e05], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42a124
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042b960
add esp, 0xc
test eax, eax
je 0x42a124
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004232a2
add esp, 0x14
push esi
call fcn.00425be0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42a169
push esi
call fcn.00425be0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x451ffc
push 0x445214
sub ecx, eax
push ecx
push eax
call fcn.00431296
add esp, 0x14
test eax, eax
je 0x42a169
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004232a2
add esp, 0x14
jmp 0x42a16b
xor esi, esi
push 0x445210
push ebx
push ebp
call fcn.004311d6
add esp, 0xc
test eax, eax
je 0x42a18b
push esi
push esi
push esi
push esi
push esi
call fcn.004232a2
add esp, 0x14
push dword [edi*8 + 0x450014]
push ebx
push ebp
call fcn.004311d6
add esp, 0xc
test eax, eax
je 0x42a1ad
push esi
push esi
push esi
push esi
push esi
call fcn.004232a2
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004397db
add esp, 0xc
jmp 0x42a1f5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42a1f5
cmp ebp, 0xffffffff
je 0x42a1f5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x450014]
push dword [esi]
call fcn.00425be0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4397db
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042a30e
xor ebx, ebx
cmp dword [0x452818], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4398b1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x439991
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x439991
push eax
call fcn.0042a2a0
mov dword [esp], 0x4467c0
push edi
mov dword [0x452818], eax
call esi
push eax
call fcn.0042a2a0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45281c], eax
call esi
push eax
call fcn.0042a2a0
mov dword [0x452820], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00427dcd
test eax, eax
pop ecx
pop ecx
je 0x43987f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004232a2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4398b1
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042a2a0
cmp eax, ebx
pop ecx
mov dword [0x452828], eax
je 0x4398b1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042a2a0
pop ecx
mov dword [0x452824], eax
mov eax, dword [0x452824]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x439936
cmp dword [0x452828], ecx
je 0x439936
push eax
call fcn.0042a317
push dword [0x452828]
mov esi, eax
call fcn.0042a317
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x439936
cmp edi, ebx
je 0x439936
call esi
cmp eax, ebx
je 0x439903
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x439903
test byte [ebp - 0x18], 1
jne 0x439936
lea eax, [ebp - 0x10]
push eax
call fcn.00427e04
test eax, eax
pop ecx
je 0x43991e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004232a2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43992d
or dword [ebp + 0x10], 0x200000
jmp 0x439971
or dword [ebp + 0x10], 0x40000
jmp 0x439971
mov eax, dword [0x45281c]
cmp eax, dword [ebp - 8]
je 0x439971
push eax
call fcn.0042a317
cmp eax, ebx
pop ecx
je 0x439971
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x439971
mov eax, dword [0x452820]
cmp eax, dword [ebp - 8]
je 0x439971
push eax
call fcn.0042a317
cmp eax, ebx
pop ecx
je 0x439971
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x452818]
call fcn.0042a317
cmp eax, ebx
pop ecx
je 0x439991
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x439993
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret