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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rcx
movsxd rcx, dword [rcx + 0x660]
mov rbx, rdx
cmp ecx, 0xffffffff
je 0x5389b6
mov rax, qword [rax + 0x650]
mov rdx, qword [rax]
cmp qword [rdx + rcx*8], 0
je 0x5389b6
test r8, r8
mov rcx, qword [rdx + rcx*8]
je 0x538985
mov qword [r8], rcx
mov eax, dword [rcx + 0x118]
mov dword [rbx], eax
cmp byte [rcx + 0x128], 0
jne 0x5389b6
mov rcx, qword [rcx + 0x118]
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x5389bc
mov dword [rbx], 0xffffffff
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x539340
Capabilities:
Resolve dns

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x68
mov qword [rsp + 0x58], rbp
mov rbp, qword [rsp + 0x98]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r13
mov r13, qword [rsp + 0x90]
mov qword [rsp + 0x30], r14
mov qword [rbp], 0
mov qword [rsp + 0x28], r15
movzx r14d, r9w
mov byte [r13], 0
mov r15d, r8d
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
mov r12, rax
je 0x53949e
cmp word [rax + 0x10], 2
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
jne 0x53944d
cmp word [rax + 0x12], 4
jne 0x53944d
mov rdi, qword [rax + 0x18]
mov rcx, qword [rdi]
test rcx, rcx
je 0x53944d
nop
mov esi, dword [rcx]
mov edx, gethostbyname
lea ecx, [rdx - 0x2f]
call qword [sym.imp.msvcrt.dll_calloc]
test rax, rax
mov rbx, rax
je 0x539433
mov edx, reloc.WS2_32.dll_recv
lea ecx, [rdx - 0xf]
call qword [sym.imp.msvcrt.dll_calloc]
test rax, rax
jne 0x539408
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
xor ebx, ebx
jmp 0x539433
mov ecx, dword [rsp + 0x78]
mov word [rax], 2
mov word [rax + 2], r14w
mov dword [rax + 4], esi
mov dword [rbx + 8], ecx
mov dword [rbx + 4], 2
mov dword [rbx + 0xc], r15d
mov qword [rbx + reloc.WS2_32.dll_recv], 0x10
mov qword [rbx + 0x20], rax
test rbx, rbx
mov qword [rbp], rbx
je 0x539497
mov rcx, qword [rdi + 8]
add rdi, 8
lea rbp, [rbx + 0x28]
test rcx, rcx
jne 0x5393d0
mov rdx, qword [r12]
mov r8d, 0x400
mov rcx, r13
call qword [sym.imp.msvcrt.dll_strncpy]
mov byte [r13 + 0x400], 0
xor eax, eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x48]
mov r15, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x58]
add rsp, 0x68
ret
mov eax, 8
jmp 0x53946a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2af9
je 0x5394b5
dec eax
je 0x5394c3
dec eax
je 0x5394bc
dec eax
mov eax, 0x2af9
jmp 0x539479
mov eax, 0x2afb
jmp 0x539479
mov eax, 0x2afa
jmp 0x539479
Function at 0x539f00
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
sub rsp, 0x288
mov rax, qword [0x005ca070]
mov qword [rsp + 0x270], rax
cmp dword [0x005ed2a8], 0
lea rax, [0x00539860]
mov qword [r11 + 0x10], rbp
mov qword [rsp + 0x28], rax
lea rax, str.getnameinfo
mov qword [r11 - 8], r12
mov qword [rsp + 0x30], rax
lea rax, [0x00539c30]
lea r12, str.getaddrinfo
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
movzx ebp, cx
mov qword [rsp + 0x40], rax
lea rax, [0x005397f0]
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x48], rax
jne 0x53a0da
lea rcx, [r11 - 0x128]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x53a0d0
mov qword [rsp + 0x290], rbx
xor ebx, ebx
mov rcx, rbx
movzx eax, byte [rsp + rcx + 0x160]
inc rcx
test al, al
mov byte [rsp + rcx + 0x4f], al
jne 0x539fa0
xor eax, eax
mov qword [rsp + 0x2a0], rsi
mov qword [rsp + reloc.SHELL32.dll_IsUserAnAdmin], rdi
lea rdi, [rsp + 0x50]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [str.ws2_32]
lea rcx, [rsp + 0x50]
mov qword [rdi - 1], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x53a00b
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x53a06d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdx, rbx
nop
movzx eax, byte [rsp + rdx + 0x160]
inc rdx
test al, al
mov byte [rsp + rdx + 0x4f], al
jne 0x53a010
xor eax, eax
lea rdi, [rsp + 0x50]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [str.wship6]
lea rcx, [rsp + 0x50]
mov qword [rdi - 1], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x53a0b8
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x53a06d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x53a0b8
lea rdi, [rsp + 0x28]
mov rdx, qword [rdi - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rdi], rax
je 0x53a062
inc rbx
add rdi, 0x10
cmp rbx, 3
jl 0x53a072
mov rax, qword [rsp + 0x28]
mov qword [0x005ea588], rax
mov rax, qword [rsp + 0x38]
mov qword [0x005ea598], rax
mov rax, qword [rsp + 0x48]
mov qword [0x005ea5a8], rax
mov rsi, qword [rsp + 0x2a0]
mov rdi, qword [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
mov rbx, qword [rsp + 0x290]
mov dword [0x005ed2a8], 1
mov r12, qword [rsp + 0x280]
movzx eax, bp
mov rbp, qword [rsp + 0x298]
lea rcx, str.getaddrinfo
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
call fcn.0055e990
add rsp, 0x288
ret
Function at 0x5409a0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx + 0x10]
mov r8d, dword [rcx]
test r8d, r8d
mov r9, qword [rax]
je 0x540a0e
dec r8d
je 0x540a05
dec r8d
je 0x5409fc
dec r8d
mov rcx, r9
je 0x5409e2
lea r8, str.Internal_state_machine_error
lea rdx, [0x005626ec]
call fcn.005374d0
mov eax, 0x47
add rsp, 0x28
ret
lea r8, str.TFTP_finished
lea rdx, [0x00567710]
call fcn.005373d0
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.0053fbd0
add rsp, 0x28
jmp fcn.0053f890
add rsp, 0x28
jmp fcn.00540430
Function at 0x542250
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0x3a0], 0
movsxd r10, r9d
mov r11, rcx
je 0x54237f
cmp r8d, 0xff
jne 0x5422b4
lea eax, [r10 - 0xec]
mov r8, rdx
cmp eax, 0x13
ja 0x5422a1
lea rcx, [0x00400000]
lea rdx, str._s_IAC__s_n
mov r9, qword [rcx + r10*8 + 0x18ecc0]
mov rcx, r11
add rsp, 0x38
jmp fcn.005373d0
lea rdx, str._s_IAC__d_n
mov r9d, r10d
add rsp, 0x38
jmp fcn.005373d0
cmp r8d, 0xfb
jne 0x5422c6
lea r9, str.WILL
jmp 0x542304
cmp r8d, 0xfc
jne 0x5422d8
lea r9, str.WONT
jmp 0x542304
cmp r8d, 0xfd
jne 0x5422ea
lea r9, [0x0058f53c]
jmp 0x542304
xor r9d, r9d
cmp r8d, 0xfe
lea rax, str.DONT
cmove r9, rax
test r9, r9
je 0x542368
cmp r10d, 0x27
jg 0x54233a
lea rcx, [0x00400000]
mov rcx, qword [rcx + r10*8 + 0x18f2e0]
test rcx, rcx
je 0x54234c
mov r8, rdx
mov qword [rsp + 0x20], rcx
lea rdx, str._s__s__s_n
mov rcx, r11
call fcn.005373d0
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x54234c
lea rcx, str.EXOPL
jmp 0x54231e
mov r8, rdx
lea rdx, str._s__s__d_n
mov rcx, r11
mov dword [rsp + 0x20], r10d
call fcn.005373d0
add rsp, 0x38
ret
mov r9d, r8d
mov r8, rdx
lea rdx, str._s__d__d_n
mov dword [rsp + 0x20], r10d
call fcn.005373d0
add rsp, 0x38
ret

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

Disassembly:
mov rax, rsp
sub rsp, 0x38
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov rbp, qword [rcx]
mov qword [rax + 0x18], rsi
xor r9d, r9d
mov rbx, rcx
mov rcx, qword [rcx + 0x118]
mov qword [rax + 0x20], rdi
mov byte [rax - 0x17], dl
mov edi, r8d
mov esi, edx
mov byte [rax - 0x16], r8b
lea r8d, [r9 + 3]
lea rdx, [rax - 0x18]
mov byte [rax - 0x18], 0xff
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x5423f1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.005374d0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.00542250
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x5425c0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rsi, qword [rcx]
mov r8, qword [rsi + 0x8810]
mov qword [rsp + 0x58], rdi
movsxd rdi, edx
mov r10d, dword [r8 + rdi*4 + 0xc08]
mov rbx, rcx
test r10d, r10d
je 0x5426ca
sub r10d, 2
je 0x54265f
dec r10d
jne 0x54278c
mov ecx, dword [r8 + rdi*4 + 0x1008]
test ecx, ecx
je 0x54263f
dec ecx
jne 0x54278c
mov dword [r8 + rdi*4 + 0xc08], 1
mov dword [r8 + rdi*4 + 0x1008], ecx
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
mov dword [r8 + rdi*4 + 0xc08], 0
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
mov ecx, dword [r8 + rdi*4 + 0x1008]
test ecx, ecx
je 0x5426aa
dec ecx
jne 0x54278c
mov dword [r8 + rdi*4 + 0x1008], ecx
mov dword [r8 + rdi*4 + 0xc08], 3
mov edx, 0xfe
mov r8d, edi
mov rcx, rbx
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
jmp fcn.00542390
mov dword [r8 + rdi*4 + 0xc08], 1
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
cmp dword [r8 + rdi*4 + 0x1408], 1
jne 0x542730
mov dword [r8 + rdi*4 + 0xc08], 1
mov rsi, qword [rcx]
mov rcx, qword [rcx + 0x118]
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x20], 0xff
lea r8d, [r9 + 3]
mov byte [rsp + 0x21], 0xfd
mov byte [rsp + 0x22], dil
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x542728
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.005374d0
mov r8d, 0xfd
jmp 0x54277a
mov rcx, qword [rcx + 0x118]
xor r9d, r9d
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 3]
mov byte [rsp + 0x20], 0xff
mov byte [rsp + 0x21], 0xfe
mov byte [rsp + 0x22], dil
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x542774
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.005374d0
mov r8d, 0xfe
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
call fcn.00542250
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x5427a0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x58], rdi
mov r8, qword [rax + 0x8810]
movsxd rdi, edx
mov rbx, rcx
mov r10d, dword [r8 + rdi*4 + 0xc08]
dec r10d
je 0x542873
dec r10d
je 0x542825
dec r10d
jne 0x5428e6
mov ecx, dword [r8 + rdi*4 + 0x1008]
test ecx, ecx
je 0x54285a
dec ecx
jne 0x5428e6
xor eax, eax
mov dword [r8 + rdi*4 + 0xc08], 2
mov edx, 0xfd
mov dword [r8 + rdi*4 + 0x1008], eax
mov r8d, edi
mov rcx, rbx
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
jmp fcn.00542390
mov ecx, dword [r8 + rdi*4 + 0x1008]
test ecx, ecx
je 0x54285a
dec ecx
jne 0x5428e6
xor eax, eax
mov dword [r8 + rdi*4 + 0xc08], eax
mov dword [r8 + rdi*4 + 0x1008], eax
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
xor eax, eax
mov dword [r8 + rdi*4 + 0xc08], eax
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
xor eax, eax
mov qword [rsp + 0x50], rsi
lea rdx, [rsp + 0x20]
mov dword [r8 + rdi*4 + 0xc08], eax
mov rsi, qword [rcx]
mov rcx, qword [rcx + 0x118]
lea r8d, [rax + 3]
xor r9d, r9d
mov byte [rsp + 0x20], 0xff
mov byte [rsp + 0x21], 0xfe
mov byte [rsp + 0x22], dil
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x5428c9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.005374d0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, 0xfe
call fcn.00542250
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x542aa0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rsi, qword [rcx]
mov r8, qword [rsi + 0x8810]
mov qword [rsp + 0x58], rdi
movsxd rdi, edx
mov r10d, dword [r8 + rdi*4 + 8]
mov rbx, rcx
test r10d, r10d
je 0x542b9b
sub r10d, 2
je 0x542b36
dec r10d
jne 0x542c5a
mov ecx, dword [r8 + rdi*4 + 0x408]
test ecx, ecx
je 0x542b19
dec ecx
jne 0x542c5a
mov dword [r8 + rdi*4 + 8], 1
mov dword [r8 + rdi*4 + 0x408], ecx
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
mov dword [r8 + rdi*4 + 8], 0
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
mov ecx, dword [r8 + rdi*4 + 0x408]
test ecx, ecx
je 0x542b7e
dec ecx
jne 0x542c5a
mov dword [r8 + rdi*4 + 0x1008], ecx
mov dword [r8 + rdi*4 + 8], 3
mov edx, 0xfc
mov r8d, edi
mov rcx, rbx
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
jmp fcn.00542390
mov dword [r8 + rdi*4 + 8], 1
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
cmp dword [r8 + rdi*4 + 0x808], 1
jne 0x542bfe
mov dword [r8 + rdi*4 + 8], 1
mov rsi, qword [rcx]
mov rcx, qword [rcx + 0x118]
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x20], 0xff
lea r8d, [r9 + 3]
mov byte [rsp + 0x21], 0xfb
mov byte [rsp + 0x22], dil
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x542bf6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.005374d0
mov r8d, 0xfb
jmp 0x542c48
mov rcx, qword [rcx + 0x118]
xor r9d, r9d
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 3]
mov byte [rsp + 0x20], 0xff
mov byte [rsp + 0x21], 0xfc
mov byte [rsp + 0x22], dil
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x542c42
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.005374d0
mov r8d, 0xfc
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
call fcn.00542250
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x542c70
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x58], rdi
mov r8, qword [rax + 0x8810]
movsxd rdi, edx
mov rbx, rcx
mov r10d, dword [r8 + rdi*4 + 8]
dec r10d
je 0x542d37
dec r10d
je 0x542cef
dec r10d
jne 0x542da7
mov ecx, dword [r8 + rdi*4 + 0x408]
test ecx, ecx
je 0x542d21
dec ecx
jne 0x542da7
xor eax, eax
mov dword [r8 + rdi*4 + 8], 2
mov edx, 0xfb
mov dword [r8 + rdi*4 + 0x408], eax
mov r8d, edi
mov rcx, rbx
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
jmp fcn.00542390
mov ecx, dword [r8 + rdi*4 + 0x408]
test ecx, ecx
je 0x542d21
dec ecx
jne 0x542da7
xor eax, eax
mov dword [r8 + rdi*4 + 8], eax
mov dword [r8 + rdi*4 + 0x408], eax
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
xor eax, eax
mov dword [r8 + rdi*4 + 8], eax
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
xor eax, eax
mov qword [rsp + 0x50], rsi
lea rdx, [rsp + 0x20]
mov dword [r8 + rdi*4 + 8], eax
mov rsi, qword [rcx]
mov rcx, qword [rcx + 0x118]
lea r8d, [rax + 3]
xor r9d, r9d
mov byte [rsp + 0x20], 0xff
mov byte [rsp + 0x21], 0xfc
mov byte [rsp + 0x22], dil
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x542d8a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.005374d0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, 0xfc
call fcn.00542250
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x543ea0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x48
mov rax, qword [rcx]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov rbp, qword [rax + 0x8810]
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r13
xor r13d, r13d
mov r12, rcx
add rbp, 0x1408
mov edi, r13d
mov ebx, 0x408
mov qword [rsp + 0x60], rsi
cmp dword [rbp - 0xc00], 1
jne 0x543f9e
mov rax, qword [r12]
mov rdx, qword [rax + 0x8810]
mov ecx, dword [rbx + rdx - 0x400]
test ecx, ecx
je 0x543f31
sub ecx, 2
je 0x543f24
dec ecx
jne 0x543f9e
cmp dword [rbx + rdx], r13d
jne 0x543f9e
mov dword [rbx + rdx], 1
jmp 0x543f9e
mov ecx, dword [rbx + rdx]
dec ecx
jne 0x543f9e
mov dword [rbx + rdx], r13d
jmp 0x543f9e
mov dword [rbx + rdx - 0x400], 2
mov rcx, qword [r12 + 0x118]
mov rsi, qword [r12]
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x20], 0xff
lea r8d, [r9 + 3]
mov byte [rsp + 0x21], 0xfb
mov byte [rsp + 0x22], dil
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x543f85
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.005374d0
mov rcx, qword [r12]
lea rdx, str.SENT
mov r9d, edi
mov r8d, 0xfb
call fcn.00542250
cmp dword [rbp], 1
jne 0x54406b
mov rax, qword [r12]
mov rdx, qword [rax + 0x8810]
mov ecx, dword [rbx + rdx + 0x800]
test ecx, ecx
je 0x543ffe
sub ecx, 2
je 0x543fe9
dec ecx
jne 0x54406b
cmp dword [rbx + rdx + 0xc00], r13d
jne 0x54406b
mov dword [rbx + rdx + 0xc00], 1
jmp 0x54406b
mov ecx, dword [rbx + rdx + 0xc00]
dec ecx
jne 0x54406b
mov dword [rbx + rdx + 0xc00], r13d
jmp 0x54406b
mov dword [rbx + rdx + 0x800], 2
mov rcx, qword [r12 + 0x118]
mov rsi, qword [r12]
xor r9d, r9d
lea rdx, [rsp + 0x24]
mov byte [rsp + 0x24], 0xff
lea r8d, [r9 + 3]
mov byte [rsp + 0x25], 0xfd
mov byte [rsp + 0x26], dil
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x544052
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.005374d0
mov rcx, qword [r12]
lea rdx, str.SENT
mov r9d, edi
mov r8d, 0xfd
call fcn.00542250
inc edi
add rbx, 4
add rbp, 4
cmp edi, 0x28
jl 0x543ee1
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x544810
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x48
mov rax, qword [0x005ca070]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov rbp, qword [rcx + 0x120]
mov qword [rsp + 0x68], rsi
mov r8b, 1
xor edx, edx
mov qword [rsp + 0x40], rdi
mov rdi, qword [rcx]
mov rbx, 0xffffffffffffffff
mov rsi, rcx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call fcn.00537c80
test eax, eax
jle 0x544895
nop
mov r8d, 0x3e8
mov rdx, rbx
mov rcx, rbp
cmp eax, r8d
cmovl r8d, eax
call fcn.0054eba0
cmp eax, ebx
je 0x544922
test eax, eax
jne 0x5448ae
mov r8b, 1
xor edx, edx
mov rcx, rsi
call fcn.00537c80
test eax, eax
jg 0x544860
lea rdx, str.Timeout_while_waiting_for_server_connect
mov rcx, rdi
call fcn.005374d0
mov eax, 0x1c
jmp 0x544936
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x5448e3
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 rbx, rax
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
cmp rbx, 0xffffffffffffffff
jne 0x5448fb
lea rdx, str.Error_accept__ing_server_connect
jmp 0x544929
lea rdx, str.Connection_accepted_from_server_n
mov rcx, rdi
call fcn.005373d0
mov edx, 1
mov rcx, rbx
mov qword [rsi + 0x120], rbx
call fcn.00556920
xor eax, eax
jmp 0x544936
lea rdx, str.Error_while_waiting_for_server_connect
mov rcx, rdi
call fcn.005374d0
mov eax, 0x1e
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
call fcn.0055e990
add rsp, 0x48
ret
Function at 0x5459b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x28
cmp edx, 0xc8
mov qword [rsp + 0x38], rbx
mov ebx, dword [rcx + 0x46c]
mov qword [rsp + 0x40], rsi
mov rsi, qword [rcx]
mov qword [rsp + 0x48], rdi
mov rdi, rcx
je 0x545a3a
test ebx, ebx
jne 0x5459f0
lea rdx, str.disabling_EPRT_usage_n
mov rcx, rsi
call fcn.005373d0
mov byte [rdi + 0x1b1], bl
inc ebx
cmp ebx, 2
jne 0x545a1d
lea rdx, str.Failed_to_do_PORT
mov rcx, rsi
call fcn.005374d0
lea eax, [rbx + 0x1c]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
add rsp, 0x28
ret
mov edx, ebx
mov rcx, rdi
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
add rsp, 0x28
jmp 0x544ca0
lea rdx, str.Connect_data_stream_actively_n
mov rcx, rsi
call fcn.005373d0
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov dword [rdi + 0x478], 0
mov rdi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x28
ret

Function at 0x545a70
Capabilities:
Check http status code

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rsi
mov eax, 0x51eb851f
mov esi, r8d
mov r8d, edx
mov qword [rsp + 0x48], rdi
xor ebx, ebx
mov rdi, rcx
mov rcx, qword [rcx]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x545aca
lea rdx, str.Couldnt_set_desired_mode
call fcn.005374d0
lea eax, [rbx + 0x11]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
add rsp, 0x28
ret
cmp r8d, 0xc8
je 0x545adf
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.005373d0
cmp esi, 0x13
jne 0x545b5f
mov rax, qword [rdi]
lea rcx, [rdi + 0x3d0]
mov rdx, qword [rax + 0x8810]
mov eax, dword [rdx + 0x18]
cmp eax, 1
jne 0x545b27
mov r8, qword [rcx + 0x80]
test r8, r8
je 0x545b27
lea rdx, str.SIZE__s
call fcn.00556f90
test eax, eax
mov ebx, eax
jne 0x545b8e
mov dword [rdi + 0x478], 0x17
jmp 0x545b8e
test eax, eax
je 0x545b55
cmp qword [rdi + 0x450], rbx
je 0x545b55
lea rdx, str.REST__d
xor r8d, r8d
call fcn.00556f90
test eax, eax
mov ebx, eax
jne 0x545b8e
mov dword [rdi + 0x478], 0x1a
jmp 0x545b8e
mov rcx, rdi
call fcn.00545430
jmp 0x545b8c
cmp esi, 0x14
jne 0x545b6e
mov rcx, rdi
call fcn.00545620
jmp 0x545b8c
cmp esi, 0x15
jne 0x545b79
lea r8d, [rsi - 8]
jmp 0x545b82
cmp esi, 0x16
jne 0x545b8e
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.00548490
mov ebx, eax
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x28
ret
Function at 0x553830
Capabilities:
Parse pe header

Disassembly:
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x55384f
lea r8, [0x00400000]
cdqe
mov edx, dword [r8 + rax*4 + 0x1538a4]
add rdx, r8
jmp rdx
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, cl
ret