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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, r8
mov dword [rsp + 0x50], 1
mov rsi, rdx
mov dword [rsp + 0x20], 4
mov rbx, rcx
lea r9, [rsp + 0x50]
mov rcx, qword [rcx + 0x220]
mov edx, 0xffff
mov r8d, 0xfffffffb
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140095803
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.1400a3910
mov rdi, rax
test rax, rax
je 0x1400957d6
mov r9, qword [rax]
mov edx, 0x402
mov rcx, rax
call qword [r9 + htons]
cmp eax, 3
jl 0x1400957d6
lea r9, str.id_p_handle_p:_setsockopt___call_for_enabling_SO_EXCLUSIVEADDRUSE_failed_with_WSAError__d
mov edx, 3
mov rax, qword [rbx + 0x220]
mov r8d, 0x402
mov r10, qword [rdi]
mov rcx, rdi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [r10]
mov ecx, esi
call fcn.140093d60
mov ecx, eax
call fcn.1400a32b0
mov eax, 0xffffffff
mov dword [rbx + 0x240], 0x200
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rbx + 0x220]
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x140095854
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.1400a3910
mov rdi, rax
test rax, rax
je 0x1400957d6
mov r8, qword [rax]
mov edx, 0x402
mov rcx, rax
call qword [rhtons + 8]
cmp eax, 2
jl 0x1400957d6
lea r9, str.id_p_handle_p:_error_binding._error__d
mov edx, 2
jmp 0x1400957b2
mov rcx, rbx
call fcn.140095e40
test eax, eax
je 0x14009587f
mov dword [rbx + 0x240], 0x200
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.1400a3910
mov rdi, rax
test rax, rax
je 0x1400958e0
mov r8, qword [rax]
mov edx, 0x402
mov rcx, rax
call qword [rhtons + 8]
cmp eax, 4
jl 0x1400958e0
movzx ecx, word [rbx + 0x108]
lea rax, [rbx + 8]
mov r10, qword [rdi]
lea r9, str.id_p_handle_p:_binding_to_tcp__s:_d
mov dword [rsp + 0x38], ecx
mov edx, 4
mov qword [rsp + 0x30], rax
mov r8d, 0x402
mov rax, qword [rbx + 0x220]
mov rcx, rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [r10]
mov rsi, qword [rsp + 0x60]
xor eax, eax
mov dword [rbx + 0x240], 0x20
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400a25a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov ebx, edx
mov rdi, r9
mov r15, rcx
mov r14, rcx
mov esi, edx
cmp edx, 0x10
jl 0x1400a26f6
mov qword [rsp + 0x40], rbp
mov esi, ebx
mov ebp, ebx
shr rbp, 4
mov eax, ebp
shl eax, 4
sub esi, eax
nop dword [rax]
xor r8d, dword [r14]
mov r10d, dword [r14 + 4]
mov edx, dword [r14 + 8]
mov r11d, dword [r14 + 0xc]
lea r14, [r14 + 0x10]
mov r9d, r8d
mov eax, r8d
shr rax, 8
movzx ecx, al
mov eax, r8d
shr rax, 0x10
movzx eax, al
mov r8d, dword [rdi + rcx*4 + 0x3800]
xor r8d, dword [rdi + rax*4 + 0x3400]
mov eax, r10d
shr rax, 8
movzx ecx, al
mov eax, r10d
shr rax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x2800]
movzx ecx, al
mov eax, edx
shr rax, 8
xor r8d, dword [rdi + rcx*4 + 0x2400]
movzx ecx, al
mov eax, edx
shr rax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x1800]
movzx ecx, al
mov eax, r11d
shr rax, 8
xor r8d, dword [rdi + rcx*4 + 0x1400]
movzx ecx, al
mov eax, r11d
shr rax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x800]
movzx ecx, al
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0x400]
xor r8d, dword [rdi + rax*4 + 0x3000]
mov eax, r10d
shr rax, 0x18
xor r8d, dword [rdi + rax*4 + 0x2000]
mov eax, edx
shr rax, 0x18
xor r8d, dword [rdi + rax*4 + 0x1000]
movzx eax, r9b
xor r8d, dword [rdi + rax*4 + 0x3c00]
movzx eax, r10b
xor r8d, dword [rdi + rax*4 + 0x2c00]
movzx eax, dl
xor r8d, dword [rdi + rax*4 + 0x1c00]
movzx eax, r11b
shr r11, 0x18
xor r8d, dword [rdi + rax*4 + 0xc00]
xor r8d, dword [rdi + r11*4]
sub rbp, 1
jne 0x1400a25e0
mov rbp, qword [rsp + 0x40]
sub ebx, esi
mov r9, rdi
movsxd rcx, ebx
mov edx, esi
add rcx, r15
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
jmp fcn.1400a2720

Function at 0x1400a2800
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov r10d, edx
mov r11, r9
mov rbp, rcx
mov rsi, rcx
mov ebx, edx
cmp edx, 8
jl 0x1400a28d2
mov qword [rsp + 0x30], rdi
mov ebx, r10d
mov edi, r10d
shr rdi, 3
lea eax, [rdi*8]
sub ebx, eax
nop
xor r8d, dword [rsi]
mov r9d, dword [rsi + 4]
lea rsi, [rsi + 8]
mov edx, r8d
mov eax, r8d
shr rax, 8
movzx ecx, al
mov eax, r8d
shr rax, 0x10
movzx eax, al
mov r8d, dword [r11 + rcx*4 + 0x1800]
xor r8d, dword [r11 + rax*4 + 0x1400]
mov eax, r9d
shr rax, 8
movzx ecx, al
mov eax, r9d
shr rax, 0x10
xor r8d, dword [r11 + rcx*4 + 0x800]
movzx ecx, al
mov eax, edx
shr rax, 0x18
xor r8d, dword [r11 + rcx*4 + 0x400]
xor r8d, dword [r11 + rax*4 + 0x1000]
movzx eax, dl
xor r8d, dword [r11 + rax*4 + 0x1c00]
movzx eax, r9b
shr r9, 0x18
xor r8d, dword [r11 + rax*4 + 0xc00]
xor r8d, dword [r11 + r9*4]
sub rdi, 1
jne 0x1400a2840
mov rdi, qword [rsp + 0x30]
sub r10d, ebx
mov r9, r11
movsxd rcx, r10d
mov edx, ebx
add rcx, rbp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
jmp fcn.1400a2720
Function at 0x1400a5f30
Capabilities:
Encode data using base64

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x28
mov rax, qword [rcx]
mov rdi, rcx
mov rbx, rdx
lea rcx, [rax + 2]
cmp rcx, rax
jb 0x1400a5f70
movabs r12, 0xaaaaaaaaaaaaaaab
mov rax, r12
mul rcx
shr rdx, 1
lea rsi, [rdx*4]
lea rcx, [rsi + 1]
cmp rcx, rdx
jae 0x1400a5f8b
mov ecx, 5
call fcn.1400a32b0
mov rax, 0xffffffffffffffff
add rsp, 0x28
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rbx]
mov qword [rsp + 0x50], 0
add rax, rcx
jb 0x1400a5f70
cmp qword [rbx + 0x10], rax
jae 0x1400a5fbd
mov ecx, 4
call fcn.1400a32b0
mov rax, 0xffffffffffffffff
add rsp, 0x28
pop r12
pop rdi
pop rsi
pop rbx
ret
call fcn.1400ae820
mov r10, qword [rdi]
test al, al
je 0x1400a5ffd
mov rdx, qword [rbx + 8]
mov r8, r10
add rdx, qword [rbx]
mov rcx, qword [rdi + 8]
call fcn.1400af360
mov rdx, qword [rbx]
mov rcx, qword [rbx + 8]
add rcx, rdx
lea rax, [rdx + rsi]
mov qword [rbx], rax
xor eax, eax
mov byte [rcx + rsi], 0
add rsp, 0x28
pop r12
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x58], rbp
lea rcx, [r10 + 2]
mov qword [rsp + 0x60], r14
mov rax, r12
mov r14, qword [rbx]
mov rbp, r10
mul rcx
mov qword [rsp + 0x20], r15
mov rax, r12
mov r15, rdx
mul r10
shr r15, 1
shr rdx, 1
lea rax, [rdx + rdx*2]
sub rbp, rax
test r10, r10
je 0x1400a60e8
mov rdi, qword [rdi + 8]
lea rcx, [r10 - 1]
mov r11, qword [rbx + 8]
mov rax, r12
mul rcx
mov r9, 0xffffffffffffffff
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
shr rdx, 1
lea r8, [rdi + 2]
add r11, r14
sub r9, rdi
inc rdx
nop dword [rax + rax]
movzx eax, byte [r8 - 2]
lea rcx, [r9 + r8]
shl eax, 8
cmp rcx, r10
jae 0x1400a6088
movzx ecx, byte [r8 - 1]
or eax, ecx
mov rcx, r8
shl eax, 8
sub rcx, rdi
cmp rcx, r10
jae 0x1400a609c
movzx ecx, byte [r8]
or eax, ecx
mov ecx, eax
add r8, 3
shr rax, 0x12
movzx eax, byte [rax + r12]
mov byte [r11], al
mov eax, ecx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r12]
mov byte [r11 + 1], al
mov eax, ecx
shr rax, 6
and ecx, 0x3f
and eax, 0x3f
movzx eax, byte [rax + r12]
mov byte [r11 + 2], al
movzx eax, byte [rcx + r12]
mov byte [r11 + 3], al
add r11, 4
sub rdx, 1
jne 0x1400a6070
test rbp, rbp
je 0x1400a6105
mov rax, qword [rbx + 8]
lea rcx, [r14 + r15*4]
mov byte [rcx + rax - 1], 0x3d
cmp rbp, 1
jne 0x1400a6105
mov byte [rcx + rax - 2], 0x3d
mov rax, qword [rbx + 8]
lea rcx, [r14 + rsi]
mov r15, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
mov byte [rcx + rax], 0
lea rax, [r14 + rsi]
mov r14, qword [rsp + 0x60]
mov qword [rbx], rax
xor eax, eax
add rsp, 0x28
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400ae3c0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
test rcx, rcx
je 0x1400ae433
call fcn.1400d1a20
cmp eax, 0xffffffff
je 0x1400ae433
mov ecx, eax
call fcn.1400d2220
cmp rax, 0xffffffffffffffff
jne 0x1400ae3f7
call fcn.1400d17e0
mov ecx, dword [rax]
call fcn.1400a33f0
add rsp, 0x20
pop rbx
ret
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400ae41e
mov rax, qword [rsp + 0x30]
test rax, rax
js 0x1400ae41e
mov qword [rbx], rax
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov ecx, 0x2e
call fcn.1400a32b0
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov ecx, 0x32
call fcn.1400a32b0
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x1400b18d0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x10]
lea rdx, [0x1400b19c0]
sub rdi, qword [rcx]
mov rbx, rcx
lea rcx, [0x140178008]
xor r8d, r8d
call fcn.1400ad980
mov rax, qword [rbx + 0x10]
mov rbp, qword [rbx]
sub rax, rbp
cmp rax, rdi
jae 0x1400b192d
mov ecx, 4
call fcn.1400a32b0
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], r14
test rdi, rdi
je 0x1400b1983
mov rcx, rbp
mov r14d, 0xffffffff
nop word [rax + rax]
mov rdx, qword [rbx + 8]
cmp rdi, r14
mov esi, r14d
cmovb esi, edi
add rdx, rcx
mov rcx, qword [0x140178000]
mov r8d, esi
xor r9d, r9d
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x1400b199f
mov eax, esi
add qword [rbx], rax
mov rcx, qword [rbx]
sub rdi, rax
jne 0x1400b1950
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x23
mov qword [rbx], rbp
call fcn.1400a32b0
mov eax, 0xffffffff
jmp 0x1400b1985
Function at 0x1400ba2e4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ba32e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ba32e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ba32e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ba32e
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ba32e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400ba330
xor al, al
add rsp, 0x28
ret

Function at 0x1400c532c
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.1400b9ba0
sub rsp, rax
mov rax, qword [0x14016f8a0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400d1a20
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400c537b
mov rax, rbp
jmp 0x1400c5483
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 + 0x179680]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400de6f8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x179680]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400c547f
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 0x1400c547f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400de6f8
test rax, rax
js 0x1400c547f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400c547f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400c5471
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400c5471
cmp byte [rcx], 0xd
jne 0x1400c5457
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400c5466
cmp byte [rcx + 1], 0xa
jne 0x1400c5466
inc rcx
jmp 0x1400c5466
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x16fca0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400c5439
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400c5483
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400b91a0
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 0x1400cb900
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 0x1400cb937
call fcn.1400d17e0
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1400bfe34
xor eax, eax
jmp 0x1400cb9c5
mov rdx, r9
mov rcx, r8
call fcn.1400cb894
mov rbx, rax
test rax, rax
je 0x1400cb9c2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400cb7c0]
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 0x1400cb9af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400d1754
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400cb996
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400cb9a5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400d957c
jmp 0x1400cb9c2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400cb9bf
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 0x1400d10c0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400d0f27
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d0f27
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d0f27
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d0f27
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d0f27
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d0f27
cmp dword [rcx + 0xf8], 0
je 0x1400d0f27
mov ecx, ebx
call fcn.1400d0fd8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400d0db4
nop
cmp dword [rbp + 0x20], 0
je 0x1400d0f75
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400d0f80
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400d0eb8
Function at 0x1400dd950
Capabilities:
Get file size

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

Function at 0x1400dda98
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, [0x140179680]
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 0x1400ddaef
cmp word [rdx], r13w
jne 0x1400ddaef
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400ddaf4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400ddc19
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400ddc3a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400ddb2d
mov rdx, r9
mov word [rbx], cx
jmp 0x1400ddb54
cmp r9, r8
jae 0x1400ddb64
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 0x1400ddb0e
jmp 0x1400ddc19
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 0x1400ddc0e
cmp dword [rsp + 0x80], esi
je 0x1400ddc0e
lea r8, [0x140179680]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400ddbe6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400ddbb6
mov word [rbx], r13w
jmp 0x1400ddc16
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 0x1400ddbc3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400ddc16
cmp word [rsp + 0x70], r13w
jne 0x1400ddbf3
cmp rbx, r14
je 0x1400ddbb0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400de700
cmp word [rsp + 0x70], r13w
je 0x1400ddc19
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, [0x140179680]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400ddc13
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400ddc19
Function at 0x1400e4a48
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 0x1400e4a78
xor eax, eax
jmp 0x1400e4b3b
mov rbp, rbx
cmp word [rax], si
je 0x1400e4a9d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400e4a84
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400e4a80
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.1400e02a8
movsxd r14, eax
test eax, eax
jne 0x1400e4adb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400e4a71
mov rcx, r14
call fcn.1400d95b8
mov rdi, rax
test rax, rax
jne 0x1400e4af4
xor ecx, ecx
call fcn.1400d957c
jmp 0x1400e4ad0
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.1400e02a8
test eax, eax
jne 0x1400e4b25
mov rcx, rdi
call fcn.1400d957c
jmp 0x1400e4b2f
xor ecx, ecx
call fcn.1400d957c
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 0x1400e4b58
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 0x1400e4bdf
mov rsi, rbx
cmp word [rax], bp
je 0x1400e4b9e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400e4b88
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400e4b84
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400d95b8
mov rdi, rax
test rax, rax
je 0x1400e4bcc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400bb410
mov rbp, rdi
xor ecx, ecx
call fcn.1400d957c
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 0x1400e7118
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.1400d86a0
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 0x1400e71b9
cmp ebx, dword [rsp + 0x30]
je 0x1400e71b2
test esi, esi
je 0x1400e71b2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400e718d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400e719a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400e7177
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400e719e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400e71bb
mov eax, 1
jmp 0x1400e71bb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400e9914
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.1400de700
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400de700
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400e9a64
cmp rax, 0xffffffffffffffff
je 0x1400e9a64
xor edi, edi
test rbp, rbp
jle 0x1400e9a0f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400d9504
mov rbx, rax
test rax, rax
jne 0x1400e999c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400e9a05
mov edx, 0x8000
mov ecx, r14d
call fcn.1400d6254
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.1400dd3e8
cmp eax, 0xffffffff
je 0x1400e99e5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400e99ac
mov edx, r15d
mov ecx, r14d
call fcn.1400d6254
jmp 0x1400e9a05
cmp byte [rsi + 0x38], dil
je 0x1400e99fc
cmp dword [rsi + 0x34], 5
jne 0x1400e99fc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400e9a05
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400d957c
jmp 0x1400e9a78
jns 0x1400e9a78
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400de700
cmp rax, 0xffffffffffffffff
jne 0x1400e9a30
cmp byte [rsi + 0x30], dil
je 0x1400e9a78
mov edi, dword [rsi + 0x2c]
jmp 0x1400e9a78
mov ecx, r14d
call fcn.1400d2220
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400e9a78
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 0x1400e9a78
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400e9a71
mov eax, dword [rsi + 0x2c]
jmp 0x1400e9a76
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400de700
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