joyce8/EMBER2024-capa huggingface dataset:
Function at 0x546520
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x3ec], 0
push edi
mov edi, dword [esp + 0xc]
je 0x546561
cmp dword [esi + 0x408], 0x10
mov ecx, dword [esi + 0x404]
jb 0x546548
mov eax, dword [esi + 0x3f4]
jmp 0x54654e
lea eax, [esi + 0x3f4]
push ecx
push eax
mov eax, dword [edi + 0x14]
push eax
push 0
mov ecx, edi
call fcn.004565a0
test eax, eax
je 0x5465b5
mov cl, byte [esp + 0x10]
push 0xffffffffffffffff
push 0
mov byte [esi + 0x3ed], cl
push edi
lea ecx, [esi + 0x3f0]
mov byte [esi + 0x3ec], 1
call fcn.00403e20
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x40c], eax
cmp dword [edi + 0x18], 0x10
jb 0x546599
mov eax, dword [edi + 4]
jmp 0x54659c
lea eax, [edi + 4]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x5465bc
pop edi
mov al, 1
pop esi
ret 8
mov edx, dword [esi]
mov eax, dword [edx + 0x8c]
push edi
mov ecx, esi
call eax
pop edi
xor al, al
pop esi
ret 8
Function at 0x54a9d0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x6473c6
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebp
push esi
push edi
mov eax, dword [0x699fe8]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xb4]
mov edi, ecx
cmp byte [edi + 0x511], 0
je 0x54aa40
cmp byte [edi + 0x512], 0
jne 0x54ac36
call fcn.0054ecf0
push 0
push 1
lea esi, [edi + 0x54c]
mov byte [edi + 0x57c], 1
call fcn.005d66e0
test eax, eax
setne al
jmp 0x54ac38
mov eax, ebx
lea esi, [esp + 0x14]
call fcn.005b09d0
push eax
mov dword [esp + 0xac], 0
call fcn.005b0890
mov esi, 0x10
add esp, 4
mov dword [esp + 0xa8], 0xffffffff
cmp dword [esp + 0x2c], esi
jb 0x54aa82
mov eax, dword [esp + 0x18]
push eax
call fcn.0061c19a
add esp, 4
cmp dword [ebx + 0x18], esi
jb 0x54aa8c
mov eax, dword [ebx + 4]
jmp 0x54aa8f
lea eax, [ebx + 4]
push 0x670908
push eax
call fcn.0061ceb1
mov esi, eax
add esp, 8
test esi, esi
jne 0x54aad8
cmp byte [edi + 0x510], al
je 0x54aad1
call fcn.0054ec60
push 1
lea esi, [edi + 0x54c]
push 0
call fcn.005d62e0
push 5
push 0x10
call fcn.005d62e0
push 1
push 0
call fcn.005d62e0
xor al, al
jmp 0x54ac38
mov ecx, dword [esp + 0xb0]
push esi
push ebp
push 1
push ecx
call fcn.0061d3c8
push esi
call fcn.0061cf36
add esp, 0x14
cmp byte [edi + 0x510], 0
je 0x54ab21
call fcn.0054ec60
push 1
lea esi, [edi + 0x54c]
push 0
call fcn.005d62e0
push 5
push 0x10
call fcn.005d62e0
push 1
push 1
call fcn.005d62e0
cmp byte [edi + 0x505], 0
je 0x54ac36
cmp byte [edi + 0x504], 0
je 0x54ac36
push str.Buffer
lea ecx, [esp + 0x18]
call fcn.00404450
push ebx
lea edi, [esp + 0x50]
mov dword [esp + 0xac], 1
call fcn.005b04b0
add esp, 4
lea edx, [ebp + 1]
push edx
lea ecx, [esp + 0x18]
push ecx
mov edi, eax
mov byte [esp + 0xb0], 2
call fcn.005baca0
lea ecx, [esp + 0x4c]
mov esi, eax
call fcn.00404420
lea ecx, [esp + 0x14]
mov dword [esp + 0xa8], 0xffffffff
call fcn.00404420
test esi, esi
je 0x54ac36
mov edx, dword [esp + 0xb0]
push ebp
push edx
lea eax, [esi + 1]
push eax
mov byte [esi], 1
call fcn.00624510
add esp, 0xc
push esi
call fcn.005baef0
push esi
call fcn.005bae00
push str.Buffer
lea ecx, [esp + 0x34]
call fcn.00404450
push ebx
lea edi, [esp + 0x88]
mov dword [esp + 0xac], 3
call fcn.005b04b0
add esp, 4
mov esi, eax
push ebx
lea edi, [esp + 0x6c]
mov byte [esp + 0xac], 4
call fcn.005b04b0
add esp, 4
mov ecx, eax
lea edx, [esp + 0x30]
push edx
mov eax, esi
mov byte [esp + 0xac], 5
call fcn.005bac30
mov ecx, edi
call fcn.00404420
lea ecx, [esp + 0x84]
call fcn.00404420
lea ecx, [esp + 0x30]
call fcn.00404420
mov al, 1
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x9c
ret 8

Function at 0x54b260
Capabilities:
Delete file

Disassembly:
cmp byte [ecx + 0x511], 0
je 0x54b26c
mov al, 1
ret
cmp dword [eax + 0x18], 0x10
jb 0x54b283
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x54b2a2
Capabilities:
Hide graphical window

Disassembly:
fldz
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0xf0]
sub esp, 8
fstp qword [esp]
call edx
mov eax, dword [esi + 0x350]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
mov byte [esi + 0x340], 1
mov ecx, esi
pop esi
jmp eax

Function at 0x54b810
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x38
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x33c], 0
je 0x54b841
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [edi + 0x33c]
je 0x54b841
mov byte [edi + 0x4fd], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x341], 0
jne 0x54b921
mov al, 1
mov byte [edi + 0x342], al
mov byte [edi + 0x341], al
mov eax, dword [edi]
mov edx, dword [eax + 0x50]
mov ecx, edi
call edx
cmp byte [edi + 0x511], 0
je 0x54b89e
mov eax, dword [edi]
fld qword [edi + 0xe0]
mov edx, dword [eax + 0xf0]
sub esp, 8
mov ecx, edi
fstp qword [esp]
call edx
fld qword [edi + 0xe8]
mov eax, dword [edi]
mov edx, dword [eax + 0xf4]
sub esp, 8
mov ecx, edi
fstp qword [esp]
call edx
cmp byte [edi + 0x4fe], 0
je 0x54b8bd
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ecx]
push 0xa
call esi
cmp byte [edi + 0x4fe], 0
jne 0x54b8b0
mov ecx, dword [edi + 0x374]
test ecx, ecx
je 0x54b8ce
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
cmp byte [edi + 0x344], 0
jne 0x54b8f2
mov eax, dword [edi + 0x36c]
test eax, eax
je 0x54b8f2
cmp dword [eax + 0x58], 0
je 0x54b8f2
mov eax, dword [eax + 0x58]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4c]
push eax
call edx
mov eax, dword [edi + 0x350]
test eax, eax
je 0x54b905
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0054b930
cmp byte [edi + 0x378], 0
je 0x54b91c
mov eax, dword [edi]
mov edx, dword [eax + 0x5c]
mov ecx, edi
call edx
call fcn.005d0080
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5513c0
Capabilities:
Create thread

Disassembly:
cmp byte [esi + 0x4f9], 0
jne 0x5513f6
push 1
mov byte [esi + 0x4fc], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
push 0
push 0x551350
mov byte [esi + 0x4f9], 1
call fcn.0061f90f
add esp, 0xc
ret

Function at 0x551540
Capabilities:
Create thread

Disassembly:
cmp byte [esi + 0x4fe], 0
jne 0x55156f
push 1
mov byte [esi + 0x4fe], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
push 0
push 0x551520
call fcn.0061f90f
add esp, 0xc
ret
Function at 0x5522c0
Capabilities:
Hide graphical window
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x134
mov eax, dword [0x699fe8]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x341], 0
push edi
jne 0x55249a
call fcn.00551540
cmp byte [esi + 0x4f8], 0
je 0x5522ff
call fcn.005513c0
mov eax, dword [esi + 0x350]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x350]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
push 1
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
call ebx
mov edx, dword [esi]
mov edi, eax
mov eax, dword [edx + 0x178]
mov ecx, esi
mov byte [esi + 0x4cd], 1
mov dword [esi + 0x474], edi
mov dword [esi + 0x478], edi
mov dword [esi + 0x410], edi
call eax
push esi
call fcn.005518f0
mov byte [esi + 0x4cd], 0
call fcn.00546750
call ebx
sub eax, edi
test eax, eax
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
jge 0x55237a
fadd qword [0x6792b0]
fdiv qword [0x679628]
sub esp, 8
lea ecx, [esp + 0x40]
fstp qword [esp]
push str.Seconds_________g_r_n
push ecx
call fcn.0061d4e6
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x10
lea edx, [esp + 0x38]
push edx
call edi
mov eax, dword [esi + 0x47c]
push eax
lea ecx, [esp + 0x3c]
push str.Sleep_Count_____d_r_n
push ecx
call fcn.0061d4e6
add esp, 0xc
lea edx, [esp + 0x38]
push edx
call edi
mov eax, dword [esi + 0x484]
push eax
lea ecx, [esp + 0x3c]
push str.Update_Count____d_r_n
push ecx
call fcn.0061d4e6
add esp, 0xc
lea edx, [esp + 0x38]
push edx
call edi
mov eax, dword [esi + 0x480]
push eax
lea ecx, [esp + 0x3c]
push str.Draw_Count______d_r_n
push ecx
call fcn.0061d4e6
add esp, 0xc
lea edx, [esp + 0x38]
push edx
call edi
mov eax, dword [esi + 0x4d4]
push eax
lea ecx, [esp + 0x3c]
push str.Draw_Time_______d_r_n
push ecx
call fcn.0061d4e6
add esp, 0xc
lea edx, [esp + 0x38]
push edx
call edi
mov eax, dword [esi + 0x4f4]
push eax
lea ecx, [esp + 0x3c]
push str.Screen_Blt______d_r_n
push ecx
call fcn.0061d4e6
add esp, 0xc
lea edx, [esp + 0x38]
push edx
call edi
mov eax, dword [esi + 0x4f4]
mov ecx, dword [esi + 0x4d4]
add ecx, eax
test ecx, ecx
jle 0x552480
mov eax, dword [esi + 0x480]
imul eax, eax, 0x3e8
cdq
idiv ecx
lea edx, [esp + 0x38]
push eax
push str.Avg_FPS_________d_r_n
push edx
call fcn.0061d4e6
add esp, 0xc
lea eax, [esp + 0x38]
push eax
call edi
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
mov edx, dword [esi]
mov eax, dword [edx + 0x54]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x5c]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0061efd1
mov esp, ebp
pop ebp
ret
Function at 0x5527b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x64a8d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x699fe8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x634]
lea esi, [esp + 0xc]
call fcn.005b3f20
mov dword [esp + 0x30], 0
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
cmp dword [esp + 0x24], 0x10
jb 0x55280f
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0061c19a
add esp, 4
cmp byte [esp + 0x38], 0
je 0x55281d
push 0
call fcn.0054b970
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 4
Function at 0x5546f0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
cmp byte [eax + 0x511], 0
jne 0x5547f2
mov eax, dword [eax + 0x350]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x5547f2
push ebx
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esi + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
add eax, 1
push eax
push 0x2002
call ebp
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [esi + 0x18], 0x10
lea ecx, [esi + 4]
mov dword [esp + 0xc], ecx
jb 0x554748
mov ecx, dword [ecx]
mov edx, eax
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x554750
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, dword [sym.imp.USER32.dll_SetClipboardData]
push edi
push 1
call ebx
push edi
push 7
call ebx
push edi
push 0x10
call ebx
cmp dword [esi + 0x18], 0x10
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0xc]
jb 0x554789
mov ecx, dword [ecx]
push 0
push 0
push eax
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
lea edx, [edi + edi + 2]
push edx
push 0x2002
call ebp
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [esi + 0x18], 0x10
mov ecx, dword [esp + 0xc]
mov ebp, eax
mov eax, dword [esi + 0x14]
jb 0x5547c1
mov ecx, dword [ecx]
push edi
push ebp
push eax
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
mov word [ebp + edi*2], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop ebp
pop ebx
add esp, 4
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop ecx
ret
Function at 0x561180
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6472ae
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x699fe8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.Sexy::DDInterface.0
mov dword [esp + 0x14], 3
mov eax, dword [esi + 0xd0]
push eax
call fcn.0061c19f
mov eax, dword [esi + 0xd4]
push eax
call fcn.0061c19f
mov eax, dword [esi + 0xd8]
push eax
call fcn.0061c19f
add esp, 0xc
call fcn.00562dd0
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x5611f1
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x561200
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
cmp dword [esi + 0xd4c], 0x10
jb 0x561218
mov eax, dword [esi + 0xd38]
push eax
call fcn.0061c19a
add esp, 4
mov dword [esi + 0xd4c], 0xf
mov dword [esi + 0xd48], 0
lea eax, [esi + 0xcf0]
mov byte [esi + 0xd38], 0
mov byte [esp + 0x14], 1
call fcn.0059c280
lea eax, [esi + 0x3c]
call fcn.005af3e0
mov ecx, esi
call fcn.005887f0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x569ab0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esi + 0x1c]
sub esp, 0xc
test eax, eax
je 0x569b92
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [esp + 8]
push ecx
push 4
push 0
push str.Version
push eax
mov dword [esp + 0x1c], 2
call edi
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0xb0]
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push str.MinVidMemory
push ecx
mov dword [esp + 0x20], edx
call edi
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0xb4]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
push str.RecVidMemory
push ecx
mov dword [esp + 0x24], edx
call edi
mov eax, dword [esi + 0x1c]
push 0x10
lea edx, [esi + 0x20]
push edx
push 3
push 0
push str.DisplayGUID
push eax
call edi
mov eax, dword [esi + 0x8c]
add eax, 1
cmp dword [esi + 0x90], 0x10
jb 0x569b4c
mov ecx, dword [esi + 0x7c]
jmp 0x569b4f
lea ecx, [esi + 0x7c]
push eax
push ecx
mov ecx, dword [esi + 0x1c]
push 1
push 0
push str.FailureReason
push ecx
call edi
mov eax, dword [esi + 0xa8]
add eax, 1
cmp dword [esi + 0xac], 0x10
jb 0x569b7a
mov ecx, dword [esi + 0x98]
jmp 0x569b80
lea ecx, [esi + 0x98]
mov edx, dword [esi + 0x1c]
push eax
push ecx
push 1
push 0
push str.Warning
push edx
call edi
pop edi
add esp, 0xc
ret
Function at 0x586a30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x63fb8b
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x699fe8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x20]
xor ebx, ebx
lea ecx, [esi + 0x30]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00564370
mov dword [esi], vtable.Sexy::Graphics.0
call fcn.0059c550
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], ebx
cmp edi, ebx
mov dword [esp + 0x18], ebx
fldz
fst dword [esi + 8]
mov dword [esi + 0x40], ebx
fst dword [esi + 0xc]
mov dword [esi + 4], edi
fld1
mov dword [esi + 0x44], ebx
fst dword [esi + 0x10]
mov byte [esi + 0x48], bl
fstp dword [esi + 0x14]
mov byte [esi + 0x49], bl
mov byte [esi + 0x4a], 1
mov byte [esi + 0x4b], bl
fst dword [esi + 0x18]
fstp dword [esi + 0x1c]
jne 0x586ac0
mov dword [esi + 4], 0x722864
mov byte [esi + 0x4c], bl
jmp 0x586aca
mov eax, edi
call fcn.0056ba20
mov byte [esi + 0x4c], al
mov ecx, dword [esi + 4]
mov eax, ecx
xor edx, edx
call fcn.00588a10
mov edi, eax
mov eax, ecx
call fcn.00588a20
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x588850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x647086
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x699fe8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov dword [esi], vtable.Sexy::Image.0
xor ebx, ebx
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], ebx
mov byte [esi + 0xc], bl
mov dword [esp + 0x1c], ebx
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov byte [esi + 4], bl
cmp dword [edi + 0x34], ebx
je 0x5888df
push 0x30
call fcn.0061c130
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x1c], 1
je 0x5888d8
mov ecx, dword [edi + 0x34]
push ecx
push eax
call fcn.00588900
mov dword [esi + 0x34], eax
jmp 0x5888e2
xor eax, eax
mov dword [esi + 0x34], eax
jmp 0x5888e2
mov dword [esi + 0x34], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret 4
Function at 0x588f60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x648d6c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x699fe8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
call fcn.00444f50
mov dword [esi + 8], eax
mov byte [eax + 0x45], 1
mov eax, dword [esi + 8]
mov dword [eax + 4], eax
mov eax, dword [esi + 8]
mov dword [eax], eax
mov eax, dword [esi + 8]
xor ebx, ebx
mov dword [eax + 8], eax
mov dword [esi + 0xc], ebx
mov dword [esp + 0x28], ebx
mov dword [esi + 0x28], 0xf
mov dword [esi + 0x24], ebx
mov byte [esi + 0x14], bl
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov byte [esp + 0x28], 3
call fcn.0059e2e0
mov dword [esi + 0x50], eax
mov byte [eax + 0x3d], 1
mov eax, dword [esi + 0x50]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x50]
mov dword [eax], eax
mov eax, dword [esi + 0x50]
lea edx, [esi + 0x58]
mov dword [eax + 8], eax
mov ecx, edx
mov dword [esi + 0x54], ebx
call fcn.00564370
lea edi, [esi + 0x68]
mov ecx, edi
call fcn.00564370
lea eax, [esi + 0x78]
call fcn.0059a8b0
mov eax, dword [esp + 0x34]
mov dword [esi + 0x9c], 0xf
mov dword [esi + 0x98], ebx
mov byte [esi + 0x88], bl
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi], eax
or eax, 0xffffffff
mov dword [esi + 0xa0], eax
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], eax
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
mov ecx, dword [0x72289c]
mov dword [edx], ecx
mov eax, dword [0x7228a0]
mov dword [edx + 4], eax
mov ecx, dword [0x7228a4]
mov dword [edx + 8], ecx
mov eax, dword [0x7228a8]
mov dword [edx + 0xc], eax
push ebx
push ebx
xor edx, edx
xor ecx, ecx
lea eax, [esp + 0x18]
call fcn.005643f0
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [edi + 0xc], edx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
mov byte [esi + 0xd4], 1
mov eax, esi
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 0x5a1310
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x640213
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x699fe8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.0060af6a
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x5a1361
mov eax, dword [esi + 0x1c]
push eax
call fcn.0061c19a
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x5a1640
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x104
mov eax, dword [0x699fe8]
xor eax, esp
mov dword [esp + 0x100], eax
cmp dword [0x6a9f70], 0
jne 0x5a16bd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 4]
push str.gPakInterfaceP__d
push eax
call fcn.0061d4e6
add esp, 0xc
lea ecx, [esp]
push ecx
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 4
push 0
push 0
push 0xf001f
push eax
mov dword [0x6a9f70], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x6a9f74], eax
mov eax, dword [eax]
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0061efd1
add esp, 0x104
ret
mov ecx, dword [esp + 0x100]
mov edx, dword [0x6a9f74]
mov eax, dword [edx]
xor ecx, esp
call fcn.0061efd1
add esp, 0x104
ret
Function at 0x5a5580
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push edi
mov edi, eax
push 0x1c
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x5a559f
xor al, al
pop edi
add esp, 0x1c
ret
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5a55c1
pop esi
xor al, al
pop edi
add esp, 0x1c
ret
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 0x14]
add eax, esi
push ebx
push ebp
movzx ebp, word [eax + 6]
sub edi, esi
xor ebx, ebx
test ebp, ebp
lea ecx, [ecx + eax + 0x18]
jbe 0x5a5602
lea eax, [ecx + 0x10]
mov edx, dword [eax]
mov esi, dword [eax - 8]
cmp edx, esi
mov ecx, dword [eax - 4]
ja 0x5a55ee
mov edx, esi
cmp edi, ecx
jb 0x5a55f8
add edx, ecx
cmp edi, edx
jbe 0x5a560c
add ebx, 1
add eax, 0x28
cmp ebx, ebp
jb 0x5a55e0
pop ebp
pop ebx
pop esi
xor al, al
pop edi
add esp, 0x1c
ret
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add ebx, 1
pop ebp
mov dword [edx], ebx
pop ebx
sub edi, ecx
mov dword [eax], edi
pop esi
mov al, 1
pop edi
add esp, 0x1c
ret