joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x586c52
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x34]
push 0
mov dword [esp + 0x10], esi
call fcn.0056121b
mov dword [esp + 0x2c], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [esp + 0x2c], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [esp + 0x2c], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [esp + 0x2c], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [esp + 0x2c], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [esp + 0x2c], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [esp + 0x2c], 6
test edi, edi
jne 0x406028
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x5a8594
push eax
lea ecx, [esp + 0x14]
call fcn.00565aef
mov byte [esp + 0x2c], 7
mov dword [esp + 0x10], vtable.std::runtime_error.0
mov byte [esp + 0x2c], 6
lea eax, [esp + 0x10]
push 0x5df024
push eax
call fcn.0056aebb
push edi
push esi
call fcn.0056106f
add esp, 8
mov dword [esp + 0x2c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00564de8
add esp, 0x24
ret 4

Function at 0x4068a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x586e99
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 0x30], 1
cmp dword [esp + 0x50], 0
je 0x4068f1
push 2
push 0x5a85a8
lea ecx, [esp + 0x48]
call fcn.00403f10
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
call fcn.00406830
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x40]
push 0xffffffffffffffff
push 0
push eax
call fcn.00403e60
mov byte [esp + 0x30], 1
cmp dword [esp + 0x24], 0x10
jb 0x40692a
push dword [esp + 0x10]
call fcn.00564de3
add esp, 4
lea eax, [esp + 0x40]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
mov byte [esi], 0
call fcn.00403dc0
mov dword [esp + 8], 1
mov byte [esp + 0x30], 0
cmp dword [esp + 0x54], 0x10
jb 0x40697c
push dword [esp + 0x40]
call fcn.00564de3
add esp, 4
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
Function at 0x4069b0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x586ee0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x24], esp
push 0xffffffffffffffff
push 0
push dword [esp + 0x5c]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00403ff0
mov dword [esp + 0x4c], 0
push dword [esp + 0x5c]
push dword [esp + 0x5c]
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.004068a0
add esp, 0x20
mov dword [esp + 0x34], 1
cmp dword [eax + 0x14], 0x10
jb 0x406a35
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov ecx, esi
lea eax, [esp + 0x3c]
push eax
call fcn.00565aef
mov byte [esp + 0x34], 2
mov dword [esi], vtable.std::runtime_error.0
mov byte [esp + 0x34], 4
cmp dword [esp + 0x24], 0x10
jb 0x406a68
push dword [esp + 0x10]
call fcn.00564de3
add esp, 4
mov eax, dword [esp + 0x40]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], eax
mov dword [esp + 0x34], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x30
ret 0xc

Function at 0x406de0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x587069
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov eax, dword [ecx + 0x30]
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [esp + 0x14], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x407170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x5871cb
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
cmp dword [edx + 0x14], 8
mov esi, dword [esp + 0xd4]
jb 0x4071b9
mov edx, dword [edx]
mov eax, dword [esp + 0xd0]
push edx
movzx eax, ax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40727a
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40727a
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x407262
push 0xa8
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0056cbb0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40721e
mov eax, dword [esi]
jmp 0x407220
mov eax, esi
sub esp, 0xc
lea ecx, [esp + 0x20]
push eax
call fcn.00407e90
mov dword [esp + 0xc8], 0
lea ecx, [esp + 0x14]
push 0
push edi
push ebx
call fcn.00407d50
lea ecx, [esp + 0x14]
call fcn.00408030
mov dword [esp + 0xc8], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004072b0
cmp edi, 4
jbe 0x40727a
mov ecx, esi
call fcn.004b3170
cmp eax, edi
jne 0x40727a
test edx, edx
jne 0x40727a
mov al, 1
jmp 0x40727c
xor al, al
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.00564de8
add esp, 0xbc
ret
Function at 0x407360
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
sub esp, 8
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x10]
push eax
push 0x20006
push 0
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [esp + 0x24], 0
xor bl, bl
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x4073d0
cmp dword [esi + 0x14], 8
jb 0x4073b0
mov eax, dword [esi]
jmp 0x4073b2
mov eax, esi
push eax
push dword [esp + 0x14]
call ebp
push dword [esp + 0x10]
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x407416
cmp dword [esi + 0x14], 8
jb 0x4073f6
mov eax, dword [esi]
jmp 0x4073f8
mov eax, esi
push eax
push dword [esp + 0x14]
call ebp
push dword [esp + 0x10]
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push 0x20006
push 0
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call edi
test eax, eax
jne 0x40745c
cmp dword [esi + 0x14], 8
jb 0x40743c
mov eax, dword [esi]
jmp 0x40743e
mov eax, esi
push eax
push dword [esp + 0x14]
call ebp
push dword [esp + 0x10]
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call edi
test eax, eax
jne 0x40749e
cmp dword [esi + 0x14], 8
jb 0x407480
mov esi, dword [esi]
push esi
push dword [esp + 0x14]
call ebp
push dword [esp + 0x10]
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00564de8
add esp, 8
ret
Function at 0x407e90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x587372
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
lea eax, [edi + 0x60]
mov dword [edi], 0x5be4e4
mov dword [esp + 0x14], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [esp + 0x20], 0
mov dword [eax], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x20], 1
lea esi, [edi + 4]
mov eax, dword [edi]
mov dword [esp + 0xc], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
push esi
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00408bd0
mov dword [esp + 0x20], 4
mov eax, dword [edi]
mov dword [esp + 0x14], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00409430
mov byte [esp + 0x20], 5
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x7e1698]
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
mov byte [esp + 0x20], 6
sub esp, 8
mov ecx, esi
push dword [esp + 0x30]
call fcn.00408cd0
test eax, eax
jne 0x408008
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x407ff6
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x408008
push 0
call fcn.00406d00
mov dword [esp + 0x20], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 0x10
Function at 0x408f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x587488
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x409093
cmp byte [ebx + 0x45], 0
je 0x409093
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x408f60
xor al, al
jmp 0x409095
mov ecx, 0xf
mov dword [esp + 0x2c], 0
mov dword [esp + 0x2c], ecx
lea eax, [esp + 0x18]
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x28], 0
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
jmp 0x408fc0
cmp ecx, 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
lea esi, [esp + 0x1c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x408ffb
dec eax
je 0x408fff
sub eax, 2
je 0x40905d
xor bl, bl
jmp 0x40905f
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x40903e
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0056667f
add esp, 0x10
cmp esi, eax
jne 0x408ff7
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
cmp byte [ebx + 0x45], 0
je 0x40905d
test esi, esi
jne 0x408fc0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00408b20
jmp 0x408faf
mov bl, 1
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x40907a
push dword [esp + 0x18]
call fcn.00564de3
add esp, 4
mov dword [esp + 0x2c], 0xf
mov al, bl
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
jmp 0x409095
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00564de8
mov esp, ebp
pop ebp
ret

Function at 0x409c40
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.0056cbb0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x409ca7
mov eax, dword [esp + 4]
cmp eax, 5
jbe 0x409c9e
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00564de8
add esp, 0x118
ret
jne 0x409ca7
cmp dword [esp + 8], 0
ja 0x409c87
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.00564de8
add esp, 0x118
ret
Function at 0x409cc0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.0056cbb0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x409d1c
cmp dword [esp + 4], 6
jb 0x409d1c
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00564de8
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.00564de8
add esp, 0x118
ret

Function at 0x409d40
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.0056cbb0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x409da7
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x409d90
jne 0x409da7
cmp dword [esp + 8], 1
jb 0x409da7
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00564de8
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.00564de8
add esp, 0x118
ret

Function at 0x409dc0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.0056cbb0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x409e27
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x409e10
jne 0x409e27
cmp dword [esp + 8], 2
jb 0x409e27
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00564de8
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.00564de8
add esp, 0x118
ret

Function at 0x409e40
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x118
lea eax, [esp + 8]
mov dword [esp + 4], 0x11c
push 0
push eax
call fcn.0056cbb0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x409eb1
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x409e90
jne 0x409eb1
cmp dword [esp + 8], 1
jb 0x409eb1
cmp byte [esp + 0x11a], 1
jne 0x409eb1
mov al, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00564de8
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor al, al
xor ecx, esp
call fcn.00564de8
add esp, 0x120
ret
Function at 0x409f60
Capabilities:
Access peb ldr_data
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x587688
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x14]
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
push ecx
cmovae eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x40a002
push edi
call fcn.005667e4
mov esi, eax
add esp, 4
test esi, esi
je 0x40a002
cmp dword [esp + 0x44], 8
lea ecx, [esp + 0x30]
push esi
cmovae ecx, dword [esp + 0x34]
push edi
push dword [esp + 0x1c]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40a056
push esi
call fcn.00564df7
add esp, 4
xor bl, bl
mov dword [esp + 0x28], 0xffffffff
cmp dword [esp + 0x44], 8
jb 0x40a01f
push dword [esp + 0x30]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov word [esp + 0x30], ax
mov al, bl
mov dword [esp + 0x40], 0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00564de8
add esp, 0x1c
ret
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push 0x5a87e8
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
push esi
test eax, eax
je 0x409ffa
mov ecx, dword [esp + 0x14]
movzx eax, word [ecx + 0xa]
mov word [ebx], ax
movzx eax, word [ecx + 8]
mov word [ebx + 2], ax
movzx eax, word [ecx + 0xe]
mov word [ebx + 4], ax
movzx eax, word [ecx + 0xc]
mov word [ebx + 6], ax
call fcn.00564df7
add esp, 4
mov bl, 1
jmp 0x40a004
Function at 0x40de70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x587e38
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
mov dword [esp + 0x30], 0
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.0040db10
mov edi, eax
add esp, 8
cmp edi, 1
jne 0x40defa
lea eax, [esp + 0xc]
cmp esi, eax
je 0x40defa
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00403ff0
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 0x10
jb 0x40df15
push dword [esp + 0xc]
call fcn.00564de3
add esp, 4
mov dword [esp + 0x20], 0xf
mov eax, edi
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00564de8
add esp, 0x28
ret
Function at 0x411da0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x5884e2
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x238]
xor eax, eax
mov ebx, dword [esp + 0x23c]
push 0x208
mov dword [esp + 0x14], 0
push eax
mov word [esp + 0x20], ax
lea eax, [esp + 0x22]
push eax
mov dword [esp + 0x20], edi
call fcn.0056cbb0
add esi, 8
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x411e1b
mov esi, dword [esi]
cmp dword [ebx + 0x14], 8
jb 0x411e23
mov ebx, dword [ebx]
push esi
push 0x104
lea eax, [esp + 0x20]
push eax
push 0x5a87c4
push ebx
push str.RCPackagesIni
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [esp + 0x18], ax
jne 0x411e5d
xor ecx, ecx
jmp 0x411e73
lea ecx, [esp + 0x18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411e64
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.00404a80
mov dword [esp + 0x230], 0
mov dword [esp + 0x10], 1
mov eax, edi
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00564de8
add esp, 0x224
ret 8

Function at 0x411f00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
push edi
xor eax, eax
mov edi, edx
push 0x40e
push eax
mov word [esp + 0x14], ax
mov esi, ecx
lea eax, [esp + 0x16]
push eax
call fcn.0056cbb0
add esp, 0xc
mov dword [esp + 8], 0
lea eax, [esp + 8]
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x411f70
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x411f89
mov eax, dword [esp + 8]
test eax, eax
je 0x411f70
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.00564de8
add esp, 0x418
ret
cmp word [esp + 0xc], 0
jne 0x411f95
xor ecx, ecx
jmp 0x411faf
lea ecx, [esp + 0xc]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411fa0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.00404a80
mov eax, dword [esp + 8]
test eax, eax
je 0x411fcb
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x41c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.00564de8
add esp, 0x418
ret