joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470180
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x202c
call fcn.00581a30
mov eax, dword [0x5d5de8]
xor eax, esp
mov dword [esp + 0x2028], eax
cmp byte [0x5dcde9], 0
push ebx
push esi
push edi
je 0x470390
push 0x611ac0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x5b687c
push str.mem_leaks.txt
mov dword [esp + 0x18], 0
call fcn.0056cd31
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x14], esi
je 0x470385
push 0
call fcn.0056d4e3
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x2c], edx
call fcn.0056def9
push eax
call fcn.0056db34
push eax
lea ecx, [esp + 0x40]
push str.Memory_Leak_Report_for__s_n
push ecx
call fcn.0056ce56
lea edx, [esp + 0x48]
push edx
push esi
call fcn.0056d18e
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x20
push 0x5b68ac
call ebx
lea eax, [esp + 0x30]
push eax
call ebx
mov ecx, dword [0x611ab8]
mov esi, dword [ecx]
mov edi, 0x611ab4
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
jmp 0x470250
test edi, edi
mov edx, dword [0x611ab8]
mov dword [esp + 0x2c], edx
je 0x470266
cmp edi, 0x611ab4
je 0x47026b
call fcn.0056999e
cmp esi, dword [esp + 0x2c]
je 0x470322
test edi, edi
jne 0x47027e
call fcn.0056999e
cmp esi, dword [edi + 4]
jne 0x470288
call fcn.0056999e
cmp dword [esi + 0x10], 1
mov ebx, 0x5b68b0
jg 0x470298
mov ebx, 0x5a5b90
cmp esi, dword [edi + 4]
jne 0x4702b6
call fcn.0056999e
cmp esi, dword [edi + 4]
jne 0x4702b6
call fcn.0056999e
cmp esi, dword [edi + 4]
jne 0x4702b6
call fcn.0056999e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x11c]
push ebx
push eax
push ecx
lea edx, [esi + 0x14]
push edx
lea eax, [esp + 0x40]
push str._s__d__:_Leak__d_byte_s_n
push eax
call fcn.0056ce56
add esp, 0x18
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
push eax
call fcn.0056d18e
add esp, 8
cmp esi, dword [edi + 4]
jne 0x4702ff
call fcn.0056999e
mov ecx, dword [esi + 0x10]
add dword [esp + 0x10], ecx
lea esi, [esp + 0x18]
call fcn.00480950
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x470250
lea edx, [esp + 0x30]
push str.____________________________________________________________n
push edx
call fcn.0056ce56
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push eax
push esi
call fcn.0056d18e
add esp, 0x10
lea ecx, [esp + 0x30]
push ecx
call ebx
mov ecx, dword [esp + 0x10]
mov eax, ecx
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
push eax
push ecx
lea edx, [esp + 0x38]
push str.Total_Unfreed:__d_bytes___dKB__n_n
push edx
call fcn.0056ce56
add esp, 0x10
lea eax, [esp + 0x30]
push eax
call ebx
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.0056d18e
add esp, 8
push 0x611ac0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x2034]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005697e2
mov esp, ebp
pop ebp
ret
Function at 0x4703b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5d5de8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea ecx, [ebp + 0xc]
lea ebx, [ebp - 0x20]
call fcn.004721a0
mov eax, dword [ebp - 0x1c]
add esp, 4
cmp dword [ebp - 8], 0x10
pop ebx
jae 0x4703e0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 8], 0x10
jb 0x4703f9
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00569095
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005697e2
mov esp, ebp
pop ebp
ret

Function at 0x470520
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x5d5de8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x5daac9], 0
push esi
je 0x4705ad
push 0x9c
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.00569a00
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x9c
call esi
test eax, eax
jne 0x470598
lea edx, [ebp - 0xa0]
push edx
mov dword [ebp - 0xa0], 0x94
call esi
test eax, eax
jne 0x470598
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005697e2
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x9c], 6
mov byte [0x5daac9], 0
setae byte [0x611c2d]
mov ecx, dword [ebp - 4]
mov al, byte [0x611c2d]
xor ecx, ebp
pop esi
call fcn.005697e2
mov esp, ebp
pop ebp
ret
Function at 0x471900
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x5d5de8]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push str.advapi32.dll
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x471ad0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetFileSecurityA
push edi
call esi
push str.SetSecurityDescriptorDacl
push edi
mov dword [esp + 0x28], eax
call esi
push str.InitializeSecurityDescriptor
push edi
mov dword [esp + 0x1c], eax
call esi
push str.AllocateAndInitializeSid
push edi
mov dword [esp + 0x20], eax
call esi
push str.SetEntriesInAclA
push edi
mov dword [esp + 0x18], eax
call esi
push str.FreeSid
push edi
mov dword [esp + 0x2c], eax
call esi
cmp dword [esp + 0x20], ebx
je 0x471ac9
cmp dword [esp + 0x14], ebx
je 0x471ac9
cmp dword [esp + 0x18], ebx
je 0x471ac9
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x471ac9
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x471ac9
cmp eax, ebx
je 0x471ac9
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x48], ebx
mov byte [esp + 0x78], bl
mov byte [esp + 0x79], bl
mov byte [esp + 0x7a], bl
mov byte [esp + 0x7b], bl
mov byte [esp + 0x7c], bl
mov byte [esp + 0x7d], 1
mov byte [esp + 0x3b], bl
call ecx
test eax, eax
je 0x471aac
mov ecx, dword [esp + 0x1c]
xor eax, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
push ebx
lea eax, [esp + 0x34]
push eax
push 1
mov dword [esp + 0x3c], 0x1fffff
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], 3
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 5
mov dword [esp + 0x58], ecx
mov dword [esp + 0x20], ebx
call esi
test eax, eax
jne 0x471aac
push 0x14
call fcn.00568c31
add esp, 4
mov esi, eax
push 1
push esi
call dword [esp + 0x20]
test eax, eax
je 0x471aac
mov ecx, dword [esp + 0x10]
push ebx
push ecx
push 1
push esi
call dword [esp + 0x24]
test eax, eax
je 0x471aac
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x18], 0x10
jb 0x471a98
mov eax, dword [eax + 4]
jmp 0x471a9b
add eax, 4
push esi
push 4
push eax
call dword [esp + 0x2c]
test eax, eax
je 0x471aac
mov byte [esp + 0xf], 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.005697e2
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.005697e2
mov esp, ebp
pop ebp
ret
Function at 0x473400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59430b
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x5d5de8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.Sexy::ResourceManager.0
call fcn.00480ab0
mov dword [esi + 8], eax
mov byte [eax + 0x29], 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 [ebp - 4], ebx
call fcn.004e7490
mov dword [esi + 0x14], eax
mov byte [eax + 0x2d], 1
mov eax, dword [esi + 0x14]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x14]
mov dword [eax], eax
mov eax, dword [esi + 0x14]
mov dword [eax + 8], eax
mov dword [esi + 0x18], ebx
mov byte [ebp - 4], 1
call fcn.004e7490
mov dword [esi + 0x20], eax
mov byte [eax + 0x2d], 1
mov eax, dword [esi + 0x20]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x20]
mov dword [eax], eax
mov eax, dword [esi + 0x20]
mov dword [eax + 8], eax
mov dword [esi + 0x24], ebx
mov byte [ebp - 4], 2
call fcn.004e7490
mov dword [esi + 0x2c], eax
mov byte [eax + 0x2d], 1
mov eax, dword [esi + 0x2c]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x2c]
mov dword [eax], eax
mov eax, dword [esi + 0x2c]
mov dword [eax + 8], eax
mov dword [esi + 0x30], ebx
mov eax, 0xf
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], ebx
mov byte [esi + 0x3c], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov dword [esi + 0x90], eax
mov dword [esi + 0x8c], ebx
mov byte [esi + 0x7c], bl
mov dword [esi + 0xac], eax
mov dword [esi + 0xa8], ebx
mov byte [esi + 0x98], bl
mov byte [ebp - 4], 7
call fcn.00481140
mov dword [esi + 0xb8], eax
mov byte [eax + 0x35], 1
mov eax, dword [esi + 0xb8]
mov dword [eax + 4], eax
mov eax, dword [esi + 0xb8]
mov dword [eax], eax
mov eax, dword [esi + 0xb8]
mov dword [eax + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0x58], eax
mov byte [esi + 0x54], bl
mov dword [esi + 0x34], ebx
mov byte [esi + 0xb0], bl
mov byte [esi + 0xb1], bl
mov dword [esi + 0xc0], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4e4ca0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x5d5de8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5dd000], 0
jne 0x4e4d1a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x104]
push str.gPakInterfaceP__d
push eax
call fcn.0056ce56
add esp, 0xc
lea ecx, [ebp - 0x104]
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 [0x5dd000], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x5dd004], eax
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005697e2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov edx, dword [0x5dd004]
mov eax, dword [edx]
xor ecx, ebp
call fcn.005697e2
mov esp, ebp
pop ebp
ret

Function at 0x4e4e30
Capabilities:
Read file on windows

Disassembly:
call fcn.004e4ca0
test eax, eax
je 0x4e4e4d
mov eax, dword [0x5dd004]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push esi
push 1
push edi
push ebx
call eax
ret
mov ecx, dword [esi + 8]
push ecx
push 1
push edi
push ebx
call fcn.0056e1b9
add esp, 0x10
ret

Function at 0x4e7580
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x5d5de8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5dd008], 0
jne 0x4e75fa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x104]
push str.gPakInterfaceP__d
push eax
call fcn.0056ce56
add esp, 0xc
lea ecx, [ebp - 0x104]
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 [0x5dd008], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x5dd00c], eax
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005697e2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov edx, dword [0x5dd00c]
mov eax, dword [edx]
xor ecx, ebp
call fcn.005697e2
mov esp, ebp
pop ebp
ret

Function at 0x4e7720
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
call fcn.004e7580
test eax, eax
je 0x4e774c
mov eax, dword [0x5dd00c]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call edx
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call fcn.0056e1b9
add esp, 0x10
pop ebp
ret
Function at 0x4e97b0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5908f8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5d5de8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0xc]
mov dword [esi], vtable.Sexy::DSoundInstance.0
mov dword [esi + 4], eax
mov byte [esi + 0x12], bl
mov byte [esi + 0x10], bl
mov byte [esi + 0x11], bl
mov dword [esi + 8], ecx
mov dword [edi], ebx
fld qword [0x5aa7f0]
fst qword [esi + 0x18]
mov dword [esi + 0x14], ebx
fstp qword [esi + 0x28]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x30], 0xac44
je 0x4e98af
mov eax, dword [eax + 0x3094]
mov edx, dword [eax]
push edi
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
cmp eax, ebx
je 0x4e98a1
cmp eax, 0x8878000a
jg 0x4e986e
je 0x4e9861
cmp eax, 0x8007000e
je 0x4e9854
cmp eax, 0x80070057
jne 0x4e989b
push ebx
push 0x5b719c
push str.DSERR_INVALIDPARAM
jmp 0x4e9894
push ebx
push 0x5b719c
push str.DSERR_OUTOFMEMORY
jmp 0x4e9894
push ebx
push 0x5b719c
push str.DSERR_ALLOCATED
jmp 0x4e9894
cmp eax, 0x88780032
je 0x4e9889
cmp eax, 0x887800aa
jne 0x4e989b
push ebx
push 0x5b719c
push str.DSERR_UNINITIALIZED
jmp 0x4e9894
push ebx
push 0x5b719c
push str.DSERR_INVALIDCALL
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.0056d86e
mov edi, dword [edi]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x20]
lea eax, [esi + 0x30]
push eax
push edi
call edx
mov eax, esi
call fcn.004e9960
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4e9bf0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x5d5de8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0xc]
jne 0x4e9c3e
push eax
lea eax, [ebp - 0x404]
push str._s_function_not_found_in_bass.dll
push eax
call fcn.0056ce56
add esp, 0xc
push 0x10
push str.Error
lea ecx, [ebp - 0x404]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.0056d86e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005697e2
mov esp, ebp
pop ebp
ret
Function at 0x4ea2e0
Capabilities:
Terminate process

Disassembly:
push 0x5dd014
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [0x5dd010], 0
jne 0x4ea338
push 0xd4
call fcn.0056980a
add esp, 4
test eax, eax
je 0x4ea310
push esi
mov esi, eax
call fcn.004e9c50
pop esi
jmp 0x4ea312
xor eax, eax
cmp dword [eax + 4], 0
mov dword [0x5dd010], eax
jne 0x4ea338
push 0x10
push str.Error
push str.Cant_find_bass.dll.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.0056d86e
ret

Function at 0x4eb5d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x5d5de8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0xc]
jne 0x4eb61e
push eax
lea eax, [ebp - 0x404]
push str._s_function_not_found_in_fmod.dll
push eax
call fcn.0056ce56
add esp, 0xc
push 0x10
push str.Error
lea ecx, [ebp - 0x404]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.0056d86e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005697e2
mov esp, ebp
pop ebp
ret
Function at 0x4eb9f0
Capabilities:
Terminate process

Disassembly:
push 0x5dd01c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [0x5dd018], 0
jne 0x4eba48
push 0x80
call fcn.0056980a
add esp, 4
test eax, eax
je 0x4eba20
push esi
mov esi, eax
call fcn.004eb630
pop esi
jmp 0x4eba22
xor eax, eax
cmp dword [eax + 4], 0
mov dword [0x5dd018], eax
jne 0x4eba48
push 0x10
push str.Error
push str.Cant_find_fmod.dll.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.0056d86e
ret
Function at 0x4ede20
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x5d5de8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5dd020], 0
jne 0x4ede9a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x104]
push str.gPakInterfaceP__d
push eax
call fcn.0056ce56
add esp, 0xc
lea ecx, [ebp - 0x104]
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 [0x5dd020], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x5dd024], eax
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005697e2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov edx, dword [0x5dd024]
mov eax, dword [edx]
xor ecx, ebp
call fcn.005697e2
mov esp, ebp
pop ebp
ret

Function at 0x4edfb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
call fcn.004ede20
test eax, eax
je 0x4edfd3
mov eax, dword [0x5dd024]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
mov edx, dword [edx + 0x14]
push esi
push edi
push ebx
push eax
call edx
pop ebp
ret
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 8]
push eax
push edi
push ebx
push ecx
call fcn.0056e1b9
add esp, 0x10
pop ebp
ret
Function at 0x4f01b0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x5d5de8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5dd02c], 0
jne 0x4f022a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x104]
push str.gPakInterfaceP__d
push eax
call fcn.0056ce56
add esp, 0xc
lea ecx, [ebp - 0x104]
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 [0x5dd02c], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x5dd030], eax
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005697e2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov edx, dword [0x5dd030]
mov eax, dword [edx]
xor ecx, ebp
call fcn.005697e2
mov esp, ebp
pop ebp
ret
Function at 0x4f0e00
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebx]
test edx, edx
je 0x4f0e61
imul eax, dword [ebp + 0x10]
mov ecx, dword [edx + 0x2c]
push esi
mov esi, dword [ebx + 4]
sub ecx, esi
cmp eax, ecx
push edi
mov edi, eax
jl 0x4f0e26
mov edi, ecx
mov eax, dword [edx]
mov ecx, dword [eax + 8]
add ecx, dword [edx + 0x28]
mov edx, dword [ebp + 8]
add ecx, esi
test edi, edi
jle 0x4f0e51
mov esi, edi
lea esp, [esp]
mov al, byte [ecx]
xor al, 0xf7
mov byte [edx], al
add edx, 1
add ecx, 1
sub esi, 1
jne 0x4f0e40
add dword [ebx + 4], edi
mov eax, edi
pop edi
cdq
idiv dword [ebp + 0xc]
pop esi
pop ebx
pop ebp
ret 0x10
mov ecx, dword [ebx + 8]
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call fcn.0056e1b9
add esp, 0x10
pop ebx
pop ebp
ret 0x10
Function at 0x4fbaf0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x4fbb19
call fcn.005097e0
cmp byte [esi + 0x40], 0
je 0x4fbb12
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4fbb95
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x4fbb85
nop
mov eax, dword [esi + 8]
test eax, eax
je 0x4fbb3f
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x190]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x4fbb81
cmp eax, 2
je 0x4fbb85
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4fbb30
cmp eax, 3
je 0x4fbb67
cmp eax, 1
jne 0x4fbb30
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x4fbb30
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x4fbb30
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.004fbbc0
pop esi
ret
cmp eax, 0xcc
je 0x4fbbb7
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.004fbbc0
pop esi
ret

Function at 0x4fe610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
xor eax, eax
test esi, esi
push edi
mov edi, dword [ebp + 8]
je 0x4fe66f
push ebx
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add edx, dword [ecx]
mov ecx, dword [esi + 8]
cmp edi, ecx
jge 0x4fe637
mov ebx, edi
mov dword [ebp - 4], ebx
jmp 0x4fe63c
mov ebx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
test ebx, ebx
jle 0x4fe662
movzx edi, byte [ecx + edx]
mov ebx, eax
shr ebx, 0x18
xor edi, ebx
shl eax, 8
xor eax, dword [edi*4 + 0x5d8d68]
add ecx, 1
cmp ecx, dword [ebp - 4]
jl 0x4fe642
mov edi, dword [ebp + 8]
mov esi, dword [esi + 0xc]
sub edi, ecx
test esi, esi
mov dword [ebp + 8], edi
jne 0x4fe622
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret