joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a46d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400a4702
call fcn.1400908b8
mov dword [rax], SafeArrayUnaccessData
call fcn.1400903f0
jmp 0x1400a4821
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400a4821
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400a4821
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400a4731
lock or dword [rcx + 0x14], 0x10
jmp 0x1400a4821
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400a4745
call fcn.1400a5d34
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400a2554
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400a54b0
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400a480f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400a47da
mov rcx, rsi
call fcn.1400a2554
cmp eax, edi
je 0x1400a47c5
mov rcx, rsi
call fcn.1400a2554
cmp eax, 0xfffffffe
je 0x1400a47c5
mov rcx, rsi
call fcn.1400a2554
movsxd rbx, eax
lea r14, [0x1400f4610]
mov rcx, rsi
sar rbx, 6
call fcn.1400a2554
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400a47cc
lea rdx, [0x1400f0770]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400a47da
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400a47fe
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400a47fe
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400a47fe
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400a4824
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400a4b4c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400898c0
sub rsp, rax
mov rax, qword [0x1400f0380]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400a2554
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400a4b9b
mov rax, rbp
jmp 0x1400a4ca3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xf4610]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400a5c88
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xf4610]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400a4c9f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a4c9f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400a5c88
test rax, rax
js 0x1400a4c9f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400a4c9f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400a4c91
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400a4c91
cmp byte [rcx], 0xd
jne 0x1400a4c77
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400a4c86
cmp byte [rcx + 1], 0xa
jne 0x1400a4c86
inc rcx
jmp 0x1400a4c86
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xf07c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400a4c59
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400a4ca3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140089890
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a5004
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400f4610]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400a5062
cmp word [rdx], r12w
jne 0x1400a5062
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400a5068
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400a51c3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400a519e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400a50a1
mov rcx, r9
jmp 0x1400a50c4
cmp r9, rdx
jae 0x1400a50db
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400a5085
jmp 0x1400a51c3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a5198
cmp dword [rsp + 0x80], edi
je 0x1400a5198
mov rdx, r14
lea r11, [0x1400f4610]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400a5171
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400a5144
mov word [rbx], r12w
jmp 0x1400a51bf
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400a514d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400a51bf
cmp word [rsp + 0x70], r12w
jne 0x1400a517e
cmp rbx, rsi
je 0x1400a513e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400a5c90
cmp word [rsp + 0x70], r12w
je 0x1400a51c3
mov word [rbx], r13w
jmp 0x1400a51bf
lea r11, [0x1400f4610]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400a51bb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400a51c3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400abbbc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400abc43
mov rsi, rbx
cmp word [rax], bp
je 0x1400abc02
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400abbec
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400abbe8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400a13b4
mov rdi, rax
test rax, rax
je 0x1400abc30
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400b0be0
mov rbp, rdi
xor ecx, ecx
call fcn.1400a1174
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400afe00
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400a5c90
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400a5c90
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400aff50
cmp rax, 0xffffffffffffffff
je 0x1400aff50
xor edi, edi
test rbp, rbp
jle 0x1400afefb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400a2954
mov rbx, rax
test rax, rax
jne 0x1400afe88
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400afef1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400a0280
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400a43c0
cmp eax, 0xffffffff
je 0x1400afed1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400afe98
mov edx, r15d
mov ecx, r14d
call fcn.1400a0280
jmp 0x1400afef1
cmp byte [rsi + 0x38], dil
je 0x1400afee8
cmp dword [rsi + 0x34], 5
jne 0x1400afee8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x1400afef1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400a1174
jmp 0x1400aff64
jns 0x1400aff64
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400a5c90
cmp rax, 0xffffffffffffffff
jne 0x1400aff1c
cmp byte [rsi + 0x30], dil
je 0x1400aff64
mov edi, dword [rsi + 0x2c]
jmp 0x1400aff64
mov ecx, r14d
call fcn.1400ac208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400aff64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x1400aff64
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400aff5d
mov eax, dword [rsi + 0x2c]
jmp 0x1400aff62
mov eax, SafeArrayUnaccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400a5c90
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400b0710
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400b0738
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400b0738
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800014b0
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x1800331e0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbx, rcx
call fcn.180001550
lea r11, vtable.CTcpSocket.0
lea rcx, [rbx + 0x130]
mov qword [rbx], r11
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x378], 0xffffffffffffffff
mov qword [rbx + 0x148], rax
xor eax, eax
mov dword [rbx + 0x150], eax
mov qword [rbx + 0x368], rax
mov rax, rbx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.180016ca0
add rsp, 0x1d0
pop rbx
ret

Function at 0x1800016e0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rcx + 0x378]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov r8d, 0x80
xor ebx, ebx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x378]
call qword [sym.imp.KERNEL32.dll_CancelIo]
xchg dword [rdi + 0x150], ebx
mov rcx, qword [rdi + 0x378]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 0x148]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbx, qword [rsp + 0x48]
mov qword [rdi + 0x378], 0xffffffffffffffff
add rsp, 0x30
pop rdi
ret
Function at 0x180001d90
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
xor edi, edi
mov r14d, r8d
mov rsi, rdx
mov r13, rcx
mov ebp, r8d
mov r12d, edi
cmp r8d, 0x40000
jl 0x180001e21
nop dword [rax + rax]
mov ebx, edi
nop word [rax + rax]
mov rcx, qword [r13 + 0x378]
xor r9d, r9d
mov r8d, 0x40000
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x180001e04
inc ebx
cmp ebx, 0xf
jl 0x180001de0
cmp ebx, 0xf
je 0x180001e82
sub ebp, 0x40000
add r12d, eax
add rsi, 0x40000
cmp ebp, 0x40000
jge 0x180001dd0
test ebp, ebp
jle 0x180001e59
nop word [rax + rax]
mov rcx, qword [r13 + 0x378]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x180001e51
inc edi
cmp edi, 0xf
jl 0x180001e30
cmp edi, 0xf
je 0x180001e82
add r12d, eax
or eax, 0xffffffff
cmp r12d, r14d
cmove eax, r12d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
or eax, 0xffffffff
jmp 0x180001e63
Function at 0x180002290
Capabilities:
Check for time delay via queryperformancecounter
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov rsi, rcx
mov rcx, qword [rcx + 0x148]
mov rdi, r9
mov ebp, r8d
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rsi + 0x388]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor r14d, r14d
lea rcx, [rsi + 0x138]
mov eax, r14d
xchg dword [rsi + 0x150], eax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsi + 0x160]
mov r8, rdi
mov edx, 0xff
call fcn.1800172dc
lea rcx, [rsi + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [rsi + 0x160]
lea rcx, [rsi + 0x160]
lea eax, [rax + rax + 2]
movsxd r8, eax
mov dword [rsi + 0x360], eax
call fcn.180016d40
movsxd r11, dword [rsi + 0x360]
lea eax, [r11 + 4]
mov rcx, r11
mov dword [rsi + 0x364], eax
call fcn.180017074
mov qword [rsi + 0x380], rax
test rax, rax
je 0x1800023a5
mov rcx, qword [rsi + 0x378]
mov edi, 1
movzx r8d, bp
mov rax, qword [rcx + 8]
add rcx, 8
mov rdx, r12
mov r9d, edi
mov word [rsp + 0x28], r14w
mov qword [rsp + 0x20], r14
call qword [rax]
mov rcx, qword [rsi + 0x388]
mov edx, 0x1770
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800023ac
cmp eax, 0x102
je 0x180002398
cmp eax, 0xffffffff
jne 0x1800023a5
mov rcx, qword [rsi + 0x388]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x18000242f
lea rcx, [rsi + 0x140]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsi + 0x140]
sub rax, qword [rsi + 0x138]
pxor xmm0, xmm0
pxor xmm1, xmm1
cvtsi2sd xmm0, qword [rsi + 0x130]
cvtsi2sd xmm1, rax
divsd xmm0, qword [0x18002ded0]
divsd xmm1, xmm0
movsd qword [rsi + 0x128], xmm1
xchg dword [rsi + 0x150], edi
mov rcx, qword [rsi + 0x388]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea r11, [rsp + 0x60]
lea r8, [0x180002450]
mov qword [rsp + 0x28], r11
mov r9, rsi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r14d
call fcn.1800171e8
mov qword [rsi + 0x390], rax
mov al, 1
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x180002af0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
mov r12, rdx
mov rsi, rcx
lea rax, vtable.CManager.0
mov qword [rcx], rax
mov qword [rcx + 8], rdx
mov rax, qword [rdx]
mov rdx, rcx
mov rcx, r12
call qword [rax + 0x18]
xor r9d, r9d
xor r8d, r8d
mov r13d, 1
mov edx, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi + 0x10], rax
lea rax, vtable.CAudioManager.0
mov qword [rsi], rax
lea rbp, [rsi + 0x128]
lea rax, vtable.CAudioCode.0
mov qword [rbp], rax
xorpd xmm1, xmm1
movsd qword [0x18003c3d0], xmm1
movsd qword [0x18003c3d8], xmm1
movsd qword [0x18003c3c8], xmm1
movsd qword [0x18003c3c0], xmm1
movq rdx, xmm1
lea rcx, str.x0_is:_d_n
call fcn.180018b98
call fcn.180004d80
call fcn.180004950
nop
mov rcx, rsi
call fcn.180002f20
mov ecx, 0x19090
call fcn.180017074
mov rbx, rax
xor edi, edi
test rax, rax
je 0x180002c25
mov word [rax + 8], r13w
mov dword [rax + 0xc], 0x5622
mov eax, reloc.WS2_32.dll_recv
mov word [rbx + 0x10], ax
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x38], rdi
mov qword [rbx + 0x40], rdi
mov qword [rbx + 0x30], rdi
mov dword [rbx + 0x24], edi
inc dword [0x18003d4c4]
lea rax, vtable.CWaveRecord.0
mov qword [rbx], rax
mov dword [rbx + 0x48], r13d
mov qword [rbx + 0x19050], rbp
mov dword [rbx + 0x19088], 0x3f800000
lea rcx, [rbx + 0x19060]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x180002c28
mov rbx, rdi
mov qword [rsi + 0x138], rbx
mov qword [rbx + 0x19058], r12
mov ecx, 0x19070
call fcn.180017074
test rax, rax
je 0x180002c55
mov rdx, rbp
mov rcx, rax
call fcn.180003b70
mov rbx, rax
jmp 0x180002c58
mov rbx, rdi
mov qword [rsi + 0x130], rbx
cmp dword [rbx + 0x58], 0
je 0x180002c6d
call fcn.180001490
nop
jmp 0x180002cba
lea rax, [rbx + 0x28]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x180003780]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x180002c9f
call fcn.180001490
nop
jmp 0x180002cba
mov dword [rbx + 0x58], r13d
mov rcx, rbx
call fcn.1800038d0
test eax, eax
jne 0x180002cba
mov rcx, rbx
call fcn.180003830
nop
jmp 0x180002cba
mov rax, rsi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x1800031e0
Capabilities:
Capture microphone audio

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1800331e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp dword [rcx + 0x3c], 0
mov rbx, rcx
je 0x180003213
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180016ca0
add rsp, 0x50
pop rbx
ret
movzx eax, word [rcx + 8]
movzx r8d, word [rbx + 0x10]
mov ecx, dword [rcx + 0xc]
mov word [rsp + 0x32], ax
mov edx, r8d
mov word [rsp + 0x3e], r8w
mov dword [rsp + 0x34], ecx
mov qword [rsp + 0x68], rdi
mov edi, 1
imul edx, eax
mov eax, edx
lea r8, [rsp + 0x30]
xor r9d, r9d
mov dword [rsp + 0x28], edi
mov word [rsp + 0x30], di
imul eax, ecx
shr eax, 3
xor ecx, ecx
mov dword [rsp + 0x38], eax
mov eax, edx
cdq
and edx, 7
add eax, edx
or edx, 0xffffffff
sar eax, 3
mov word [rsp + 0x3c], ax
xor eax, eax
mov word [rsp + 0x40], ax
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINMM.dll_waveInOpen]
mov dword [rbx + 0x20], eax
test eax, eax
jne 0x1800032b9
mov eax, dword [0x18003d4c4]
mov r9d, dword [rbx + 0x24]
lea rcx, [rbx + 0x18]
lea r8, [rsp + 0x30]
or edx, 0xffffffff
mov dword [rsp + 0x28], 0x20000
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINMM.dll_waveInOpen]
mov dword [rbx + 0x20], eax
test eax, eax
je 0x1800032bd
xor eax, eax
jmp 0x1800032c2
mov dword [rbx + 0x3c], edi
mov eax, edi
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180016ca0
add rsp, 0x50
pop rbx
ret

Function at 0x1800032e0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x38], 0
mov rbx, rcx
jne 0x1800032f7
xor eax, eax
add rsp, 0x20
pop rbx
ret
cmp qword [rcx + 0x28], 0
je 0x180003361
mov ecx, dword [rcx + 0x24]
mov qword [rsp + 0x38], rdi
mov edi, gethostbyname
lea edx, [rdi - 0x20]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
nop word [rax + rax]
mov rcx, qword [rbx + 0x28]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x30], 0x103
jne 0x180003354
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
dec edi
jne 0x180003320
mov rcx, qword [rbx + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rdi, qword [rsp + 0x38]
mov qword [rbx + 0x28], 0
mov dword [rbx + 0x38], 0
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x180003380
Capabilities:
Capture microphone audio
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x38], edi
je 0x1800033a6
call fcn.180001490
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rax, [rcx + 0x24]
mov r9, rcx
lea r8, [0x1800030a0]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x28], rax
test rax, rax
je 0x180003394
mov rcx, rbx
mov dword [rbx + 0x38], 1
call fcn.1800031e0
test eax, eax
je 0x180003453
mov rcx, rbx
call fcn.180003520
test eax, eax
je 0x180003417
cmp dword [rbx + 0x44], edi
jne 0x18000340a
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18000340a
call qword [sym.imp.WINMM.dll_waveInStart]
mov dword [rbx + 0x20], eax
test eax, eax
je 0x180003423
call fcn.180001490
mov rcx, rbx
call fcn.180003630
cmp dword [rbx + 0x3c], edi
jne 0x18000343a
call fcn.180001490
jmp 0x180003453
mov dword [rbx + 0x44], 1
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18000341c
call qword [sym.imp.WINMM.dll_waveInClose]
mov qword [rbx + 0x18], rdi
mov dword [rbx + 0x3c], edi
mov dword [rbx + 0x20], eax
mov rcx, rbx
call fcn.1800032e0
mov rbx, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x30
pop rdi
ret

Function at 0x180003520
Capabilities:
Capture microphone audio

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x40], 0
mov rbx, rcx
je 0x180003537
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.WINMM.dll_waveInReset]
mov dword [rbx + 0x20], eax
test eax, eax
jne 0x18000352f
mov qword [rsp + 0x30], rbp
mov ecx, 0x1e0
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
call fcn.180017074
xor edi, edi
mov qword [rbx + 0x30], rax
mov esi, edi
nop dword [rax]
xor ecx, ecx
mov eax, edi
lea rbp, [rax + rax*2]
mov rax, qword [rbx + 0x30]
shl rbp, 4
mov qword [rax + rbp], rcx
mov qword [rax + rbp + 8], rcx
mov qword [rax + rbp + 0x10], rcx
mov qword [rax + rbp + 0x18], rcx
mov qword [rax + rbp + 0x20], rcx
mov qword [rax + rbp + 0x28], rcx
mov ecx, 0x3c0
call fcn.180017074
mov rcx, qword [rbx + 0x30]
mov r8d, gethostbyname
mov qword [rsi + rcx], rax
mov rax, qword [rbx + 0x30]
mov dword [rax + rsi + 8], 0x3c0
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x18]
add rdx, rbp
call qword [sym.imp.WINMM.dll_waveInPrepareHeader]
mov dword [rbx + 0x20], eax
test eax, eax
jne 0x180003612
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x18]
lea r8d, [rax + 0x30]
add rdx, rbp
call qword [sym.imp.WINMM.dll_waveInAddBuffer]
mov dword [rbx + 0x20], eax
test eax, eax
jne 0x180003612
inc edi
add rsi, 0x30
cmp edi, 0xa
jb 0x180003570
mov dword [rbx + 0x40], 1
mov eax, 1
jmp 0x180003614
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
ret
Function at 0x180003830
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x58], 0
mov rbx, rcx
jne 0x180003847
xor eax, eax
add rsp, 0x20
pop rbx
ret
cmp qword [rcx + 0x20], 0
je 0x1800038b1
mov ecx, dword [rcx + 0x28]
mov qword [rsp + 0x38], rdi
mov edi, gethostbyname
lea edx, [rdi - 0x20]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
nop word [rax + rax]
mov rcx, qword [rbx + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x30], 0x103
jne 0x1800038a4
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
dec edi
jne 0x180003870
mov rcx, qword [rbx + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rdi, qword [rsp + 0x38]
mov qword [rbx + 0x20], 0
mov dword [rbx + 0x58], 0
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x1800047e0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x1800046f0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x38
ret

Function at 0x180004830
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov esi, r8d
mov r8, rcx
mov ebx, edx
lea rcx, [0x18003d4e0]
mov edx, 0xff
mov rdi, r9
call fcn.1800172dc
lea rcx, [0x18003d6e4]
mov r8, rdi
mov edx, 0xff
mov dword [0x18003d6e0], ebx
call fcn.1800172dc
xor eax, eax
lea r8, [0x1800046f0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x18003d948], esi
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor al, al
add rsp, 0x30
pop rdi
ret