joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140048890
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x198]
mov r8d, dword [r9 + r10*4 + 8]
sub r8d, 1
je 0x140048914
sub r8d, 1
je 0x1400488eb
cmp r8d, 1
jne 0x140048928
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x14004890c
cmp ecx, r8d
jne 0x140048928
xor eax, eax
mov dword [r9 + r10*4 + 8], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x408], eax
mov edx, 0xfb
mov rcx, r11
jmp fcn.140048ab0
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x14004890c
cmp ecx, 1
jne 0x140048928
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
mov dword [r9 + r10*4 + 0x408], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfc
mov dword [r9 + r10*4 + 8], eax
jmp fcn.140048ab0
ret

Function at 0x140048930
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x198]
mov r8d, dword [r9 + r10*4 + 0xc08]
test r8d, r8d
je 0x1400489d7
sub r8d, 2
je 0x140048990
cmp r8d, 1
jne 0x1400489c9
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x140048983
cmp ecx, r8d
jne 0x1400489c9
mov dword [r9 + r10*4 + 0xc08], r8d
mov dword [r9 + r10*4 + 0x1008], 0
ret
mov dword [r9 + r10*4 + 0xc08], 0
ret
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1400489ca
cmp ecx, 1
jne 0x1400489c9
mov dword [r9 + r10*4 + 0xc08], 3
mov rcx, r11
mov dword [r9 + r10*4 + 0x1008], 0
mov r8d, edx
mov edx, 0xfe
jmp fcn.140048ab0
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x1400489bc
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.140048ab0

Function at 0x140048a00
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x198]
mov r8d, dword [r9 + r10*4 + 0xc08]
sub r8d, 1
je 0x140048a90
sub r8d, 1
je 0x140048a61
cmp r8d, 1
jne 0x140048aa7
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x140048a85
cmp ecx, r8d
jne 0x140048aa7
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x1008], eax
mov edx, 0xfd
mov rcx, r11
jmp fcn.140048ab0
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x140048a85
cmp ecx, 1
jne 0x140048aa7
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
mov dword [r9 + r10*4 + 0x1008], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfe
mov dword [r9 + r10*4 + 0xc08], eax
jmp fcn.140048ab0
ret
Function at 0x140048ab0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x1d0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140048b0f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140037c70
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140048290
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140048e10
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx]
movsxd r11, edx
mov r10, qword [rax + 0x198]
mov r9d, dword [r10 + r11*4 + 8]
cmp r8d, 1
jne 0x140048e66
test r9d, r9d
je 0x140048e50
sub r9d, 2
je 0x140048e78
cmp r9d, r8d
jne 0x140048ea6
cmp dword [r10 + r11*4 + 0x408], 0
jne 0x140048ea6
mov dword [r10 + r11*4 + 0x408], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 2
mov edx, 0xfb
jmp fcn.140048ab0
sub r9d, 1
je 0x140048e90
sub r9d, 1
je 0x140048e38
cmp r9d, 1
jne 0x140048ea6
cmp dword [r10 + r11*4 + 0x408], 1
jne 0x140048ea6
mov dword [r10 + r11*4 + 0x408], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 3
mov edx, 0xfc
jmp fcn.140048ab0
ret

Function at 0x140048eb0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx]
movsxd r11, edx
mov r10, qword [rax + 0x198]
mov r9d, dword [r10 + r11*4 + 0xc08]
cmp r8d, 1
jne 0x140048f0c
test r9d, r9d
je 0x140048ef3
sub r9d, 2
je 0x140048f1e
cmp r9d, r8d
jne 0x140048f4f
cmp dword [r10 + r11*4 + 0x1008], 0
jne 0x140048f4f
mov dword [r10 + r11*4 + 0x1008], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 2
mov edx, 0xfd
jmp fcn.140048ab0
sub r9d, 1
je 0x140048f36
sub r9d, 1
je 0x140048edb
cmp r9d, 1
jne 0x140048f4f
cmp dword [r10 + r11*4 + 0x1008], 1
jne 0x140048f4f
mov dword [r10 + r11*4 + 0x1008], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 3
mov edx, 0xfe
jmp fcn.140048ab0
ret
Function at 0x14004a0b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1401bd830]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0x570]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
lea rsi, [rbx + 0x168]
mov rdx, qword [rsi]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x14004a154
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.140113bc0
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r9d, dword [rbx + 0x154]
cmp r9d, 4
jge 0x14004a1a3
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140037c70
mov dword [rbx + 0xc], 7
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140111cf0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rcx, rsi
call fcn.140049bf0
movzx r8d, ax
mov dword [rbx + 0xc], r8d
sub r8d, 3
je 0x14004a232
sub r8d, 1
je 0x14004a2a1
sub r8d, 1
je 0x14004a20a
cmp r8d, 1
je 0x14004a1ea
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14017a3cc]
call fcn.140037c70
jmp 0x14004a2a1
mov rdx, qword [rsi]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rbx
call fcn.140049e00
test eax, eax
je 0x14004a2a1
jmp 0x14004a179
mov rcx, rsi
call fcn.140049bd0
movzx r8d, ax
lea rdx, [0x1401422ac]
mov dword [rbx + 8], r8d
mov rcx, rdi
mov r8, qword [rsi]
add r8, 4
call fcn.140037d40
jmp 0x14004a2a1
cmp r9d, 4
jle 0x14004a2a1
mov rcx, rsi
call fcn.140049bd0
movzx ecx, word [rbx + 0x48]
inc ecx
cmp cx, ax
jne 0x14004a2a1
mov r8, qword [rsi]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, r14
call fcn.140037b40
mov esi, eax
test eax, eax
je 0x14004a280
mov edx, 5
mov rcx, rbx
call fcn.14004ab20
mov eax, esi
jmp 0x14004a179
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xb0], rax
mov rdx, qword [rdi + 0xb0]
call fcn.140036ed0
mov rcx, r14
call fcn.1400370f0
test eax, eax
je 0x14004a177
mov edx, 5
mov rcx, rbx
call fcn.14004ab20
mov eax, Ordinal_46
jmp 0x14004a179
Function at 0x14004eb20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1401bd830]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, qword [rcx + 0x1d8]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x28]
mov rbx, rcx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov rcx, rbp
mov rdi, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14004eb94
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
mov rdx, rbp
mov rcx, rbx
call fcn.1400356d0
mov rcx, rsi
cmp rdi, 0xffffffffffffffff
jne 0x14004ebb9
lea rdx, str.Error_accept__ing_server_connect
call fcn.140037c70
lea eax, [rdi + 0x1f]
jmp 0x14004ec1a
lea rdx, str.Connection_accepted_from_server_n
call fcn.140037d40
mov edx, 1
mov byte [rbx + 0x31b], 0
mov rcx, rdi
mov qword [rbx + 0x1d8], rdi
call fcn.140054440
mov byte [rbx + 0x1f1], 1
mov rax, qword [rsi + 0x268]
test rax, rax
je 0x14004ec18
mov rcx, qword [rsi + 0x270]
mov r8d, 1
mov rdx, rdi
call rax
test eax, eax
je 0x14004ec18
mov rcx, rbx
call fcn.14004f0e0
mov eax, Ordinal_46
jmp 0x14004ec1a
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140111cf0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x570
cmp byte [rbx + 0x5fa], 0
jne 0x14004ff56
xor r9d, r9d
mov dword [rbx + 0x610], r9d
mov edx, r9d
mov rax, qword [rbx]
cmp dword [rax + 0x424], 2
sete dl
mov dword [rbx + 0x614], edx
cmp byte [rbx + 0x312], r9b
je 0x14004ff19
mov r8, qword [rbx + 0x5d8]
test r8, r8
je 0x14004ff19
lea rdx, str.CWD__s
mov dword [rbx + 0x60c], r9d
call fcn.140059c00
test eax, eax
jne 0x14004ff63
lea edx, [rax + 0x10]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14004f0d0
cmp dword [rbx + 0x5e8], r9d
je 0x14004ff56
mov r8, qword [rbx + 0x5e0]
lea rdx, str.CWD__s
mov dword [rbx + 0x60c], 1
mov r8, qword [r8]
call fcn.140059c00
test eax, eax
jne 0x14004ff63
lea edx, [rax + 0x10]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14004f0d0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140050340
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x570
cmp byte [rax + 0x439], 0
jne 0x140050365
cmp dword [rax + 0x370], 0
je 0x140050391
mov r8, qword [rcx + 0x80]
test r8, r8
je 0x140050391
lea rdx, str.MDTM__s
call fcn.140059c00
test eax, eax
jne 0x14005039e
lea edx, [rax + 0x12]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14004f0d0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140051300
add rsp, 0x20
pop rbx
ret
Function at 0x140050a60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
lea eax, [rdx - 0xc8]
mov rbx, rcx
mov rcx, qword [rcx]
cmp eax, 0x64
jb 0x140050acf
mov eax, dword [rbx + 0x60c]
mov qword [rsp + 0x30], rdi
lea edi, [rax + 1]
test eax, eax
jne 0x140050ab0
lea rdx, str.disabling_EPRT_usage_n
call fcn.140037d40
mov byte [rbx + 0x324], 0
mov edx, edi
mov rcx, rbx
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
jmp 0x1400516b0
cmp edi, 2
jne 0x140050a9c
lea rdx, str.Failed_to_do_PORT
call fcn.140037c70
lea eax, [rdi + 0x1c]
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rdx, str.Connect_data_stream_actively_n
call fcn.140037d40
xor edx, edx
mov rcx, rbx
call fcn.14004f0d0
add rsp, 0x20
pop rbx
jmp fcn.14004f250
Function at 0x140050e00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + 0x198]
cmp dword [rdx + 0x18], 0
je 0x140050e4d
cmp qword [rcx + 0x5f0], 0
je 0x140050e4d
add rcx, 0x570
lea rdx, str.REST__d
xor r8d, r8d
call fcn.140059c00
test eax, eax
jne 0x140050e57
lea edx, [rax + 0x1a]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14004f0d0
add rsp, 0x20
pop rbx
jmp fcn.140050af0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x570
mov rax, qword [rbx]
mov rdx, qword [rax + 0x198]
cmp dword [rdx + 0x18], 1
jne 0x14005114c
mov r8, qword [rcx + 0x80]
test r8, r8
je 0x14005114c
lea rdx, str.SIZE__s
call fcn.140059c00
test eax, eax
jne 0x140051159
lea edx, [rax + 0x17]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14004f0d0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140050e00
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
mov r10, qword [rcx]
mov r9, rcx
cmp byte [r10 + 0x447], 0
je 0x140051357
cmp qword [rcx + 0x5f0], 0
je 0x140051357
movzx edx, byte [r10 + 0x43b]
call fcn.14004f490
test eax, eax
je 0x140051357
mov rax, qword [r10 + 0x198]
mov r8d, reloc.WS2_32.dll_send
mov rcx, r9
mov dword [rax + 0x18], 1
movzx edx, byte [r10 + 0x43b]
add rsp, 0x28
jmp fcn.14004f400
mov rcx, r9
add rsp, 0x28
jmp fcn.140051100
Function at 0x140052fc0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x1401bd830]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.140129b78
mov byte [rsp + 0x20], 0
test rax, rax
je 0x140053026
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x140053026
lea rcx, [rsp + 0x20]
call qword [case.0x14003ac79.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140111cf0
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140111cf0
add rsp, 0x148
ret
jmp 0x140052fc0

Function at 0x140053040
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x1401bd830]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.140129b78
mov byte [rsp + 0x20], 0
test rax, rax
je 0x140053026
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x140053026
lea rcx, [rsp + 0x20]
call qword [case.0x14003ac79.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140111cf0
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140111cf0
add rsp, 0x148
ret
jmp 0x140052fc0

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

Disassembly:
jmp 0x140054540
sub rsp, 0x28
mov rcx, qword [rcx + 0x1d0]
lea rdx, [rsp + 0x30]
mov r9d, 2
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
je 0x1400545b1
cmp rcx, 1
je 0x1400545a7
cmp rcx, 0xffffffffffffffff
jne 0x14005459d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x1400545a7
cmp eax, 0xb
je 0x1400545a7
add eax, 0xffffd8be
cmp eax, 0xa
ja 0x14005459d
mov ecx, 0x59d
bt ecx, eax
jb 0x1400545b1
mov eax, 0xffffffff
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x14005c7a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x14005c7e2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14005c829
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + ioctlsocket]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14005c882
mov rsi, rbp
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 [rdi + 8]
call qword [rbx + ioctlsocket]
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 [rdi + 0x10]
call qword [rbx + ioctlsocket]
sub rbp, 1
jne 0x14005c840
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14005c8c3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, str.6digit
mov r8d, 1
call qword [rbx + ioctlsocket]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140149b9b]
mov r8d, 1
call qword [rbx + ioctlsocket]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14005c890
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400699f0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rdi
mov eax, 0x460
call fcn.1401127d0
sub rsp, rax
mov rax, qword [0x1401bd830]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor ebp, ebp
mov ebx, edx
mov rdi, rcx
test rcx, rcx
je 0x140069ae9
lea rdx, [rsp + 0x20]
call fcn.140129424
test eax, eax
js 0x140069ae9
xorps xmm2, xmm2
lea edx, [rbp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.1400696d0
test ebx, ebx
je 0x140069ae9
lea rdx, [0x14018f4b0]
mov qword [rsp + 0x498], r14
mov rcx, rdi
call fcn.14011eb20
mov r14, rax
test rax, rax
je 0x140069add
mov qword [rsp + 0x490], rsi
mov edi, 0x400
test ebx, ebx
jle 0x140069a82
cmp ebx, edi
cmovl edi, ebx
movsxd r8, edi
lea rcx, [rsp + 0x50]
mov r9, r14
mov edx, 1
call fcn.14012622c
mov rsi, rax
test eax, eax
jle 0x140069abe
movd xmm2, esi
lea rcx, [rsp + 0x50]
cvtdq2pd xmm2, xmm2
mov edx, edi
call fcn.1400696d0
add ebp, esi
test ebx, ebx
jle 0x140069a74
sub ebx, edi
test ebx, ebx
jg 0x140069a74
mov rcx, r14
call fcn.14011ec50
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.1400011a0
mov rsi, qword [rsp + 0x490]
mov r14, qword [rsp + 0x498]
mov eax, ebp
jmp 0x140069aeb
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140111cf0
add rsp, 0x460
pop rdi
pop rbp
pop rbx
ret
Function at 0x14008eb70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.1401127d0
sub rsp, rax
mov esi, dword [rdx + 8]
mov r14, rdx
mov rbx, rcx
test esi, esi
jne 0x14008ebb1
xor edx, edx
call fcn.140062180
lea eax, [rsi + 1]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
lea eax, [rsi - 1]
mov qword [rsp + 0x30], rdi
movsxd rdi, eax
xor eax, eax
mov qword [rsp + 0x38], r15
mov r15, qword [rdx]
mov rcx, qword [r15 + rdi*8]
cmp rcx, 1
sete al
sub esi, eax
cmp r14, rbx
je 0x14008ebfc
cmp esi, dword [rbx + 0xc]
jg 0x14008ebe2
mov rax, rbx
jmp 0x14008ebec
mov edx, esi
mov rcx, rbx
call fcn.140062390
test rax, rax
je 0x14008ec66
mov eax, dword [r14 + 0x10]
mov dword [rbx + 0x10], eax
mov rcx, qword [r15 + rdi*8]
mov rdx, qword [rbx]
mov rax, rcx
xor rax, 1
inc rax
neg rax
shl rax, 0x3f
lea r8, [rdx + rdi*8]
shr rcx, 1
je 0x14008ec1c
mov qword [r8], rcx
test rdi, rdi
jle 0x14008ec5e
sub r15, rdx
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [r15 + r8 - 8]
lea r8, [r8 - 8]
mov rcx, rdx
dec rdi
shr rcx, 1
or rcx, rax
mov rax, rdx
xor rax, 1
mov qword [r8], rcx
inc rax
neg rax
shl rax, 0x3f
test rdi, rdi
jg 0x14008ec30
mov dword [rbx + 8], esi
mov eax, 1
mov rdi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400abe00
Capabilities:
Encode data using base64

Disassembly:
mov eax, 8
call fcn.1401127d0
sub rsp, rax
xor r10d, r10d
mov r9, rcx
test r8d, r8d
jle 0x1400abf12
mov qword [rsp + 0x10], rbx
inc rdx
mov qword [rsp], rdi
lea rdi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop
movzx eax, byte [rdx - 1]
cmp r8d, 3
jb 0x1400abe8f
mov ecx, eax
movzx eax, byte [rdx]
shl rcx, 8
or rcx, rax
movzx eax, byte [rdx + 1]
shl rcx, 8
or rcx, rax
mov rax, rcx
shr rax, 0x12
movzx eax, byte [rax + rdi]
mov byte [r9], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rdi]
mov byte [r9 + 1], al
mov rax, rcx
and eax, 0x3f
shr rcx, 6
add r9, 2
and ecx, 0x3f
movzx ebx, byte [rax + rdi]
movzx eax, byte [rcx + rdi]
mov rcx, r9
jmp 0x1400abede
mov ecx, eax
shl ecx, 0x10
cmp r8d, 2
jne 0x1400abea2
movzx eax, byte [rdx]
shl eax, 8
or ecx, eax
mov eax, ecx
shr rcx, 0x12
movzx ecx, byte [rcx + rdi]
mov byte [r9], cl
mov ecx, eax
shr rcx, 0xc
and ecx, 0x3f
movzx ecx, byte [rcx + rdi]
mov byte [r9 + 1], cl
add r9, 2
mov rcx, r9
cmp r8d, 1
jne 0x1400abed1
mov al, 0x3d
jmp 0x1400abedc
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + rdi]
mov bl, 0x3d
mov byte [r9], al
add r10d, 4
add rdx, 3
mov byte [rcx + 1], bl
sub r8d, 3
lea r9, [rcx + 2]
test r8d, r8d
jg 0x1400abe30
mov rdi, qword [rsp]
mov eax, r10d
mov rbx, qword [rsp + 0x10]
mov byte [rcx + 2], 0
add rsp, 8
ret
mov byte [rcx], r10b
mov eax, r10d
add rsp, 8
ret
Function at 0x1400aca10
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, Ordinal_41
call fcn.1401127d0
sub rsp, rax
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x1400aca58
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x1400aca3d
mov dword [reloc.WS2_32.dll_accept], eax
jmp 0x1400aca58
xorps xmm2, xmm2
lea rcx, [rsp + 0x38]
mov edx, 8
call fcn.1400696d0
cmp dword [reloc.WS2_32.dll_accept], 0
jne 0x1400aca74
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xorps xmm2, xmm2
lea rcx, [rsp + 0x30]
mov edx, 4
mov dword [rsp + 0x30], eax
call fcn.1400696d0
add rsp, 0x28
ret
Function at 0x1400be400
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
mov eax, 0x50
call fcn.1401127d0
sub rsp, rax
mov rax, qword [0x1401bd830]
xor rax, rsp
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x60]
mov r14d, r8d
movzx r8d, byte [rax + 4]
lea rdi, [rax + 1]
mov r13, qword [rbp + 0x68]
mov rsi, rcx
movzx ecx, byte [rdi + 5]
xor r15d, r15d
movzx r10d, byte [rax]
mov r12, rdx
mov qword [rbp - 0x18], rax
movzx eax, byte [rdi]
mov ebx, dword [r13]
shl eax, 0x10
shl r10d, 0x18
or r10d, eax
shl r8d, 0x18
movzx eax, byte [rdi + 1]
shl eax, 8
or r10d, eax
shl ecx, 8
movzx eax, byte [rdi + 2]
or r10d, eax
mov qword [rbp - 0x28], r9
movzx eax, byte [rdi + 4]
shl eax, 0x10
or r8d, eax
mov qword [rbp - 0x20], r13
movzx eax, byte [rdi + 6]
or ecx, eax
mov dword [rbp - 0x30], r10d
or r8d, ecx
mov byte [rbp - 0xd], r10b
mov eax, r10d
mov dword [rbp - 0x2c], r8d
shr eax, 0x18
mov byte [rbp - 0x10], al
mov eax, r10d
shr eax, 0x10
mov byte [rbp - 0xf], al
mov eax, r10d
shr eax, 8
mov byte [rbp - 0xe], al
mov eax, r8d
shr eax, 0x18
mov byte [rbp - 0xc], al
mov eax, r8d
shr eax, 0x10
mov byte [rbp - 0xb], al
mov eax, r8d
shr eax, 8
mov byte [rbp - 0xa], al
mov byte [rbp - 9], r8b
test r14d, r14d
je 0x1400be5c4
mov r13, qword [rbp - 0x28]
sub r12, rsi
movzx edx, r8b
movzx r9d, r10b
nop dword [rax]
dec r14d
test ebx, ebx
jne 0x1400be563
mov rdx, r13
lea rcx, [rbp - 0x30]
call fcn.1400bdd70
mov r10d, dword [rbp - 0x30]
mov eax, r10d
mov r8d, dword [rbp - 0x2c]
movzx r9d, r10b
shr eax, 0x18
movzx edx, r8b
mov byte [rbp - 0x10], al
mov eax, r10d
shr eax, 0x10
mov byte [rbp - 0xf], al
mov eax, r10d
shr eax, 8
mov byte [rbp - 0xe], al
mov eax, r8d
shr eax, 0x18
mov byte [rbp - 0xc], al
mov eax, r8d
shr eax, 0x10
mov byte [rbp - 0xb], al
mov eax, r8d
shr eax, 8
mov byte [rbp - 0xa], al
inc r15d
mov byte [rbp - 0xd], r10b
mov byte [rbp - 9], dl
movsxd rax, ebx
movzx ecx, byte [rbp + rax - 0x10]
xor cl, byte [rsi]
mov byte [r12 + rsi], cl
inc rsi
inc ebx
and ebx, 7
test r14d, r14d
jne 0x1400be500
mov r13, qword [rbp - 0x20]
test r15d, r15d
je 0x1400be5c4
mov rcx, qword [rbp - 0x18]
mov eax, r10d
shr eax, 0x18
mov byte [rdi + 2], r9b
mov byte [rdi + 6], dl
mov byte [rcx], al
mov eax, r10d
shr eax, 0x10
mov byte [rdi], al
mov eax, r8d
shr eax, 0x18
mov byte [rdi + 3], al
mov eax, r8d
shr eax, 0x10
shr r10d, 8
shr r8d, 8
mov byte [rdi + 5], r8b
mov byte [rdi + 1], r10b
mov byte [rdi + 4], al
mov dword [r13], ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140111cf0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret