joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140117040
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
mov rax, r8
mov r10, rdx
cmp ecx, 2
je 0x140117061
mov ecx, 0x273f
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
ret
mov r8, r9
mov rdx, rax
mov rcx, r10
add rsp, 0x28
jmp 0x140117080
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1402274c0]
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, [0x1401bc6b0]
mov edx, reloc.WS2_32.dll_recv
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x20], r10d
call fcn.140100cf0
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1401170e1
test rax, rax
je 0x140117125
cmp rax, rdi
jae 0x140117125
lea rax, [rsp + 0x40]
mov r8, rbx
lea rcx, [rsp + 0x40]
sub r8, rax
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
mov byte [r8 + rcx - 1], dl
test dl, dl
jne 0x140117110
mov rax, rbx
jmp 0x140117132
mov ecx, Ordinal_30
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140150a60
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

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

Disassembly:
jmp 0x140117150
sub rsp, 0x28
mov rcx, qword [rcx + 0x1d0]
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
je 0x1401171b7
cmp rcx, 1
jne 0x140117187
mov eax, 1
add rsp, 0x28
ret
cmp rcx, 0xffffffffffffffff
jne 0x1401171be
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x14011717d
cmp eax, 0xb
je 0x14011717d
add eax, 0xffffd8be
cmp eax, 0xa
ja 0x1401171be
mov ecx, 0x59d
bt ecx, eax
jae 0x1401171be
xor eax, eax
add rsp, 0x28
ret
or eax, 0xffffffff
add rsp, 0x28
ret
Function at 0x1401207b0
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 [0x1402274c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, qword [rcx + 0x1d8]
mov rsi, qword [rcx]
mov rbx, rcx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rbp
or rdi, 0xffffffffffffffff
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140120821
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rbp
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
mov rdx, rbp
mov rcx, rbx
call fcn.1400ff190
mov rcx, rsi
cmp rdi, 0xffffffffffffffff
jne 0x140120846
lea rdx, str.Error_accept__ing_server_connect
call fcn.1400fe7c0
lea eax, [rdi + 0x1f]
jmp 0x1401208a7
lea rdx, str.Connection_accepted_from_server_n
call fcn.1400fe880
mov byte [rbx + 0x323], 0
mov edx, 1
mov rcx, rdi
mov qword [rbx + 0x1d8], rdi
call fcn.14012ec70
mov byte [rbx + 0x1f1], 1
mov rax, qword [rsi + 0x2c8]
test rax, rax
je 0x1401208a5
mov rcx, qword [rsi + 0x2d0]
mov r8d, 1
mov rdx, rdi
call rax
test eax, eax
je 0x1401208a5
mov rcx, rbx
call fcn.140120dd0
mov eax, Ordinal_46
jmp 0x1401208a7
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140150a60
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x578
cmp byte [rcx + 0x8a], 0
jne 0x140121c1d
xor r9d, r9d
mov dword [rcx + 0xa0], r9d
mov rax, qword [rbx]
mov edx, r9d
cmp dword [rax + 0x48c], 2
sete dl
mov dword [rcx + 0xa4], edx
cmp byte [rbx + 0x31a], r9b
je 0x140121be6
mov r8, qword [rcx + 0x68]
test r8, r8
je 0x140121be6
lea rdx, str.CWD__s
mov dword [rcx + 0x9c], r9d
call fcn.14013f110
test eax, eax
jne 0x140121c2a
mov dword [rbx + 0x620], 0x10
add rsp, 0x20
pop rbx
ret
cmp dword [rcx + 0x78], r9d
je 0x140121c1d
mov r8, qword [rcx + 0x70]
mov dword [rcx + 0x9c], 1
lea rdx, str.CWD__s
mov r8, qword [r8]
call fcn.14013f110
test eax, eax
jne 0x140121c2a
mov dword [rbx + 0x620], 0x10
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140122000
add rsp, 0x20
pop rbx
ret
Function at 0x140122000
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx]
mov rbx, rcx
add rcx, 0x578
cmp byte [rdx + 0x4a1], 0
jne 0x140122025
cmp dword [rdx + 0x3d0], 0
je 0x140122051
mov r8, qword [rcx + 0x80]
test r8, r8
je 0x140122051
lea rdx, str.MDTM__s
call fcn.14013f110
test eax, eax
jne 0x1401220ba
mov dword [rbx + 0x620], 0x12
add rsp, 0x20
pop rbx
ret
cmp byte [rdx + 0x4af], 0
je 0x1401220ad
cmp qword [rbx + 0x5f8], 0
je 0x1401220ad
cmp byte [rdx + 0x4a3], 0
movsx ecx, byte [rbx + 0x610]
mov eax, 0x49
mov r8d, 0x41
cmovne eax, r8d
cmp ecx, eax
je 0x1401220ad
mov rax, qword [rdx + 0x1f8]
mov r8d, reloc.WS2_32.dll_send
mov rcx, rbx
mov dword [rax + 0x18], 1
movzx edx, byte [rdx + 0x4a3]
add rsp, 0x20
pop rbx
jmp fcn.140121070
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140122f40
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, qword [rcx]
mov edi, dword [rcx + 0x614]
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov rbx, rcx
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x14012289d
test edi, edi
jne 0x14012285b
lea rdx, str.disabling_EPRT_usage_n
mov rcx, rsi
call fcn.1400fe880
mov byte [rbx + 0x32c], dil
inc edi
cmp edi, 2
jne 0x140122884
lea rdx, str.Failed_to_do_PORT
mov rcx, rsi
call fcn.1400fe7c0
lea eax, [rdi + 0x1c]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov edx, edi
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp 0x140123560
lea rdx, str.Connect_data_stream_actively_n
mov rcx, rsi
call fcn.1400fe880
xor edi, edi
mov dword [rbx + 0x620], edi
mov rax, qword [rbx]
mov rcx, qword [rax + 0x1f8]
cmp dword [rcx + 0x18], edi
je 0x1401228e9
or r8, 0xffffffffffffffff
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov rcx, rbx
or edx, r8d
mov dword [rsp + 0x28], 0xffffffff
mov qword [rsp + 0x20], rdi
call fcn.14010daf0
jmp 0x1401228f0
mov byte [rbx + 0x323], 1
mov rsi, qword [rsp + 0x58]
mov byte [rbx + 0x601], 1
mov rbx, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x40
pop rdi
ret
Function at 0x140122c50
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 + 0x1f8]
cmp dword [rdx + 0x18], 0
je 0x140122c9d
cmp qword [rcx + 0x5f8], 0
je 0x140122c9d
lea rdx, str.REST__d
add rcx, 0x578
xor r8d, r8d
call fcn.14013f110
test eax, eax
jne 0x140122ca7
mov dword [rbx + 0x620], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140122910
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x578
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1f8]
mov eax, dword [rdx + 0x18]
cmp eax, 1
jne 0x140122f8e
mov r8, qword [rcx + 0x80]
test r8, r8
je 0x140122f8e
lea rdx, str.SIZE__s
call fcn.14013f110
test eax, eax
jne 0x140122fcc
mov dword [rbx + 0x620], 0x17
add rsp, 0x20
pop rbx
ret
test eax, eax
je 0x140122fbf
cmp qword [rbx + 0x5f8], 0
je 0x140122fbf
lea rdx, str.REST__d
xor r8d, r8d
call fcn.14013f110
test eax, eax
jne 0x140122fcc
mov dword [rbx + 0x620], 0x1a
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140122910
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0x4af], 0
je 0x1401231d8
cmp qword [rcx + 0x5f8], 0
je 0x1401231d8
cmp byte [r9 + 0x4a3], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0x610]
cmp eax, edx
je 0x1401231d8
mov rax, qword [r9 + 0x1f8]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x18], 1
movzx edx, byte [r9 + 0x4a3]
jmp fcn.140121070
jmp fcn.140122f40

Function at 0x1401231e0
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, 0x51eb851f
mov edi, r8d
mov r8d, edx
xor ebx, ebx
mov rsi, rcx
mov rcx, qword [rcx]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x140123232
lea rdx, str.Couldnt_set_desired_mode
call fcn.1400fe7c0
lea eax, [rbx + 0x11]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp r8d, 0xc8
je 0x140123247
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.1400fe880
cmp edi, 0x13
jne 0x140123256
mov rcx, rsi
call fcn.140122f40
jmp 0x140123283
cmp edi, 0x14
jne 0x140123265
mov rcx, rsi
call fcn.140121e30
jmp 0x140123283
cmp edi, 0x15
jne 0x140123270
lea r8d, [rdi - 8]
jmp 0x140123279
cmp edi, 0x16
jne 0x140123285
lea r8d, [rdi - 8]
mov dl, 1
mov rcx, rsi
call fcn.140122a60
mov ebx, eax
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140125b80
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x1402274c0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140125bc6
lea rdx, str.WSAStartup_failed___d_
mov r8d, eax
mov rcx, rbx
call fcn.1400fe7c0
jmp 0x140125bf0
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x140125be1
shr ax, 8
test al, al
jne 0x140125be1
xor eax, eax
jmp 0x140125bf5
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, rbx
call fcn.1400fe7c0
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140150a60
add rsp, 0x1d0
pop rbx
ret

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

Disassembly:
mov rax, qword [rcx]
movsxd r10, edx
mov r11, rcx
mov r9, qword [rax + 0x1f8]
mov r8d, dword [r9 + r10*4 + 8]
dec r8d
je 0x14012641f
dec r8d
je 0x1401263ff
dec r8d
jne 0x140126433
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x1401263f7
dec ecx
jne 0x140126433
xor eax, eax
mov r8d, edx
mov rcx, r11
mov edx, 0xfb
mov dword [r9 + r10*4 + 8], 2
mov dword [r9 + r10*4 + 0x408], eax
jmp fcn.1401265b0
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
ret
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x1401263f7
dec ecx
jne 0x140126433
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
mov dword [r9 + r10*4 + 0x408], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfc
mov dword [r9 + r10*4 + 8], eax
jmp fcn.1401265b0
ret

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

Disassembly:
mov rax, qword [rcx]
movsxd r10, edx
mov r11, rcx
mov r9, qword [rax + 0x1f8]
mov r8d, dword [r9 + r10*4 + 0xc08]
test r8d, r8d
je 0x1401264dc
sub r8d, 2
je 0x14012649a
dec r8d
jne 0x1401264ce
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14012648d
dec ecx
jne 0x1401264ce
mov dword [r9 + r10*4 + 0xc08], 1
mov dword [r9 + r10*4 + 0x1008], ecx
ret
mov dword [r9 + r10*4 + 0xc08], 0
ret
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1401264cf
dec ecx
jne 0x1401264ce
mov dword [r9 + r10*4 + 0x1008], ecx
mov dword [r9 + r10*4 + 0xc08], 3
mov rcx, r11
mov r8d, edx
mov edx, 0xfe
jmp fcn.1401265b0
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x1401264c1
mov r8d, edx
mov edx, 0xfd
mov dword [r9 + r10*4 + 0xc08], 1
jmp fcn.1401265b0
Function at 0x140126500
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx]
movsxd r10, edx
mov r11, rcx
mov r9, qword [rax + 0x1f8]
mov r8d, dword [r9 + r10*4 + 0xc08]
dec r8d
je 0x14012658b
dec r8d
je 0x140126568
dec r8d
jne 0x1401265a2
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14012655d
dec ecx
jne 0x1401265a2
xor eax, eax
mov r8d, edx
mov rcx, r11
mov edx, 0xfd
mov dword [r9 + r10*4 + 0xc08], 2
mov dword [r9 + r10*4 + 0x1008], eax
jmp fcn.1401265b0
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
ret
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14012655d
dec ecx
jne 0x1401265a2
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
mov dword [r9 + r10*4 + 0x1008], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfe
mov dword [r9 + r10*4 + 0xc08], eax
jmp fcn.1401265b0
ret

Function at 0x1401265b0
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
xor r9d, r9d
mov rbx, rcx
mov rcx, qword [rcx + 0x1d0]
mov esi, edx
mov byte [rax + 0x11], dl
lea r8d, [r9 + 3]
lea rdx, [rax + 0x10]
mov byte [rax + 0x10], 0xff
mov byte [rax + 0x12], dil
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14012660e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400fe7c0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140125de0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140126760
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x14012690e
push rbp
push rdi
push r14
sub rsp, 0x30
mov rbp, qword [rcx]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x28], rsi
mov rdi, qword [rbp + 0x1f8]
mov r14, rcx
mov qword [rsp + 0x20], r15
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1401267a9
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1401267b7
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1401267c5
mov byte [rax], Ordinal_33
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x58], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx]
movzx r8d, ax
mov word [rsp + 0x50], ax
cmp rcx, rbx
jae 0x1401267ff
mov byte [rcx], r15b
inc qword [rbx]
mov rdx, qword [rbx]
mov r15, qword [rsp + 0x20]
cmp rdx, rbx
jae 0x140126816
movzx ecx, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140126824
mov byte [rax], r8b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x140126836
movzx eax, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140126844
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140126852
mov byte [rax], 0xf0
inc qword [rbx]
mov rax, qword [rbx]
lea r8, [rdi + 0x1cba]
mov edx, 0x3e
mov r9, rax
mov rcx, rbp
mov qword [rbx], rsi
sub r9, rsi
mov qword [rdi + 0x1ec0], rax
sub r9, 2
call fcn.140125f10
mov rcx, qword [r14 + 0x1d0]
xor r9d, r9d
lea r8d, [r9 + 3]
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x60]
test eax, eax
jns 0x1401268ba
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400fe7c0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140126640
mov rcx, qword [r14 + 0x1d0]
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rdi + 0x1cbf]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140126906
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400fe7c0
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x140127b10
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1402274c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0x578]
mov rdi, qword [rcx]
mov dword [rsp + 0x30], 0x80
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r14, rcx
mov rcx, qword [rbx + 0x18]
lea rax, [rsp + 0x40]
add r8d, 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140127bac
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.140152980
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xe8], rsi
cmp r8d, 4
jge 0x140127c07
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400fe7c0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140150a60
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rcx, qword [rbx + 0x168]
movzx eax, byte [rcx]
shl ax, 8
movzx edx, ax
movzx eax, byte [rcx + 1]
or edx, eax
mov dword [rbx + 0xc], edx
sub edx, 3
je 0x140127c9a
dec edx
je 0x140127d11
dec edx
je 0x140127c6e
dec edx
je 0x140127c51
lea r8, str.Internal_error:_Unexpected_packet
lea rdx, [0x1401b93e0]
mov rcx, rdi
call fcn.1400fe7c0
jmp 0x140127d11
lea rdx, [rcx + 2]
add r8d, 0xfffffffe
mov rcx, rbx
call fcn.140127840
test eax, eax
je 0x140127d11
jmp 0x140127bd9
movzx eax, byte [rcx + 2]
mov rdx, rcx
shl ax, 8
lea r8, [rdx + 4]
movzx ecx, ax
movzx eax, byte [rdx + 3]
lea rdx, [0x1401b869c]
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rdi
call fcn.1400fe880
jmp 0x140127d11
cmp r8d, 4
jle 0x140127d11
movzx eax, byte [rcx + 2]
shl ax, 8
movzx edx, ax
movzx eax, byte [rcx + 3]
or edx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, edx
jne 0x140127d11
lea eax, [r8 - 4]
lea r8, [rcx + 4]
mov edx, 1
movsxd r9, eax
mov rcx, r14
call fcn.1400fe640
mov esi, eax
test eax, eax
je 0x140127cf0
mov edx, 5
mov rcx, rbx
call fcn.1401286e0
mov eax, esi
jmp 0x140127bd9
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xb0], rax
mov rdx, qword [rdi + 0xb0]
call fcn.1401142c0
mov rcx, r14
call fcn.140114620
test eax, eax
je 0x140127bd7
mov edx, 5
mov rcx, rbx
call fcn.1401286e0
mov eax, Ordinal_46
jmp 0x140127bd9
Function at 0x14012c760
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x1402274c0]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.140151688
mov byte [rsp + 0x20], 0
test rax, rax
je 0x14012c7c6
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x14012c7c6
lea rcx, [rsp + 0x20]
call qword [case.0x1400f4696.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140150a60
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140150a60
add rsp, 0x148
ret
jmp 0x14012c760

Function at 0x14012c7e0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x1402274c0]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.140151688
mov byte [rsp + 0x20], 0
test rax, rax
je 0x14012c7c6
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x14012c7c6
lea rcx, [rsp + 0x20]
call qword [case.0x1400f4696.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140150a60
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140150a60
add rsp, 0x148
ret
jmp 0x14012c760
Function at 0x14012ec70
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
xor eax, eax
test edx, edx
lea r8, [rsp + 0x38]
setne al
mov edx, 0x8004667e
mov dword [rsp + 0x38], eax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x28
ret

Function at 0x14012eca0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.kernel32
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14012ecca
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov rcx, rax
mov qword [rsp + 0x48], r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1401c1cc0]
mov rcx, rbx
mov r14, rax
call fcn.14015655c
test rax, rax
je 0x14012ed2d
mov rcx, rbx
test r14, r14
je 0x14012ed17
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x14012ed65
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14012ed65
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x50], r15
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x14012ee29
mov qword [rsp + 0x40], rsi
or rsi, 0xffffffffffffffff
mov rdx, rsi
nop dword [rax + rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x14012ed90
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.1401527d8]
mov rdi, rax
test rax, rax
je 0x14012ee1b
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14012ee1b
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x14012edc0
mov ecx, 0x5c
mov word [rax + rdi], cx
cmp byte [rdi + rsi + 1], bpl
lea rsi, [rsi + 1]
jne 0x14012edd4
lea rcx, [rsi + rdi]
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rcx + rbx - 1], al
test al, al
jne 0x14012edf0
mov rcx, rdi
test r14, r14
je 0x14012ee12
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x14012ee18
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.140150b20]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x48]
mov rax, rbp
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x140132940
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.140150d80
sub rsp, rax
mov edi, edx
mov rbx, rcx
test edx, edx
jle 0x14013298e
call fcn.140151d00
lea r8, [0x14021e2c8]
lea rdx, str.invalid_state_reached__s:_d
lea rcx, [rax + 0x60]
mov r9d, 0x420
call fcn.1401558e4
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.1401450f0
test eax, eax
je 0x1401329c4
mov rcx, rbx
call fcn.1400dfe30
test eax, 0x3000
jne 0x1401329d1
cmp dword [rbx + 0x284], 0
jne 0x1401329d1
mov rcx, rbx
call fcn.1400df4f0
mov edx, 1
mov rcx, rax
call fcn.14005ba40
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140145000
Function at 0x140134bf0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rdi, r8
cmp dword [rcx + 8], 2
mov rsi, rdx
jne 0x140134c3a
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x140134c2a
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rcx + 0x10]
mov edx, 1
mov rcx, rsi
call rax
jmp 0x140134c82
cmp qword [rbx + 0x10], 0
jne 0x140134c6e
mov rcx, qword [rcx + 0x10]
lea rdx, [0x1401cdba0]
call fcn.1401541a4
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x140134c6e
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rbx + 0x10]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call fcn.1401543d0
mov rdi, rax
test rax, rax
jne 0x140134ca5
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140134c9c
call fcn.140153c8c
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rax, rdi
add rsp, 0x20
pop rdi
ret