joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ac6e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
mov edi, eax
call fcn.005ac630
mov eax, 0x10
cmp dword [edi + 0x14], eax
jb 0x5ac6fe
mov edi, dword [edi]
cmp dword [ebx + 0x14], eax
jb 0x5ac707
mov eax, dword [ebx]
jmp 0x5ac709
mov eax, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
xor ebx, ebx
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x5ac72d
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
push eax
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x5ac724
mov eax, dword [esi + 0x10]
push eax
push ebx
mov dword [esi + 0x40], 3
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esi + 0x14]
push ecx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esi + 0x20]
add edx, eax
pop edi
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov byte [esi + 0x50], bl
mov dword [esi + 0x4c], edx
pop esi
mov al, 1
pop ebx
pop ebp
ret 4

Function at 0x5ac7d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
call fcn.005ac630
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edi, edi
cmp ebx, edi
jne 0x5ac803
cmp dword [eax + 0x14], 0x10
jb 0x5ac7f1
mov eax, dword [eax]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
jmp 0x5ac839
cmp ebx, 1
jne 0x5ac822
cmp dword [eax + 0x14], 0x10
jb 0x5ac810
mov eax, dword [eax]
push edi
push 0x80
push 2
push edi
push 2
push 0x40000000
jmp 0x5ac839
cmp dword [eax + 0x14], 0x10
jb 0x5ac82a
mov eax, dword [eax]
push edi
push 0x80
push 4
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x5ac854
mov dword [esi + 8], edi
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
mov dword [esi + 0x40], 1
cmp ebx, edi
je 0x5ac86c
cmp ebx, 2
je 0x5ac86c
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
jmp 0x5ac886
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 8]
mov dword [esi + 0x20], eax
add dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
adc dword [esi + 0x24], edx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
pop edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
pop esi
mov al, 1
pop ebx
pop ebp
ret 8
Function at 0x5ac8e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x40]
xor eax, eax
push edi
mov dword [ebp - 4], eax
cmp ecx, 4
ja case.0x5ac8f9.3
jmp dword [ecx*4 + 0x5ac9f4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x5ac924
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
add dword [esi + 0x20], eax
pop edi
adc dword [esi + 0x24], 0
add dword [esi + 0x28], eax
adc dword [esi + 0x2c], 0
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x44]
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x4c]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x5ac951
sub eax, ecx
mov edi, eax
mov eax, dword [ebp + 8]
push edi
push eax
push ecx
call fcn.0052d910
add dword [esi + 0x44], edi
add esp, 0xc
mov eax, edi
add dword [esi + 0x28], eax
pop edi
adc dword [esi + 0x2c], 0
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
add edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x18]
adc eax, dword [esi + 0x2c]
mov edi, dword [ecx + 4]
sub edi, dword [ecx]
push ebx
xor ebx, ebx
cmp ebx, eax
pop ebx
ja 0x5ac9a4
jb 0x5ac992
cmp edi, edx
jae 0x5ac9a4
push edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
call fcn.00401030
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 0x28]
sub ecx, edx
cmp ecx, eax
ja 0x5ac9bf
push str.invalid_vector_T__subscript
call fcn.0051b151
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
push ecx
add edx, eax
push edx
call fcn.0052d910
add esp, 0xc
mov eax, edi
add dword [esi + 0x28], eax
pop edi
adc dword [esi + 0x2c], 0
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
add dword [esi + 0x28], eax
pop edi
adc dword [esi + 0x2c], 0
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x5aca10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x40]
xor eax, eax
push edi
mov dword [ebp - 4], eax
cmp ecx, 4
ja case.default.0x5aca29
jmp dword [ecx*4 + 0x5acb18]
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ecx, edx
add ecx, dword [esi + 0x28]
adc eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x3c]
jb 0x5aca4f
ja 0x5aca49
cmp ecx, dword [esi + 0x38]
jbe 0x5aca4f
mov edx, dword [esi + 0x38]
sub edx, dword [esi + 0x28]
mov ecx, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edx
mov edx, dword [esi + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je case.0x5aca29.0
mov eax, dword [ebp - 4]
add dword [esi + 0x28], eax
pop edi
adc dword [esi + 0x2c], 0
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x44]
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x4c]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x5aca92
sub eax, ecx
mov edi, eax
mov eax, dword [ebp + 8]
push edi
push ecx
push eax
call fcn.0052d910
add esp, 0xc
add dword [esi + 0x44], edi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 0xc]
xor eax, eax
mov ecx, edi
add ecx, dword [esi + 0x28]
adc eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x3c]
jb 0x5acacc
ja 0x5acac6
cmp ecx, dword [esi + 0x38]
jbe 0x5acacc
mov edi, dword [esi + 0x38]
sub edi, dword [esi + 0x28]
test edi, edi
je case.0x5aca29.0
mov edx, dword [esi + 0x18]
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov eax, dword [esi + 0x28]
sub edx, ecx
cmp edx, eax
ja 0x5acaeb
push str.invalid_vector_T__subscript
call fcn.0051b151
add ecx, eax
mov eax, dword [ebp + 8]
push edi
push ecx
push eax
call fcn.0052d910
add esp, 0xc
add dword [esi + 0x28], edi
mov eax, edi
pop edi
adc dword [esi + 0x2c], 0
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x5acb70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], 0
jmp 0x5acb90
mov eax, dword [esi + 0x40]
mov edi, 1
mov dword [ebp - 0xc], 0
cmp eax, 4
ja case.0x5acba8.0
jmp dword [eax*4 + 0x5acc90]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
add ecx, edi
adc eax, 0
cmp eax, dword [esi + 0x3c]
jb 0x5acbcc
ja 0x5acbc6
cmp ecx, dword [esi + 0x38]
jbe 0x5acbcc
mov edi, dword [esi + 0x38]
sub edi, dword [esi + 0x28]
mov edx, dword [esi + 8]
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je case.0x5acba8.0
mov edi, dword [ebp - 0xc]
add dword [esi + 0x28], edi
adc dword [esi + 0x2c], 0
jmp 0x5acc6a
mov ebx, dword [esi + 0x44]
mov eax, dword [esi + 0x4c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x5acc06
sub eax, ebx
mov edi, eax
push edi
lea edx, [ebp - 1]
push ebx
push edx
call fcn.0052d910
add esp, 0xc
add ebx, edi
mov dword [esi + 0x44], ebx
jmp 0x5acc6a
mov ebx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov ecx, ebx
add ecx, edi
adc eax, 0
cmp eax, dword [esi + 0x3c]
jb 0x5acc3b
ja 0x5acc34
cmp ecx, dword [esi + 0x38]
jbe 0x5acc3b
mov edi, dword [esi + 0x38]
sub edi, ebx
je case.0x5acba8.0
mov edx, dword [esi + 0x18]
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov eax, ebx
sub edx, ecx
cmp edx, eax
jbe 0x5acc85
add ecx, eax
push edi
push ecx
lea eax, [ebp - 1]
push eax
call fcn.0052d910
add esp, 0xc
mov ecx, edi
xor edx, edx
add ecx, ebx
adc edx, dword [esi + 0x2c]
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edx
rol byte [ebx], cl
retf
test edi, edi
je case.0x5acba8.0
add dword [ebp - 8], edi
cmp byte [ebp - 1], 0
jne 0x5acb90
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.invalid_vector_T__subscript
call fcn.0051b151
nop
jnp 0x5acc5e
pop edx
add byte [edi - 0xaffa535], ch
retf

Function at 0x5ad0b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cf09c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
xor esi, esi
push edi
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x30], esi
call fcn.00401210
mov edi, eax
mov eax, dword [esp + 8]
cmp eax, esi
je 0x5ad103
push eax
call fcn.0052d217
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5ad580
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce403
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x10]
mov edx, dword [eax + 8]
lea ebx, [edi + 0x10]
mov ecx, ebx
mov dword [ebp - 0x10], ebx
call edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 4]
push ecx
push eax
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x14], edx
mov dword [ebp + 0xc], eax
call fcn.004232c0
mov ecx, dword [edi + 0x34]
mov edx, 0x15555554
sub edx, ecx
cmp edx, 1
jae 0x5ad5f5
push str.list_T__too_long
call fcn.0051b104
inc ecx
mov dword [edi + 0x34], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], edi
mov edi, dword [edi + 0x30]
mov edi, dword [edi + 4]
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], 1
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x5ad640
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov dword [esi], vtable.CSplitSurfaceLoader.0
mov ecx, dword [esi + 0x30]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esi + 0x30]
mov dword [ecx + 4], ecx
mov dword [esi + 0x34], 0
cmp eax, dword [esi + 0x30]
je 0x5ad676
push edi
mov edi, dword [eax]
push eax
call fcn.0052d217
add esp, 4
mov eax, edi
cmp edi, dword [esi + 0x30]
jne 0x5ad663
pop edi
mov eax, dword [esi + 0x30]
push eax
call fcn.0052d217
add esp, 4
lea ecx, [esi + 0x14]
push ecx
mov dword [esi + 0x10], vtable.CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [esi + 0x10], vtable.CCriticalSectionBase.0
mov eax, dword [esi + 4]
mov dword [esi], vtable.CThread.0
test eax, eax
je 0x5ad6df
cmp byte [esi + 0xe], 0
jne 0x5ad6df
cmp byte [esi + 0xc], 0
mov byte [esi + 0xe], 1
je 0x5ad6be
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 4]
test eax, eax
je 0x5ad6df
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
pop esi
ret
Function at 0x5ad7c0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ce701
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
mov edx, dword [eax + 8]
lea ecx, [esi + 0x10]
call edx
cmp dword [esi + 0x34], 0
jne 0x5ad839
mov eax, dword [esi + 4]
test eax, eax
je 0x5ad813
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 0xe], 1
mov dword [esi + 4], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x44], 0
mov edx, dword [esi + 0x10]
mov eax, dword [edx + 0xc]
lea ecx, [esi + 0x10]
call eax
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x30]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x30]
push edi
mov edi, dword [eax + 8]
mov eax, dword [ecx]
mov dword [ebp - 0x10], edx
cmp eax, ecx
je 0x5ad872
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push eax
mov dword [ecx + 4], edx
call fcn.0052d217
add esp, 4
dec dword [esi + 0x34]
mov dword [edi + 0x14], 2
mov eax, dword [edi + 8]
test eax, eax
je 0x5ad88e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 8], eax
mov eax, dword [esi + 0x10]
mov edx, dword [eax + 0xc]
lea ecx, [esi + 0x10]
call edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 0x40]
mov eax, dword [edi]
push ecx
mov ecx, dword [esi + 0x3c]
push edx
mov edx, dword [ebp - 0x14]
push ecx
mov ecx, dword [esi + 0x2c]
lea ebx, [edi + 0x48]
push ebx
push edx
mov edx, dword [eax + 8]
push ecx
mov ecx, edi
call edx
test al, al
je 0x5ad8df
mov dword [edi + 0x14], 0
jmp 0x5ad914
mov esi, 0x10
mov dword [edi + 0x14], 3
cmp dword [ebx + 0x14], esi
jb 0x5ad8f4
mov eax, dword [ebx]
jmp 0x5ad8f6
mov eax, ebx
push eax
push 0x636d04
call fcn.00422d30
add esp, 8
cmp dword [ebx + 0x14], esi
jb 0x5ad90b
mov ebx, dword [ebx]
push ebx
call fcn.004265a0
add esp, 4
mov edi, dword [edi + 8]
test edi, edi
je 0x5ad922
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x5ad980
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
add eax, 4
cmp dword [edx + 0x10], 0
push edi
mov edi, 0x10
jne 0x5ad9d1
cmp dword [eax + 0x14], edi
jb 0x5ad9a4
mov eax, dword [eax]
cmp dword [esi + 0x14], edi
jb 0x5ad9ad
mov edx, dword [esi]
jmp 0x5ad9af
mov edx, esi
cmp dword [ecx + 0x14], edi
jb 0x5ad9b6
mov ecx, dword [ecx]
push eax
push pe_nt_image_headers32
push ebx
push 0x632807
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp dword [eax + 0x14], edi
jb 0x5ad9d8
mov eax, dword [eax]
cmp dword [edx + 0x14], edi
jb 0x5ad9df
mov edx, dword [edx]
cmp dword [esi + 0x14], edi
jb 0x5ad9e6
mov esi, dword [esi]
cmp dword [ecx + 0x14], edi
jb 0x5ad9ed
mov ecx, dword [ecx]
push eax
push pe_nt_image_headers32
push ebx
push edx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x5adcf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce456
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x10]
mov edx, dword [eax + 8]
lea ebx, [edi + 0x10]
mov ecx, ebx
mov dword [ebp - 0x10], ebx
call edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 4]
push ecx
push eax
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x14], edx
mov dword [ebp + 0xc], eax
call fcn.004232c0
mov ecx, dword [edi + 0x30]
mov edx, 0x15555554
sub edx, ecx
cmp edx, 1
jae 0x5add65
push str.list_T__too_long
call fcn.0051b104
inc ecx
mov dword [edi + 0x30], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
mov edi, dword [edi + 0x2c]
mov edi, dword [edi + 4]
mov dword [eax + 8], edi
mov dword [eax + 0x14], 1
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5addb0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov dword [esi], vtable.CSurfaceLoader.0
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esi + 0x2c]
mov dword [ecx + 4], ecx
mov dword [esi + 0x30], 0
cmp eax, dword [esi + 0x2c]
je 0x5adde6
push edi
mov edi, dword [eax]
push eax
call fcn.0052d217
add esp, 4
mov eax, edi
cmp edi, dword [esi + 0x2c]
jne 0x5addd3
pop edi
mov eax, dword [esi + 0x2c]
push eax
call fcn.0052d217
add esp, 4
lea ecx, [esi + 0x14]
push ecx
mov dword [esi + 0x10], vtable.CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [esi + 0x10], vtable.CCriticalSectionBase.0
mov eax, dword [esi + 4]
mov dword [esi], vtable.CThread.0
test eax, eax
je 0x5ade4f
cmp byte [esi + 0xe], 0
jne 0x5ade4f
cmp byte [esi + 0xc], 0
mov byte [esi + 0xe], 1
je 0x5ade2e
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 4]
test eax, eax
je 0x5ade4f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
pop esi
ret

Function at 0x5ade60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce473
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0xfffffffffffffff1
mov dword [esi], vtable.CThread.0
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov byte [esi + 0xe], bl
mov byte [esi + 0xc], 1
call fcn.0058a4b0
mov dword [ebp - 4], ebx
lea eax, [esi + 0x14]
mov dword [esi], vtable.CSurfaceLoader.0
push eax
mov dword [esi + 0x10], vtable.CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 1
push 0x14
mov dword [esi + 0x30], ebx
call fcn.0052d4ce
add esp, 4
cmp eax, ebx
je 0x5adeed
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x2c], eax
mov dword [eax], eax
mov eax, dword [esi + 0x2c]
mov dword [eax + 4], eax
mov byte [esi + 0x38], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
call fcn.0052d2bb
push 0x666d40
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.0052d54e
int3
Function at 0x5adf20
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ce713
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
mov edx, dword [eax + 8]
lea ecx, [esi + 0x10]
call edx
cmp dword [esi + 0x30], 0
jne 0x5adf99
mov eax, dword [esi + 4]
test eax, eax
je 0x5adf73
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 0xe], 1
mov dword [esi + 4], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x38], 0
mov edx, dword [esi + 0x10]
mov eax, dword [edx + 0xc]
lea ecx, [esi + 0x10]
call eax
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x2c]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x2c]
push edi
mov edi, dword [eax + 8]
mov eax, dword [ecx]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edx
cmp eax, ecx
je 0x5adfd5
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push eax
mov dword [ecx + 4], edx
call fcn.0052d217
add esp, 4
dec dword [esi + 0x30]
mov dword [edi + 0x14], 2
mov eax, dword [edi + 0x10]
test eax, eax
je 0x5adff1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x10]
mov edx, dword [eax + 0xc]
lea ecx, [esi + 0x10]
call edx
lea eax, [ebp - 0x18]
push eax
call fcn.005adb20
mov edi, dword [edi + 0x10]
add esp, 4
test edi, edi
je 0x5ae02e
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x5ae130
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce4ba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x10]
mov edx, dword [eax + 8]
lea ebx, [edi + 0x10]
mov ecx, ebx
mov dword [ebp - 0x10], ebx
call edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 4]
push ecx
push eax
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x14], edx
mov dword [ebp + 0xc], eax
call fcn.004232c0
mov ecx, dword [edi + 0x30]
mov edx, 0x15555554
sub edx, ecx
cmp edx, 1
jae 0x5ae1a5
push str.list_T__too_long
call fcn.0051b104
inc ecx
mov dword [edi + 0x30], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], edi
mov edi, dword [edi + 0x2c]
mov edi, dword [edi + 4]
mov dword [eax + 0xc], edi
mov dword [eax + 0x1c], 1
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x5ae1f0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov dword [esi], vtable.CWaveLoader.0
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esi + 0x2c]
mov dword [ecx + 4], ecx
mov dword [esi + 0x30], 0
cmp eax, dword [esi + 0x2c]
je 0x5ae226
push edi
mov edi, dword [eax]
push eax
call fcn.0052d217
add esp, 4
mov eax, edi
cmp edi, dword [esi + 0x2c]
jne 0x5ae213
pop edi
mov eax, dword [esi + 0x2c]
push eax
call fcn.0052d217
add esp, 4
lea ecx, [esi + 0x14]
push ecx
mov dword [esi + 0x10], vtable.CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [esi + 0x10], vtable.CCriticalSectionBase.0
mov eax, dword [esi + 4]
mov dword [esi], vtable.CThread.0
test eax, eax
je 0x5ae28f
cmp byte [esi + 0xe], 0
jne 0x5ae28f
cmp byte [esi + 0xc], 0
mov byte [esi + 0xe], 1
je 0x5ae26e
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 4]
test eax, eax
je 0x5ae28f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
pop esi
ret