joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416ed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x2fa8], 0
lea esi, [edi + 0x2fac]
je 0x416f52
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x416f0c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00418ab0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.004054a0
mov edx, dword [esi]
mov ecx, 0x446680
push dword [edi + 0x2fa8]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x2fb4]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.004054a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x42108a
mov eax, dword [0x446684]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x42107d
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4210bb
mov eax, dword [0x446684]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x4210ae
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4210ec
mov eax, dword [0x446684]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x4210df
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x421139
mov eax, dword [0x446684]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x42112c
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x42116a
mov eax, dword [0x446684]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x42115d
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x42119b
mov eax, dword [0x446684]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x42118e
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.00423ce0
Function at 0x43dff6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43e035
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43e035
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43e035
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43e035
cmp dword [ecx + 0x74], 0xe
jbe 0x43e035
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100080c7
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100080c7
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100080c7
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100080c7
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100080c7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100080c7
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100080c7
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100080c7
push 0xd008
push edi
call fcn.100080c7
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100080c7
int3

Function at 0x100080c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x100080d6
pop dword [ebp - 0x34]
mov eax, 0xdf24433d
add eax, 0x30dc3d99
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x3aca2
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0xe21077a8
sub ecx, 0xe2102882
xor esi, esi
add esi, eax
mov edx, 0x53f8499e
sub edx, 0x43f6c39e
add edx, dword [ebp - 0x34]
mov ebx, 0x50027e52
sub ebx, 0x9659016e
mov dword [ebp - 0xc], 0x9b0e8d7a
mov edi, dword [edx]
add dword [ebp - 8], 0x108af074
xor edi, ebx
mov dword [ebp - 0x14], 0xff232fce
mov dword [esi], edi
add dword [ebp - 8], 0x5e6fb227
add esi, 4
add edx, 0xa3ca52b1
add edx, 0x5c35ad53
loop 0x10008132
add eax, 0xba767e98
sub eax, 0xba754f2d
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x889c866d
add ecx, 0x87637993
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x13130
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x13140
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea esi, [esi + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0x13150
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x13710
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x2316ec]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x22c]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 4]
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
mov ecx, dword [edi]
or edx, 0x2001f
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.000136a0
mov ebp, eax
cmp ebp, esi
je 0x13774
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x1376d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
jmp 0x1380d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
push esi
push esi
push esi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x44]
push ecx
push esi
push edx
mov dword [esp + 0x40], 0x100
call ebx
test eax, eax
jne 0x137da
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00013710
mov ebp, eax
cmp ebp, esi
jne 0x1375e
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push esi
push esi
push esi
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x44]
push eax
push esi
push ecx
mov dword [esp + 0x40], 0x100
call ebx
test eax, eax
je 0x137a0
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x137ef
push eax
call ebp
mov dword [esp + 0x14], esi
mov ebx, dword [esp + 0x24]
mov eax, edi
mov dword [esp + 0x18], esi
call fcn.00013890
mov edi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x1380b
push eax
call ebp
mov eax, edi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00158a41
add esp, 0x228
ret 4
Function at 0x143e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x1c2ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x2316ec]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
xor esi, esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, esi
jne 0x1445f
call fcn.00012970
mov esi, eax
jmp 0x14554
mov eax, dword [ebp - 0x14]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, esi
jne 0x1447b
call fcn.00012970
jmp 0x1454b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp eax, esi
jne 0x14494
call fcn.00012970
jmp 0x1454b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x14], ebx
cmp eax, ebx
jae 0x144b2
mov esi, 0x8007000e
jmp 0x1454d
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x144c7
cmp eax, 0xffffffff
jbe 0x144d1
push 0x80070216
call fcn.00014db0
cmp eax, 0x400
jbe 0x144fa
lea ecx, [ebp]
push ecx
call fcn.00013110
jmp 0x14500
lea edx, [ebp + 4]
mov dword [ebp], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp]
cmp eax, esi
jne 0x14515
mov esi, 0x8007000e
jmp 0x1454d
push ebx
push eax
mov eax, dword [ebp - 0x18]
push ebx
push eax
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
jne 0x14530
call fcn.00012970
jmp 0x1454b
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea esi, [ebp - 0x24]
call fcn.00014250
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x14564
lea eax, [ebp]
call fcn.000130f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00158a41
lea esp, [ebp + 0x408]
pop ebp
ret 0xc
Function at 0x16000
Capabilities:
Get common file path

Disassembly:
cmp dword [0x24d554], 0
jne 0x160b8
cmp byte [0x24d450], 0
jne 0x1608d
push 0x24d450
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jb 0x16056
push 0x104
push 0x24d450
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x24d450
call fcn.0015a2d0
add esp, 8
test eax, eax
je 0x16056
mov byte [eax + 1], 0
mov eax, 0x24d450
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x16060
mov ecx, dword [str._debug.log]
mov edx, dword [0x1e8ac8]
mov dword [eax], ecx
mov cx, word [0x1e8acc]
mov dword [eax + 4], edx
mov dl, byte [0x1e8ace]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
push 0x1e8ad0
push 0x24d450
call fcn.0015a19e
add esp, 8
mov dword [0x24d554], eax
test eax, eax
jne 0x160ab
xor al, al
ret
push 2
push 0
push eax
call fcn.0015a67f
add esp, 0xc
mov al, 1
ret
Function at 0x160c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x1b9f2b
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x2316ec]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x2316ec]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x29c]
cmp dword [ebp + 0x10], 0
je 0x1627c
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x7e]
push ecx
mov word [esp + 0x80], ax
call fcn.0015e420
add esp, 0xc
push 0x104
lea edx, [esp + 0x78]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x74]
push 0x5c
push eax
call fcn.0015a0b4
add esp, 8
test eax, eax
je 0x16154
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [esp + 0x74]
lea edx, [eax + 2]
jmp 0x16160
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x16160
sub eax, edx
sar eax, 1
mov edx, 0x104
sub edx, eax
push edx
lea eax, [esp + 0x78]
push 0x1e8ad4
push eax
call fcn.00159f23
xor ecx, ecx
add esp, 0xc
cmp dword [ebp + 0x14], 0x10
mov word [esp + 0x27a], cx
jb 0x1619e
mov eax, dword [ebp]
jmp 0x161a0
mov eax, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call ebx
mov esi, eax
test esi, esi
je 0x1627c
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00157a7c
add esp, 4
mov edi, eax
cmp dword [ebp + 0x14], 0x10
jb 0x161e4
mov ebp, dword [ebp]
push esi
push edi
or esi, 0xffffffff
push esi
push ebp
push 0
push 0xfde9
call ebx
test eax, eax
je 0x1626c
push 0x44
lea eax, [esp + 0x30]
push 0
push eax
call fcn.0015e420
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push edi
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1625c
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [esp + 0x1c]
push eax
call ebx
jmp 0x1626c
push 0x10
push str.Fatal_error
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
mov dword [esp + 0x298], esi
call fcn.00159081
add esp, 4
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.00158a41
add esp, 0x284
ret
Function at 0x162d0
Capabilities:
Print debug messages
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x1bd653
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x2316ec]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
mov eax, dword [0x2316ec]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x58], 0
mov eax, dword [edi]
cmp eax, dword [0x24d448]
jl 0x164f0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edi + 8]
call fcn.00016f30
push 2
mov ebx, 1
push 0x1e8b18
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], bl
call fcn.000178a0
cmp dword [0x24d44c], 0
lea ebp, [ebx + 0xf]
je 0x16362
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], ebp
jae 0x1635b
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x24d44c], ebx
je 0x163d8
call fcn.00016000
test al, al
je 0x163d8
cmp byte [0x24d55a], 0
jne 0x1638d
push 0x24d3dc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [0x24d55a], bl
push 0x24d3dc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x24d554]
push 2
push 0
push edx
call fcn.0015a67f
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp dword [esp + 0x28], ebp
jae 0x163b9
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x24d554]
push 0x1e8b1c
push eax
call fcn.0015a1b5
add esp, 0xc
push 0x24d3dc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [edi], 3
jne 0x164c3
mov ecx, dword [0x24d554]
push ecx
call fcn.00159ec7
add esp, 4
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x16405
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x164c3
cmp dword [0x24d55c], 0
je 0x1643c
lea edx, [esp + 0x30]
push edx
lea ecx, [edi + 8]
call fcn.00016f30
push eax
mov byte [esp + 0x5c], 2
call dword [0x24d55c]
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], bl
call fcn.000d0ca0
jmp 0x164c3
mov eax, dword [0x234e74]
cmp byte [eax], 0
jne 0x16470
lea ecx, [esp + 0x30]
push ecx
lea ecx, [edi + 8]
call fcn.00016f30
push eax
mov byte [esp + 0x5c], 3
call fcn.000160c0
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], bl
call fcn.000d0ca0
jmp 0x164b5
lea edx, [esp + 0x30]
push edx
lea ecx, [edi + 8]
call fcn.00016f30
cmp dword [eax + 0x14], ebp
jb 0x16484
mov eax, dword [eax]
push eax
push 0x1e8b20
call fcn.00159acd
add eax, 0x40
push eax
call fcn.0015a1b5
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.000d0ca0
call fcn.00159acd
add eax, 0x40
push eax
call fcn.00159ec7
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [esp + 0x58], 0
cmp dword [esp + 0x28], ebp
jb 0x164db
mov eax, dword [esp + 0x14]
push eax
call fcn.00158a36
add esp, 4
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
lea esi, [edi + 0x68]
mov ecx, esi
mov dword [esp + 0x58], 0xffffffff
call fcn.00016e90
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.00157cfc
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00158a41
add esp, 0x4c
ret
Function at 0x18ac0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x1baff6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x2316ec]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0015812f
push 4
mov dword [esp + 0x28], 0
call fcn.00158a50
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov byte [esp + 0x24], 1
test edi, edi
je 0x18b4b
call fcn.00158007
mov dword [edi], eax
call fcn.00157dc6
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.001580f0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x18b40
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00158118
jmp 0x18b4d
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 [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret

Function at 0x1ba00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1bbf58
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x2316ec]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp dword [esi + 0x30], 0x10
jb 0x1ba41
mov eax, dword [esi + 0x1c]
push eax
call fcn.00158a36
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov dword [esp + 0x18], 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x1ba67
mov eax, dword [esi]
push eax
call fcn.00158a36
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x1d150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1bae18
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x2316ec]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x1c]
cmp dword [esi + 0x30], 0x10
jb 0x1d18e
mov eax, dword [esi + 0x1c]
push eax
call fcn.00158a36
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov dword [esp + 0x14], 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x1d1b4
mov eax, dword [esi]
push eax
call fcn.00158a36
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x1e050
Capabilities:
Create thread

Disassembly:
push esi
push 8
call fcn.00158a50
add esp, 4
push 0
mov esi, eax
mov eax, dword [esp + 0xc]
push 0
push esi
push 0x1e020
test edi, edi
push 0
setne cl
push 0
mov dword [esi], eax
mov byte [esi + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1e090
push esi
call fcn.00158a36
add esp, 4
xor al, al
pop esi
ret
test edi, edi
je 0x1e09a
mov dword [edi], eax
mov al, 1
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret

Function at 0x1e0b0
Capabilities:
Create thread

Disassembly:
push esi
push 8
call fcn.00158a50
add esp, 4
push 0
mov esi, eax
mov eax, dword [esp + 0xc]
push 0
push esi
push 0x1e020
push 0
push 0
mov dword [esi], eax
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1e0ec
push esi
call fcn.00158a36
add esp, 4
xor al, al
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret

Function at 0x1e100
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x2316ec]
xor eax, esp
mov dword [esp + 0x11c], eax
cmp byte [0x24dcbd], 0
jne 0x1e1af
lea eax, [esp]
push eax
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
mov ecx, 1
cmp eax, 5
jne 0x1e16e
mov eax, dword [esp + 8]
sub eax, 0
je 0x1e166
sub eax, ecx
je 0x1e15a
mov dword [0x24dcc0], 3
jmp 0x1e1a9
mov dword [0x24dcc0], 2
jmp 0x1e1a9
mov dword [0x24dcc0], ecx
jmp 0x1e1a9
cmp eax, 6
jne 0x1e19d
cmp byte [esp + 0x11a], cl
je 0x1e188
mov dword [0x24dcc0], 5
jmp 0x1e1a9
xor edx, edx
cmp dword [esp + 8], edx
setne dl
lea edx, [edx + edx + 4]
mov dword [0x24dcc0], edx
jmp 0x1e1a9
jbe 0x1e1a9
mov dword [0x24dcc0], 6
mov byte [0x24dcbd], cl
mov ecx, dword [esp + 0x11c]
mov eax, dword [0x24dcc0]
xor ecx, esp
call fcn.00158a41
add esp, 0x120
ret