joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012d0b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [case.0x140161b02.2]
mov rdi, rax
test rax, rax
je 0x14012d12d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x14012d158
cmp ebx, esi
je 0x14012d158
cmp ebx, 0x8000
ja 0x14012d158
cmp ebx, esi
jb 0x14012d153
mov edx, ebx
mov rcx, rdi
call qword [case.0x140161b02.2]
mov rdi, rax
test rax, rax
jne 0x14012d0f0
mov rcx, rbp
call qword [0x1402e1138]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x14012d138
mov rcx, rdi
jmp 0x14012d130
Function at 0x140130630
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1402e1040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, r8
mov dword [rsp + 0x40], 4
xor r14d, r14d
mov rbx, r9
mov rbp, rdx
mov qword [rsp + 0x48], r14
mov rsi, rcx
mov qword [rsp + 0x38], r14
mov rcx, rdi
mov dword [rsp + 0x30], r14d
mov r8, r9
mov dword [rsp + 0x44], ebx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r9d, Ordinal_27
mov dword [rsp + 0x20], 0xf0000040
xor r8d, r8d
lea rcx, [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14013074e
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14013072c
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14013072c
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x20], r14d
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14013072c
mov eax, dword [rsp + 0x30]
cmp rbx, rax
jb 0x14013072c
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x44]
mov r8, rdi
mov dword [rsp + 0x20], r14d
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14013073c
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14013074e
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140171bd0
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140130e80
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, qword [rsp + 0x50]
xor eax, eax
mov qword [r9], rax
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov qword [r14], rax
test r8, r8
jne 0x140130ec8
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rdx + rbx], al
jne 0x140130ec0
lea rcx, [rbx + 2]
movabs rbp, 0xaaaaaaaaaaaaaaab
mov rax, rbp
mul rcx
shr rdx, 1
lea rcx, [rdx*4 + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
mov r9, rax
test rax, rax
jne 0x140130f02
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140130ff3
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp rbx, 3
jb 0x140130f88
mov rax, rbp
mul rbx
mov r8, rdx
shr r8, 1
imul rax, r8, 0xfffffffffffffffd
add rbx, rax
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rcx], al
movzx edx, byte [rdi]
movzx eax, byte [rdi + 1]
and edx, 3
shr rax, 4
shl rdx, 4
or rdx, rax
movzx eax, byte [rdx + r10]
mov byte [rcx + 1], al
movzx edx, byte [rdi + 1]
movzx eax, byte [rdi + 2]
and edx, 0xf
shr rax, 6
shl rdx, 2
or rdx, rax
movzx eax, byte [rdx + r10]
mov byte [rcx + 2], al
movzx eax, byte [rdi + 2]
add rdi, 3
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [rcx + 3], al
add rcx, 4
sub r8, 1
jne 0x140130f22
test rbx, rbx
je 0x140130fe5
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rcx], al
movzx edx, byte [rdi]
and edx, 3
shl rdx, 4
cmp rbx, 1
jne 0x140130fbb
movzx eax, byte [rdx + r10]
mov byte [rcx + 1], al
mov word [rcx + 2], 0x3d3d
jmp 0x140130fe1
movzx eax, byte [rdi + 1]
shr rax, 4
or rax, rdx
movzx eax, byte [rax + r10]
mov byte [rcx + 1], al
movzx eax, byte [rdi + 1]
and eax, 0xf
movzx eax, byte [r10 + rax*4]
mov byte [rcx + 2], al
mov byte [rcx + 3], 0x3d
add rcx, 4
mov byte [rcx], 0
sub rcx, r9
mov qword [r14], rcx
xor eax, eax
mov qword [rsi], r9
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14013c550
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xa56], 0
mov rsi, r8
mov r14, rdx
mov rbx, rcx
je 0x14013c618
cmp qword [rcx + 0x270], 0
je 0x14013c5e0
mov rcx, qword [rcx + 0xd8]
test rcx, rcx
je 0x14013c59c
cmp byte [rcx + 0x22b], 0
je 0x14013c59c
mov dil, 1
jmp 0x14013c5a4
xor dil, dil
test rcx, rcx
je 0x14013c5ab
mov byte [rcx + 0x22b], 1
mov rax, qword [rbx + 0x1e8]
mov r9, rsi
mov r8, r14
mov qword [rsp + 0x20], rax
mov edx, 1
mov rcx, rbx
call qword [rbx + 0x270]
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x14013c618
mov byte [rax + 0x22b], dil
jmp 0x14013c618
mov r9, qword [rcx + 0x1e0]
mov edx, 2
lea rcx, [0x14026f8a3]
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbx + 0x1e0]
mov r8d, 1
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov eax, dword [rbx + 0x13c]
mov ebp, 4
sub eax, 0x64
mov ecx, 0x24
cmp eax, 0x64
cmovb ebp, ecx
cmp qword [rbx + 0x148], 0
jne 0x14013c649
mov rcx, rbx
call fcn.140100a90
mov edi, eax
test eax, eax
jne 0x14013c68f
mov rdx, qword [rbx + 0x148]
test rdx, rdx
jne 0x14013c65c
mov edi, reloc.WS2_32.dll_socket
jmp 0x14013c672
mov rax, qword [rdx]
mov r9, r14
mov r8d, ebp
mov qword [rsp + 0x20], rsi
mov rcx, rbx
call qword [rax + Ordinal_26]
mov edi, eax
mov r9, rsi
mov dword [rsp + 0x20], edi
mov r8d, ebp
lea rdx, str.client_write_type_x__len_zu______d
mov rcx, rbx
call fcn.1401022e0
test edi, edi
je 0x14013c696
mov eax, edi
jmp 0x14013c71d
mov edx, dword [rbx + 0x124]
mov r9d, 0x4b000
cmp rsi, r9
jae 0x14013c6de
mov ecx, dword [rbx + 0x1300]
lea eax, [rsi + rdx]
add dword [rbx + 0x120], esi
add ecx, esi
mov dword [rbx + 0x1300], ecx
mov dword [rbx + 0x124], eax
cmp eax, r9d
ja 0x14013c6d9
cmp ecx, 0x5dc000
jbe 0x14013c6fd
mov r9d, 0x5dc000
mov eax, ecx
mov r8d, eax
jmp 0x14013c6e2
lea r8, [rsi + rdx]
test r8, r8
je 0x14013c6fd
lea rdx, str.Too_large_response_headers:__zu____u
mov rcx, rbx
call fcn.140101e00
mov eax, gethostname
jmp 0x14013c71d
mov eax, dword [rbx + 0x13c]
sub eax, 0x64
cmp eax, 0x63
ja 0x14013c713
mov eax, dword [rbx + 0x120]
jmp 0x14013c715
xor eax, eax
mov dword [rbx + 0x128], eax
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14013fe30
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter
Move file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x1402e1040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [0x1402e3f79], 0
mov rbp, rdx
mov rbx, rcx
je 0x14013fe93
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r8, qword [0x1402e3f70]
mov rax, qword [rsp + 0x20]
cqo
idiv r8
mov rsi, rax
mov rax, qword [rsp + 0x20]
cqo
idiv r8
imul rax, rdx, 0xf4240
cqo
idiv r8
mov r14, rax
jmp 0x14013feb9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov esi, edx
imul edx, edx, 0x3e8
sub r8d, edx
imul r14d, r8d, 0x3e8
mov rcx, rbx
mov qword [rsp + 0x70], r15
call fcn.1401029d0
mov rcx, rbp
mov rdi, rax
call fcn.1401029d0
mov r8d, 1
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14013ffc7
movabs rbp, 0xffdf3b645a1cac09
movabs r15, 0x20c49ba5e353f7
cmp byte [0x1402e3f79], 0
je 0x14013ff3c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
cqo
idiv qword [0x1402e3f70]
mov r8, rax
imul rax, rdx, 0xf4240
cqo
idiv qword [0x1402e3f70]
mov rcx, rax
jmp 0x14013ff63
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, eax
mov eax, 0x10624dd3
mul r9d
shr edx, 6
imul ecx, edx, 0x3e8
mov r8d, edx
sub r9d, ecx
imul ecx, r9d, 0x3e8
sub r8, rsi
cmp r8, r15
jge 0x140140002
cmp r8, rbp
jle 0x140140002
sub ecx, r14d
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul rax, r8, 0x3e8
movsxd rdx, edx
add rdx, rax
cmp rdx, 0x3e8
ja 0x140140002
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14013ff02
test rdi, rdi
je 0x14013ffd5
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x14013ffe3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140171bd0
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
test rdi, rdi
je 0x140140010
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x14014001e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
jmp 0x14013ffe5
Function at 0x140148a50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
mov eax, dword [rcx + 0xcac]
xor edi, edi
xor r12d, r12d
mov esi, r8d
mov r14d, edx
mov r13, rcx
cmp r8d, eax
jg 0x140148ab8
cmp r8d, 0xffffffff
cmove esi, eax
test r9, r9
je 0x140148a95
mov r9, qword [r9 + 0x28]
test r9, r9
je 0x140148ab8
mov r9, qword [r9 + 0x10]
jmp 0x140148a9c
mov r9, qword [rcx + 0x1188]
test r9, r9
je 0x140148ab8
mov rbx, qword [r9]
test byte [rbx + 0x2c], r14b
je 0x140148aaf
cmp dword [rbx + 0x28], esi
je 0x140148acc
mov r9, qword [r9 + 0x10]
test r9, r9
jne 0x140148aa1
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r14
pop r13
pop r12
pop rdi
ret
mov r10, qword [rcx + 0x1188]
mov qword [rsp + 0x30], r15
test r10, r10
je 0x140148b84
mov qword [rsp + 0x28], rbp
mov rbp, qword [rbx + 0x18]
nop word [rax + rax]
mov r11, qword [r10]
mov r8, qword [r11 + 0x18]
test rbp, rbp
je 0x140148b55
test r8, r8
je 0x140148b69
cmp byte [rbp], 0
mov rax, rbp
je 0x140148b3a
nop word [rax + rax]
movzx ecx, byte [r8]
test cl, cl
je 0x140148b3a
movzx edx, byte [rax]
lea rbp, [0x14026f9e0]
movzx ecx, byte [rcx + rbp]
cmp byte [rdx + rbp], cl
mov rbp, qword [rbx + 0x18]
jne 0x140148b51
inc rax
inc r8
cmp byte [rax], 0
jne 0x140148b10
xor ecx, ecx
cmp byte [rax], cl
sete cl
xor eax, eax
cmp byte [r8], al
setne al
xor ecx, eax
test ecx, ecx
je 0x140148b69
jmp 0x140148b5a
xor ecx, ecx
jmp 0x140148b4b
test r8, r8
jne 0x140148b69
cmp dword [r11 + 0x28], esi
jne 0x140148b69
test byte [r11 + 0x2c], r14b
je 0x140148b69
inc rdi
cmp r10, r9
jne 0x140148b72
lea r12, [rdi - 1]
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x140148af0
mov rbp, qword [rsp + 0x28]
mov rcx, qword [rbx + 0x18]
lea rax, [r13 + 0x11d8]
mov r15, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov qword [rax], rcx
mov rcx, qword [rbx + 0x20]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
movzx ecx, byte [rbx + 0x2c]
mov rbx, qword [rsp + 0x38]
bts ecx, 0x1b
mov dword [rax + 0x20], ecx
mov qword [rax + 0x28], r9
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1401502c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1402e1040]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x20]
mov rsi, rcx
xor r9d, r9d
xor edi, edi
mov rbx, qword [rax + 0x680]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], Ordinal_133
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rbx + 0x144]
mov rdx, qword [rbx + 0x150]
add r8d, 4
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rbx + 0x13c], eax
cmp dword [rbx + 0x138], edi
jne 0x140150356
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xb8]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x138], eax
mov r8d, dword [rbx + 0x13c]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], r14
cmp r8d, 4
jge 0x1401503b6
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.140101e00
mov dword [rbx + 0xc], 7
mov eax, edi
mov r14, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140171bd0
add rsp, 0xd0
pop rdi
pop rsi
pop rbx
ret
mov rdx, qword [rbx + 0x150]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x1401503ec.1
movsxd rax, ecx
lea r9, [0x140000000]
mov ecx, dword [r9 + rax*4 + 0x150540]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x1401503ec.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x1401503ec.4
lea eax, [r8 - 4]
lea r14, [rdx + 4]
movsxd rbp, eax
cmp qword [rsi + 0x148], rdi
jne 0x14015043b
mov rcx, rsi
call fcn.140100a90
mov edi, eax
test eax, eax
jne 0x14015048b
mov rdx, qword [rsi + 0x148]
test rdx, rdx
jne 0x14015044e
mov edi, reloc.WS2_32.dll_socket
jmp 0x140150467
mov rax, qword [rdx]
mov r9, r14
mov r8d, 1
mov qword [rsp + 0x20], rbp
mov rcx, rsi
call qword [rax + Ordinal_26]
mov edi, eax
mov r9, rbp
mov dword [rsp + 0x20], edi
mov r8d, 1
lea rdx, str.client_write_type_x__len_zu______d
mov rcx, rsi
call fcn.1401022e0
test edi, edi
je case.0x1401503ec.4
mov edx, 5
mov rcx, rbx
call fcn.14014ffa0
jmp 0x140150389
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd r14, eax
lea rbp, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, r14
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rbp
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je case.0x1401503ec.4
sub rax, rbp
cmp rax, r14
jae case.0x1401503ec.4
mov r8, rbp
lea rdx, str.TFTP_error:__s
mov rcx, rsi
call fcn.140101ff0
jmp case.0x1401503ec.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14014ec40
mov edi, eax
test eax, eax
je case.0x1401503ec.4
jmp 0x14015038b
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x1402acbcc]
call fcn.140101e00
mov rcx, rsi
call fcn.140125960
test eax, eax
je 0x140150389
mov edx, 5
mov rcx, rbx
call fcn.14014ffa0
mov eax, Ordinal_46
jmp 0x14015038b
Function at 0x140152d00
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1402e1040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, qword [rcx + 0x20]
lea r8, [rsp + 0x28]
mov rbx, rcx
lea rdx, [rsp + 0x30]
mov rdi, qword [rsi + 0x228]
mov rcx, rdi
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140152e9d
lea r8, [rsp + 0x28]
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x20], rax
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140152e9d
lea rdx, str.Connection_accepted_from_server
mov rcx, rbx
call fcn.140101ff0
lea r8, [rsp + 0x2c]
mov byte [rsi + 0x3ad], 0
mov edx, 0x8004667e
mov dword [rsp + 0x2c], 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea r9, [rsp + 0x20]
mov rdx, rsi
mov rcx, rbx
call fcn.1401237c0
mov edi, eax
test eax, eax
je 0x140152dd5
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
jmp 0x140152eb1
cmp qword [rbx + 0x280], 0
je 0x140152e99
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x140152df6
mov byte [rax + 0x22b], 1
mov rdx, qword [rsp + 0x20]
mov r8d, 1
mov rcx, qword [rbx + 0x288]
call qword [rbx + 0x280]
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
je 0x140152e21
mov byte [rcx + 0x22b], 0
test eax, eax
je 0x140152e99
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x140152e42
movzx eax, byte [rax + 0x78e]
lea r8, str.STOP
mov r8, qword [r8 + rax*8]
jmp 0x140152e49
lea r8, [0x1402acbd4]
lea rdx, str.__s__closing_DATA_connection
mov rcx, rbx
call fcn.140102410
mov rax, qword [rbx + 0x20]
mov rcx, qword [rax + 0x258]
test rcx, rcx
je 0x140152e71
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x20]
mov rax, qword [rbx + 0x20]
xorps xmm0, xmm0
mov rdx, rbx
movups xmmword [rax + 0x270], xmm0
mov rcx, qword [rbx + 0x20]
add rcx, 0x258
call fcn.14010ce30
mov eax, Ordinal_46
jmp 0x140152eb1
xor eax, eax
jmp 0x140152eb1
lea rdx, str.Error_accept__ing_server_connect
mov rcx, rbx
call fcn.140101e00
mov eax, 0x1e
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140171bd0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140154630
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x1b8]
mov rbx, rcx
mov rdi, qword [rcx + 0x20]
cmp dword [rax + 0x10], 0
je 0x1401546a3
movzx eax, byte [rdi + 0x78e]
cmp al, 0xd
je 0x140154685
test rdi, rdi
je 0x14015466b
lea r8, str.STOP
mov r8, qword [r8 + rax*8]
jmp 0x140154672
lea r8, [0x1402acbd4]
lea r9, str.RETR_PREQUOTE
lea rdx, str.__s_______s_
call fcn.140102410
mov r8b, reloc.WS2_32.dll_listen
mov byte [rdi + 0x78e], 0xd
mov dl, 1
mov rcx, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140154f40
cmp byte [rcx + 0xa46], 0
je 0x1401546bd
xor edx, edx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1401539b0
cmp byte [rcx + 0xa49], 0
je 0x140154789
mov r9, qword [rdi + 0x738]
lea rdx, [rdi + 0x680]
mov qword [rsp + 0x30], rsi
test r9, r9
jne 0x140154710
mov r9, qword [rcx + 0x7f8]
test r9, r9
jne 0x140154707
cmp byte [rcx + 0x12a9], 0
lea rax, str.NLST
lea r9, str.LIST
cmovne r9, rax
lea r8, str.PRET__s
jmp 0x140154727
cmp byte [rcx + 0x12ad], 0
lea r8, str.PRET_STOR__s
jne 0x140154727
lea r8, str.PRET_RETR__s
call fcn.14016fa70
mov esi, eax
test eax, eax
jne 0x140154777
mov rdi, qword [rbx + 0x20]
movzx eax, byte [rdi + 0x78e]
cmp al, 0x1d
je 0x140154770
test rdi, rdi
je 0x140154753
lea r8, str.STOP
mov r8, qword [r8 + rax*8]
jmp 0x14015475a
lea r8, [0x1402acbd4]
lea r9, str.PRET
mov rcx, rbx
lea rdx, str.__s_______s_
call fcn.140102410
mov byte [rdi + 0x78e], 0x1d
mov eax, esi
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140154550

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b8]
add rdx, 0x680
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x140154841
cmp qword [rdx + 0xb8], 0
je 0x140154841
xor r9d, r9d
mov qword [rsp + 0x38], rdi
lea r8, str.REST__d
call fcn.14016fa70
mov edi, eax
test eax, eax
jne 0x140154836
mov qword [rsp + 0x30], rsi
mov rsi, qword [rbx + 0x20]
movzx eax, byte [rsi + 0x78e]
cmp al, 0x1a
je 0x140154828
test rsi, rsi
je 0x14015480b
lea r8, str.STOP
mov r8, qword [r8 + rax*8]
jmp 0x140154812
lea r8, [0x1402acbd4]
lea r9, str.REST
mov rcx, rbx
lea rdx, str.__s_______s_
call fcn.140102410
mov byte [rsi + 0x78e], 0x1a
mov eax, edi
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140154630
Function at 0x140154850
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b8]
mov rbx, rcx
cmp dword [rax + 0x10], 1
jne 0x1401548f0
mov r9, qword [rdx + 0x738]
test r9, r9
je 0x1401548f0
lea r8, str.SIZE__s
mov qword [rsp + 0x30], rsi
add rdx, 0x680
call fcn.14016fa70
mov esi, eax
test eax, eax
jne 0x1401548e5
mov qword [rsp + 0x38], rdi
mov rdi, qword [rbx + 0x20]
movzx eax, byte [rdi + 0x78e]
cmp al, 0x17
je 0x1401548d7
test rdi, rdi
je 0x1401548ba
lea r8, str.STOP
mov r8, qword [r8 + rax*8]
jmp 0x1401548c1
lea r8, [0x1402acbd4]
lea r9, str.SIZE
mov rcx, rbx
lea rdx, str.__s_______s_
call fcn.140102410
mov byte [rdi + 0x78e], 0x17
mov eax, esi
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1401547a0

Function at 0x140156110
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx + 0x20]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x14015614f
lea rdx, str.Couldnt_set_desired_mode
call fcn.140101e00
mov eax, reloc.WS2_32.dll_recvfrom
jmp 0x1401561ab
cmp edx, 0xc8
je 0x140156166
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.140101ff0
cmp sil, 0x13
jne 0x140156179
mov rdx, rbp
mov rcx, rbx
call fcn.140154850
jmp 0x1401561a7
cmp sil, 0x14
jne 0x140156189
mov rcx, rbx
call fcn.140154900
jmp 0x1401561a7
cmp sil, 0x15
jne 0x140156194
mov r8b, reloc.WS2_32.dll_listen
jmp 0x14015619d
cmp sil, 0x16
jne 0x1401561a9
mov r8b, reloc.WLDAP32.dll_Ordinal_14
mov dl, 1
mov rcx, rbx
call fcn.140154f40
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1402e1040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov byte [rsp + 0x20], 0xff
mov rcx, qword [rcx + 0x20]
mov esi, r8d
mov edi, edx
mov byte [rsp + 0x22], sil
mov byte [rsp + 0x21], dil
lea rdx, [rsp + 0x20]
xor r9d, r9d
mov r8d, 3
mov rcx, qword [rcx + 0x220]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140159bc9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.140101e00
mov r9d, esi
lea rdx, str.SENT
mov r8d, edi
mov rcx, rbx
call fcn.140159a30
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140171bd0
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret