joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140346c58
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140346c8f
call fcn.140349e90
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14034b21c
xor eax, eax
jmp 0x140346d1d
mov rdx, r9
mov rcx, r8
call fcn.140346d40
mov rbx, rax
test rax, rax
je 0x140346d1a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140346db0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140346d07
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140349ed0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140346cee
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140346cfd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14030c910
jmp 0x140346d1a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140346d17
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140346e84
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140346fcc

Function at 0x14034a210
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14040b018]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1403cfeb8]
mov rbp, rcx
call fcn.1403634d4
xor edi, edi
test rax, rax
je 0x14034a2f6
mov ebx, edi
call fcn.140349e90
mov r14d, dword [rax]
call fcn.140349e90
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14034fc90
mov rsi, rax
test rax, rax
je 0x14034a287
call fcn.140349e90
mov dword [rax], r14d
jmp 0x14034a2b1
call fcn.140349e90
cmp dword [rax], 0x22
jne 0x14034a2ee
call fcn.140349e90
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14034fc90
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14034a2ee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14034a2b5
cmp rax, 3
je 0x14034a2d0
mov rcx, rsi
call fcn.14034a16c
test al, al
je 0x14034a2e1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14034a2e1
mov dil, 1
mov rcx, rbx
call fcn.14030c910
mov al, dil
jmp 0x14034a2f8
mov rcx, rbx
call fcn.14030c910
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140334bf0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14034c810
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, [0x14041c550]
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 0x14034c867
cmp word [rdx], r13w
jne 0x14034c867
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14034c86c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14034c991
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14034c9b2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14034c8a5
mov rdx, r9
mov word [rbx], cx
jmp 0x14034c8cc
cmp r9, r8
jae 0x14034c8dc
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 0x14034c886
jmp 0x14034c991
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 0x14034c986
cmp dword [rsp + 0x80], esi
je 0x14034c986
lea r8, [0x14041c550]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14034c95e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14034c92e
mov word [rbx], r13w
jmp 0x14034c98e
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 0x14034c93b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14034c98e
cmp word [rsp + 0x70], r13w
jne 0x14034c96b
cmp rbx, r14
je 0x14034c928
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14034bb4c
cmp word [rsp + 0x70], r13w
je 0x14034c991
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, [0x14041c550]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14034c98b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14034c991
Function at 0x140364c98
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.14035ec24
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 0x140364d39
cmp ebx, dword [rsp + 0x30]
je 0x140364d32
test esi, esi
je 0x140364d32
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140364d0d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140364d1a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140364cf7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140364d1e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140364d3b
mov eax, 1
jmp 0x140364d3b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1403662ac
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 0x1403662dc
xor eax, eax
jmp 0x14036639f
mov rbp, rbx
cmp word [rax], si
je 0x140366301
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1403662e8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1403662e4
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.1403661cc
movsxd r14, eax
test eax, eax
jne 0x14036633f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1403662d5
mov rcx, r14
call fcn.14020d630
mov rdi, rax
test rax, rax
jne 0x140366358
xor ecx, ecx
call fcn.14030c910
jmp 0x140366334
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.1403661cc
test eax, eax
jne 0x140366389
mov rcx, rdi
call fcn.14030c910
jmp 0x140366393
xor ecx, ecx
call fcn.14030c910
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 0x1403663bc
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 0x140366443
mov rsi, rbx
cmp word [rax], bp
je 0x140366402
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1403663ec
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1403663e8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14020d630
mov rdi, rax
test rax, rax
je 0x140366430
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140336540
mov rbp, rdi
xor ecx, ecx
call fcn.14030c910
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 0x140368994
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.1403414c4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140368a1e
cmp byte [rbp - 0x21], r15b
je 0x140368a19
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140368a54
call fcn.14035f3f4
test eax, eax
jne 0x140368a40
cmp byte [rbp - 0x21], r15b
je 0x140368a38
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140368a54
cmp byte [rbp - 0x21], r15b
je 0x140368a51
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.140346adc
test eax, eax
jne 0x140368af4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1403414c4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140368a93
cmp byte [rbp - 0x21], r15b
je 0x140368ac8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140368ac8
call fcn.14035f3f4
test eax, eax
jne 0x140368ab4
cmp byte [rbp - 0x21], r15b
je 0x140368aad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140368ac8
cmp byte [rbp - 0x21], r15b
je 0x140368ac5
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.140346adc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140368af4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140368af7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140368b05
mov rcx, rdi
call fcn.14030c910
cmp byte [rbp + 0x3f], r15b
je 0x140368b14
mov rcx, qword [rbp + 0x27]
call fcn.14030c910
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 0x140368c1c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14040b018]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140368c66
call fcn.140349eb0
mov dword [rax], recv
call fcn.140349e90
mov dword [rax], recv
call fcn.14034b21c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140334bf0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140368c71
lea eax, [rbx + 1]
jmp 0x140368c53
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 0x140368c51
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140368c53
Function at 0x14036a0ac
Capabilities:
Get file size

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

Function at 0x140371f70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x1403720a0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14040b018]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x60], 0
je 0x1403720fc
mov edi, dword [rsi + 0x5c]
test bl, bl
je 0x1403720dc
mov dword [rsi + 0x5c], 0xffffffff
mov byte [rsi + 0x60], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140334bf0
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], rdi
mov eax, dword [rsi + 0x58]
cmp eax, 2
mov r14d, 1
cmovge r14d, eax
xor r15d, r15d
mov rcx, qword [rsi + 0x40]
call fcn.1403540c0
cmp eax, 0xffffffff
je 0x14037217e
mov byte [rsp + r15 + 0x58], al
inc r15
cmp r14, r15
jne 0x14037211e
mov byte [rsp + 0x57], 0xaa
cmp byte [rsi + 0x61], 0
je 0x140372188
mov al, byte [rsp + 0x58]
mov byte [rsp + 0x57], al
test bl, bl
je 0x14037215a
movzx edi, byte [rsp + 0x57]
mov dword [rsi + 0x5c], edi
jmp 0x1403720dc
mov edi, r14d
test rdi, rdi
jle 0x14037222e
mov rdx, qword [rsi + 0x40]
dec rdi
mov eax, edi
movzx ecx, byte [rsp + rax + 0x58]
call fcn.14035bfe4
cmp eax, 0xffffffff
jne 0x14037215d
mov edi, 0xffffffff
jmp 0x1403720dc
lea r15, [rsp + 0x48]
mov qword [r15], rdi
lea r12, [rsp + 0x40]
mov qword [r12], rdi
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r13d, dword [rdx]
movzx ebp, word [rdx + 4]
movzx edi, word [rdx + 6]
lea r9, [rsp + r14 + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x57]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x58]
call qword [case.0x1403339d6.0]
cmp eax, 1
jne 0x140372217
mov rax, qword [rsi + 0x50]
mov dword [rax], r13d
mov word [rax + 4], bp
mov word [rax + 6], di
cmp r14d, 8
je 0x14037217e
mov rcx, qword [rsi + 0x40]
call fcn.1403540c0
cmp eax, 0xffffffff
je 0x14037217e
mov byte [rsp + r14 + 0x58], al
inc r14
jmp 0x140372199
cmp eax, 2
je 0x14037217e
cmp eax, 3
je 0x140372144
jmp 0x14037214c
movzx edi, byte [rsp + 0x57]
jmp 0x1403720dc
Function at 0x140372550
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x140372680
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14040b018]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x5e], 0
je 0x1403726dc
movzx edi, word [rsi + 0x5c]
test bl, bl
je 0x1403726bc
mov word [rsi + 0x5c], 0xffff
mov byte [rsi + 0x5e], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140334bf0
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], rdi
mov eax, dword [rsi + 0x58]
cmp eax, 2
mov r14d, 1
cmovge r14d, eax
xor r15d, r15d
mov rcx, qword [rsi + 0x40]
call fcn.1403540c0
cmp eax, 0xffffffff
je 0x140372769
mov byte [rsp + r15 + 0x58], al
inc r15
cmp r14, r15
jne 0x1403726fe
mov word [rsp + 0x56], 0xaaaa
cmp byte [rsi + 0x5f], 0
je 0x140372772
movsx eax, byte [rsp + 0x58]
mov word [rsp + 0x56], ax
test bl, bl
je 0x140372742
movzx edi, word [rsp + 0x56]
mov word [rsi + 0x5c], di
jmp 0x1403726bc
mov edi, r14d
test rdi, rdi
jle 0x140372818
mov rdx, qword [rsi + 0x40]
dec rdi
mov eax, edi
movsx eax, byte [rsp + rax + 0x58]
movzx ecx, ax
call fcn.14035bfe4
cmp eax, 0xffffffff
jne 0x140372745
mov di, 0xffff
jmp 0x1403726bc
lea r15, [rsp + 0x48]
mov qword [r15], rdi
lea r12, [rsp + 0x40]
mov qword [r12], rdi
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r13d, dword [rdx]
movzx ebp, word [rdx + 4]
movzx edi, word [rdx + 6]
lea r9, [rsp + r14 + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x56]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x58]
call qword [case.0x1403339d6.0]
cmp eax, 1
jne 0x140372801
mov rax, qword [rsi + 0x50]
mov dword [rax], r13d
mov word [rax + 4], bp
mov word [rax + 6], di
cmp r14d, 8
je 0x140372769
mov rcx, qword [rsi + 0x40]
call fcn.1403540c0
cmp eax, 0xffffffff
je 0x140372769
mov byte [rsp + r14 + 0x58], al
inc r14
jmp 0x140372783
cmp eax, 2
je 0x140372769
cmp eax, 3
je 0x140372726
jmp 0x140372730
movzx edi, word [rsp + 0x56]
jmp 0x1403726bc

Function at 0x140372ab0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x140372ae7
movabs rcx, 0xf000000000000000
shl rax, 4
movsx r9, byte [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
inc rdx
cmp rdx, r8
jne 0x140372ac1
ret

Function at 0x140372b50
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x140372b88
movabs rcx, 0xf000000000000000
shl rax, 4
movzx r9d, word [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
add rdx, 2
cmp rdx, r8
jne 0x140372b61
ret
Function at 0x14038ea50
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x17], 0
jns 0x14038ea5d
mov rcx, qword [rcx]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x140397640
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14039767c
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140397686
add rdi, rbx
sub rsi, rbx
jne 0x14039765a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14034cb60
int3

Function at 0x1403984f0
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
lea rax, [0x1403de5a0]
mov qword [rcx], rax
mov byte [rcx + 8], 0
lea rcx, str.qwave.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x14039859e
mov rdi, rax
lea rdx, str.QOSCreateHandle
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call rbx
mov qword [rsi + 0x10], rax
lea rdx, str.QOSCloseHandle
mov rcx, rdi
call rbx
mov qword [rsi + 0x18], rax
lea rdx, str.QOSAddSocketToFlow
mov rcx, rdi
call rbx
mov qword [rsi + 0x20], rax
lea rdx, str.QOSRemoveSocketFromFlow
mov rcx, rdi
call rbx
mov qword [rsi + 0x28], rax
lea rdx, str.QOSSetFlow
mov rcx, rdi
call rbx
mov qword [rsi + 0x30], rax
cmp qword [rsi + 0x10], 0
je 0x14039859e
cmp qword [rsi + 0x18], 0
je 0x14039859e
cmp qword [rsi + 0x20], 0
je 0x14039859e
cmp qword [rsi + 0x28], 0
je 0x14039859e
test rax, rax
je 0x14039859e
mov al, 1
xchg byte [rsi + 8], al
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x140398710
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
mov r14, r9
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14040b018]
xor rax, rsp
mov qword [rsp + 0xe0], rax
lea rbx, [rsp + 0x50]
mov r8d, 0x90
mov rcx, rbx
mov dl, 0xaa
call fcn.1403369a0
mov rcx, rbx
call fcn.140242c40
mov dword [rbx + 0x80], 0x80
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x1403988b9
lea rax, [rsp + 0xd0]
mov r8, qword [rax + 8]
mov rdx, qword [rdi + 0x10]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
mov r8d, ebp
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x1403987f7
mov ebx, eax
movaps xmm0, xmmword [0x1403df810]
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm0
mov dword [rcx + 0x10], 0xaaaaaaaa
call fcn.14031f630
test ebx, ebx
js 0x140398824
mov r8d, dword [rsp + 0xd0]
mov rdx, qword [rsp + 0xd8]
lea r15, [rsp + 0x30]
mov rcx, r15
call fcn.140220250
test al, al
je 0x14039881f
test r14, r14
je 0x140398827
mov eax, dword [rsp + 0x40]
mov dword [r14 + 0x10], eax
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [r14], xmm0
jmp 0x140398827
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140398864
mov ecx, eax
call fcn.1402386a0
mov ebx, eax
mov rcx, rsi
mov edx, eax
xor r8d, r8d
xor r9d, r9d
call fcn.140398a40
jmp 0x140398842
mov ebx, 0xffffff94
xor r15d, r15d
mov r8, qword [rdi + 0x10]
mov rcx, rsi
mov edx, ebx
mov r9, r15
call fcn.140398a40
lea rcx, [rsp + 0x30]
call fcn.14031f620
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140334bf0
mov eax, ebx
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
test rdi, rdi
je 0x14039887a
mov eax, 1
lock xadd dword [rdi + 8], eax
cmp eax, 0x7fffffff
je 0x1403988bc
mov rcx, qword [rsi + 0xa8]
mov qword [rsi + 0xa8], rdi
test rcx, rcx
je 0x1403988a4
lock dec dword [rcx + 8]
jne 0x1403988a4
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1403339d6.0]
mov dword [rsi + 0xb8], ebp
mov rcx, rsi
call fcn.140398fa0
mov ebx, 0xffffffff
jmp 0x140398842
int3
int3
Function at 0x1403988c0
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r14, r9
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14040b018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea r15, [rsp + 0x30]
mov r8d, 0x90
mov rcx, r15
mov dl, 0xaa
call fcn.1403369a0
mov rcx, r15
call fcn.140242c40
test r14, r14
je 0x140398933
lea r8, [rsp + 0xb0]
mov r15, qword [r8 + 8]
mov rcx, r14
mov rdx, r15
call fcn.1402201e0
test al, al
je 0x14039899a
mov eax, dword [rsp + 0xb0]
jmp 0x140398943
mov dword [rsp + 0xb0], 0
xor eax, eax
xor r15d, r15d
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rsi + 8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
mov r8d, edi
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x1403989bb
mov ebp, eax
mov r8, qword [rbx + 0x10]
mov rcx, rsi
mov edx, eax
mov r9, r14
call fcn.140398aa0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140334bf0
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
add rsi, 0xe0
mov ebp, 0xffffff94
mov rcx, rsi
mov edx, 0x56
mov r8d, 0xffffff94
call fcn.14021fdf0
jmp 0x140398978
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1403989de
mov ecx, eax
call fcn.1402386a0
mov ebp, eax
mov rcx, rsi
mov edx, eax
xor r8d, r8d
xor r9d, r9d
jmp 0x140398973
test rbx, rbx
je 0x1403989f4
mov eax, 1
lock xadd dword [rbx + 8], eax
cmp eax, 0x7fffffff
je 0x140398a36
mov rcx, qword [rsi + 0xb0]
mov qword [rsi + 0xb0], rbx
test rcx, rcx
je 0x140398a1e
lock dec dword [rcx + 8]
jne 0x140398a1e
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1403339d6.0]
mov dword [rsi + 0xbc], edi
mov rcx, rsi
call fcn.140398fa0
mov ebp, 0xffffffff
jmp 0x140398978
int3