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

Disassembly:
cmp rdx, 0x20
jae 0x14013eadb
jmp fcn.140087d00
jmp fcn.14007ee80

Function at 0x14013eda0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rdi, qword [rcx]
test rdi, rdi
je 0x14013edf2
mov r11, qword [rsi + 8]
mov r9, qword [rsi + 0x10]
cmp r9, r11
jae 0x14013edf2
movzx eax, byte [rdi + r9]
cmp eax, 0x49
je 0x14013ee0d
cmp eax, 0x42
jne 0x14013edf2
lea rcx, [r9 + 1]
mov qword [rsi + 0x10], rcx
cmp rcx, r11
jae 0x14013ee4a
cmp byte [rdi + rcx], 0x5f
jne 0x14013ee4a
lea rax, [r9 + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14013ef42
mov rcx, rsi
xor edx, edx
call fcn.14013a9c0
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc r9
mov qword [rsi + 0x10], r9
mov rcx, rsi
xor edx, edx
call fcn.14013a9c0
test al, al
jne 0x14013ee45
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14013eebc
lea rdx, [0x140402212]
mov r8d, 1
call fcn.1400802e0
test al, al
je 0x14013eebc
mov dil, 2
jmp 0x14013ee01
xor eax, eax
mov r10d, 0x3e
nop word cs:[rax + rax]
mov r8b, 1
cmp rcx, r11
jae 0x14013ef9c
movzx edx, byte [rdi + rcx]
cmp dl, 0x5f
je 0x14013ef36
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14013ee9f
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14013ee8e
add dl, 0xa9
jmp 0x14013ee9d
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14013ef9c
add dl, 0xe3
mov ebx, edx
inc rcx
mov qword [rsi + 0x10], rcx
mul r10
jo 0x14013ef9c
movzx edx, bl
add rax, rdx
jae 0x14013ee60
jmp 0x14013ef9c
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14013ee01
xor ebx, ebx
lea r14, [0x140406590]
nop word cs:[rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14013eef4
cmp byte [rax + rcx], 0x45
je 0x14013eff4
sub rbx, 1
jb 0x14013ef19
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14013ef19
mov r8d, 2
mov rdx, r14
call fcn.1400802e0
test al, al
jne 0x14013ee45
mov rcx, rsi
call fcn.14013f000
test al, al
jne 0x14013ee45
mov rax, qword [rsi]
test rax, rax
jne 0x14013eee0
jmp 0x14013ee01
inc rcx
mov qword [rsi + 0x10], rcx
inc rax
je 0x14013ef9c
cmp rax, r9
jae 0x14013ef99
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14013efed
cmp qword [rsi + 0x20], 0
je 0x14013efe6
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.14013eda0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14013ee03
mov r8b, 1
xor ebx, ebx
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14013efdc
lea rax, [0x1404025a1]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.1400802e0
mov dil, 2
test al, al
jne 0x14013ee01
mov qword [rsi], 0
mov byte [rsi + 8], bl
xor edi, edi
jmp 0x14013ee01
mov bl, 1
xor r8d, r8d
jmp 0x14013ef9e
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14013ee01
Function at 0x140141e60
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc0
movaps xmmword [rsp + 0xb0], xmm6
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x60], 4
mov dword [rsp + 0xa8], 0x400010
mov rax, qword [rcx + 8]
test rax, rax
je 0x140141ec9
mov edx, dword [rcx + 0x10]
mov dword [rsp + 0x88], edx
mov qword [rsp + 0x90], rax
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x140141efa
mov rdx, qword [rcx + 0x28]
xor ebx, ebx
lea r8, [0x14043af48]
xor esi, esi
cmp rdx, rbx
je 0x140141ef3
movzx edi, byte [rax + rbx]
or esi, dword [r8 + rdi*4]
inc rbx
jmp 0x140141ee1
mov dword [rsp + 0x98], esi
mov rsi, qword [rcx + 0x38]
mov r15, qword [rcx + 0x40]
lea r14, [r15*8]
test r15, r15
je 0x140141f47
xor ebx, ebx
mov rax, r15
shr rax, 0x3c
sete al
jne 0x140142014
mov bl, al
shl rbx, 3
mov rcx, r14
mov rdx, rbx
call fcn.140059422
mov rdi, rax
test rax, rax
jne 0x140141f4c
mov rcx, r14
mov rdx, rbx
call fcn.140332820
ud2
mov edi, 8
xor eax, eax
mov rcx, r14
test rcx, rcx
je 0x140141f67
mov rdx, qword [rsi + rax*8]
mov qword [rdi + rax*8], rdx
inc rax
add rcx, 0xfffffffffffffff8
jmp 0x140141f51
lea rcx, [rsp + 0x60]
mov dword [rcx + 4], eax
mov qword [rcx + 8], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rcx
and qword [rsp + 0x40], 0
lea rdx, [0x140405390]
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.Secur32.dll_AcquireCredentialsHandleA]
test eax, eax
je 0x140141fbd
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov esi, 1
jmp 0x140141fe1
movaps xmm6, xmmword [rsp + 0x50]
mov ecx, 0x20
call fcn.1401417bf
mov rbx, rax
mov eax, 1
mov qword [rbx], rax
mov qword [rbx + 8], rax
movups xmmword [rbx + 0x10], xmm6
xor esi, esi
test r15, r15
je 0x140141ff7
mov r8d, 8
mov rcx, rdi
mov rdx, r14
call fcn.14001bc10
mov rax, rsi
mov rdx, rbx
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14007aaf0
ud2

Function at 0x140142554
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
and qword [r8], 0
mov edx, 0x53
call qword [sym.imp.Secur32.dll_QueryContextAttributesW]
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x14014257e
mov rdx, qword [rsp + 0x20]
jmp 0x140142586
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret
Function at 0x140150ce0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x38]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140150d13
test ecx, ecx
jne 0x140150d62
movzx r15d, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140150d20
test ecx, ecx
jne 0x140150d62
mov rcx, rdi
call fcn.140150bc0
movzx r10d, al
test bl, bl
jne 0x140150d69
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x140150d56.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x140150edc]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x140150d56.2
xor r10d, r10d
test bl, bl
je 0x140150d30
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140150ebe
mov r11, qword [rdi]
lea r9, [r11 + rcx]
movzx r8d, byte [rdi + 0x10]
cmp rdx, rcx
jne 0x140150d9b
xor edi, edi
jmp 0x140150e18
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x140150de0
nop word cs:[rax + rax]
cmp byte [rax], 0x5c
je 0x140150dfb
inc rsi
dec rax
cmp rsi, 1
jne 0x140150dc0
jmp 0x140150e18
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x140150dfb
cmp ebx, 0x5c
je 0x140150dfb
inc rsi
dec rax
cmp rsi, 1
jne 0x140150de0
jmp 0x140150e18
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x140150ecc
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x140150e42
mov al, 9
cmp rdx, 2
je 0x140150e46
cmp rdx, 1
jne 0x140150e56
cmp byte [r9], 0x2e
jne 0x140150e56
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140150e56
mov al, 0xa
jmp 0x140150e56
cmp byte [r9], 0x2e
jne 0x140150e56
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x140150d56.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x140150d56.2
mov esi, 2
jmp case.0x140150d56.2
lea r8, str.library_std_srcpath.rs
call fcn.140332cf0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.140332cf0
ud2
Function at 0x140154c50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4f0
mov rbx, rdx
mov rsi, rcx
mov eax, dword [rdx + 0x10]
movzx ebp, word [rdx + 0x40]
movzx r15d, word [rdx + 0x42]
movzx r12d, word [rdx + 0x44]
mov dword [rdx + 0x10], 0
cmp eax, 1
jne 0x140154cad
mov r14, qword [rbx + 8]
cmp bp, 0x2e
jne 0x140154dae
test r15w, r15w
je 0x140154cad
cmp r15w, 0x2e
jne 0x140154dae
test r12w, r12w
jne 0x140154dae
lea r14, [rsp + 0x80]
mov r8d, 0x250
mov rcx, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rdi, qword [rbx]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140154d94
mov r14, qword [rbx + 8]
lea rbx, [rsp + 0x80]
mov rbp, qword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x140154d10
mov rcx, rdi
mov rdx, rbx
call rbp
test eax, eax
je 0x140154d94
cmp word [rsp + 0xac], 0x2e
jne 0x140154d39
movzx eax, word [rsp + 0xae]
test ax, ax
je 0x140154d00
cmp ax, 0x2e
jne 0x140154d39
cmp word [rsp + 0xb0], 0
je 0x140154d00
lock inc qword [r14]
jle 0x140154e99
mov rdi, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x40], eax
movzx ebp, word [rsp + 0xac]
movzx r15d, word [rsp + 0xae]
movzx r12d, word [rsp + 0xb0]
lea rdx, [rsp + 0xb2]
jmp 0x140154dd9
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x12
jne 0x140154e25
mov qword [rsi], 0
jmp 0x140154e87
lock inc qword [r14]
jle 0x140154e99
lea rdx, [rbx + 0x46]
mov rdi, qword [rbx + 0x14]
mov eax, dword [rbx + 0x3c]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rbx + 0x2c]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rbx + 0x1c]
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x2d2]
mov r8d, 0x21e
call fcn.1403318a0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x70], eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x2d2]
mov r8d, 0x21e
call fcn.1403318a0
jmp 0x140154e37
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
xor r14d, r14d
mov qword [rsi + 8], rdi
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x20], xmm1
mov eax, dword [rsp + 0x70]
mov dword [rsi + 0x30], eax
mov word [rsi + 0x34], bp
mov word [rsi + 0x36], r15w
mov word [rsi + 0x38], r12w
lea rcx, [rsi + 0x3a]
lea rdx, [rsp + 0x80]
mov r8d, 0x21e
call fcn.1403318a0
mov qword [rsi + 0x258], r14
mov qword [rsi], 1
add rsp, 0x4f0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2
Function at 0x14015a830
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1e8
mov rsi, rcx
mov rdi, qword [rdx]
mov rbx, qword [rdx + 8]
movzx ebp, word [rdx + 0x10]
mov rax, qword [0x140482110]
cmp rax, 3
jne 0x14015a957
cmp rbx, 0x17f
ja 0x14015a969
lea rcx, [rsp + 0x68]
mov rdx, rdi
mov r8, rbx
call fcn.1403318a0
mov byte [rsp + rbx + 0x68], 0
lea r8, [rbx + 1]
cmp rbx, 0xe
ja 0x14015a8a9
lea rcx, [rbx + 1]
xor eax, eax
xor edx, edx
nop
cmp byte [rsp + rdx + 0x68], 0
je 0x14015a8bc
inc rdx
cmp rcx, rdx
jne 0x14015a890
mov rdx, r8
test rax, rax
jne 0x14015a8c6
jmp 0x14015a921
lea rdx, [rsp + 0x68]
xor ecx, ecx
call fcn.140084e10
test rax, rax
jne 0x14015a8c6
jmp 0x14015a921
mov eax, 1
test rax, rax
je 0x14015a921
cmp rdx, rbx
jne 0x14015a921
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x68]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14015a935
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x14015a948
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14015a94b
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
add rsp, 0x1e8
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.140337d50
cmp rbx, 0x17f
jbe 0x14015a867
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
mov r9d, ebp
add rsp, 0x1e8
pop rbx
pop rbp
pop rdi
pop rsi
jmp 0x140337db0
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.14007ac10
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140337e0e
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140337e97
not rdx
shr rdx, 0x3f
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400576f0
mov rdi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140337e6c
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140337e7f
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bx
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
je 0x140337e97
mov edx, 1
mov rcx, rdi
call fcn.1400576f0
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14015b310
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
movzx eax, dl
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x14015b333
xor eax, eax
jmp 0x14015b340
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret

Function at 0x14015b9d0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], r8
mov ecx, reloc.WS2_32.dll_recv
mov edx, 8
call fcn.140057660
mov rsi, rax
test rax, rax
je 0x14015baa1
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14015bb30]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14015ba93
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov qword [rbp - 0x10], rsi
call qword [rax]
mov rsi, qword [rbp - 0x10]
mov rax, qword [rsi + 8]
cmp qword [rax + 8], 0
je 0x14015ba72
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.1400576f0
mov edx, 8
mov rcx, rsi
call fcn.1400576f0
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], rsi
mov ecx, reloc.WS2_32.dll_recv
mov edx, 8
call fcn.140332820
ud2

Function at 0x14015bc50
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14015bc93
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140151ff0]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x60], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140332c30
ud2

Function at 0x140160320
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
test rcx, rcx
je 0x140160341
mov r8, qword [rcx]
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
mov qword [rcx], 0
cmp r8, 1
je 0x140160377
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, reloc.WS2_32.dll_recv
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140160372
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140160377
call fcn.14015bc50
mov r8d, dword [0x1404829c8]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + r8*8]
mov qword [rcx + 0x90], 1
mov qword [rcx + 0x98], rax
mov qword [rcx + 0xa0], rdx
add rsp, 0x38
ret
Function at 0x140161500
Capabilities:
Copy file

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r9
mov rsi, rcx
lea rcx, [rbp - 0x30]
call fcn.1401543d0
mov rcx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x28]
test rax, rax
je 0x1401615a6
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x18], rax
mov r8, qword [rbp + 0x50]
lea rcx, [rbp - 0x30]
mov rdx, rdi
call fcn.1401543d0
mov rbx, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x1401615b3
mov qword [rbp - 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x140161640]
lea r9, [rbp - 0x30]
mov r14, qword [rbp - 0x18]
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x1401615c4
mov rax, qword [rbp - 0x30]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test rbx, rbx
jne 0x1401615e1
jmp 0x1401615ee
mov qword [rsi + 8], rcx
mov qword [rsi], 1
jmp 0x140161602
mov qword [rsi + 8], rbx
mov qword [rsi], 1
mov r14, qword [rbp - 0x18]
jmp 0x1401615ee
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rbx, rbx
je 0x1401615ee
mov edx, 2
mov rcx, rdi
call fcn.1400576f0
cmp qword [rbp - 0x10], 0
je 0x140161602
mov edx, 2
mov rcx, r14
call fcn.1400576f0
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140161aa0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x140161acb
mov qword [rsi + 8], rbx
mov qword [rsi], 1
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rax, qword [0x140482110]
cmp rax, 3
jne 0x140161c44
cmp word [rbx], 0
mov eax, 2
mov ebp, reloc.WS2_32.dll_socket
cmove ebp, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140161b43
cmp word [rbx], 0
je 0x140161bb5
mov ecx, dword [rbx + 0x14]
movzx eax, word [rbx + 0x1c]
rol ax, 8
mov edx, dword [rbx + 0x18]
movups xmm0, xmmword [rbx + 4]
mov r8d, 0x1c
mov bp, reloc.WS2_32.dll_socket
jmp 0x140161bcd
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x140161b5c
mov edi, eax
cmp eax, 0x2726
jne 0x140161c33
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x140161c2c
mov r14, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
jne 0x140161b18
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140161c33
movzx eax, word [rbx + 6]
rol ax, 8
mov ecx, dword [rbx + 2]
xorps xmm0, xmm0
mov r8d, reloc.WS2_32.dll_recv
mov bp, 2
mov word [rsp + 0x30], bp
mov word [rsp + 0x32], ax
mov dword [rsp + 0x34], ecx
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x48], edx
lea rdx, [rsp + 0x30]
mov rcx, r14
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
je 0x140161c06
mov qword [rsi + 8], r14
mov qword [rsi], 0
jmp 0x140161ac0
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140161ac0
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov qword [rsi + 8], rdi
jmp 0x140161ab9
call fcn.140337d50
jmp 0x140161adc

Function at 0x1401633c5
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, rdx
mov r14, rcx
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x140163462
mov r12, rax
lea r15, [rsp + 0x30]
and qword [r15], 0
mov qword [r15 + 8], 8
and qword [r15 + 0x10], 0
movsxd rdi, dword [rsp + 0x2c]
shl rdi, 3
xor esi, esi
lea r13, [rsp + 0x48]
cmp rdi, rsi
je 0x140163445
mov rbx, qword [r12 + rsi]
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rcx, r13
mov rdx, rbx
mov r8, rax
call fcn.140163177
mov rcx, r15
mov rdx, r13
call fcn.1400f6dfd
add rsi, 8
jmp 0x140163415
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [r14], xmm0
mov rax, qword [rsp + 0x40]
mov qword [r14 + 0x10], rax
jmp 0x140163473
and qword [r14], 0
mov qword [r14 + 8], 8
and qword [r14 + 0x10], 0
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140167876
Capabilities:
Get memory capacity

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rsi, rcx
xorps xmm6, xmm6
lea rdi, [rsp + 0x90]
movaps xmmword [rdi], xmm6
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
mov dword [rdi], 0x40
mov rcx, rdi
call sub.KERNEL32.dll_GlobalMemoryStatusEx
mov rax, qword [rdi + 8]
mov r14d, 0x3e8
xor edx, edx
div r14
mov qword [rsi + 0x130], rax
mov rax, qword [rdi + 0x10]
xor edx, edx
div r14
mov qword [rsi + 0x138], rax
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x50], xmm6
movaps xmmword [rcx + 0x40], xmm6
movaps xmmword [rcx + 0x30], xmm6
movaps xmmword [rcx + 0x20], xmm6
movaps xmmword [rcx + 0x10], xmm6
movaps xmmword [rcx], xmm6
and qword [rcx + 0x60], 0
mov edx, 0x68
call sub.psapi.dll_GetPerformanceInfo
cmp eax, 1
jne 0x140167974
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
xor edx, edx
sub rbx, rax
cmovb rbx, rdx
mov rdi, qword [rsp + 0x28]
sub rdi, rax
cmovb rdi, rdx
mov rax, rcx
mul rdi
seto r8b
xor edx, edx
div r14
mov rdi, rax
mov rax, rcx
mul rbx
seto cl
movabs rbx, 0x4189374bc6a7ef
test r8b, r8b
cmovne rdi, rbx
xor edx, edx
div r14
test cl, cl
cmovne rax, rbx
mov qword [rsi + 0x140], rax
mov qword [rsi + 0x148], rdi
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140168833
Capabilities:
Get disk size

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rbx, rcx
imul r15, rdx, 0x90
xor edi, edi
lea r14, [rsp + 0x28]
mov rsi, rcx
cmp r15, rdi
je 0x140168894
cmp qword [rsi + 0x30], 0
je 0x140168884
and qword [rsp + 0x28], 0
mov rcx, qword [rbx + rdi + 0x60]
xor edx, edx
xor r8d, r8d
mov r9, r14
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x140168884
mov rax, qword [rsp + 0x28]
mov qword [rbx + rdi + 0x38], rax
add rsi, 0x90
add rdi, 0x90
jmp 0x140168852
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret