joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140069760
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x14017af60]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400697a6
mov r8d, eax
lea rdx, str.WSAStartup_failed___d_
mov rcx, rbx
call fcn.140048870
jmp 0x1400697d0
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x1400697c1
shr ax, 8
test al, al
jne 0x1400697c1
xor eax, eax
jmp 0x1400697d5
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, rbx
call fcn.140048870
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14007c540
add rsp, 0x1d0
pop rbx
ret

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

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x1f8]
mov r8d, dword [r9 + r10*4 + 8]
sub r8d, 1
je 0x140069f64
sub r8d, 1
je 0x140069f3b
cmp r8d, 1
jne 0x140069f78
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x140069f5c
cmp ecx, r8d
jne 0x140069f78
xor eax, eax
mov dword [r9 + r10*4 + 8], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x408], eax
mov edx, 0xfb
mov rcx, r11
jmp fcn.14006a100
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x140069f5c
cmp ecx, 1
jne 0x140069f78
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
mov dword [r9 + r10*4 + 0x408], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfc
mov dword [r9 + r10*4 + 8], eax
jmp fcn.14006a100
ret

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

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x1f8]
mov r8d, dword [r9 + r10*4 + 0xc08]
test r8d, r8d
je 0x14006a027
sub r8d, 2
je 0x140069fe0
cmp r8d, 1
jne 0x14006a019
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x140069fd3
cmp ecx, r8d
jne 0x14006a019
mov dword [r9 + r10*4 + 0xc08], r8d
mov dword [r9 + r10*4 + 0x1008], 0
ret
mov dword [r9 + r10*4 + 0xc08], 0
ret
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14006a01a
cmp ecx, 1
jne 0x14006a019
mov dword [r9 + r10*4 + 0xc08], 3
mov rcx, r11
mov dword [r9 + r10*4 + 0x1008], 0
mov r8d, edx
mov edx, VarUI2FromI4
jmp fcn.14006a100
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x14006a00c
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.14006a100
Function at 0x14006a050
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x1f8]
mov r8d, dword [r9 + r10*4 + 0xc08]
sub r8d, 1
je 0x14006a0e0
sub r8d, 1
je 0x14006a0b1
cmp r8d, 1
jne 0x14006a0f7
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14006a0d5
cmp ecx, r8d
jne 0x14006a0f7
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x1008], eax
mov edx, 0xfd
mov rcx, r11
jmp fcn.14006a100
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14006a0d5
cmp ecx, 1
jne 0x14006a0f7
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
mov dword [r9 + r10*4 + 0x1008], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
ret
xor eax, eax
mov r8d, edx
mov edx, VarUI2FromI4
mov dword [r9 + r10*4 + 0xc08], eax
jmp fcn.14006a100
ret

Function at 0x14006a100
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], VarUI2FromI4
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x238]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14006a15f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140048870
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140069900
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14006a310
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x14006a4be
push rbp
push rdi
push r14
sub rsp, 0x30
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r15
mov rdi, qword [rbp + 0x1f8]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x14006a359
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14006a367
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14006a375
mov byte [rax], Ordinal_33
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 + 0x58], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx]
movzx r8d, ax
mov word [rsp + 0x50], ax
cmp rcx, rbx
jae 0x14006a3af
mov byte [rcx], r15b
inc qword [rbx]
mov rdx, qword [rbx]
mov r15, qword [rsp + 0x20]
cmp rdx, rbx
jae 0x14006a3c6
movzx ecx, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14006a3d4
mov byte [rax], r8b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x14006a3e6
movzx eax, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14006a3f4
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14006a402
mov byte [rax], 0xf0
inc qword [rbx]
mov rax, qword [rbx]
lea r8, [rdi + 0x1cba]
mov r9, rax
mov qword [rdi + 0x1ec0], rax
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140069a40
mov rcx, qword [r14 + 0x238]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x60]
test eax, eax
jns 0x14006a46a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140048870
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.14006a190
mov rcx, qword [r14 + 0x238]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14006a4b6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140048870
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret

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

Disassembly:
push rbx
mov rax, qword [rcx]
mov rbx, rcx
movsxd r11, edx
mov r9, qword [rax + 0x1f8]
cmp r8d, 1
jne 0x14006a51e
mov r8d, dword [r9 + r11*4 + 8]
test r8d, r8d
je 0x14006a507
sub r8d, 2
je 0x14006a532
cmp r8d, 1
jne 0x14006a565
cmp dword [r9 + r11*4 + 0x408], 0
jne 0x14006a565
mov dword [r9 + r11*4 + 0x408], 1
pop rbx
ret
mov edx, 0xfb
mov dword [r9 + r11*4 + 8], 2
mov r8d, r11d
pop rbx
jmp fcn.14006a100
mov ecx, dword [r9 + r11*4 + 8]
sub ecx, 1
je 0x14006a54b
sub ecx, 1
je 0x14006a4ee
cmp ecx, 1
jne 0x14006a565
cmp dword [r9 + r11*4 + 0x408], 1
jne 0x14006a565
mov dword [r9 + r11*4 + 0x408], 0
pop rbx
ret
mov edx, 0xfc
mov dword [r9 + r11*4 + 8], 3
mov rcx, rbx
mov r8d, r11d
pop rbx
jmp fcn.14006a100
pop rbx
ret
Function at 0x14006a570
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
mov rax, qword [rcx]
mov rbx, rcx
movsxd r11, edx
mov r9, qword [rax + 0x1f8]
cmp r8d, 1
jne 0x14006a5d8
mov r8d, dword [r9 + r11*4 + 0xc08]
test r8d, r8d
je 0x14006a5be
sub r8d, 2
je 0x14006a5ef
cmp r8d, 1
jne 0x14006a625
cmp dword [r9 + r11*4 + 0x1008], 0
jne 0x14006a625
mov dword [r9 + r11*4 + 0x1008], 1
pop rbx
ret
mov edx, 0xfd
mov dword [r9 + r11*4 + 0xc08], 2
mov r8d, r11d
pop rbx
jmp fcn.14006a100
mov ecx, dword [r9 + r11*4 + 0xc08]
sub ecx, 1
je 0x14006a608
sub ecx, 1
je 0x14006a5a5
cmp ecx, 1
jne 0x14006a625
cmp dword [r9 + r11*4 + 0x1008], 1
jne 0x14006a625
mov dword [r9 + r11*4 + 0x1008], 0
pop rbx
ret
mov edx, VarUI2FromI4
mov dword [r9 + r11*4 + 0xc08], 3
mov rcx, rbx
mov r8d, r11d
pop rbx
jmp fcn.14006a100
pop rbx
ret
Function at 0x14006b7c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14017af60]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0x748]
lea rax, [rsp + 0x30]
mov rdi, 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 [rbx + 0x15c]
lea rsi, [rbx + 0x168]
mov rdx, qword [rsi]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x14006b864
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.1400ac280
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r9d, dword [rbx + 0x154]
cmp r9d, 4
jge 0x14006b8b3
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140048870
mov dword [rbx + 0xc], 7
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14007c540
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rcx, rsi
call fcn.14006b300
movzx r8d, ax
mov dword [rbx + 0xc], r8d
sub r8d, 3
je 0x14006b942
sub r8d, 1
je 0x14006b9b1
sub r8d, 1
je 0x14006b91a
cmp r8d, 1
je 0x14006b8fa
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14012e9c8]
call fcn.140048870
jmp 0x14006b9b1
mov rdx, qword [rsi]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rbx
call fcn.14006b510
test eax, eax
je 0x14006b9b1
jmp 0x14006b889
mov rcx, rsi
call fcn.14006b2e0
movzx r8d, ax
lea rdx, [0x140130c4c]
mov dword [rbx + 8], r8d
mov rcx, rdi
mov r8, qword [rsi]
add r8, 4
call fcn.140048970
jmp 0x14006b9b1
cmp r9d, 4
jle 0x14006b9b1
mov rcx, rsi
call fcn.14006b2e0
movzx ecx, word [rbx + 0x48]
inc ecx
cmp cx, ax
jne 0x14006b9b1
mov r8, qword [rsi]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, r14
call fcn.140048740
mov esi, eax
test eax, eax
je 0x14006b990
mov edx, 5
mov rcx, rbx
call fcn.14006c260
mov eax, esi
jmp 0x14006b889
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400561a0
mov rcx, r14
call fcn.1400564d0
test eax, eax
je 0x14006b887
mov edx, 5
mov rcx, rbx
call fcn.14006c260
mov eax, Ordinal_46
jmp 0x14006b889
Function at 0x14006fa90
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14017af60]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.1400ec6e8
mov byte [rsp + 0x20], 0
test rax, rax
je 0x14006faf6
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x14006faf6
lea rcx, [rsp + 0x20]
call qword [case.0x14003ec96.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14007c540
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14007c540
add rsp, 0x148
ret
jmp 0x14006fa90

Function at 0x14006fb10
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14017af60]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.1400ec6e8
mov byte [rsp + 0x20], 0
test rax, rax
je 0x14006faf6
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x14006faf6
lea rcx, [rsp + 0x20]
call qword [case.0x14003ec96.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14007c540
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14007c540
add rsp, 0x148
ret
jmp 0x14006fa90

Function at 0x140078850
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbp, r8
mov rsi, rdx
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rdx + rbx], 0
jne 0x140078870
test rbx, rbx
je 0x14007888a
lea rcx, [rbx + rbx]
call qword [fcn.1400e194c]
jmp 0x140078897
lea rcx, [0x14012d6a0]
call qword [case.0x14003ec96.0]
mov rdi, rax
test rax, rax
jne 0x1400788a7
lea eax, [rdi + 0x1b]
jmp 0x140078963
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140078980
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140078950
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140078943
mov rcx, qword [rsp + 0x30]
lea r8d, [rbx + rbx]
xor r9d, r9d
mov dword [rsp + 0x68], reloc.WS2_32.dll_recv
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x68]
mov r8, rbp
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, rdi
mov dword [rbp + 0x10], eax
mov byte [rbp + 0x14], al
call qword [fcn.1400e1944]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400789b0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14017af60]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r8
mov dword [rsp + 0x40], 8
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000000
mov rdi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140078a81
xor eax, eax
lea rdx, [rsp + 0x64]
mov qword [rsp + 0x58], rax
mov rcx, rsi
mov qword [rsp + 0x60], rax
mov word [rsp + 0x58], 0x208
mov dword [rsp + 0x5c], 0x6601
mov dword [rsp + 0x60], 8
mov dword [rsp + 0x68], eax
call fcn.140078b00
lea rcx, [rsp + 0x64]
mov edx, 8
call fcn.14007b260
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x20], 0
lea r8d, [r9 + 0x14]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x140078a85
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x140078acf
mov rax, qword [rdi]
xor r9d, r9d
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov qword [rbx], rax
xor edx, edx
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14007c540
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14007b330
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [fcn.1400e194c]
mov rdi, rax
test rax, rax
jne 0x14007b372
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14007b3b5
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14007b412
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14007b3d0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14007b453
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14013cafa]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14013cafb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14007b420
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400ea4f8
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400ea230
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ea230
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ea230
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ea230
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ea230
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ea230
cmp dword [rcx + 0xf8], esi
je 0x1400ea230
mov ecx, r14d
call fcn.1400ea400
mov ecx, 2
call fcn.1400f89a0
nop
cmp byte [0x14017e2d0], 0
jne 0x1400ea2fa
mov r15d, 1
mov eax, r15d
xchg dword [0x14017e2c4], eax
test ebx, ebx
jne 0x1400ea2a3
mov rdi, qword [0x14017af60]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14017e2c8]
cmp rcx, rax
je 0x1400ea29a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [0x14012cb80]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14017e620]
jmp 0x1400ea2af
cmp ebx, r15d
jne 0x1400ea2b5
lea rcx, [0x14017e638]
call fcn.1400f35e8
nop
test ebx, ebx
jne 0x1400ea2cc
lea rdx, [0x14012ce90]
lea rcx, [0x14012ce70]
call fcn.1400f3c30
lea rdx, [0x14012cea0]
lea rcx, [0x14012ce98]
call fcn.1400f3c30
movzx eax, byte [0x14017e2d0]
test esi, esi
cmove eax, r15d
mov byte [0x14017e2d0], al
jmp 0x1400ea2fa
mov ecx, 2
call fcn.1400f89f4
test esi, esi
jne 0x1400ea311
mov ecx, r14d
call fcn.1400ea32c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400ea1c0
Function at 0x140104658
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140104280
call fcn.1400e49f8
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.1400e461c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140104268
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140104268
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1401042b2
lock or dword [rax + 0x14], 0x10
jmp 0x140104268
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1401042cf
mov rcx, qword [rbp + 0x10]
call fcn.140104cc0
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140100ea8
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1400f63e8
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140104326
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140104268
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140104392
mov rcx, qword [rbp + 0x10]
call fcn.140100ea8
cmp eax, 0xffffffff
je 0x140104379
mov rcx, qword [rbp + 0x10]
call fcn.140100ea8
cmp eax, 0xfffffffe
je 0x140104379
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140100ea8
movsxd rdi, eax
lea rsi, [0x14017ef20]
mov rcx, rbx
sar rdi, 6
call fcn.140100ea8
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x140104380
lea rax, [0x14017b4a0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140104392
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1401043c8
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1401043c4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1401043c4
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14010426b
jmp 0x140104238
Function at 0x140104660
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140104432
call fcn.1400e49f8
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.1400e461c
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140104414
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140104414
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x140104464
lock or dword [rax + 0x14], 0x10
jmp 0x140104414
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140104481
mov rcx, qword [rbp + 0x20]
call fcn.140104cc0
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x140104496
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x14010449c
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.140100ea8
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1400f63e8
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x1401044ef
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x140104414
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14010455b
mov rcx, qword [rbp + 0x20]
call fcn.140100ea8
cmp eax, 0xffffffff
je 0x140104542
mov rcx, qword [rbp + 0x20]
call fcn.140100ea8
cmp eax, 0xfffffffe
je 0x140104542
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.140100ea8
movsxd rdi, eax
lea r15, [0x14017ef20]
mov rcx, rbx
sar rdi, 6
call fcn.140100ea8
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x140104549
lea rax, [0x14017b4a0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14010455b
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x140104591
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14010458d
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14010458d
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x1401045af
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x1401045ba
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x140104419
jmp 0x1401043e0