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

Disassembly:
push 0xffffffffffffffff
push 0x5cb736
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x61a654]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esi], 0x5dfcfc
xor ebx, ebx
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], ebx
mov byte [esi + 0xc], bl
mov edi, dword [esp + 0x24]
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
mov dword [esp + 0x1c], ebx
cmp dword [edi + 0x34], ebx
je 0x4b0905
push 0x40
call fcn.0059e72d
add esp, 4
mov dword [esp + 0x24], eax
mov byte [esp + 0x1c], 1
cmp eax, ebx
je 0x4b08fe
mov ecx, dword [edi + 0x34]
push ecx
mov ecx, eax
call fcn.004772a0
mov dword [esi + 0x34], eax
jmp 0x4b0908
xor eax, eax
mov dword [esi + 0x34], eax
jmp 0x4b0908
mov dword [esi + 0x34], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x4b0e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5cb7cb
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x61a654]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x2c]
mov dword [esi], 0x5e06a4
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov dl, byte [ebx + 0xc]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x30]
lea edi, [esi + 0x10]
push ecx
mov ecx, edi
mov byte [esi + 0xc], dl
call fcn.004a3260
cmp byte [esi + 0xc], 0
mov dword [esp + 0x24], 0
je 0x4b0e7e
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x6c]
push edx
call fcn.00450f00
mov dword [esi + 8], eax
add ebx, 0x10
cmp edi, ebx
je 0x4b0ea4
mov eax, dword [edi + 0x18]
mov ecx, dword [edi]
mov edx, dword [eax]
push eax
push ecx
push edx
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.0045b2c0
push ebx
mov ecx, edi
call fcn.004a1f50
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 4
Function at 0x4caac0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x104
mov eax, dword [0x61a654]
xor eax, esp
mov dword [esp + 0x100], eax
cmp dword [0x657fc4], 0
jne 0x4cab3d
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 4]
push 0x5dbebc
push eax
call fcn.005a1299
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 [0x657fc4], eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [0x657fc8], eax
mov eax, dword [eax]
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0059e619
add esp, 0x104
ret
mov ecx, dword [esp + 0x100]
mov edx, dword [0x657fc8]
mov eax, dword [edx]
xor ecx, esp
call fcn.0059e619
add esp, 0x104
ret
Function at 0x52e860
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10
push ebx
mov bl, byte [edx + 8]
cmp bl, 3
je 0x52ea0a
mov ecx, dword [esp + 0x20]
push ebp
mov ebp, dword [edx]
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], esi
test bl, 2
je 0x52e8b8
movzx eax, byte [edx + 9]
movzx esi, byte [ecx]
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 1]
mov dword [esp + 0x10], edi
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 2]
sub eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov edi, 3
jmp 0x52e8cb
movzx eax, byte [ecx + 3]
movzx edi, byte [edx + 9]
sub edi, eax
mov dword [esp + 0x10], edi
mov edi, 1
test bl, 4
je 0x52e8df
movzx ecx, byte [ecx + 4]
movzx eax, byte [edx + 9]
sub eax, ecx
mov dword [esp + edi*4 + 0x10], eax
inc edi
xor ecx, ecx
xor eax, eax
cmp edi, ecx
jle case.0x52e926.3
jmp 0x52e8f0
cmp dword [esp + eax*4 + 0x10], ecx
jg 0x52e8fc
mov dword [esp + eax*4 + 0x10], ecx
jmp 0x52e901
mov esi, 1
inc eax
cmp eax, edi
jl 0x52e8f0
cmp si, cx
je case.0x52e926.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x52e926.3
movzx eax, byte [eax + 0x52ea24]
jmp dword [eax*4 + 0x52ea10]
mov edx, dword [edx + 4]
mov eax, dword [esp + 0x28]
cmp edx, ecx
jbe case.0x52e926.3
lea esp, [esp]
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x52e940
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [edx + 4]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x52e926.3
mov edi, edi
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x52e980
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x52e926.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x10]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x52e9a6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x52e926.3
mov edi, edi
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x10]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x52e9d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x539a00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x539a0b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x539ae9
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5e4728]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x5e4728]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x5e4728]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5e4728]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5e4728]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5e4728]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5e4728]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5e4728]
inc ecx
sub edx, 8
sub esi, 1
jne 0x539a25
pop edi
test edx, edx
je 0x539b0b
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5e4728]
inc ecx
sub edx, 1
jne 0x539af0
not eax
pop esi
ret

Function at 0x53c8e0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov eax, dword [0x61a654]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
cmp eax, 3
jne 0x53c96c
cmp byte [esi + 0x218], 0
je 0x53c914
cmp word [esi + 0x118], 0
je 0x53c940
movzx ax, byte [edi]
cmp ax, word [esi + 0x118]
jbe 0x53c940
push str.Invalid_background_palette_index
push esi
call fcn.0052bb20
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0059e619
add esp, 0xc
ret
mov cl, byte [edi]
push 1
lea edx, [esp + 0xc]
push edx
push str.bKGD
push esi
mov byte [esp + 0x18], cl
call fcn.0053bee0
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0059e619
add esp, 0xc
ret
test al, 2
je 0x53c9c3
movzx eax, word [edi + 2]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.0053b130
movzx edx, word [edi + 4]
push edx
lea eax, [esp + 0x16]
push eax
call fcn.0053b130
movzx ecx, word [edi + 6]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.0053b130
push 6
lea eax, [esp + 0x24]
push eax
push str.bKGD
push esi
call fcn.0053bee0
add esp, 0x28
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0059e619
add esp, 0xc
ret
movzx ecx, word [edi + 8]
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.0053b130
push 2
lea eax, [esp + 0x14]
push eax
push str.bKGD
push esi
call fcn.0053bee0
mov ecx, dword [esp + 0x28]
add esp, 0x18
pop edi
pop esi
xor ecx, esp
call fcn.0059e619
add esp, 0xc
ret
Function at 0x558fd0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
sub esp, 0xc08
mov eax, dword [0x61a654]
xor eax, esp
mov dword [esp + 0xc04], eax
mov eax, dword [0x658788]
cmp byte [eax], 0
je 0x5590e6
push esi
push 0
push 0x80000000
push 4
push 0
push 1
push 0x40000000
push str.casual.log
call dword [sym.imp.kernel32.dll_CreateFileA]
push 2
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp esi, 0xffffffff
je 0x5590de
push 0x3ff
lea ecx, [esp + 0xd]
push 0
push ecx
mov byte [esp + 0x14], 0
call fcn.005a06a0
push 0x7ff
lea edx, [esp + 0x419]
push 0
push edx
mov byte [esp + 0x420], 0
call fcn.005a06a0
mov eax, dword [esp + 0xc28]
add esp, 0x18
test eax, eax
je 0x559083
lea ecx, [esp + 0xc14]
push ecx
push eax
lea edx, [esp + 0x10]
push 0x400
push edx
call fcn.005a5616
add esp, 0x10
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x40c]
push 0x5f0ddc
push ecx
call fcn.005a1299
lea eax, [esp + 0x414]
add esp, 0xc
mov dword [esp + 4], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5590b0
sub eax, edx
push 0
lea edx, [esp + 8]
push edx
push eax
lea eax, [esp + 0x414]
push eax
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
lea ecx, [esp + 0x408]
push ecx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop esi
mov ecx, dword [esp + 0xc04]
xor ecx, esp
call fcn.0059e619
add esp, 0xc08
ret

Function at 0x5591c0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x61a654]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x104
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
push 0
push 0
lea ecx, [esp + 0x110]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.005a7446
push 0
push 0
lea ecx, [esp + 0x124]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.005a7234
add esp, 0x28
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0059e619
add esp, 0x20c
ret

Function at 0x559250
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x104
mov eax, dword [0x61a654]
xor eax, esp
mov dword [esp + 0x100], eax
cmp dword [0x658754], 0
jne 0x5592cd
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 4]
push 0x5f0e14
push eax
call fcn.005a1299
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 [0x658754], eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [0x658758], eax
mov eax, dword [eax]
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0059e619
add esp, 0x104
ret
mov ecx, dword [esp + 0x100]
mov edx, dword [0x658758]
mov eax, dword [edx]
xor ecx, esp
call fcn.0059e619
add esp, 0x104
ret
Function at 0x559530
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1024
call fcn.005a0860
mov eax, dword [0x61a654]
xor eax, esp
mov dword [esp + 0x1020], eax
mov eax, dword [0x658788]
cmp byte [eax], 0
je 0x559621
mov edx, dword [esp + 0x1028]
push esi
lea ecx, [esp + 0x1030]
push ecx
push edx
lea eax, [esp + 0x10]
push eax
call fcn.004722c0
add esp, 0xc
call fcn.005a71b6
mov ecx, eax
sub ecx, dword [0x658750]
mov eax, 0x4a90be59
imul ecx
sar edx, 0x14
mov esi, edx
shr esi, 0x1f
add esi, edx
mov eax, esi
imul eax, eax, 0x36ee80
mov edx, ecx
sub edx, eax
mov eax, 0x45e7b273
imul edx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, esi
shl edx, 4
sub edx, esi
lea edx, [eax + edx*4]
imul edx, edx, 0xea60
sub ecx, edx
cmp dword [esp + 0x20], 0x10
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xc]
fild dword [esp + 4]
fdiv qword [0x5d5248]
fstp dword [esp + 4]
jae 0x5595e2
lea ecx, [esp + 0xc]
fld dword [esp + 4]
push ecx
sub esp, 8
fstp qword [esp]
push eax
push esi
lea eax, [esp + 0x38]
push str.__02d:_02d:_06.3f___s_n
push eax
call fcn.005a1299
add esp, 0x1c
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp dword [esp + 0x20], 0x10
pop esi
jb 0x559621
mov edx, dword [esp + 8]
push edx
call fcn.0059e6bb
add esp, 4
mov ecx, dword [esp + 0x1020]
xor ecx, esp
call fcn.0059e619
add esp, 0x1024
ret
Function at 0x55d4f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5ccf07
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x61a654]
xor eax, esp
mov dword [esp + 0xec], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61a654]
xor eax, esp
push eax
lea eax, [esp + 0x104]
mov dword fs:[0], eax
mov esi, dword [esp + 0x114]
xor ebx, ebx
xor eax, eax
mov ebp, ecx
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], ax
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
push esi
mov byte [esp + 0x110], 1
call fcn.0055e440
mov ecx, dword [esi]
mov eax, dword [ecx + 0x94]
lea edx, [esp + 0x3c]
push edx
push 0x5f14a4
push esi
call eax
cmp dword [esp + 0x3c], ebx
je 0x55d5e1
push 0x7c
call fcn.0059e72d
add esp, 4
mov dword [esp + 0x38], eax
mov byte [esp + 0x10c], 2
cmp eax, ebx
je 0x55d5ae
mov ecx, eax
call fcn.00585170
mov edi, eax
jmp 0x55d5b0
xor edi, edi
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x48]
push eax
push ecx
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, edi
mov byte [esp + 0x118], 1
call fcn.00585670
push edi
push ebx
mov ecx, ebp
call fcn.0055fa40
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp + 0x19c]
push ecx
push str.modal
push esi
call fcn.00558960
mov edx, dword [esi]
mov ecx, dword [edx + 0x90]
add esp, 0xc
lea eax, [esp + 0x40]
push eax
push str.element
push esi
call ecx
mov eax, dword [esp + 0x40]
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
lea ecx, [esp + 0x44]
push ecx
push eax
call edx
cmp dword [esp + 0x44], ebx
mov dword [esp + 0x38], ebx
mov edi, 0x10
jle 0x55e123

Function at 0x5630b0
Capabilities:
Create thread

Disassembly:
mov al, byte [esp + 0xc]
push ebx
mov bl, byte [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
lea edi, [ecx + 0x210]
mov dword [edi], esi
mov byte [ecx + 0x214], bl
mov byte [ecx + 0x215], al
mov byte [ecx + 0x2a1], 1
mov edx, dword [0x620598]
mov byte [edx + 0x566], 0
call fcn.0055e6b0
test bl, bl
jne 0x563109
cmp esi, 0xf
jg 0x5630fc
mov eax, 1
jmp 0x56310b
xor eax, eax
cmp esi, 0x23
setg al
add eax, 2
jmp 0x56310b
mov eax, esi
mov ecx, dword [0x658764]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [edx + 0x18c]
call eax
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ecx, dword [0x658764]
push 1
mov byte [ecx + 0x568], 1
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
push edi
push 0
push 0x563070
call fcn.005a273c
add esp, 0xc
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x57e240
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5ce69b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x61a654]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
fld dword [edi]
push 0xffffffffffffffff
lea ecx, [esi + 4]
fstp dword [esi]
lea eax, [edi + 4]
push 0
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push eax
mov byte [ecx + 4], 0
call fcn.00401620
push fcn.00401400
push fcn.00403da0
push 4
push 0x1c
lea eax, [edi + 0x20]
push eax
lea ecx, [esi + 0x20]
push ecx
mov dword [esp + 0x30], 0
call fcn.005a77b6
fld dword [edi + 0x90]
fstp dword [esi + 0x90]
mov eax, esi
fld dword [edi + 0x94]
fstp dword [esi + 0x94]
mov edx, dword [edi + 0x98]
mov dword [esi + 0x98], edx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x584ad0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x104
mov eax, dword [0x61a654]
xor eax, esp
mov dword [esp + 0x100], eax
cmp dword [0x658968], 0
jne 0x584b4d
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 4]
push 0x5f34bc
push eax
call fcn.005a1299
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 [0x658968], eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [0x65896c], eax
mov eax, dword [eax]
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0059e619
add esp, 0x104
ret
mov ecx, dword [esp + 0x100]
mov edx, dword [0x65896c]
mov eax, dword [edx]
xor ecx, esp
call fcn.0059e619
add esp, 0x104
ret

Function at 0x585a10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5cf091
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x61a654]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x30]
push eax
push 1
lea ecx, [esp + 0x10]
call fcn.00586b60
push eax
lea ecx, [esi + 4]
mov dword [esp + 0x2c], 0
call fcn.005865d0
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.004414d0
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
mov dword [esi + 0x1c], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x20], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x24], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x28], edx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 8

Function at 0x587030
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5cf20b
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x61a654]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push esi
push edi
mov eax, dword [0x61a654]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, dword [esp + 0x60]
xor eax, eax
mov esi, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov edx, dword [esp + 0x64]
push 0xa
lea ecx, [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x64], eax
call fcn.005a157a
mov ecx, eax
add esp, 0xc
lea ebx, [ecx + 2]
jmp 0x5870a0
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x5870a0
sub ecx, ebx
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0040bf20
push edi
mov ecx, esi
call fcn.00587120
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.0040be60
cmp dword [esp + 0x28], 8
jb 0x5870e6
mov edx, dword [esp + 0x14]
push edx
call fcn.0059e6bb
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0059e619
add esp, 0x4c
ret 8
Function at 0x5890a0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x104
mov eax, dword [0x61a654]
xor eax, esp
mov dword [esp + 0x100], eax
cmp dword [0x6589b4], 0
jne 0x58911d
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 4]
push 0x5f355c
push eax
call fcn.005a1299
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 [0x6589b4], eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [0x6589b8], eax
mov eax, dword [eax]
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0059e619
add esp, 0x104
ret
mov ecx, dword [esp + 0x100]
mov edx, dword [0x6589b8]
mov eax, dword [edx]
xor ecx, esp
call fcn.0059e619
add esp, 0x104
ret
Function at 0x58c660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5cf82f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x61a654]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
push 6
push str.random
push eax
push 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0
call fcn.00403f20
test eax, eax
jne 0x58c6f0
push 0x38
call fcn.0059e72d
add esp, 4
mov dword [esp + 8], eax
mov byte [esp + 0x14], 1
test eax, eax
je 0x58c6c7
mov ecx, eax
call fcn.0058cb50
mov esi, eax
jmp 0x58c6c9
xor esi, esi
cmp dword [esp + 0x34], 0x10
jb 0x58c6dd
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0059e6bb
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
mov edx, dword [esp + 0x30]
push 4
push str.sync
push edx
push 0
lea ecx, [esp + 0x2c]
call fcn.00403f20
test eax, eax
jne 0x58c76a
push 0x20
call fcn.0059e72d
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
mov byte [esp + 0x14], 2
test esi, esi
je 0x58c741
lea ecx, [esi + 4]
mov dword [esi], 0x5f37a0
call fcn.0058c9b0
mov dword [esi + 0x1c], 0
mov dword [esi], 0x5f3800
jmp 0x58c743
xor esi, esi
cmp dword [esp + 0x34], 0x10
jb 0x58c6dd
mov eax, dword [esp + 0x20]
push eax
call fcn.0059e6bb
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x30]
push 0xa
push str.stepbystep
push ecx
push 0
lea ecx, [esp + 0x2c]
call fcn.00403f20
test eax, eax
jne 0x58c7d4
push 0x24
call fcn.0059e72d
add esp, 4
mov dword [esp + 8], eax
mov byte [esp + 0x14], 3
test eax, eax
je 0x58c7a7
mov ecx, eax
call fcn.0058cb00
mov esi, eax
jmp 0x58c7a9
xor esi, esi
cmp dword [esp + 0x34], 0x10
jb 0x58c6dd
mov edx, dword [esp + 0x20]
push edx
call fcn.0059e6bb
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
cmp dword [esp + 0x34], 0x10
jb 0x58c7e8
mov eax, dword [esp + 0x20]
push eax
call fcn.0059e6bb
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x595c70
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x104
mov eax, dword [0x61a654]
xor eax, esp
mov dword [esp + 0x100], eax
cmp dword [0x6589bc], 0
jne 0x595ced
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 4]
push str.gPakInterfaceP__d
push eax
call fcn.005a1299
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 [0x6589bc], eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [0x6589c0], eax
mov eax, dword [eax]
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0059e619
add esp, 0x104
ret
mov ecx, dword [esp + 0x100]
mov edx, dword [0x6589c0]
mov eax, dword [edx]
xor ecx, esp
call fcn.0059e619
add esp, 0x104
ret
Function at 0x596650
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d0498
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x61a654]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x14], 0
test ecx, ecx
je 0x59668f
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [esi]
push eax
mov dword [esi + 0x30], 0
call fcn.005a2f45
add esp, 4
lea ecx, [esi + 8]
mov dword [esi], 0
mov dword [esp + 0x14], 0xffffffff
call fcn.00597350
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret