joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7d4730
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x883290
call fcn.0080fcf4
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x7d4755
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x7d47a7
call fcn.007cff5d
push eax
lea ecx, [ebp - 0x10]
call fcn.004a89f0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0080358d
push eax
call fcn.004a8180
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004a8380
mov eax, esi
call fcn.0080fdcc
ret 8

Function at 0x7da17b
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.007d9cce
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x7da1c5
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00534890
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004b0180
jmp 0x7da1d0
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.007d8d9f
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x7da1d6
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.007d3fdc
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x7da213
call fcn.007d9cce
mov dword [esi + 0xc], 1
jmp 0x7da218
call fcn.007d9cce
cmp dword [esi], 0
je 0x7da261
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x7da239
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00534890
jmp 0x7da24b
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004a8cd0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004b0180
jmp 0x7da285
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x7da285
push dword [esi]
push dword [ebp + 8]
call fcn.007d8d9f
pop esi
pop ebp
ret 0xc
Function at 0x7dacf7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.007c9a2f
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x7dad30
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.007da934
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x7dad8e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x7dadb2
cmp dword [edi + 0x74], 0
jne 0x7dadb2
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.007c9a2f
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.007dad4f
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x7dc993
Capabilities:
Connect socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 8

Function at 0x7dd801
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x8ce6f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push 0
push eax
mov esi, ecx
call fcn.00802690
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
mov dword [ebp - 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
test esi, esi
je 0x7dd876
push dword [ebp - 0x12]
call dword [sym.imp.WS2_32.dll_ntohs]
push dword [ebp - 0x10]
movzx eax, ax
mov dword [ebx], eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.004b10a0
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0080262b
leave
ret 8
Function at 0x7e0a2c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x7e0a44
mov edi, dword [esi + 0xc]
jmp 0x7e0a84
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x7e0a5d
call fcn.007d26d1
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x7e0a72
call fcn.007d26d1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x7e0a84
call fcn.007d26d1
call fcn.007c9a2f
cmp dword [eax + 0x3c], 0
je 0x7e0a99
push edi
mov ecx, ebx
call fcn.007df8d0
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.007e0946
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x7e0ab7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x7e0ac3
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x7e64f5
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], 0x4790f0
test eax, eax
jne 0x7e6520
call fcn.007c9a2f
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x7e6543
push eax
push dword [esi + 4]
call fcn.007e647b
push esi
push eax
mov ecx, 0xa5d3ac
call fcn.007e613e
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x7eb3f5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x8ce6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x7eb43a
push 0x479b90
push 4
push eax
call fcn.00802cbc
push eax
call fcn.004a8180
add esp, 0x10
jmp 0x7eb450
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x7eb4d0
push edi
call fcn.0080fe5b
mov edi, dword [eax]
call fcn.0080fe5b
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00803678
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0080fe5b
cmp dword [eax], 0
je 0x7eb4a4
call fcn.0080fe5b
push dword [eax]
call fcn.007c88fc
pop ecx
jmp 0x7eb4ab
call fcn.0080fe5b
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x7eb4d0
cmp dword [ebp - 0x234], esi
jae 0x7eb4d0
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x7eb4d2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0080262b
leave
ret
Function at 0x7eb971
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x8ce6f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push 0x479e48
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.004a9380
pop ecx
cmp eax, esi
je 0x7eba5b
push 0x479ea0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x7eba5b
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00802690
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x7eba5b
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x7eba5b
cmp esi, 0x14
jge 0x7eba5b
push 0x10
push 0
push edi
call fcn.00803f5c
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x7eba4a
call fcn.0080fe5b
cmp dword [eax], 0x22
je 0x7eba4a
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0080fdfe
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x7eba20
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0xa5d3f4], 0
jne 0x7ebae6
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x7ebb0f
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.007eb3f5
pop ecx
pop ecx
test eax, eax
jne 0x7ebb11
inc edi
cmp edi, esi
jl 0x7ebaec
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0080262b
leave
ret 8

Function at 0x80262b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x8ce6f4]
jne 0x802635
repz ret
jmp fcn.00813d3c
Function at 0x80ab62
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x80ab89
call fcn.0080fe6e
mov dword [eax], esi
call fcn.0080fe5b
push 0x16
pop esi
mov dword [eax], esi
call fcn.008122a3
mov eax, esi
jmp 0x80abde
test dword [ebp + 0xc], 0xfffffff9
jne 0x80ab6f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x80abb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0080fe81
pop ecx
call fcn.0080fe5b
mov eax, dword [eax]
jmp 0x80abde
test al, 0x10
jne 0x80abdc
test al, 1
je 0x80abdc
test byte [ebp + 0xc], 2
je 0x80abdc
call fcn.0080fe6e
mov dword [eax], 5
call fcn.0080fe5b
mov dword [eax], 0xd
jmp 0x80abad
xor eax, eax
pop esi
pop ebp
ret

Function at 0x825a31
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x8ce6f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00811b3f
and dword [ebp - 0x14], 0
cmp dword [0xa5e590], 0
mov dword [ebp - 0x18], eax
jne 0x825ae4
push 0x4894c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x825b8c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4894b8
push ebx
call edi
test eax, eax
je 0x825b8c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4894a8
push ebx
mov dword [0xa5e590], eax
call edi
push eax
call esi
push 0x489494
push ebx
mov dword [0xa5e594], eax
call edi
push eax
call esi
push 0x489478
push ebx
mov dword [0xa5e598], eax
call edi
push eax
call esi
mov dword [0xa5e5a0], eax
test eax, eax
je 0x825ae4
push 0x489460
push ebx
call edi
push eax
call esi
mov dword [0xa5e59c], eax
mov eax, dword [0xa5e59c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x825b3d
cmp dword [0xa5e5a0], ecx
je 0x825b3d
push eax
call esi
push dword [0xa5e5a0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x825b3d
test ebx, ebx
je 0x825b3d
call edi
test eax, eax
je 0x825b34
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x825b34
test byte [ebp - 8], 1
jne 0x825b3d
or dword [ebp + 0x10], 0x200000
jmp 0x825b70
mov eax, dword [0xa5e594]
cmp eax, dword [ebp - 0x18]
je 0x825b70
push eax
call esi
test eax, eax
je 0x825b70
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x825b70
mov eax, dword [0xa5e598]
cmp eax, dword [ebp - 0x18]
je 0x825b70
push eax
call esi
test eax, eax
je 0x825b70
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0xa5e590]
call esi
test eax, eax
je 0x825b8c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x825b8e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0080262b
leave
ret
Function at 0x84c890
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esi], 0x48e374
push edi
xor edi, edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov eax, 0xa
mov dword [esi + 0x2c], eax
push 0x441254
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, edi
je 0x84c90a
push 0x44123c
push ebx
call ebp
push 0x48e35c
push ebx
mov dword [esi + 4], eax
call ebp
push 0x48e344
push ebx
mov dword [esi + 0xc], eax
call ebp
push 0x48e32c
push ebx
mov dword [esi + 8], eax
call ebp
mov dword [esi + 0x10], eax
push 0x410cbc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x84c924
push 0x48e320
push eax
call ebp
mov dword [esi + 0x14], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x84c930
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x8701a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, ecx
cmp dword [ebp + 8], 0
je 0x84c988
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x84c980
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x84c9da
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 8]
mov esi, dword [esi]
push eax
call ecx
test esi, esi
jne 0x84c966
lea ecx, [ebp + 0x18]
call fcn.00851980
cmp dword [ebp + 0x10], 0
je 0x84ca83
mov ebx, dword [ebp + 0x30]
lea ecx, [ebp + 0x30]
mov dword [esp + 0x14], ecx
test ebx, ebx
je 0x84ca7e
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x84c9da
mov esi, dword [ebx + 8]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov ebx, dword [ebx]
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x84c9e4
cmp eax, dword [esi - 0x10]
jne 0x84c9e4
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x84ca1c
push 0x80004005
call fcn.004a8210
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x84ca97
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0080217f
add esp, 0x10
lea esi, [edi + 0x10]
mov dword [esp + 0x18], esi
mov ecx, dword [ebp + 0x10]
push 0
push 0x10
push esi
mov dword [esp + 0x30], 0
call ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x84ca4e
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x84ca4e
push 4
push 0
push esi
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x84ca72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
jne 0x84c9a4
mov ecx, dword [esp + 0x14]
call fcn.004afe70
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
call fcn.004a8580
int3

Function at 0x84caf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x884da6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x48e374
mov dword [esp + 0x14], 1
call fcn.0084c930
lea ecx, [esi + 0x30]
call fcn.004afe70
lea ecx, [esi + 0x18]
call fcn.00851980
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x84d180
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x884e1e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
mov ecx, esi
call fcn.005d4530
lea eax, [esi + 0x14]
xor edi, edi
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ebx, dword [esp + 0x3c]
mov byte [esp + 0x28], 1
mov dword [esi], 0x48e3b4
mov dword [esi + 0xc], 0x48e394
mov dword [esi + 0x10], 0x48e37c
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
cmp ebx, edi
je 0x84d202
mov eax, ebx
jmp 0x84d236
push 0x78
call fcn.007c8529
mov ebp, eax
add esp, 4
mov dword [esp + 0x34], ebp
mov byte [esp + 0x28], 2
cmp ebp, edi
je 0x84d22f
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
mov ecx, ebp
call fcn.0084e9f0
jmp 0x84d231
xor eax, eax
mov byte [esp + 0x28], 1
mov dword [esi + 0x5c], eax
cmp eax, edi
jne 0x84d24c
mov edx, dword [esp + 0x38]
mov dword [edx], 0x8007000e
jmp 0x84d2d9
push 8
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
test eax, eax
mov eax, dword [esp + 0x18]
je 0x84d266
mov eax, 1
push eax
mov dword [esi + 0x50], eax
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, 0x2710
mov dword [esi + 0x38], eax
mul ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
cmp ebx, edi
jne 0x84d2d9
lea edx, [esp + 0x34]
push edx
push edi
push esi
push 0x84d170
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x58], eax
cmp eax, edi
je 0x84d2b0
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
jmp 0x84d2d9
mov eax, dword [esp + 0x38]
mov dword [eax], 0x80004005
mov ecx, dword [esi + 0x5c]
mov edx, dword [ecx + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x5c]
cmp ecx, edi
je 0x84d2d6
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x5c], edi
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
Function at 0x84e830
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x884fbe
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
xor edi, edi
lea ebp, [esi + 0x1c]
mov dword [esp + 0x20], edi
mov dword [esi + 0x18], eax
mov dword [ebp], edi
cmp dword [esp + 0x3c], edi
je 0x84e889
cmp ecx, 1
jle 0x84e889
lea eax, [edi + 1]
jmp 0x84e88b
xor eax, eax
mov ebx, dword [esp + 0x2c]
push ebx
mov dword [esi + 0x24], ecx
push edi
lea ecx, [esi + 0x30]
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
call fcn.005d9e00
mov cl, byte [esp + 0x48]
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], 1
mov byte [esi + 0x4c], cl
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov byte [esp + 0x20], 1
cmp dword [ebx], edi
jl 0x84e9cb
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
push ebp
push 0x43a5ac
push eax
mov eax, dword [edx]
call eax
mov dword [ebx], eax
cmp eax, edi
jl 0x84e9cb
cmp dword [esp + 0x30], edi
je 0x84e917
mov ebp, dword [ebp]
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x20]
push ebp
call edx
cmp eax, edi
jl 0x84e917
xor ecx, ecx
cmp eax, edi
sete cl
mov ebp, ecx
jmp 0x84e91b
mov ebp, dword [esp + 0x34]
mov eax, dword [esi + 0x24]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.007c8529
add esp, 4
mov dword [esi + 0x38], eax
cmp eax, edi
jne 0x84e949
mov dword [ebx], 0x8007000e
jmp 0x84e9cb
cmp ebp, edi
je 0x84e9cb
push edi
push DirectSoundEnumerateW
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi + 0x2c], eax
cmp eax, edi
jne 0x84e971
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80070000
mov dword [ebx], eax
jmp 0x84e9cb
push 0x18
call fcn.007c8529
mov ebp, eax
add esp, 4
mov dword [esp + 0x48], ebp
mov byte [esp + 0x20], 2
cmp ebp, edi
je 0x84e99b
mov eax, dword [esp + 0x40]
push eax
push edi
mov ecx, ebp
call fcn.005dbfb0
mov eax, ebp
jmp 0x84e99d
xor eax, eax
mov dword [esi + 0x28], eax
cmp eax, edi
je 0x84e93e
lea ecx, [esp + 0x3c]
push ecx
push edi
push esi
push 0x84e800
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x34], eax
cmp eax, edi
je 0x84e962
mov edx, dword [esp + 0x44]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x24