joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f120
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x446578
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4630d0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
push 0xf003f
push 0
push 0
mov dword [esp + 0x34], 0
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x40f1c6
mov eax, dword [esp + 0x34]
mov ebx, 1
cmp dword [eax - 4], ebx
jle 0x40f18c
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x38]
call fcn.00401bf0
mov eax, dword [esp + 0x34]
push 0x80000000
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
jne 0x40f267
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
mov dword [esp + 0x38], eax
jg 0x40f1ef
je 0x40f1bf
sub eax, 5
je 0x40f1bd
sub eax, ebx
je 0x40f1bf
jmp 0x40f1f6
mov dword [esi], ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040fd60
mov eax, 0x64
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
cmp eax, 0x424
je 0x40f25e
push 0x44b56c
lea ecx, [esp + 0x1c]
call fcn.004010e0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x14]
push edx
mov ecx, eax
mov byte [esp + 0x30], bl
call fcn.00401270
lea esi, [eax + 4]
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], ebx
mov byte [esp + 0x28], 2
jle 0x40f236
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
push 2
call fcn.00410660
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.0040fd60
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 0
call fcn.0040fd60
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40f275
mov dword [esi], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push edi
call esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040fd60
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x410390
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x446710
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x4630d0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [ebp + 4]
mov eax, dword [eax - 0xc]
test eax, eax
lea edi, [ebp + 4]
jne 0x4103df
mov eax, 0x64
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 0x10
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x4103c5
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x4103c5
push ecx
push eax
call fcn.00432b68
add esp, 8
test eax, eax
je 0x4103c5
sub eax, dword [edi]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x4103c5
mov edx, dword [edi]
cmp esi, dword [edx - 0xc]
jne 0x41044a
mov ecx, dword [esp + 0x30]
push edi
add ecx, 4
call fcn.00401b00
mov ecx, dword [esp + 0x34]
push 0x456411
add ecx, 4
call fcn.00401a30
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 0x10
push esi
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
call fcn.004081e0
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
mov edx, dword [esp + 0x38]
mov ecx, dword [edx + 4]
mov ecx, dword [ecx - 0xc]
xor edx, edx
cmp dword [esp + 0x3c], edx
mov dword [esp + 0x28], 0
setne dl
sub eax, edx
sub eax, ecx
sub eax, esi
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call fcn.004082d0
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x1c]
add ecx, 4
push edx
mov byte [esp + 0x2c], 1
call fcn.00401b00
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x14]
add ecx, 4
push eax
call fcn.00401b00
mov eax, dword [esp + 0x14]
mov esi, vtable.CPString.0
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
mov dword [esp + 0x10], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4104df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x18], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41050b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 0x10
Function at 0x4107c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x447200
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4630d0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
push 0
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x456411
mov dword [esp + 0x28], 0
call fcn.00401f20
mov ecx, esi
call fcn.0040a780
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x24]
lea ecx, [esi + 0xc]
push edx
mov byte [esp + 0x1c], 1
mov dword [esi], vtable.CPFPath.0
mov dword [esi + 4], eax
call fcn.00401b00
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x14], ecx
lea ecx, [esp + 0x20]
mov dword [esi + 0x10], eax
mov dword [esp + 0x18], 0xffffffff
call fcn.0040fd60
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 0x14

Function at 0x410e50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4468f0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x4630d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.0040fd30
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.0040fd30
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov byte [esp + 0x34], 1
call edx
add eax, 4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call fcn.00401b00
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call fcn.0040fd60
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x1c]
push edx
call eax
add eax, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 3
call fcn.00401b00
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call fcn.0040fd60
lea ecx, [esp + 0xc]
call fcn.00410330
lea ecx, [esp + 0x14]
call fcn.00410330
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
mov edx, dword [esp + 0x10]
cmp eax, dword [edx - 0xc]
jl 0x410f4e
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.0040fd60
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040fd60
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push eax
lea ecx, [esp + 0x10]
call fcn.00408160
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00406250
add esp, 8
lea ecx, [esp + 0x14]
movzx esi, al
mov byte [esp + 0x30], 0
call fcn.0040fd60
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040fd60
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x410fb0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x446949
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x4630d0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call fcn.0040fd30
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 1
call fcn.0040fd30
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov byte [esp + 0x30], 2
call edx
add eax, 4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 3
call fcn.00401b00
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 2
call fcn.0040fd60
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x1c]
push edx
call eax
add eax, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 4
call fcn.00401b00
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 2
call fcn.0040fd60
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [ecx - 0xc]
mov eax, dword [edx - 0xc]
cmp ecx, eax
mov esi, dword [esp + 0x34]
jl 0x41107f
push 0x456411
mov ecx, esi
call fcn.00401f20
jmp 0x41108c
sub eax, ecx
push eax
push esi
lea ecx, [esp + 0x14]
call fcn.004082d0
lea ecx, [esp + 0x14]
mov dword [esp + 8], 1
mov byte [esp + 0x2c], 1
call fcn.0040fd60
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.0040fd60
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 8

Function at 0x412cc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x446d20
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x4630d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea ecx, [esp + 0x14]
call fcn.00413150
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov dword [esp + 0x34], 0
call edx
lea esi, [eax + 4]
mov eax, dword [esi]
mov ecx, 1
sub eax, 0x10
cmp dword [eax + 0xc], ecx
mov byte [esp + 0x30], cl
jle 0x412d28
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push 0
push esi
call fcn.00433891
xor ecx, ecx
add esp, 8
cmp eax, 0xffffffff
setne cl
mov byte [esp + 0x30], 0
mov esi, ecx
lea ecx, [esp + 8]
call fcn.0040fd60
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.004133d0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret

Function at 0x413050
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x446d98
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4630d0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x3f3f3f3f
push 0x3f3f3f3f
push 1
sub esp, 8
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov dword [esp + 0x2c], 0
call fcn.00401050
mov ecx, esi
call fcn.004107c0
lea ecx, [esp + 0x1c]
mov dword [esi], vtable.CPFRef.0
mov dword [esi + 4], 2
mov dword [esp + 0x14], 0xffffffff
call fcn.0040fd60
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 8
Function at 0x4132f0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x413303
mov eax, 0x6a
pop esi
ret 8
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esp + 0x10]
push 1
push eax
push ecx
call fcn.004341b9
add esp, 0x10
cmp eax, 1
je 0x41333b
mov edx, dword [esi + 0x14]
push edx
call fcn.00433eee
add esp, 4
neg eax
sbb eax, eax
and eax, 0xfffffe0b
add eax, 0x1f5
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x413350
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x41335f
mov eax, 0x6a
ret 8
mov ecx, dword [esp + 4]
push eax
mov eax, dword [esp + 0xc]
push 1
push eax
push ecx
call fcn.00434333
sub eax, 1
add esp, 0x10
neg eax
sbb eax, eax
and eax, 0x1f5
ret 8

Function at 0x413540
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x41354f
mov eax, 0x1f4
ret 4
push eax
push 1
lea eax, [esp + 0xc]
push 2
push eax
call fcn.00434333
sub eax, 1
add esp, 0x10
neg eax
sbb eax, eax
and eax, 0x1f5
ret 4

Function at 0x413570
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x41357f
mov eax, 0x1f4
ret 4
push eax
push 1
lea eax, [esp + 0xc]
push 1
push eax
call fcn.00434333
sub eax, 1
add esp, 0x10
neg eax
sbb eax, eax
and eax, 0x1f5
ret 4

Function at 0x4135a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x4135af
mov eax, 0x1f4
ret 8
push eax
push 1
lea eax, [esp + 0xc]
push 8
push eax
call fcn.00434333
sub eax, 1
add esp, 0x10
neg eax
sbb eax, eax
and eax, 0x1f5
ret 8

Function at 0x4135d0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x4135df
mov eax, 0x1f4
ret 4
push eax
push 1
lea eax, [esp + 0xc]
push 4
push eax
call fcn.00434333
sub eax, 1
add esp, 0x10
neg eax
sbb eax, eax
and eax, 0x1f5
ret 4

Function at 0x413600
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x41360f
mov eax, 0x1f4
ret 8
mov ecx, dword [esp + 4]
push eax
mov eax, dword [esp + 0xc]
push 1
push eax
push ecx
call fcn.00434333
sub eax, 1
add esp, 0x10
neg eax
sbb eax, eax
and eax, 0x1f5
ret 8
Function at 0x413bb0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x446e7b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4630d0]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4630d0]
xor eax, esp
push eax
lea eax, [esp + 0x438]
mov dword fs:[0], eax
mov esi, dword [esp + 0x448]
mov ebp, ecx
xor edi, edi
cmp dword [ebp + 0x14], edi
jne 0x413c05
mov eax, 0x1f4
jmp 0x413da0
mov eax, dword [ebp]
mov edx, dword [eax + 0xa4]
call edx
test eax, eax
je 0x413c1e
mov eax, 0x1f5
jmp 0x413da0
lea ecx, [esi + 4]
push 0x456411
mov dword [esp + 0x1c], edi
xor bl, bl
mov dword [esp + 0x20], ecx
call fcn.00401a30
mov dword [esp + 0x14], edi
mov eax, dword [ebp]
mov edx, dword [eax + 0x9c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call edx
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x413c57
lea esi, [eax + 0x6a]
jmp 0x413c93
push eax
push 1
lea eax, [esp + 0x38]
push 0x400
push eax
call fcn.004341b9
add esp, 0x10
cmp eax, 1
je 0x413c91
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00433eee
add esp, 4
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffe0b
add esi, 0x1f5
jmp 0x413c93
xor esi, esi
mov edx, dword [ebp]
mov edx, dword [edx + 0x9c]
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
call edx
mov edi, dword [esp + 0x24]
sub edi, dword [esp + 0x20]
test esi, esi
mov ecx, 1
je 0x413cbe
cmp esi, ecx
jne 0x413d5b
cmp edi, 0x400
jge 0x413cca
mov dword [esp + 0x14], ecx
xor esi, esi
test edi, edi
jle 0x413cfc
cmp bl, 0xa
mov al, byte [esp + esi + 0x30]
je 0x413cec
cmp bl, 0xd
je 0x413cf0
test al, al
je 0x413cf8
add esi, ecx
cmp esi, edi
mov bl, al
jl 0x413cd0
jmp 0x413cfc
cmp al, 0xd
jmp 0x413cf2
cmp al, 0xa
je 0x413cf8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + esi + 0x34], 0
call fcn.00401f20
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, dword [esp + 0x20]
push eax
mov dword [esp + 0x448], 0
call fcn.00401e50
lea ecx, [esp + 0x28]
mov dword [esp + 0x440], 0xffffffff
call fcn.0040fd60
cmp dword [esp + 0x14], 0
je 0x413c39
cmp esi, edi
jl 0x413d5f
cmp dword [esp + 0x18], 0
je 0x413d9e
add esi, 2
jmp 0x413d6e
mov eax, esi
jmp 0x413da0
cmp dword [esp + 0x18], 0
je 0x413d6b
add esi, 2
jmp 0x413d6e
add esi, 1
mov ebx, dword [ebp]
mov edx, ebx
mov eax, dword [edx + 0x94]
mov ecx, ebp
call eax
mov ecx, eax
mov eax, edx
mov dword [esp + 0x1c], eax
mov eax, edi
sub eax, esi
cdq
sub ecx, eax
mov eax, dword [esp + 0x1c]
sbb eax, edx
mov edx, dword [ebx + 0xa0]
push eax
push ecx
mov ecx, ebp
call edx
xor eax, eax
mov ecx, dword [esp + 0x438]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.00431d07
add esp, 0x430
ret 4
Function at 0x414f30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x44a080
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4630d0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 8]
push edx
mov dword [esp + 0x1c], 0
call eax
sub esp, 8
mov ecx, esp
mov dword [esp + 0xc], esp
lea edx, [esp + 0x28]
push edx
push ecx
mov ecx, eax
mov byte [esp + 0x28], 1
call fcn.004011f0
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
call edx
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.0040fd60
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.0040fd60
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
add esp, 0x18
ret 0xc

Function at 0x4150d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44710b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4630d0]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
mov eax, dword [0x4630d0]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x230]
neg eax
lea ecx, [esp + 0x14]
push ecx
sbb eax, eax
push 0
and eax, 9
push 0
add eax, 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x415138
mov eax, 0x66
jmp 0x415181
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0xc]
call fcn.004010e0
sub esp, 8
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov dword [esp + 0x234], 0
call fcn.00401050
mov ecx, esi
call fcn.00412e10
lea ecx, [esp + 8]
mov dword [esp + 0x228], 0xffffffff
call fcn.0040fd60
xor eax, eax
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00431d07
add esp, 0x224
ret 4
Function at 0x415760
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x447290
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4630d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.0040fd30
lea eax, [esp + 0x28]
push eax
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00415650
mov edi, eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov byte [esp + 0x3c], 1
call fcn.00415540
push edi
lea edx, [esp + 0x1c]
push edx
mov ecx, eax
mov byte [esp + 0x40], 2
call fcn.004011f0
add eax, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 3
call fcn.00401b00
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 2
call fcn.0040fd60
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 1
call fcn.0040fd60
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 0
call fcn.0040fd60
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x14]
mov ecx, dword [ecx - 0xc]
mov eax, dword [eax - 0xc]
add ecx, 0xffffffff
cmp eax, ecx
jl 0x415843
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040fd60
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret 4
sub esp, 8
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00401050
mov ecx, dword [esp + 0x48]
call fcn.00412e10
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040fd60
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret 4
Function at 0x418df0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x447990
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4630d0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
cmp dword [esi - 4], 1
mov dword [esp + 0x14], 1
jle 0x418e35
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x2c]
call fcn.00401bf0
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], 1
jle 0x418e50
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401bf0
mov eax, dword [esp + 0x20]
push 1
xor ebx, ebx
push ebx
push esi
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cdq
cmp edx, ebx
ja case.0x418e8a.4
jb 0x418e77
cmp eax, 0x1f
ja case.0x418e8a.4
add eax, 0xfffffffe
cmp eax, 0x1d
ja case.0x418e8a.4
movzx edx, byte [eax + 0x418fac]
jmp dword [edx*4 + 0x418f98]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], bl
call fcn.0040fd60
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040fd60
mov eax, 0x1f9
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], bl
call fcn.0040fd60
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040fd60
mov eax, 0x1f5
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], bl
call fcn.0040fd60
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040fd60
mov eax, 0x6a
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], bl
call fcn.0040fd60
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040fd60
mov eax, 0x69
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], bl
call fcn.0040fd60
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040fd60
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4198f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x447ac3
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4630d0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebp, ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
push 0x10
mov dword [esp + 0x28], ebp
mov dword [esi], vtable.CPMemFile.0
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
call fcn.00428bd5
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
cmp edi, ebp
mov ebx, dword [esp + 0x30]
mov byte [esp + 0x24], 1
je 0x41997e
cmp ebx, ebp
mov dword [edi], vtable.CPMemBlock_char_.0
mov dword [edi + 4], 1
mov dword [edi + 0xc], ebp
mov dword [edi + 8], ebp
jbe 0x419980
push ebx
mov dword [edi + 8], ebx
call dword [0x46230c]
add esp, 4
mov dword [edi + 0xc], eax
jmp 0x419980
xor edi, edi
cmp edi, ebp
mov dword [esi + 0x24], edi
je 0x4199b2
mov eax, dword [edi + 8]
cmp eax, ebx
jb 0x419990
mov eax, ebx
mov ecx, dword [edi + 0xc]
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
call fcn.004333c0
mov eax, ebx
cdq
add esp, 0xc
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov dword [esi + 0x20], 1
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8

Function at 0x41a7c0
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 0x41a7d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41a814
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x41a810
lea ebx, [ebx]
cmp esi, eax
jae 0x41a814
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x41a800
cmp esi, eax
jb 0x41a81a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret