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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x449460
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4630d8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push 0x458748
lea ecx, [esp + 0x28]
call fcn.004010e0
lea edi, [eax + 4]
mov dword [esp + 0x38], 0
mov eax, dword [edi]
sub eax, 0x10
mov ebx, 1
cmp dword [eax + 0xc], ebx
jle 0x40c801
mov eax, dword [eax + 4]
push eax
mov ecx, edi
call fcn.00401c20
mov edi, dword [edi]
push edi
push 7
call fcn.0040ebe0
add esp, 8
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040ed80
cmp dword [ebp + 8], 0
je 0x40c83f
mov eax, 0x68
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebp + 0x10], 0
je 0x40c91c
mov edi, dword [ebp + 0xc]
mov edx, dword [edi]
mov edx, dword [edx + 8]
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call edx
test eax, eax
jne 0x40c86d
cmp dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
jg 0x40c88a
mov eax, 0xc8
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp + 0xc]
mov ebx, 1
mov eax, dword [0x467d00]
mov ecx, dword [ebp + 0x14]
push eax
push ecx
push 0x7a666474
push edi
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x2c], 0
call fcn.00416970
add esp, 0x18
test eax, eax
jne 0x40c86d
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40c902
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], ebx
mov eax, dword [esi + 0x18]
lea ebx, [esi + 0x10]
call fcn.0040cf80
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040c440
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
jl 0x40c882
jmp 0x40c868
mov eax, 0x66
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x50]
call eax
test eax, eax
jne 0x40c86d
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jle 0x40c868
xor edi, edi
test edi, edi
jl 0x40c971
cmp ebx, dword [esi + 0x18]
jge 0x40c971
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + edi]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 0xc]
add ecx, edi
push eax
call edx
test eax, eax
jne 0x40c86d
add ebx, 1
add edi, 0x30
cmp ebx, dword [esi + 0x18]
jl 0x40c93f
jmp 0x40c868
call fcn.00428ef0
int3
Function at 0x40f3b0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x446590
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x4630d8]
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 0x40f3ff
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 0x40f3e5
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x40f3e5
push ecx
push eax
call fcn.00432786
add esp, 8
test eax, eax
je 0x40f3e5
sub eax, dword [edi]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x40f3e5
mov edx, dword [edi]
cmp esi, dword [edx - 0xc]
jne 0x40f46a
mov ecx, dword [esp + 0x30]
push edi
add ecx, 4
call fcn.00401b30
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.004081b0
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.004082a0
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x1c]
add ecx, 4
push edx
mov byte [esp + 0x2c], 1
call fcn.00401b30
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x14]
add ecx, 4
push eax
call fcn.00401b30
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 0x40f4ff
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 0x40f52b
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 0x40f650
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x45b108
push 0x4330f0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x4630d8]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x7530
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 1
mov edi, dword [ebp + 0xc]
push edi
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
call ebx
test eax, eax
jne 0x40f83c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40f70b
mov edx, dword [ebp - 0x1c]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x40f70b
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push esi
push 1
push edi
call ebx
test eax, eax
jne 0x40f71f
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x4630d8
call fcn.00433288
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov dword [ebp - 0x24], ebx
cmp ebx, dword [ebp - 0x20]
jae 0x40f830
lea ecx, [ebx + ebx*8]
lea esi, [esi + ecx*4]
mov ecx, 9
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
push 0x24
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
jne 0x40f77d
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x4630d8
call fcn.00433288
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov dword [ebp - 4], edi
lea edx, [ebp - 0x58]
push edx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40f6f8
lea esp, [esp]
cmp dword [ebp - 0x54], edi
je 0x40f800
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x1c]
push edx
push 0x24
lea eax, [ebp - 0x58]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40f756
cmp dword [ebp - 0x54], edi
je 0x40f800
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x30]
jbe 0x40f7a0
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x4630d8
call fcn.00433288
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
call fcn.0040f824
add ebx, edi
mov dword [ebp - 0x24], ebx
mov esi, dword [ebp - 0x28]
jmp 0x40f724
mov dword [ebp - 4], 0xfffffffe
call fcn.0040f856
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f870
Capabilities:
Delete service

Disassembly:
push 0xffffffffffffffff
push 0x446ea8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4630d8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
push 0xf003f
push 0
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x40f8ea
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], 1
jle 0x40f8ca
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x24]
call fcn.00401c20
mov eax, dword [esp + 0x20]
push 0x10000
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40f912
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040ed80
mov eax, 0x64
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40f931
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
jmp 0x40f8ea
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040ed80
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret
Function at 0x40fbb0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x446638
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4630d8]
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 0x40fc56
mov eax, dword [esp + 0x34]
mov ebx, 1
cmp dword [eax - 4], ebx
jle 0x40fc1c
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x38]
call fcn.00401c20
mov eax, dword [esp + 0x34]
push 0x80000000
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
jne 0x40fcf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
mov dword [esp + 0x38], eax
jg 0x40fc7f
je 0x40fc4f
sub eax, 5
je 0x40fc4d
sub eax, ebx
je 0x40fc4f
jmp 0x40fc86
mov dword [esi], ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040ed80
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 0x40fcee
push str.OpenService_Error
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 0x40fcc6
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00401c20
mov esi, dword [esi]
push esi
push 2
call fcn.0040ebe0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.0040ed80
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 0
call fcn.0040ed80
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40fd05
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.0040ed80
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 0x4107f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4467e0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x4630d8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.0040ed50
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.0040ed50
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.00401b30
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call fcn.0040ed80
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.00401b30
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call fcn.0040ed80
lea ecx, [esp + 0xc]
call fcn.0040f350
lea ecx, [esp + 0x14]
call fcn.0040f350
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
mov edx, dword [esp + 0x10]
cmp eax, dword [edx - 0xc]
jl 0x4108ee
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.0040ed80
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040ed80
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.00408130
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004061c0
add esp, 8
lea ecx, [esp + 0x14]
movzx esi, al
mov byte [esp + 0x30], 0
call fcn.0040ed80
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040ed80
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 0x410950
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x446839
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x4630d8]
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.0040ed50
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 1
call fcn.0040ed50
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.00401b30
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 2
call fcn.0040ed80
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.00401b30
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 2
call fcn.0040ed80
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 0x410a1f
push 0x456411
mov ecx, esi
call fcn.00401f20
jmp 0x410a2c
sub eax, ecx
push eax
push esi
lea ecx, [esp + 0x14]
call fcn.004082a0
lea ecx, [esp + 0x14]
mov dword [esp + 8], 1
mov byte [esp + 0x2c], 1
call fcn.0040ed80
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.0040ed80
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 8

Function at 0x4127d0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x4127e3
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.00433cbf
add esp, 0x10
cmp eax, 1
je 0x41281b
mov edx, dword [esi + 0x14]
push edx
call fcn.004339f4
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 0x412830
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x41283f
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.00433e39
sub eax, 1
add esp, 0x10
neg eax
sbb eax, eax
and eax, 0x1f5
ret 8

Function at 0x412a20
Capabilities:
Write file on windows

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

Function at 0x412a50
Capabilities:
Write file on windows

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

Function at 0x412a80
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x412a8f
mov eax, 0x1f4
ret 8
push eax
push 1
lea eax, [esp + 0xc]
push 8
push eax
call fcn.00433e39
sub eax, 1
add esp, 0x10
neg eax
sbb eax, eax
and eax, 0x1f5
ret 8
Function at 0x412ab0
Capabilities:
Write file on windows

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

Function at 0x412ae0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x412aef
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.00433e39
sub eax, 1
add esp, 0x10
neg eax
sbb eax, eax
and eax, 0x1f5
ret 8
Function at 0x412fe0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x446c8b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4630d8]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4630d8]
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 0x413035
mov eax, 0x1f4
jmp 0x4131d0
mov eax, dword [ebp]
mov edx, dword [eax + 0xa4]
call edx
test eax, eax
je 0x41304e
mov eax, 0x1f5
jmp 0x4131d0
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 0x413087
lea esi, [eax + 0x6a]
jmp 0x4130c3
push eax
push 1
lea eax, [esp + 0x38]
push 0x400
push eax
call fcn.00433cbf
add esp, 0x10
cmp eax, 1
je 0x4130c1
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004339f4
add esp, 4
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffe0b
add esi, 0x1f5
jmp 0x4130c3
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 0x4130ee
cmp esi, ecx
jne 0x41318b
cmp edi, 0x400
jge 0x4130fa
mov dword [esp + 0x14], ecx
xor esi, esi
test edi, edi
jle 0x41312c
cmp bl, 0xa
mov al, byte [esp + esi + 0x30]
je 0x41311c
cmp bl, 0xd
je 0x413120
test al, al
je 0x413128
add esi, ecx
cmp esi, edi
mov bl, al
jl 0x413100
jmp 0x41312c
cmp al, 0xd
jmp 0x413122
cmp al, 0xa
je 0x413128
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.0040ed80
cmp dword [esp + 0x14], 0
je 0x413069
cmp esi, edi
jl 0x41318f
cmp dword [esp + 0x18], 0
je 0x4131ce
add esi, 2
jmp 0x41319e
mov eax, esi
jmp 0x4131d0
cmp dword [esp + 0x18], 0
je 0x41319b
add esi, 2
jmp 0x41319e
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.00431f44
add esp, 0x430
ret 4
Function at 0x413b00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x447170
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4630d8]
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.0040a750
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.00401b30
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.0040ed80
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 0x14

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

Disassembly:
push 0xffffffffffffffff
push 0x447020
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4630d8]
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.0040ed80
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.0040ed80
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
add esp, 0x18
ret 0xc

Function at 0x414c40
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44707b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4630d8]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
mov eax, dword [0x4630d8]
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 0x414ca8
mov eax, 0x66
jmp 0x414cf1
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.004144a0
lea ecx, [esp + 8]
mov dword [esp + 0x228], 0xffffffff
call fcn.0040ed80
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.00431f44
add esp, 0x224
ret 4