joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10188a41
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0x10198e00]
add eax, 0x1601
mov dword [0x10198e00], eax
call fcn.10001092
cmp eax, 0
sete cl
mov byte [esp + 0x27], cl
xor eax, eax
mov cl, byte [esp + 0x27]
test cl, 1
mov dword [esp + 0x20], eax
jne 0x10188af8
jmp 0x10188a7e
mov eax, dword [esp + 0x20]
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x38]
mov dword [0x10198e00], 0x17ac
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10187dd1
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov ecx, dword [0x10198dfc]
add ecx, 0x122d
mov dword [0x10198dfc], ecx
mov dword [esp + 0x1c], eax
jmp 0x10188bde
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
je 0x10188b88
jmp 0x10188ad1
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x10198dfc], 0x3bb
mov dword [esp], eax
mov dword [esp + 0x10], ecx
call fcn.10188219
lea ecx, [0x10187d6e]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x90], edx
mov dword [esp + 0x38], 0x134800
mov edx, dword [0x10198de8]
mov dword [esp + 0x84], edx
mov edx, dword [0x10198dec]
mov dword [esp + 0x4c], edx
mov edx, dword [0x10198df0]
mov dword [esp + 0x8c], edx
mov edx, dword [0x10198df4]
mov dword [esp + 0x3c], edx
mov edx, dword [0x10198df8]
mov dword [esp + 0x54], edx
mov dword [0x10198e00], 0xc9d
mov dword [0x10198dfc], 0xc7
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ecx
jmp 0x10188ae3
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
jne 0x10188ad1
mov eax, dword [esp + 0x18]
mov dword [esp + 0x6c], eax
mov dword [0x10198e00], 0x83d
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x44], edx
mov dword [0x10198dfc], 0x5f1
call fcn.101873f0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x1c], ecx
je 0x10188a86
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
jmp 0x10188a7e
Function at 0x401000
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x58c8eb
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0xa8], eax
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], di
push 0x17
push str.SOFTWAREClassesCLSID_
lea esi, [esp + 0x20]
mov dword [esp + 0xc8], edi
call fcn.0043a8d0
push 0x26
push str.9B7A98EC_7EF9_468c_ACC8_37C793DBD7E0
mov ecx, esi
call fcn.0043a690
push 0x18
push str.Implemented_Categories_
mov ecx, esi
call fcn.0043a690
push 0x26
push str.A5F7140E_4311_4ef9_AABC_F55941B5EBE5
mov ecx, esi
call fcn.0043a690
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], edi
jae 0x4010a0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push 0x201
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4010d6
cmp dword [esp + 0x30], 8
jb 0x4010cf
mov edx, dword [esp + 0x1c]
push edx
call fcn.00563626
add esp, 4
xor eax, eax
jmp 0x401166
push 0x7e
lea eax, [esp + 0x3a]
push edi
push eax
xor esi, esi
mov word [esp + 0x40], di
call fcn.005695a0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x18]
push eax
push edi
push str.idex
push ecx
mov dword [esp + 0x2c], 0x80
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401145
lea eax, [esp + 0x34]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401124
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x38]
push edx
mov esi, ebx
call fcn.0043a8d0
mov esi, 1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x30], 8
jb 0x401164
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00563626
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.00564207
add esp, 0xb8
ret

Function at 0x401250
Capabilities:
Create thread

Disassembly:
push edi
or edi, 0xffffffff
test eax, eax
mov dword [0x5f88fc], 0
jne 0x401267
mov eax, str.kdump.dll
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x5f88fc], eax
je 0x4012b6
push str.KxEOpenDumpMonitorEx2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4012b6
push esi
push 0
push 0
push eax
push 0x401190
push 0
push 0
call fcn.00565c54
add esp, 0x18
push 0xa
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x4012b5
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
ret
Function at 0x401aa0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x58c8ad
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
xor ebp, ebp
push 0x206
mov dword [esp + 0x23c], ebp
lea eax, [esp + 0x2a]
push ebp
mov dword [esp + 0x20], ebp
push eax
mov dword [esp + 0x2c], ebx
mov word [esp + 0x30], bp
call fcn.005695a0
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x5f7780
call eax
add eax, 0x10
mov dword [ebx], eax
mov eax, 1
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push ebp
push str.SOFTWAREKingsoftKISCommon
mov dword [esp + 0x248], eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x401bc9
mov edx, dword [esp + 0x10]
push str.ProgramPath
lea eax, [esp + 0x20]
push eax
lea edi, [esp + 0x1c]
lea esi, [esp + 0x2c]
mov dword [esp + 0x24], edx
call fcn.004817c0
mov esi, ebx
mov edi, eax
call fcn.00481760
cmp edi, ebp
jne 0x401bba
cmp dword [esp + 0x14], ebp
jbe 0x401bba
lea edx, [esp + 0x24]
mov edi, ebx
call fcn.00481720
mov ecx, dword [ebx]
mov edx, dword [ecx - 0xc]
lea eax, [edx - 1]
cmp eax, ebp
jl 0x401bf2
cmp eax, edx
jg 0x401bf2
movzx eax, word [ecx + eax*2]
cmp ax, 0x5c
je 0x401bba
cmp ax, 0x2f
je 0x401bba
mov edx, 0x5aeb10
call fcn.004816e0
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x401bc9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00564207
add esp, 0x22c
ret
push 0x80070057
call fcn.00473d10
int3
Function at 0x401c00
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x592618
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea ebx, [esp + 0x10]
mov dword [esp + 0xc], 0
call fcn.00401aa0
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x401c73
push 0x15
push str.ressrcchsuplive.svr
mov ecx, ebx
push ecx
call fcn.00473c80
mov edx, dword [esp + 0x10]
push edx
push 0
push str.TryNo
push str.common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
jne 0x401cd3
lea eax, [esp + 0x14]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREKingsoftKISCommonUpdate
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401ca3
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push str.TryNo
push esi
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x401cd3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401cff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x401d20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x587ddf
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x10], 0
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esi + 4], eax
mov byte [esp + 0x10], 1
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esi + 8], eax
mov byte [esp + 0x10], 2
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [esp + 0x10], 3
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [esp + 0x10], 4
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov byte [esp + 0x24], 5
call fcn.00401e20
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 0x1c
Function at 0x404270
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push edi
push 0x11c
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.005695a0
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x11c
call edi
test eax, eax
jne 0x4042cb
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x114
call edi
test eax, eax
je 0x40437c
mov eax, dword [esp + 0x18]
mov ecx, 1
sub eax, ecx
je 0x404369
sub eax, ecx
je 0x4042e7
xor esi, esi
jmp 0x40437c
mov eax, dword [esp + 0xc]
cmp eax, 6
jne 0x404323
mov eax, dword [esp + 0x10]
cmp eax, ecx
jne 0x40430b
xor eax, eax
cmp byte [esp + 0x122], cl
setne al
add eax, 8
mov esi, eax
jmp 0x40437c
test eax, eax
jne 0x404356
xor edx, edx
cmp byte [esp + 0x122], cl
setne dl
lea edx, [edx + edx + 7]
mov esi, edx
jmp 0x40437c
cmp eax, 5
jne 0x40434a
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x404336
lea esi, [eax + 3]
jmp 0x40437c
cmp eax, ecx
jne 0x404341
mov esi, 6
jmp 0x40437c
test eax, eax
jne 0x40437c
lea esi, [eax + 3]
jmp 0x40437c
cmp eax, 4
ja 0x40437c
mov esi, 4
jmp 0x40437c
cmp eax, 2
jne 0x40437c
cmp byte [esp + 0x122], cl
jne 0x40437c
lea esi, [eax + 8]
jmp 0x40437c
mov eax, dword [esp + 0x14]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb esi, esi
add esi, 2
mov ecx, dword [esp + 0x124]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00564207
add esp, 0x120
ret

Function at 0x4044a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
xor ecx, ecx
mov esi, eax
mov eax, dword [ebp]
cmp eax, ecx
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ecx
je 0x404581
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x1c]
push edx
push ecx
lea edx, [esp + 0x18]
push edx
push ecx
push str.ProgramPath
push eax
call ebx
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x4044ee
cmp eax, 2
jne 0x404581
call fcn.00481760
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
sub eax, 0x10
shr ecx, 1
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add ecx, 1
sub eax, ecx
or edx, eax
jge 0x404519
mov eax, esi
call fcn.00481530
mov edi, dword [esi]
mov eax, dword [ebp]
lea ecx, [esp + 0x1c]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push str.ProgramPath
push eax
call ebx
test eax, eax
jne 0x404549
mov ecx, dword [esp + 0x1c]
shr ecx, 1
mov word [edi + ecx*2], ax
mov dword [esp + 0x14], 1
mov edx, dword [esi]
test edx, edx
jne 0x404553
xor eax, eax
jmp 0x404571
mov eax, edx
lea edi, [eax + 2]
jmp 0x404560
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404560
sub eax, edi
sar eax, 1
js 0x40458f
cmp eax, dword [edx - 8]
jg 0x40458f
mov dword [edx - 0xc], eax
mov edx, dword [esi]
mov word [edx + eax*2], 0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push 0x80070057
call fcn.00473d10
int3
Function at 0x404cf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x599398
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push ebx
push esi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
mov edx, dword [ebp + 8]
add eax, 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ebx
xor eax, eax
test edx, edx
mov dword [esp + 0xc0], ebx
je 0x404d67
mov eax, dword [edx]
mov ecx, dword [eax + 0x18]
push ebx
push str.param
push edx
call ecx
lea edx, [esp + 0x10]
push edx
mov ecx, eax
call fcn.00481430
lea eax, [esp + 0x10]
push 0
push eax
lea esi, [esp + 0x14]
mov byte [esp + 0xc8], 1
call fcn.00478b50
add esp, 8
mov byte [esp + 0xc0], 3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404db6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0047f920
test eax, eax
mov byte [esp + 0xc0], 4
je 0x404e0f
cmp dword [eax + 0x24], 1
jg 0x404e0f
push 1
push str.CKVipGamePage::CreateNewPage
push 0x1e
push str.e:kingsoft_duba_build_build_srckisenginekis_2016_released_sp5.5_1339_fbkis_srckvip_srckyboxipcgamepageipc.h
lea ecx, [esp + 0x44]
push ecx
call fcn.0047f220
push str.Creating_New_Page._param
mov byte [esp + 0xc4], 5
mov ebx, 1
push eax
mov dword [esp + 0x20], ebx
call fcn.0047f6e0
mov edx, dword [esp + 0x14]
push edx
push eax
call fcn.0047f6e0
add esp, 0x10
test bl, 1
mov dword [esp + 0xc0], 4
je 0x404e29
lea eax, [esp + 0x34]
push eax
call fcn.0047eb40
mov byte [esp + 0xc0], 3
mov eax, dword [0x5f9180]
test eax, eax
je 0x404e41
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x404e59
call fcn.00473e70
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
push 0
push eax
push 0x433
push edx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
test eax, eax
mov byte [esp + 0xc0], 6
je 0x404eaf
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push 1
push 0x5aa594
push eax
call edx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0xc4], 3
call fcn.00404810
mov byte [esp + 0xc0], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ee9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0xc4], 0xffffffff
call fcn.00404810
xor eax, eax
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4067c0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x58fbd8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406808
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 4
lea ecx, [esp + 0x14]
lea esi, [esp + 0x18]
call fcn.00406980
test eax, eax
je 0x4067f2
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
push ebx
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x18]
push eax
call fcn.004069d0
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.00406b40
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov edx, ebx
call fcn.00481720
push edi
push ebx
call fcn.004068d0
push edi
lea edx, [esp + 0x14]
push edx
call fcn.00406bb0
mov esi, eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4068ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 4

Function at 0x4068d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x592618
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x30]
lea ebx, [esp + 0x14]
mov dword [esp + 0x28], 0
call fcn.00407720
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
push eax
push ecx
push str._I64d
add edi, 0x10
call fcn.00481690
lea eax, [esi - 0x10]
add esp, 0xc
mov dword [esp + 0x28], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406963
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 8

Function at 0x406980
Capabilities:
Create pipe

Disassembly:
sub esp, 0xc
push 0x10000
lea eax, [esp + 4]
push eax
push ecx
push esi
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4069b5
add esp, 0xc
ret
mov edx, dword [esi]
push 0
push 1
push edx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov eax, 1
add esp, 0xc
ret
Function at 0x4069d0
Capabilities:
Access peb ldr_data
Create process on windows
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x588858
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x44
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x84], 0
call fcn.005695a0
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
or dword [esp + 0x5c], 0x100
push ecx
xor eax, eax
push edx
push str.__s__d_badging___s_
lea edi, [esp + 0x28]
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call fcn.00481690
mov esi, dword [esp + 0x28]
add esp, 0x18
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x406add
lea eax, [esi - 0x10]
mov dword [esp + 0x78], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406ac7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x70
ret 8
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x18]
push eax
call edi
lea eax, [esi - 0x10]
mov dword [esp + 0x78], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x70
ret 8

Function at 0x406b40
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0
push ebp
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ebx, [edi + 1]
push ebx
call fcn.00566d66
mov esi, eax
add esp, 4
test esi, esi
je 0x406ba1
push ebx
push 0
push esi
call fcn.005695a0
add esp, 0xc
push 0
lea eax, [esp + 0x18]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esp + 0x18]
push esi
push 0x5aabac
call fcn.00479f80
push esi
call fcn.00566eaf
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
Function at 0x407720
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 7
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407776
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40776f
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [ebx], edx
mov dword [ebx + 4], eax
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret

Function at 0x4077a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x420
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x41c], eax
lea eax, [esp + 0x214]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4077e5
call fcn.00473d40
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.00564207
add esp, 0x420
ret
cmp eax, 0x100
jbe 0x407806
mov eax, 0x80020013
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.00564207
add esp, 0x420
ret
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x5aacac
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4077cb
push edi
push 0xffffffffffffffff
lea eax, [esp + 0x14]
push eax
lea edi, [esi + 4]
push 0x101
push edi
mov word [esp + 0x226], 0
call fcn.005640fc
push eax
call fcn.00434ac0
add esp, 0x14
push 0
push 0x2100
push 2
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x40000000
push edi
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
mov dword [esi + 0x208], 0x40000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
pop edi
je 0x4077cb
mov ecx, dword [esp + 0x41c]
mov dword [esi], eax
xor ecx, esp
xor eax, eax
call fcn.00564207
add esp, 0x420
ret

Function at 0x4078b0
Capabilities:
Write file on windows

Disassembly:
test eax, eax
jne 0x4078b8
lea eax, [esp + 4]
push 0
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [edx]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4078d6
call fcn.00473d40
ret 4
xor eax, eax
ret 4