joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140038e10
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x14008f3f0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x140038e3a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140089d50]
mov rcx, rbx
mov r14, rax
call fcn.140066e10
test rax, rax
je 0x140038e9d
mov rcx, rbx
test r14, r14
je 0x140038e87
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x140038ed5
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140038ed5
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x140038f98
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x140038f00
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.140018e08]
mov rdi, rax
test rax, rax
je 0x140038f8a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140038f8a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x140038f30
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x140038f44
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140038f60
mov rcx, rdi
test r14, r14
je 0x140038f81
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140038f87
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.14000913c]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x14003a8d4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003aa1c

Function at 0x14003cc64
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003cc7a
mov al, 1
jmp 0x14003ccda
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003cc8b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003ccd8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003ce64
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003ccd8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003ccd8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003ccd8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003ccda
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14004c360
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 0x14004c3b4
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 0x14004c537
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14004c537
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14004c537
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14004c537
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 0x14004c537
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14004c537
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 0x14004c537
mov r9, rsi
lea r8, [0x1400898c0]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.14004d630
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004c4d1
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 0x14004c537
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 0x14004c537
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call fcn.140025ba0
test eax, eax
jne 0x14004c537
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14004c558
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 0x1400552f0
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 0x1400554b4
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x140055494
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14005534d
lea ebp, [rax + 0xe]
jmp 0x140055359
cmp eax, 0x17
jne 0x140055401
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x140055401
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140055401
cmp rax, rbp
jb 0x140055401
mov ecx, 0x30
call qword [fcn.140018e08]
mov rdi, rax
test rax, rax
je 0x14005543c
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.140018e08]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x14005542b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.140009a80
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400553ee
call qword [case.0x14002b189.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x140055410
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1400553fe
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140055340
jmp 0x140055442
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.14000913c]
mov rcx, rdi
call qword [fcn.14000913c]
jmp 0x140055442
mov rcx, rdi
mov r14d, 8
call qword [fcn.14000913c]
jmp 0x140055442
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x140055457
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x14005548f
test rbx, rbx
je 0x14005548a
mov rcx, qword [rbx + 0x20]
call qword [fcn.14000913c]
mov rcx, qword [rbx + 0x18]
call qword [fcn.14000913c]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.14000913c]
mov rbx, rdi
test rdi, rdi
jne 0x140055461
mov rbx, r13
jmp 0x1400554a3
test rbx, rbx
jne 0x1400554a3
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 0x140055e50
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 [0x14009f6f0]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140094db8]
mov rbp, rcx
call fcn.140024564
xor edi, edi
test rax, rax
je 0x140055f36
mov ebx, edi
call fcn.14001c050
mov r14d, dword [rax]
call fcn.14001c050
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14006dc30
mov rsi, rax
test rax, rax
je 0x140055ec7
call fcn.14001c050
mov dword [rax], r14d
jmp 0x140055ef1
call fcn.14001c050
cmp dword [rax], 0x22
jne 0x140055f2e
call fcn.14001c050
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14006dc30
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140055f2e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140055ef5
cmp rax, 3
je 0x140055f10
mov rcx, rsi
call fcn.140055dac
test al, al
je 0x140055f21
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140055f21
mov dil, 1
mov rcx, rbx
call fcn.14000913c
mov al, dil
jmp 0x140055f38
mov rcx, rbx
call fcn.14000913c
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14001d9b0
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 0x140059840
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1028
call fcn.14001f5c0
sub rsp, rax
call fcn.1400729b0
mov byte [rsp + 0x20], 0
test rax, rax
je 0x14005988a
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x14005988a
lea rcx, [rsp + 0x20]
call qword [case.0x14002b189.0]
add rsp, 0x1028
ret
xor eax, eax
add rsp, 0x1028
ret

Function at 0x14005ce00
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 0x14005ce38
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.14005cf80
cmp byte [rcx + 0xe9e], 0
je 0x14005ce50
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14005e070
cmp byte [rcx + 0xea1], 0
je 0x14005cef1
mov r8, qword [rbx + 0x820]
test r8, r8
jne 0x14005ceab
mov r8, qword [rcx + 0xc00]
test r8, r8
jne 0x14005ce8e
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.140072f40
test eax, eax
je 0x14005cee1
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xead], 0
lea rcx, [rbx + 0x798]
je 0x14005ced1
lea rdx, str.PRET_STOR__s
call fcn.140072f40
test eax, eax
je 0x14005cee1
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.140072f40
test eax, eax
jne 0x14005cefe
mov dword [rbx + 0x850], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14005e8c0
add rsp, 0x20
pop rbx
ret
Function at 0x14005cf10
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 0x14005cf35
cmp dword [rax + 0x9f0], 0
je 0x14005cf61
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x14005cf61
lea rdx, str.MDTM__s
call fcn.140072f40
test eax, eax
jne 0x14005cf6e
mov dword [rbx + 0x850], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14005ea10
add rsp, 0x20
pop rbx
ret

Function at 0x14005da70
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 0x14005dadc
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.140037850
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x14005db01
lea rdx, str.Error_accept__ing_server_connect
call fcn.140035e70
lea eax, [rbx + 0x1f]
jmp 0x14005db7a
lea rdx, str.Connection_accepted_from_server_n
call fcn.140035d10
mov edx, 1
mov byte [rdi + 0x3f8], 0
mov rcx, rbx
mov qword [rdi + 0x260], rbx
call fcn.14004c570
mov byte [rdi + 0x279], 1
cmp qword [rsi + 0x728], 0
je 0x14005db78
mov dl, 1
mov rcx, rsi
call fcn.140026d30
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.140026d30
test ebx, ebx
je 0x14005db78
mov rcx, rdi
call fcn.14005d980
mov eax, 0x2a
jmp 0x14005db7a
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 0x14005e950
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 0x14005e99d
cmp qword [rcx + 0x820], 0
je 0x14005e99d
add rcx, 0x798
lea rdx, str.REST__d
xor r8d, r8d
call fcn.140072f40
test eax, eax
jne 0x14005e9a7
mov dword [rbx + 0x850], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14005ce00
add rsp, 0x20
pop rbx
ret

Function at 0x14005e9b0
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 0x14005e9fc
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x14005e9fc
lea rdx, str.SIZE__s
call fcn.140072f40
test eax, eax
jne 0x14005ea09
mov dword [rbx + 0x850], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14005e950
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xeac], 0
je 0x14005ea68
cmp qword [rcx + 0x820], 0
je 0x14005ea68
cmp byte [r9 + 0xe9b], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0x840]
cmp eax, edx
je 0x14005ea68
mov rax, qword [r9 + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x20], 1
movzx edx, byte [r9 + 0xe9b]
jmp fcn.14005d260
jmp fcn.14005e9b0
Function at 0x14005f470
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 0x14005f4a5
lea rdx, str.Couldnt_set_desired_mode
call fcn.140035e70
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x14005f4bc
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.140035d10
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x14005f4d8
mov rcx, rdi
call fcn.14005e9b0
jmp 0x14005f610
cmp esi, 0x14
jne 0x14005f5f2
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xb98], 2
jne 0x14005f55a
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x14005f55a
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.140059930
test eax, eax
jne 0x14005f610
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call fcn.14003aefc
test rax, rax
je 0x14005f54f
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x14005f55a
mov rcx, qword [rsp + 0x50]
call qword [fcn.14000913c]
mov rdx, qword [rsi + 0xc00]
test rdx, rdx
jne 0x14005f57e
cmp byte [rsi + 0xe9d], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1400896cc]
test rbp, rbp
mov r9, r8
lea rax, [0x140089e7c]
cmovne r9, rbp
lea rcx, [0x140089814]
cmovne r8, rax
call fcn.14004d700
mov rcx, rbp
mov r14, rax
call qword [fcn.14000913c]
test r14, r14
jne 0x14005f5bd
lea ebx, [r14 + 0x1b]
jmp 0x14005f612
lea rcx, [rdi + 0x798]
mov r8, r14
lea rdx, [0x140089864]
call fcn.140072f40
mov rcx, r14
mov esi, eax
call qword [fcn.14000913c]
test esi, esi
je 0x14005f5e6
mov ebx, esi
jmp 0x14005f612
mov dword [rdi + 0x850], 0x1f
jmp 0x14005f612
cmp esi, 0x15
jne 0x14005f5fd
lea r8d, [rsi - 8]
jmp 0x14005f606
cmp esi, 0x16
jne 0x14005f612
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.14005cf80
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 0x140078178
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14009f6f0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400781c2
call fcn.14001c070
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14001c050
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1400152d8
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001d9b0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400781cd
lea eax, [rbx + 1]
jmp 0x1400781af
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 0x1400781ad
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400781af

Function at 0x14007b45c
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.14001eefc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001eefc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14007b5ac
cmp rax, 0xffffffffffffffff
je 0x14007b5ac
xor edi, edi
test rbp, rbp
jle 0x14007b557
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400156c4
mov rbx, rax
test rax, rax
jne 0x14007b4e4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14007b54d
mov edx, 0x8000
mov ecx, r14d
call fcn.14007b2e0
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.14003d5ac
cmp eax, 0xffffffff
je 0x14007b52d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14007b4f4
mov edx, r15d
mov ecx, r14d
call fcn.14007b2e0
jmp 0x14007b54d
cmp byte [rsi + 0x38], dil
je 0x14007b544
cmp dword [rsi + 0x34], 5
jne 0x14007b544
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14007b54d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001573c
jmp 0x14007b5c0
jns 0x14007b5c0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001eefc
cmp rax, 0xffffffffffffffff
jne 0x14007b578
cmp byte [rsi + 0x30], dil
je 0x14007b5c0
mov edi, dword [rsi + 0x2c]
jmp 0x14007b5c0
mov ecx, r14d
call fcn.14003ce64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14007b5c0
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 0x14007b5c0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14007b5b9
mov eax, dword [rsi + 0x2c]
jmp 0x14007b5be
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001eefc
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
Function at 0x14007bac0
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14007baf0
xor eax, eax
jmp 0x14007bbb3
mov rbp, rbx
cmp word [rax], si
je 0x14007bb15
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14007bafc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14007baf8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140021610
movsxd r14, eax
test eax, eax
jne 0x14007bb53
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14007bae9
mov rcx, r14
call fcn.140015778
mov rdi, rax
test rax, rax
jne 0x14007bb6c
xor ecx, ecx
call fcn.14001573c
jmp 0x14007bb48
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140021610
test eax, eax
jne 0x14007bb9d
mov rcx, rdi
call fcn.14001573c
jmp 0x14007bba7
xor ecx, ecx
call fcn.14001573c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14007bbd0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14007bc57
mov rsi, rbx
cmp word [rax], bp
je 0x14007bc16
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14007bc00
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14007bbfc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140015778
mov rdi, rax
test rax, rax
je 0x14007bc44
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140009a80
mov rbp, rdi
xor ecx, ecx
call fcn.14001573c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret