joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46aca0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x46acc1
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp - 0x1c]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x46ace0
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 0x14]
add eax, esi
lea ecx, [ecx + eax + 0x18]
movzx eax, word [eax + 6]
push ebx
sub edi, esi
xor ebx, ebx
test eax, eax
mov dword [ebp - 4], eax
jbe 0x46ad24
lea eax, [ecx + 0x10]
mov edx, dword [eax]
mov esi, dword [eax - 8]
cmp edx, esi
mov ecx, dword [eax - 4]
ja 0x46ad0f
mov edx, esi
cmp edi, ecx
jb 0x46ad19
add edx, ecx
cmp edi, edx
jbe 0x46ad2d
add ebx, 1
add eax, 0x28
cmp ebx, dword [ebp - 4]
jb 0x46ad01
pop ebx
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
add ebx, 1
mov dword [edx], ebx
pop ebx
sub edi, ecx
mov dword [eax], edi
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x46d2f0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 2
mov dword [ebp - 8], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x46d32d
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [ebp - 0x10]
push ecx
call edi
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push 0
push 0x64
push edx
push eax
call fcn.005c4f10
add dword [ebp - 0x10], eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ecx
adc dword [ebp - 0xc], edx
mov ebx, dword [ebp - 4]
rdtsc
mov dword [ebx], eax
mov dword [ebx + 4], edx
lea edx, [ebp - 0x20]
push edx
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0xc]
jl 0x46d360
jg 0x46d378
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x10]
jb 0x46d360
lea edx, [ebp - 0x18]
mov dword [ebp - 4], edx
mov ebx, dword [ebp - 4]
rdtsc
sub eax, dword [ebx]
sbb edx, dword [ebx + 4]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov eax, dword [ebp - 8]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0
push 0x64
push ecx
push edx
call fcn.005c1fc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46d640
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
lea eax, [ebp - 0x18]
push edi
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
rdtsc
mov dword [ebx], eax
mov dword [ebx + 4], edx
xor esi, esi
cmp dword [0x640650], esi
jle 0x46d6b1
xor ebx, ebx
mov edi, dword [0x675300]
test edi, edi
je 0x46d68c
mov ecx, dword [0x675304]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x46d697
call fcn.005b2af7
mov edi, dword [0x675300]
lea ecx, [ebx + edi]
push ecx
call fcn.0046d4f0
add esi, 1
add esp, 4
add ebx, 0x18
cmp esi, dword [0x640650]
jl 0x46d665
lea edx, [ebp - 0x10]
mov dword [0x640650], 0
mov dword [ebp - 4], edx
mov ebx, dword [ebp - 4]
rdtsc
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [ebp - 0x14]
add dword [0x63fca8], eax
pop edi
pop esi
adc dword [0x63fcac], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46dab0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x6752f8]
cmp eax, 0x270
jl 0x46db75
xor ecx, ecx
mov eax, dword [ecx*4 + 0x67493c]
xor eax, dword [ecx*4 + 0x674938]
add ecx, 1
and eax, 0x7fffffff
xor eax, dword [ecx*4 + 0x674934]
mov edx, eax
shr eax, 1
and edx, 1
xor eax, dword [edx*4 + 0x63e390]
xor eax, dword [ecx*4 + 0x674f68]
cmp ecx, 0xe3
mov dword [ecx*4 + 0x674934], eax
jl 0x46dac2
cmp ecx, 0x26f
jge 0x46db41
lea ecx, [ecx*4 + 0x674938]
mov eax, dword [ecx + 4]
xor eax, dword [ecx]
add ecx, 4
and eax, 0x7fffffff
xor eax, dword [ecx - 4]
mov edx, eax
shr eax, 1
and edx, 1
xor eax, dword [edx*4 + 0x63e390]
xor eax, dword [ecx - 0x390]
cmp ecx, 0x6752f4
mov dword [ecx - 4], eax
jl 0x46db12
mov ecx, dword [0x6752f4]
mov eax, dword [0x674938]
xor eax, ecx
and eax, 0x7fffffff
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + 0x63e390]
xor eax, dword [0x674f68]
mov dword [0x6752f4], eax
xor eax, eax
mov dword [0x6752f8], eax
mov ecx, dword [eax*4 + 0x674938]
add eax, 1
mov edx, ecx
mov dword [0x6752f8], eax
shr edx, 0xb
xor ecx, edx
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov edx, ecx
and edx, 0xffffdf8c
shl edx, 0xf
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
and eax, 0x7fffffff
ret

Function at 0x46dea0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push ebx
xor ebx, ebx
cmp byte [esi + 0xf6], bl
jne 0x46df86
jmp 0x46dec0
cmp byte [ebp + 8], bl
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x218], ebx
je 0x46dee7
mov eax, dword [esi + 8]
mov dword [ebp - 0x10c], eax
mov eax, 1
mov dword [ebp - 0x110], eax
jmp 0x46deec
mov eax, 1
cmp byte [ebp + 0xc], bl
je 0x46df00
mov ecx, dword [esi + 8]
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x218], eax
mov edx, dword [esi + 8]
mov dword [ebp - 0x320], eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x320]
push ecx
mov dword [ebp - 0x31c], edx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x110]
push eax
push 0x40
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0x186a0
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
je 0x46df8f
mov edx, dword [esi + 8]
lea ecx, [ebp - 0x320]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x46df8f
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x110]
push eax
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x46df86
mov eax, dword [esi + 8]
lea edx, [ebp - 0x218]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x46df86
cmp byte [esi + 0xf6], bl
je 0x46dec0
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, 6
mov eax, esi
call fcn.0046de90
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46ea60
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x6405cc]
test eax, eax
mov cl, 1
mov byte [0x67543c], cl
je 0x46ea7a
cmp byte [eax + 0x50d], 0
jne 0x46ea94
push 0x675348
push 0
push 0x46e7e0
mov byte [0x67543d], cl
call fcn.005b343b
add esp, 0xc
ret
Function at 0x46fe00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x202c
call fcn.005ca380
mov eax, dword [0x6396a8]
xor eax, esp
mov dword [esp + 0x2028], eax
cmp byte [0x640659], 0
push ebx
push esi
push edi
je 0x470010
push 0x675330
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x60feb0
push str.mem_leaks.txt
mov dword [esp + 0x18], 0
call fcn.005b6041
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x14], esi
je 0x470005
push 0
call fcn.005b67f3
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x2c], edx
call fcn.005b7209
push eax
call fcn.005b6e44
push eax
lea ecx, [esp + 0x40]
push str.Memory_Leak_Report_for__s_n
push ecx
call fcn.005b6166
lea edx, [esp + 0x48]
push edx
push esi
call fcn.005b649e
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x20
push 0x60fee0
call ebx
lea eax, [esp + 0x30]
push eax
call ebx
mov ecx, dword [0x675328]
mov esi, dword [ecx]
mov edi, 0x675324
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
jmp 0x46fed0
test edi, edi
mov edx, dword [0x675328]
mov dword [esp + 0x2c], edx
je 0x46fee6
cmp edi, 0x675324
je 0x46feeb
call fcn.005b2af7
cmp esi, dword [esp + 0x2c]
je 0x46ffa2
test edi, edi
jne 0x46fefe
call fcn.005b2af7
cmp esi, dword [edi + 4]
jne 0x46ff08
call fcn.005b2af7
cmp dword [esi + 0x10], 1
mov ebx, 0x60fee4
jg 0x46ff18
mov ebx, 0x5ff2b0
cmp esi, dword [edi + 4]
jne 0x46ff36
call fcn.005b2af7
cmp esi, dword [edi + 4]
jne 0x46ff36
call fcn.005b2af7
cmp esi, dword [edi + 4]
jne 0x46ff36
call fcn.005b2af7
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.005b6166
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.005b649e
add esp, 8
cmp esi, dword [edi + 4]
jne 0x46ff7f
call fcn.005b2af7
mov ecx, dword [esi + 0x10]
add dword [esp + 0x10], ecx
lea esi, [esp + 0x18]
call fcn.00480660
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x46fed0
lea edx, [esp + 0x30]
push str.____________________________________________________________n
push edx
call fcn.005b6166
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push eax
push esi
call fcn.005b649e
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.005b6166
add esp, 0x10
lea eax, [esp + 0x30]
push eax
call ebx
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.005b649e
add esp, 8
push 0x675330
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x2034]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005b2f9b
mov esp, ebp
pop ebp
ret
Function at 0x470030
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x6396a8]
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.00471e30
mov eax, dword [ebp - 0x1c]
add esp, 4
cmp dword [ebp - 8], 0x10
pop ebx
jae 0x470060
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 8], 0x10
jb 0x470079
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005b28f2
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b2f9b
mov esp, ebp
pop ebp
ret

Function at 0x4701b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x6396a8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x63e399], 0
push esi
je 0x47023d
push 0x9c
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.005b30e0
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 0x470228
lea edx, [ebp - 0xa0]
push edx
mov dword [ebp - 0xa0], 0x94
call esi
test eax, eax
jne 0x470228
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b2f9b
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x9c], 6
mov byte [0x63e399], 0
setae byte [0x67549d]
mov ecx, dword [ebp - 4]
mov al, byte [0x67549d]
xor ecx, ebp
pop esi
call fcn.005b2f9b
mov esp, ebp
pop ebp
ret
Function at 0x471590
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x6396a8]
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 0x471760
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 0x471759
cmp dword [esp + 0x14], ebx
je 0x471759
cmp dword [esp + 0x18], ebx
je 0x471759
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x471759
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x471759
cmp eax, ebx
je 0x471759
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 0x47173c
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 0x47173c
push 0x14
call fcn.005b25e7
add esp, 4
mov esi, eax
push 1
push esi
call dword [esp + 0x20]
test eax, eax
je 0x47173c
mov ecx, dword [esp + 0x10]
push ebx
push ecx
push 1
push esi
call dword [esp + 0x24]
test eax, eax
je 0x47173c
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x18], 0x10
jb 0x471728
mov eax, dword [eax + 4]
jmp 0x47172b
add eax, 4
push esi
push 4
push eax
call dword [esp + 0x2c]
test eax, eax
je 0x47173c
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.005b2f9b
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.005b2f9b
mov esp, ebp
pop ebp
ret
Function at 0x4730b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e5fbb
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x6396a8]
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.004807c0
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.00441960
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.00441960
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.00441960
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.00480df0
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 0x4e47f0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x6396a8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x640870], 0
jne 0x4e486a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x104]
push str.gPakInterfaceP__d
push eax
call fcn.005b6166
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 [0x640870], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x640874], eax
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b2f9b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov edx, dword [0x640874]
mov eax, dword [edx]
xor ecx, ebp
call fcn.005b2f9b
mov esp, ebp
pop ebp
ret

Function at 0x4e4980
Capabilities:
Read file on windows

Disassembly:
call fcn.004e47f0
test eax, eax
je 0x4e499d
mov eax, dword [0x640874]
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.005b74c9
add esp, 0x10
ret

Function at 0x4e5250
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x6396a8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x640878], 0
jne 0x4e52ca
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x104]
push str.gPakInterfaceP__d
push eax
call fcn.005b6166
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 [0x640878], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x64087c], eax
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b2f9b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov edx, dword [0x64087c]
mov eax, dword [edx]
xor ecx, ebp
call fcn.005b2f9b
mov esp, ebp
pop ebp
ret

Function at 0x4e53e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
call fcn.004e5250
test eax, eax
je 0x4e5403
mov eax, dword [0x64087c]
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.005b74c9
add esp, 0x10
pop ebp
ret
Function at 0x4e9380
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x6396a8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x640884], 0
jne 0x4e93fa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x104]
push str.gPakInterfaceP__d
push eax
call fcn.005b6166
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 [0x640884], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x640888], eax
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b2f9b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov edx, dword [0x640888]
mov eax, dword [edx]
xor ecx, ebp
call fcn.005b2f9b
mov esp, ebp
pop ebp
ret

Function at 0x4e9520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
call fcn.004e9380
test eax, eax
je 0x4e954c
mov eax, dword [0x640888]
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.005b74c9
add esp, 0x10
pop ebp
ret
Function at 0x4eb5c0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e25d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6396a8]
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 [0x60bd40]
fst qword [esi + 0x18]
mov dword [esi + 0x14], ebx
fstp qword [esi + 0x28]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x30], 0xac44
je 0x4eb6bf
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 0x4eb6b1
cmp eax, 0x8878000a
jg 0x4eb67e
je 0x4eb671
cmp eax, 0x8007000e
je 0x4eb664
cmp eax, 0x80070057
jne 0x4eb6ab
push ebx
push 0x61092c
push str.DSERR_INVALIDPARAM
jmp 0x4eb6a4
push ebx
push 0x61092c
push str.DSERR_OUTOFMEMORY
jmp 0x4eb6a4
push ebx
push 0x61092c
push str.DSERR_ALLOCATED
jmp 0x4eb6a4
cmp eax, 0x88780032
je 0x4eb699
cmp eax, 0x887800aa
jne 0x4eb6ab
push ebx
push 0x61092c
push str.DSERR_UNINITIALIZED
jmp 0x4eb6a4
push ebx
push 0x61092c
push str.DSERR_INVALIDCALL
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.005b6b7e
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.004eb770
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 0x4eba00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x6396a8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0xc]
jne 0x4eba4e
push eax
lea eax, [ebp - 0x404]
push str._s_function_not_found_in_bass.dll
push eax
call fcn.005b6166
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.005b6b7e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b2f9b
mov esp, ebp
pop ebp
ret
Function at 0x4ec0f0
Capabilities:
Terminate process

Disassembly:
push 0x640890
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [0x64088c], 0
jne 0x4ec148
push 0xd4
call fcn.005b2b20
add esp, 4
test eax, eax
je 0x4ec120
push esi
mov esi, eax
call fcn.004eba60
pop esi
jmp 0x4ec122
xor eax, eax
cmp dword [eax + 4], 0
mov dword [0x64088c], eax
jne 0x4ec148
push 0x10
push str.Error
push str.Cant_find_bass.dll.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.005b6b7e
ret

Function at 0x4ed3e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x6396a8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0xc]
jne 0x4ed42e
push eax
lea eax, [ebp - 0x404]
push str._s_function_not_found_in_fmod.dll
push eax
call fcn.005b6166
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.005b6b7e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b2f9b
mov esp, ebp
pop ebp
ret