joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466ea0
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
lea eax, [ebp - 0x2c]
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
mov esi, dword [edi + 0x3c0]
neg eax
mov ecx, dword [edi + 0x3c4]
cdq
and edx, dword [edi + 0x254]
mov ebx, eax
and ebx, dword [edi + 0x250]
sub esi, ebx
mov dword [ebp - 4], ecx
push esi
push ebx
push edx
push 4
push dword [edi + 0x3b8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [edi + 0x548], ecx
test ecx, ecx
jne 0x466f06
mov dword [edi + 0x54c], eax
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x250]
sub ecx, ebx
add eax, ecx
lea ecx, [edi + 0x4e4]
push eax
mov dword [edi + 0x54c], eax
call fcn.00441a20
mov eax, dword [edi + 0x258]
lea ecx, [edi + 0x4b0]
sub eax, dword [edi + 0x250]
add eax, dword [edi + 0x54c]
push eax
call fcn.0040da10
mov eax, dword [edi + 0x260]
lea ecx, [edi + 0x514]
sub eax, dword [edi + 0x250]
add eax, dword [edi + 0x54c]
push eax
call fcn.0042caa0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46aa80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x4ba79c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4ba72c], esi
je 0x46aaf9
cmp dword [0x4ba738], esi
je 0x46aaf9
push 0x12237
call dword [0x4ba740]
push esi
push esi
push edi
call dword [0x4ba72c]
cmp dword [0x4ba784], 0
mov esi, eax
je 0x46aaf9
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0x4a19c8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x804]
push eax
push edi
call dword [0x4ba784]
push 0x4ba79c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret

Function at 0x46ab20
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 8]
xor bl, bl
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
push esi
call fcn.0046e983
add esp, 4
mov dword [ebp - 4], eax
push eax
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
mov eax, dword [ebp - 4]
je 0x46ab70
cmp dword [eax + 0x30], 0x60000
mov ecx, 1
movzx ebx, bl
cmovae ebx, ecx
push eax
call fcn.0046e94b
add esp, 4
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46c7b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
xor bl, bl
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x46c837
push esi
push edi
call fcn.0046e983
add esp, 4
mov esi, eax
push esi
push edi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x46c82d
push 0x4a1e80
push esi
call fcn.0046c910
mov ecx, dword [ebp + 0x14]
add esp, 8
push eax
call fcn.00468930
push 0x490c84
push esi
call fcn.0046c910
mov ecx, dword [ebp + 0x10]
add esp, 8
push eax
call fcn.00468930
push 0x48f2a0
push esi
call fcn.0046c910
mov ecx, dword [ebp + 0xc]
add esp, 8
push eax
call fcn.00468930
mov bl, 1
push esi
call fcn.0046e94b
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47e0da
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0047b1dc
mov dword [ebp - 0x14], eax
cmp dword [0x4bb600], esi
jne 0x47e1cd
push 0x800
push esi
push 0x4a7550
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x47e15a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x47e2ad
push esi
push esi
push 0x4a7550
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x47e2ad
push 0x4a7568
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47e2ad
push eax
call ebx
push 0x4a7574
push edi
mov dword [0x4bb600], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4a7584
push edi
mov dword [0x4bb604], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4a7598
push edi
mov dword [0x4bb608], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4bb610], eax
test eax, eax
je 0x47e1ca
push 0x4a75b4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4bb60c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x47e1f2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x47e1e5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x47e207
push 4
pop eax
jmp 0x47e2af
cmp dword [ebp - 0x14], esi
je 0x47e207
push dword [0x4bb600]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x47e1ec
mov eax, dword [0x4bb60c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x47e265
cmp dword [0x4bb610], edi
je 0x47e265
push eax
call ebx
push dword [0x4bb610]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x47e265
test eax, eax
je 0x47e265
call ecx
test eax, eax
je 0x47e25a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x47e25a
test byte [ebp - 8], 1
jne 0x47e265
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x47e295
mov eax, dword [0x4bb604]
cmp eax, edi
je 0x47e292
push eax
call ebx
test eax, eax
je 0x47e292
call eax
mov esi, eax
test esi, esi
je 0x47e292
mov eax, dword [0x4bb608]
cmp eax, edi
je 0x47e292
push eax
call ebx
test eax, eax
je 0x47e292
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4bb600]
call ebx
test eax, eax
je 0x47e2ad
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x47e2af
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret
Function at 0x4010c0
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 0x4010d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401114
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401110
lea ebx, [ebx]
cmp esi, eax
jae 0x401114
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401100
cmp esi, eax
jb 0x40111a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cd141
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4ff0f4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.00404dc0
xor ebx, ebx
mov dword [esp + 0x14], ebx
lea ecx, [esi + 4]
call fcn.00404dc0
mov byte [esp + 0x14], 1
lea ecx, [esi + 8]
call fcn.00404dc0
mov byte [esp + 0x14], 2
lea ecx, [esi + 0xc]
call fcn.00404dc0
mov byte [esp + 0x14], 3
lea ecx, [esi + 0x10]
call fcn.00404dc0
mov byte [esp + 0x14], 4
mov byte [esi + 0x14], bl
mov dword [esi + 0x18], 0xffffffff
mov byte [esi + 0x38], bl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
lea eax, [esi + 0x50]
push eax
mov dword [esi + 0x48], ebx
mov byte [esi + 0x4c], bl
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
call fcn.00417760
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x401830
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4d1be5
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4ff0f4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea eax, [esi + 4]
xor ebx, ebx
push eax
mov dword [esi], ebx
call fcn.00405f30
mov dword [esp + 0x14], ebx
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x14], 1
lea ecx, [esi + 0x38]
call fcn.0043d120
mov byte [esp + 0x14], 2
push ebx
push ebx
push esi
push 0x402290
push ebx
push ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov byte [esi + 0x6c], bl
call fcn.004aa486
add esp, 0x18
mov dword [esi], eax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x401c60
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4d36fb
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4ff0f4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
call fcn.0041ebe0
push 0
push 0
push 0x512e78
push 0x401bb0
push 0
push 0
call fcn.004aa486
push 0
push 0
push 0x512e78
push 0x401bc0
push 0
push 0
mov dword [0x512ab8], eax
call fcn.004aa486
push 4
call fcn.004aac11
mov esi, eax
add esp, 0x34
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 0
test esi, esi
je 0x401d08
push esi
push str.S_1_5_80_956008885_3418522649_1831038044_1853292631_2271478464
mov dword [esi], 0
call sub.ADVAPI32.dll_ConvertStringSidToSidW
mov dword [esp + 0x18], 0xffffffff
mov dword [0x512a38], esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
xor eax, eax
mov dword [esp + 0x18], 0xffffffff
mov dword [0x512a38], eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x4101b0
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4d0c29
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x4ff0f4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
mov dword [esp + 0x20], 0
push 0x23
push esi
mov dword [esp + 0x1c], 0
call fcn.004499a0
add esp, 8
mov dword [esp + 0x20], 0
push 0xd
push str.ASR8Settings
mov ecx, esi
mov dword [esp + 0x1c], 1
call fcn.00417450
cmp byte [esp + 0x2c], 0
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
je 0x41023d
mov eax, dword [esi]
push eax
call ebp
test eax, eax
jne 0x41023d
mov eax, dword [esi]
push 0
push eax
call edi
mov ecx, dword [esi]
call fcn.00411150
push 3
push 0x4ea28c
mov ecx, esi
call fcn.00417450
cmp byte [esp + 0x2c], 0
je 0x410269
mov eax, dword [esi]
push eax
call ebp
test eax, eax
jne 0x410269
mov eax, dword [esi]
push 0
push eax
call edi
mov ecx, dword [esi]
call fcn.00411150
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x410b00
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ca888
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ff0f4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov al, byte [esp + 0x38]
mov dword [esp + 0x20], 1
xor ebx, ebx
mov byte [esp + 0x13], bl
mov dword [esp + 0x14], ebx
mov byte [esp + 0x20], 2
cmp byte [esp + 0x34], bl
je 0x410b61
cmp byte [0x512f88], bl
je 0x410b5a
cmp al, bl
je 0x410b5a
mov esi, 0x20119
jmp 0x410b77
mov esi, 0x20019
jmp 0x410b77
cmp byte [0x512f88], bl
je 0x410b72
mov esi, 0x20106
cmp al, bl
jne 0x410b77
mov esi, 0x20006
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x410b8c
push eax
call edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
push esi
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x410bc1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
push eax
push ebx
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp eax, ebx
jne 0x410bc1
mov byte [esp + 0x13], 1
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x410bd1
push eax
call edi
mov byte [esp + 0x20], bl
lea ecx, [esp + 0x2c]
call fcn.00404f30
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.00404f30
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x410e30
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4d0adb
mov eax, dword fs:[0]
push eax
sub esp, 0x810
mov eax, dword [0x4ff0f4]
xor eax, esp
mov dword [esp + 0x80c], eax
push ebx
push esi
push edi
mov eax, dword [0x4ff0f4]
xor eax, esp
push eax
lea eax, [esp + 0x820]
mov dword fs:[0], eax
mov edi, dword [esp + 0x830]
xor ebx, ebx
mov dword [esp + 0x828], ebx
mov eax, dword [esp + 0x834]
push eax
mov dword [esp + 0x14], ebx
call fcn.00410fb0
mov eax, dword [esp + 0x838]
add esp, 4
cmp dword [eax - 4], 1
jle 0x410eb2
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x838]
call fcn.0040b520
mov eax, dword [esp + 0x834]
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410f55
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x30]
push eax
push ebx
push ebx
push ebx
push ecx
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor esi, esi
cmp dword [esp + 0x14], ebx
jbe 0x410f4a
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea esp, [esp]
mov eax, dword [esp + 0x10]
push 0x400
lea edx, [esp + 0x20]
push edx
push esi
push eax
call edi
test eax, eax
jne 0x410f43
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00405480
mov byte [esp + 0x82c], 1
mov eax, dword [esp + 0x14]
push eax
mov byte [esp + 0x830], bl
call fcn.00410e30
add esp, 8
inc esi
cmp esi, dword [esp + 0x14]
jb 0x410f00
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x828], 0xffffffff
mov eax, dword [esp + 0x834]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410f83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x820]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.004a9c1c
add esp, 0x81c
ret

Function at 0x4113e0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x244
mov eax, dword [0x4ff0f4]
xor eax, esp
mov dword [esp + 0x240], eax
push esi
push edi
lea esi, [esp + 8]
mov edi, ecx
call fcn.00417af0
mov eax, dword [eax + 8]
push 0
push 2
call eax
mov esi, eax
cmp esi, 0xffffffff
je 0x41142f
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x1c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x411450
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.004a9c1c
add esp, 0x244
ret
lea edx, [esp + 0x14]
push edx
call fcn.00417c50
lea eax, [esp + 0x14]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x411450
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x248]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.004a9c1c
add esp, 0x244
ret
Function at 0x412000
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4d0a68
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4ff0f4]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ff0f4]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
xor esi, esi
push esi
mov edi, ecx
push 0x64
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], esi
mov byte [esp + 0x38], 0
call fcn.004079b0
mov dword [esp + 0x54], esi
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x30]
mov ebx, 1
mov dword [esp + 0x14], ebx
dec eax
or ebx, esi
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
jae 0x41208a
lea ebp, [esp + 0x30]
lea esi, [esp + 0x20]
call fcn.00417d90
mov edx, dword [esp + 0x5c]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [edi]
push ebp
push edx
mov edx, dword [eax + 8]
push ecx
call edx
mov esi, dword [esp + 0x18]
test eax, eax
je 0x4120b8
test esi, esi
je 0x4120b8
mov al, 1
jmp 0x4120ba
xor al, al
test bl, 1
je 0x4120c6
and ebx, 0xfffffffe
mov dword [esp + 0x14], ebx
test al, al
je 0x412107
cmp esi, dword [esp + 0x40]
jbe 0x4120d5
call fcn.004aa693
mov eax, dword [esp + 0x30]
mov edi, 0x10
cmp dword [esp + 0x44], edi
jae 0x4120e8
lea eax, [esp + 0x30]
mov byte [eax + esi], 0
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x4120fa
lea eax, [esp + 0x30]
push eax
call fcn.004ab2cf
add esp, 4
mov esi, eax
jmp 0x412110
mov esi, dword [esp + 0x1c]
mov edi, 0x10
mov dword [esp + 0x54], 0xffffffff
cmp dword [esp + 0x44], edi
jb 0x41212b
mov eax, dword [esp + 0x30]
push eax
call fcn.004a9c11
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004a9c1c
add esp, 0x44
ret
Function at 0x413040
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4ce149
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4ff0f4]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ff0f4]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x60], ebx
mov eax, dword [esp + 0x68]
mov edi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
xor ecx, ecx
mov eax, edi
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], cx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4130a0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x40]
call fcn.00408fa0
mov dword [esp + 0x60], 1
mov ebp, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push ebx
push edi
call ebp
mov ecx, dword [esp + 0x14]
mov esi, eax
add esi, 2
call fcn.00404dc0
push ebx
xor edx, edx
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], 1
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], dx
call fcn.00419c10
mov byte [esp + 0x60], 2
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x413115
lea eax, [esp + 0x20]
push esi
push eax
push edi
call ebp
mov edi, 8
test eax, eax
je 0x41315a
cmp dword [esp + 0x34], edi
jb 0x413137
mov eax, dword [esp + 0x20]
mov esi, eax
cmp eax, ebx
jne 0x41313b
xor eax, eax
jmp 0x41314f
lea esi, [esp + 0x20]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x413140
sub eax, edx
sar eax, 1
mov ecx, dword [esp + 0x14]
push eax
push esi
call fcn.00408cb0
mov byte [esp + 0x60], 1
cmp dword [esp + 0x34], edi
jb 0x413172
mov eax, dword [esp + 0x20]
push eax
call fcn.004a9c11
add esp, 4
mov esi, 7
xor ecx, ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], cx
mov byte [esp + 0x60], bl
cmp dword [esp + 0x50], edi
jb 0x41319d
mov edx, dword [esp + 0x3c]
push edx
call fcn.004a9c11
add esp, 4
xor eax, eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], ax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004a9c1c
add esp, 0x50
ret
Function at 0x413910
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce102
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4ff0f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x28]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x413ada
push esi
lea ecx, [ebp - 0x6c]
push ecx
call fcn.00417960
mov byte [ebp - 4], 1
push edi
lea ecx, [ebp - 0x6c]
call fcn.004179d0
push eax
push esi
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x413ace
push edi
lea ecx, [ebp - 0x6c]
call fcn.004179d0
push eax
lea edx, [ebp - 0x54]
push edx
call fcn.00410280
add esp, 8
mov byte [ebp - 4], 2
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], eax
mov eax, dword [ebx]
mov dword [ebp - 0x3c], eax
mov edi, edi
mov esi, dword [ebx + 0x18]
mov dword [ebp - 0x30], edi
mov ecx, dword [ebx]
mov dword [ebp - 0x30], ecx
cmp eax, edi
je 0x4139c3
cmp eax, ecx
je 0x4139c8
call fcn.004aa693
cmp dword [ebp - 0x38], esi
je 0x413ac1
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x48]
sar eax, 2
cmp edi, eax
jae 0x413aaf
lea ecx, [ebp - 0x24]
call fcn.00404dc0
mov byte [ebp - 4], 3
lea esi, [ebp - 0x3c]
call fcn.0043a460
mov ebx, eax
lea esi, [ebp - 0x54]
call fcn.004176b0
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebx]
push ecx
call fcn.004176b0
movzx edx, word [eax + 2]
push edx
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax]
push ecx
push str.StringFileInfo_04x_04x_s
lea edx, [ebp - 0x24]
push edx
call fcn.0041bca0
add esp, 0x14
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push esi
lea ecx, [ebp - 0x6c]
call fcn.004179d0
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x413a9a
cmp dword [ebp - 0x1c], esi
je 0x413a9a
cmp dword [ebp - 0x18], esi
jbe 0x413a9a
lea ecx, [ebp - 0x20]
call fcn.00404dc0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00417450
lea edx, [ebp - 0x20]
push edx
lea esi, [ebp - 0x3c]
call fcn.0043a460
mov ecx, eax
add ecx, 4
call fcn.004176d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00404f30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00404f30
inc edi
mov ebx, dword [ebp + 8]
jmp 0x4139d1
lea esi, [ebp - 0x3c]
call fcn.0040b380
mov eax, dword [ebp - 0x3c]
xor edi, edi
jmp 0x4139b0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x54]
push eax
call fcn.00417be0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.004a79d0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret