joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400de550
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 0x1400de714
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1400de6f4
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1400de5ad
lea ebp, [rax + 0xe]
jmp 0x1400de5b9
cmp eax, 0x17
jne 0x1400de661
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1400de661
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400de661
cmp rax, rbp
jb 0x1400de661
mov ecx, 0x30
call qword [fcn.1400394cc]
mov rdi, rax
test rax, rax
je 0x1400de69c
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.1400394cc]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1400de68b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.14001b8e0
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400de64e
call qword [case.0x1400582b9.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1400de670
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1400de65e
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1400de5a0
jmp 0x1400de6a2
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.14001f7cc]
mov rcx, rdi
call qword [fcn.14001f7cc]
jmp 0x1400de6a2
mov rcx, rdi
mov r14d, 8
call qword [fcn.14001f7cc]
jmp 0x1400de6a2
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1400de6b7
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x1400de6ef
test rbx, rbx
je 0x1400de6ea
mov rcx, qword [rbx + 0x20]
call qword [fcn.14001f7cc]
mov rcx, qword [rbx + 0x18]
call qword [fcn.14001f7cc]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.14001f7cc]
mov rbx, rdi
test rdi, rdi
jne 0x1400de6c1
mov rbx, r13
jmp 0x1400de703
test rbx, rbx
jne 0x1400de703
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 0x1400e20e0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1028
call fcn.140082d50
sub rsp, rax
call fcn.140083c14
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400e212a
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400e212a
lea rcx, [rsp + 0x20]
call qword [case.0x1400582b9.0]
add rsp, 0x1028
ret
xor eax, eax
add rsp, 0x1028
ret
Function at 0x1400e56a0
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 0x1400e56d8
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.1400e5820
cmp byte [rcx + 0xe9e], 0
je 0x1400e56f0
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400e6910
cmp byte [rcx + 0xea1], 0
je 0x1400e5791
mov r8, qword [rbx + 0x820]
test r8, r8
jne 0x1400e574b
mov r8, qword [rcx + 0xc00]
test r8, r8
jne 0x1400e572e
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.140109470
test eax, eax
je 0x1400e5781
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xead], 0
lea rcx, [rbx + 0x798]
je 0x1400e5771
lea rdx, str.PRET_STOR__s
call fcn.140109470
test eax, eax
je 0x1400e5781
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.140109470
test eax, eax
jne 0x1400e579e
mov dword [rbx + 0x850], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400e7160
add rsp, 0x20
pop rbx
ret

Function at 0x1400e57b0
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 0x1400e57d5
cmp dword [rax + 0x9f0], 0
je 0x1400e5801
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1400e5801
lea rdx, str.MDTM__s
call fcn.140109470
test eax, eax
jne 0x1400e580e
mov dword [rbx + 0x850], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400e72b0
add rsp, 0x20
pop rbx
ret

Function at 0x1400e6310
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 0x1400e637c
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.140064960
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x1400e63a1
lea rdx, str.Error_accept__ing_server_connect
call fcn.140062f80
lea eax, [rbx + 0x1f]
jmp 0x1400e641a
lea rdx, str.Connection_accepted_from_server_n
call fcn.140062e20
mov edx, 1
mov byte [rdi + 0x3f8], 0
mov rcx, rbx
mov qword [rdi + 0x260], rbx
call fcn.1400d1f10
mov byte [rdi + 0x279], 1
cmp qword [rsi + 0x728], 0
je 0x1400e6418
mov dl, 1
mov rcx, rsi
call fcn.140053e60
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.140053e60
test ebx, ebx
je 0x1400e6418
mov rcx, rdi
call fcn.1400e6220
mov eax, 0x2a
jmp 0x1400e641a
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 0x1400e71f0
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 0x1400e723d
cmp qword [rcx + 0x820], 0
je 0x1400e723d
add rcx, 0x798
lea rdx, str.REST__d
xor r8d, r8d
call fcn.140109470
test eax, eax
jne 0x1400e7247
mov dword [rbx + 0x850], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400e56a0
add rsp, 0x20
pop rbx
ret

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

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

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xeac], 0
je 0x1400e7308
cmp qword [rcx + 0x820], 0
je 0x1400e7308
cmp byte [r9 + 0xe9b], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0x840]
cmp eax, edx
je 0x1400e7308
mov rax, qword [r9 + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x20], 1
movzx edx, byte [r9 + 0xe9b]
jmp fcn.1400e5b00
jmp fcn.1400e7250
Function at 0x1400e7d10
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 0x1400e7d45
lea rdx, str.Couldnt_set_desired_mode
call fcn.140062f80
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x1400e7d5c
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.140062e20
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x1400e7d78
mov rcx, rdi
call fcn.1400e7250
jmp 0x1400e7eb0
cmp esi, 0x14
jne 0x1400e7e92
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xb98], 2
jne 0x1400e7dfa
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x1400e7dfa
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.1400e21d0
test eax, eax
jne 0x1400e7eb0
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call fcn.1400394d4
test rax, rax
je 0x1400e7def
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x1400e7dfa
mov rcx, qword [rsp + 0x50]
call qword [fcn.14001f7cc]
mov rdx, qword [rsi + 0xc00]
test rdx, rdx
jne 0x1400e7e1e
cmp byte [rsi + 0xe9d], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1401379d0]
test rbp, rbp
mov r9, r8
lea rax, [0x1401385c8]
cmovne r9, rbp
lea rcx, [0x140137b9c]
cmovne r8, rax
call fcn.1400d30a0
mov rcx, rbp
mov r14, rax
call qword [fcn.14001f7cc]
test r14, r14
jne 0x1400e7e5d
lea ebx, [r14 + 0x1b]
jmp 0x1400e7eb2
lea rcx, [rdi + 0x798]
mov r8, r14
lea rdx, [0x140137bf4]
call fcn.140109470
mov rcx, r14
mov esi, eax
call qword [fcn.14001f7cc]
test esi, esi
je 0x1400e7e86
mov ebx, esi
jmp 0x1400e7eb2
mov dword [rdi + 0x850], 0x1f
jmp 0x1400e7eb2
cmp esi, 0x15
jne 0x1400e7e9d
lea r8d, [rsi - 8]
jmp 0x1400e7ea6
cmp esi, 0x16
jne 0x1400e7eb2
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.1400e5820
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 0x1400f2f34
Capabilities:
Get common file path
Get file system object information

Disassembly:
push rbx
sub rsp, 0x500
mov ebx, ecx
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
bts ebx, 0xe
lea r8, [rsp + 0x240]
mov r9d, 0x2b8
mov dword [rsp + 0x20], ebx
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
add rsp, 0x500
pop rbx
ret

Function at 0x1400f2f7c
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x30
cmp dword [0x140166a60], 0
jne 0x1400f3086
mov esi, 1
lea rcx, [0x140166fa0]
mov dword [0x140166a60], esi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rcx, qword [0x14015f7b8]
lea edx, [rsi + 7]
mov r8d, 0x640
mov dword [0x140166a64], 0x1f4
mov dword [0x140166a68], r8d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
movsxd r8, dword [0x140166a64]
lea edx, [rsi + 7]
mov rcx, qword [0x14015f7b8]
add r8, r8
mov qword [0x140166f40], rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [0x140166a6c], 0
lea rcx, [0x140166f50]
mov qword [0x140166f38], rax
mov dword [0x140166c78], esi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r9d, r9d
xor r8d, r8d
mov edx, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
mov edx, esi
mov qword [0x140166f78], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
cmp qword [0x140166f78], 0
mov qword [0x140166f80], rax
je 0x1400f3080
test rax, rax
je 0x1400f3080
and dword [0x140166c7c], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x1400f3534]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140166f48], rax
jmp 0x1400f3086
mov dword [0x140166c7c], esi
add rsp, 0x30
pop rsi
ret
Function at 0x1400f33d4
Capabilities:
Terminate thread

Disassembly:
test rcx, rcx
je 0x1400f3499
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
test rax, rax
je 0x1400f348f
cmp dword [0x140166c7c], 1
je 0x1400f348f
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x1f]
call qword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400f348f
lea rcx, [0x140166f50]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x140166f80]
mov qword [0x140166f88], rbx
mov qword [0x140166f90], rdi
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [0x140166f78]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x140166f80]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400f3482
mov rcx, qword [0x140166f48]
xor edx, edx
mov dword [0x140166c7c], 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140166f50]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400f349c
Capabilities:
Terminate thread

Disassembly:
test rcx, rcx
je 0x1400f3530
push rbx
sub rsp, 0x20
cmp dword [0x140166c7c], 1
mov rbx, rcx
je 0x1400f352b
lea rcx, [0x140166f50]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x140166f80]
and qword [0x140166f90], 0
mov qword [0x140166f88], rbx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [0x140166f78]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x140166f80]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400f351e
mov rcx, qword [0x140166f48]
xor edx, edx
mov dword [0x140166c7c], 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140166f50]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rbx
ret

Function at 0x1400fbee0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp byte [0x1401670f4], 0
lea rdi, [0x140167100]
mov r11, rdx
mov r10, rcx
jne 0x1400fbfbc
mov qword [rsp + 0x10], rbx
xor ebx, ebx
mov byte [0x1401670f4], 1
nop word [rax + rax]
mov edx, ebx
shr edx, 1
mov ecx, edx
xor ecx, 0xedb88320
test bl, 1
cmove ecx, edx
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov r9d, eax
xor r9d, 0xedb88320
test dl, 1
cmove r9d, eax
mov ecx, r9d
shr ecx, 1
mov eax, ecx
xor eax, 0xedb88320
test r9b, 1
cmove eax, ecx
mov dword [rdi + rbx*4], eax
inc rbx
cmp rbx, 0x100
jb 0x1400fbf10
mov rbx, qword [rsp + 0x10]
not r8d
test r11, r11
je 0x1400fbfed
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r10]
lea r10, [r10 + 1]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [rdi + rcx*4]
sub r11, 1
jne 0x1400fbfd0
not r8d
mov eax, r8d
pop rdi
ret
Function at 0x1400fc000
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x1401670f4], 0
jne 0x1400fc0c5
mov byte [0x1401670f4], 1
lea r9, [0x140167100]
xor r8d, r8d
nop
mov ecx, r8d
shr ecx, 1
mov edx, ecx
xor edx, 0xedb88320
test r8b, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov ecx, edx
shr ecx, 1
mov eax, ecx
xor eax, 0xedb88320
test dl, 1
cmove eax, ecx
mov dword [r9 + r8*4], eax
inc r8
cmp r8, 0x100
jb 0x1400fc020
ret

Function at 0x1400fc0d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
cmp byte [0x140167d00], 0
lea rbx, [0x140167500]
mov r11, rdx
mov r10, rcx
jne 0x1400fc1a4
mov byte [0x140167d00], 1
xor r9d, r9d
movabs rcx, 0xc96c5795d7870f42
nop dword [rax]
nop word [rax + rax]
mov rdx, r9
mov rax, r9
shr rdx, 1
xor rdx, rcx
shr rax, 1
test r9b, 1
cmovne rax, rdx
test al, 1
je 0x1400fc133
shr rax, 1
xor rax, rcx
jmp 0x1400fc136
shr rax, 1
test al, 1
je 0x1400fc142
shr rax, 1
xor rax, rcx
jmp 0x1400fc145
shr rax, 1
test al, 1
je 0x1400fc151
shr rax, 1
xor rax, rcx
jmp 0x1400fc154
shr rax, 1
test al, 1
je 0x1400fc160
shr rax, 1
xor rax, rcx
jmp 0x1400fc163
shr rax, 1
test al, 1
je 0x1400fc16f
shr rax, 1
xor rax, rcx
jmp 0x1400fc172
shr rax, 1
test al, 1
je 0x1400fc17e
shr rax, 1
xor rax, rcx
jmp 0x1400fc181
shr rax, 1
test al, 1
je 0x1400fc18d
shr rax, 1
xor rax, rcx
jmp 0x1400fc190
shr rax, 1
mov qword [rbx + r9*8], rax
inc r9
cmp r9, 0x100
jb 0x1400fc110
not r8
test r11, r11
je 0x1400fc1cd
nop dword [rax]
movzx eax, byte [r10]
lea r10, [r10 + 1]
movzx ecx, r8b
xor rcx, rax
shr r8, 8
xor r8, qword [rbx + rcx*8]
sub r11, 1
jne 0x1400fc1b0
mov rbx, qword [rsp + 8]
not r8
mov rax, r8
ret
Function at 0x1400fee68
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.14008268c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14008268c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400fefb8
cmp rax, 0xffffffffffffffff
je 0x1400fefb8
xor edi, edi
test rbp, rbp
jle 0x1400fef63
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140033bdc
mov rbx, rax
test rax, rax
jne 0x1400feef0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400fef59
mov edx, 0x8000
mov ecx, r14d
call fcn.1400c786c
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.1400eeb3c
cmp eax, 0xffffffff
je 0x1400fef39
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400fef00
mov edx, r15d
mov ecx, r14d
call fcn.1400c786c
jmp 0x1400fef59
cmp byte [rsi + 0x38], dil
je 0x1400fef50
cmp dword [rsi + 0x34], 5
jne 0x1400fef50
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400fef59
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140033c54
jmp 0x1400fefcc
jns 0x1400fefcc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14008268c
cmp rax, 0xffffffffffffffff
jne 0x1400fef84
cmp byte [rsi + 0x30], dil
je 0x1400fefcc
mov edi, dword [rsi + 0x2c]
jmp 0x1400fefcc
mov ecx, r14d
call fcn.14009ade4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400fefcc
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 0x1400fefcc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400fefc5
mov eax, dword [rsi + 0x2c]
jmp 0x1400fefca
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14008268c
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 0x140101e10
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14015d000]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140101e5a
call fcn.140037770
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.140037750
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1400337f0
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140039230
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140101e65
lea eax, [rbx + 1]
jmp 0x140101e47
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 0x140101e45
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140101e47
Function at 0x14010fe00
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 0x14010fe30
xor eax, eax
jmp 0x14010fef3
mov rbp, rbx
cmp word [rax], si
je 0x14010fe55
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14010fe3c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14010fe38
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.1400941b8
movsxd r14, eax
test eax, eax
jne 0x14010fe93
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14010fe29
mov rcx, r14
call fcn.140033c90
mov rdi, rax
test rax, rax
jne 0x14010feac
xor ecx, ecx
call fcn.140033c54
jmp 0x14010fe88
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.1400941b8
test eax, eax
jne 0x14010fedd
mov rcx, rdi
call fcn.140033c54
jmp 0x14010fee7
xor ecx, ecx
call fcn.140033c54
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 0x14010ff10
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 0x14010ff97
mov rsi, rbx
cmp word [rax], bp
je 0x14010ff56
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14010ff40
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14010ff3c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140033c90
mov rdi, rax
test rax, rax
je 0x14010ff84
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001b8e0
mov rbp, rdi
xor ecx, ecx
call fcn.140033c54
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