joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1403c34c8
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.14038bb30
sub rsp, rax
mov rax, qword [0x140515698]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1403c1c88
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1403c3517
mov rax, rbp
jmp 0x1403c361f
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 + 0x5231b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1403d1eac
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x5231b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1403c361b
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 0x1403c361b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1403d1eac
test rax, rax
js 0x1403c361b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1403c361b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1403c360d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1403c360d
cmp byte [rcx], 0xd
jne 0x1403c35f3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1403c3602
cmp byte [rcx + 1], 0xa
jne 0x1403c3602
inc rcx
jmp 0x1403c3602
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x515d80]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1403c35d5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1403c361f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14038bd70
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 0x1403c43a4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1403c41a0
Function at 0x1403d1104
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1403d111a
mov al, 1
jmp 0x1403d117a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1403d112b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1403d1178
mov ecx, dword [rcx + 0x18]
nop
call fcn.1403d2ff0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1403d1178
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1403d1178
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1403d1178
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1403d117a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1403d124c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1405231b0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1403d12a3
cmp word [rdx], r13w
jne 0x1403d12a3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1403d12a8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1403d13cd
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1403d13ee
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1403d12e1
mov rdx, r9
mov word [rbx], cx
jmp 0x1403d1308
cmp r9, r8
jae 0x1403d1318
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1403d12c2
jmp 0x1403d13cd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1403d13c2
cmp dword [rsp + 0x80], esi
je 0x1403d13c2
lea r8, [0x1405231b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1403d139a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1403d136a
mov word [rbx], r13w
jmp 0x1403d13ca
mov ecx, recv
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1403d1377
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1403d13ca
cmp word [rsp + 0x70], r13w
jne 0x1403d13a7
cmp rbx, r14
je 0x1403d1364
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1403d1eb4
cmp word [rsp + 0x70], r13w
je 0x1403d13cd
mov ecx, recv
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1405231b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1403d13c7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1403d13cd
Function at 0x1403d59f0
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1403d5a20
xor eax, eax
jmp 0x1403d5ae3
mov rbp, rbx
cmp word [rax], si
je 0x1403d5a45
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1403d5a2c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1403d5a28
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1403cfbd8
movsxd r14, eax
test eax, eax
jne 0x1403d5a83
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1403d5a19
mov rcx, r14
call fcn.1403cb2c0
mov rdi, rax
test rax, rax
jne 0x1403d5a9c
xor ecx, ecx
call fcn.1403cb284
jmp 0x1403d5a78
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1403cfbd8
test eax, eax
jne 0x1403d5acd
mov rcx, rdi
call fcn.1403cb284
jmp 0x1403d5ad7
xor ecx, ecx
call fcn.1403cb284
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1403d5b00
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 0x1403d5b87
mov rsi, rbx
cmp word [rax], bp
je 0x1403d5b46
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1403d5b30
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1403d5b2c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1403cb2c0
mov rdi, rax
test rax, rax
je 0x1403d5b74
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1403a92d0
mov rbp, rdi
xor ecx, ecx
call fcn.1403cb284
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 0x1403d8ae0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1403caf24
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1403d8b81
cmp ebx, dword [rsp + 0x30]
je 0x1403d8b7a
test esi, esi
je 0x1403d8b7a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1403d8b55
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1403d8b62
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1403d8b3f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1403d8b66
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1403d8b83
mov eax, 1
jmp 0x1403d8b83
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1403db904
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140515698]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1403db94e
call fcn.1403bb43c
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1403bb45c
mov dword [rax], recv
call fcn.1403ac904
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14038bd70
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1403db959
lea eax, [rbx + 1]
jmp 0x1403db93b
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1403db939
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1403db93b
Function at 0x1403dcd5c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1403b7104
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1403dcde6
cmp byte [rbp - 0x21], r15b
je 0x1403dcde1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1403dce1c
call fcn.1403cdd6c
test eax, eax
jne 0x1403dce08
cmp byte [rbp - 0x21], r15b
je 0x1403dce00
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1403dce1c
cmp byte [rbp - 0x21], r15b
je 0x1403dce19
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1403bc804
test eax, eax
jne 0x1403dcebc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1403b7104
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1403dce5b
cmp byte [rbp - 0x21], r15b
je 0x1403dce90
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1403dce90
call fcn.1403cdd6c
test eax, eax
jne 0x1403dce7c
cmp byte [rbp - 0x21], r15b
je 0x1403dce75
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1403dce90
cmp byte [rbp - 0x21], r15b
je 0x1403dce8d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1403bc804
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1403dcebc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1403dcebf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1403dcecd
mov rcx, rdi
call fcn.1403cb284
cmp byte [rbp + 0x3f], r15b
je 0x1403dcedc
mov rcx, qword [rbp + 0x27]
call fcn.1403cb284
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1403ddcc4
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.1403d1eb4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1403d1eb4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1403dde14
cmp rax, 0xffffffffffffffff
je 0x1403dde14
xor edi, edi
test rbp, rbp
jle 0x1403dddbf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1403cc9a0
mov rbx, rax
test rax, rax
jne 0x1403ddd4c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1403dddb5
mov edx, 0x8000
mov ecx, r14d
call fcn.1403c396c
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.1403d0b9c
cmp eax, 0xffffffff
je 0x1403ddd95
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1403ddd5c
mov edx, r15d
mov ecx, r14d
call fcn.1403c396c
jmp 0x1403dddb5
cmp byte [rsi + 0x38], dil
je 0x1403dddac
cmp dword [rsi + 0x34], 5
jne 0x1403dddac
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
cmp byte [rsi + 0x30], dil
je 0x1403dddb5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1403cb284
jmp 0x1403dde28
jns 0x1403dde28
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1403d1eb4
cmp rax, 0xffffffffffffffff
jne 0x1403ddde0
cmp byte [rsi + 0x30], dil
je 0x1403dde28
mov edi, dword [rsi + 0x2c]
jmp 0x1403dde28
mov ecx, r14d
call fcn.1403d2ff0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1403dde28
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
jmp 0x1403dde28
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1403dde21
mov eax, dword [rsi + 0x2c]
jmp 0x1403dde26
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1403d1eb4
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 0x10001130
Capabilities:
Terminate thread

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x80], 0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
lea rax, [0x10013780]
mov qword [rsp + 0x48], rdi
mov rdi, rcx
mov esi, 2
mov qword [rcx], rax
je 0x100011b5
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.WINMM.dll_waveInStop]
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.WINMM.dll_waveInReset]
lea rbx, [rdi + 0x58]
mov rbp, rsi
nop
mov rdx, qword [rbx]
mov rcx, qword [rdi + 0x30]
mov r8d, gethostbyname
call qword [sym.imp.WINMM.dll_waveInUnprepareHeader]
add rbx, 8
dec rbp
jne 0x10001180
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.WINMM.dll_waveInClose]
mov rcx, qword [rdi + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
cmp byte [rdi + 0x81], 0
je 0x100011f6
mov rcx, qword [rdi + 0x78]
call qword [sym.imp.WINMM.dll_waveOutReset]
lea rbx, [rdi + 0x58]
mov rbp, rsi
nop
mov rdx, qword [rbx]
mov rcx, qword [rdi + 0x78]
mov r8d, gethostbyname
call qword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
add rbx, 8
dec rbp
jne 0x100011d0
mov rcx, qword [rdi + 0x78]
call qword [sym.imp.WINMM.dll_waveOutClose]
mov rbp, qword [rsp + 0x38]
lea rbx, [rdi + 0x58]
nop
mov rcx, qword [rbx - 0x48]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rbx]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rbx - 0x38]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rbx + 0x10]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
add rbx, 8
dec rsi
jne 0x10001200
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x50]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
Function at 0x10001510
Capabilities:
Capture microphone audio
Create thread
Resume thread

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x50], rbx
mov rbx, rcx
call qword [sym.imp.WINMM.dll_waveInGetNumDevs]
test eax, eax
jne 0x10001530
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rsi
lea r8, [0x10001360]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], r12
xor r12d, r12d
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x30], r12d
call qword [sym.imp.KERNEL32.dll_CreateThread]
movsxd r9, dword [rsp + 0x30]
lea r8, [rbx + 0x82]
lea rcx, [rbx + 0x30]
mov edx, 0xffff
mov dword [rsp + 0x28], 0x20000
mov qword [rbx + 0x50], rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
je 0x100015ae
mov rsi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x40]
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x68], rdi
lea rdi, [rbx + 0x58]
mov ebp, 2
nop
nop
nop
nop
mov rax, qword [rdi - 0x48]
mov rcx, qword [rdi]
mov r8d, gethostbyname
mov qword [rcx], rax
mov rcx, qword [rdi]
mov eax, dword [rbx + 8]
mov dword [rcx + 8], eax
mov rax, qword [rdi]
mov dword [rax + 0x18], r12d
mov rax, qword [rdi]
mov dword [rax + 0x1c], r12d
mov rdx, qword [rdi]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.WINMM.dll_waveInPrepareHeader]
add rdi, 8
dec rbp
jne 0x100015d0
movsxd rdx, dword [rbx + 0x38]
mov rcx, qword [rbx + 0x30]
lea r8d, [rbp + 0x30]
mov rdx, qword [rbx + rdx*8 + 0x58]
call qword [sym.imp.WINMM.dll_waveInAddBuffer]
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.WINMM.dll_waveInStart]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x40]
mov byte [rbx + 0x80], 1
mov rbx, qword [rsp + 0x50]
mov al, 1
add rsp, 0x48
ret

Function at 0x10001ee0
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1e0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1001b2a8]
mov qword [rsp + 0x1d8], rax
mov rbx, rcx
mov qword [rsp + 0x1d0], rcx
lea rax, [0x10013830]
mov qword [rcx], rax
add rcx, 8
call fcn.10001a00
nop
lea rcx, [rbx + 0x50]
call fcn.10001a00
nop
lea rcx, [rbx + 0x98]
call fcn.10001a00
nop
lea rcx, [rbx + 0xe0]
call fcn.10001a00
lea rdx, [rsp + 0x30]
mov cx, 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_CreateEventA]
mov qword [rbx + 0x138], rax
mov byte [rbx + 0x145], 0
mov qword [rbx + 0x130], 0xffffffffffffffff
mov byte [rsp + 0x1d0], 0x63
mov byte [rsp + 0x1d1], 0x40
mov byte [rsp + 0x1d2], WSAStartup
mov byte [rsp + 0x1d3], 0x75
mov byte [rsp + 0x1d4], gethostname
lea rax, [rsp + 0x1d0]
mov ecx, dword [rax]
mov dword [rbx + 0x140], ecx
movzx ecx, byte [rax + 4]
mov byte [rbx + 0x144], cl
mov rax, rbx
mov rcx, qword [rsp + 0x1d8]
call fcn.100120f0
add rsp, 0x1e0
pop rbx
ret
Function at 0x10002410
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x130]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov r8d, 0x80
mov word [rsp + 0x40], 1
mov word [rsp + 0x42], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x130]
call qword [sym.imp.KERNEL32.dll_CancelIo]
xor eax, eax
xchg dword [rbx + 0x145], eax
mov rcx, qword [rbx + 0x130]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbx + 0x138]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov qword [rbx + 0x130], 0xffffffffffffffff
add rsp, 0x30
pop rbx
ret

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

Disassembly:
mov rax, rsp
sub rsp, 0x48
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
xor edi, edi
cmp r8d, r9d
mov qword [rax - 0x18], r14
mov qword [rax - 0x20], r15
mov esi, r9d
mov rbp, rdx
mov r14, rcx
mov r13d, edi
mov r12d, r8d
mov r15d, r8d
jb 0x1000251f
mov ebx, edi
nop
nop
nop
nop
mov rcx, qword [r14 + 0x130]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10002501
inc ebx
cmp ebx, 0xf
jl 0x100024e0
cmp ebx, 0xf
je 0x10002556
mov ecx, 0xa
add r13d, eax
add rbp, rsi
call qword [sym.imp.KERNEL32.dll_Sleep]
sub r12d, esi
cmp r12d, esi
jae 0x100024d0
test r12d, r12d
jle 0x10002560
nop
nop
nop
mov rcx, qword [r14 + 0x130]
xor r9d, r9d
mov r8d, r12d
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10002551
inc edi
cmp edi, 0xf
jl 0x10002530
cmp edi, 0xf
jne 0x1000255d
mov eax, 0xffffffff
jmp 0x1000256c
add r13d, eax
mov eax, 0xffffffff
cmp r13d, r15d
cmove eax, r13d
mov r15, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x10002660
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
lea rax, [0x10013830]
mov qword [rcx], rax
mov byte [rcx + 0x145], 0
mov edx, 0xffffffff
mov rcx, qword [rcx + 0x128]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x130]
cmp rcx, 0xffffffffffffffff
je 0x1000270e
mov word [rsp + 0x58], 1
mov word [rsp + 0x5a], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x58]
mov edx, 0xffff
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x130]
call qword [sym.imp.KERNEL32.dll_CancelIo]
xor r11d, r11d
xchg dword [rbx + 0x145], r11d
mov rcx, qword [rbx + 0x130]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbx + 0x138]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov qword [rbx + 0x130], 0xffffffffffffffff
mov rcx, qword [rbx + 0x128]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x138]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rcx, [rbx + 0xe0]
call fcn.10001a40
nop
lea rcx, [rbx + 0x98]
call fcn.10001a40
nop
lea rcx, [rbx + 0x50]
call fcn.10001a40
nop
lea rcx, [rbx + 8]
add rsp, 0x40
pop rbx
jmp fcn.10001a40