joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140190250
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.14014af40
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x1401902a6
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x1401902fd
mov ebp, 0x4b0000
jmp 0x14019030b
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.14014af20
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x140190321
mov eax, r12d
jmp 0x14019032a
mov edx, edi
mov ecx, ebp
call fcn.14014af20
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x140190346
shl esi, 0x10
mov ecx, esi
jmp 0x140190435
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x1401903a4
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.14014af40
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x140190394
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.14014ae90
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.14014af40
add ebx, eax
jmp 0x14019043e
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x1401903b1
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x1401903f0
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.14014af40
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x1401903f5
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.14014ae90
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.14014af40
add ebx, eax
jmp 0x14019043e
cmp eax, r12d
jge 0x14019042e
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.14014af40
sub ebp, eax
sub r15d, esi
je 0x14019042e
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.14014ae90
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.14014af40
add ebx, eax
jmp 0x14019043e
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.14014af40
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
jmp fcn.14014af40
Function at 0x1401dcc10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x1403295b8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov ebp, r9d
mov byte [rsp + 0x20], dl
xor r9d, r9d
mov r14d, r8d
mov r13d, r9d
mov rbx, rcx
mov ecx, dword [rbx + 4]
mov r10d, 0xffff
mov eax, ecx
mov dword [rbx + 0x38], r9d
imul eax, r14d
mov r15d, 0xffffffff
imul ecx, ebp
mov edi, r9d
mov qword [rbx + 0x60], r9
mov qword [rbx + 0x58], r9
mov dword [rbx + 0x54], r9d
mov dword [rbx + 0x48], eax
mov rax, qword [rbx + 0x18]
mov qword [rbx + 0x30], rax
mov rax, qword [rbx + 0x20]
sub rax, 4
mov dword [rbx + 0x4c], ecx
mov qword [rbx + 0x28], rax
mov word [rbx + 0x50], r9w
cmp r9w, word [rbx + 0x78]
jge 0x1401dcd4f
movsx r12d, dl
mov rsi, r9
nop dword [rax + rax]
mov rax, qword [rbx + 0x90]
lea edx, [r15 + 1]
mov dword [rbx + 0x70], r9d
mov rcx, rbx
mov qword [rbx + 0x68], r9
mov r9d, r12d
movsx r15d, word [rsi + rax]
mov r8d, r15d
call fcn.1401dc200
test al, al
jne 0x1401dcdb8
mov rdx, qword [rbx + 0x68]
test rdx, rdx
je 0x1401dcd31
mov eax, dword [rbx + 4]
mov ecx, dword [rbx + 0x44]
dec eax
test ecx, eax
jne 0x1401dcd12
cmp ecx, dword [rbx + 0x48]
jl 0x1401dcd12
cmp ecx, dword [rbx + 0x4c]
jg 0x1401dcd12
mov rax, qword [rbx + 0x58]
movzx ecx, byte [rdx + 0x1c]
xor cl, byte [rax + 0x1c]
test cl, 8
jne 0x1401dcd12
add qword [rbx + 0x30], 0xfffffffffffffffc
mov rcx, rbx
call fcn.1401db730
test al, al
jne 0x1401dcdb8
cmp qword [rbx + 0x60], 0
jne 0x1401dcd31
mov rax, qword [rbx + 0x68]
mov qword [rbx + 0x60], rax
movsx eax, word [rbx + 0x78]
inc edi
add rsi, 2
mov r9d, 0
cmp edi, eax
jl 0x1401dccb0
mov r10d, 0xffff
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x1401dcd8d
movzx r8d, word [rbx + 0x50]
sub r8w, 1
je 0x1401dcd8a
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
cmp qword [rdx + 8], rax
jne 0x1401dcd81
mov qword [rcx + 8], rdx
mov rcx, rdx
add r8w, r10w
jne 0x1401dcd70
mov qword [rcx], r9
cmp qword [rbx + 0x60], 0
je 0x1401dcd9c
mov rcx, rbx
call fcn.1401dc830
sub r13, 1
js 0x1401dcde3
movzx edx, byte [rsp + 0x20]
lea ebp, [r14 - 1]
mov r14d, dword [rsp + r13*4 + 0x30]
xor r9d, r9d
jmp 0x1401dcc4c
mov eax, dword [rbx + 0x38]
cmp eax, 0x62
jne 0x1401dcde5
cmp r14d, ebp
je 0x1401dcde5
movzx edx, byte [rsp + 0x20]
mov dword [rsp + r13*4 + 0x30], r14d
add r14d, ebp
sar r14d, 1
inc r13
inc r14d
xor r9d, r9d
jmp 0x1401dcc4c
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140141380
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401e1580
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1401e159c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1401e15f0
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401e1715
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1401e1715
test rax, rax
je 0x1401e1715
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1401e1715
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1401e168a
lea rax, [0x1401e1740]
jmp 0x1401e16e3
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1401e1715
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401e1703
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1401e16b0
lea rax, [0x1401e1770]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1401e172a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1401f03e0
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov ebx, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1401f05a4
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1401f0584
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1401f043d
lea ebp, [rax + 0xe]
jmp 0x1401f0449
cmp eax, 0x17
jne 0x1401f04f1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1401f04f1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1401f04f1
cmp rax, rbp
jb 0x1401f04f1
mov ecx, Ordinal_50
call qword [fcn.14023a058]
mov rdi, rax
test rax, rax
je 0x1401f052c
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov dword [rax + 0x10], ebp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [fcn.14023a058]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1401f051b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.14021e3b0
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1401f04de
call qword [case.0x140179ff9.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1401f0500
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1401f04ee
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1401f0430
jmp 0x1401f0532
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.140238394]
mov rcx, rdi
call qword [fcn.140238394]
jmp 0x1401f0532
mov rcx, rdi
mov r14d, 8
call qword [fcn.140238394]
jmp 0x1401f0532
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1401f0547
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x1401f057f
test rbx, rbx
je 0x1401f057a
mov rcx, qword [rbx + 0x20]
call qword [fcn.140238394]
mov rcx, qword [rbx + 0x18]
call qword [fcn.140238394]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.140238394]
mov rbx, rdi
test rdi, rdi
jne 0x1401f0551
mov rbx, r13
jmp 0x1401f0593
test rbx, rbx
jne 0x1401f0593
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret

Function at 0x1401f3ca0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x1403295b8]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.140238f98
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1401f3d06
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1401f3d06
lea rcx, [rsp + 0x20]
call qword [case.0x140179ff9.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140141380
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140141380
add rsp, 0x148
ret
Function at 0x1401f8730
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x250]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1401f878f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140184a60
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1401f8600
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
cmp edx, 0x1f
jne 0x1401f901d
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x200]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1401f8ebe
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
jmp 0x1401f8ec1
mov rax, rsi
cmp rax, rbx
jae 0x1401f8eda
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1401f8eda
mov byte [rax], Ordinal_32
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1401f8f11
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1401f8f67
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1401f8f67
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1401f8f67
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1401f8f67
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1401f8f67
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1401f87c0
mov rcx, qword [r14 + 0x250]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1401f8fc9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140184a60
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1401f9020
mov rcx, qword [r14 + 0x250]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1401f9015
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140184a60
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1401faf10
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1403295b8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, qword [rcx + 0x760]
lea rax, [rsp + 0x30]
mov rsi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rdi + 0x15c]
mov rdx, qword [rdi + 0x168]
add r8d, 4
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x150], 0
mov dword [rdi + 0x154], eax
jne 0x1401fafa5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.14021e3b0
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x150], eax
mov r8d, dword [rdi + 0x154]
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x100], rbp
cmp r8d, 4
jge 0x1401fb006
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.140184a60
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0x100]
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140141380
add rsp, 0xd0
pop r14
pop rdi
pop rsi
ret
mov rax, qword [rdi + 0x168]
movzx ecx, byte [rax]
movzx edx, byte [rax + 1]
shl ecx, 8
or edx, ecx
mov dword [rdi + 0xc], edx
sub edx, 3
je 0x1401fb0b6
sub edx, 1
je 0x1401fb12c
sub edx, 1
je 0x1401fb070
cmp edx, 1
je 0x1401fb053
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x1402dbde8]
call fcn.140184a60
jmp 0x1401fb12c
add r8d, 0xfffffffe
lea rdx, [rax + 2]
mov rcx, rdi
call fcn.1401fa5a0
test eax, eax
je 0x1401fb12c
jmp 0x1401fafda
mov rdx, rax
lea rbp, [rax + 4]
lea eax, [r8 - 4]
movsxd rbx, eax
movzx ecx, byte [rdx + 2]
movzx eax, byte [rdx + 3]
mov rdx, rbx
shl ecx, 8
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, rbp
call fcn.1401fa560
cmp rax, rbx
jae 0x1401fb12c
mov r8, rbp
lea rdx, str.TFTP_error:__s_n
mov rcx, rsi
call fcn.1401848f0
jmp 0x1401fb12c
cmp r8d, 4
jle 0x1401fb12c
movzx ecx, byte [rax + 2]
mov rdx, rax
movzx eax, byte [rax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1401fb12c
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140184be0
mov ebx, eax
test eax, eax
je 0x1401fb10b
mov edx, 5
mov rcx, rdi
call fcn.1401fae90
mov eax, ebx
jmp 0x1401fafda
mov eax, dword [rdi + 0x154]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0x118], rax
mov rdx, qword [rsi + 0x118]
call fcn.1401ed430
mov rcx, r14
call fcn.1401ed510
test eax, eax
je 0x1401fafd8
mov edx, 5
mov rcx, rdi
call fcn.1401fae90
mov eax, Ordinal_46
jmp 0x1401fafda
Function at 0x1402020e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov r8, qword [rcx]
mov rbx, rcx
mov rax, qword [r8 + 0x200]
cmp dword [rax + 0x20], 0
je 0x140202115
mov r8d, reloc.WS2_32.dll_listen
mov dword [rcx + 0x81c], 0xd
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.140202250
mov eax, dword [r8 + 0xe88]
bt eax, 0xe
jae 0x14020212e
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.140203400
bt eax, 0x11
jae 0x1402021c9
mov rcx, qword [rcx + 0x7e8]
test rcx, rcx
jne 0x140202183
mov r8, qword [r8 + 0xc08]
test r8, r8
jne 0x140202166
bt eax, 0xd
lea r8, str.LIST
lea rax, str.NLST
cmovb r8, rax
lea rcx, [rbx + 0x760]
lea rdx, str.PRET__s
call fcn.140217340
test eax, eax
je 0x1402021b9
add rsp, 0x20
pop rbx
ret
mov r8, rcx
lea rcx, [rbx + 0x760]
bt eax, 0x1d
jae 0x1402021a9
lea rdx, str.PRET_STOR__s
call fcn.140217340
test eax, eax
je 0x1402021b9
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.140217340
test eax, eax
jne 0x1402021d3
mov dword [rbx + 0x81c], 0x1d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140203c50
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x760
test dword [rax + 0xe88], 0x200
jne 0x140202208
cmp dword [rax + 0xa08], 0
je 0x140202234
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x140202234
lea rdx, str.MDTM__s
call fcn.140217340
test eax, eax
jne 0x140202241
mov dword [rbx + 0x81c], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140203da0
add rsp, 0x20
pop rbx
ret
Function at 0x140202dc0
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 [0x1403295b8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x258]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], 0x80
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140202e3a
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.140186130
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x140202e5f
lea rdx, str.Error_accept__ing_server_connect
call fcn.140184a60
lea eax, [rbx + 0x1f]
jmp 0x140202edb
lea rdx, str.Connection_accepted_from_server_n
call fcn.1401848f0
and dword [rdi + 0x3d4], 0xfffff7ff
mov edx, 1
mov rcx, rbx
mov qword [rdi + 0x258], rbx
call fcn.14020a8a0
mov byte [rdi + 0x271], 1
cmp qword [rsi + 0x740], 0
je 0x140202ed9
mov dl, 1
mov rcx, rsi
call fcn.140176180
mov rcx, qword [rsi + 0x748]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x740]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.140176180
test ebx, ebx
je 0x140202ed9
mov rcx, rdi
call fcn.140202cd0
mov eax, Ordinal_46
jmp 0x140202edb
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140141380
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 0x140203ce0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + 0x200]
cmp dword [rdx + 0x20], 0
je 0x140203d2d
cmp qword [rcx + 0x7e8], 0
je 0x140203d2d
add rcx, 0x760
lea rdx, str.REST__d
xor r8d, r8d
call fcn.140217340
test eax, eax
jne 0x140203d37
mov dword [rbx + 0x81c], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1402020e0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x760
mov rax, qword [rbx]
mov rdx, qword [rax + 0x200]
cmp dword [rdx + 0x20], 1
jne 0x140203d8c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x140203d8c
lea rdx, str.SIZE__s
call fcn.140217340
test eax, eax
jne 0x140203d99
mov dword [rbx + 0x81c], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140203ce0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov rdx, qword [rcx]
mov r9, rcx
mov ecx, dword [rdx + 0xe88]
bt ecx, 0x1c
jae 0x140203dfe
cmp qword [r9 + 0x7e8], 0
je 0x140203dfe
movsx eax, byte [r9 + 0x80c]
shr ecx, 0xb
not cl
and ecx, 1
shl ecx, 3
or ecx, 0x41
cmp eax, ecx
je 0x140203dfe
mov rax, qword [rdx + 0x200]
mov r8d, reloc.WS2_32.dll_send
mov rcx, r9
mov dword [rax + 0x20], 1
mov edx, dword [rdx + 0xe88]
shr edx, 0xb
and dl, 1
jmp fcn.140202540
mov rcx, r9
jmp fcn.140203d40
Function at 0x140204860
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rsi, rcx
mov rcx, qword [rcx]
mov edi, r8d
cmp eax, 0x64
jb 0x1402048a4
lea rdx, str.Couldnt_set_desired_mode
call fcn.140184a60
lea eax, [rbx + 0x11]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
cmp edx, 0xc8
je 0x1402048bb
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.1401848f0
mov qword [rsp + 0x48], rbp
cmp edi, 0x13
jne 0x1402048d2
mov rcx, rsi
call fcn.140203d40
jmp 0x140204a2f
cmp edi, 0x14
jne 0x140204a11
mov rbp, qword [rsi]
mov rax, qword [rbp + 0x200]
mov rdi, qword [rax + 0x10]
mov rax, rbx
mov qword [rsp + 0x40], rbx
cmp dword [rbp + 0xba0], 2
jne 0x140204969
test rdi, rdi
je 0x140204969
cmp byte [rdi], al
je 0x140204969
mov edx, Ordinal_50
mov rcx, rdi
call fcn.14021ede8
test rax, rax
je 0x140204964
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdi + rax], bl
jne 0x140204920
cmp byte [rax + rdi - 1], 0x2f
je 0x14020493f
mov edx, Ordinal_50
mov rcx, rdi
call fcn.14021ee68
sub rax, rdi
mov byte [rsp + 0x28], 1
lea r9, [rsp + 0x40]
mov r8, rax
mov qword [rsp + 0x20], rbx
mov rdx, rdi
mov rcx, rbp
call fcn.1401f3db0
test eax, eax
jne 0x140204a2f
mov rax, qword [rsp + 0x40]
mov rdx, qword [rbp + 0xc08]
test rdx, rdx
jne 0x140204991
test dword [rbp + 0xe88], 0x2000
lea rcx, str.NLST
lea rdx, str.LIST
cmovne rdx, rcx
test rax, rax
lea r8, [0x1402db96f]
mov r9, r8
lea rcx, [0x1402dc98c]
cmovne r8, rcx
cmovne r9, rax
lea rcx, [0x1402dbda0]
call fcn.1401ee330
mov rbp, rax
test rax, rax
jne 0x1402049d1
mov rcx, qword [rsp + 0x40]
call qword [fcn.140238394]
lea ebx, [rbp + 0x1b]
jmp 0x140204a31
lea rcx, [rsi + 0x760]
mov r8, rbp
lea rdx, [0x1402dbde8]
call fcn.140217340
mov rcx, qword [rsp + 0x40]
mov edi, eax
call qword [fcn.140238394]
mov rcx, rbp
call qword [fcn.140238394]
test edi, edi
je 0x140204a05
mov ebx, edi
jmp 0x140204a31
mov dword [rsi + 0x81c], 0x1f
jmp 0x140204a31
cmp edi, 0x15
jne 0x140204a1c
lea r8d, [rdi - 8]
jmp 0x140204a25
cmp edi, 0x16
jne 0x140204a31
lea r8d, [rdi - 8]
mov dl, 1
mov rcx, rsi
call fcn.140202250
mov ebx, eax
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret