joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403469
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
je 0x403513
mov ebx, 0xc00
push ebx
call fcn.0040b581
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
push eax
lea ecx, [ebp - 0xc]
push ecx
push ebx
push dword [ebp - 4]
push eax
push eax
push 0x70050
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x403504
mov eax, dword [ebp - 4]
push 4
add eax, 0x38
pop ebx
mov edx, dword [eax + 4]
cmp edx, dword [ebp - 0x14]
mov ecx, dword [eax]
jl 0x4034e5
jg 0x4034d9
cmp ecx, dword [ebp - 0x18]
jbe 0x4034e5
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
add eax, 0x90
dec ebx
jne 0x4034c8
add esi, dword [ebp - 0x18]
push 0
adc edi, dword [ebp - 0x14]
push 0x200
push edi
push esi
call fcn.00416eb0
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x403513
push dword [ebp - 4]
call fcn.00409cfb
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40360b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - reloc.avifil32.dll_AVIStreamGetFrameClose], 0
push 0x206
lea eax, [ebp - 0x20e]
push 0
push eax
call fcn.00408c40
and dword [ebp - 0x214], 0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x214]
push eax
movzx eax, word [ebp - reloc.avifil32.dll_AVIStreamGetFrameClose]
sub eax, 0x41
push eax
call fcn.0040337c
push dword [ebp - 0x214]
call fcn.004032ea
add esp, 0xc
cmp eax, 0xffffffff
jne 0x403683
xor eax, eax
jmp 0x40368c
push edi
push eax
call fcn.0040353b
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408c2e
leave
ret

Function at 0x40455d
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret
Function at 0x4047ff
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9b8
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x9b4], eax
mov eax, dword [ebp + 8]
and word [esp + reloc.avifil32.dll_AVIStreamGetFrameClose], 0
push esi
push edi
push 0x7fe
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1be]
push 0
push eax
mov esi, ecx
call fcn.00408c40
xor eax, eax
add esp, 0xc
cmp esi, eax
lea edi, [esp + 0x1b8]
je 0x404853
mov edi, esi
mov word [edi], ax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x28]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4048a5
push 0x41de28
mov esi, 0x3ff
push esi
push edi
call fcn.00409115
push 0x41de48
push esi
push edi
call fcn.00408d30
push 0x41de4c
push esi
push edi
call fcn.00408d30
add esp, 0x24
xor eax, eax
jmp 0x404929
push 6
xor esi, esi
inc esi
push esi
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebx], eax
je 0x404872
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40493d
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [esp + 0x14], eax
push 4
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x40493d
push 0x41de28
mov esi, 0x3ff
push esi
push edi
call fcn.00409115
push 0x41de48
push esi
push edi
call fcn.00408d30
push 0x41de4c
push esi
push edi
call fcn.00408d30
mov eax, dword [ebx]
add esp, 0x24
test eax, eax
je 0x404925
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [ebx], 0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x9bc]
pop edi
pop esi
xor ecx, esp
call fcn.00408c2e
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push dword [ebp + 0xc]
mov dword [esp + 0x20], eax
mov word [esp + 0x1c], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1a], ax
push 0x10
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40497a
push 0x41de8c
jmp 0x4048ee
mov dword [esp + 0xc], esi
jmp 0x404925

Function at 0x40499b
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [eax], ecx
push ebx
push esi
mov dword [ebp - 4], ecx
je 0x404a0f
cmp edi, ecx
jle 0x4049bd
mov eax, dword [ebp + 0xc]
add eax, ecx
not byte [eax]
inc ecx
cmp ecx, edi
jl 0x4049b1
lea ebx, [edi + 7]
push ebx
call fcn.0040b581
mov esi, eax
lea eax, [edi + 5]
push 5
mov word [esi], ax
lea eax, [esi + 2]
push 0x423120
push eax
call fcn.00408db0
push edi
push dword [ebp + 0xc]
lea eax, [esi + 7]
push eax
call fcn.00408db0
mov eax, dword [ebp + 8]
add esp, 0x1c
push 0
push ebx
push esi
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x404a12
cmp eax, ebx
jne 0x404a12
mov dword [ebp - 4], 1
jmp 0x404a12
mov esi, dword [ebp + 8]
test esi, esi
je 0x404a1d
push esi
call fcn.00409cfb
pop ecx
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x404b51
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x8e4
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x78]
and word [ebp - reloc.avifil32.dll_AVIStreamGetFrameClose], 0
push ebx
push esi
push edi
mov dword [ebp - 0x864], eax
mov eax, dword [ebp + 0x7c]
push 0x7fe
mov dword [ebp - 0x874], eax
lea eax, [ebp - 0x85a]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x870], ebx
mov edi, edx
call fcn.00408c40
add esp, 0xc
test edi, edi
lea esi, [ebp - 0x85c]
mov dword [ebp - 0x860], esi
je 0x404bbb
mov dword [ebp - 0x860], edi
mov esi, edi
and word [esi], 0
mov ebx, dword [ebx]
xor eax, eax
xor edi, edi
cmp ebx, eax
mov dword [ebp - 0x86c], eax
je 0x404d20
cmp dword [ebp - 0x864], eax
je 0x404d20
push 0xc7
push eax
mov byte [ebp - 0x5c], al
lea eax, [ebp - 0x5b]
push eax
call fcn.00408c40
add esp, 0xc
push edi
push 2
lea eax, [ebp - 0x5c]
push eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_recv]
call ebx
cmp eax, 0xffffffff
je 0x404d02
test eax, eax
je 0x404d02
movzx eax, word [ebp - 0x5c]
mov dword [ebp - 0x868], eax
add eax, 2
push eax
xor esi, esi
call fcn.0040b581
cmp dword [ebp - 0x868], esi
pop ecx
mov edi, eax
jle 0x404d15
mov eax, dword [ebp - 0x868]
push 0
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
mov eax, dword [ebp - 0x870]
push dword [eax]
call ebx
cmp eax, 0xffffffff
je 0x404c97
test eax, eax
je 0x404c97
add esi, eax
cmp dword [ebp - 0x868], esi
jg 0x404c39
cmp esi, 5
jl 0x404d15
push 5
push edi
push 0x423120
sub esi, 5
call fcn.00409d00
add esp, 0xc
test eax, eax
je 0x404cb7
push 0x41deb0
push 0x3ff
push dword [ebp - 0x860]
jmp 0x404d0d
push 0x41deb0
push 0x3ff
push dword [ebp - 0x860]
call fcn.00409115
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x404d15
test esi, esi
jle 0x404cc6
lea eax, [edi + 5]
mov ecx, esi
not byte [eax]
inc eax
dec ecx
jne 0x404cc0
mov ebx, dword [ebp - 0x874]
mov eax, dword [ebx]
cmp eax, esi
jl 0x404ce6
push esi
lea eax, [edi + 5]
push eax
push dword [ebp - 0x864]
call fcn.00408db0
mov dword [ebx], esi
jmp 0x404cf6
push eax
lea eax, [edi + 5]
push eax
push dword [ebp - 0x864]
call fcn.00408db0
mov dword [ebp - 0x86c], 1
jmp 0x404d12
push 0x41deb0
push 0x3ff
push esi
call fcn.00409115
add esp, 0xc
test edi, edi
je 0x404d20
push edi
call fcn.00409cfb
pop ecx
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp - 0x86c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c2e
add ebp, 0x70
leave
ret
Function at 0x407b50
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
xor ebx, ebx
cmp dword [esi], ebx
push edi
jne 0x407bd7
cmp dword [esi + 4], 0xffffffff
jne 0x407bd7
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.00409c28
movzx eax, word [esi + eax*2 + reloc.avifil32.dll_AVIStreamGetFrameClose]
cmp ax, 0x5c
pop ecx
je 0x407b99
cmp ax, 0x2f
je 0x407b99
push 0x41dc18
push edi
call fcn.00408cea
pop ecx
pop ecx
push 0x20
call fcn.0040b581
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x14]
push eax
mov byte [eax], bl
mov byte [eax + 1], 1
mov byte [eax + 0x10], bl
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0xc], ebx
call fcn.00407136
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x407bdc
mov eax, 0x1000000
pop edi
pop ebx
pop ecx
ret 8

Function at 0x4087ed
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
xor esi, esi
and word [ebp - 0x7c], si
push 0x206
lea eax, [ebp - 0x7a]
push esi
push eax
call fcn.00408c40
add esp, 0xc
test ebx, ebx
je 0x4088a3
and dword [ebp - 0x80], esi
mov esi, 0x41dd90
push esi
call fcn.00409c28
test eax, eax
pop ecx
jbe 0x40884c
push 0x41dc3c
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.004092a6
add esp, 0xc
jmp 0x408880
lea eax, [ebp - 0x7c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41ff6c
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00408d30
push 0x41dc3c
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004092a6
add esp, 0x18
xor esi, esi
inc esi
cmp dword [ebp - 0x80], 0
je 0x4088a3
push dword [ebp - 0x80]
push esi
push 0x200
push ebx
call fcn.00409b9b
push dword [ebp - 0x80]
call fcn.00409a05
add esp, 0x14
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00408c2e
add ebp, 0x190
leave
ret
Function at 0x4088bb
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x72]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], ebx
mov word [ebp - 0x74], bx
call fcn.00408c40
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 0x78], ebx
je 0x408991
push edi
mov edi, 0x41dc78
push edi
call fcn.00409c28
test eax, eax
pop ecx
je 0x408990
cmp dword [reloc.avifil32.dll_AVIStreamGetFrame], 3
mov esi, 0x104
lea eax, [ebp - 0x74]
jne 0x408941
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41dc18
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00408d30
add esp, 0xc
jmp 0x408949
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00408d30
push 0x41dc34
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004092a6
add esp, 0x18
cmp dword [ebp - 0x78], ebx
je 0x408990
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push dword [ebp - 0x80]
call fcn.00409977
push dword [ebp - 0x78]
call fcn.00409a05
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c2e
add ebp, 0x198
leave
ret

Function at 0x4089ab
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x72]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], ebx
mov word [ebp - 0x74], bx
call fcn.00408c40
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 0x78], ebx
je 0x408a58
push edi
mov edi, 0x41ff6c
push edi
call fcn.00409c28
test eax, eax
pop ecx
je 0x408a57
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00408d30
push 0x41dc34
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004092a6
add esp, 0x18
cmp dword [ebp - 0x78], ebx
je 0x408a57
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push dword [ebp - 0x80]
call fcn.00409977
push dword [ebp - 0x78]
call fcn.00409a05
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c2e
add ebp, 0x198
leave
ret
Function at 0x402d40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc642
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6229a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi + 4], xmm0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 7
mov word [edi + 4], ax
movups xmmword [edi + 0x1c], xmm0
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 7
mov dword [ebp - 4], eax
mov word [edi + 0x1c], ax
movups xmmword [edi + 0x34], xmm0
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], 7
mov word [edi + 0x34], ax
movups xmmword [edi + 0x4c], xmm0
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], 7
mov word [edi + 0x4c], ax
lea esi, [edi + 0x64]
mov byte [ebp - 4], 3
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0059b742
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x6c]
mov byte [ebp - 4], 4
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0059b742
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
push 0xc
mov byte [ebp - 4], 5
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
call fcn.0059b742
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0x74], eax
push 0xc
mov byte [ebp - 4], 6
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
call fcn.0059b742
add esp, 0x10
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0x7c], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404a20
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x104
mov eax, dword [0x6229a0]
xor eax, esp
mov dword [esp + 0x100], eax
cmp dword [0x624528], 0
jne 0x404a9d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 4]
push str.gPakInterfaceP__d
push eax
call fcn.00404f70
add esp, 0xc
lea eax, [esp]
push eax
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 [0x624528], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x62452c], eax
mov eax, dword [eax]
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0059b734
add esp, 0x104
ret
mov eax, dword [0x62452c]
mov ecx, dword [esp + 0x100]
xor ecx, esp
mov eax, dword [eax]
call fcn.0059b734
add esp, 0x104
ret
Function at 0x40f360
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x6229a0]
xor eax, esp
mov dword [esp + 0x400], eax
lea eax, [esp + 0x40c]
push eax
push dword [esp + 0x40c]
lea eax, [esp + 8]
push 0x400
push eax
call fcn.0040ef30
add esp, 0x10
cmp byte [esp + eax - 1], 0xa
je 0x40f3b4
lea ecx, [eax + 1]
cmp ecx, 0x400
jge 0x40f3af
mov word [esp + eax], 0xa
jmp 0x40f3b4
mov byte [esp + eax - 1], 0xa
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0059b734
add esp, 0x404
ret

Function at 0x40f3e0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x6229a0]
xor eax, esp
mov dword [esp + 0x400], eax
lea eax, [esp + 0x40c]
push eax
push dword [esp + 0x40c]
lea eax, [esp + 8]
push 0x400
push eax
call fcn.0040ef30
add esp, 0x10
cmp byte [esp + eax - 1], 0xa
je 0x40f434
lea ecx, [eax + 1]
cmp ecx, 0x400
jge 0x40f42f
mov word [esp + eax], 0xa
jmp 0x40f434
mov byte [esp + eax - 1], 0xa
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esp + 4]
push edi
push eax
call esi
push 0x5d98a4
push 0x6254b0
call fcn.005a94a9
mov edi, eax
add esp, 8
test edi, edi
jne 0x40f479
push str.Failed_to_open_log_file_n
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0059b734
add esp, 0x404
ret
lea ecx, [esp + 8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f480
push edi
sub ecx, edx
lea eax, [esp + 0xc]
push 1
push ecx
push eax
call fcn.005aa485
add esp, 0x10
cmp eax, 1
je 0x40f4a6
push str.Failed_to_write_to_log_file_n
call esi
push edi
call fcn.005a93b7
mov ecx, dword [esp + 0x40c]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.0059b734
add esp, 0x404
ret

Function at 0x40f4d0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x6229a0]
xor eax, esp
mov dword [esp + 0x400], eax
push 0
call fcn.005b048b
add esp, 4
cmp edx, dword [0x6656f4]
jl 0x40f555
jg 0x40f500
cmp eax, dword [0x6656f0]
jb 0x40f555
mov dword [0x6656f0], eax
lea eax, [esp + 0x40c]
push eax
push dword [esp + 0x40c]
lea eax, [esp + 8]
mov dword [0x6656f4], edx
push 0x400
push eax
call fcn.0040ef30
add esp, 0x10
cmp byte [esp + eax - 1], 0xa
je 0x40f54b
lea ecx, [eax + 1]
cmp ecx, 0x400
jge 0x40f546
mov word [esp + eax], 0xa
jmp 0x40f54b
mov byte [esp + eax - 1], 0xa
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0059b734
add esp, 0x404
ret
Function at 0x4142c0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x104
mov eax, dword [0x6229a0]
xor eax, esp
mov dword [esp + 0x100], eax
cmp dword [0x665758], 0
jne 0x41433d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 4]
push str.gPakInterfaceP__d
push eax
call fcn.00404f70
add esp, 0xc
lea eax, [esp]
push eax
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 [0x665758], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x66575c], eax
mov eax, dword [eax]
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0059b734
add esp, 0x104
ret
mov eax, dword [0x66575c]
mov ecx, dword [esp + 0x100]
xor ecx, esp
mov eax, dword [eax]
call fcn.0059b734
add esp, 0x104
ret
Function at 0x414bc0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebp
push esi
push edi
call fcn.004142c0
mov ebp, dword [esp + 0x18]
push 0x5d971c
push ebp
test eax, eax
je 0x414be9
mov eax, dword [0x66575c]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, eax
jmp 0x414c17
call fcn.005a94a9
mov edi, eax
add esp, 8
test edi, edi
je 0x414d6c
push 0xc
call fcn.0059b742
mov esi, eax
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], edi
test esi, esi
je 0x414d6c
call fcn.004142c0
push 2
push 0
test eax, eax
je 0x414c3b
mov eax, dword [0x66575c]
push esi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x414c46
push dword [esi + 8]
call fcn.005a9a75
add esp, 0xc
push ebx
call fcn.004142c0
test eax, eax
je 0x414c5f
mov eax, dword [0x66575c]
push esi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
jmp 0x414c6a
push dword [esi + 8]
call fcn.005aa18d
add esp, 4
mov ebx, eax
shr ebx, 1
call fcn.004142c0
push 0
push 0
test eax, eax
je 0x414c8a
mov eax, dword [0x66575c]
push esi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x414c95
push dword [esi + 8]
call fcn.005a9a75
add esp, 0xc
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0059b726
add esp, 4
mov dword [esp + 0x14], eax
call fcn.004142c0
test eax, eax
je 0x414cd5
mov ecx, dword [0x66575c]
push esi
push ebx
push 2
mov ecx, dword [ecx]
push dword [esp + 0x20]
mov edx, dword [ecx]
call dword [edx + 0x14]
jmp 0x414ce7
push dword [esi + 8]
push ebx
push 2
push dword [esp + 0x20]
call fcn.005a96a6
add esp, 0x10
test eax, eax
jne 0x414d06
push ebp
push str.Failed_to_read__s
call fcn.0040f360
mov ebp, dword [esp + 0x1c]
add esp, 8
xor eax, eax
mov word [ebp + ebx*2], ax
jmp 0x414d1a
mov ebp, dword [esp + 0x14]
xor eax, eax
push ebp
mov word [ebp + ebx*2], ax
call fcn.00414d90
add esp, 4
mov bl, al
call fcn.004142c0
test eax, eax
je 0x414d46
mov ecx, dword [0x66575c]
push esi
mov ecx, dword [ecx]
mov edx, dword [ecx]
call dword [edx + 8]
push ebp
call fcn.0059b72f
add esp, 4
mov al, bl
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret
push dword [esi + 8]
call fcn.005a93b7
push 0xc
push esi
call fcn.0059b718
add esp, 0xc
push ebp
call fcn.0059b72f
add esp, 4
mov al, bl
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret
push ebp
push str.Failed_to_open__s
call fcn.0040f360
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
add esp, 8
ret
Function at 0x48fb63
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cd307
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6229a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov bh, byte [ebp + 8]
lea esi, [eax + 0x80]
xor bl, bl
lea edi, [eax + 0x164]
test bh, bh
je 0x48fc12
mov ecx, dword [esi]
push 1
call fcn.004a3820
mov ecx, dword [edi]
cmp ecx, 0x1c
ja case.0x48fb2b.1
movzx eax, byte [ecx + 0x48fd24]
jmp dword [eax*4 + 0x48fd14]
mov eax, dword [esi]
push 6
mov eax, dword [eax + 0x7dc]
mov byte [eax + 0x2a8], 1
mov ecx, dword [esi]
call fcn.004a3820
jmp 0x48fbf8
mov eax, dword [esi]
mov eax, dword [eax + 0x7dc]
mov byte [eax + 0x317], 0
jmp 0x48fbf8
mov eax, dword [esi]
mov eax, dword [eax + 0x7dc]
mov dl, byte [eax + 4]
test dl, dl
jne 0x48fb77
cmp ecx, 0x10
je 0x48fb81
cmp dl, 1
jne case.0x48fb2b.1
cmp ecx, 0x13
jne case.0x48fb2b.1
cmp dword [eax + 0x278], 0
jne case.0x48fb2b.1
cmp dword [eax + 0x270], 8
jne case.0x48fb2b.1
mov dword [eax + 0x278], 1
jmp 0x48fbf8
lea eax, [ecx - 1]
mov ecx, 3
cdq
idiv ecx
mov ecx, edx
mov edx, eax
test ecx, ecx
jne 0x48fbcd
mov ecx, dword [esi]
inc edx
mov eax, dword [ecx + 0x7dc]
cmp dword [eax + 0x270], edx
jge 0x48fbf8
mov dword [eax + 0x270], edx
mov bl, 1
jmp 0x48fbf8
cmp ecx, 1
jne 0x48fbe3
mov eax, dword [esi]
mov eax, dword [eax + 0x7dc]
mov byte [eax + edx + 0x2b1], cl
jmp 0x48fbf8
cmp ecx, 2
jne 0x48fbf8
mov eax, dword [esi]
mov eax, dword [eax + 0x7dc]
mov byte [eax + edx + 0x2e4], 1
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x7dc]
call fcn.004b7750
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x7dc]
call fcn.004b6ac0
mov ecx, dword [esi]
call fcn.004a4100
cmp dword [edi], 0
jne 0x48fcd2
test bh, bh
jne 0x48fcd2
mov ecx, dword [esi]
call fcn.004a3ea0
push 0x1e0
call fcn.0059b742
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x48fc5d
push dword [0x66577c]
mov ecx, eax
call fcn.004cf650
mov ecx, eax
jmp 0x48fc5f
xor ecx, ecx
mov eax, dword [esi]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 0x700], ecx
mov eax, dword [esi]
push dword [edx + 0x34]
push dword [edx + 0x30]
mov ecx, dword [eax + 0x700]
push 0
push 0
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [esi]
mov ecx, dword [eax + 0x308]
push dword [eax + 0x700]
mov edx, dword [ecx]
call dword [edx + 0xc]
mov eax, dword [esi]
mov ecx, dword [eax + 0x308]
push dword [eax + 0x700]
mov edx, dword [ecx]
call dword [edx + 0x20]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x7dc]
call fcn.004b60b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
call fcn.004a6760
mov eax, dword [edi]
sub eax, 1
jne 0x48fcff
test bl, bl
je 0x48fcff
mov ecx, dword [esi]
push 3
push eax
push str._DIALOG_BUTTON_OK_
push str._POINTS_TIP_
push str._POINTS_
push 0xe
call fcn.004a4410
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4