joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4997e0
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
sub rsp, 0x288
mov rax, qword [0x005c3458]
mov qword [rsp + reloc.MFC42u.dll_CDaoException::CDaoException], rax
cmp dword [0x005e60e8], 0
lea rax, [0x00499140]
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, [0x00499510]
lea r12, str.getaddrinfo
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
movzx ebp, cx
mov qword [rsp + 0x40], rax
lea rax, [0x004990d0]
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x48], rax
jne 0x4999ba
lea rcx, [r11 - 0x128]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4999b0
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 0x499880
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 0x4998eb
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x49994d
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 0x4998f0
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 0x499998
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x49994d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x499998
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 0x499942
inc rbx
add rdi, 0x10
cmp rbx, 3
jl 0x499952
mov rax, qword [rsp + 0x28]
mov qword [0x005cef80], rax
mov rax, qword [rsp + 0x38]
mov qword [0x005cef90], rax
mov rax, qword [rsp + 0x48]
mov qword [0x005cefa0], rax
mov rsi, qword [rsp + 0x2a0]
mov rdi, qword [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
mov rbx, qword [rsp + 0x290]
mov dword [0x005e60e8], 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 + reloc.MFC42u.dll_CDaoException::CDaoException]
call fcn.005555b0
add rsp, 0x288
ret
Function at 0x4a0280
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 0x4a02ee
dec r8d
je 0x4a02e5
dec r8d
je 0x4a02dc
dec r8d
mov rcx, r9
je 0x4a02c2
lea r8, str.Internal_state_machine_error
lea rdx, [0x005754ec]
call fcn.00496db0
mov eax, 0x47
add rsp, 0x28
ret
lea r8, str.TFTP_finished
lea rdx, [0x00575694]
call fcn.00496cb0
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.0049f4b0
add rsp, 0x28
jmp fcn.0049f170
add rsp, 0x28
jmp fcn.0049fd10
Function at 0x4a1b30
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0x3a0], 0
movsxd r10, r9d
mov r11, rcx
je 0x4a1c5f
cmp r8d, 0xff
jne 0x4a1b94
lea eax, [r10 - 0xec]
mov r8, rdx
cmp eax, 0x13
ja 0x4a1b81
lea rcx, [0x00400000]
lea rdx, str._s_IAC__s_n
mov r9, qword [rcx + r10*8 + 0x1766b0]
mov rcx, r11
add rsp, 0x38
jmp fcn.00496cb0
lea rdx, str._s_IAC__d_n
mov r9d, r10d
add rsp, 0x38
jmp fcn.00496cb0
cmp r8d, 0xfb
jne 0x4a1ba6
lea r9, str.WILL
jmp 0x4a1be4
cmp r8d, 0xfc
jne 0x4a1bb8
lea r9, str.WONT
jmp 0x4a1be4
cmp r8d, 0xfd
jne 0x4a1bca
lea r9, [0x00576f2c]
jmp 0x4a1be4
xor r9d, r9d
cmp r8d, 0xfe
lea rax, str.DONT
cmove r9, rax
test r9, r9
je 0x4a1c48
cmp r10d, 0x27
jg 0x4a1c1a
lea rcx, [0x00400000]
mov rcx, qword [rcx + r10*8 + 0x176cd0]
test rcx, rcx
je 0x4a1c2c
mov r8, rdx
mov qword [rsp + 0x20], rcx
lea rdx, str._s__s__s_n
mov rcx, r11
call fcn.00496cb0
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x4a1c2c
lea rcx, str.EXOPL
jmp 0x4a1bfe
mov r8, rdx
lea rdx, str._s__s__d_n
mov rcx, r11
mov dword [rsp + 0x20], r10d
call fcn.00496cb0
add rsp, 0x38
ret
mov r9d, r8d
mov r8, rdx
lea rdx, str._s__d__d_n
mov dword [rsp + 0x20], r10d
call fcn.00496cb0
add rsp, 0x38
ret

Function at 0x4a1c70
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 0x4a1cd1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.00496db0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.004a1b30
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 0x4a1ea0
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 0x4a1faa
sub r10d, 2
je 0x4a1f3f
dec r10d
jne 0x4a206c
mov ecx, dword [r8 + rdi*4 + 0x1008]
test ecx, ecx
je 0x4a1f1f
dec ecx
jne 0x4a206c
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 0x4a1f8a
dec ecx
jne 0x4a206c
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.004a1c70
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 0x4a2010
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 0x4a2008
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.00496db0
mov r8d, 0xfd
jmp 0x4a205a
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 0x4a2054
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.00496db0
mov r8d, 0xfe
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
call fcn.004a1b30
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x4a2080
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 0x4a2153
dec r10d
je 0x4a2105
dec r10d
jne 0x4a21c6
mov ecx, dword [r8 + rdi*4 + 0x1008]
test ecx, ecx
je 0x4a213a
dec ecx
jne 0x4a21c6
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.004a1c70
mov ecx, dword [r8 + rdi*4 + 0x1008]
test ecx, ecx
je 0x4a213a
dec ecx
jne 0x4a21c6
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 0x4a21a9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.00496db0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, 0xfe
call fcn.004a1b30
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x4a2380
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 0x4a247b
sub r10d, 2
je 0x4a2416
dec r10d
jne 0x4a253a
mov ecx, dword [r8 + rdi*4 + 0x408]
test ecx, ecx
je 0x4a23f9
dec ecx
jne 0x4a253a
mov dword [r8 + rdi*4 + 8], 1
mov dword [r8 + rdi*4 + COleControl::XOleCache::AddRef], 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 0x4a245e
dec ecx
jne 0x4a253a
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.004a1c70
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 0x4a24de
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 0x4a24d6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.00496db0
mov r8d, 0xfb
jmp 0x4a2528
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 0x4a2522
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.00496db0
mov r8d, 0xfc
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
call fcn.004a1b30
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x4a2550
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 0x4a2617
dec r10d
je 0x4a25cf
dec r10d
jne 0x4a2687
mov ecx, dword [r8 + rdi*4 + 0x408]
test ecx, ecx
je 0x4a2601
dec ecx
jne 0x4a2687
xor eax, eax
mov dword [r8 + rdi*4 + 8], 2
mov edx, 0xfb
mov dword [r8 + rdi*4 + COleControl::XOleCache::AddRef], eax
mov r8d, edi
mov rcx, rbx
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
jmp fcn.004a1c70
mov ecx, dword [r8 + rdi*4 + 0x408]
test ecx, ecx
je 0x4a2601
dec ecx
jne 0x4a2687
xor eax, eax
mov dword [r8 + rdi*4 + 8], eax
mov dword [r8 + rdi*4 + COleControl::XOleCache::AddRef], 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 0x4a266a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.00496db0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, 0xfc
call fcn.004a1b30
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x4a3780
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, COleControl::XOleCache::AddRef
mov qword [rsp + 0x60], rsi
cmp dword [rbp - 0xc00], 1
jne 0x4a387e
mov rax, qword [r12]
mov rdx, qword [rax + 0x8810]
mov ecx, dword [rbx + rdx - 0x400]
test ecx, ecx
je 0x4a3811
sub ecx, 2
je 0x4a3804
dec ecx
jne 0x4a387e
cmp dword [rbx + rdx], r13d
jne 0x4a387e
mov dword [rbx + rdx], 1
jmp 0x4a387e
mov ecx, dword [rbx + rdx]
dec ecx
jne 0x4a387e
mov dword [rbx + rdx], r13d
jmp 0x4a387e
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 0x4a3865
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.00496db0
mov rcx, qword [r12]
lea rdx, str.SENT
mov r9d, edi
mov r8d, 0xfb
call fcn.004a1b30
cmp dword [rbp], 1
jne 0x4a394b
mov rax, qword [r12]
mov rdx, qword [rax + 0x8810]
mov ecx, dword [rbx + rdx + 0x800]
test ecx, ecx
je 0x4a38de
sub ecx, 2
je 0x4a38c9
dec ecx
jne 0x4a394b
cmp dword [rbx + rdx + 0xc00], r13d
jne 0x4a394b
mov dword [rbx + rdx + 0xc00], 1
jmp 0x4a394b
mov ecx, dword [rbx + rdx + 0xc00]
dec ecx
jne 0x4a394b
mov dword [rbx + rdx + 0xc00], r13d
jmp 0x4a394b
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 0x4a3932
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.00496db0
mov rcx, qword [r12]
lea rdx, str.SENT
mov r9d, edi
mov r8d, 0xfd
call fcn.004a1b30
inc edi
add rbx, 4
add rbp, 4
cmp edi, 0x28
jl 0x4a37c1
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 0x4a40f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x48
mov rax, qword [0x005c3458]
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.00497560
test eax, eax
jle 0x4a4175
nop
mov r8d, 0x3e8
mov rdx, rbx
mov rcx, rbp
cmp eax, r8d
cmovl r8d, eax
call fcn.004ae480
cmp eax, ebx
je 0x4a4202
test eax, eax
jne 0x4a418e
mov r8b, 1
xor edx, edx
mov rcx, rsi
call fcn.00497560
test eax, eax
jg 0x4a4140
lea rdx, str.Timeout_while_waiting_for_server_connect
mov rcx, rdi
call fcn.00496db0
mov eax, 0x1c
jmp 0x4a4216
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4a41c3
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 0x4a41db
lea rdx, str.Error_accept__ing_server_connect
jmp 0x4a4209
lea rdx, str.Connection_accepted_from_server_n
mov rcx, rdi
call fcn.00496cb0
mov edx, 1
mov rcx, rbx
mov qword [rsi + 0x120], rbx
call fcn.004b6200
xor eax, eax
jmp 0x4a4216
lea rdx, str.Error_while_waiting_for_server_connect
mov rcx, rdi
call fcn.00496db0
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.005555b0
add rsp, 0x48
ret
Function at 0x4a5290
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 0x4a531a
test ebx, ebx
jne 0x4a52d0
lea rdx, str.disabling_EPRT_usage_n
mov rcx, rsi
call fcn.00496cb0
mov byte [rdi + 0x1b1], bl
inc ebx
cmp ebx, 2
jne 0x4a52fd
lea rdx, str.Failed_to_do_PORT
mov rcx, rsi
call fcn.00496db0
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 0x4a4580
lea rdx, str.Connect_data_stream_actively_n
mov rcx, rsi
call fcn.00496cb0
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 0x4a5350
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 0x4a53aa
lea rdx, str.Couldnt_set_desired_mode
call fcn.00496db0
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 0x4a53bf
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.00496cb0
cmp esi, 0x13
jne 0x4a543f
mov rax, qword [rdi]
lea rcx, [rdi + 0x3d0]
mov rdx, qword [rax + 0x8810]
mov eax, dword [rdx + 0x18]
cmp eax, 1
jne 0x4a5407
mov r8, qword [rcx + 0x80]
test r8, r8
je 0x4a5407
lea rdx, str.SIZE__s
call fcn.004b6870
test eax, eax
mov ebx, eax
jne 0x4a546e
mov dword [rdi + 0x478], 0x17
jmp 0x4a546e
test eax, eax
je 0x4a5435
cmp qword [rdi + 0x450], rbx
je 0x4a5435
lea rdx, str.REST__d
xor r8d, r8d
call fcn.004b6870
test eax, eax
mov ebx, eax
jne 0x4a546e
mov dword [rdi + 0x478], 0x1a
jmp 0x4a546e
mov rcx, rdi
call fcn.004a4d10
jmp 0x4a546c
cmp esi, 0x14
jne 0x4a544e
mov rcx, rdi
call fcn.004a4f00
jmp 0x4a546c
cmp esi, 0x15
jne 0x4a5459
lea r8d, [rsi - 8]
jmp 0x4a5462
cmp esi, 0x16
jne 0x4a546e
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.004a7d70
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 0x4b3110
Capabilities:
Parse pe header

Disassembly:
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4b312f
lea r8, [0x00400000]
cdqe
mov edx, dword [r8 + rax*4 + 0xb3184]
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
Function at 0x4b36f0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
movzx r9d, byte [rcx]
mov rbx, rdx
mov r11, rcx
test r9b, r9b
je 0x4b387d
lea rdx, [0x00400000]
movzx r10d, byte [rbx]
test r10b, r10b
je 0x4b387d
test r8, r8
je 0x4b3882
movsx eax, r9b
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4b3742
cdqe
mov ecx, dword [rdx + rax*4 + 0xb38b4]
add rcx, rdx
jmp rcx
mov r9b, 0x41
jmp case.default.0x4b3742
mov r9b, 0x42
jmp case.default.0x4b3742
mov r9b, 0x43
jmp case.default.0x4b3742
mov r9b, 0x44
jmp case.default.0x4b3742
mov r9b, 0x45
jmp case.default.0x4b3742
mov r9b, 0x46
jmp case.default.0x4b3742
mov r9b, 0x47
jmp case.default.0x4b3742
mov r9b, 0x48
jmp case.default.0x4b3742
mov r9b, 0x49
jmp case.default.0x4b3742
mov r9b, 0x4a
jmp case.default.0x4b3742
mov r9b, 0x4b
jmp case.default.0x4b3742
mov r9b, 0x4c
jmp case.default.0x4b3742
mov r9b, 0x4d
jmp case.default.0x4b3742
mov r9b, 0x4e
jmp case.default.0x4b3742
mov r9b, 0x4f
jmp case.default.0x4b3742
mov r9b, 0x50
jmp case.default.0x4b3742
mov r9b, 0x51
jmp case.default.0x4b3742
mov r9b, 0x52
jmp case.default.0x4b3742
mov r9b, 0x53
jmp case.default.0x4b3742
mov r9b, 0x54
jmp case.default.0x4b3742
mov r9b, 0x55
jmp case.default.0x4b3742
mov r9b, 0x56
jmp case.default.0x4b3742
mov r9b, 0x57
jmp case.default.0x4b3742
mov r9b, 0x58
jmp case.default.0x4b3742
mov r9b, 0x59
jmp case.default.0x4b3742
mov r9b, 0x5a
movsx eax, r10b
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4b37e0
cdqe
mov ecx, dword [rdx + rax*4 + 0xb391c]
add rcx, rdx
jmp rcx
mov r10b, 0x41
jmp case.default.0x4b37e0
mov r10b, 0x42
jmp case.default.0x4b37e0
mov r10b, 0x43
jmp case.default.0x4b37e0
mov r10b, 0x44
jmp case.default.0x4b37e0
mov r10b, 0x45
jmp case.default.0x4b37e0
mov r10b, 0x46
jmp case.default.0x4b37e0
mov r10b, 0x47
jmp case.default.0x4b37e0
mov r10b, 0x48
jmp case.default.0x4b37e0
mov r10b, 0x49
jmp case.default.0x4b37e0
mov r10b, 0x4a
jmp case.default.0x4b37e0
mov r10b, 0x4b
jmp case.default.0x4b37e0
mov r10b, 0x4c
jmp case.default.0x4b37e0
mov r10b, 0x4d
jmp case.default.0x4b37e0
mov r10b, 0x4e
jmp case.default.0x4b37e0
mov r10b, 0x4f
jmp case.default.0x4b37e0
mov r10b, 0x50
jmp case.default.0x4b37e0
mov r10b, 0x51
jmp case.default.0x4b37e0
mov r10b, 0x52
jmp case.default.0x4b37e0
mov r10b, 0x53
jmp case.default.0x4b37e0
mov r10b, 0x54
jmp case.default.0x4b37e0
mov r10b, 0x55
jmp case.default.0x4b37e0
mov r10b, 0x56
jmp case.default.0x4b37e0
mov r10b, 0x57
jmp case.default.0x4b37e0
mov r10b, 0x58
jmp case.default.0x4b37e0
mov r10b, 0x59
jmp case.default.0x4b37e0
mov r10b, 0x5a
cmp r9b, r10b
jne 0x4b387d
mov r9b, byte [r11 + 1]
inc r11
dec r8
inc rbx
test r9b, r9b
jne 0x4b3710
test r8, r8
jne 0x4b388d
mov eax, 1
add rsp, 0x20
pop rbx
ret
movzx ecx, byte [r11]
call fcn.004b3110
movzx ecx, byte [rbx]
movzx r9d, al
call fcn.004b3110
xor ecx, ecx
cmp r9b, al
sete cl
mov eax, ecx
add rsp, 0x20
pop rbx
ret