joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69e878
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x76f950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor eax, eax
cmp byte [ebp + 0x10], al
sete al
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
test edi, edi
je 0x440107
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x44011b
push 0
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleW]
call esi
push 0
lea eax, [ebp + 0x10]
push eax
push 1
push 0x6e6b0c
push edi
call 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 0xc
mov esi, dword [ebp + 8]
test esi, esi
jne 0x440126
xor ebx, ebx
jmp 0x440141
cmp word [esi], 0
jne 0x440130
xor ebx, ebx
jmp 0x440141
call fcn.004df4c0
mov ebx, eax
push 0xffffffffffffffff
push esi
mov ecx, ebx
call fcn.0040bb30
mov dword [ebp + 0x10], ebx
mov dword [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.004db020
mov dword [ebp + 8], eax
lea esi, [eax + 1]
push esi
call fcn.00632c9c
add esp, 4
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
push esi
push ebx
lea ecx, [ebp + 0x10]
call fcn.004db070
mov dword [ebp - 4], 0
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push ebx
push edi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
push 0
lea eax, [ebp + 0xc]
push eax
push 1
push 0x6e6b24
push edi
call esi
push ebx
call fcn.00634397
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x440107
mov ecx, dword [eax]
test ecx, ecx
jne 0x4401db
mov ecx, eax
call fcn.004df580
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
dec ecx
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x440650
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebx + 0xc]
cmp ecx, esi
je 0x44066b
push 0xffffffffffffffff
push 0
push esi
call fcn.0040ad70
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x4406c7
cmp dword [esi + 0x14], 8
mov eax, dword [ecx]
push edi
mov dword [ebp + 8], eax
lea edi, [eax + 0x54]
jb 0x44068c
mov eax, dword [esi]
jmp 0x44068e
mov eax, esi
push dword [esi + 0x10]
push eax
push dword [edi + 0x10]
push ecx
mov ecx, edi
call fcn.00422c90
test eax, eax
je 0x4406c6
cmp edi, esi
je 0x4406b1
push 0xffffffffffffffff
push 0
push esi
mov ecx, edi
call fcn.0040ad70
cmp dword [edi + 0x14], 8
jb 0x4406b9
mov edi, dword [edi]
mov eax, dword [ebp + 8]
push edi
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
cmp byte [ebx + 0x24], 0
je 0x4406dc
cmp dword [esi + 0x14], 8
jb 0x4406d5
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4478f0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69f5b3
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x76f950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
push ecx
call fcn.004e7a50
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebx + 0x14]
mov dword [ebx], vtable.tTVPEmergencyExitThread.0
call fcn.004e7cc0
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4479ba
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
xor ecx, ecx
mov eax, 1
test esi, eax
jne 0x447991
rol eax, 1
inc ecx
cmp ecx, 0x1f
jle 0x447985
inc ecx
mov edx, 1
rol edx, cl
cmp ecx, 0x1f
jg 0x4479b0
mov edi, 0x20
sub edi, ecx
mov eax, edx
rol edx, 1
not eax
and esi, eax
dec edi
jne 0x4479a5
push esi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebx + 8]
call esi
cmp eax, 1
jg 0x4479c0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a000
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69f738
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x76f950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x44a03e
mov eax, dword [edi]
jmp 0x44a040
mov eax, edi
xor ecx, ecx
mov word [eax], cx
push dword [ebx + 0x38]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x44a0f1
lea esi, [eax + 1]
lea eax, [ebp + 8]
push eax
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp + 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.0044ac40
mov dword [ebp - 4], 0
push esi
mov esi, dword [ebp - 0x18]
push esi
push dword [ebx + 0x38]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x44a0c8
cmp word [esi], 0
jne 0x44a0a5
xor ecx, ecx
jmp 0x44a0bf
mov ecx, esi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44a0b0
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.0040ae70
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x44a0f1
push esi
call fcn.00633f98
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x44a740
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0x8a], 0
je 0x44a75f
mov dword [esi + 0x8c], 2
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov eax, dword [eax + 0x20]
call eax
test al, al
je 0x44a7be
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
mov ecx, esi
mov dword [ebp - 4], 2
call dword [eax + 0x1c]
mov eax, dword [ebp - 4]
sub eax, 0
je 0x44a7be
dec eax
je 0x44a7b3
sub eax, 2
je 0x44a7a3
push 0
push 0
push 0x8008
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
mov esp, ebp
pop ebp
ret
push 6
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov esp, ebp
pop ebp
ret
push 0
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44b7f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push 0x17
lea esi, [ebx + 1]
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 2
test eax, eax
cmovne esi, ecx
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x17
shr eax, 0xf
and al, 1
mov eax, 8
cmovne ebx, eax
lea esi, [eax - 6]
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 1
test eax, eax
cmovne esi, ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
call esi
shr eax, 0xf
and al, 1
je 0x44b849
or ebx, 0x10
push 4
call esi
shr eax, 0xf
and al, 1
je 0x44b857
or ebx, 0x20
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44cd50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 0x10
xor edi, edi
call ebx
push 0x12
shr eax, 0xf
and al, 1
mov eax, 1
cmovne edi, eax
call ebx
shr eax, 0xf
and al, 1
je 0x44cd7d
add edi, 2
push 0x11
call ebx
shr eax, 0xf
and al, 1
je 0x44cd8b
add edi, 4
push esi
push 0x17
mov esi, 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 2
test eax, eax
cmovne esi, ecx
push esi
call ebx
shr eax, 0xf
and al, 1
je 0x44cdb0
add edi, 8
push 0x17
mov esi, 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
mov eax, 1
cmovne esi, eax
push esi
call ebx
pop esi
shr eax, 0xf
and al, 1
je 0x44cdd5
add edi, 0x10
push 4
call ebx
shr eax, 0xf
and al, 1
lea eax, [edi + 0x20]
jne 0x44cde5
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44e090
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0xa0], 0
je 0x44e0bb
xor eax, eax
cmp byte [ebp + 8], al
mov ecx, 5
cmovne eax, ecx
push eax
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 4
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x44e107
push 0xffffffffffffffec
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x44e117
push 0x53
shr eax, 3
push 0
and al, 1
push 0
movzx eax, al
push 0
neg eax
push 0
sbb eax, eax
push eax
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 4
push 0
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 4
call fcn.00451f20
int3
Function at 0x44e230
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
cmp dword [esi + 0x8c], eax
setne al
mov dword [ecx], eax
cmp byte [esi + 0x1791], 0
je 0x44e2b0
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x44e2b0
cmp dword [0x77e36c], eax
je 0x44e267
mov dword [ecx], 2
cmp dword [0x77a748], esi
je 0x44e27a
push 0
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xe0]
add eax, 8
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov ecx, dword [esi + 0xe0]
push eax
push 0
push 0
mov dword [ecx + 0x68], 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x38]
add esp, 0x18
mov dword [esi + 0xe0], 0
pop esi
pop ebp
ret 4

Function at 0x44e500
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0x1791], 0
jne 0x44e587
cmp byte [ebp + 8], 0
je 0x44e57b
cmp byte [esi + 0x8a], 0
je 0x44e52a
mov dword [esi + 0x8c], 1
jmp 0x44e535
push 0
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xe0]
mov byte [esi + 0x1790], 0
test eax, eax
je 0x44e56d
cmp dword [0x77e36c], eax
jne 0x44e590
mov ecx, dword [eax + 8]
add eax, 8
push eax
call dword [ecx + 0x40]
mov ecx, dword [eax]
push eax
push 0
push 0
push 0
push eax
call dword [ecx + 0x38]
add esp, 0x18
pop esi
pop ebp
ret 4
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0xc]
pop esi
pop ebp
ret 4
mov byte [esi + 0x1790], 0
pop esi
pop ebp
ret 4
mov al, byte [ebp + 8]
mov byte [esi + 0x1792], al
pop esi
pop ebp
ret 4
Function at 0x44f580
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x76f950]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [ebx + 0x38], eax
jne 0x44f6ba
push esi
push edi
mov ecx, ebx
call fcn.0044f4a0
cmp byte [0x770ced], 0
mov esi, eax
je 0x44f61d
mov ecx, dword [ebx + 0x94]
call fcn.0044b5f0
mov eax, dword [esi + 0x144]
push 0
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
call dword [sym.imp.IMM32.dll_ImmIsIME]
test eax, eax
je 0x44f5fb
mov edi, dword [ebx + 0x94]
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x44f5fb
push eax
push dword [edi]
call dword [sym.imp.IMM32.dll_ImmAssociateContext]
mov dword [edi + 4], 0xffffffff
mov eax, dword [ebp - 0x24]
cmp eax, 0xb
ja 0x44f60c
mov ecx, eax
call fcn.0044f500
jmp 0x44f611
mov eax, 3
mov ecx, dword [ebx + 0x94]
push eax
call fcn.0044b6b0
cmp byte [esi + 0x160], 0
je 0x44f6b8
push dword [esi + 0x168]
push dword [esi + 0x164]
call dword [sym.imp.USER32.dll_SetCaretPos]
cmp esi, ebx
jne 0x44f69f
mov eax, dword [ebx + 0x164]
mov edi, dword [ebx + 0x94]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x168]
push dword [edi]
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x18], eax
call dword [sym.imp.IMM32.dll_ImmGetContext]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.IMM32.dll_ImmSetCompositionWindow]
push esi
push dword [edi]
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
push dword [ebx + 0x16c]
mov ecx, dword [ebx + 0x94]
call fcn.0044b640
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00633732
mov esp, ebp
pop ebp
ret
mov esi, dword [ebx + 0x94]
cmp dword [esi + 4], 0xffffffff
jne 0x44f6b8
push 0
push dword [esi]
call dword [sym.imp.IMM32.dll_ImmAssociateContext]
mov dword [esi + 4], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00633732
mov esp, ebp
pop ebp
ret

Function at 0x450ed0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ecx + 0x38]
mov ecx, dword [0x77a6c8]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
sub eax, edx
sar eax, 2
cmp byte [ebp + 8], 0
je 0x450f17
test eax, eax
je 0x450ef8
mov eax, dword [edx]
mov eax, dword [eax + 0x38]
jmp 0x450efb
or eax, 0xffffffff
cmp esi, eax
jne 0x450f6b
mov byte [ecx + 0x4d], 1
call fcn.00578e10
call fcn.0046e530
call fcn.00432f90
pop esi
pop ebp
ret 8
test eax, eax
je 0x450f22
mov eax, dword [edx]
mov eax, dword [eax + 0x38]
jmp 0x450f25
or eax, 0xffffffff
cmp esi, eax
jne 0x450f6b
cmp byte [0x77e326], 0
mov byte [ecx + 0x4d], 0
je 0x450f57
cmp byte [0x77e325], 0
je 0x450f57
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
push 6
push dword [0x77e338]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, 0xa
call fcn.00404ce0
call fcn.0046e530
call fcn.00433070
pop esi
pop ebp
ret 8
Function at 0x456540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a0df0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x76f950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 2
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x456591
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x6ec608
push str.IDR_OPTION_DESC_JSON
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4565cf
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4565cf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x4565d1
xor eax, eax
mov edx, ebx
mov ecx, eax
call fcn.004563a0
mov edi, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e7f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a19e8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x76f950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx], vtable.tTVPWaveDecoder.0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebx], vtable.tTVPWD_RIFFWave.0
mov dword [ebx + 4], ecx
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x34], esi
movq xmm0, qword [edx]
movq qword [ebx + 8], xmm0
movq xmm0, qword [edx + 8]
movq qword [ebx + 0x10], xmm0
movq xmm0, qword [edx + 0x10]
movq qword [ebx + 0x18], xmm0
movq xmm0, qword [edx + 0x18]
movq qword [ebx + 0x20], xmm0
movq xmm0, qword [edx + 0x20]
movq qword [ebx + 0x28], xmm0
mov eax, dword [edx + 0xc]
imul eax, dword [edx + 4]
push esi
push edi
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
call fcn.00476930
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46b500
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6a2cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x76f950]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x76f950]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ecx + 4]
mov esi, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x46b584
call fcn.004df4c0
mov esi, eax
push 0xffffffffffffffff
push str.ITSSWaveDecoder::GetFormat_failed.
mov ecx, esi
call fcn.0040bb30
mov dword [esp + 8], esi
mov dword [esp + 0x48], 0
mov eax, dword [0x7892d8]
mov ecx, dword [0x7892d4]
test eax, eax
cmovne ecx, eax
lea edx, [esp + 8]
call fcn.00452a00
mov eax, dword [esp + 0xc]
mov dword [esi], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x14]
cmp eax, 0x10000
jb 0x46b5a7
mov byte [esi + 0x24], 1
add eax, 0xffff0000
jmp 0x46b5ab
mov byte [esi + 0x24], 0
mov dword [esi + 8], eax
shr eax, 3
cmp dword [esp + 0x18], 0
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x18], eax
setne al
mov dword [esi + 0x1c], 0
mov byte [esi + 0x25], al
mov dword [esi + 0x20], 0
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00633732
mov esp, ebp
pop ebp
ret 4
Function at 0x46dc60
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ab983
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x76f950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push ecx
call fcn.004e7a50
mov dword [ebp - 4], 0
push ecx
lea ecx, [esi + 0x14]
mov dword [esi], vtable.tTVPWaveSoundBufferThread.0
call fcn.004e7cc0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x28]
mov dword [ecx + 4], 0
mov dword [ecx], vtable.NativeEventQueue_class_tTVPWaveSoundBufferThread_.0
mov dword [ecx + 0x38], 0x46de00
mov dword [ecx + 0x3c], esi
mov eax, dword [ecx]
call dword [eax + 4]
push 5
push 0
mov ecx, esi
mov word [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.004e7bf0
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [esi + 8]
call edi
cmp eax, 1
jg 0x46dcf0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46dd50
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a2973
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x76f950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.tTVPWaveSoundBufferThread.0
mov dword [ebp - 4], 1
push 3
push 0
call fcn.004e7bf0
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov byte [edi + 4], 1
lea ebx, [ebx]
push dword [edi + 8]
call esi
cmp eax, 1
jg 0x46dda0
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x28]
lea ecx, [edi + 0x28]
call dword [eax + 8]
mov byte [ebp - 4], 0
push dword [edi + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x14], vtable.tTVPThreadEvent.0
call esi
mov dword [ebp - 4], 0xffffffff
push dword [edi + 8]
mov dword [edi], vtable.tTVPThread.0
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46e1a0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b1e48
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x76f950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [0x77adf4]
push 0x789b30
mov dword [ebp - 0x14], 0x789b30
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov esi, dword [0x789b24]
mov eax, dword [0x789b20]
mov edi, esi
sub edi, eax
xor edx, edx
sar edi, 2
cmp eax, esi
je 0x46e213
nop
mov ecx, dword [eax]
cmp byte [ecx + 0x138], 0
jne 0x46e20c
inc edx
add eax, 4
cmp eax, esi
jne 0x46e200
cmp edx, edi
jne 0x46e2c4
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp byte [0x770cee], 0
je 0x46e2c4
cmp dword [0x77ae2c], 0
je 0x46e2c4
mov esi, dword [0x77ae10]
test esi, esi
je 0x46e2c4
cmp byte [esi + 0x3c], 0
mov edi, dword [sym.imp.USER32.dll_SetTimer]
mov ebx, dword [sym.imp.USER32.dll_KillTimer]
je 0x46e28f
push 1
push dword [esi]
mov byte [esi + 0x3c], 0
call ebx
mov eax, dword [esi + 0x38]
test eax, eax
jle 0x46e289
cmp byte [esi + 0x3c], 0
je 0x46e289
cmp dword [esi + 0x34], 0
je 0x46e289
push 0
push eax
push 1
push dword [esi]
call edi
test eax, eax
jne 0x46e289
call fcn.00451f20
mov esi, dword [0x77ae10]
cmp byte [esi + 0x3c], 1
je 0x46e2c4
push 1
push dword [esi]
mov byte [esi + 0x3c], 1
call ebx
mov eax, dword [esi + 0x38]
test eax, eax
jle 0x46e2c4
cmp byte [esi + 0x3c], 0
je 0x46e2c4
cmp dword [esi + 0x34], 0
je 0x46e2c4
push 0
push eax
push 1
push dword [esi]
call edi
test eax, eax
jne 0x46e2c4
call fcn.00451f20
mov dword [ebp - 4], 0xffffffff
push 0x789b30
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46e6b0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a28be
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x76f950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.tTVPWaveSoundBufferDecodeThread.0
mov dword [ebp - 4], 2
mov eax, dword [0x772be4]
cmp eax, 6
ja 0x46e6fb
push eax
push 0
call fcn.004e7bf0
jmp 0x46e706
push 0
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov byte [edi + 0x38], 0
mov byte [edi + 4], 1
push dword [edi + 8]
call esi
cmp eax, 1
jg 0x46e714
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 4], 1
lea eax, [edi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [ebp - 4], 0
push dword [edi + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x18], vtable.tTVPThreadEvent.0
call esi
mov dword [ebp - 4], 0xffffffff
push dword [edi + 8]
mov dword [edi], vtable.tTVPThread.0
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret