joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Get installed programs

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517a10
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x54d028]
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
xor edi, edi
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x30]
mov esi, dword [eax + 0x54f9ac]
xor ecx, ecx
push 0x34
mov word [ebp - 0x2c], cx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
call fcn.00404cb0
mov eax, esi
mov dword [ebp - 4], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401060
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404480
xor esi, esi
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x401087
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x34]
push edx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4010ab
mov esi, dword [ebp - 0x34]
xor eax, eax
cmp eax, edi
sete bl
cmp esi, edi
je 0x4010b9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x4010d2
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004d62da
add esp, 4
test bl, bl
jne 0x4010ec
mov eax, dword [ebp - 0x30]
add eax, 4
mov dword [ebp - 0x30], eax
cmp eax, 0xc
jb 0x401030
xor al, al
jmp 0x4010ee
mov al, 1
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.004d62e5
mov esp, ebp
pop ebp
ret

Function at 0x401d20
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5141e0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x54d028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
sub esp, 0x18
mov dword [ebp - 4], 0
mov esi, esp
lea edi, [ebp + 0x10]
mov dword [ebp - 0x10], esp
call fcn.00401620
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x14], eax
call fcn.00402280
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], ecx
mov byte [ebx + 0x30], 0
cmp eax, ecx
je 0x401dc8
cmp dword [ebx], 0
je 0x401da6
push ecx
push eax
lea esi, [ebp - 0x14]
mov ecx, ebx
call fcn.0040fb30
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
jmp 0x401da8
mov edx, ecx
mov eax, dword [ebx + 0x2c]
cmp edx, eax
jne 0x401dbc
cmp ecx, eax
jne 0x401dbc
cmp dword [ebx + 0x24], eax
jne 0x401dbc
mov byte [ebx + 0x30], 1
mov eax, dword [ebx + 0x28]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], ecx
cmp dword [ebp + 0x20], 8
jbe 0x401dde
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x401dde
push eax
call fcn.004d6e41
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x407c10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x5265c0
push reloc.OLEAUT32.dll_SysReAllocString
xor bl, bl
mov dword [esi], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407c87
mov eax, dword [ebp - 4]
push edi
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
push esi
lea edx, [ebp - 0xc]
push edx
push 0
push ecx
push eax
mov edi, eax
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407c74
cmp dword [ebp - 0xc], 4
jne 0x407c74
mov bl, 1
test edi, edi
je 0x407c7f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407c90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x515330
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x54d028]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax + 0x14], 8
mov byte [esp + 0x13], bl
mov dword [eax + 0x10], ebx
jb 0x407cd0
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push 0x5265c0
mov dword [esp + 0x58], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x407dde
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ebx
lea ecx, [esp + 0x24]
push ecx
push ebx
push 0x529a54
push esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x407dd3
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x407d4e
cmp eax, 2
jne 0x407dd3
mov eax, dword [esp + 0x18]
shr eax, 1
mov dword [esp + 0x18], eax
cmp eax, 1
jbe 0x407dce
lea edx, [eax - 1]
cmp edx, dword [ebp + 0xc]
ja 0x407dce
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 1
call fcn.0040a210
mov esi, dword [esp + 0x2c]
push 0x529a54
lea eax, [esp + 0x24]
push eax
lea edi, [esp + 0x20]
call fcn.004127a0
test eax, eax
jne 0x407dc1
mov eax, dword [esp + 0x18]
cmp eax, 1
jbe 0x407dc1
dec eax
push eax
lea ecx, [esp + 0x30]
call fcn.0040a210
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp + 8]
push ecx
push edx
call fcn.0040a650
lea ecx, [esp + 0x2c]
call fcn.0040a1e0
mov esi, dword [esp + 0x14]
mov byte [esp + 0x13], 1
cmp esi, ebx
je 0x407dde
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b6d0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515ed1
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
mov eax, dword [0x54d028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov ecx, dword [edi + 0x3c]
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x40]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov dword [edx], ecx
sub eax, ecx
mov ecx, dword [edi + 0x30]
sar eax, 1
mov dword [ecx], eax
mov dword [ebp - 0x6c], 0x529d38
mov dword [ebp - 4], ebx
lea esi, [ebp - 0x5c]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x5c], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
call fcn.00411290
mov ecx, esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ebx
call fcn.00411360
mov word [ebp - 0x1c], ax
cmp dword [ebp - 0x24], ebx
jne 0x40b75f
mov eax, dword [ebp - 0x50]
or eax, 4
push ebx
mov ecx, esi
call fcn.00411480
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 4]
and dword [ebp + eax - 0x58], 0xfffffffe
lea eax, [ebp + eax - 0x6c]
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0x6c]
push ecx
lea edx, [ebp - 0x6c]
push edx
mov dword [eax + 0x18], 6
mov dword [eax + 0x1c], ebx
call fcn.0040b860
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 0xc]
add ecx, eax
and dl, 6
movsx eax, dl
neg eax
sbb eax, eax
not eax
test ecx, eax
je 0x40b7c6
lea ecx, [ebp - 0x6c]
push ecx
call fcn.0040ba20
mov edx, 0xffff
cmp ax, dx
jne 0x40b7c6
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x5c]
mov dword [ebp + ecx - 0x6c], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
push edx
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.004bad71
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c420
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x515698
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x54d028]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov eax, dword [0x54d028]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x24]
mov edi, ecx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
mov dword [esp + 0xc], ecx
push eax
mov ecx, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 0
call fcn.00411320
lea ecx, [esp + 0x10]
push ecx
push ecx
push eax
mov dword [esp + 0x6c], 0
mov esi, dword [esi + 0x14]
push esi
lea edx, [ebp + 0x14]
push edx
lea eax, [ebp + 0xc]
push eax
lea ecx, [esp + 0x48]
push ecx
push edi
call fcn.0040cbe0
add esp, 0x1c
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.004bb0e8
mov dword [esp + 0x34], eax
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x30]
add esp, 0x10
mov dword [esp + 0x28], edx
test eax, eax
je 0x40c515
push 0
lea ecx, [esp + 0x30]
mov edi, eax
call fcn.004ba6b9
mov eax, dword [edi + 4]
test eax, eax
je 0x40c4f5
cmp eax, 0xffffffff
jae 0x40c4f5
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x2c]
not esi
call fcn.004ba6e1
and esi, edi
je 0x40c515
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
cmp byte [ebp + 0x10], 0
jne 0x40c523
lea ecx, [ebp + 0xc]
call fcn.0040f730
cmp byte [ebp + 0x18], 0
jne 0x40c531
lea ecx, [ebp + 0x14]
call fcn.0040f730
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40c565
cmp dword [ebp + 0x14], ecx
je 0x40c56b
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x30]
cmp dword [esp + 0x14], edx
je 0x40c574
cmp dword [esp + 0x10], 0
jne 0x40c574
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [eax], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 4], edx
jmp 0x40c577
cmp dword [ebp + 0x14], 0
je 0x40c53d
mov eax, dword [esp + 0xc]
or dword [eax], 1
jmp 0x40c541
or dword [eax], 2
mov eax, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004d62e5
mov esp, ebp
pop ebp
ret 0x20
Function at 0x40c5b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x515698
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x54d028]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov eax, dword [0x54d028]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x24]
mov edi, ecx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
mov dword [esp + 0xc], ecx
push eax
mov ecx, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 0
call fcn.00411320
lea ecx, [esp + 0x10]
push ecx
push ecx
push eax
mov dword [esp + 0x6c], 0
mov esi, dword [esi + 0x14]
push esi
lea edx, [ebp + 0x14]
push edx
lea eax, [ebp + 0xc]
push eax
lea ecx, [esp + 0x48]
push ecx
push edi
call fcn.0040cbe0
add esp, 0x1c
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.004bb1ab
mov dword [esp + 0x34], eax
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x30]
add esp, 0x10
mov dword [esp + 0x28], edx
test eax, eax
je 0x40c6a5
push 0
lea ecx, [esp + 0x30]
mov edi, eax
call fcn.004ba6b9
mov eax, dword [edi + 4]
test eax, eax
je 0x40c685
cmp eax, 0xffffffff
jae 0x40c685
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x2c]
not esi
call fcn.004ba6e1
and esi, edi
je 0x40c6a5
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
cmp byte [ebp + 0x10], 0
jne 0x40c6b3
lea ecx, [ebp + 0xc]
call fcn.0040f730
cmp byte [ebp + 0x18], 0
jne 0x40c6c1
lea ecx, [ebp + 0x14]
call fcn.0040f730
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40c6f5
cmp dword [ebp + 0x14], ecx
je 0x40c6fb
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x30]
cmp dword [esp + 0x14], edx
je 0x40c704
cmp dword [esp + 0x10], 0
jne 0x40c704
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [eax], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 4], edx
jmp 0x40c707
cmp dword [ebp + 0x14], 0
je 0x40c6cd
mov eax, dword [esp + 0xc]
or dword [eax], 1
jmp 0x40c6d1
or dword [eax], 2
mov eax, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004d62e5
mov esp, ebp
pop ebp
ret 0x20
Function at 0x411680
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5137fb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x54d028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004bacc3
push 4
mov dword [ebp - 4], 0
call fcn.004d6a58
mov edi, eax
add esp, 4
test edi, edi
je 0x4116fc
call fcn.004ba5d0
mov dword [edi], eax
call fcn.004ba38f
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004ba6b9
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4116f2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004ba6e1
jmp 0x4116fe
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 [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4127a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41280e
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4127dd
cmp eax, 2
jne 0x4127f8
mov eax, dword [ebp - 4]
test esi, esi
je 0x412808
test eax, eax
je 0x412803
test al, 1
jne 0x4127f8
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x412808
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x416ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x416cf8
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x416d2a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x416d26
cmp esi, eax
jae 0x416d2a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x416d18
cmp esi, eax
jb 0x416d30
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4170a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518f48
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x54d028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edi], vtable.pix::ipc::job_base.0
xor ebx, ebx
mov dword [edi + 4], ebx
mov byte [edi + 8], bl
mov ecx, dword [eax]
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], 0x1f4
mov byte [edi + 0x14], bl
lea esi, [edi + 0x18]
push 8
mov dword [esi], ebx
call fcn.004d6a58
add esp, 4
cmp eax, ebx
je 0x417151
mov dword [esi], eax
xor edx, edx
mov dword [eax + 4], edx
xor ecx, ecx
mov dword [eax], ecx
mov edx, dword [esi]
mov dword [edx], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
mov ecx, dword [edi + 0xc]
mov dword [edi], vtable.uibr::job_search.0
xor eax, eax
cmp dword [ecx + 0xc], ebx
je 0x417138
mov ecx, dword [ecx + 0x4c]
push ecx
call fcn.004b9490
add eax, 0x64
mov dword [edi + 0x30], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
call fcn.004d696a
push 0x53eb4c
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.004da48a
int3
Function at 0x4171a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x54d028]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp dword [eax], 0x20000022
push esi
mov esi, ecx
mov dword [ebp - 0x28], ebx
jne 0x4172b5
mov eax, dword [esi + 0x30]
cmp dword [eax + 0x4834], ebx
jne 0x4171ec
call fcn.0044d750
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d62e5
mov esp, ebp
pop ebp
ret 4
cmp dword [eax + 0x4834], 1
jne 0x41720f
lea ecx, [ebp - 0x20]
push ecx
mov ebx, 1
call fcn.00453320
add esp, 4
cmp dword [eax + 0x10], 0
mov byte [ebp - 0x21], bl
jne 0x417213
mov byte [ebp - 0x21], 0
test bl, 1
je 0x41722d
and ebx, 0xfffffffe
cmp dword [ebp - 0xc], 8
jb 0x41722d
mov edx, dword [ebp - 0x20]
push edx
call fcn.004d62da
add esp, 4
cmp byte [ebp - 0x21], 0
je 0x417243
push 3
push 0
push 0x52a028
push str.firefox.exe
jmp 0x4172a8
mov eax, dword [esi + 0x30]
cmp dword [eax + 0x4834], 2
jne 0x417268
lea ecx, [ebp - 0x20]
push ecx
or ebx, 2
call fcn.004b16e0
add esp, 4
cmp dword [eax + 0x10], 0
mov byte [ebp - 0x21], 1
jne 0x41726c
mov byte [ebp - 0x21], 0
test bl, 2
je 0x417279
lea ecx, [ebp - 0x20]
call fcn.00412770
cmp byte [ebp - 0x21], 0
je 0x41729d
mov eax, 0x52a028
call fcn.004b1780
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d62e5
mov esp, ebp
pop ebp
ret 4
push 3
push 0
push 0
push 0x52a028
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.004d62e5
mov esp, ebp
pop ebp
ret 4

Function at 0x4184a0
Capabilities:
Create process on windows

Disassembly:
push 3
push 0
push str.http:__go.web.de_tb_ie_productpage
push str.iexplore.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x4184e2
mov eax, dword [esi + 4]
push eax
mov dword [esi + 0x90], 0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4184e2
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
ret
Function at 0x419320
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x54d028]
xor eax, ebp
mov dword [ebp - 4], eax
movzx ecx, word [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [0x553cf4]
push edi
push 0xf0
push ecx
mov edi, 1
push esi
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4194f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4194f0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4194f0
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x419398
mov edi, dword [ebp - 0x10c]
movzx eax, word [esi]
xor edx, edx
cmp dx, ax
je 0x4194db
mov ecx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov edx, 0x403
add esi, 8
mov dword [ebp - 0x114], ecx
cmp dx, ax
jne 0x419429
push 3
push esi
lea ecx, [ebp - 0x108]
lea eax, [ebp - 0x104]
push ecx
mov dword [ebp - 0x108], eax
call fcn.00405cc0
mov edx, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x110]
push edx
mov edx, dword [ecx + 4]
push 0
push 0x143
push edi
push edx
call ebx
cmp eax, 0xffffffff
jne 0x419407
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x4194af
push eax
call fcn.004d6412
add esp, 4
jmp 0x4194af
mov edx, 0x1234
cmp dx, ax
jne 0x4194af
push 3
push esi
lea ecx, [ebp - 0x108]
lea eax, [ebp - 0x104]
push ecx
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x134], 0xffffffff
mov dword [ebp - 0x108], eax
call fcn.00405cc0
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 0x104]
mov dword [ebp - 0x130], eax
cmp eax, edx
je 0x419485
push eax
call fcn.004d6412
add esp, 4
mov edx, dword [ebp - 0x110]
lea eax, [ebp - 0x138]
push eax
mov eax, dword [edx + 4]
push 0
push 0x40b
push edi
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4194af
mov dword [ebp - 0x10c], 0
add esi, dword [ebp - 0x114]
cmp dword [ebp - 0x10c], 0
jne 0x419392
mov eax, dword [ebp - 0x10c]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d62e5
mov esp, ebp
pop ebp
ret 8
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d62e5
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004d62e5
mov esp, ebp
pop ebp
ret 8
Function at 0x420bc0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push edi
cmp dword [0x555074], esi
jne 0x420bfe
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x420bf4
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x555070], eax
mov dword [0x555074], 1
mov eax, dword [0x555070]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x420c1a
mov ecx, dword [ebp + 0xc]
push ecx
push eax
call edi
mov esi, eax
test esi, esi
jne 0x420c56
mov edx, dword [ebp + 8]
mov eax, dword [edx]
test eax, eax
jne 0x420c49
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x420c38
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
push eax
call ecx
jmp 0x420c40
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
push edx
call eax
test eax, eax
je 0x420c56
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
push edx
push eax
call edi
pop edi
pop esi
pop ebp
ret 8
pop edi
mov eax, esi
pop esi
pop ebp
ret 8