joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b2e40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1a0]
add rdx, 0x3a0
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x1400b2e90
cmp qword [rdx + 0xa0], 0
je 0x1400b2e90
xor r9d, r9d
lea r8, str.REST__d
call fcn.1400f07c0
mov r8d, eax
test eax, eax
jne 0x1400b2e9a
mov dl, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rbx
call fcn.1400b1200
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400b2b40
add rsp, 0x20
pop rbx
ret

Function at 0x1400b3160
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1a0]
mov rbx, rcx
cmp dword [rax + 0x10], 1
jne 0x1400b31af
mov r9, qword [rdx + 0x440]
test r9, r9
je 0x1400b31af
lea r8, str.SIZE__s
add rdx, 0x3a0
call fcn.1400f07c0
mov r8d, eax
test eax, eax
jne 0x1400b31b9
mov dl, reloc.WS2_32.dll_socket
mov rcx, rbx
call fcn.1400b1200
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400b2e40
add rsp, 0x20
pop rbx
ret

Function at 0x1400b3400
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x1cc], 0
mov r10, rcx
mov r11, qword [rcx + 0x20]
je 0x1400b3459
cmp qword [r11 + 0x440], 0
je 0x1400b3459
movzx edx, byte [rcx + 0x139a]
mov rcx, r11
call fcn.1400b16c0
test eax, eax
je 0x1400b3459
mov rax, qword [r10 + 0x1a0]
mov r9b, reloc.WS2_32.dll_send
mov rdx, r11
mov rcx, r10
mov dword [rax + 0x10], 1
movzx r8d, byte [r10 + 0x139a]
add rsp, 0x28
jmp fcn.1400b1620
mov rdx, r11
mov rcx, r10
add rsp, 0x28
jmp fcn.1400b3160

Function at 0x1400b3470
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx + 0x20]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x1400b34ad
lea rdx, str.Couldnt_set_desired_mode
call fcn.14008bef0
lea eax, [rdi + 0x11]
jmp 0x1400b3509
cmp edx, 0xc8
je 0x1400b34c4
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.14008bfe0
cmp sil, 0x13
jne 0x1400b34d7
mov rdx, rbp
mov rcx, rbx
call fcn.1400b3160
jmp 0x1400b3505
cmp sil, 0x14
jne 0x1400b34e7
mov rcx, rbx
call fcn.1400b2170
jmp 0x1400b3505
cmp sil, 0x15
jne 0x1400b34f7
mov rcx, rbx
call fcn.1400b3150
jmp 0x1400b3505
cmp sil, 0x16
jne 0x1400b3507
mov rcx, rbx
call fcn.1400b3350
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bdb70
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1402e0f48]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1400bdbd4
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.1400c47f0
test al, al
je 0x1400bdbc8
mov dword [0x1402e0f48], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1402e0f48], 1
jmp 0x1400bdbd9
cmp eax, 2
je 0x1400bdc2b
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400bdc0a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1400bdc2b
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret

Function at 0x1400be5d0
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, qword [rcx + 0x10]
mov rdi, rdx
mov rbp, rcx
mov r8d, dword [rbx + 0x14]
lea rdx, [rbx + 0x18]
mov rcx, qword [rbx + 0x98]
lea rsi, [rbx + 0xe0]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400be625
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, rsi
mov rcx, rdi
mov r8d, eax
call fcn.1400bed60
jmp 0x1400be69b
mov rdx, rdi
mov rcx, rbp
call fcn.1400bea90
cmp dword [rbx], 5
lea rax, str.QUIC
lea rcx, [rbx + 0x114]
mov rdx, rbp
lea r9, [0x140237988]
cmove r9, rax
lea r8, str._s_socket__qd_connected:___s:_d_______s:_d_
mov eax, dword [rbx + 0x110]
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 0x144]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], eax
mov rax, qword [rbx + 0x98]
mov qword [rsp + 0x28], rcx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.14008c080
mov rcx, qword [rbx + 0x98]
mov edx, 1
call fcn.1400c94b0
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1400be810
Capabilities:
Connect socket

Disassembly:
mov rcx, qword [rcx + 0x10]
test r8b, r8b
jne 0x1400be82f
mov r8d, dword [rcx + 0x14]
lea rdx, [rcx + 0x18]
mov rcx, qword [rcx + 0x98]
jmp qword [sym.imp.WS2_32.dll_connect]
mov eax, 0xffffffff
ret
Function at 0x1400be840
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x148
mov rax, qword [0x1402dfc98]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword [rcx]
mov rdi, rcx
mov rsi, r9
mov rbp, r8
mov rcx, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x1400be8e1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400be8a5
mov dword [rsi], 0x51
jmp 0x1400be8da
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov ecx, ebx
call fcn.14009da30
mov rcx, qword [rdi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.14008bef0
mov rax, qword [rdi + 8]
mov dword [rax + 0xd74], ebx
mov dword [rsi], gethostname
mov rbx, 0xffffffffffffffff
mov edx, dword [rsi]
lea r8, str.nw_in_read_len_zu______d__err_d
mov rcx, qword [rdi + 8]
mov r9, rbp
mov dword [rsp + 0x28], edx
mov rdx, qword [rdi]
mov dword [rsp + 0x20], ebx
call fcn.14008c080
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401f6e90
add rsp, 0x148
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400bea60
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
mov edx, reloc.WLDAP32.dll_Ordinal_41
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x1400bea90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1402dfc98]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rbx, qword [rcx + 0x10]
mov rcx, qword [rax + 0x2e8]
test dword [rcx + 0x84], 0x800
jne 0x1400bebd1
mov rcx, qword [rbx + 0x98]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400beb61
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.14009da30
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.14008bef0
mov eax, 2
jmp 0x1400bebd3
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x144]
lea r8, [rbx + 0x114]
lea rcx, [rsp + 0x30]
call fcn.14008cda0
test al, al
jne 0x1400bebd1
mov qword [rsp + 0x1e0], rdi
call fcn.140209f74
mov ebx, dword [rax]
call fcn.140209f74
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.14009da30
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.14008bef0
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x1400bebd3
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1401f6e90
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x1400bee90
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1402dfc98]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov dword [rsp + 0x20], 4
mov eax, esi
lea r9, [rsp + 0x50]
cmp byte [rcx + 0xaba], al
mov rdi, rdx
mov rbx, rcx
mov edx, 0xffff
setne al
lea r8d, [rsi + 8]
mov rcx, rdi
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1400beeff
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, rbx
call fcn.14008bfe0
jmp 0x1400bef8e
mov ecx, dword [rbx + 0xa24]
mov dword [rsp + 0x58], 1
call fcn.14008e190
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0xa28]
call fcn.14008e190
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, recv
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1400bef8e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov r9d, eax
mov rcx, rbx
call fcn.14008bfe0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401f6e90
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400befb0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1402dfc98]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rax, rdx
mov dword [rsp + 0x30], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rbx, rcx
lea r9, [rsp + 0x30]
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1400bf026
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.14009da30
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, rbx
call fcn.14008bfe0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401f6e90
add rsp, 0x150
pop rbx
ret
Function at 0x1400ce5f0
Capabilities:
Encode data using xor

Disassembly:
push rbx
movsxd rbx, r9d
mov r10, r8
mov r11, rdx
cmp rdx, r8
je 0x1400ce752
mov qword [rsp + 0x10], rsi
lea rsi, [rcx - 1]
not rcx
shr rsi, 0x3f
shr rcx, 0x3f
and rsi, rcx
mov ecx, dword [rdx + 8]
xor ecx, dword [r8 + 8]
dec rsi
and ecx, esi
xor dword [rdx + 8], ecx
xor dword [r8 + 8], ecx
mov edx, dword [r8 + 0x10]
movq xmm4, rsi
xor edx, dword [r11 + 0x10]
and edx, esi
punpcklqdq xmm4, xmm4
xor dword [r11 + 0x10], edx
xor dword [r8 + 0x10], edx
mov ecx, dword [r11 + 0x14]
mov edx, dword [r8 + 0x14]
xor rdx, rcx
and edx, 4
and rdx, rsi
mov eax, edx
xor eax, ecx
xor ecx, ecx
mov dword [r11 + 0x14], eax
xor dword [r8 + 0x14], edx
mov edx, ecx
test r9d, r9d
jle 0x1400ce712
cmp ebx, 2
jb 0x1400ce712
mov r9, qword [r8]
lea rax, [rbx - 1]
mov r8, qword [r11]
mov qword [rsp + 0x18], rdi
lea rdi, [rbx - 1]
lea rdi, [r9 + rdi*8]
lea rax, [r8 + rax*8]
cmp r9, rax
ja 0x1400ce6a1
cmp rdi, r8
jae 0x1400ce70d
cmp r9, r10
ja 0x1400ce6ab
cmp rdi, r10
jae 0x1400ce70d
cmp r9, r11
ja 0x1400ce6b5
cmp rdi, r11
jae 0x1400ce70d
cmp r8, r10
ja 0x1400ce6bf
cmp rax, r10
jae 0x1400ce70d
cmp r8, r11
ja 0x1400ce6c9
cmp rax, r11
jae 0x1400ce70d
mov eax, ebx
and eax, 0xfffffffe
nop
movdqu xmm2, xmmword [rcx + r9]
add edx, 2
movdqu xmm1, xmmword [rcx + r8]
lea rcx, [rcx + 0x10]
movdqa xmm3, xmm2
pxor xmm3, xmm1
pand xmm3, xmm4
movdqa xmm0, xmm3
pxor xmm3, xmm2
pxor xmm0, xmm1
movdqu xmmword [rcx + r8 - 0x10], xmm0
movdqu xmmword [rcx + r9 - 0x10], xmm3
cmp edx, eax
jl 0x1400ce6d0
mov rdi, qword [rsp + 0x18]
movsxd rax, edx
cmp rax, rbx
jge 0x1400ce74d
nop word [rax + rax]
mov rcx, qword [r11]
mov rdx, qword [rcx + rax*8]
lea r8, [rcx + rax*8]
mov rcx, qword [r10]
mov r9, qword [rcx + rax*8]
xor r9, rdx
and r9, rsi
xor rdx, r9
mov qword [r8], rdx
mov rcx, qword [r10]
xor qword [rcx + rax*8], r9
inc rax
cmp rax, rbx
jl 0x1400ce720
mov rsi, qword [rsp + 0x10]
pop rbx
ret
Function at 0x1400f2c50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [section..data]
mov rbx, rax
test rax, rax
jne 0x1400f2c95
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x50], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x1400f2ce0
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x1400f2d42
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x1400f2d00
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x1400f2d83
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1402411e8]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1402411e9]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400f2d50
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret

Function at 0x1400f43c0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.1401f74c0
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x1401177d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r10d, r10d
movsxd rbx, r8d
mov r11, rdx
mov rdi, rcx
test r8d, r8d
jle 0x14011780f
mov r9, rdx
mov rdx, rcx
sub rdx, r9
movzx eax, byte [r9]
cmp byte [rdx + r9], al
jne 0x14011780f
inc r9
inc r10d
mov rax, r9
sub rax, r11
cmp rax, rbx
jl 0x1401177f4
lea edx, [r8 - 1]
movsxd rax, edx
test edx, edx
js 0x14011783a
mov r8, rdi
lea rcx, [rax + r11]
sub r8, r11
cmp byte [rcx + r8], 0
jne 0x14011783a
cmp byte [rcx], 0xff
jne 0x14011783a
dec edx
dec rcx
cmp rcx, r11
jns 0x140117824
cmp r10d, edx
jl case.0x140117893.2
jle 0x140117858
lea eax, [r10*8]
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
movsxd rax, r10d
movzx r8d, byte [rax + r11]
movzx r9d, byte [rax + rdi]
movzx edx, r8b
xor dl, r9b
movzx eax, dl
dec eax
cmp eax, 0x7e
ja case.0x140117893.2
lea r11, [0x140000000]
cdqe
movzx eax, byte [r11 + rax + 0x117908]
mov ecx, dword [r11 + rax*4 + 0x1178e8]
add rcx, r11
jmp rcx
mov eax, 7
jmp 0x1401178c4
mov eax, 6
jmp 0x1401178c4
mov eax, 5
jmp 0x1401178c4
mov eax, 4
jmp 0x1401178c4
mov eax, 3
jmp 0x1401178c4
mov eax, 2
jmp 0x1401178c4
mov eax, 1
test dl, r9b
jne case.0x140117893.2
and r8b, dl
lea eax, [rax + r10*8]
cmp r8b, dl
je 0x1401178da
mov eax, 0xffffffff
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x140118a80
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
mov r10, rdx
xor r11b, r11b
xor edx, edx
mov rsi, r9
mov rbx, rcx
test rcx, rcx
je 0x140118b94
test r10, r10
je 0x140118b94
movzx eax, byte [rcx]
test r8d, r8d
jne 0x140118ac5
cmp al, 0x7f
jbe 0x140118b8d
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x140118b9c
mov r11b, 0xff
cmp al, 0x80
jbe 0x140118adb
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x140118b9c
jne 0x140118b8d
mov eax, 1
lea rcx, [r10 - 1]
cmp r10, rax
jbe 0x140118b7e
cmp rcx, 8
jb 0x140118b70
and ecx, 7
mov rdx, r10
sub rdx, rcx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop dword [rax + rax]
movd xmm1, dword [rax + rbx]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
por xmm1, xmm3
movdqa xmm3, xmm1
movd xmm1, dword [rax + rbx + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
por xmm1, xmm2
movdqa xmm2, xmm1
cmp rax, rdx
jb 0x140118b10
por xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd edx, xmm2
cmp rax, r10
jae 0x140118b7e
nop
movzx ecx, byte [rax + rbx]
inc rax
or edx, ecx
cmp rax, r10
jb 0x140118b70
neg edx
sbb r11b, r11b
movzx r11d, r11b
mov edx, r11d
and edx, 1
mov eax, edx
add rax, r10
jmp 0x140118b9c
mov eax, 1
mov r10, rdx
mov qword [rsp + 0x10], rdi
test rsi, rsi
je 0x140118bf5
mov rdi, qword [r9]
test rdi, rdi
je 0x140118bf5
movzx r8d, r11b
lea r9, [rbx + r10]
and r8d, 1
mov byte [rdi], r11b
test r10, r10
je 0x140118bf2
mov ebx, edx
add rbx, rdi
nop word [rax + rax]
movzx edx, byte [r9 - 1]
lea r9, [r9 - 1]
dec r10
movzx ecx, r11b
xor edx, ecx
add r8d, edx
mov byte [rbx + r10], r8b
shr r8d, 8
test r10, r10
jne 0x140118bd0
add qword [rsi], rax
mov rdi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
pop rsi
ret
Function at 0x14011f720
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x14011f78c
movzx ecx, byte [rcx]
test cl, cl
je 0x14011f78c
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
or r9d, r11d
mov r8d, eax
mov edx, r9d
mov ecx, 0x20
shr edx, 2
add r11d, 0x100
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x14011f740
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret

Function at 0x14011f850
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x20
call fcn.1401f74c0
sub rsp, rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x14011f8e3
movzx eax, byte [rcx]
test al, al
je 0x14011f8e3
mov qword [rsp + 0x30], rsi
mov esi, 0x100
nop
movsx ecx, al
call fcn.1400f5b60
mov r9d, eax
mov edx, ebx
or r9d, esi
lea rdi, [rdi + 1]
mov eax, ebx
mov r8d, r9d
shr r8d, 2
mov ecx, 0x20
xor r8d, r9d
add esi, 0x100
and r8d, 0xf
imul r9d, r9d
sub ecx, r8d
shr rdx, cl
mov ecx, r8d
shl eax, cl
mov ebx, edx
or ebx, eax
movzx eax, byte [rdi]
xor ebx, r9d
test al, al
jne 0x14011f880
mov rsi, qword [rsp + 0x30]
mov eax, ebx
shr eax, 0x10
xor eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140121480
Capabilities:
Get thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.1401f74c0
sub rsp, rax
lea rcx, [0x1402e4010]
add rsp, 0x28
jmp fcn.1400f4220
Function at 0x140150350
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x30
call fcn.1401f74c0
sub rsp, rax
lea edx, [rax - 0x2f]
mov rbx, rcx
call fcn.1400e7c80
mov rdx, rax
mov rcx, rbx
mov rbp, rax
call fcn.1400e7af0
xor edi, edi
mov r14, rax
test rax, rax
je 0x1401503f7
lea r9d, [rdi + 1]
mov dword [rsp + 0x20], 0xf0000040
xor r8d, r8d
lea rcx, [rsp + 0x58]
xor edx, edx
mov esi, edi
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1401503d3
mov rcx, qword [rsp + 0x58]
mov r8, r14
mov edx, ebp
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x58]
test eax, eax
cmovne rsi, rbp
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r8, [rsi*8]
mov rdx, rsi
mov rcx, rbx
call fcn.1400e7b80
mov rcx, rbx
call fcn.1400e7d80
test rax, rax
jne 0x14015048b
mov edx, 1
mov rcx, rbx
call fcn.1400e7c80
mov rdx, rax
mov rcx, rbx
mov rsi, rax
call fcn.1400e7af0
mov rbp, rax
test rax, rax
je 0x140150483
mov r9d, socket
mov dword [rsp + 0x20], 0xf0000040
lea r8, str.Intel_Hardware_Cryptographic_Service_Provider
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140150463
mov rcx, qword [rsp + 0x58]
mov r8, rbp
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x58]
test eax, eax
cmovne rdi, rsi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r8, [rdi*8]
mov rdx, rdi
mov rcx, rbx
call fcn.1400e7b80
mov rcx, rbx
call fcn.1400e7d80
test rax, rax
jne 0x14015048b
mov rcx, rbx
call fcn.1400e7d80
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1401894d0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r15
mov eax, reloc.WLDAP32.dll_Ordinal_216
call fcn.1401f74c0
sub rsp, rax
mov rax, qword [0x1402dfc98]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r12, qword [rdx + 8]
xor esi, esi
mov r15, qword [rdx + 0x10]
mov rax, r12
sub rax, r8
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov rdi, r8
mov r13, rdx
mov ebp, esi
cmp r15, r8
jb 0x1401896b6
cmp r8, 0x40
ja 0x1401896b6
lea rax, [rsp + 0x40]
mov qword [rsp + 0x118], rbx
neg rax
mov qword [rsp + 0xd0], r14
and eax, 0x3f
lea r14, [rsp + 0x40]
add r14, rax
lea rax, [r8 + 0x100]
cmp r15, rax
jbe 0x14018956a
mov rbp, r15
sub rbp, r8
sub rbp, 0x100
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, r14
mov rbx, rsi
call fcn.1401f9330
mov r9, rsi
cmp rbp, r15
jae 0x140189627
mov r11, qword [r13 + 0x20]
mov r10, qword [rsp + 0x28]
lea r13, [r11 + r12]
nop word [rax + rax]
lea rdx, [r11 + rbp]
mov rax, rbp
xor rax, r10
mov rcx, rdx
sub rcx, r13
xor rcx, r12
lea r8, [rax - 1]
not rax
shr rax, 0x3f
shr r8, 0x3f
and r8, rax
mov rax, rbp
xor rax, r12
neg r8
or rcx, rax
mov rax, r8
xor rcx, rbp
or rax, rsi
shr rcx, 0x3f
and r8, r9
neg rcx
or rbx, r8
mov rsi, rcx
inc rbp
and rsi, rax
movzx eax, byte [rdx]
and al, sil
or byte [r9 + r14], al
inc r9
mov rcx, r9
mov rax, rdi
sub rcx, rdi
xor rax, r9
xor rcx, rdi
or rcx, rax
xor rcx, r9
shr rcx, 0x3f
neg rcx
and r9, rcx
cmp rbp, r15
jb 0x1401895a0
xor esi, esi
test rdi, rdi
je 0x14018969f
mov r9, qword [rsp + 0x30]
mov rax, rbx
and rax, 0xffffffffffffffdf
movzx r8d, byte [rax + r14]
mov rax, rbx
or rax, 0x20
movzx edx, byte [rax + r14]
mov eax, ebx
and eax, 0x20
inc rbx
dec eax
shr eax, 0x1f
neg al
movzx eax, al
mov dword [rsp + 0x28], eax
not eax
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
mov eax, dword [rsp + 0x28]
and cl, dl
and al, r8b
or al, cl
mov rcx, rbx
sub rcx, rdi
mov byte [r9 + rsi], al
xor rcx, rdi
mov rax, rdi
xor rax, rbx
inc rsi
or rcx, rax
xor rcx, rbx
shr rcx, 0x3f
neg rcx
and rbx, rcx
cmp rsi, rdi
jb 0x140189631
mov r14, qword [rsp + 0xd0]
mov eax, 1
mov rbx, qword [rsp + 0x118]
jmp 0x1401896b8
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401f6e90
add rsp, 0xd8
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401b0cb0
Capabilities:
Encode data using xor

Disassembly:
mov eax, gethostname
call fcn.1401f74c0
sub rsp, rax
cmp dword [rsp + 0x68], 0
je 0x1401b0cd9
lea rax, [0x1401af320]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.1401a7fa0
lea rax, [0x1401ae4e0]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.1401a7ce0