joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a5a8
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff70
push ebx
xor edx, edx
mov dword [ebp - 0x90], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405014
xor eax, eax
push ebp
push 0x47a661
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x89]
mov edx, dword [ebp - 4]
call fcn.00409668
lea eax, [ebp - 0x90]
lea edx, [ebp - 0x89]
mov ecx, 0x81
call fcn.00404ddc
mov eax, dword [ebp - 0x90]
call fcn.0047a44c
test al, al
je 0x47a617
lea eax, [ebp - 0x89]
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 8], eax
jmp 0x47a63d
lea eax, [ebp - 0x89]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x47a62b
xor ebx, ebx
jmp 0x47a640
lea edx, [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, 4
call fcn.00402a8c
mov ebx, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a668
lea eax, [ebp - 0x90]
call fcn.00404b74
lea eax, [ebp - 4]
call fcn.00404b74
ret

Function at 0x47a670
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov word [ebp - 6], dx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405014
xor eax, eax
push ebp
push 0x47a7cd
push dword fs:[eax]
mov dword fs:[eax], esp
or esi, 0xffffffff
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47a7af
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.00403240
mov word [ebp - 0x24], 2
push 0
call sub.wsock32.dll_htonl
mov dword [ebp - 0x20], eax
push 0
call sub.wsock32.dll_htons
mov word [ebp - 0x22], ax
push 0x10
lea eax, [ebp - 0x24]
push eax
push ebx
call sub.wsock32.dll_bind
inc eax
je 0x47a7af
mov eax, dword [ebp - 4]
call fcn.0047a5a8
mov dword [0x51aeb8], eax
cmp dword [0x51aeb8], 0
je 0x47a7af
lea eax, [ebp - 0x34]
xor ecx, ecx
mov edx, 0x10
call fcn.00403240
mov word [ebp - 0x34], 2
lea edx, [ebp - 0x30]
mov eax, 0x51aeb8
mov ecx, 4
call fcn.00402a8c
mov ax, word [ebp - 6]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x32], ax
push 0x10
lea eax, [ebp - 0x34]
push eax
push ebx
call sub.wsock32.dll_connect
inc eax
je 0x47a7af
mov dword [ebp - 0xc], 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call sub.wsock32.dll_getsockname
mov eax, dword [ebp - 0x20]
mov dword [0x51aeb4], eax
mov dword [0x51aebc], 0x4e20
lea ecx, [ebp - 0x10]
mov edx, 0x47a7e4
mov eax, 0x47a7fc
call fcn.00469d40
cmp dword [ebp - 0x10], 0
je 0x47a7ad
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00403610
mov dword [0x51aebc], eax
cmp dword [ebp - 0x14], 0
je 0x47a7ad
mov dword [0x51aebc], 0x4e20
mov esi, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a7d4
lea eax, [ebp - 0x10]
call fcn.00404b74
lea eax, [ebp - 4]
call fcn.00404b74
ret
Function at 0x47a8a0
Capabilities:
Get socket status

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
call fcn.0047a350
test al, al
je 0x47a8b6
mov bl, 1
jmp 0x47a8fd
xor eax, eax
mov dword [esp], eax
mov eax, dword [0x51aebc]
mov dword [esp + 4], eax
lea eax, [esp + 8]
call fcn.00478400
lea edx, [esp + 8]
mov eax, ebx
call fcn.004783f0
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [ebx + 1]
push eax
call sub.wsock32.dll_select
lea edx, [esp + 8]
mov eax, ebx
call fcn.004783d8
mov ebx, eax
call fcn.00471eec
mov eax, ebx
add esp, 0x10c
pop ebx
ret

Function at 0x47dc64
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov esi, esp
mov dword [esp + 4], 1
mov byte [esp + 8], 0
mov byte [esi], 0x20
mov bl, 1
call fcn.0047201c
lea eax, [esp + 1]
push eax
push ebx
mov ecx, esi
lea edx, [esp + 0xc]
mov eax, dword [esp + 0xc]
call fcn.00476e34
test al, al
je 0x47dcc0
mov eax, dword [esp + 4]
dec eax
push eax
lea eax, [esp + 0xc]
push eax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
setl cl
mov dl, byte [esp + 9]
mov al, byte [esi]
call fcn.0047d3bc
jmp 0x47dcc5
call fcn.0046a5d8
cmp byte [esi], 0
jne 0x47dce4
mov al, byte [esp + 1]
add al, 0xc0
cmp al, 0x37
ja 0x47dcde
and eax, 0x7f
bt dword [0x47dcfc], eax
jae 0x47dce4
xor ebx, ebx
jmp 0x47dce6
mov bl, 1
cmp byte [esp + 8], 0
jne 0x47dcf2
cmp byte [esi], 0x1b
jne 0x47dc7d
mov al, byte [esi]
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x401c90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x5eae84]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ecx]
push esi
call fcn.00409340
mov esi, eax
cmp esi, 4
ja case.default.0x401cb2
jmp dword [esi*4 + 0x401d50]
mov al, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057d22e
mov esp, ebp
pop ebp
ret
mov al, 5
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057d22e
mov esp, ebp
pop ebp
ret
mov al, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057d22e
mov esp, ebp
pop ebp
ret
mov al, 3
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057d22e
mov esp, ebp
pop ebp
ret
push str._warn_
lea eax, [ebp - 0x84]
push 0x80
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
push esi
push str.Sound::GetStatus_unkown_status__d____
lea eax, [ebp - 0x7e]
push 0x7a
push eax
call dword [sym.imp.MSVCR110.dll_sprintf_s]
add esp, 0x1c
mov word [ebp + eax - 0x7e], 0xa
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.0057d22e
mov esp, ebp
pop ebp
ret

Function at 0x401ed0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
lea ecx, [ebp + 8]
pop ebp
jmp fcn.00401c90
Function at 0x4064c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
test ebx, ebx
je 0x406548
push esi
push edi
mov edi, dword [ebx]
xor eax, eax
xor esi, esi
mov dword [ebp - 8], edi
mov dword [edi + 0x16], eax
cmp dword [ebx + 4], eax
jle 0x4064fb
movzx edx, byte [edi + esi]
mov ecx, eax
shr ecx, 0x18
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x5bb070]
inc esi
cmp esi, dword [ebx + 4]
jl 0x4064e0
mov ecx, dword [ebx + 0xc]
xor esi, esi
test ecx, ecx
jle 0x40652d
mov edi, dword [ebx + 8]
mov ebx, ecx
lea esp, [esp]
movzx edx, byte [edi + esi]
mov ecx, eax
shr ecx, 0x18
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x5bb070]
inc esi
cmp esi, ebx
jl 0x406510
mov edi, dword [ebp - 8]
mov byte [edi + 0x16], al
mov ecx, eax
shr ecx, 8
mov byte [edi + 0x17], cl
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 0x18], cl
shr eax, 0x18
mov byte [edi + 0x19], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406c30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x5eae84]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.MSVCR110.dll_malloc]
push esi
push edi
push 0x2c
mov esi, edx
mov dword [ebp - 0x88], ecx
call ebx
mov edi, eax
add esp, 4
test edi, edi
jne 0x406cb3
push str._warn_
lea eax, [ebp - 0x84]
push 0x80
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
push 0x5c5ec0
lea eax, [ebp - 0x7e]
push 0x7a
push eax
call dword [sym.imp.MSVCR110.dll_sprintf_s]
add esp, 0x18
mov word [ebp + eax - 0x7e], 0xa
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057d22e
mov esp, ebp
pop ebp
ret
push 0x2c
push 0
push edi
call sub.MSVCR110.dll_memset
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
mov dl, byte [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x1c], eax
xor eax, eax
mov word [edi + 0x24], ax
movzx eax, cx
mov dword [ebp - 0x88], eax
add eax, eax
mov word [edi + 0x20], cx
movzx ecx, dl
mov byte [edi + 0x26], dl
xor edx, edx
div ecx
mov dword [edi + 4], esi
mov dword [edi + 0x14], 0
add eax, 0xfffffff4
movzx esi, ax
mov word [edi + 0x22], ax
mov eax, esi
imul eax, ecx
add eax, eax
push eax
mov dword [edi + 0x10], eax
call ebx
mov dword [ebp - 0x8c], eax
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x18]
xor edx, edx
div esi
mov ecx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x8c]
add esp, 0x10
imul eax, ecx
mov dword [edi + 8], eax
test esi, esi
jne 0x406d9d
push str._warn_
lea eax, [ebp - 0x84]
push 0x80
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
push str.create_ADPCM_decode_buffer_failed___heap_memory_insufficient
lea eax, [ebp - 0x7e]
push 0x7a
push eax
call dword [sym.imp.MSVCR110.dll_sprintf_s]
add esp, 0x18
mov word [ebp + eax - 0x7e], 0xa
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057d22e
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x1c], 0
je 0x406e11
push ecx
call ebx
add esp, 4
mov dword [edi + 0x28], eax
test eax, eax
jne 0x406e18
push str._warn_
lea eax, [ebp - 0x84]
push 0x80
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
push str.create_ADPCM_decode_buffer_failed___heap_memory_insufficient
lea eax, [ebp - 0x7e]
push 0x7a
push eax
call dword [sym.imp.MSVCR110.dll_sprintf_s]
add esp, 0x18
mov word [ebp + eax - 0x7e], 0xa
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [sym.imp.MSVCR110.dll_free]
call esi
push edi
call esi
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057d22e
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x28], 0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057d22e
mov esp, ebp
pop ebp
ret
Function at 0x407b00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x5eae84]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.MSVCR110.dll_malloc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0x3f800000
movq xmm0, qword [ebp - 0x9c]
mov eax, edi
shl eax, 0xb
movq qword [0x5eb078], xmm0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
movq xmm0, qword [ebp - 0x94]
push eax
mov dword [0x641090], 0x7d00
mov dword [0x641094], edi
mov dword [0x641078], 0
movq qword [0x5eb080], xmm0
mov dword [0x5eb088], 0
mov dword [0x5eafc4], 0x3f800000
mov dword [0x641098], eax
call ebx
add esp, 4
mov dword [0x64106c], eax
test eax, eax
jne 0x407bea
push str._warn_
lea eax, [ebp - 0x88]
push 0x80
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
add esp, 0xc
lea eax, [ebp - 0x82]
push str.CoreAPI_create_render_buffer_failed___heap_memory_insufficient
push 0x7a
push eax
call dword [sym.imp.MSVCR110.dll_sprintf_s]
mov word [ebp + eax - 0x82], 0xa
jmp 0x407cd3
shl edi, 0xa
mov dword [0x641084], edi
mov esi, 0x64107c
push edi
call ebx
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x407c9b
push edi
push 0
push eax
call sub.MSVCR110.dll_memset
add esi, 4
add esp, 0xc
cmp esi, 0x641084
jl 0x407bf8
push 0x434
call ebx
add esp, 4
test eax, eax
je 0x407c36
mov ecx, eax
call fcn.0040c0d0
jmp 0x407c38
xor eax, eax
mov dword [0x6410b4], eax
test eax, eax
je 0x407c88
push 0x407940
sub esp, 8
call fcn.0040c150
mov edi, dword [0x6410b4]
test edi, edi
je 0x407c88
cmp dword [edi + 0x14], 0
je 0x407c88
push 0x400
lea esi, [edi + 0x1c]
push esi
mov ecx, edi
call fcn.0040c3d0
push 0x400
push esi
mov ecx, edi
call fcn.0040c3d0
mov eax, dword [edi + 0x14]
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x4c]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057d22e
mov esp, ebp
pop ebp
ret
push str._warn_
lea eax, [ebp - 0x88]
push 0x80
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
add esp, 0xc
lea eax, [ebp - 0x82]
push str.CoreAPI_create_output_buffer_failed___heap_memory_insufficient
push 0x7a
push eax
call dword [sym.imp.MSVCR110.dll_sprintf_s]
mov word [ebp + eax - 0x82], 0xa
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or al, 0xff
pop ebx
call fcn.0057d22e
mov esp, ebp
pop ebp
ret
Function at 0x407d80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x5eae84]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xc4
mov ebx, edx
mov edi, ecx
call dword [sym.imp.MSVCR110.dll_malloc]
add esp, 4
test eax, eax
je 0x407e80
mov ecx, eax
call fcn.0040cca0
mov esi, eax
test esi, esi
je 0x407e80
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
push ebx
call fcn.0040cd80
test al, al
jns 0x407dee
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
pop edi
pop esi
or al, 0xff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057d22e
mov esp, ebp
pop ebp
ret
push 0x6410d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call fcn.00407f90
test al, al
jns 0x407e60
push str._warn_
lea eax, [ebp - 0x84]
push 0x80
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
push str.CoreSource_list_append_failed_
lea eax, [ebp - 0x7e]
push 0x7a
push eax
call dword [sym.imp.MSVCR110.dll_sprintf_s]
add esp, 0x18
mov word [ebp + eax - 0x7e], 0xa
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x6410d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
or al, 0xff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057d22e
mov esp, ebp
pop ebp
ret
push 0x6410d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [edi], esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057d22e
mov esp, ebp
pop ebp
ret
push str._warn_
lea eax, [ebp - 0x84]
push 0x80
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
push str.Create_CoreSource_failed___heap_memory_insufficient
lea eax, [ebp - 0x7e]
push 0x7a
push eax
call dword [sym.imp.MSVCR110.dll_sprintf_s]
add esp, 0x18
mov word [ebp + eax - 0x7e], 0xa
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or al, 0xff
pop ebx
call fcn.0057d22e
mov esp, ebp
pop ebp
ret
Function at 0x407f90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x5eae84]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x10
call dword [sym.imp.MSVCR110.dll_malloc]
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40803a
mov dword [ecx], vtable.SQEX::List_class_SQEX::CoreSource__::Node.0
cmp dword [0x6410cc], 0
jne 0x407fff
mov eax, dword [ebp + 8]
mov dword [0x6410d0], ecx
mov dword [0x6410cc], ecx
mov dword [ecx + 0xc], eax
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
inc dword [0x6410d4]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057d22e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x6410d0]
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0
mov eax, dword [0x6410d0]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov dword [0x6410d0], ecx
mov dword [ecx + 0xc], eax
inc dword [0x6410d4]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057d22e
mov esp, ebp
pop ebp
ret 4
push str._warn_
lea eax, [ebp - 0x84]
push 0x80
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
push str.create_list_node_failed___heap_memory_insufficient
lea eax, [ebp - 0x7e]
push 0x7a
push eax
call dword [sym.imp.MSVCR110.dll_sprintf_s]
add esp, 0x18
mov word [ebp + eax - 0x7e], 0xa
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
or al, 0xff
call fcn.0057d22e
mov esp, ebp
pop ebp
ret 4
Function at 0x408090
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5eae84]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push edi
mov edi, dword [eax + 0x20]
mov dword [ebp - 0x108], eax
test edi, edi
jle 0x40820d
push ebx
lea eax, [edi*4]
push esi
push eax
mov dword [0x6410a4], edi
call dword [sym.imp.MSVCR110.dll_malloc]
add esp, 4
mov ebx, eax
xor esi, esi
mov dword [0x6410a0], ebx
test edi, edi
jle 0x408204
mov eax, dword [ebp - 0x108]
cmp esi, dword [eax + 0x20]
jl 0x40813f
push str._warn_
lea eax, [ebp - 0x84]
push 0x80
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
push esi
push str.INVALID_CATEGORY_NUMBER___d_
lea eax, [ebp - 0x7e]
push 0x7a
push eax
call dword [sym.imp.MSVCR110.dll_sprintf_s]
add esp, 0x1c
mov word [ebp + eax - 0x7e], 0xa
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [0x6410a4]
mov ebx, dword [0x6410a0]
mov eax, dword [ebp - 0x108]
cmp dword [eax + esi*4], 0
lea ecx, [eax + esi*4]
mov dword [ebp - 0x10c], ecx
je 0x4081f4
push 0x40
call dword [sym.imp.MSVCR110.dll_malloc]
add esp, 4
test eax, eax
je 0x40816a
mov ecx, eax
call fcn.00408470
jmp 0x40816c
xor eax, eax
mov dword [ebx + esi*4], eax
mov eax, dword [ebp - 0x108]
cmp esi, dword [eax + 0x20]
jl 0x4081c6
push str._warn_
lea eax, [ebp - 0x104]
push 0x80
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
push esi
push str.INVALID_CATEGORY_NUMBER___d_
lea eax, [ebp - 0xfe]
push 0x7a
push eax
call dword [sym.imp.MSVCR110.dll_sprintf_s]
add esp, 0x1c
mov word [ebp + eax - 0xfe], 0xa
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, dword [0x6410a0]
mov ecx, dword [ebx + esi*4]
mov eax, dword [ebp - 0x10c]
add ecx, 4
mov eax, dword [eax]
mov dword [ecx + 0x2c], esi
mov dword [ecx + 0x30], eax
push eax
call fcn.00408a30
mov edi, dword [0x6410a4]
mov ebx, dword [0x6410a0]
mov eax, dword [ebp - 0x108]
jmp 0x4081fb
mov dword [ebx + esi*4], 0
inc esi
cmp esi, edi
jl 0x4080e8
pop esi
pop ebx
mov byte [0x64106b], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop edi
call fcn.0057d22e
mov esp, ebp
pop ebp
ret
Function at 0x408eb0
Capabilities:
Create thread

Disassembly:
mov eax, 0x408fc0
mov byte [0x6410a8], 0
test eax, eax
je 0x408ef4
push 0
push 0
push 0x6410f0
push 0x409100
push 0
push 0
mov dword [0x6410f0], 0x408fc0
mov dword [0x6410f4], 0
call dword [sym.imp.MSVCR110.dll__beginthreadex]
add esp, 0x18
mov dword [0x6410f8], eax
xorps xmm0, xmm0
movq qword [0x6411a0], xmm0
movq qword [0x6411a8], xmm0
movq qword [0x6411b0], xmm0
movq qword [0x6411b8], xmm0
movq qword [0x6411c0], xmm0
movq qword [0x6411c8], xmm0
movq qword [0x6411d0], xmm0
movq qword [0x6411d8], xmm0
xor al, al
ret
Function at 0x409550
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586deb
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x5eae84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x98], ecx
push 0x64113c
mov dword [ebp - 0xa0], 0x64113c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x100
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR110.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x409738
mov ecx, ebx
call fcn.0040d660
push ebx
lea eax, [ebp - 0x94]
push eax
mov dword [ebx], vtable.SQEX::OnMemorySound.0
mov dword [ebx + 0xfc], 0
call fcn.004099f0
test al, al
jns 0x40962f
mov ecx, ebx
call fcn.0040e2b0
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
push str._warn_
lea eax, [ebp - 0x90]
push 0x80
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
push str.sound_list_append_failed
lea eax, [ebp - 0x8a]
push 0x7a
push eax
call dword [sym.imp.MSVCR110.dll_sprintf_s]
mov word [ebp + eax - 0x8a], 0xa
jmp 0x40976d
mov esi, dword [ebp - 0x94]
cmp esi, 0xffff
jle 0x40969c
push str._warn_
lea eax, [ebp - 0x90]
push 0x80
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
push str.sound_list_full__
lea eax, [ebp - 0x8a]
push 0x7a
push eax
call dword [sym.imp.MSVCR110.dll_sprintf_s]
add esp, 0x18
mov word [ebp + eax - 0x8a], 0xa
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.00409a80
mov ecx, ebx
call fcn.0040e2b0
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
jmp 0x40977d
mov ax, word [0x6411e0]
inc ax
je 0x4096a2
mov ecx, dword [ebp - 0x9c]
movzx edi, ax
mov word [0x6411e0], ax
movzx eax, si
mov esi, dword [ebx]
shl edi, 0x10
or edi, eax
call fcn.00404fc0
push eax
mov eax, dword [esi + 0x18]
push edi
mov ecx, ebx
call eax
mov byte [ebx + 0xd0], 0
test al, al
jns 0x409729
push dword [ebp - 0x94]
call fcn.00409a80
mov ecx, ebx
call fcn.0040e2b0
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
push str._warn_
lea eax, [ebp - 0x90]
push 0x80
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
push str.SoundManager::CreateSound_OnMemorySound_initialize_failed
lea eax, [ebp - 0x8a]
push 0x7a
push eax
call dword [sym.imp.MSVCR110.dll_sprintf_s]
mov word [ebp + eax - 0x8a], 0xa
jmp 0x40976d
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x98]
xor bl, bl
mov dword [ecx], eax
jmp 0x409780
push str._warn_
lea eax, [ebp - 0x90]
push 0x80
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
push str.create_OnMemorySound_failed___heap_memory_insufficient
lea eax, [ebp - 0x8a]
push 0x7a
push eax
call dword [sym.imp.MSVCR110.dll_sprintf_s]
mov word [ebp + eax - 0x8a], 0xa
add esp, 0x18
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or bl, 0xff
push 0x64113c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057d22e
mov esp, ebp
pop ebp
ret
Function at 0x40a550
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586e8b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5eae84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ecx, ecx
mov eax, edi
mov edx, 0x30
mul edx
seto cl
mov dword [0x64117c], edi
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call dword [sym.imp.MSVCR110.dll_malloc]
add esp, 4
mov dword [ebp - 0x94], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40a5d8
push 0x407800
push 0x40a780
push edi
lea esi, [eax + 4]
push 0x30
push esi
mov dword [eax], edi
call fcn.0057d2d4
jmp 0x40a5da
xor esi, esi
mov dword [0x64116c], esi
test esi, esi
jne 0x40a62d
push str._warn_
lea eax, [ebp - 0x90]
push 0x80
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
push str.Queue:NODEs_create_failed___heap_memory_insufficient
lea eax, [ebp - 0x8a]
push 0x7a
push eax
call dword [sym.imp.MSVCR110.dll_sprintf_s]
add esp, 0x18
mov word [ebp + eax - 0x8a], 0xa
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or al, 0xff
jmp 0x40a66d
lea edx, [edi - 1]
mov dword [0x641170], esi
test edx, edx
jle 0x40a657
xor ecx, ecx
lea esp, [esp]
lea eax, [esi + 0x30]
add eax, ecx
mov dword [ecx + esi + 0x2c], eax
add ecx, 0x30
dec edx
je 0x40a657
mov esi, dword [0x64116c]
jmp 0x40a640
mov dword [0x641174], 0
mov dword [0x641178], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057d22e
mov esp, ebp
pop ebp
ret