joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442c2b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004390bd
xor ebx, ebx
cmp dword [0x468d80], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x442d00
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x442c6b
xor eax, eax
jmp 0x442dc4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x456b88
push edi
call esi
cmp eax, ebx
je 0x442c64
push eax
call fcn.0043905a
mov dword [esp], 0x456b78
push edi
mov dword [0x468d80], eax
call esi
push eax
call fcn.0043905a
mov dword [esp], 0x456b64
push edi
mov dword [0x468d84], eax
call esi
push eax
call fcn.0043905a
mov dword [0x468d88], eax
lea eax, [ebp - 8]
push eax
call fcn.004371ac
test eax, eax
pop ecx
pop ecx
je 0x442cce
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00439597
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x442d00
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043905a
cmp eax, ebx
pop ecx
mov dword [0x468d90], eax
je 0x442d00
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043905a
pop ecx
mov dword [0x468d8c], eax
mov eax, dword [0x468d8c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x442d79
cmp dword [0x468d90], esi
je 0x442d79
push eax
call fcn.004390c6
pop ecx
call eax
cmp eax, ebx
je 0x442d46
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x468d90]
call fcn.004390c6
pop ecx
call eax
test eax, eax
je 0x442d46
test byte [ebp - 0x18], 1
jne 0x442d79
lea eax, [ebp - 0xc]
push eax
call fcn.004371e3
test eax, eax
pop ecx
je 0x442d61
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00439597
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x442d70
or dword [ebp + 0x10], 0x200000
jmp 0x442daa
or dword [ebp + 0x10], 0x40000
jmp 0x442daa
mov eax, dword [0x468d84]
cmp eax, esi
je 0x442daa
push eax
call fcn.004390c6
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x442daa
mov eax, dword [0x468d88]
cmp eax, esi
je 0x442daa
push dword [ebp - 4]
push eax
call fcn.004390c6
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x468d80]
call fcn.004390c6
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x448d04
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x464a38]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00448c99
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.00435b00
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 0x448d53
cmp dword [ebp - 0x1c], 5
jb 0x448d6b
jmp 0x448d67
cmp dword [ebp - 0x10], 1
jne 0x448d6b
cmp dword [ebp - 0x1c], 4
ja 0x448d67
jne 0x448d6b
cmp dword [ebp - 0x18], 0
jbe 0x448d6b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4574e4
call fcn.00448b6d
test eax, eax
jge 0x448d8c
mov byte [0x465f80], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00434975
add ebp, 0x78
leave
ret
Function at 0x403a10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x442b72
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x450ae0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [edi], 0x448344
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x18], 1
call fcn.00404aa0
mov dword [esp + 0x1c], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.00405d90
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
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], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov edx, dword [0x455ed0]
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, dword [esp + 0x28]
push eax
mov byte [esp + 0x20], 2
call fcn.00405590
test eax, eax
jne 0x403b06
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x403aff
or eax, 4
push ebx
push eax
call fcn.00409330
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
Function at 0x404de0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4429f8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x450ae0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, edx
cmp dword [esi + 0x4c], 0
jne 0x404eda
mov eax, dword [esp + 0x1c]
push 0x40
push eax
push ecx
call fcn.0042e6bb
add esp, 0xc
test eax, eax
je 0x404eda
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea edx, [esi + 0x18]
mov dword [esi + 0x20], edx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov byte [esi + 0x48], 1
mov byte [esi + 0x42], 0
lea edx, [esi + 0x28]
mov dword [esi + 0x30], edx
lea ecx, [esi + 0xc]
mov dword [esi + 0x14], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [ecx], 0
mov ecx, dword [esi + 0x24]
mov dword [ecx], 0
mov edx, dword [esi + 0x34]
mov dword [edx], 0
mov ecx, dword [esi + 0x10]
mov dword [ecx], 0
mov edx, dword [esi + 0x20]
mov dword [edx], 0
mov ecx, dword [esi + 0x30]
mov edx, dword [0x455ed4]
mov dword [ecx], 0
mov dword [esi + 0x4c], eax
lea edi, [esp + 0x1c]
mov eax, esi
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], 0
call fcn.00405e90
push eax
mov dword [esp + 0x18], 0
call fcn.00406c60
add esp, 4
mov edi, eax
call fcn.004052d0
lea ecx, [esp + 0x1c]
call fcn.0040a8b0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x405d90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x44230b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x450ae0]
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.0042ba4e
push 4
mov dword [esp + 0x24], 0
call fcn.0040b0b3
mov edi, eax
add esp, 4
test edi, edi
je 0x405e14
call fcn.0042b67e
mov dword [edi], eax
call fcn.0042b50b
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0042ee39
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405e09
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0042ee5a
jmp 0x405e16
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 0x405ec0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4422db
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x450ae0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0042ba4e
push 4
mov dword [esp + 0x20], 0
call fcn.0040b0b3
mov edi, eax
add esp, 4
test edi, edi
je 0x405f40
call fcn.0042b67e
mov dword [edi], eax
call fcn.0042b50b
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0042ee39
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405f35
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0042ee5a
jmp 0x405f42
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 + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x406920
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x442648
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x450ae0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
call fcn.00406110
mov eax, str._arrFileContent_
mov dword [esp + 0x34], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406980
sub eax, edx
sar eax, 1
push eax
push str._arrFileContent_
lea esi, [esp + 0x18]
call fcn.00405340
push 0xffffffffffffffff
push ebx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push eax
mov ecx, edi
mov word [edi + 4], bx
call fcn.00406110
cmp dword [esp + 0x28], 8
jb 0x4069cb
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040b0de
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x408470
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4424e3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x450ae0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.0042b536
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x4084c1
mov eax, dword [esi + 0x1c]
push eax
call fcn.0040b0de
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x409db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409dc9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409e04
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x409e00
lea ebx, [ebx]
cmp esi, eax
jae 0x409e04
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x409df0
cmp esi, eax
jb 0x409e0a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x414894
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x450ae0]
jne 0x41489e
repz ret
jmp fcn.0041b731

Function at 0x418446
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 + 0x450c80]
je 0x418461
inc edi
cmp edi, 0x17
jb 0x418452
cmp edi, 0x17
jae 0x4185e1
push ebp
push 3
call fcn.00421dc3
cmp eax, 1
pop ecx
je 0x4185ad
push 3
call fcn.00421dc3
test eax, eax
pop ecx
jne 0x418495
cmp dword [0x450ab0], 1
je 0x4185ad
cmp ebx, 0xfc
je 0x4185e0
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x454ed0
push ebp
call fcn.00419635
add esp, 0xc
test eax, eax
je 0x4184cb
push esi
push esi
push esi
push esi
push esi
call fcn.00414764
add esp, 0x14
push 0x104
mov esi, 0x454ee9
push esi
push 0
mov byte [0x454fed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41850f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00419635
add esp, 0xc
test eax, eax
je 0x41850f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00414764
add esp, 0x14
push esi
call fcn.004196a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x418554
push esi
call fcn.004196a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4551e4
push 0x445aec
sub ecx, eax
push ecx
push eax
call fcn.00421d10
add esp, 0x14
test eax, eax
je 0x418554
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00414764
add esp, 0x14
jmp 0x418556
xor esi, esi
push 0x445ae8
push ebx
push ebp
call fcn.00421c9f
add esp, 0xc
test eax, eax
je 0x418576
push esi
push esi
push esi
push esi
push esi
call fcn.00414764
add esp, 0x14
push dword [edi*8 + 0x450c84]
push ebx
push ebp
call fcn.00421c9f
add esp, 0xc
test eax, eax
je 0x418598
push esi
push esi
push esi
push esi
push esi
call fcn.00414764
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00421ae2
add esp, 0xc
jmp 0x4185e0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4185e0
cmp ebp, 0xffffffff
je 0x4185e0
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x450c84]
push dword [esi]
call fcn.004196a0
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 0x421ae2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041900a
xor ebx, ebx
cmp dword [0x4559c8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x421bb8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x421c98
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x421c98
push eax
call fcn.00418f9c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4559c8], eax
call esi
push eax
call fcn.00418f9c
mov dword [esp], 0x445dc0
push edi
mov dword [0x4559cc], eax
call esi
push eax
call fcn.00418f9c
mov dword [0x4559d0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041815b
test eax, eax
pop ecx
pop ecx
je 0x421b86
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00414764
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x421bb8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00418f9c
cmp eax, ebx
pop ecx
mov dword [0x4559d8], eax
je 0x421bb8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00418f9c
pop ecx
mov dword [0x4559d4], eax
mov eax, dword [0x4559d4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x421c3d
cmp dword [0x4559d8], ecx
je 0x421c3d
push eax
call fcn.00419013
push dword [0x4559d8]
mov esi, eax
call fcn.00419013
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x421c3d
cmp edi, ebx
je 0x421c3d
call esi
cmp eax, ebx
je 0x421c0a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x421c0a
test byte [ebp - 0x18], 1
jne 0x421c3d
lea eax, [ebp - 0x10]
push eax
call fcn.00418192
test eax, eax
pop ecx
je 0x421c25
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00414764
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x421c34
or dword [ebp + 0x10], 0x200000
jmp 0x421c78
or dword [ebp + 0x10], 0x40000
jmp 0x421c78
mov eax, dword [0x4559cc]
cmp eax, dword [ebp - 8]
je 0x421c78
push eax
call fcn.00419013
cmp eax, ebx
pop ecx
je 0x421c78
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x421c78
mov eax, dword [0x4559d0]
cmp eax, dword [ebp - 8]
je 0x421c78
push eax
call fcn.00419013
cmp eax, ebx
pop ecx
je 0x421c78
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4559c8]
call fcn.00419013
cmp eax, ebx
pop ecx
je 0x421c98
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x421c9a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42b3fe
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x450ae0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042b393
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.004163c0
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 0x42b44d
cmp dword [ebp - 0x1c], 5
jb 0x42b465
jmp 0x42b461
cmp dword [ebp - 0x10], 1
jne 0x42b465
cmp dword [ebp - 0x1c], 4
ja 0x42b461
jne 0x42b465
cmp dword [ebp - 0x18], 0
jbe 0x42b465
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44777c
call fcn.0042b284
test eax, eax
jge 0x42b486
mov byte [0x455ecc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00414894
add ebp, 0x78
leave
ret
Function at 0x66dc1460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x66dc14bb
cmp byte [esi + ebx - 1], 0xa
je 0x66dc148f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x66dc70a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x66dc1f90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x22c
mov eax, dword [0x66dc70c0]
test eax, eax
je 0x66dc2048
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x66dc1fd0
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x220]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x66dc1fbc
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x66dc207d
mov dword [esp + 4], 0x66dc515c
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x66dc70c0], eax
sub esp, 8
test eax, eax
jne 0x66dc1fad
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x66dc1fbe
Function at 0x66dc2090
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov edi, dword [ecx]
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x1c]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
sub esp, 8
test ebx, ebx
je 0x66dc2228
mov eax, dword [esi]
test eax, eax
je 0x66dc2210
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0
mov dword [ebp - 0x28], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [esp + 4], 0
mov edi, eax
mov dword [ebp - 0x20], eax
mov dword [esp + 8], edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x66dc2238
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x66dc2200
call dword [edx + 0x28]
mov dword [esi + 8], eax
sub esp, 8
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
not eax
pop ebx
shr eax, 0x1f
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
call dword [edx + 0x24]
mov dword [esi + 8], eax
sub esp, 8
jmp 0x66dc21c6
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x66dc2100
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x66dc222a