joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ec5f
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rdx + 0x98]
mov rdx, qword [rdx + 0x90]
cmp rdx, rcx
jb 0x14000edff
mov rax, qword [rdi + 0x80]
xorps xmm0, xmm0
lea rbx, [rsp + 0x20]
movups xmmword [rbx + 0x30], xmm0
mov dword [rbx], ecx
mov dword [rbx + 4], 1
mov qword [rbx + 8], rax
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], rbx
lea rcx, [rdi + 8]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x90316
jg 0x14000ed78
cmp eax, 0x80090318
je 0x14000edd6
test eax, eax
jne 0x14000edc6
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rdi + 0x80]
mov r9, qword [rdi + 0x90]
sub rcx, rdx
mov r8d, dword [rsp + 0x30]
mov rax, rcx
mov qword [rdi + 0x70], 0
add rax, r8
jb 0x14000ee0d
cmp r9, rax
jb 0x14000ee1e
lea rax, [rdi + 0x60]
add rdx, rcx
add r8, rdx
mov rcx, rax
call fcn.14002224e
mov qword [rdi + 0x78], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x98]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.14000ebc6
xor eax, eax
cmp qword [rdi + 0x98], 0
sete al
mov qword [rdi + 0x58], rax
mov byte [rsi + 1], 0
jmp 0x14000edf5
cmp eax, 0x90317
je 0x14000edef
cmp eax, 0x90321
jne 0x14000edc6
mov dword [rdi + 0xe0], 0x10000
xor ebx, ebx
mov byte [rdi + 0xe4], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x98]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.14000ebc6
mov qword [rdi + 0x58], 0
mov byte [rsi + 1], bl
jmp 0x14000edf5
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
jmp 0x14000edf5
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0x58], rax
mov byte [rsi + 1], 0
jmp 0x14000edf3
mov byte [rsi + 1], 1
xor ebx, ebx
mov byte [rsi], bl
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
lea r8, [0x14004ee68]
call fcn.140043100
ud2
lea r8, [0x14004ee80]
mov rdx, rax
call fcn.1400431c0
ud2
lea r8, [0x14004ee80]
mov rcx, rax
mov rdx, r9
jmp 0x14000ee06
Function at 0x140018262
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
mov r9, rcx
add qword [rcx + 0x10], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x14001829d
mov r15d, 8
sub r15, r11
cmp r8, r15
mov rax, r15
cmovb rax, r8
cmp rax, 3
jbe 0x1400182a5
mov r14d, dword [rdx]
mov r10d, 4
jmp 0x1400182ab
xor r15d, r15d
jmp 0x14001835b
xor r10d, r10d
xor r14d, r14d
mov rcx, r10
or rcx, 1
cmp rcx, rax
jae 0x1400182ce
movzx edi, word [rdx + r10]
lea ecx, [r10*8]
shl rdi, cl
or r14, rdi
or r10, 2
cmp r10, rax
jae 0x1400182e5
movzx eax, byte [rdx + r10]
shl r10d, 3
mov ecx, r10d
shl rax, cl
or r14, rax
lea ecx, [r11*8]
shl r14, cl
or r14, qword [r9 + 0x38]
mov qword [r9 + 0x38], r14
cmp r15, r8
jbe 0x140018305
add r11, r8
jmp 0x14001842c
mov rdi, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x28]
mov rax, qword [r9 + 0x18]
add rax, rcx
rol rcx, 0xd
xor rdi, r14
xor rcx, rax
rol rax, 0x20
mov rsi, qword [r9 + 0x20]
add rsi, rdi
rol rdi, 0x10
xor rdi, rsi
add rax, rdi
rol rdi, 0x15
xor rdi, rax
add rsi, rcx
rol rcx, 0x11
mov qword [r9 + 0x30], rdi
xor rcx, rsi
rol rsi, 0x20
mov qword [r9 + 0x28], rcx
mov qword [r9 + 0x20], rsi
xor rax, r14
mov qword [r9 + 0x18], rax
sub r8, r15
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r15, r8
jae 0x1400183d1
mov rax, qword [r9 + 0x30]
mov rsi, qword [r9 + 0x18]
mov rcx, qword [r9 + 0x20]
mov rdi, qword [r9 + 0x28]
add rsi, rdi
rol rdi, 0xd
mov rbx, qword [rdx + r15]
xor rdi, rsi
rol rsi, 0x20
xor rax, rbx
add rcx, rax
rol rax, 0x10
xor rax, rcx
add rsi, rax
rol rax, 0x15
add rcx, rdi
rol rdi, 0x11
xor rdi, rcx
rol rcx, 0x20
xor rax, rsi
xor rsi, rbx
add r15, 8
cmp r15, r8
jb 0x14001837e
mov qword [r9 + 0x30], rax
mov qword [r9 + 0x18], rsi
mov qword [r9 + 0x28], rdi
mov qword [r9 + 0x20], rcx
cmp r11d, 3
jbe 0x1400183e3
mov esi, dword [rdx + r15]
mov r8d, 4
jmp 0x1400183e8
xor r8d, r8d
xor esi, esi
mov rax, r8
or rax, 1
cmp rax, r11
jae 0x14001840e
lea rax, [r8 + r15]
movzx eax, word [rdx + rax]
lea ecx, [r8*8]
shl rax, cl
or rsi, rax
or r8, 2
cmp r8, r11
jae 0x140018428
add r15, r8
movzx eax, byte [rdx + r15]
shl r8d, 3
mov ecx, r8d
shl rax, cl
or rsi, rax
mov qword [r9 + 0x38], rsi
mov qword [r9 + 0x40], r11
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14001b4fd
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov rbx, qword [rcx + 0x1008]
mov rdi, qword [rcx + 0x1018]
inc rdi
mov qword [rcx + 0x1018], rdi
add rdi, qword [rcx + 0x1010]
lea r8, [rcx + 0x820]
lea r10, [0x14004fc30]
mov r11d, 0x7f8
lea r9, str.No_entropy_available:
mov rax, qword [r10]
mov rdx, qword [r10 + 8]
lea r14, [r8 + rdx*8]
lea r15, [r8 + rax*8]
xor r12d, r12d
mov rax, rbx
shl rax, 0x15
xor rax, rbx
not rax
add rax, qword [r14 + r12 - 0x18]
mov rsi, qword [r15 + r12 - 0x18]
mov rbx, qword [r15 + r12 - 0x10]
mov rdx, rsi
and rdx, r11
add rdi, qword [rcx + rdx + 0x808]
add rdi, rax
mov qword [r15 + r12 - 0x18], rdi
shr rdi, 8
and rdi, r11
add rsi, qword [rcx + rdi + 0x808]
mov qword [r15 + r12 - 0x818], rsi
mov rdx, rax
shr rdx, 5
xor rdx, rax
add rdx, qword [r14 + r12 - 0x10]
mov rax, rbx
and rax, r11
add rsi, qword [rcx + rax + 0x808]
add rsi, rdx
mov qword [r15 + r12 - 0x10], rsi
shr rsi, 8
and rsi, r11
add rbx, qword [rcx + rsi + 0x808]
mov qword [r15 + r12 - 0x810], rbx
mov rax, rdx
shl rax, 0xc
xor rax, rdx
mov rdx, qword [r15 + r12 - 8]
add rax, qword [r14 + r12 - 8]
mov rsi, rdx
and rsi, r11
add rbx, qword [rcx + rsi + 0x808]
add rbx, rax
mov qword [r15 + r12 - 8], rbx
shr rbx, 8
and rbx, r11
add rdx, qword [rcx + rbx + 0x808]
mov qword [r15 + r12 - 0x808], rdx
mov rbx, rax
shr rbx, 0x21
xor rbx, rax
mov rdi, qword [r15 + r12]
add rbx, qword [r14 + r12]
mov rax, rdi
and rax, r11
add rdx, qword [rcx + rax + 0x808]
add rdx, rbx
mov qword [r15 + r12], rdx
shr rdx, 8
and rdx, r11
add rdi, qword [rcx + rdx + 0x808]
mov qword [r15 + r12 - 0x800], rdi
add r12, 0x20
cmp r12, 0x400
jne 0x14001b552
add r10, 0x10
cmp r10, r9
jne 0x14001b540
mov qword [rcx + 0x1008], rbx
mov qword [rcx + 0x1010], rdi
mov qword [rcx], 0x100
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14001fe80
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 0x14001fed2
mov r11, qword [rsi + 8]
mov r9, qword [rsi + 0x10]
cmp r9, r11
jae 0x14001fed2
movzx eax, byte [rdi + r9]
cmp eax, 0x49
je 0x14001feed
cmp eax, 0x42
jne 0x14001fed2
lea rcx, [r9 + 1]
mov qword [rsi + 0x10], rcx
cmp rcx, r11
jae 0x14001ff2a
cmp byte [rdi + rcx], 0x5f
jne 0x14001ff2a
lea rax, [r9 + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140020022
mov rcx, rsi
xor edx, edx
call fcn.14001ba60
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.14001ba60
test al, al
jne 0x14001ff25
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14001ff9c
lea rdx, [0x14005000b]
mov r8d, 1
call fcn.140005cc0
test al, al
je 0x14001ff9c
mov dil, 2
jmp 0x14001fee1
xor eax, eax
mov r10d, 0x3e
nop word cs:[rax + rax]
mov r8b, 1
cmp rcx, r11
jae 0x14002003e
movzx edx, byte [rdi + rcx]
cmp dl, 0x5f
je 0x140020016
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14001ff7f
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14001ff6e
add dl, 0xa9
jmp 0x14001ff7d
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14002003e
add dl, 0xe3
mov ebx, edx
inc rcx
mov qword [rsi + 0x10], rcx
mul r10
jo 0x14002003e
movzx edx, bl
add rax, rdx
jae 0x14001ff40
jmp 0x14002003e
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14001fee1
xor ebx, ebx
lea r14, [0x1400503e6]
nop word cs:[rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14001ffd4
cmp byte [rax + rcx], 0x45
je 0x1400200cc
sub rbx, 1
jb 0x14001fff9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14001fff9
mov r8d, 2
mov rdx, r14
call fcn.140005cc0
test al, al
jne 0x14001ff25
mov rcx, rsi
call fcn.1400200e0
test al, al
jne 0x14001ff25
mov rax, qword [rsi]
test rax, rax
jne 0x14001ffc0
jmp 0x14001fee1
inc rcx
mov qword [rsi + 0x10], rcx
inc rax
je 0x14002003e
cmp rax, r9
jae 0x14002003b
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
jbe 0x14002008f
mov bl, 1
xor r8d, r8d
jmp 0x140020040
mov r8b, 1
xor ebx, ebx
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14002007e
lea rax, [0x1400503b1]
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.140005cc0
mov dil, 2
test al, al
jne 0x14001fee1
mov qword [rsi], 0
mov byte [rsi + 8], bl
xor edi, edi
jmp 0x14001fee1
cmp qword [rsi + 0x20], 0
je 0x140020088
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.14001fe80
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14001fee3
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14001fee1
Function at 0x1400281e0
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 + 0x39]
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 0x140028213
test ecx, ecx
jne 0x140028262
movzx r15d, byte [rdi + 0x38]
cmp al, 0xff
je 0x140028220
test ecx, ecx
jne 0x140028262
mov rcx, rdi
call fcn.1400280c0
movzx r10d, al
test bl, bl
jne 0x140028269
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x140028256.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x1400283dc]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x140028256.2
xor r10d, r10d
test bl, bl
je 0x140028230
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1400283be
mov r11, qword [rdi]
lea r9, [r11 + rcx]
movzx r8d, byte [rdi + 0x10]
cmp rdx, rcx
jne 0x14002829b
xor edi, edi
jmp 0x140028318
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x1400282e0
nop word cs:[rax + rax]
cmp byte [rax], 0x5c
je 0x1400282fb
inc rsi
dec rax
cmp rsi, 1
jne 0x1400282c0
jmp 0x140028318
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x1400282fb
cmp ebx, 0x5c
je 0x1400282fb
inc rsi
dec rax
cmp rsi, 1
jne 0x1400282e0
jmp 0x140028318
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x1400283cc
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x140028342
mov al, 9
cmp rdx, 2
je 0x140028346
cmp rdx, 1
jne 0x140028356
cmp byte [r9], 0x2e
jne 0x140028356
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140028356
mov al, 0xa
jmp 0x140028356
cmp byte [r9], 0x2e
jne 0x140028356
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.0x140028256.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.0x140028256.2
mov esi, 2
jmp case.0x140028256.2
lea r8, [0x140051fa8]
call fcn.1400430f0
ud2
lea r8, [0x140051fc0]
call fcn.1400430f0
ud2
Function at 0x14002fb40
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
test dx, dx
mov eax, 2
mov edi, 0x17
cmove edi, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14002fb8f
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14002fc03
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x14002fba3
cmp eax, 0x2739
jne 0x14002fbf0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14002fbea
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
je 0x14002fc0a
mov qword [rsi + 8], rdi
jmp 0x14002fb86
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0x38
pop rdi
pop rsi
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
add rsp, 0x38
pop rdi
pop rsi
jmp qword [sym.imp.ws2_32.dll_closesocket]

Function at 0x14002fcc0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
cmp qword [rdx], 0
je 0x14002fd3d
mov r8, rdx
mov eax, 0x3e8
mul qword [rdx + 8]
mov r10d, 0xffffffff
jo 0x14002fd40
mov r8d, dword [r8 + 0x10]
mov r9d, r8d
imul rdx, r9, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14002fd40
imul rdx, r9, 0x431bde83
shr rdx, 0x32
imul edx, edx, 0xf4240
mov r9, rax
inc r9
sete r11b
cmp r8d, edx
setne dl
cmove r9, rax
and dl, r11b
test dl, 1
jne 0x14002fd40
mov r10d, 0xffffffff
cmp r9, r10
cmovb r10, r9
test r10, r10
jne 0x14002fd40
lea rax, str.cannot_set_a_0_duration_timeout
jmp 0x14002fd7a
xor r10d, r10d
mov dword [rsp + 0x34], r10d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1006
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14002fd6c
xor eax, eax
jmp 0x14002fd7a
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x14002fd80
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
cmp qword [rdx], 0
je 0x14002fdfd
mov r8, rdx
mov eax, 0x3e8
mul qword [rdx + 8]
mov r10d, 0xffffffff
jo 0x14002fe00
mov r8d, dword [r8 + 0x10]
mov r9d, r8d
imul rdx, r9, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14002fe00
imul rdx, r9, 0x431bde83
shr rdx, 0x32
imul edx, edx, 0xf4240
mov r9, rax
inc r9
sete r11b
cmp r8d, edx
setne dl
cmove r9, rax
and dl, r11b
test dl, 1
jne 0x14002fe00
mov r10d, 0xffffffff
cmp r9, r10
cmovb r10, r9
test r10, r10
jne 0x14002fe00
lea rax, str.cannot_set_a_0_duration_timeout
jmp 0x14002fe3a
xor r10d, r10d
mov dword [rsp + 0x34], r10d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1005
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14002fe2c
xor eax, eax
jmp 0x14002fe3a
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
Function at 0x140030290
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rcx, rdx
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x1400302ca
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400302e1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0x20
pop rsi
ret

Function at 0x1400302f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rcx, rdx
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14003032f
cdqe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140030357
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x140030344
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140030357
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0x20
pop rsi
ret

Function at 0x140030580
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, 0x10
mov edx, 8
call fcn.140003ac0
mov rsi, rax
test rax, rax
je 0x140030668
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400306f0]
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 0x14003065a
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 0x140030633
mov r8, qword [rsi]
cmp qword [rax + 0x10], 0x11
jb 0x140030624
mov r8, qword [r8 - 8]
mov rcx, qword [0x140061c40]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x140061c40]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
call qword [sym.imp.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, 0x10
mov edx, 8
call fcn.140042f60
ud2
Function at 0x140030830
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0xa0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov dword [rbp + 0x14], ecx
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
mov edx, 0x10
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x140030875
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
add rsp, 0xa0
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 8], rax
lea rax, [rbp + 8]
mov qword [rbp - 0x30], rax
lea rax, [0x1400294a0]
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x14]
mov qword [rbp - 0x20], rax
lea rax, [0x14000a610]
mov qword [rbp - 0x18], rax
lea rax, str.RNG_broken:___fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 2
lea rax, [0x1400530a8]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 2
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 2
lea rdx, [0x140053118]
lea rcx, [rbp - 0x60]
call fcn.140043030
ud2

Function at 0x1400346d0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rsi
sub rsp, 0x30
test rcx, rcx
je 0x1400346f6
mov rsi, qword [rcx]
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
mov qword [rcx], 0
cmp rsi, 1
je 0x14003479c
mov rsi, qword [0x140061c58]
mov qword [rsp + 0x20], rsi
cmp rsi, 0xffffffffffffffff
je 0x140034742
test rsi, rsi
jne 0x140034766
lea rdx, [0x140053038]
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x140034749
mov rcx, qword [rsp + 0x20]
xor eax, eax
lock cmpxchg qword [0x140061c58], rcx
jne 0x140034756
mov rsi, qword [rsp + 0x20]
jmp 0x140034766
mov eax, 0xc00000bb
jmp 0x140034795
mov qword [0x140061c58], 0xffffffffffffffff
jmp 0x140034795
mov rsi, rax
mov rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov r8d, 0x10
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140034795
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14003479c
mov ecx, eax
call fcn.140030830
mov ecx, dword [0x140061cd0]
mov rsi, qword gs:[0x58]
mov rcx, qword [rsi + rcx*8]
mov byte [rcx + 0x18], 1
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rdx
add rsp, 0x30
pop rsi
ret
Function at 0x1400347d0
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x1400347f2
mov qword [rsi + 8], rbx
mov qword [rsi], 1
jmp 0x1400348cd
mov rax, qword [0x140061c48]
cmp rax, 3
jne 0x1400348d6
movzx edx, word [rbx]
lea rcx, [rsp + 0x20]
call fcn.14002fb40
cmp qword [rsp + 0x20], 0
mov rdi, qword [rsp + 0x28]
je 0x14003482d
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x1400348cd
cmp word [rbx], 0
je 0x140034851
mov eax, dword [rbx + 4]
movzx ecx, word [rbx + 0xc]
rol cx, 8
mov edx, dword [rbx + 8]
movups xmm0, xmmword [rbx + 0xe]
mov r8d, 0x1c
mov bx, 0x17
jmp 0x140034874
mov ecx, dword [rbx + 2]
movzx eax, word [rbx + 6]
shl rax, 0x20
or rax, rcx
rol cx, 8
shr rax, 0x10
xorps xmm0, xmm0
mov r8d, 0x10
mov bx, 2
mov word [rsp + 0x20], bx
mov word [rsp + 0x22], cx
mov dword [rsp + 0x24], eax
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400348ab
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1400348cd
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call fcn.140044660
jmp 0x140034803

Function at 0x14003945c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003924c
Function at 0x14003c4c0
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 0x14003c4f0
xor eax, eax
jmp 0x14003c5b3
mov rbp, rbx
cmp word [rax], si
je 0x14003c515
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003c4fc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003c4f8
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.14003c410
movsxd r14, eax
test eax, eax
jne 0x14003c553
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x14003c4e9
mov rcx, r14
call fcn.14003d374
mov rdi, rax
test rax, rax
jne 0x14003c56c
xor ecx, ecx
call fcn.14003aaa0
jmp 0x14003c548
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.14003c410
test eax, eax
jne 0x14003c59d
mov rcx, rdi
call fcn.14003aaa0
jmp 0x14003c5a7
xor ecx, ecx
call fcn.14003aaa0
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