joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400344d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0xd0
mov rax, qword [0x140091208]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0x6e8]
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 rbp, 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 0x14003456d
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.140052090
mov r11d, dword [rsp + 0x30]
mov dword [rbx + 0x150], r11d
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xe8], rsi
cmp r8d, 4
jge 0x1400345c7
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400231d0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140051c70
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
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 0x140034670
dec edx
je 0x1400346ee
dec edx
je 0x140034639
dec edx
je 0x140034615
lea r8, str.Internal_error:_Unexpected_packet
lea rdx, [0x140072670]
mov rcx, rdi
call fcn.1400231d0
jmp 0x1400346ee
mov rdx, qword [rbx + 0x168]
add r8d, 0xfffffffe
mov rcx, rbx
add rdx, 2
call fcn.140033140
test eax, eax
je 0x1400346ee
jmp 0x14003459a
mov rdx, qword [rbx + 0x168]
mov r8, qword [rbx + 0x168]
movzx eax, byte [rdx + 2]
add r8, 4
shl ax, 8
movzx ecx, ax
movzx eax, byte [rdx + 3]
lea rdx, [0x140072870]
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rdi
call fcn.140023120
jmp 0x1400346ee
cmp r8d, 4
jle 0x1400346ee
mov rcx, qword [rbx + 0x168]
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 0x1400346ee
lea eax, [r8 - 4]
lea r8, [rcx + 4]
mov edx, 1
movsxd r9, eax
mov rcx, rbp
call fcn.140023770
mov esi, eax
test eax, eax
je 0x1400346cd
mov edx, 5
mov rcx, rbx
call fcn.140034450
mov eax, esi
jmp 0x14003459a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xb0], rax
mov rdx, qword [rdi + 0xb0]
call fcn.140029ac0
mov rcx, rbp
call fcn.140029b40
test eax, eax
je 0x140034598
mov edx, 5
mov rcx, rbx
call fcn.140034450
mov eax, 0x2a
jmp 0x14003459a
Function at 0x140035660
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x140091208]
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 0x1400356a6
lea rdx, str.WSAStartup_failed___d_
mov r8d, eax
mov rcx, rbx
call fcn.1400231d0
jmp 0x1400356d5
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx r11d, word [rsp + 0x20]
cmp r11b, 2
jne 0x1400356c6
shr r11w, 8
test r11b, r11b
jne 0x1400356c6
xor eax, eax
jmp 0x1400356da
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, rbx
call fcn.1400231d0
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140051c70
add rsp, 0x1d0
pop rbx
ret

Function at 0x1400358e0
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]
xor r9d, r9d
mov rbx, rcx
movsxd rcx, dword [rcx + 0x1a8]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x11], dl
mov byte [rax + 0x12], r8b
lea r8d, [r9 + 3]
lea rdx, [rax + 0x10]
mov byte [rax + 0x10], 0xff
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14003593e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400231d0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400357a0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
movsxd r9, edx
mov r11, rcx
mov r8, qword [rax + 0x1a8]
mov r10d, dword [r8 + r9*4 + 0xc08]
test r10d, r10d
je 0x140035a24
sub r10d, 2
je 0x1400359da
dec r10d
jne 0x140035a0e
mov ecx, dword [r8 + r9*4 + 0x1008]
test ecx, ecx
je 0x1400359c9
dec ecx
jne 0x140035a0e
mov dword [r8 + r9*4 + 0xc08], 1
mov dword [r8 + r9*4 + 0x1008], ecx
add rsp, 0x28
ret
mov dword [r8 + r9*4 + 0xc08], 0
add rsp, 0x28
ret
mov ecx, dword [r8 + r9*4 + 0x1008]
test ecx, ecx
je 0x140035a13
dec ecx
jne 0x140035a0e
mov dword [r8 + r9*4 + 0x1008], ecx
mov dword [r8 + r9*4 + 0xc08], 3
mov rcx, r11
mov r8d, edx
mov edx, 0xfe
call fcn.1400358e0
add rsp, 0x28
ret
mov dword [r8 + r9*4 + 0xc08], 1
add rsp, 0x28
ret
cmp dword [r8 + r9*4 + 0x1408], 1
jne 0x140035a01
mov dword [r8 + r9*4 + 0xc08], 1
mov r8d, edx
mov edx, 0xfd
add rsp, 0x28
jmp fcn.1400358e0
Function at 0x140035a50
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
movsxd r9, edx
mov r11, rcx
mov r8, qword [rax + 0x1a8]
mov r10d, dword [r8 + r9*4 + 0xc08]
dec r10d
je 0x140035aef
dec r10d
je 0x140035ac8
dec r10d
jne 0x140035b06
mov ecx, dword [r8 + r9*4 + 0x1008]
test ecx, ecx
je 0x140035ab9
dec ecx
jne 0x140035b06
xor eax, eax
mov dword [r8 + r9*4 + 0xc08], 2
mov rcx, r11
mov dword [r8 + r9*4 + 0x1008], eax
mov r8d, edx
mov edx, 0xfd
add rsp, 0x28
jmp fcn.1400358e0
xor eax, eax
mov dword [r8 + r9*4 + 0xc08], eax
add rsp, 0x28
ret
mov ecx, dword [r8 + r9*4 + 0x1008]
test ecx, ecx
je 0x140035ab9
dec ecx
jne 0x140035b06
xor eax, eax
mov dword [r8 + r9*4 + 0xc08], eax
mov dword [r8 + r9*4 + 0x1008], eax
add rsp, 0x28
ret
xor eax, eax
mov dword [r8 + r9*4 + 0xc08], eax
mov r8d, edx
mov edx, 0xfe
call fcn.1400358e0
add rsp, 0x28
ret

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

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
movsxd r9, edx
mov r11, rcx
mov r8, qword [rax + 0x1a8]
mov r10d, dword [r8 + r9*4 + 8]
dec r10d
je 0x140035b9f
dec r10d
je 0x140035b7b
dec r10d
jne 0x140035bb3
mov ecx, dword [r8 + r9*4 + 0x408]
test ecx, ecx
je 0x140035b6f
dec ecx
jne 0x140035bb3
xor eax, eax
mov dword [r8 + r9*4 + 8], 2
mov rcx, r11
mov dword [r8 + r9*4 + 0x408], eax
mov r8d, edx
mov edx, 0xfb
add rsp, 0x28
jmp fcn.1400358e0
xor eax, eax
mov dword [r8 + r9*4 + 8], eax
add rsp, 0x28
ret
mov ecx, dword [r8 + r9*4 + 0x408]
test ecx, ecx
je 0x140035b6f
dec ecx
jne 0x140035bb3
xor eax, eax
mov dword [r8 + r9*4 + 8], eax
mov dword [r8 + r9*4 + 0x408], eax
add rsp, 0x28
ret
xor eax, eax
mov dword [r8 + r9*4 + 8], eax
mov r8d, edx
mov edx, 0xfc
call fcn.1400358e0
add rsp, 0x28
ret
Function at 0x140036810
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400369be
push rbp
push rdi
push r13
sub rsp, 0x30
mov rbp, qword [rcx]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x28], rsi
mov rdi, qword [rbp + 0x1a8]
mov r13, rcx
mov qword [rsp + 0x20], r12
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140036859
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140036867
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140036875
mov byte [rax], 0x1f
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r12d, ax
mov word [rsp + 0x58], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx]
movzx r11d, ax
mov word [rsp + 0x50], ax
cmp rcx, rbx
jae 0x1400368af
mov byte [rcx], r12b
inc qword [rbx]
mov rdx, qword [rbx]
mov r12, qword [rsp + 0x20]
cmp rdx, rbx
jae 0x1400368c6
movzx ecx, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400368d4
mov byte [rax], r11b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x1400368e6
movzx eax, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400368f4
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140036902
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.140035bc0
movsxd rcx, dword [r13 + 0x1a8]
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 0x14003696a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400231d0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r13
call fcn.140036560
movsxd rcx, dword [r13 + 0x1a8]
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rdi + 0x1cbf]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400369b6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400231d0
add rsp, 0x30
pop r13
pop rdi
pop rbp
repz ret
Function at 0x140037770
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, 0xc0
mov rax, qword [0x140091208]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x1b0]
mov rsi, qword [rcx]
mov rbx, rcx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbp
or rdi, 0xffffffffffffffff
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400377e7
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbp
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
mov rdx, rbp
mov rcx, rbx
call fcn.140026af0
mov rcx, rsi
cmp rdi, 0xffffffffffffffff
jne 0x14003780c
lea rdx, str.Error_accept__ing_server_connect
call fcn.1400231d0
lea eax, [rdi + 0x1f]
jmp 0x140037873
lea rdx, str.Connection_accepted_from_server_n
call fcn.140023120
mov edx, 1
mov rcx, rdi
mov dword [rbx + 0x38c], 0
mov qword [rbx + 0x1b0], rdi
call fcn.140048440
mov dword [rbx + 0x1cc], 1
mov rax, qword [rsi + 0x278]
test rax, rax
je 0x140037871
mov rcx, qword [rsi + 0x280]
mov r8d, 1
mov rdx, rdi
call rax
test eax, eax
je 0x140037871
mov rcx, rbx
call fcn.140037640
mov eax, 0x2a
jmp 0x140037873
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140051c70
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14003b940
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 0x14003b992
lea rdx, str.Couldnt_set_desired_mode
call fcn.1400231d0
lea eax, [rbx + 0x11]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp r8d, 0xc8
je 0x14003b9a7
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.140023120
cmp edi, 0x13
jne 0x14003b9b6
mov rcx, rsi
call fcn.14003b8b0
jmp 0x14003b9e6
cmp edi, 0x14
jne 0x14003b9c5
mov rcx, rsi
call fcn.140038380
jmp 0x14003b9e6
cmp edi, 0x15
jne 0x14003b9d0
lea r8d, [rdi - 8]
jmp 0x14003b9d9
cmp edi, 0x16
jne 0x14003b9e8
lea r8d, [rdi - 8]
mov edx, 1
mov rcx, rsi
call fcn.14003ab50
mov ebx, eax
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14003c140
Capabilities:
Convert ip address from string
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x40
mov rbp, qword [rcx]
mov edi, dword [rcx + 0x794]
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov rbx, rcx
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x14003c1cc
test edi, edi
jne 0x14003c18a
lea rdx, str.disabling_EPRT_usage_n
mov rcx, rbp
call fcn.140023120
mov dword [rbx + 0x3b0], edi
inc edi
cmp edi, 2
jne 0x14003c1b3
lea rdx, str.Failed_to_do_PORT
mov rcx, rbp
call fcn.1400231d0
lea eax, [rdi + 0x1c]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov edx, edi
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp 0x140037ad0
lea rdx, str.Connect_data_stream_actively_n
mov rcx, rbp
call fcn.140023120
mov dword [rbx + 0x7a0], 0
mov rax, qword [rbx]
mov rcx, qword [rax + 0x1a8]
cmp dword [rcx + 0x18], 0
je 0x14003c223
or r8, 0xffffffffffffffff
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov rcx, rbx
or edx, r8d
mov dword [rsp + 0x28], 0xffffffff
mov qword [rsp + 0x20], 0
call fcn.140045550
jmp 0x14003c22d
mov dword [rbx + 0x38c], 1
mov rbp, qword [rsp + 0x58]
mov dword [rbx + 0x774], 1
mov rbx, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x140043240
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x140091208]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.1400565f8
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400432a6
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400432a6
lea rcx, [rsp + 0x20]
call qword [case.0x14002440c.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140051c70
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140051c70
add rsp, 0x148
ret
jmp 0x140043240

Function at 0x1400432c0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x140091208]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.1400565f8
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400432a6
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400432a6
lea rcx, [rsp + 0x20]
call qword [case.0x14002440c.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140051c70
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140051c70
add rsp, 0x148
ret
jmp 0x140043240

Function at 0x140048440
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 0x140049dd0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov byte [rcx], 0
mov edx, ebx
call qword [sym.imp.WS2_32.dll_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x140049e09
lea edx, [rax + 0x2e]
mov rcx, rdi
call fcn.1400525e8
test rax, rax
je 0x140049e07
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14004bfd0
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 0x14004c01a
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x14004c00a
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 0x14004c062
cmp qword [rbx + 0x10], 0
jne 0x14004c04e
mov rcx, qword [rcx + 0x10]
lea rdx, [0x140080e24]
call fcn.140054288
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x14004c04e
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.140054574
mov rdi, rax
test rax, rax
jne 0x14004c085
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14004c07c
call fcn.14005482c
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
Function at 0x14004ca20
Capabilities:
Read file on windows

Disassembly:
push r13
push r14
mov eax, 0x2078
call fcn.1400563e0
sub rsp, rax
mov rax, qword [0x140091208]
xor rax, rsp
mov qword [rsp + 0x2040], rax
mov r13, rdx
lea rax, [rsp + 0x38]
mov r14, r8
mov r8, rcx
lea rdx, [rsp + 0x30]
xor r9d, r9d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.14004c1c0
test eax, eax
jne 0x14004cbfe
mov qword [rsp + 0x2070], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x2068], rbp
mov qword [rsp + 0x2060], rsi
mov qword [rsp + 0x2058], rdi
mov qword [rsp + 0x2050], r12
mov r12, rbx
test rbx, rbx
je 0x14004cbd4
mov eax, dword [r12 + 8]
cmp eax, 3
je 0x14004cafc
cmp eax, 2
je 0x14004cafc
mov r8, qword [r12 + 0x18]
mov rdx, qword [r12 + 0x10]
mov rcx, r13
call r14
cmp qword [r12 + 0x18], rax
je 0x14004cb96
cmp dword [rbx + 8], 1
mov rdi, qword [rbx]
jg 0x14004cae3
mov rcx, qword [rbx + 0x10]
call qword [case.0x1400292fb.0]
mov rcx, rbx
call qword [case.0x1400292fb.0]
mov rbx, rdi
test rdi, rdi
jne 0x14004cad0
or eax, 0xffffffff
jmp 0x14004cbd6
mov rbp, r12
xor esi, esi
cmp dword [rbp + 8], 2
jne 0x14004cb0b
xor edi, edi
jmp 0x14004cb76
test rsi, rsi
jne 0x14004cb2c
mov rcx, qword [rbp + 0x10]
lea rdx, [0x140080e24]
call fcn.140054288
mov rsi, rax
test rax, rax
je 0x14004cc27
lea rcx, [rsp + 0x40]
mov r9, rsi
mov edx, 1
mov r8d, 0x2000
call fcn.140054574
mov rdi, rax
test rax, rax
jne 0x14004cb5f
test rsi, rsi
je 0x14004cb5b
mov rcx, rsi
call fcn.14005482c
xor esi, esi
mov rbp, qword [rbp]
cmp rdi, 0xffffffffffffffff
je 0x14004cc1a
cmp rdi, 0x2000
ja 0x14004cc1a
lea rdx, [rsp + 0x40]
mov r8, rdi
mov rcx, r13
call r14
cmp rdi, rax
jne 0x14004cc1a
test rdi, rdi
jne 0x14004cb01
mov r12, qword [r12]
test r12, r12
jne 0x14004caa6
test rbx, rbx
je 0x14004cbd4
nop dword [rax + rax]
cmp dword [rbx + 8], 1
mov rdi, qword [rbx]
jg 0x14004cbc3
mov rcx, qword [rbx + 0x10]
call qword [case.0x1400292fb.0]
mov rcx, rbx
call qword [case.0x1400292fb.0]
mov rbx, rdi
test rdi, rdi
jne 0x14004cbb0
xor eax, eax
mov rdi, qword [rsp + 0x2058]
mov rsi, qword [rsp + 0x2060]
mov rbp, qword [rsp + 0x2068]
mov rbx, qword [rsp + 0x2070]
mov r12, qword [rsp + 0x2050]
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.140051c70
add rsp, 0x2078
pop r14
pop r13
ret
test rsi, rsi
je 0x14004cc27
mov rcx, rsi
call fcn.14005482c
cmp dword [rbx + 8], 1
mov rdi, qword [rbx]
jg 0x14004cc3a
mov rcx, qword [rbx + 0x10]
call qword [case.0x1400292fb.0]
mov rcx, rbx
call qword [case.0x1400292fb.0]
mov rbx, rdi
test rdi, rdi
jne 0x14004cc27
or eax, 0xffffffff
jmp 0x14004cbd6
Function at 0x14004f410
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov r12d, r8d
lea r9d, [rax + rax]
mov eax, dword [rcx + 0x20]
mov rbp, rdx
lea rcx, [r9 + rax + 0x18]
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x14004f451
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rsp + 0x48], rsi
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp r12d, dword [rbx + 0x1c]
jbe 0x14004f495
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, r12d
mov rdx, rbp
call qword [rbx + reloc.WS2_32.dll_htonl]
mov ebp, dword [rbx + 0x18]
mov rdx, qword [rdi + 8]
add rbp, qword [rdi + 0x10]
mov rcx, rbp
call qword [rbx + reloc.WS2_32.dll_recv]
mov r12d, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test r12, r12
je 0x14004f4f4
mov rsi, r12
nop dword [rax + rax]
movzx eax, byte [rbp]
lea rdx, [rsp + 0x40]
mov r8d, 1
xor al, 0x36
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx r11d, byte [rbp]
lea rdx, [rsp + 0x40]
xor r11b, 0x5c
mov r8d, 1
inc rbp
mov byte [rsp + 0x40], r11b
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
dec r12
jne 0x14004f4b0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14004f533
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14007bfcc]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14007bfcd]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14004f500
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop r12
pop rdi
pop rbp
ret

Function at 0x14005391c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14005378c
Function at 0x140054180
Capabilities:
Delete file

Disassembly:
sub rsp, 0x38
cmp byte [reloc.WS2_32.dll_accept], 0
jne 0x140009a3d
cmp dword [0x1400d3b94], 0
mov byte [reloc.WS2_32.dll_accept], 1
lea rcx, [0x1400d26d0]
jne 0x140009961
add rsp, 0x38
jmp 0x140054180
lea rdx, [0x140080e2c]
mov qword [rsp + 0x48], rbx
call fcn.140054288
mov rbx, rax
test rax, rax
je 0x140009a38
mov qword [rsp + 0x50], rbp
lea rcx, [0x1400d26a8]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [0x1400d3b94]
lea ecx, [rbp + 0x20]
mov edi, ecx
call fcn.1400524d8
mov r8d, edi
mov rcx, rax
xor edx, edx
mov rsi, rax
call fcn.140054b20
mov dword [rsp + 0x40], 0x70616548
mov word [rsp + 0x44], 0x57
test rsi, rsi
je 0x140009a00
mov rdx, qword [0x1400d3ba0]
or rcx, 0xffffffffffffffff
xor eax, eax
mov byte [rsp + 0x28], al
lea rdi, [rsp + 0x40]
lea r9, [rsp + 0x40]
repne scasb al, byte [rdi]
mov r8d, ebp
not rcx
dec rcx
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.140003130
mov rdx, rbp
mov r9, rbx
mov r8d, 1
mov rcx, rsi
call fcn.140054720
lea rcx, [0x1400d26a8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rbx
call fcn.14005482c
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140054196
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140054198
xor eax, eax
test eax, eax
je 0x1400541a8
mov ecx, eax
call fcn.140056c20
or eax, 0xffffffff
jmp 0x1400541aa
xor eax, eax
add rsp, 0x28
ret
Function at 0x14005881f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140091208]
jne 0x140051c8a
rol rcx, 0x10
test cx, 0xffff
jne 0x140051c86
repz ret
ror rcx, 0x10
jmp 0x140058778
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140094710]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140094808]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400587fd
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140094710]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14005881f
mov rax, qword [rsp + 0x88]
mov qword [0x140094808], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400947a8], rax
mov rax, qword [0x140094808]
mov qword [0x140094680], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140094790], rax
mov dword [0x140094670], 0xc0000409
mov dword [0x140094674], 1
mov rax, qword [0x140091208]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140091210]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140094708], eax
mov ecx, 1
call fcn.1400630b0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, str.pF_t_
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140094708], 0
jne 0x1400588a6
mov ecx, 1
call fcn.1400630b0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret