joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ad580
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, 0x60
mov edx, 1
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
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 0x1400ad5d4
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov qword [rsp + 0x70], 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 0x1400ad757
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400ad757
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400ad757
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1400ad757
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 0x1400ad757
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400ad757
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 0x1400ad757
mov r9, rsi
lea r8, [0x140119024]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.1400ae9d0
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400ad6f1
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 0x1400ad757
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 0x1400ad757
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call fcn.14001c9c0
test eax, eax
jne 0x1400ad757
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1400ad778
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 + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1400b0b40
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 0x1400b0d04
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1400b0ce4
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1400b0b9d
lea ebp, [rax + 0xe]
jmp 0x1400b0ba9
cmp eax, 0x17
jne 0x1400b0c51
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1400b0c51
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400b0c51
cmp rax, rbp
jb 0x1400b0c51
mov ecx, 0x30
call qword [fcn.1400ce964]
mov rdi, rax
test rax, rax
je 0x1400b0c8c
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.1400ce964]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1400b0c7b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.14001cb10
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400b0c3e
call qword [case.0x140094f39.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1400b0c60
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1400b0c4e
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1400b0b90
jmp 0x1400b0c92
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.1400ce950]
mov rcx, rdi
call qword [fcn.1400ce950]
jmp 0x1400b0c92
mov rcx, rdi
mov r14d, 8
call qword [fcn.1400ce950]
jmp 0x1400b0c92
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1400b0ca7
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x1400b0cdf
test rbx, rbx
je 0x1400b0cda
mov rcx, qword [rbx + 0x20]
call qword [fcn.1400ce950]
mov rcx, qword [rbx + 0x18]
call qword [fcn.1400ce950]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.1400ce950]
mov rbx, rdi
test rdi, rdi
jne 0x1400b0cb1
mov rbx, r13
jmp 0x1400b0cf3
test rbx, rbx
jne 0x1400b0cf3
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 0x1400b43d0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1028
call fcn.1400ce780
sub rsp, rax
call fcn.1400df838
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400b441a
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400b441a
lea rcx, [rsp + 0x20]
call qword [case.0x140094f39.0]
add rsp, 0x1028
ret
xor eax, eax
add rsp, 0x1028
ret
Function at 0x1400b71d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0xa0
mov rbp, qword [rcx + 0x260]
lea r8, [rax + 8]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x20]
mov rdi, rcx
mov dword [rax + 8], 0x80
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400b723c
lea r8, [rsp + 0xb0]
mov dword [rsp + 0xb0], 0x80
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.1400a03d0
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x1400b7261
lea rdx, str.Error_accept__ing_server_connect
call fcn.14009f7a0
lea eax, [rbx + 0x1f]
jmp 0x1400b72da
lea rdx, str.Connection_accepted_from_server_n
call fcn.14009f900
mov edx, 1
mov byte [rdi + 0x3f8], 0
mov rcx, rbx
mov qword [rdi + 0x260], rbx
call fcn.1400ad790
mov byte [rdi + 0x279], 1
cmp qword [rsi + 0x728], 0
je 0x1400b72d8
mov dl, 1
mov rcx, rsi
call fcn.140090540
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.140090540
test ebx, ebx
je 0x1400b72d8
mov rcx, rdi
call fcn.1400b77e0
mov eax, 0x2a
jmp 0x1400b72da
xor eax, eax
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400b8310
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 0x1400b8335
cmp dword [rax + 0x9f0], 0
je 0x1400b8361
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1400b8361
lea rdx, str.MDTM__s
call fcn.1400c8bc0
test eax, eax
jne 0x1400b836e
mov dword [rbx + 0x850], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400b9150
add rsp, 0x20
pop rbx
ret

Function at 0x1400b8ae0
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 0x1400b8b18
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.1400b8c30
cmp byte [rcx + 0xe9e], 0
je 0x1400b8b30
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400b9600
cmp byte [rcx + 0xea1], 0
je 0x1400b8bd1
mov r8, qword [rbx + 0x820]
test r8, r8
jne 0x1400b8b8b
mov r8, qword [rcx + 0xc00]
test r8, r8
jne 0x1400b8b6e
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.1400c8bc0
test eax, eax
je 0x1400b8bc1
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xead], 0
lea rcx, [rbx + 0x798]
je 0x1400b8bb1
lea rdx, str.PRET_STOR__s
call fcn.1400c8bc0
test eax, eax
je 0x1400b8bc1
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.1400c8bc0
test eax, eax
jne 0x1400b8bde
mov dword [rbx + 0x850], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400b9570
add rsp, 0x20
pop rbx
ret
Function at 0x1400b8f10
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 0x1400b8f5d
cmp qword [rcx + 0x820], 0
je 0x1400b8f5d
add rcx, 0x798
lea rdx, str.REST__d
xor r8d, r8d
call fcn.1400c8bc0
test eax, eax
jne 0x1400b8f67
mov dword [rbx + 0x850], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400b8ae0
add rsp, 0x20
pop rbx
ret

Function at 0x1400b90f0
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 0x1400b913c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1400b913c
lea rdx, str.SIZE__s
call fcn.1400c8bc0
test eax, eax
jne 0x1400b9149
mov dword [rbx + 0x850], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400b8f10
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xeac], 0
je 0x1400b91a8
cmp qword [rcx + 0x820], 0
je 0x1400b91a8
cmp byte [r9 + 0xe9b], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0x840]
cmp eax, edx
je 0x1400b91a8
mov rax, qword [r9 + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x20], 1
movzx edx, byte [r9 + 0xe9b]
jmp fcn.1400b79f0
jmp fcn.1400b90f0
Function at 0x1400b91b0
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 0x1400b91e5
lea rdx, str.Couldnt_set_desired_mode
call fcn.14009f7a0
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x1400b91fc
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.14009f900
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x1400b9218
mov rcx, rdi
call fcn.1400b90f0
jmp 0x1400b9350
cmp esi, 0x14
jne 0x1400b9332
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xb98], 2
jne 0x1400b929a
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x1400b929a
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.1400b44c0
test eax, eax
jne 0x1400b9350
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call fcn.1400e8874
test rax, rax
je 0x1400b928f
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x1400b929a
mov rcx, qword [rsp + 0x50]
call qword [fcn.1400ce950]
mov rdx, qword [rsi + 0xc00]
test rdx, rdx
jne 0x1400b92be
cmp byte [rsi + 0xe9d], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1400f0be0]
test rbp, rbp
mov r9, r8
lea rax, [0x14011b290]
cmovne r9, rbp
lea rcx, [0x140116e60]
cmovne r8, rax
call fcn.1400ae900
mov rcx, rbp
mov r14, rax
call qword [fcn.1400ce950]
test r14, r14
jne 0x1400b92fd
lea ebx, [r14 + 0x1b]
jmp 0x1400b9352
lea rcx, [rdi + 0x798]
mov r8, r14
lea rdx, [0x14011aad4]
call fcn.1400c8bc0
mov rcx, r14
mov esi, eax
call qword [fcn.1400ce950]
test esi, esi
je 0x1400b9326
mov ebx, esi
jmp 0x1400b9352
mov dword [rdi + 0x850], 0x1f
jmp 0x1400b9352
cmp esi, 0x15
jne 0x1400b933d
lea r8d, [rsi - 8]
jmp 0x1400b9346
cmp esi, 0x16
jne 0x1400b9352
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.1400b8c30
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 0x1400cd860
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.1400ce964]
mov rbx, rax
test rax, rax
jne 0x1400cd8a5
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 0x1400cd8f0
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.WS2_32.dll_recv]
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 0x1400cd952
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 0x1400cd910
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x1400cd993
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x14012059a]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x14012059b]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400cd960
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 0x1400ce018
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x140232fa8], 0
lea rbx, [0x140232fb8]
mov r14, rdx
mov r15, rcx
jne 0x1400ce065
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x140232fac], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x140232fa8], 1
mov ecx, dword [0x140232fac]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x1400ce13a
mov rcx, qword [0x1402307b8]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x1400ce165
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140232fb0]
test rax, rax
je 0x1400ce0b5
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x140232fb0], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
lea r9, [rbp + 0x20]
and dword [rsp + 0x28], 0
mov rcx, rax
mov r8, rdi
mov dword [rsp + 0x20], 0x100000
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
lea r8, [0x1400ce180]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x140232fac]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1402307b8]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x1400ce165
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x1400ce8f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400ce918
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400ce918
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400d48cc
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.1400ce780
sub rsp, rax
mov rax, qword [0x14022f308]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140018b54
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400d491b
mov rax, rbp
jmp 0x1400d4a23
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 + 0x230f50]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001a7c4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x230f50]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400d4a1f
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 0x1400d4a1f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001a7c4
test rax, rax
js 0x1400d4a1f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400d4a1f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400d4a11
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400d4a11
cmp byte [rcx], 0xd
jne 0x1400d49f7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400d4a06
cmp byte [rcx + 1], 0xa
jne 0x1400d4a06
inc rcx
jmp 0x1400d4a06
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x22fc00]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400d49d9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400d4a23
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400ce4b0
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 0x1400e0bb0
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 [0x14022f308]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140122770]
mov rbp, rcx
call fcn.140012bc0
xor edi, edi
test rax, rax
je 0x1400e0c96
mov ebx, edi
call fcn.14000e35c
mov r14d, dword [rax]
call fcn.14000e35c
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400e4324
mov rsi, rax
test rax, rax
je 0x1400e0c27
call fcn.14000e35c
mov dword [rax], r14d
jmp 0x1400e0c51
call fcn.14000e35c
cmp dword [rax], 0x22
jne 0x1400e0c8e
call fcn.14000e35c
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400e4324
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400e0c8e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400e0c55
cmp rax, 3
je 0x1400e0c70
mov rcx, rsi
call fcn.1400e0b0c
test al, al
je 0x1400e0c81
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400e0c81
mov dil, 1
mov rcx, rbx
call fcn.1400ce950
mov al, dil
jmp 0x1400e0c98
mov rcx, rbx
call fcn.1400ce950
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400ce4b0
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 0x1400e3e08
Capabilities:
Get file size

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

Function at 0x1400e6b0c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14022f308]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400e6b56
call fcn.14000e33c
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14000e35c
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14000c40c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400ce4b0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400e6b61
lea eax, [rbx + 1]
jmp 0x1400e6b43
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 0x1400e6b41
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400e6b43
Function at 0x1400e80d4
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.14001a7cc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001a7cc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400e8224
cmp rax, 0xffffffffffffffff
je 0x1400e8224
xor edi, edi
test rbp, rbp
jle 0x1400e81cf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000c474
mov rbx, rax
test rax, rax
jne 0x1400e815c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400e81c5
mov edx, 0x8000
mov ecx, r14d
call fcn.14000a064
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.14001953c
cmp eax, 0xffffffff
je 0x1400e81a5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400e816c
mov edx, r15d
mov ecx, r14d
call fcn.14000a064
jmp 0x1400e81c5
cmp byte [rsi + 0x38], dil
je 0x1400e81bc
cmp dword [rsi + 0x34], 5
jne 0x1400e81bc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400e81c5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14000c4ec
jmp 0x1400e8238
jns 0x1400e8238
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001a7cc
cmp rax, 0xffffffffffffffff
jne 0x1400e81f0
cmp byte [rsi + 0x30], dil
je 0x1400e8238
mov edi, dword [rsi + 0x2c]
jmp 0x1400e8238
mov ecx, r14d
call fcn.140010da8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400e8238
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 0x1400e8238
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400e8231
mov eax, dword [rsi + 0x2c]
jmp 0x1400e8236
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001a7cc
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