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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb8
mov rax, qword [0x14029fd68]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14, qword [rsp + 0x120]
mov rsi, rcx
movsxd rcx, edx
xor r13d, r13d
mov r12, r9
mov r15, r8
mov rax, qword [rsi + 0x430]
mov rbp, qword [rsi + rcx*8 + 0x258]
lea rbx, [rcx + 0x15]
shl rbx, 5
add rbx, rsi
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x140145481
lea rax, [0x140145230]
cmp qword [rsi + rcx*8 + 0x280], rax
jne 0x140145481
cmp qword [rbx], r13
je 0x140145408
test rdi, rdi
je 0x140145481
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, rbp
call fcn.14014d3d0
cmp eax, 0xffffffff
je 0x140145481
test al, 1
je 0x140145481
cmp qword [rbx], r13
jne 0x140145452
mov rax, qword [rsi]
mov ecx, dword [rax + 0xb68]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [fcn.1400305b8]
mov rdi, qword [rbx + 8]
mov qword [rbx], rax
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
mov rcx, qword [rbx]
test rcx, rcx
je 0x14014547d
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x140145481
add qword [rbx + 0x10], rcx
jmp 0x140145481
mov qword [rbx + 8], r13
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
mov dword [r14], r13d
cmp rdi, 0xffffffffffffffff
jne 0x1401454ee
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1401454ba
mov dword [r14], 0x51
mov rax, r13
jmp 0x1401454f1
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.1401697b0
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.140144e30
mov rcx, qword [rsi]
mov dword [rcx + 0x1140], ebx
mov dword [r14], gethostname
mov rax, rdi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14017f910
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140154990
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 [0x14029fd68]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x260]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], pe_nt_image_headers64
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140154a0a
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], pe_nt_image_headers64
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.140149cf0
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x140154a2f
lea rdx, str.Error_accept__ing_server_connect
call fcn.140144e30
lea eax, [rbx + 0x1f]
jmp 0x140154aa8
lea rdx, str.Connection_accepted_from_server_n
call fcn.140144fb0
mov edx, 1
mov byte [rdi + 0x3f8], 0
mov rcx, rbx
mov qword [rdi + 0x260], rbx
call fcn.14016df30
mov byte [rdi + 0x279], 1
cmp qword [rsi + 0x728], 0
je 0x140154aa6
mov dl, 1
mov rcx, rsi
call fcn.140146700
mov rcx, qword [rsi + 0x730]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x728]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.140146700
test ebx, ebx
je 0x140154aa6
mov rcx, rdi
call fcn.140155100
mov eax, 0x2a
jmp 0x140154aa8
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14017f910
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 0x1401563e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x798
cmp byte [rax + 0xe99], 0
jne 0x140156405
cmp dword [rax + 0x9f0], 0
je 0x140156431
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x140156431
lea rdx, str.MDTM__s
call fcn.140172640
test eax, eax
jne 0x14015643e
mov dword [rbx + 0x850], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140157670
add rsp, 0x20
pop rbx
ret
Function at 0x140156cb0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x1e0]
cmp dword [rax + 0x20], 0
je 0x140156ce8
mov r8d, reloc.WS2_32.dll_listen
mov dword [rbx + 0x850], 0xd
mov dl, 1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140156e00
cmp byte [rcx + 0xe9e], 0
je 0x140156d00
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140157b20
cmp byte [rcx + 0xea1], 0
je 0x140156da1
mov r8, qword [rbx + 0x820]
test r8, r8
jne 0x140156d5b
mov r8, qword [rcx + 0xc00]
test r8, r8
jne 0x140156d3e
cmp byte [rcx + 0xe9d], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0x798]
lea rdx, str.PRET__s
call fcn.140172640
test eax, eax
je 0x140156d91
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xead], 0
lea rcx, [rbx + 0x798]
je 0x140156d81
lea rdx, str.PRET_STOR__s
call fcn.140172640
test eax, eax
je 0x140156d91
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.140172640
test eax, eax
jne 0x140156dae
mov dword [rbx + 0x850], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140157a90
add rsp, 0x20
pop rbx
ret

Function at 0x1401570e0
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 + 0x1e0]
cmp dword [rdx + 0x20], 0
je 0x14015712d
cmp qword [rcx + 0x820], 0
je 0x14015712d
add rcx, 0x798
lea rdx, str.REST__d
xor r8d, r8d
call fcn.140172640
test eax, eax
jne 0x140157137
mov dword [rbx + 0x850], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140156cb0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x798
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x20], 1
jne 0x14015741c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x14015741c
lea rdx, str.SIZE__s
call fcn.140172640
test eax, eax
jne 0x140157429
mov dword [rbx + 0x850], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1401570e0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xeac], 0
je 0x1401576c8
cmp qword [rcx + 0x820], 0
je 0x1401576c8
cmp byte [r9 + 0xe9b], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0x840]
cmp eax, edx
je 0x1401576c8
mov rax, qword [r9 + 0x1e0]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetLBound
mov dword [rax + 0x20], 1
movzx edx, byte [r9 + 0xe9b]
jmp fcn.140155440
jmp fcn.1401573d0
Function at 0x1401576d0
Capabilities:
Check http status code

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rdi, rcx
mov rcx, qword [rcx]
mov esi, r8d
cmp eax, 0x64
jb 0x140157705
lea rdx, str.Couldnt_set_desired_mode
call fcn.140144e30
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x14015771c
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.140144fb0
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x140157738
mov rcx, rdi
call fcn.1401573d0
jmp 0x140157870
cmp esi, 0x14
jne 0x140157852
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xb98], 2
jne 0x1401577ba
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x1401577ba
mov byte [rsp + 0x28], 1
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov qword [rsp + 0x50], rbx
call fcn.140162660
test eax, eax
jne 0x140157870
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call fcn.140054fa8
test rax, rax
je 0x1401577af
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x1401577ba
mov rcx, qword [rsp + 0x50]
call qword [fcn.1400305a4]
mov rdx, qword [rsi + 0xc00]
test rdx, rdx
jne 0x1401577de
cmp byte [rsi + 0xe9d], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x140208e40]
test rbp, rbp
mov r9, r8
lea rax, [0x14022cea8]
cmovne r9, rbp
lea rcx, [0x140240808]
cmovne r8, rax
call fcn.14015cc40
mov rcx, rbp
mov r14, rax
call qword [fcn.1400305a4]
test r14, r14
jne 0x14015781d
lea ebx, [r14 + 0x1b]
jmp 0x140157872
lea rcx, [rdi + 0x798]
mov r8, r14
lea rdx, [0x14022fec4]
call fcn.140172640
mov rcx, r14
mov esi, eax
call qword [fcn.1400305a4]
test esi, esi
je 0x140157846
mov ebx, esi
jmp 0x140157872
mov dword [rdi + 0x850], 0x1f
jmp 0x140157872
cmp esi, 0x15
jne 0x14015785d
lea r8d, [rsi - 8]
jmp 0x140157866
cmp esi, 0x16
jne 0x140157872
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.140156e00
mov ebx, eax
mov r14, qword [rsp + 0x60]
mov eax, ebx
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140162d80
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1038
call fcn.14017fd70
sub rsp, rax
mov rax, qword [0x14029fd68]
xor rax, rsp
mov qword [rsp + 0x1020], rax
call fcn.140036c54
mov byte [rsp + 0x20], 0
test rax, rax
je 0x140162dec
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x140162dec
lea rcx, [rsp + 0x20]
call qword [case.0x140140f09.0]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14017f910
add rsp, 0x1038
ret
xor eax, eax
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14017f910
add rsp, 0x1038
ret

Function at 0x1401634a0
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 0x140163664
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x140163644
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1401634fd
lea ebp, [rax + 0xe]
jmp 0x140163509
cmp eax, 0x17
jne 0x1401635b1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1401635b1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1401635b1
cmp rax, rbp
jb 0x1401635b1
mov ecx, gethostbyname
call qword [fcn.1400305b8]
mov rdi, rax
test rax, rax
je 0x1401635ec
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.1400305b8]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1401635db
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.140052f00
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x14016359e
call qword [case.0x140140f09.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1401635c0
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1401635ae
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1401634f0
jmp 0x1401635f2
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.1400305a4]
mov rcx, rdi
call qword [fcn.1400305a4]
jmp 0x1401635f2
mov rcx, rdi
mov r14d, 8
call qword [fcn.1400305a4]
jmp 0x1401635f2
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x140163607
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x14016363f
test rbx, rbx
je 0x14016363a
mov rcx, qword [rbx + 0x20]
call qword [fcn.1400305a4]
mov rcx, qword [rbx + 0x18]
call qword [fcn.1400305a4]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.1400305a4]
mov rbx, rdi
test rdi, rdi
jne 0x140163611
mov rbx, r13
jmp 0x140163653
test rbx, rbx
jne 0x140163653
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 0x14016dd00
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14029fd68]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edx, 1
mov dword [rsp + 0x34], reloc.OLEAUT32.dll_SafeArrayGetDim
mov ebp, 2
mov dword [rsp + 0x30], 1
mov ecx, ebp
mov rsi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14016dd55
jmp 0x14016df04
mov qword [rsp + 0x80], rbx
mov ecx, 0x7f000001
xor ebx, ebx
mov word [rsp + 0x38], bp
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rsp + 0x30]
mov word [rsp + 0x3a], bx
mov edx, 0xffff
mov dword [rsp + 0x3c], eax
lea r8d, [rbx + 4]
mov qword [rsi + 8], 0xffffffffffffffff
mov rcx, rdi
mov qword [rsi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14016dedb
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14016dedb
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14016dedb
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14016dedb
xor r8d, r8d
lea edx, [rbx + 1]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x14016dedb
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14016dedb
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x14016dedb
mov r9, rsi
lea r8, [0x140248240]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.14015cd60
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14016de75
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, rbx
jne 0x14016dedb
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x54]
xor r9d, r9d
lea r8d, [r9 + 0xc]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, rbx
jne 0x14016dedb
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call fcn.140054060
test eax, eax
jne 0x14016dedb
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14016defc
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14017f910
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14017e5c0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [fcn.1400305b8]
mov rbx, rax
test rax, rax
jne 0x14017e605
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x50], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x14017e650
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x14017e6b2
mov rsi, r15
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 [rbx + 8]
call qword [rbp + 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 [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x14017e670
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x14017e6f3
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x14024ad21]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x14024ad22]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14017e6c0
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
Function at 0x1401a343c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14029fd68]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14024af90]
mov rbp, rcx
call fcn.14004413c
xor edi, edi
test rax, rax
je 0x1401a3522
mov ebx, edi
call fcn.1400371cc
mov r14d, dword [rax]
call fcn.1400371cc
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1401c7e0c
mov rsi, rax
test rax, rax
je 0x1401a34b3
call fcn.1400371cc
mov dword [rax], r14d
jmp 0x1401a34dd
call fcn.1400371cc
cmp dword [rax], 0x22
jne 0x1401a351a
call fcn.1400371cc
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1401c7e0c
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1401a351a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1401a34e1
cmp rax, 3
je 0x1401a34fc
mov rcx, rsi
call fcn.1401a3384
test al, al
je 0x1401a350d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1401a350d
mov dil, 1
mov rcx, rbx
call fcn.1400305a4
mov al, dil
jmp 0x1401a3524
mov rcx, rbx
call fcn.1400305a4
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14017f910
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1401b6060
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14017fd70
sub rsp, rax
mov rax, qword [0x14029fd68]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14004eb60
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401b60af
mov rax, rbp
jmp 0x1401b61b7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x2a83f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005252c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x2a83f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401b61b3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401b61b3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005252c
test rax, rax
js 0x1401b61b3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401b61b3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401b61a5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401b61a5
cmp byte [rcx], 0xd
jne 0x1401b618b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401b619a
cmp byte [rcx + 1], 0xa
jne 0x1401b619a
inc rcx
jmp 0x1401b619a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2a0660]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401b616d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401b61b7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14017f910
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401bd578
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14029fd68]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1401bd5c2
call fcn.1400371ac
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1400371cc
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.140038e28
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14017f910
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1401bd5cd
lea eax, [rbx + 1]
jmp 0x1401bd5af
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1401bd5ad
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1401bd5af
Function at 0x1401cb464
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401cb47a
mov al, 1
jmp 0x1401cb4da
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401cb48b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401cb4d8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003d52c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401cb4d8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401cb4d8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401cb4d8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401cb4da
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1401cb9c0
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140052534
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140052534
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401cbb10
cmp rax, 0xffffffffffffffff
je 0x1401cbb10
xor edi, edi
test rbp, rbp
jle 0x1401cbabb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400396e8
mov rbx, rax
test rax, rax
jne 0x1401cba48
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401cbab1
mov edx, 0x8000
mov ecx, r14d
call fcn.140031960
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14004fa1c
cmp eax, 0xffffffff
je 0x1401cba91
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401cba58
mov edx, r15d
mov ecx, r14d
call fcn.140031960
jmp 0x1401cbab1
cmp byte [rsi + 0x38], dil
je 0x1401cbaa8
cmp dword [rsi + 0x34], 5
jne 0x1401cbaa8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1401cbab1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140036280
jmp 0x1401cbb24
jns 0x1401cbb24
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140052534
cmp rax, 0xffffffffffffffff
jne 0x1401cbadc
cmp byte [rsi + 0x30], dil
je 0x1401cbb24
mov edi, dword [rsi + 0x2c]
jmp 0x1401cbb24
mov ecx, r14d
call fcn.14003d52c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401cbb24
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1401cbb24
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401cbb1d
mov eax, dword [rsi + 0x2c]
jmp 0x1401cbb22
mov eax, SafeArrayPutElement
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140052534
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret