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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x100ff900]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x3ac]
test eax, eax
jne 0x1007d481
mov eax, 0x25
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c5f50
mov esp, ebp
pop ebp
ret
push 0
push 0
push eax
call fcn.100c801c
mov eax, dword [esi + 0x3a8]
add esp, 0xc
mov dword [ebp - 0xc], 0x20746d66
mov dword [ebp - 8], 0x28
cmp eax, 5
jne 0x1007d4bb
cmp dword [esi + 0x398], 2
jle 0x1007d4bb
mov eax, 0xfffe
mov word [ebp - 0x44], ax
jmp 0x1007d4cb
xor ecx, ecx
cmp eax, 5
sete cl
lea ecx, [ecx + ecx + 1]
mov word [ebp - 0x44], cx
mov ecx, dword [esi + 0x39c]
mov dx, word [esi + 0x398]
push ebx
mov ebx, dword [esi + 0x398]
push edi
mov edi, dword [esi + 0x3a0]
mov eax, ebx
imul eax, edi
imul eax, ecx
mov word [ebp - 0x42], dx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x3c], eax
mov eax, ebx
imul eax, edi
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x40], ecx
movzx ecx, di
mov word [ebp - 0x38], ax
xor eax, eax
mov edx, 0xfffe
pop edi
mov word [ebp - 0x36], cx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
pop ebx
cmp word [ebp - 0x44], dx
jne 0x1007d59b
cmp dword [esi + 0x3a8], 5
mov edx, 0x16
mov word [ebp - 0x34], dx
mov word [ebp - 0x32], cx
mov dword [ebp - 0x30], eax
jne 0x1007d578
mov eax, dword [0x100e2f24]
mov ecx, dword [0x100e2f28]
mov edx, dword [0x100e2f2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x100e2f30]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
jmp 0x1007d59b
mov ecx, dword [0x100e2f34]
mov edx, dword [0x100e2f38]
mov eax, dword [0x100e2f3c]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [0x100e2f40]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [esi + 0x3a4]
mov edx, dword [esi + 0x3ac]
push edx
mov dword [ebp - 0x10], eax
add eax, 0x38
push 1
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push 8
push eax
mov dword [ebp - 0x14], 0x61746164
mov dword [ebp - 0x1c], 0x46464952
call fcn.100c8501
mov ecx, dword [esi + 0x3ac]
push ecx
push 1
push 4
push 0x100dcbac
call fcn.100c8501
mov edx, dword [esi + 0x3ac]
push edx
push 1
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.100c8501
mov ecx, dword [esi + 0x3ac]
push ecx
push 1
lea edx, [ebp - 0x44]
push 0x28
push edx
call fcn.100c8501
mov eax, dword [esi + 0x3ac]
add esp, 0x40
push eax
push 1
lea ecx, [ebp - 0x14]
push 8
push ecx
call fcn.100c8501
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
xor eax, eax
pop esi
call fcn.100c5f50
mov esp, ebp
pop ebp
ret
Function at 0x1007db80
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x25c]
mov ecx, dword [esi + 0x258]
push eax
push ecx
mov ecx, esi
call fcn.1007b5c0
test eax, eax
jne 0x1007dbe5
cmp dword [esi + 0x274], 1
jne 0x1007dbc0
mov ecx, dword [esi + 0x258]
cmp dword [esi + 0x260], eax
jbe 0x1007dbc0
xor byte [ecx + eax], 0x80
inc eax
cmp eax, dword [esi + 0x260]
jb 0x1007dbb3
mov edx, dword [esi + 0x278]
mov eax, dword [esi + 0x260]
mov ecx, dword [esi + 0x258]
push edx
push eax
push 1
push ecx
call fcn.100c8501
add esp, 0x10
add dword [esi + 0x270], eax
xor eax, eax
pop esi
ret
Function at 0x1007dbf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x100ff900]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x278]
test eax, eax
jne 0x1007dc21
mov eax, 0x25
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c5f50
mov esp, ebp
pop ebp
ret
push 0
push 0
push eax
call fcn.100c801c
mov eax, dword [esi + 0x274]
add esp, 0xc
mov dword [ebp - 0xc], 0x20746d66
mov dword [ebp - 8], 0x28
cmp eax, 5
jne 0x1007dc5b
cmp dword [esi + 0x264], 2
jle 0x1007dc5b
mov eax, 0xfffe
mov word [ebp - 0x44], ax
jmp 0x1007dc6b
xor ecx, ecx
cmp eax, 5
sete cl
lea ecx, [ecx + ecx + 1]
mov word [ebp - 0x44], cx
mov ecx, dword [esi + 0x268]
mov dx, word [esi + 0x264]
push ebx
mov ebx, dword [esi + 0x264]
push edi
mov edi, dword [esi + 0x26c]
mov eax, ebx
imul eax, edi
imul eax, ecx
mov word [ebp - 0x42], dx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x3c], eax
mov eax, ebx
imul eax, edi
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x40], ecx
movzx ecx, di
mov word [ebp - 0x38], ax
xor eax, eax
mov edx, 0xfffe
pop edi
mov word [ebp - 0x36], cx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
pop ebx
cmp word [ebp - 0x44], dx
jne 0x1007dd3b
cmp dword [esi + 0x274], 5
mov edx, 0x16
mov word [ebp - 0x34], dx
mov word [ebp - 0x32], cx
mov dword [ebp - 0x30], eax
jne 0x1007dd18
mov eax, dword [0x100e2f94]
mov ecx, dword [0x100e2f98]
mov edx, dword [0x100e2f9c]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x100e2fa0]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
jmp 0x1007dd3b
mov ecx, dword [0x100e2fa4]
mov edx, dword [0x100e2fa8]
mov eax, dword [0x100e2fac]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [0x100e2fb0]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [esi + 0x270]
mov edx, dword [esi + 0x278]
push edx
mov dword [ebp - 0x10], eax
add eax, 0x38
push 1
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push 8
push eax
mov dword [ebp - 0x14], 0x61746164
mov dword [ebp - 0x1c], 0x46464952
call fcn.100c8501
mov ecx, dword [esi + 0x278]
push ecx
push 1
push 4
push 0x100dcbac
call fcn.100c8501
mov edx, dword [esi + 0x278]
push edx
push 1
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.100c8501
mov ecx, dword [esi + 0x278]
push ecx
push 1
lea edx, [ebp - 0x44]
push 0x28
push edx
call fcn.100c8501
mov eax, dword [esi + 0x278]
add esp, 0x40
push eax
push 1
lea ecx, [ebp - 0x14]
push 8
push ecx
call fcn.100c8501
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
xor eax, eax
pop esi
call fcn.100c5f50
mov esp, ebp
pop ebp
ret
Function at 0x1007e440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
jne 0x1007e451
pop esi
pop ebp
ret 0xc
cmp byte [esi + 0x44], 0
mov ecx, dword [ebp + 8]
push edi
je 0x1007e47b
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
imul eax, edi
push eax
push ecx
mov ecx, esi
call fcn.1007e340
neg eax
sbb eax, eax
not eax
and eax, edi
pop edi
pop esi
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
call fcn.100c82e2
mov edx, dword [esi]
push edx
mov edi, eax
call fcn.100c88f2
add esp, 0x14
mov dword [esi + 4], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1007e8e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 4], esi
jbe 0x1007e910
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
push ebx
push 1
lea ecx, [eax + esi*2]
push 2
push ecx
call fcn.100c82e2
add esp, 0x10
cmp eax, 1
jne 0x1007e919
inc esi
cmp esi, dword [edi + 4]
jb 0x1007e8f2
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 0x16
pop ebx
pop ebp
ret 4

Function at 0x1007e960
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
cmp dword [ecx + 4], eax
jbe 0x1007e987
push esi
mov esi, dword [ebp + 8]
push edi
nop
mov edx, dword [ecx]
mov edi, dword [esi]
mov di, word [edi + eax*2]
xor word [edx + eax*2], di
lea edx, [edx + eax*2]
inc eax
cmp eax, dword [ecx + 4]
jb 0x1007e970
pop edi
pop esi
pop ebp
ret 4
Function at 0x10085060
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
push 0
push 0x80
push 3
push 0
push 1
push connect
je 0x10085087
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x10085091
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x100850c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x100850b9
cmp eax, 3
je 0x100850b9
cmp eax, 0x7b
je 0x100850b9
mov eax, 0x13
pop ebp
ret
mov eax, 0x17
pop ebp
ret
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
xor eax, eax
pop ebp
ret

Function at 0x10085250
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x20]
test esi, esi
jne 0x10085261
lea eax, [esi + 0x25]
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
push 0
push ecx
push edx
push eax
push 0
call fcn.100c957b
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x1008528b
mov eax, 0x2b
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0x14]
add ecx, 2
cmp ecx, 5
ja case.default.0x10085296
jmp dword [ecx*4 + 0x100852f4]
push 0xfffffffffffffffe
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
pop esi
pop ebp
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
pop esi
pop ebp
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
pop esi
pop ebp
ret
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
pop esi
pop ebp
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
pop esi
pop ebp
ret
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
pop esi
pop ebp
ret

Function at 0x100855e0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x100ff900]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10132718], 0
push esi
jne 0x1008563c
lea eax, [ebp - 0x194]
push eax
push 2
call sub.WSOCK32.dll_WSAStartup
push 0
push 0x1013271c
call fcn.10085330
mov esi, eax
add esp, 8
test esi, esi
je 0x10085636
call sub.WSOCK32.dll_WSACleanup
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c5f50
mov esp, ebp
pop ebp
ret
inc dword [0x10132718]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.100c5f50
mov esp, ebp
pop ebp
ret
Function at 0x10085930
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100ff900]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 1
push 2
mov dword [ebp - 0x18], 1
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x10085973
pop edi
mov eax, 0x2b
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c5f50
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
push esi
call sub.WSOCK32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x1008599c
pop edi
mov eax, 0x33
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c5f50
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
xor eax, eax
mov ecx, 2
mov dword [ebp - 0x14], eax
push edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 0x14], cx
call sub.WSOCK32.dll_htons
push 0
mov word [ebp - 0x12], ax
call sub.WSOCK32.dll_htonl
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
je 0x10085987
push 3
push esi
call sub.WSOCK32.dll_listen
cmp eax, 0xffffffff
je 0x10085987
mov ecx, dword [ebp - 4]
mov dword [edi], esi
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.100c5f50
mov esp, ebp
pop ebp
ret

Function at 0x10085a60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0xffffffff
push esi
mov esi, dword [ebp + 0x10]
jne 0x10085a75
mov eax, 0x33
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x14]
push edi
mov dword [ebx], 0
test esi, esi
je 0x10085aa1
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0
push esi
push edi
push eax
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x10085aa8
add dword [ebx], eax
add edi, eax
sub esi, eax
jne 0x10085a87
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret
call sub.WSOCK32.dll_WSAGetLastError
xor ecx, ecx
cmp eax, 0x2733
sete cl
pop edi
pop ebx
pop esi
lea eax, [ecx + ecx + 0x33]
pop ebp
ret

Function at 0x10085ac0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0xffffffff
push esi
mov esi, dword [ebp + 0x10]
jne 0x10085ad5
mov eax, 0x33
pop esi
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10085b37
test esi, esi
je 0x10085b37
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebx], 0
jmp 0x10085af0
mov eax, dword [ebp + 8]
push 0
push esi
push edi
push eax
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
je 0x10085b15
test eax, eax
je 0x10085b2d
add dword [ebx], eax
add edi, eax
sub esi, eax
jne 0x10085af0
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
call sub.WSOCK32.dll_WSAGetLastError
xor ecx, ecx
cmp eax, 0x2733
sete cl
pop ebx
pop edi
pop esi
lea eax, [ecx + ecx + 0x33]
pop ebp
ret
pop ebx
pop edi
mov eax, 0x16
pop esi
pop ebp
ret
pop edi
mov eax, 0x25
pop esi
pop ebp
ret
Function at 0x10085b40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0xffffffff
mov eax, dword [ebp + 0xc]
mov byte [ebp - 1], 0
mov byte [eax], 0
jne 0x10085b5f
mov eax, 0x33
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10085c01
push ebx
push esi
push edi
mov dword [ebp - 8], 0
lea edi, [ebp - 1]
mov esi, 1
xor ebx, ebx
mov edi, edi
mov ecx, dword [ebp + 8]
push 0
push esi
push edi
push ecx
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
je 0x10085ba0
test eax, eax
je 0x10085bac
add ebx, eax
add edi, eax
sub esi, eax
jne 0x10085b80
jmp 0x10085bac
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x10085bd3
cmp ebx, 1
jne 0x10085bdf
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x10085bdf
cmp al, 0xd
je 0x10085bc9
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov byte [ecx + edx], al
inc ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jb 0x10085b74
jmp 0x10085be7
pop edi
pop esi
mov eax, 0x35
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x10]
jb 0x10085bee
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov byte [edx + eax], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x25
mov esp, ebp
pop ebp
ret
Function at 0x100874f0
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5cc
mov eax, dword [0x100ff900]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp byte [esi + 0x291], 0
je 0x10087520
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c5f50
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x18]
mov dword [0x100fecc0], eax
cmp dword [esi + 0x2a0], 0
jne 0x10087542
push str.dsound.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x2a0], eax
mov ecx, dword [esi + 0x2a0]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DirectSoundCreate8
push ecx
mov dword [esi + 0x29c], 3
call edi
mov dword [esi + 0x2a4], eax
test eax, eax
je 0x10087697
mov dword [esi + 0x29c], 8
mov eax, dword [esi + 0x2a0]
push str.DirectSoundEnumerateW
push eax
call edi
cmp dword [esi + 0x29c], 8
mov dword [esi + 0x2a8], eax
jl 0x1008763e
push 0x104
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1008763e
lea ecx, [ebp - 0x5cc]
call fcn.10073310
lea edx, [ebp - 0x404]
push edx
lea eax, [ebp - 0x204]
push eax
mov dword [ebp - 0x5cc], 0x100e3a00
mov dword [ebp - 0x5a4], 5
call fcn.10076b80
lea ecx, [ebp - 0x204]
push str.d3d9.dll
push ecx
call fcn.10076bd0
mov edx, dword [esi + 0x30]
add esp, 0x10
push 0
push 0
push edx
lea ecx, [ebp - 0x5cc]
call fcn.10071c80
push 0
push 0
push 0
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x5cc]
call fcn.10071e50
test eax, eax
jne 0x1008763e
lea ecx, [ebp - 0x5cc]
call fcn.100733a0
mov dword [esi + 0x29c], 9
mov ecx, dword [esi + 0x2a0]
push str.DirectSoundCaptureCreate8
push ecx
call edi
mov dword [esi + 0x2b4], eax
test eax, eax
je 0x1008766a
mov edx, dword [esi + 0x2a0]
push str.DirectSoundCaptureCreate
push edx
call edi
mov dword [esi + 0x2b4], eax
mov eax, dword [esi + 0x2a0]
push str.DirectSoundCaptureEnumerateW
push eax
call edi
mov dword [esi + 0x2b0], eax
pop edi
mov byte [esi + 0x291], 1
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c5f50
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x2a0]
push str.DirectSoundCreate
push edx
call edi
mov dword [esi + 0x2a4], eax
test eax, eax
jne 0x10087579
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 0x3c
pop esi
call fcn.100c5f50
mov esp, ebp
pop ebp
ret
Function at 0x10087c70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x3f0], 0
jne 0x10087c85
mov eax, 0x25
pop ebp
ret 0x10
cmp dword [ecx + 0x3b8], 1
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
jne 0x10087cc7
test ebx, ebx
je 0x10087cad
test edi, edi
je 0x10087cad
mov eax, ebx
mov edx, edi
xor byte [eax], 0x80
inc eax
dec edx
jne 0x10087ca6
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10087cc7
test esi, esi
je 0x10087cc7
mov edx, esi
lea ebx, [ebx]
xor byte [eax], 0x80
inc eax
dec edx
jne 0x10087cc0
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x3f0]
mov ecx, dword [eax]
push esi
push edx
push edi
push ebx
push eax
mov eax, dword [ecx + 0x4c]
call eax
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0x39
pop ebx
pop ebp
ret 0x10
Function at 0x1008eb70
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ac
mov eax, dword [0x100ff900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x2ac], eax
or esi, 0xffffffff
mov eax, edi
mov dword [ebp - 0x29c], esi
xor ebx, ebx
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1008eba0
sub eax, ecx
push eax
push edi
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea ecx, [ebp - 0x290]
push ecx
push str.clsid
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1008ed7f
xor esi, esi
jmp 0x1008ebe6
mov esi, dword [ebp - 0x2a0]
test ebx, ebx
jne 0x1008ed5c
mov eax, dword [ebp - 0x290]
push 0x200
lea edx, [ebp - 0x204]
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
inc esi
mov dword [ebp - 0x2a0], esi
test eax, eax
jne 0x1008ed5c
lea eax, [ebp - 0x204]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1008ec20
sub eax, edx
push eax
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.USER32.dll_CharLowerBuffA]
mov ecx, edi
lea eax, [ebp - 0x204]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1008ec60
test dl, dl
je 0x1008ec5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1008ec60
add eax, 2
add ecx, 2
test dl, dl
jne 0x1008ec40
xor eax, eax
jmp 0x1008ec65
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1008ebe6
mov ecx, dword [ebp - 0x290]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [ebp - 0x294]
push edx
push 0x20019
push eax
lea eax, [ebp - 0x204]
push eax
push ecx
call ebx
mov esi, eax
test esi, esi
jne 0x1008ed4f
lea edx, [ebp - 0x298]
push edx
push 0x20019
push eax
mov eax, dword [ebp - 0x294]
push str.InprocServer32
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x1008ed42
mov ebx, dword [ebp - 0x2ac]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x2a4]
push edx
push ebx
lea eax, [ebp - 0x2a8]
push eax
push esi
mov dword [ebp - 0x2a4], ecx
mov ecx, dword [ebp - 0x298]
push esi
push ecx
mov dword [ebp - 0x2a8], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x1008ed35
push 0x88
push eax
lea edx, [ebp - 0x28c]
push edx
call fcn.100c6660
add esp, 0xc
push 0x4000
lea eax, [ebp - 0x28c]
push eax
push ebx
mov byte [ebp - 0x28c], 0x88
call dword [sym.imp.KERNEL32.dll_OpenFile]
test eax, eax
je 0x1008ed35
mov dword [ebp - 0x29c], esi
mov ecx, dword [ebp - 0x298]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x294]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 1
test esi, esi
je 0x1008ebe0
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x29c]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c5f50
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.100c5f50
mov esp, ebp
pop ebp
ret
Function at 0x1008eda0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ec
mov eax, dword [0x100ff900]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x3ec], ecx
test esi, esi
jne 0x1008ef99
lea ecx, [ebp - 0x3e8]
push ecx
push 0x20019
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1008efb2
lea edx, [ebp - 0x3e0]
push edx
mov edx, dword [ebp - 0x3e8]
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x3e4]
push ecx
push esi
push str.clsid
push edx
mov dword [ebp - 0x3e4], 1
mov dword [ebp - 0x3e0], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1008ef7a
push edi
lea eax, [ebp - 0x3cc]
push 0x200
push eax
lea edi, [ebp - 0x104]
call fcn.1008eb70
add esp, 8
pop edi
test eax, eax
jne 0x1008ef7a
mov ecx, dword [0x100fecc0]
mov ecx, dword [ecx + 4]
push eax
push 0x4d
push str..._src_asio_asiolist.cpp
push 0x29c
call fcn.10075b20
mov esi, eax
test esi, esi
je 0x1008ef7a
push 0x29c
push 0
push esi
call fcn.100c6660
mov edx, dword [ebp - 0x3ec]
add esp, 0xc
push 0x64
lea eax, [ebp - 0x1cc]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x104]
push ecx
push 0
push 0
mov dword [esi], edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [ebp - 0x3dc]
push edx
lea eax, [ebp - 0x1cc]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x1008eee9
mov ecx, dword [ebp - 0x3dc]
mov dword [esi + 4], ecx
mov edx, dword [ebp - 0x3d8]
mov dword [esi + 8], edx
mov eax, dword [ebp - 0x3d4]
mov dword [esi + 0xc], eax
mov ecx, dword [ebp - 0x3d0]
mov dword [esi + 0x10], ecx
lea edx, [ebp - 0x3e0]
push edx
mov edx, dword [ebp - 0x3e8]
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x3e4]
push ecx
push 0
push str.description
push edx
mov dword [ebp - 0x3e4], 1
mov dword [ebp - 0x3e0], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esi + 0x214]
test eax, eax
jne 0x1008ef69
lea eax, [ebp - 0x104]
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1008ef40
mov edx, dword [ebp - 0x3e8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c5f50
mov esp, ebp
pop ebp
ret
mov eax, ebx
sub edx, ebx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1008ef70
mov edx, dword [ebp - 0x3e8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c5f50
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x298]
push edx
inc ecx
push ecx
push ebx
push eax
call fcn.1008eda0
add esp, 0x10
mov dword [esi + 0x298], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.100c5f50
mov esp, ebp
pop ebp
ret