joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414e40
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4150d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x41d004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004011a0
cmp dword [ebp - 0x18], 0
je 0x414f94
lea eax, [ebp - 0x1b8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x414f94
cmp dword [edi + 0x1c], 0xffffffff
jne 0x414f94
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x414f94
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x18], ecx
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, edi
call fcn.004011a0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x1c], eax
cmp eax, 0xffffffff
je 0x414f94
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x1bc]
push 4
push ecx
push 0x1005
push 0xffff
push eax
mov dword [ebp - 0x1bc], 0x9c40
call esi
push 4
lea eax, [ebp - 0x1bc]
push eax
push 0x1006
push 0xffff
push dword [edi + 0x1c]
call esi
mov eax, 2
lea esi, [edi + 0x20]
mov word [esi], ax
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x414f63
mov eax, dword [edi]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [edi + 0x24], eax
movzx eax, word [edi + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
push esi
push dword [edi + 0x1c]
mov word [edi + 0x22], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x414fbe
mov ecx, edi
call fcn.00414c70
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x414fcc
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x414fc2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414fec
jmp 0x414fc2
mov bl, 1
jmp 0x414f96
push edx
push ecx
call fcn.0040152c
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004012eb
mov esp, ebp
pop ebp
ret 8
call fcn.00405dfc
int3
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x32263ee9
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2576023f
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp int.00401219
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 0x401780
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cd851
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.00405840
xor ebx, ebx
mov dword [esp + 0x14], ebx
lea ecx, [esi + 4]
call fcn.00405840
mov byte [esp + 0x14], 1
lea ecx, [esi + 8]
call fcn.00405840
mov byte [esp + 0x14], 2
lea ecx, [esi + 0xc]
call fcn.00405840
mov byte [esp + 0x14], 3
lea ecx, [esi + 0x10]
call fcn.00405840
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.00417f90
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 0x401840
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4d12e5
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4ff0f4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
lea eax, [esi + 4]
xor ebx, ebx
push eax
mov dword [esi], ebx
call fcn.00406590
mov dword [esp + 0x18], ebx
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x18], 1
lea ecx, [esi + 0x38]
call fcn.0043cf00
mov byte [esp + 0x18], 2
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
push esi
cmp byte [esp + 0x30], bl
je 0x4018b3
push 0x402be0
jmp 0x4018b8
push 0x4022e0
push ebx
push ebx
call fcn.004a9f99
add esp, 0x18
mov dword [esi], eax
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret 8
Function at 0x401c70
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4d2d9b
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.0041eb90
push 0
push 0
push 0x512e78
push 0x401bc0
push 0
push 0
call fcn.004a9f99
push 0
push 0
push 0x512e78
push 0x401bd0
push 0
push 0
mov dword [0x512ab8], eax
call fcn.004a9f99
push 4
call fcn.004aa724
mov esi, eax
add esp, 0x34
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 0
test esi, esi
je 0x401d18
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 0x410fb0
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4cbae9
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.00449530
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 0x41103d
mov eax, dword [esi]
push eax
call ebp
test eax, eax
jne 0x41103d
mov eax, dword [esi]
push 0
push eax
call edi
mov ecx, dword [esi]
call fcn.00411f50
push 3
push 0x4ea2b4
mov ecx, esi
call fcn.00417450
cmp byte [esp + 0x2c], 0
je 0x411069
mov eax, dword [esi]
push eax
call ebp
test eax, eax
jne 0x411069
mov eax, dword [esi]
push 0
push eax
call edi
mov ecx, dword [esi]
call fcn.00411f50
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 0x411900
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ca1c8
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 0x411961
cmp byte [0x512f8c], bl
je 0x41195a
cmp al, bl
je 0x41195a
mov esi, 0x20119
jmp 0x411977
mov esi, 0x20019
jmp 0x411977
cmp byte [0x512f8c], bl
je 0x411972
mov esi, 0x20106
cmp al, bl
jne 0x411977
mov esi, 0x20006
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x41198c
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 0x4119c1
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 0x4119c1
mov byte [esp + 0x13], 1
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4119d1
push eax
call edi
mov byte [esp + 0x20], bl
lea ecx, [esp + 0x2c]
call fcn.00405410
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.00405410
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 0x411c30
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4d04db
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.00411db0
mov eax, dword [esp + 0x838]
add esp, 4
cmp dword [eax - 4], 1
jle 0x411cb2
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x838]
call fcn.0040c2b0
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 0x411d55
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 0x411d4a
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 0x411d43
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00405900
mov byte [esp + 0x82c], 1
mov eax, dword [esp + 0x14]
push eax
mov byte [esp + 0x830], bl
call fcn.00411c30
add esp, 8
inc esi
cmp esi, dword [esp + 0x14]
jb 0x411d00
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 0x411d83
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.004a974c
add esp, 0x81c
ret

Function at 0x4121e0
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.00417ab0
mov eax, dword [eax + 8]
push 0
push 2
call eax
mov esi, eax
cmp esi, 0xffffffff
je 0x41222f
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x1c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x412250
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.004a974c
add esp, 0x244
ret
lea edx, [esp + 0x14]
push edx
call fcn.00417ba0
lea eax, [esp + 0x14]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x412250
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.004a974c
add esp, 0x244
ret
Function at 0x412e00
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4d0468
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.004080f0
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 0x412e8a
lea ebp, [esp + 0x30]
lea esi, [esp + 0x20]
call fcn.00417ce0
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 0x412eb8
test esi, esi
je 0x412eb8
mov al, 1
jmp 0x412eba
xor al, al
test bl, 1
je 0x412ec6
and ebx, 0xfffffffe
mov dword [esp + 0x14], ebx
test al, al
je 0x412f07
cmp esi, dword [esp + 0x40]
jbe 0x412ed5
call fcn.004aa1a6
mov eax, dword [esp + 0x30]
mov edi, 0x10
cmp dword [esp + 0x44], edi
jae 0x412ee8
lea eax, [esp + 0x30]
mov byte [eax + esi], 0
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x412efa
lea eax, [esp + 0x30]
push eax
call fcn.004aade2
add esp, 4
mov esi, eax
jmp 0x412f10
mov esi, dword [esp + 0x1c]
mov edi, 0x10
mov dword [esp + 0x54], 0xffffffff
cmp dword [esp + 0x44], edi
jb 0x412f2b
mov eax, dword [esp + 0x30]
push eax
call fcn.004a9741
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.004a974c
add esp, 0x44
ret
Function at 0x4140e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd109
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4ff0f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x50], ecx
mov edi, edx
mov dword [ebp - 0x54], esi
call fcn.00405840
mov dword [ebp - 4], esi
mov eax, 1
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], eax
push edi
lea ecx, [ebp - 0x4c]
call fcn.00406060
mov byte [ebp - 4], 2
push esi
push esi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call ebx
mov esi, eax
add esi, 2
push 0
push esi
lea ecx, [ebp - 0x30]
call fcn.0041bc00
mov byte [ebp - 4], 3
push esi
push 0
lea ecx, [ebp - 0x30]
call fcn.00417580
push eax
push edi
call ebx
test eax, eax
je 0x414182
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x414179
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.004059e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.004060d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.004060d0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a974c
mov esp, ebp
pop ebp
ret
Function at 0x414900
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce772
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 0x414aca
push esi
lea ecx, [ebp - 0x6c]
push ecx
call fcn.00417920
mov byte [ebp - 4], 1
push edi
lea ecx, [ebp - 0x6c]
call fcn.00417990
push eax
push esi
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x414abe
push edi
lea ecx, [ebp - 0x6c]
call fcn.00417990
push eax
lea edx, [ebp - 0x54]
push edx
call fcn.00411080
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 0x4149b3
cmp eax, ecx
je 0x4149b8
call fcn.004aa1a6
cmp dword [ebp - 0x38], esi
je 0x414ab1
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x48]
sar eax, 2
cmp edi, eax
jae 0x414a9f
lea ecx, [ebp - 0x24]
call fcn.00405840
mov byte [ebp - 4], 3
lea esi, [ebp - 0x3c]
call fcn.0043e4e0
mov ebx, eax
lea esi, [ebp - 0x54]
call fcn.00406bd0
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebx]
push ecx
call fcn.00406bd0
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.0041bb30
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.00417990
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x414a8a
cmp dword [ebp - 0x1c], esi
je 0x414a8a
cmp dword [ebp - 0x18], esi
jbe 0x414a8a
lea ecx, [ebp - 0x20]
call fcn.00405840
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.0043e4e0
mov ecx, eax
add ecx, 4
call fcn.004176a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00405410
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00405410
inc edi
mov ebx, dword [ebp + 8]
jmp 0x4149c1
lea esi, [ebp - 0x3c]
call fcn.0040c110
mov eax, dword [ebp - 0x3c]
xor edi, edi
jmp 0x4149a0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x54]
push eax
call fcn.00406520
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.004a75e0
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