joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005bd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140005c03
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140005c49
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140005c44
nop
cmp rbx, rcx
jae 0x140005c49
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
dec edi
jne 0x140005c30
cmp rbx, rcx
jb 0x140005c4d
xor eax, eax
jmp 0x140005c59
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140006400
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x48
cmp byte [rcx + 8], 0
mov r9, rcx
je 0x14000643c
xor ecx, ecx
cmp dword [r9 + 0x3d0], ecx
jle 0x140006437
sub r8, rdx
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
inc ecx
lea rdx, [rdx + 1]
xor byte [rdx - 1], al
cmp ecx, dword [r9 + 0x3d0]
jl 0x140006420
add rsp, 0x48
ret
lea rdx, str._b:_t_
lea rcx, [rsp + 0x20]
call fcn.140043704
lea rdx, [0x14009ae68]
lea rcx, [rsp + 0x20]
call fcn.140049078
int3

Function at 0x140006ef0
Capabilities:
Initialize winsock library

Disassembly:
mov edx, 1
jmp fcn.14000701c

Function at 0x14000701c
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rsi
push rdi
sub rsp, 0x1d0
mov rax, qword [0x14009d810]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov eax, dword [0x14009f360]
mov esi, 1
mov edi, ecx
mov r8d, eax
add eax, esi
mov dword [0x14009f360], eax
test r8d, r8d
jne 0x140007127
test edx, edx
je 0x1400070a6
lea rax, [fcn.140044a88]
mov qword [section..data], rax
lea rax, [fcn.140043a0c]
mov qword [fcn.140043a0c], rax
lea rax, [fcn.1400449b4]
mov qword [fcn.1400449b4], rax
lea rax, [fcn.140060df4]
mov qword [fcn.140060df4], rax
lea rax, [fcn.140045fec]
mov qword [fcn.140045fec], rax
test sil, cl
je 0x1400070bb
call fcn.14000d730
test eax, eax
jne 0x1400070bb
mov eax, 2
jmp 0x140007129
test dil, 2
je 0x140007100
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400070b4
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x1400070f1
shr ax, 8
cmp al, 2
jne 0x1400070f1
call fcn.14000caac
test eax, eax
je 0x140007100
jmp 0x1400070fc
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
test eax, eax
jne 0x1400070b4
call fcn.1400185f4
test eax, eax
jne 0x1400070b4
mov eax, dword [0x14009f4a0]
test dil, 4
mov dword [0x14009f364], edi
cmovne eax, esi
mov dword [0x14009f4a0], eax
call fcn.140017f8c
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140042af0
mov rsi, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret
Function at 0x14000c57c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [rcx + 4], 2
mov rax, rdx
je 0x14000c588
xor eax, eax
ret
mov rdx, qword [rcx + 0x20]
mov r9, r8
mov r8, rax
add rdx, 4
mov ecx, 2
jmp fcn.140024318

Function at 0x14000da58
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
lea rax, [0x1400770f0]
cmp qword [0x14009d038], rax
je 0x14000da84
mov eax, 1
jmp 0x14000daf9
test rcx, rcx
je 0x14000da92
mov qword [0x14009d038], rcx
jmp 0x14000daf7
cmp qword [0x14009d028], 0
je 0x14000da7d
lea rcx, str.CURL_SSL_BACKEND
call fcn.140048144
mov rsi, rax
test rax, rax
je 0x14000dae9
xor ebx, ebx
xor edi, edi
cmp qword [0x14009d028], rbx
je 0x14000dae9
lea r14, [0x14009d028]
mov rcx, r14
mov rdx, qword [rcx]
mov rcx, rsi
mov rdx, qword [rdx + 8]
call fcn.140020fd4
test eax, eax
jne 0x14000db0f
inc rdi
inc ebx
lea rcx, [r14 + rdi*8]
cmp qword [rcx], 0
jne 0x14000dac7
mov rax, qword [0x14009d028]
mov qword [0x14009d038], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
movsxd rax, ebx
mov rax, qword [r14 + rax*8]
jmp 0x14000daf0
Function at 0x1400162bc
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x1400162f1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
cmp eax, 0x2733
lea edx, [rcx + 0x19]
cmove ecx, edx
mov eax, ecx
jmp 0x1400162f6
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140016454
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
movsxd rcx, edx
mov r14, r9
mov rax, qword [rdi + 0x460]
mov rbp, qword [rdi + rcx*8 + 0x238]
lea rbx, [rcx + 0x14]
shl rbx, 5
mov r15, r8
add rbx, rdi
mov rsi, qword [rbx + 8]
sub rsi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x14001653a
lea rax, [0x14001632c]
cmp qword [rdi + rcx*8 + 0x260], rax
jne 0x14001653a
cmp qword [rbx], 0
je 0x1400164c4
test rsi, rsi
je 0x14001653a
or r8, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rbp
or rdx, r8
call fcn.1400159ac
cmp eax, 0xffffffff
je 0x14001653a
test al, 1
je 0x14001653a
cmp qword [rbx], 0
jne 0x140016519
mov rax, qword [rdi]
mov ecx, dword [rax + 0x728]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [section..data]
and qword [rbx + 0x10], 0
and qword [rbx + 0x18], 0
mov rsi, qword [rbx + 8]
mov qword [rbx], rax
test rax, rax
jne 0x140016519
and qword [rbx + 8], rax
jmp 0x14001653a
mov rdx, qword [rbx]
xor r9d, r9d
mov r8d, esi
add rdx, qword [rbx + 0x10]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14001653a
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x60]
and dword [r14], 0
movsxd rsi, eax
cmp rsi, 0xffffffffffffffff
jne 0x1400165a4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140016578
xor esi, esi
mov dword [r14], 0x51
jmp 0x1400165a4
mov edx, eax
mov rcx, rdi
call fcn.140023890
mov rcx, qword [rdi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.140015ff0
mov rcx, qword [rdi]
mov dword [rcx + 0x4d1c], ebx
mov dword [r14], gethostname
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rax, rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14001682c
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x2c8]
xor ebx, ebx
mov rsi, r9
mov rbp, r8
mov rdi, rcx
test r10, r10
je 0x140016869
mov rax, qword [rcx + 0x218]
mov qword [r11 - 0x18], rax
call r10
mov ebx, eax
jmp 0x1400168ac
cmp edx, 2
ja 0x1400168ac
mov r9, qword [rdi + 0x210]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x140077dc8]
lea r8d, [rdx - 1]
add rcx, rax
call fcn.140043dc0
mov r9, qword [rdi + 0x210]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call fcn.140043dc0
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
cmp dword [rcx + 0x2c0], 0
je 0x1400169a2
call fcn.14000d168
test eax, eax
jne 0x1400169c6
xor eax, eax
jmp 0x1400169cb
mov rcx, qword [rcx + 0x238]
cmp rcx, 0xffffffffffffffff
je 0x14001699e
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
jmp 0x14001699a
mov eax, 1
add rsp, 0x28
ret

Function at 0x140017104
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x14009f4a4]
and dword [rsp + 0x48], 0
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x140017159
lea ecx, [rax + 6]
lea r9d, [rax + 3]
lea r8d, [rax + 2]
xor edx, edx
call fcn.140024568
test eax, eax
je 0x14001714e
mov dword [0x14009f4a4], 2
jmp 0x1400171b0
mov eax, 1
mov dword [0x14009f4a4], eax
cmp eax, 2
je 0x1400171b0
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14001718f
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1400171b0
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret

Function at 0x140017284
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
mov r8d, 1
mov rax, rdx
mov rdi, rcx
lea r9, [rsp + 0x40]
lea edx, [r8 + 5]
mov rcx, rax
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1400172e4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
call fcn.140023890
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
mov r8, rax
call fcn.1400160e8
jmp 0x1400172f3
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.1400160e8
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140017408
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x14009d810]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xbc], 2
mov rbp, qword [rcx]
mov rbx, rdx
mov rsi, rcx
je 0x1400175cf
cmp dword [rcx + 0x3b8], 0
jne 0x1400175c7
cmp dword [rcx + 0x428], 0
jne 0x1400175c7
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xb0]
mov edi, 0x80
mov rcx, rbx
mov dword [rsp + 0x20], edi
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1400174a8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
mov edx, eax
mov ebx, eax
call fcn.140023890
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rbp
call fcn.140015ff0
jmp 0x1400175cf
lea rcx, [rsp + 0x30]
mov r8, rdi
xor edx, edx
mov dword [rsp + 0x20], edi
call fcn.1400467a0
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400174ed
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
mov edx, eax
mov ebx, eax
call fcn.140023890
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x140017495
lea rbx, [rsi + 0x186]
lea r8, [rsi + 0x1b4]
lea rcx, [rsp + 0xb0]
mov rdx, rbx
call fcn.140017a00
test eax, eax
jne 0x140017538
call fcn.140047468
mov rbx, rax
call fcn.140047468
mov edx, dword [rbx]
mov rcx, rsi
mov rdi, rax
call fcn.140023890
mov r8d, dword [rdi]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x140017498
mov rax, qword [rbx]
lea r8, [rsi + 0x1e8]
lea rdx, [rsi + 0x1b8]
mov qword [rsi + 0x88], rax
mov rax, qword [rbx + 8]
lea rcx, [rsp + 0x30]
mov qword [rsi + 0x90], rax
mov rax, qword [rbx + 0x10]
mov qword [rsi + 0x98], rax
mov rax, qword [rbx + 0x18]
mov qword [rsi + 0xa0], rax
mov rax, qword [rbx + 0x20]
mov qword [rsi + 0xa8], rax
mov eax, dword [rbx + 0x28]
mov dword [rsi + 0xb0], eax
movzx eax, word [rbx + 0x2c]
mov word [rsi + 0xb4], ax
call fcn.140017a00
test eax, eax
jne 0x1400175c7
call fcn.140047468
mov rbx, rax
call fcn.140047468
mov edx, dword [rbx]
mov rcx, rsi
mov rdi, rax
call fcn.140023890
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x140017498
mov rcx, rsi
call fcn.140016ff0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140042af0
mov rbx, qword [rsp + 0x170]
add rsp, 0x140
pop rdi
pop rsi
pop rbp
ret
Function at 0x140017a70
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14009d810]
xor rax, rsp
mov qword [rbp], rax
mov r15, qword [rcx]
or qword [r8], 0xffffffffffffffff
mov r13, r8
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x28]
mov r14, rcx
xor esi, esi
call fcn.1400171b8
mov edi, eax
test eax, eax
jne 0x140017ce8
lea r8, [rsp + 0x38]
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x50]
call fcn.140017a00
test eax, eax
jne 0x140017b12
call fcn.140047468
mov rbx, rax
call fcn.140047468
mov edx, dword [rbx]
mov rcx, r14
mov rdi, rax
call fcn.140023890
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, r15
call fcn.140015ff0
mov rbx, qword [rsp + 0x28]
jmp 0x140017ba7
lea r8, [rbp - 0x30]
lea rdx, str.__Trying__s..._n
mov rcx, r15
call fcn.1400160e8
cmp dword [rsp + 0x40], 2
mov rbx, qword [rsp + 0x28]
jne 0x140017b54
cmp dword [rsp + 0x44], 1
jne 0x140017b54
mov r12d, 1
cmp dword [r15 + 0x7e8], esi
je 0x140017b57
mov rdx, rbx
mov rcx, r14
call fcn.140017284
jmp 0x140017b57
mov r12d, esi
mov rcx, rbx
call fcn.140017104
test r12d, r12d
je 0x140017b78
cmp dword [r15 + 0xa2c], esi
je 0x140017b78
mov rdx, rbx
mov rcx, r15
call fcn.140017d14
mov rax, qword [r15 + 0x2d8]
test rax, rax
je 0x140017bb9
mov rcx, qword [r15 + 0x2e0]
xor r8d, r8d
mov rdx, rbx
call rax
cmp eax, 2
jne 0x140017b9e
lea r12d, [rax - 1]
jmp 0x140017bbc
test eax, eax
je 0x140017bb9
mov esi, Ordinal_45
mov rdx, rbx
mov rcx, r14
call fcn.1400168c4
mov eax, esi
jmp 0x140017cea
mov r12d, esi
cmp dword [rsp + 0x40], 2
jne 0x140017c03
lea rcx, [rsp + 0x50]
call fcn.1400185f4
mov r8d, dword [rsp + 0x40]
mov rdx, rbx
mov r9d, eax
mov rcx, r14
call fcn.1400175f4
mov edi, eax
test eax, eax
je 0x140017c03
mov rdx, rbx
mov rcx, r14
call fcn.1400168c4
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x140017cea
mov edx, 1
mov rcx, rbx
call fcn.140039d04
lea rcx, [rsp + 0x28]
call fcn.14000b844
cmp dword [r14 + 0x450], 1
movups xmm0, xmmword [rax]
movdqu xmmword [r14 + 0x440], xmm0
jle 0x140017c45
mov rdx, qword [r14 + 0x458]
mov r8d, 3
mov rcx, r15
call fcn.140007228
test r12d, r12d
jne 0x140017ce4
cmp dword [r14 + 0xbc], 1
jne 0x140017ce4
cmp dword [r14 + 0x428], esi
jne 0x140017c7d
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140017cd3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0xb
je 0x140017cd1
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x140017cd1
mov edx, eax
mov rcx, r14
call fcn.140023890
lea r8, [rbp - 0x30]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov r9, rax
mov rcx, r15
call fcn.1400160e8
mov rdx, rbx
mov rcx, r14
mov dword [r15 + 0x4d1c], edi
call fcn.1400168c4
mov edi, 7
jmp 0x140017bfc
mov edi, esi
test edi, edi
jne 0x140017bfc
mov qword [r13], rbx
jmp 0x140017bfc
mov qword [r13], rbx
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140042af0
mov rbx, qword [rsp + 0x168]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140017d14
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14009d810]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor eax, eax
mov rdi, rdx
mov rbx, rcx
cmp dword [rcx + 0xa2c], eax
lea r9, [rsp + 0x50]
mov edx, 0xffff
setne al
mov r8d, 8
mov rcx, rdi
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x140017d7e
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov r8, rdi
mov rcx, rbx
call fcn.1400160e8
jmp 0x140017e11
mov ecx, dword [rbx + 0xa30]
mov dword [rsp + 0x58], 1
call fcn.140020948
mov ecx, dword [rbx + 0xa34]
imul eax, eax, 0x3e8
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x5c], eax
call fcn.140020948
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
imul eax, eax, 0x3e8
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x58]
mov r9d, recvfrom
mov edx, 0x98000004
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140017e11
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r8d, edi
mov r9d, eax
mov rcx, rbx
call fcn.1400160e8
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140042af0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x140020938
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.140057c58
cdqe
add rsp, 0x28
ret

Function at 0x140022d48
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r15, r9
xor ebp, ebp
xor r14d, r14d
and qword [r9], rbp
lea r9, [rax + 0x20]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
jne 0x140022eac
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x140022e9a
cmp dword [rsi + 4], 2
jne 0x140022e41
cmp qword [rsi + 0x20], 0
je 0x140022e41
cmp qword [rsi + 0x10], 0x10
jb 0x140022e41
mov ecx, Ordinal_50
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x140022e70
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
and qword [rax + 0x20], 0
and qword [rax + 0x18], 0
and qword [rax + 0x28], 0
mov dword [rax + 0xc], ecx
mov ecx, reloc.WS2_32.dll_recv
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
call qword [section..data]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x140022e69
mov rdx, qword [rsi + 0x20]
mov rcx, qword [rdx]
mov qword [rax], rcx
mov rcx, qword [rdx + 8]
mov qword [rax + 8], rcx
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x140022e2e
call qword [fcn.140060df4]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x140022e4f
test rbp, rbp
cmove rbp, rdi
test r14, r14
je 0x140022e3e
mov qword [r14 + 0x28], rdi
mov r14, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
je 0x140022e75
jmp 0x140022d8d
mov rcx, qword [rdi + 0x20]
mov ebx, 8
call qword [fcn.140043a0c]
mov rcx, rdi
call qword [fcn.140043a0c]
jmp 0x140022e75
mov ebx, 8
jmp 0x140022e5e
mov ebx, 8
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140022e85
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x140022e95
mov rcx, rbp
call fcn.140022d00
xor ebp, ebp
jmp 0x140022ea7
test rbp, rbp
jne 0x140022ea7
mov ebx, 0x2af9
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov qword [r15], rbp
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140024288
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call fcn.140045d3c
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
cmovbe rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x140024318
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
mov rax, r8
mov r10, rdx
cmp ecx, 2
je 0x140024339
call fcn.140047468
mov dword [rax], 0x273f
xor eax, eax
add rsp, 0x28
ret
mov r8, r9
mov rdx, rax
mov rcx, r10
add rsp, 0x28
jmp 0x14002434c
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14009d810]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, byte [rcx + 3]
movzx r10d, byte [rcx + 1]
movzx r9d, byte [rcx]
mov rbx, rdx
movzx edx, byte [rcx + 2]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edx
mov rdi, r8
lea rcx, [rsp + 0x40]
lea r8, str._d._d._d._d
mov edx, reloc.WS2_32.dll_recv
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x20], r10d
call fcn.140021c0c
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1400243ad
test rax, rax
je 0x1400243e2
cmp rax, rdi
jae 0x1400243e2
lea rax, [rsp + 0x40]
mov r8, rbx
lea rdx, [rsp + 0x40]
sub r8, rax
mov cl, byte [rdx]
mov byte [r8 + rdx], cl
inc rdx
test cl, cl
jne 0x1400243d0
mov rax, rbx
jmp 0x1400243ef
call fcn.140047468
mov dword [rax], Ordinal_32
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140042af0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x14002440c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
lea rcx, str.kernel32
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x14002454f
lea rdx, str.LoadLibraryExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14007bc28]
mov rcx, rdi
mov rbp, rax
call fcn.140048288
test rax, rax
je 0x140024481
mov rcx, rdi
test rbp, rbp
je 0x140024479
mov r8d, 8
jmp 0x1400244a4
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x1400244a8
test rbp, rbp
je 0x1400244b0
lea rdx, str.AddDllDirectory
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400244b0
mov r8d, 0x800
mov rcx, rdi
xor edx, edx
call rbp
mov rbx, rax
jmp 0x14002454c
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x14002454c
or r14, 0xffffffffffffffff
mov rdx, r14
inc rdx
cmp byte [rdi + rdx], bl
jne 0x1400244cc
lea ecx, [rax + 1]
add rcx, rdx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x140024543
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140024543
mov rax, r14
inc rax
cmp byte [rsi + rax], bl
jne 0x1400244fb
mov ecx, 0x5c
mov word [rax + rsi], cx
inc r14
cmp byte [rsi + r14], bl
jne 0x14002450c
lea rcx, [r14 + rsi]
sub rcx, rdi
mov al, byte [rdi]
mov byte [rcx + rdi], al
inc rdi
test al, al
jne 0x14002451c
mov rcx, rsi
test rbp, rbp
je 0x14002453a
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x140024540
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, rsi
call qword [fcn.140043a0c]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret