joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102246d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xcc
call fcn.10077700
mov ecx, dword [esp + 0xd0]
push ebx
push ebp
push esi
lea esi, [ecx + 0x14]
lea eax, [ecx + 0x54]
push edi
lea edi, [esp + 0x5c]
mov ecx, dword [esi + 0x3c]
xor ebp, ebp
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x9c]
sub ecx, eax
sub edi, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
sub esi, eax
mov ebx, dword [esp + 0xe4]
mov edx, dword [eax]
xor ecx, ecx
mov dword [edi + eax - 0x40], edx
mov cl, byte [ebx + ebp]
mov ebx, dword [esp + 0x14]
xor edx, ecx
mov dword [edi + eax], ecx
mov dword [ebx + eax], edx
mov edx, dword [esp + 0x10]
xor ecx, edx
add eax, 4
mov edx, dword [ecx*4 + str._.C]
mov ecx, dword [esi + eax - 4]
xor ecx, edx
inc ebp
mov dword [esi + eax - 4], ecx
cmp ebp, 0x10
mov dword [esp + 0x10], ecx
jl 0x1022470d
xor ecx, ecx
xor esi, esi
lea eax, [esp + 0x20]
mov edx, 6
mov ecx, dword [ecx*4 + str._.C]
mov edi, dword [eax - 4]
xor edi, ecx
mov ecx, edi
mov dword [eax - 4], edi
mov ebp, dword [eax]
add eax, 0x20
mov ecx, dword [ecx*4 + str._.C]
xor ebp, ecx
mov ecx, ebp
mov dword [eax - 0x20], ebp
mov ebx, dword [eax - 0x1c]
mov ecx, dword [ecx*4 + str._.C]
xor ebx, ecx
mov ecx, ebx
mov dword [eax - 0x1c], ebx
mov edi, dword [eax - 0x18]
mov ecx, dword [ecx*4 + str._.C]
xor edi, ecx
mov ecx, edi
mov dword [eax - 0x18], edi
mov ebp, dword [eax - 0x14]
mov ecx, dword [ecx*4 + str._.C]
xor ebp, ecx
mov ecx, ebp
mov dword [eax - 0x14], ebp
mov ebx, dword [eax - 0x10]
mov ecx, dword [ecx*4 + str._.C]
xor ebx, ecx
mov ecx, ebx
mov dword [eax - 0x10], ebx
mov edi, dword [eax - 0xc]
mov ecx, dword [ecx*4 + str._.C]
xor edi, ecx
mov ecx, edi
mov dword [eax - 0xc], edi
mov ebp, dword [eax - 8]
mov ecx, dword [ecx*4 + str._.C]
xor ebp, ecx
dec edx
mov dword [eax - 8], ebp
mov ecx, ebp
jne 0x1022475c
add ecx, esi
and ecx, 0xff
inc esi
cmp esi, 0x12
jl 0x10224753
mov edi, dword [esp + 0x18]
mov ecx, 0x10
lea esi, [esp + 0x1c]
lea edx, [esp + 0x1c]
push 0xc0
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.100cbb00
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
Function at 0x102471f0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov eax, 0x14
call fcn.10077700
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x10], 1
xor ebx, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
lea edx, [esp + 0x14]
movsx eax, byte [edi]
mov ebp, dword [esp + 0x2c]
inc edi
cmp eax, 0x30
jl 0x10247251
cmp eax, 0x39
jg 0x10247251
mov ecx, dword [edx]
mov esi, 1
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*2 - 0x30]
cmp eax, 0xff
mov dword [edx], eax
ja 0x1024731c
jmp 0x10247222
cmp eax, 0x2e
jne 0x1024726f
test esi, esi
je 0x10247320
cmp ebx, 3
je 0x1024731c
inc ebx
add edx, 4
xor esi, esi
jmp 0x10247222
test eax, eax
jne 0x1024731c
cmp ebx, 3
jne 0x1024731c
test esi, esi
je 0x1024731c
mov dl, byte [esp + 0x14]
mov al, byte [esp + 0x18]
mov cl, byte [esp + 0x1c]
mov byte [ebp], dl
mov dl, byte [esp + 0x20]
mov byte [ebp + 1], al
mov byte [ebp + 2], cl
mov byte [ebp + 3], dl
mov esi, 1
mov eax, dword [0x1030fc50]
test eax, eax
jne 0x1024733a
mov ecx, 0x64
xor eax, eax
mov edi, 0x1030fac0
push 0x1030fac0
rep stosd dword es:[edi], eax
push 0x101
mov dword [0x1030fc50], 1
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x1024733a
call sub.WS2_32.dll_WSAGetLastError
push 0x1d8
push str..crypto_bio_b_sock.c
push eax
push 9
push 2
call fcn.100cafd0
push 0x1d9
push str..crypto_bio_b_sock.c
push 0x7a
push 0x70
push 0x20
call fcn.100cafd0
add esp, 0x28
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
xor esi, esi
jmp 0x102472a9
push 0x79
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.100cafd0
add esp, 0x14
jmp 0x102473dc
test esi, esi
jg 0x102473fa
push 0x87
push str..crypto_bio_b_sock.c
push 0x16
push 9
call fcn.100cbc00
mov eax, dword [esp + 0x38]
add esp, 0x10
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x10247380
push 0x8c
push str..crypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.100cafd0
add esp, 0x14
jmp 0x102473be
cmp word [eax + 8], 2
je 0x102473a1
push 0x93
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.100cafd0
add esp, 0x14
jmp 0x102473be
xor ecx, ecx
mov edx, dword [eax + 0xc]
inc ecx
cmp ecx, 4
mov edx, dword [edx]
mov dl, byte [edx + ecx - 1]
mov byte [ecx + ebp - 1], dl
jl 0x102473a3
mov dword [esp + 0x10], 0
push 0x9c
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.100cbc00
mov eax, dword [esp + 0x20]
add esp, 0x10
test eax, eax
je 0x102473fa
mov eax, dword [esp + 0x28]
push eax
push 0x1029109c
push 2
call fcn.100cb480
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
Function at 0x10247d90
Capabilities:
Set socket configuration

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
lea ecx, [esp + 8]
push esi
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x18], eax
call sub.WS2_32.dll_ioctlsocket
mov esi, eax
test esi, esi
jge 0x10247dcf
push 0x21b
push str..crypto_bio_b_sock.c
call sub.WS2_32.dll_WSAGetLastError
push eax
push 5
push 2
call fcn.100cafd0
add esp, 0x14
xor eax, eax
test esi, esi
sete al
pop esi
ret

Function at 0x1024c489
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x1024c4b9
push edi
call ebx
push eax
call fcn.1024c5d7
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x1024c4e3
test byte [ebp - 4], 1
je 0x1024c4e3
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1024c4e3
push edi
call ebx
push eax
call fcn.1024c5d7
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x1024c589
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.1024c3d6
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x1024c515
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.1024c3d6
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x1024c52b
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.1024c3d6
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1024c555
push 0
call ebx
push eax
call fcn.1024c5d7
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x1024c573
push eax
call ebx
push eax
call fcn.1024c5d7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1024c587
push eax
call ebx
push eax
call fcn.1024c5d7
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x1024c5b0
test byte [ebp - 4], 1
jne 0x1024c5b0
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1024c5b0
push edi
call ebx
push eax
call fcn.1024c5d7
pop edi
pop ebx
leave
ret 8

Function at 0x1024eb14
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1024eb4c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.1024bf2b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1024bf02
jmp 0x1024eb58
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x100011b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, ecx
push esi
mov ecx, dword [esp + 0x10]
push edi
xor esi, esi
lea edi, [ebp + 0x10]
xor eax, eax
mov ebx, dword [ebp + 0xc]
lea edx, [esi + eax]
add edx, ebx
mov ebx, dword [edi]
add ebx, eax
mov bl, byte [ebx + ecx*4]
xor byte [edx], bl
inc eax
cmp eax, 4
jl 0x100011c1
add esi, 4
add edi, 4
cmp esi, 0x10
jl 0x100011bf
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x100011f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
xor esi, esi
push edi
test eax, eax
mov dword [esp + 0x1c], ecx
jle 0x1000123c
mov eax, dword [ecx + 0x20]
mov edx, dword [ecx + 0x10]
mov al, byte [esi + eax]
mov byte [esi + edx], al
mov edx, dword [ecx + 0x24]
mov eax, dword [ecx + 0x14]
mov dl, byte [edx + esi]
mov byte [eax + esi], dl
mov eax, dword [ecx + 0x28]
mov edx, dword [ecx + 0x18]
mov al, byte [eax + esi]
mov byte [edx + esi], al
mov edx, dword [ecx + 0x2c]
mov eax, dword [ecx + 0x1c]
mov dl, byte [edx + esi]
mov byte [eax + esi], dl
mov eax, dword [ecx + 4]
inc esi
cmp esi, eax
jl 0x10001204
mov eax, dword [ecx + 8]
lea edx, [eax*4 + 4]
cmp esi, edx
jge 0x1000132f
lea edi, [ecx + 0x10]
xor eax, eax
mov ebp, edi
mov edx, dword [ebp]
inc eax
add ebp, 4
cmp eax, 4
mov dl, byte [edx + esi - 1]
mov byte [esp + eax + 0xf], dl
jl 0x10001255
mov ebp, dword [ecx + 4]
mov eax, esi
cdq
idiv ebp
test edx, edx
jne 0x100012d0
mov dl, byte [esp + 0x11]
mov al, byte [esp + 0x10]
mov byte [esp + 0x10], dl
mov dl, byte [esp + 0x12]
mov byte [esp + 0x11], dl
mov dl, byte [esp + 0x13]
mov byte [esp + 0x12], dl
mov byte [esp + 0x13], al
xor edx, edx
xor eax, eax
mov al, byte [esp + edx + 0x10]
mov ebx, eax
and eax, 0xf
shr ebx, 4
shl ebx, 4
inc edx
mov al, byte [ebx + eax + str.cw]
cmp edx, 4
mov byte [esp + edx + 0xf], al
jl 0x10001297
mov eax, esi
cdq
idiv ebp
mov dl, byte [eax + 0x1001c220]
mov al, byte [esp + 0x10]
xor al, dl
mov byte [esp + 0x10], al
jmp 0x100012fe
cmp ebp, 6
jle 0x100012fe
cmp edx, 4
jne 0x100012fe
xor edx, edx
xor eax, eax
mov al, byte [esp + edx + 0x10]
mov ebx, eax
and eax, 0xf
shr ebx, 4
shl ebx, 4
inc edx
mov al, byte [ebx + eax + str.cw]
cmp edx, 4
mov byte [esp + edx + 0xf], al
jl 0x100012dc
xor eax, eax
mov edx, dword [edi]
mov ebp, dword [ecx + 4]
mov ebx, edx
add edi, 4
sub ebx, ebp
mov bl, byte [ebx + esi]
xor bl, byte [esp + eax + 0x10]
inc eax
cmp eax, 4
mov byte [edx + esi], bl
jl 0x10001300
mov edx, dword [ecx + 8]
inc esi
lea eax, [edx*4 + 4]
cmp esi, eax
jl 0x1000124e
mov edx, dword [ecx + 8]
xor eax, eax
test edx, edx
mov dword [esp + 0x14], eax
jl 0x100013ae
lea edx, [ecx + 0x10]
xor esi, esi
lea ebp, [eax*4]
mov dword [esp + 0x10], edx
lea eax, [esi + 1]
cmp eax, 4
mov dword [esp + 0x18], eax
jge 0x1000138c
add edx, 4
mov ecx, dword [esp + 0x10]
add edx, 4
mov ecx, dword [ecx]
add ecx, ebp
mov bl, byte [ecx + eax]
lea edi, [ecx + eax]
mov ecx, dword [edx - 4]
add ecx, ebp
mov cl, byte [ecx + esi]
mov byte [edi], cl
mov ecx, dword [edx - 4]
add ecx, ebp
inc eax
cmp eax, 4
mov byte [ecx + esi], bl
jl 0x1000135b
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov esi, eax
add edx, 4
cmp esi, 3
mov dword [esp + 0x10], edx
jl 0x1000134c
mov eax, dword [esp + 0x14]
mov edx, dword [ecx + 8]
inc eax
cmp eax, edx
mov dword [esp + 0x14], eax
jle 0x1000133c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x10001460
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov al, byte [esp + edi + 0x28]
mov cl, byte [esp + edi + 0x24]
mov bl, byte [esp + edi + 0x2c]
mov byte [esp + 0x10], al
mov al, byte [esp + edi + 0x20]
mov byte [esp + 0x14], cl
push 6
push eax
mov ecx, esi
mov byte [esp + 0x24], bl
mov byte [esp + 0x20], al
call fcn.10001760
mov dl, al
push 3
push ebx
mov ecx, esi
mov bl, dl
call fcn.10001760
mov edx, dword [esp + 0x10]
push 5
push edx
mov ecx, esi
xor bl, al
call fcn.10001760
xor bl, al
mov eax, dword [esp + 0x14]
push 4
push eax
mov ecx, esi
call fcn.10001760
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x18]
xor bl, al
push 3
mov byte [ecx + edi], bl
push edx
mov ecx, esi
call fcn.10001760
mov bl, al
mov eax, dword [esp + 0x1c]
push 5
push eax
mov ecx, esi
call fcn.10001760
mov ecx, dword [esp + 0x10]
push 4
push ecx
mov ecx, esi
xor bl, al
call fcn.10001760
mov edx, dword [esp + 0x14]
push 6
push edx
mov ecx, esi
xor bl, al
call fcn.10001760
mov ecx, dword [esp + 0x18]
xor bl, al
mov eax, dword [esi + 0xc]
push 5
push ecx
mov ecx, esi
mov byte [eax + edi + 4], bl
call fcn.10001760
mov edx, dword [esp + 0x1c]
push 4
push edx
mov ecx, esi
mov bl, al
call fcn.10001760
xor bl, al
mov eax, dword [esp + 0x10]
push 6
push eax
mov ecx, esi
call fcn.10001760
mov ecx, dword [esp + 0x14]
push 3
xor bl, al
push ecx
mov ecx, esi
call fcn.10001760
mov edx, dword [esi + 0xc]
xor bl, al
mov eax, dword [esp + 0x18]
push 4
push eax
mov ecx, esi
mov byte [edx + edi + 8], bl
call fcn.10001760
mov ecx, dword [esp + 0x1c]
push 6
push ecx
mov ecx, esi
mov bl, al
call fcn.10001760
mov edx, dword [esp + 0x10]
push 3
push edx
mov ecx, esi
xor bl, al
call fcn.10001760
xor bl, al
mov eax, dword [esp + 0x14]
push 5
push eax
mov ecx, esi
call fcn.10001760
mov ecx, dword [esi + 0xc]
xor bl, al
mov byte [ecx + edi + 0xc], bl
inc edi
cmp edi, 4
jl 0x10001488
pop edi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x100019d0
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x44]
mov dword [esi], 0x100184c4
test al, al
je 0x10001a2c
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.WINMM.dll_waveInStop]
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.WINMM.dll_waveInReset]
mov ebp, dword [sym.imp.WINMM.dll_waveInUnprepareHeader]
lea edi, [esi + 0x30]
mov ebx, 2
mov edx, dword [edi]
mov eax, dword [esi + 0x18]
push 0x20
push edx
push eax
call ebp
add edi, 4
dec ebx
jne 0x10001a05
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.WINMM.dll_waveInClose]
mov edx, dword [esi + 0x2c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov al, byte [esi + 0x45]
test al, al
je 0x10001a66
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.WINMM.dll_waveOutReset]
mov ebp, dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
lea edi, [esi + 0x30]
mov ebx, 2
mov ecx, dword [edi]
mov edx, dword [esi + 0x40]
push 0x20
push ecx
push edx
call ebp
add edi, 4
dec ebx
jne 0x10001a4b
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.WINMM.dll_waveOutClose]
lea edi, [esi + 0x30]
mov ebx, 2
mov ecx, dword [edi - 0x28]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [edi]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [edi - 0x20]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [edi + 8]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
add edi, 4
dec ebx
jne 0x10001a6e
mov edx, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x28]
push eax
call edi
mov ecx, dword [esi + 0x2c]
push ecx
call edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10001ba0
Capabilities:
Capture microphone audio
Create thread
Resume thread

Disassembly:
push ecx
push ebx
push edi
mov edi, ecx
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
test eax, eax
jne 0x10001bb5
pop edi
xor al, al
pop ebx
pop ecx
ret
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 4
push edi
push 0x10001d10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 8]
push 0x20000
push 0
lea edx, [edi + 0x46]
push ecx
lea ebx, [edi + 0x18]
push edx
push 0xffff
push ebx
mov dword [edi + 0x2c], eax
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
je 0x10001c00
pop edi
xor al, al
pop ebx
pop ecx
ret
push ebp
push esi
lea esi, [edi + 0x30]
mov ebp, 2
mov eax, dword [esi]
mov ecx, dword [esi - 0x28]
push 0x20
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi]
xor eax, eax
mov dword [ecx + 0x10], eax
mov edx, dword [esi]
mov dword [edx + 0x14], eax
mov eax, dword [esi]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
add esi, 4
dec ebp
jne 0x10001c0a
mov edx, dword [edi + 0x1c]
mov ecx, dword [ebx]
push 0x20
mov eax, dword [edi + edx*4 + 0x30]
push eax
push ecx
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
mov edx, dword [edi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebx]
push eax
call dword [sym.imp.WINMM.dll_waveInStart]
mov al, 1
pop esi
mov byte [edi + 0x44], al
pop ebp
pop edi
pop ebx
pop ecx
ret
Function at 0x100026b0
Capabilities:
Enumerate devices by category

Disassembly:
push 0xffffffffffffffff
push 0x1001687b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x828
lea eax, [esp + 0x14]
mov dword [esp + 8], 0
push eax
push 0x10019394
push 1
push 0
push 0x10019424
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x1000270a
or eax, 0xffffffff
mov ecx, dword [esp + 0x828]
mov dword fs:[0], ecx
add esp, 0x834
ret 4
mov dword [esp], 0
mov eax, dword [esp + 0x14]
lea edx, [esp]
push 0
push edx
mov ecx, dword [eax]
push 0x10019414
push eax
mov dword [esp + 0x840], 0
call dword [ecx + 0xc]
test eax, eax
je 0x1000276a
mov eax, dword [esp]
mov dword [esp + 0x830], 0xffffffff
test eax, eax
je 0x10002750
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or eax, 0xffffffff
mov ecx, dword [esp + 0x828]
mov dword fs:[0], ecx
add esp, 0x834
ret 4
mov eax, dword [esp]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 8]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10002873
push ebx
mov ebx, dword [esp + 0x83c]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push edi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push 0x10018604
mov ecx, dword [eax]
push 0
push 0
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x10002847
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push 0
mov word [esp + 0x2c], 8
mov ecx, dword [eax]
push edx
push 0x1001c240
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x1000283d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
inc eax
push 0
mov dword [esp + 0x1c], eax
push 0
lea eax, [esp + 0x40]
push 0x800
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call ebp
mov edx, ebx
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
add ebx, 0x104
lea esi, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, edx
mov edx, ecx
mov eax, dword [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x100027a3
pop edi
pop esi
pop ebp
pop ebx
mov eax, dword [esp]
mov dword [esp + 0x830], 0xffffffff
test eax, eax
je 0x1000288c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x828]
mov eax, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x834
ret 4
Function at 0x10002b60
Capabilities:
Enumerate devices by category

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100168c0
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push edi
mov edi, dword [esp + 0x34]
xor ebx, ebx
cmp edi, ebx
jge 0x10002b99
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov dword [esp + 8], ebx
lea eax, [esp + 8]
mov dword [esp + 0x2c], ebx
push eax
push 0x10019394
push 1
push ebx
push 0x10019424
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
je 0x10002be8
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x10002c32
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 8]
lea ecx, [esp + 0x34]
push ebx
push ecx
mov edx, dword [eax]
push 0x10019414
push eax
mov byte [esp + 0x3c], 1
call dword [edx + 0xc]
cmp eax, ebx
je 0x10002c47
mov eax, dword [esp + 0x34]
mov byte [esp + 0x2c], bl
cmp eax, ebx
je 0x10002c1c
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x10002c32
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov eax, dword [esp + 0x34]
push esi
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push edx
push 1
push eax
xor esi, esi
call dword [ecx + 0xc]
cmp edi, ebx
jl 0x10002d06
push ebp
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x40]
push edx
push 0x10018604
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x24]
cmp eax, ebx
jl 0x10002cdc
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x1c]
push ebx
mov word [esp + 0x20], 8
mov ecx, dword [eax]
push edx
push 0x1001c240
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jne 0x10002cd2
cmp esi, edi
jne 0x10002cc7
mov eax, dword [esp + 0x14]
push ebp
push 0x10019384
push ebx
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x20]
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x40]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push 1
push eax
inc esi
call dword [ecx + 0xc]
cmp esi, edi
jle 0x10002c77
pop ebp
mov eax, dword [esp + 0x38]
mov byte [esp + 0x30], bl
cmp eax, ebx
pop esi
je 0x10002d19
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x10002d2f
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x24]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8