joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009b70
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Self delete

Disassembly:
sub esp, 0x658
mov eax, dword [0x1008e060]
xor eax, esp
mov dword [esp + 0x654], eax
mov eax, dword [esp + 0x65c]
push 0x104
lea ecx, [esp + 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10009cc9
push 0x104
lea edx, [esp + 0x40]
push edx
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x10009cc9
push 0x104
lea ecx, [esp + 0x450]
push ecx
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x10009cc9
push ebx
push ebp
push esi
push edi
push str._c_del__
lea edx, [esp + 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x258]
push ecx
call esi
push str.____nul
lea edx, [esp + 0x258]
push edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor eax, eax
lea ecx, [esp + 0x45c]
lea edx, [esp + 0x254]
push 0x100
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], str.Open
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], 0x40
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0xf
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push eax
call ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x10009cb7
mov ecx, dword [esp + 0x48]
push 0x40
push ecx
call esi
mov edx, dword [esp + 0x48]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
push 0
lea eax, [esp + 0x50]
push eax
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp 0x10009cc5
push 0x20
call edi
push eax
call esi
push 0
call ebx
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x654]
xor ecx, esp
call fcn.1000c146
add esp, 0x658
ret
Function at 0x1000a240
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x444
mov eax, dword [0x1008e060]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push esi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x1c
lea eax, [esp + 0x20]
push eax
xor edi, edi
push fcn.10008f30
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
neg eax
sbb eax, eax
and eax, dword [esp + 0x20]
push 0x208
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push edi
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
add eax, 2
push eax
lea eax, [esp + 0x244]
push 0x1008aa14
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 0xc
lea ecx, [esp + 0x240]
push ecx
push edi
mov esi, 1
push esi
push edi
call ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000a2eb
mov dword [esp + 0x10], esi
push edi
push edi
push edi
push 0x10005510
push edi
push edi
call fcn.1000c62d
push 0x9ca0
mov dword [esp + 0x30], eax
call fcn.1000c752
add esp, 0x1c
cmp eax, edi
je 0x1000a316
call fcn.10004930
jmp 0x1000a318
xor eax, eax
mov dword [0x100c341c], eax
mov dword [esp + 0xc], esi
call fcn.10009520
mov esi, eax
cmp esi, edi
je 0x1000a345
mov edx, dword [0x100c341c]
mov eax, dword [edx + 0x40]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000a3d5
mov ecx, dword [0x100c341c]
cmp ecx, edi
je 0x1000a35d
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [0x100c341c], edi
push 0x9ca0
call fcn.1000c752
mov esi, eax
add esp, 4
cmp esi, edi
je 0x1000a3a6
call fcn.100026e0
push edi
push edi
push 1
push edi
mov dword [esi], vtable.CManager.0
call ebx
push edi
push edi
push 1
push edi
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], esi
mov dword [esi], vtable.CKernelManager.0
mov dword [esi + 0x9c9c], edi
mov dword [esi + 0x9c98], edi
call ebx
mov dword [esi + 0x54], eax
jmp 0x1000a3a8
xor esi, esi
mov dword [0x100c341c], esi
cmp dword [esp + 0xc], edi
je 0x1000a3ba
mov dword [esp + 0xc], edi
jmp 0x1000a3ce
call fcn.1000cc4f
cdq
mov ecx, 0x1d4c0
idiv ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10009520
mov esi, eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x10], edi
je 0x1000a43b
mov edx, dword [esp + 0x18]
push 0xa
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
neg eax
cmp eax, edi
jne 0x1000a328
mov ecx, dword [0x100c341c]
cmp ecx, edi
je 0x1000a419
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [0x100c341c], edi
mov eax, dword [esp + 0x14]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000c146
mov esp, ebp
pop ebp
ret
mov eax, dword [0x100c3420]
cmp eax, 3
je 0x1000a401
cmp eax, 1
jmp 0x1000a3fb
Function at 0x1000a450
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x984
mov eax, dword [0x1008e060]
xor eax, esp
mov dword [esp + 0x980], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, 2
push edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [esi]
push 0x1000a190
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerW]
lea ecx, [esp + 0x34]
push ecx
mov dword [0x100c3420], edi
mov dword [esp + 0x3c], edi
mov edi, dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
xor esi, esi
mov ebx, 0x3e8
push eax
mov dword [0x100c3418], eax
mov dword [esp + 0x3c], 0x10
mov dword [esp + 0x44], 5
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], ebx
call edi
mov eax, 4
lea edx, [esp + 0x18]
mov dword [0x100c3420], eax
mov dword [esp + 0x1c], eax
mov eax, dword [0x100c3418]
push edx
push eax
mov dword [esp + 0x20], 0x10
mov dword [esp + 0x28], 5
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], ebx
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push esi
push 1
push esi
call edi
push pe_nt_image_headers32
lea ecx, [esp + 0x58]
push esi
push ecx
mov dword [0x100c344c], eax
mov dword [esp + 0x5c], 0x114
call fcn.100113d0
add esp, 0xc
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x54], 6
jb 0x1000a661
push 0x1c
lea eax, [esp + 0x1c]
push eax
push fcn.10008f30
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
neg eax
sbb eax, eax
and eax, dword [esp + 0x1c]
push 0x208
lea ecx, [esp + 0x16c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push esi
lea edx, [esp + 0x170]
push edx
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
add eax, 2
push eax
lea eax, [esp + 0x374]
push 0x1008aa14
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x168]
push ecx
lea edx, [esp + 0x57c]
push str.rundll32.exe__s__Launch
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x370]
push eax
push esi
push 1
push esi
call edi
lea ecx, [esp + 0x578]
push ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
call fcn.10008f50
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
mov esi, eax
lea esp, [esp]
push 0x12c
call edi
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x10], 0x103
je 0x1000a639
push esi
call ebx
push 0xbb8
call edi
lea eax, [esp + 0x578]
push eax
call fcn.10008f50
add esp, 4
mov esi, eax
mov eax, dword [0x100c3420]
cmp eax, 3
je 0x1000a648
cmp eax, 1
jne 0x1000a600
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call ebx
jmp 0x1000a666
call sym.Server.dll_Launch
mov ecx, dword [0x100c344c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x98c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000c146
mov esp, ebp
pop ebp
ret
Function at 0x1000a6b0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x54], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], vtable.CShellManager.0
je 0x1000a742
mov eax, dword [esi + 0x70]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x6c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x6c]
push edx
call edi
mov eax, dword [esi + 0x64]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 0x54]
mov ebx, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x1000a6ff
push eax
call ebx
mov eax, dword [esi + 0x58]
test eax, eax
je 0x1000a709
push eax
call ebx
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x1000a713
push eax
call ebx
mov eax, dword [esi + 0x60]
test eax, eax
je 0x1000a71d
push eax
call ebx
mov ecx, dword [esi + 0x54]
push ecx
call edi
mov edx, dword [esi + 0x58]
push edx
call edi
mov eax, dword [esi + 0x5c]
push eax
call edi
mov ecx, dword [esi + 0x60]
push ecx
call edi
mov edx, dword [esi + 0x64]
push edx
call edi
mov eax, dword [esi + 0x68]
push eax
call edi
pop ebx
mov ecx, dword [esi + 0x50]
push ecx
mov dword [esi], vtable.CManager.0
call edi
pop edi
mov dword [esi + 0x4c], 0
mov ecx, esi
pop esi
jmp fcn.100027a0
Function at 0x1000ac00
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0x1000b0c0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 4]
mov ecx, eax
cmp eax, 4
jbe 0x1000ac58
mov edx, dword [esp]
mov dword [edx], 1
mov eax, dword [esp]
push esi
mov esi, eax
test eax, eax
je 0x1000ac57
push ecx
push eax
call fcn.10002d80
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
add esp, 8
ret
Function at 0x1000ac60
Capabilities:
Acquire debug privileges
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000acd1
lea ecx, [esp + 0x1c]
push ecx
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 0x10]
push 0
push 0
push 0x10
lea edx, [esp + 0x24]
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
push ecx
call edi
xor esi, esi
cmp dword [ebp + 0x10], esi
jbe 0x1000ad02
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + edx]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call edi
add esi, 4
cmp esi, dword [ebp + 0x10]
jb 0x1000acd8
lea ecx, [esp + 0x10]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000ad61
lea edx, [esp + 0x1c]
push edx
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0x10
lea eax, [esp + 0x24]
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x10]
push edx
call edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0
call fcn.1000ae00
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, eax
test esi, esi
je 0x1000ada1
mov ecx, dword [esp + 0x10]
mov ebx, dword [ebp + 8]
push ecx
push esi
call fcn.10002d80
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
lea edx, [esp + 0x10]
push edx
xor ebx, ebx
push 0x1000b0c0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esp + 0x14]
cmp ecx, 4
jbe 0x1000adee
mov eax, dword [esp + 0x10]
mov dword [eax], 1
mov eax, dword [esp + 0x10]
mov esi, eax
cmp eax, ebx
je 0x1000adee
mov ebx, dword [ebp + 8]
push ecx
push eax
call fcn.10002d80
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000b1f0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push ebx
mov ebx, eax
push 4
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 3
call fcn.10002d80
mov ecx, dword [ebx + 0x40]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1000b29f
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CancelIo]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [esp + 0x1c]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1000b28c
mov eax, dword [ebx + 0x40]
push eax
call esi
push 4
lea eax, [esp + 0x14]
push eax
mov ecx, 1
push 0x80
mov word [esp + 0x1c], cx
mov ecx, dword [ebx + 0x34]
push 0xffff
xor edx, edx
push ecx
mov word [esp + 0x26], dx
call edi
mov edx, dword [ebx + 0x34]
push edx
call ebp
mov eax, dword [ebx + 0x34]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 0x34], 0xffffffff
mov ecx, dword [ebx + 0x40]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000b233
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x1000b4d0
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push ebp
mov ebx, ecx
cmp dword [ebx + 0xa8], 0
push esi
push edi
mov dword [ebx], vtable.CVoice.0
je 0x1000b533
mov eax, dword [ebx + 0x88]
push eax
call dword [sym.imp.WINMM.dll_waveInReset]
mov ebp, dword [sym.imp.WINMM.dll_waveInUnprepareHeader]
lea esi, [ebx + 8]
mov edi, 8
mov ecx, dword [esi]
mov edx, dword [ebx + 0x88]
push 0x20
push ecx
push edx
call ebp
add esi, 4
sub edi, 1
jne 0x1000b501
mov eax, dword [ebx + 0x88]
push eax
call dword [sym.imp.WINMM.dll_waveInClose]
mov ecx, dword [ebx + 0x9c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [ebx + 0xac], 0
je 0x1000b592
mov edx, dword [ebx + 0xa4]
push edx
call dword [sym.imp.WINMM.dll_waveOutReset]
mov ebp, dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
lea esi, [ebx + 8]
mov edi, 8
jmp 0x1000b560
mov eax, dword [esi]
mov ecx, dword [ebx + 0xa4]
push 0x20
push eax
push ecx
call ebp
add esi, 4
sub edi, 1
jne 0x1000b560
mov edx, dword [ebx + 0xa4]
push edx
call dword [sym.imp.WINMM.dll_waveOutClose]
mov eax, dword [ebx + 0xa0]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
lea esi, [ebx + 8]
mov dword [esp + 0x10], 8
lea esp, [esp]
mov ecx, dword [esi + 0x20]
push ecx
call edi
push eax
call ebp
mov edx, dword [esi + 0x20]
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esi]
push eax
call edi
push eax
call ebp
mov ecx, dword [esi]
push ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esi + 0x60]
push edx
call edi
push eax
call ebp
mov eax, dword [esi + 0x60]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esi + 0x40]
push ecx
call edi
push eax
call ebp
mov edx, dword [esi + 0x40]
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
add esi, 4
sub dword [esp + 0x10], 1
jne 0x1000b5b0
mov eax, dword [ebx + 0x94]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebx + 0x98]
push ecx
call esi
mov edx, dword [ebx + 0x9c]
push edx
call esi
mov eax, dword [ebx + 0xa0]
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1000b820
Capabilities:
Capture microphone audio
Create thread

Disassembly:
push ebp
mov ebp, dword [esp + 8]
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
test eax, eax
jne 0x1000b833
pop ebp
ret 4
mov eax, dword [ebp + 0xb0]
push esi
push edi
mov edi, dword [sym.imp.WINMM.dll_waveInOpen]
push 1
push 0
push 0
lea esi, [ebp + 0xb4]
push esi
push eax
push 0
mov dword [esp + 0x28], 0
call edi
test eax, eax
je 0x1000b867
pop edi
pop esi
xor eax, eax
pop ebp
ret 4
push ebx
lea ecx, [esp + 0x14]
push ecx
push 0
push ebp
push 0x1000b6c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esp + 0x14]
push 0x20000
push 0
push edx
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xb0]
push esi
push eax
lea ebx, [ebp + 0x88]
push ebx
call edi
test eax, eax
je 0x1000b8af
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret 4
xor edi, edi
lea esi, [ebp + 8]
mov ecx, dword [esi]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov ecx, dword [esi]
mov edx, dword [esi + 0x20]
mov dword [ecx], edx
mov eax, dword [esi]
mov ecx, dword [ebp + 4]
mov dword [eax + 4], ecx
mov edx, dword [esi]
mov dword [edx + 0xc], edi
mov eax, dword [esi]
mov ecx, dword [ebx]
push 0x20
push eax
push ecx
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
mov edx, dword [esi]
mov eax, dword [ebx]
push 0x20
push edx
push eax
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
inc edi
add esi, 4
cmp edi, 8
jl 0x1000b8b4
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.WINMM.dll_waveInStart]
pop ebx
pop edi
mov eax, 1
pop esi
mov dword [ebp + 0xa8], eax
pop ebp
ret 4
Function at 0x1000b930
Capabilities:
Create thread

Disassembly:
push ecx
call dword [sym.imp.WINMM.dll_waveOutGetNumDevs]
test eax, eax
jne 0x1000b93d
pop ecx
ret
push ebx
push esi
lea esi, [edi + 0x68]
mov ebx, 8
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
push 0
push ecx
call fcn.100113d0
add esp, 0xc
add esi, 4
sub ebx, 1
jne 0x1000b947
mov edx, dword [edi + 0xb0]
push ebp
mov ebp, dword [sym.imp.WINMM.dll_waveOutOpen]
push 1
push ebx
push ebx
lea esi, [edi + 0xb4]
push esi
push edx
push ebx
mov dword [esp + 0x24], ebx
call ebp
test eax, eax
jne 0x1000b9bf
lea eax, [esp + 0xc]
push eax
push ebx
push edi
push 0x1000b7a0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0xc]
mov edx, dword [edi + 0xb0]
push 0x20000
push 0
push ecx
push esi
push edx
lea ebx, [edi + 0xa4]
push ebx
mov dword [edi + 0xa0], eax
call ebp
test eax, eax
je 0x1000b9c6
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
lea esi, [edi + 0x48]
mov ebp, 8
mov edi, edi
mov ecx, dword [esi]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov eax, dword [esi]
mov ecx, dword [esi + 0x20]
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi]
mov edx, dword [ebx]
push 0x20
push ecx
push edx
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
add esi, 4
sub ebp, 1
jne 0x1000b9d0
pop ebp
mov eax, 1
pop esi
mov dword [edi + 0xac], eax
pop ebx
pop ecx
ret
Function at 0x1000baa0
Capabilities:
Create thread
Set socket configuration

Disassembly:
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
test eax, eax
je 0x1000bbd5
push 0xc8
call fcn.1000c752
mov esi, eax
add esp, 4
xor eax, eax
test esi, esi
je 0x1000bacc
call fcn.1000b390
mov dword [edi + 0x54], eax
lea eax, [esp + 0xc]
push eax
push 0
xor ebx, ebx
mov dword [esp + 0x14], 0
call fcn.10006450
mov ebp, dword [esp + 0x14]
add ebp, 4
push ebp
call fcn.1000c752
add esp, 0xc
mov esi, eax
push ebx
lea ecx, [ebp - 4]
push ecx
lea ebx, [esi + 4]
call fcn.10006450
add esp, 8
push ebp
push esi
mov ebx, edi
mov dword [esi], 6
call fcn.10002d80
push esi
call fcn.1000c4c5
mov edx, dword [edi + 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 4
push 0xffffffffffffffff
push edx
call esi
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push edi
push 0x1000beb0
push 0
push 0
call fcn.1000c62d
add esp, 0x18
mov dword [edi + 0x5c], eax
mov eax, dword [edi + 0x40]
push 0
push eax
call esi
test eax, eax
je 0x1000bbd5
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebp, dword [sym.imp.WS2_32.dll_setsockopt]
lea esp, [esp]
mov ecx, dword [esp + 0x14]
push 1
push ecx
call esi
cmp eax, 0x102
je 0x1000bbc9
mov edx, dword [edi + 0x40]
push edx
call ebx
push 4
lea edx, [esp + 0x10]
push edx
mov eax, 1
push 0x80
mov word [esp + 0x18], ax
mov eax, dword [edi + 0x34]
push 0xffff
xor ecx, ecx
push eax
mov word [esp + 0x22], cx
call ebp
mov ecx, dword [edi + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov edx, dword [edi + 0x34]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0x34], 0xffffffff
mov eax, dword [edi + 0x40]
push 0
push eax
call esi
test eax, eax
jne 0x1000bb70
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x1000be1e
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx]
push edi
mov edi, ecx
cmp eax, 3
ja case.default.0x1000bdc4
push esi
jmp dword [eax*4 + 0x1000be98]
mov eax, dword [edi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
pop edi
pop ebx
ret 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffffc
add ebx, 4
push edi
call fcn.1000bd50
pop esi
pop edi
pop ebx
ret 8
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push ecx
or esi, 0xffffffff
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], esi
call fcn.10006540
add esp, 8
cmp dword [edi + 0x64], esi
jne 0x1000be8f
mov eax, dword [esp + 0x10]
pop esi
mov dword [edi + 0x64], eax
pop edi
pop ebx
ret 8
mov ecx, dword [edi + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [edi + 0x5c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi + 0x54]
test ecx, ecx
je 0x1000be54
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [edi + 0x54], 0
push 0xc8
call fcn.1000c752
mov esi, eax
add esp, 4
test esi, esi
je 0x1000be71
mov eax, dword [ebx + 4]
call fcn.1000b390
jmp 0x1000be73
xor eax, eax
push 0
push 0
push edi
push 0x1000beb0
push 0
push 0
mov dword [edi + 0x54], eax
call fcn.1000c62d
add esp, 0x18
mov dword [edi + 0x5c], eax
pop esi
pop edi
pop ebx
ret 8

Function at 0x1000c146
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1008e060]
jne 0x1000c150
repz ret
jmp fcn.1000cebf