joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140251300
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140398b38]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x494], ebx
je 0x14025140d
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
lea r8d, [rbx + 8]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x140251380
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
lea rdx, str.setsockopt_SO_KEEPALIVE_1_failed_with_error__d_n
lea ecx, [rbx + 1]
call fcn.14023ac50
lea eax, [rbx + 1]
jmp 0x1402514c6
imul eax, dword [rsi + 0x494], 0x3e8
lea r8, [rsp + 0x60]
mov qword [rsp + 0x40], rbx
mov r9d, listen
mov qword [rsp + 0x38], rbx
mov edx, 0x98000004
mov rcx, rdi
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x64], eax
imul eax, dword [rsi + 0x49c], 0x3e8
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14025140d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, dword [rsp + 0x68]
lea rdx, str.WSAIoctl_SIO_KEEPALIVE_VALS_1__lu__lu_failed_with_error__d_n
mov r8d, dword [rsp + 0x64]
mov ecx, 1
mov dword [rsp + 0x20], eax
call fcn.14023ac50
mov eax, 1
jmp 0x1402514c6
lea rcx, [0x1403449dc]
mov dword [rsp + 0x50], 1
call qword [sym.imp.WS2_32.dll_getprotobyname]
test rax, rax
jne 0x140251448
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.getprotobyname__TCP___failed_with_error__falling_back_to_6__d_n
mov ecx, 2
mov r8d, eax
call fcn.14023ac50
mov edx, 6
jmp 0x14025144c
movsx edx, word [rax + 0x10]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140251486
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.setsockopt_TCP_NODELAY_1_failed_with_error__d_n
mov ecx, 2
mov r8d, eax
call fcn.14023ac50
lea r8, [rsp + 0x54]
mov dword [rsp + 0x54], 1
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
setne bl
test eax, eax
je 0x1402514c4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.ioctlsocket_FIONBIO_1_failed_with_error__d_n
mov ecx, 1
mov r8d, eax
call fcn.14023ac50
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14025e930
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140255960
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebp, dword [rsp + 0x50]
xor edi, edi
mov rsi, rcx
test r8d, r8d
je 0x140255a58
lea ebx, [rdi + 4]
nop dword [rax]
xor r10d, r10d
xor eax, eax
test r8d, r8d
je 0x1402559a8
movzx ecx, byte [rdx]
inc r10d
inc rdx
dec r8d
jmp 0x1402559b4
cmp rax, 3
jae 0x140255a81
xor cl, cl
mov byte [rsp + rax + 0x40], cl
inc rax
cmp rax, 3
jl 0x140255995
cmp ebx, ebp
jge 0x140255a5f
movzx ecx, byte [rsp + 0x40]
movzx r11d, byte [rsp + 0x41]
mov eax, ecx
shr rax, 2
and ecx, 3
shl ecx, 4
movzx eax, byte [rax + rsi]
mov byte [r9], al
mov eax, r11d
shr rax, 4
or rcx, rax
movzx eax, byte [rcx + rsi]
mov byte [r9 + 1], al
cmp r10d, 1
jle 0x140255a38
and r11d, 0xf
shl r11d, 2
mov ecx, r11d
movzx r11d, byte [rsp + 0x42]
mov eax, r11d
shr rax, 6
or rcx, rax
movzx eax, byte [rcx + rsi]
mov byte [r9 + 2], al
add r9, 3
cmp r10d, 2
jle 0x140255a41
mov eax, r11d
and eax, 0x3f
movzx ecx, byte [rax + rsi]
jmp 0x140255a43
mov byte [r9 + 2], 0x3d
add r9, 3
mov cl, 0x3d
mov byte [r9], cl
add edi, 4
inc r9
add ebx, 4
test r8d, r8d
jne 0x140255990
lea eax, [rdi + 1]
cmp eax, ebp
jl 0x140255a66
mov eax, 0xffffffff
jmp 0x140255a6c
mov byte [r9], 0
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
call fcn.14025e688
int3
Function at 0x140256b10
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsx rax, byte [rcx + 0x4ad]
mov rbx, rcx
mov rdi, rdx
mov rdx, qword [rbx]
lea rcx, [rax + rax*8]
mov rax, qword [rbx + 8]
shl rcx, 5
cmp dword [rax + 0x48c], 0
jne 0x140256b4d
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp dword [rdx + 0xd0c], 4
mov rax, qword [rcx + rdx + 0x248]
jl 0x140256be6
mov word [rax], 0x205
xor r9d, r9d
mov byte [rax + 2], 2
add rax, 3
mov byte [rax], 0
sub eax, dword [rcx + rdx + 0x248]
mov rdx, qword [rcx + rdx + 0x248]
mov rcx, qword [rbx + 0x470]
lea r8d, [rax + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140256bb3
lea rax, str.socks_write_failed
mov qword [rdi], rax
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx]
mov edx, reloc.WS2_32.dll_send
mov rcx, rbx
mov r8d, dword [rax + 0xd08]
call fcn.14023fd90
mov eax, 0x205
mov word [rbx + 0x478], ax
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
lea rax, str.socks_msg_too_large
mov qword [rdi], rax
mov eax, 0xffffffff
add rsp, 0x20
pop rdi
ret
Function at 0x140259250
Capabilities:
Hash data using sha1

Disassembly:
push rbp
push rbx
push rsi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x140398b38]
xor rax, rsp
mov qword [rbp + 0x27], rax
xorps xmm0, xmm0
mov dword [rbp - 0x49], 0x67452301
xor eax, eax
mov dword [rbp - 0x45], 0xefcdab89
xor ebx, ebx
mov dword [rbp + 0x1b], eax
mov dword [rbp - 0x41], 0x98badcfe
mov r14, r8
mov dword [rbp - 0x3d], 0x10325476
mov rsi, rdx
mov dword [rbp - 0x39], 0xc3d2e1f0
mov r15, rcx
movups xmmword [rbp - 0x35], xmm0
movups xmmword [rbp - 0x25], xmm0
movups xmmword [rbp - 0x15], xmm0
movups xmmword [rbp - 5], xmm0
movups xmmword [rbp + 0xb], xmm0
test rdx, rdx
je 0x140259336
mov qword [rsp + 0xe8], rdi
nop dword [rax]
movzx ecx, byte [rbp + 0x17]
lea rdx, [rbx + r15]
and ecx, 0x3f
mov edi, 0x40
sub rdi, rcx
mov rax, rsi
sub rax, rbx
cmp rdi, rax
cmovae rdi, rax
lea rax, [rbp - 0x29]
add rcx, rax
mov r8, rdi
call fcn.140260c10
mov rax, qword [rbp - 0x31]
movzx edx, dil
add dl, byte [rbp + 0x17]
and dl, 0x3f
mov byte [rbp + 0x17], dl
lea rcx, [rax + rdi*8]
mov qword [rbp - 0x31], rcx
test dl, 0x3f
jne 0x140259326
lea rcx, [rbp - 0x49]
call fcn.1402595f0
add rbx, rdi
cmp rbx, rsi
jb 0x1402592d0
mov rdi, qword [rsp + 0xe8]
lea rcx, [rbp - 0x49]
call fcn.140259400
movzx eax, byte [rbp - 0x46]
movzx ecx, byte [rbp - 0x3b]
mov byte [r14], al
movzx eax, byte [rbp - 0x47]
mov byte [r14 + 1], al
movzx eax, byte [rbp - 0x48]
mov byte [r14 + 2], al
movzx eax, byte [rbp - 0x49]
mov byte [r14 + 3], al
movzx eax, byte [rbp - 0x42]
mov byte [r14 + 4], al
movzx eax, byte [rbp - 0x43]
mov byte [r14 + 5], al
movzx eax, byte [rbp - 0x44]
mov byte [r14 + 6], al
movzx eax, byte [rbp - 0x45]
mov byte [r14 + 0xd], cl
movzx ecx, byte [rbp - 0x3c]
mov byte [r14 + 7], al
movzx eax, byte [rbp - 0x3e]
mov byte [r14 + 0xe], cl
movzx ecx, byte [rbp - 0x3d]
mov byte [r14 + 8], al
movzx eax, byte [rbp - 0x3f]
mov byte [r14 + 0xf], cl
movzx ecx, byte [rbp - 0x36]
mov byte [r14 + 9], al
movzx eax, byte [rbp - 0x40]
mov byte [r14 + 0x10], cl
movzx ecx, byte [rbp - 0x37]
mov byte [r14 + 0xa], al
movzx eax, byte [rbp - 0x41]
mov byte [r14 + 0x11], cl
movzx ecx, byte [rbp - 0x38]
mov byte [r14 + 0xb], al
movzx eax, byte [rbp - 0x3a]
mov byte [r14 + 0x12], cl
movzx ecx, byte [rbp - 0x39]
mov byte [r14 + 0xc], al
mov rax, r14
mov byte [r14 + 0x13], cl
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14025e930
add rsp, 0xa0
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret
Function at 0x14027ec04
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14027ec3b
call fcn.14027367c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14026d234
xor eax, eax
jmp 0x14027ecc9
mov rdx, r9
mov rcx, r8
call fcn.14027eba0
mov rbx, rax
test rax, rax
je 0x14027ecc6
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14027eacc]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14027ecb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1402735f0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14027ec9a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14027eca9
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14028f620
jmp 0x14027ecc6
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14027ecc3
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14027f7d4
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.14025ecc0
sub rsp, rax
mov rax, qword [0x140398b38]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14028d378
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14027f823
mov rax, rbp
jmp 0x14027f92b
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 + 0x412160]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140285c44
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x412160]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14027f927
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 0x14027f927
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140285c44
test rax, rax
js 0x14027f927
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14027f927
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14027f919
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14027f919
cmp byte [rcx], 0xd
jne 0x14027f8ff
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14027f90e
cmp byte [rcx + 1], 0xa
jne 0x14027f90e
inc rcx
jmp 0x14027f90e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x398f40]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14027f8e1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14027f92b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14025e930
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 0x1402812f8
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 [0x140398b38]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14034c300]
mov rbp, rcx
call fcn.140283a14
xor edi, edi
test rax, rax
je 0x1402813de
mov ebx, edi
call fcn.14027367c
mov r14d, dword [rax]
call fcn.14027367c
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140294664
mov rsi, rax
test rax, rax
je 0x14028136f
call fcn.14027367c
mov dword [rax], r14d
jmp 0x140281399
call fcn.14027367c
cmp dword [rax], 0x22
jne 0x1402813d6
call fcn.14027367c
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140294664
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1402813d6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14028139d
cmp rax, 3
je 0x1402813b8
mov rcx, rsi
call fcn.140281254
test al, al
je 0x1402813c9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1402813c9
mov dil, 1
mov rcx, rbx
call fcn.140273908
mov al, dil
jmp 0x1402813e0
mov rcx, rbx
call fcn.140273908
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14025e930
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 0x140282484
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1402824a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1402735f0
or eax, 0xffffffff
jmp 0x1402824a6
xor eax, eax
add rsp, 0x28
ret

Function at 0x140287660
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14028745c
Function at 0x140287924
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.140274764
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x14028796f
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x1402879a3
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1402879a3
call fcn.140292440
xor ebx, ebx
test eax, eax
jne 0x140287991
cmp byte [rbp - 0x48], bl
je 0x14028798a
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x1402879a3
cmp byte [rbp - 0x48], bl
je 0x1402879a1
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, ebx
mov r9d, edi
mov qword [rbp - 0x30], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x28], rbx
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov byte [rbp - 8], bl
call fcn.140280b50
mov esi, eax
test eax, eax
je 0x1402879df
call fcn.14027367c
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x140287a38
mov r9d, edi
mov qword [rbp - 0x60], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x58], rbx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x50], rbx
mov rcx, r14
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], bl
call fcn.140280b50
mov edi, eax
test eax, eax
je 0x140287a1b
call fcn.14027367c
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x140287a2a
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.1402824b4
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x140287a38
mov rcx, qword [rbp - 0x50]
call fcn.14028f620
cmp byte [rbp - 8], bl
je 0x140287a46
mov rcx, qword [rbp - 0x20]
call fcn.14028f620
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14028d48c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140412160]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14028d4e3
cmp word [rdx], r13w
jne 0x14028d4e3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14028d4e8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14028d60d
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14028d62e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14028d521
mov rdx, r9
mov word [rbx], cx
jmp 0x14028d548
cmp r9, r8
jae 0x14028d558
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14028d502
jmp 0x14028d60d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14028d602
cmp dword [rsp + 0x80], esi
je 0x14028d602
lea r8, [0x140412160]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14028d5da
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14028d5aa
mov word [rbx], r13w
jmp 0x14028d60a
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14028d5b7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14028d60a
cmp word [rsp + 0x70], r13w
jne 0x14028d5e7
cmp rbx, r14
je 0x14028d5a4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140285c4c
cmp word [rsp + 0x70], r13w
je 0x14028d60d
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140412160]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14028d607
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14028d60d
Function at 0x140293e58
Capabilities:
Get file size

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

Function at 0x14029680c
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.140285c4c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140285c4c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14029695c
cmp rax, 0xffffffffffffffff
je 0x14029695c
xor edi, edi
test rbp, rbp
jle 0x140296907
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140291b44
mov rbx, rax
test rax, rax
jne 0x140296894
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1402968fd
mov edx, 0x8000
mov ecx, r14d
call fcn.14028b2b8
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.14028e844
cmp eax, 0xffffffff
je 0x1402968dd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1402968a4
mov edx, r15d
mov ecx, r14d
call fcn.14028b2b8
jmp 0x1402968fd
cmp byte [rsi + 0x38], dil
je 0x1402968f4
cmp dword [rsi + 0x34], 5
jne 0x1402968f4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1402968fd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14028f620
jmp 0x140296970
jns 0x140296970
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140285c4c
cmp rax, 0xffffffffffffffff
jne 0x140296928
cmp byte [rsi + 0x30], dil
je 0x140296970
mov edi, dword [rsi + 0x2c]
jmp 0x140296970
mov ecx, r14d
call fcn.140294e10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140296970
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 0x140296970
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140296969
mov eax, dword [rsi + 0x2c]
jmp 0x14029696e
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140285c4c
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 0x1402988b8
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 0x1402988e8
xor eax, eax
jmp 0x1402989ab
mov rbp, rbx
cmp word [rax], si
je 0x14029890d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1402988f4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1402988f0
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.140296540
movsxd r14, eax
test eax, eax
jne 0x14029894b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1402988e1
mov rcx, r14
call fcn.14028f65c
mov rdi, rax
test rax, rax
jne 0x140298964
xor ecx, ecx
call fcn.14028f620
jmp 0x140298940
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.140296540
test eax, eax
jne 0x140298995
mov rcx, rdi
call fcn.14028f620
jmp 0x14029899f
xor ecx, ecx
call fcn.14028f620
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 0x1402989c8
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 0x140298a4f
mov rsi, rbx
cmp word [rax], bp
je 0x140298a0e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1402989f8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1402989f4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14028f65c
mov rdi, rax
test rax, rax
je 0x140298a3c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140260c10
mov rbp, rdi
xor ecx, ecx
call fcn.14028f620
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
Function at 0x14029b6b8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14028f2c0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14029b759
cmp ebx, dword [rsp + 0x30]
je 0x14029b752
test esi, esi
je 0x14029b752
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14029b72d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14029b73a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14029b717
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14029b73e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14029b75b
mov eax, 1
jmp 0x14029b75b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14029dbf4
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140398b38]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14029dc3e
call fcn.14027365c
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14027367c
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14026d234
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14025e930
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14029dc49
lea eax, [rbx + 1]
jmp 0x14029dc2b
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 0x14029dc29
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14029dc2b