joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140153420
Capabilities:
Encode data using xor

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x14022b2b0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov eax, dword [rcx + 0x10]
mov qword [rbp + 7], r8
test eax, eax
jne 0x140153456
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
jmp 0x14015359b
cmp eax, 1
jne 0x140153480
mov rcx, qword [rcx + 8]
xor r8d, r8d
mov qword [rsp + 0x28], r9
lea r9, [rbp + 7]
mov qword [rsp + 0x20], 8
call sub.ntdll.dll_NtQueryVirtualMemory
cdqe
jmp 0x14015359b
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0xa0], rdi
cmp eax, 2
jne 0x140153589
mov eax, dword [rcx]
xor edi, edi
mov dword [rbp + 0xf], eax
mov eax, edi
mov qword [rbp + 0x17], rdx
mov edx, 0x761c
mov dword [rbp + 0x2f], edi
mov word [rbp - 1], di
mov qword [rbp + 0x1f], r8
mov qword [rbp + 0x27], r9
mov dword [rbp - 0x19], 0x89b989b8
mov dword [rbp - 0x15], 0x89bb89c8
mov dword [rbp - 0x11], 0x898d8999
mov dword [rbp - 0xd], 0x89d289de
mov dword [rbp - 9], 0x89d889d9
mov dword [rbp - 5], 0x89db89d7
mov byte [rbp + 1], 1
nop dword [rax + rax]
movzx ecx, ax
sub cx, dx
xor word [rbp + rax*2 - 0x19], cx
inc rax
cmp rax, 0xc
jb 0x1401534f0
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rcx, [rbp - 0x19]
xor edx, edx
mov byte [rbp + 1], dil
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140153589
mov qword [rsp + 0x38], rdi
lea rax, [rbp + 0x2f]
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0xf]
lea rax, [rbp + 0xf]
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov r9d, reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov edx, 0x22241c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x1f]
mov rcx, qword [rax]
mov rax, qword [rbp + 7]
mov qword [rax], rcx
mov rax, qword [rbp + 0x27]
jmp 0x14015358b
xor eax, eax
mov rbx, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xa0]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140154010
add rsp, 0xb0
pop rbp
ret

Function at 0x1401535d0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x2f], 0
je 0x1401535f3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1c]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x2e
jb 0x1401535e0
mov byte [rcx + 0x2f], 0
mov rax, rcx
ret

Function at 0x140153600
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x37], 0
je 0x140153623
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1c]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x36
jb 0x140153610
mov byte [rcx + 0x37], 0
mov rax, rcx
ret
Function at 0x140153710
Capabilities:
Contain obfuscated stackstrings
Terminate process

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14022b2b0]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov dword [rcx], edx
mov dword [rcx + 0x10], r8d
cmp r8d, 2
jne 0x140153901
mov qword [rsp + 0xa8], rbx
xor ebx, ebx
mov qword [rbp + 0x2f], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x2f]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14015378f
mov rcx, qword [rbp + 0x2f]
lea rax, [rbp + 0x47]
lea r9d, [rbx + 4]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x4b]
mov dword [rbp + 0x47], 4
lea edx, [rbx + 0x14]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne ebx, dword [rbp + 0x4b]
mov rcx, qword [rbp + 0x2f]
test rcx, rcx
je 0x14015379e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x140153827
movdqa xmm0, xmmword [0x14019fbc0]
lea rcx, [rbp + 0x37]
movdqa xmm1, xmmword [0x14019fb90]
movdqu xmmword [rbp - 9], xmm0
mov dword [rbp + 0x37], 0x869284a2
movdqu xmmword [rbp + 7], xmm1
mov dword [rbp + 0x3b], 0x99afc984
mov dword [rbp + 0x3f], 0x9c829e
mov byte [rbp + 0x43], 1
mov dword [rbp + 0x17], 0x276a606a
mov dword [rbp + 0x1b], 0x6e6e6665
mov dword [rbp + 0x1f], 0x7a7a7e2c
mov dword [rbp + 0x23], 0x1007776
call fcn.1400150a0
lea rcx, [rbp - 9]
mov rbx, rax
call fcn.1401535d0
mov rdx, rax
xor r9d, r9d
mov r8, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, dword [0x14023b280]
mov rax, qword gs:[0x58]
mov edx, 8
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x14023ac70], ecx
jg 0x140153916
xor r9d, r9d
mov qword [rbp + 0x37], 8
lea rdx, [rbp + 0x37]
lea r8d, [r9 + 8]
lea ecx, [r9 + 0x67]
call qword [0x14023ac68]
test eax, eax
js 0x140153879
test byte [rbp + 0x3b], 1
jne 0x1401538f9
movdqa xmm0, xmmword [0x14019fbb0]
lea rcx, [rbp + 0x37]
movdqa xmm1, xmmword [0x14019fba0]
movdqu xmmword [rbp - 9], xmm0
mov dword [rbp + 0x37], 0x869284a2
movdqa xmm0, xmmword [str.k_jhimbghtv3]
movdqu xmmword [rbp + 0x17], xmm0
mov dword [rbp + 0x3b], 0x99afc984
mov dword [rbp + 0x3f], 0x9c829e
mov byte [rbp + 0x43], 1
movdqu xmmword [rbp + 7], xmm1
mov dword [rbp + 0x27], 0x617f6770
mov dword [rbp + 0x2b], 0x1006b7d
call fcn.1400150a0
lea rcx, [rbp - 9]
mov rbx, rax
call fcn.140153600
mov rdx, rax
xor r9d, r9d
mov r8, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [rsp + 0xa8]
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140154010
add rsp, 0x90
pop rbp
ret
lea rcx, [0x14023ac70]
call fcn.1401541b8
cmp dword [0x14023ac70], 0xffffffff
jne 0x14015384e
lea rcx, [0x140206270]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x14019fb58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x14023ac70]
mov qword [0x14023ac68], rax
call fcn.140154158
jmp 0x14015384e
Function at 0x140153970
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x98
mov rax, qword [0x14022b2b0]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov eax, dword [rcx + 0x10]
mov rdi, r9
mov r15, qword [rbp + 0x7f]
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test eax, eax
jne 0x1401539bc
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [rbx + 0x10]
cmp eax, 1
jne 0x1401539db
mov rcx, qword [rbx + 8]
mov r9d, edi
mov r8, r14
mov qword [rsp + 0x20], r15
mov rdx, rsi
call sub.ntdll.dll_NtReadVirtualMemory
mov eax, dword [rbx + 0x10]
cmp eax, 2
jne 0x140153acd
mov eax, dword [rbx]
mov edx, 0x761c
xor eax, 0x8fea0644
mov dword [rbp - 0x31], 0x89b989b8
mov dword [rbp - 9], eax
mov eax, 0xfcb3e314
xor rsi, rax
mov dword [rbp - 0x2d], 0x89bb89c8
mov rax, rdi
mov qword [rbp - 1], rsi
xor rax, 0x544becbe
mov dword [rbp - 0x29], 0x898d8999
xor esi, esi
mov qword [rbp + 7], rax
mov dword [rbp - 0x11], esi
mov eax, esi
mov word [rbp - 0x19], si
mov dword [rbp - 0x25], 0x89d289de
mov dword [rbp - 0x21], 0x89d889d9
mov dword [rbp - 0x1d], 0x89db89d7
mov byte [rbp - 0x17], 1
nop word [rax + rax]
movzx ecx, ax
sub cx, dx
xor word [rbp + rax*2 - 0x31], cx
inc rax
cmp rax, 0xc
jb 0x140153a50
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
lea rcx, [rbp - 0x31]
xor edx, edx
mov byte [rbp - 0x17], sil
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140153acd
mov qword [rsp + 0x38], rsi
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 9]
mov dword [rsp + 0x28], edi
mov r9d, Ordinal_27
mov edx, 0x22240e
mov qword [rsp + 0x20], r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140154010
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140153e70
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x98
mov rax, qword [0x14022b2b0]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov eax, dword [rcx + 0x10]
mov rdi, r9
mov r15, qword [rbp + 0x7f]
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test eax, eax
jne 0x140153ebc
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [rbx + 0x10]
cmp eax, 1
jne 0x140153edb
mov rcx, qword [rbx + 8]
mov r9d, edi
mov r8, r14
mov qword [rsp + 0x20], r15
mov rdx, rsi
call sub.ntdll.dll_NtWriteVirtualMemory
mov eax, dword [rbx + 0x10]
cmp eax, 2
jne 0x140153fcd
mov eax, dword [rbx]
mov edx, 0x761c
xor eax, 0x8fea0644
mov dword [rbp - 0x31], 0x89b989b8
mov dword [rbp - 9], eax
mov eax, 0xfcb3e314
xor rsi, rax
mov dword [rbp - 0x2d], 0x89bb89c8
mov rax, rdi
mov qword [rbp - 1], rsi
xor rax, 0x544becbe
mov dword [rbp - 0x29], 0x898d8999
xor esi, esi
mov qword [rbp + 7], rax
mov dword [rbp - 0x11], esi
mov eax, esi
mov word [rbp - 0x19], si
mov dword [rbp - 0x25], 0x89d289de
mov dword [rbp - 0x21], 0x89d889d9
mov dword [rbp - 0x1d], 0x89db89d7
mov byte [rbp - 0x17], 1
nop word [rax + rax]
movzx ecx, ax
sub cx, dx
xor word [rbp + rax*2 - 0x31], cx
inc rax
cmp rax, 0xc
jb 0x140153f50
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
lea rcx, [rbp - 0x31]
xor edx, edx
mov byte [rbp - 0x17], sil
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140153fcd
mov qword [rsp + 0x38], rsi
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 9]
mov dword [rsp + 0x28], edi
mov r9d, Ordinal_27
mov edx, 0x22240a
mov qword [rsp + 0x20], r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140154010
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400027d0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x200
xor esi, esi
mov ecx, 0x202
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140002815
lea rdx, str.WSAStartup_failed.
lea rcx, [0x14003f6a0]
call fcn.140005aa0
mov rcx, rax
call fcn.140005fe0
jmp 0x1400028b0
xor r8d, r8d
lea edx, [r8 + 1]
mov ebx, 2
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000284f
lea rdx, str.Socket_creation_failed.
lea rcx, [0x14003f6a0]
call fcn.140005aa0
mov rcx, rax
call fcn.140005fe0
jmp 0x1400028aa
mov qword [rsp + 0x48], rsi
mov word [rsp + 0x40], bx
mov dword [rsp + 0x44], esi
mov ecx, 0x1f90
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x42], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1400028c3
lea rdx, str.Socket_binding_failed.
lea rcx, [0x14003f6a0]
call fcn.140005aa0
mov rcx, rax
call fcn.140005fe0
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rbx, qword [rsp + 0x230]
add rsp, 0x200
pop rdi
pop rsi
pop rbp
ret
mov edx, 0x7fffffff
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1400028df
lea rdx, str.Listening_failed.
jmp 0x14000288d
lea rdx, str.Server_is_running_on_port
lea rcx, [0x14003f500]
call fcn.140005aa0
mov rcx, rax
call fcn.1400034f0
mov rcx, rax
lea rdx, [0x14003862c]
call fcn.140005aa0
mov rcx, rax
call fcn.140005fe0
lea rbp, [0x140002060]
nop dword [rax + rax]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002920
mov ecx, reloc.WS2_32.dll_recv
call fcn.14000a17c
mov qword [rax], rbx
mov qword [rax + 8], rbp
mov qword [rsp + 0x228], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x140007c70]
xor edx, edx
xor ecx, ecx
call fcn.140010bc0
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400029b4
cmp dword [rsp + 0x38], 0
je 0x1400029a9
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.140009d58
test eax, eax
jne 0x1400029a9
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
jmp 0x140002920
mov ecx, 1
call fcn.140007ee0
nop
mov dword [rsp + 0x38], esi
mov ecx, 6
call fcn.140007ee0
int3
Function at 0x1400090ec
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000911a
xor eax, eax
jmp 0x140009200
cmp qword [rcx + 0x68], 0
je 0x14000912b
call fcn.1400031b0
jmp 0x140009200
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140009142
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140009144
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140009176
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14002ad90
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400091fa
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400091ad
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400091d6
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140014584
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400091fa
cmp rsi, rbx
ja 0x1400091b4
test rsi, rsi
je 0x1400091fa
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140014584
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000ac38
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ac82
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ac82
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ac82
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ac82
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ac82
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000ac84
xor al, al
add rsp, 0x28
ret
Function at 0x140010bc0
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 0x140010bf7
call fcn.140015e88
mov dword [rax], socket
call fcn.140013610
xor eax, eax
jmp 0x140010c85
mov rdx, r9
mov rcx, r8
call fcn.140010b5c
mov rbx, rax
test rax, rax
je 0x140010c82
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140010a88]
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 0x140010c6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140015dfc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140010c56
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140010c65
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14001a154
jmp 0x140010c82
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140010c7f
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 0x140017838
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140017634
Function at 0x14001ed44
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.14000a7e0
sub rsp, rax
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001c664
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001ed93
mov rax, rbp
jmp 0x14001ee9b
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 + 0x40a60]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001fe64
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x40a60]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001ee97
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 0x14001ee97
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001fe64
test rax, rax
js 0x14001ee97
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001ee97
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001ee89
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001ee89
cmp byte [rcx], 0xd
jne 0x14001ee6f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001ee7e
cmp byte [rcx + 1], 0xa
jne 0x14001ee7e
inc rcx
jmp 0x14001ee7e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3e470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001ee51
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001ee9b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000a7b0
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 0x14001f0bc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001f0d2
mov al, 1
jmp 0x14001f132
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001f0e3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001f130
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002368c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001f130
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001f130
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001f130
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001f132
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001f204
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, [0x140040a60]
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 0x14001f25b
cmp word [rdx], r13w
jne 0x14001f25b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001f260
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001f385
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001f3a6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001f299
mov rdx, r9
mov word [rbx], cx
jmp 0x14001f2c0
cmp r9, r8
jae 0x14001f2d0
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 0x14001f27a
jmp 0x14001f385
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 0x14001f37a
cmp dword [rsp + 0x80], esi
je 0x14001f37a
lea r8, [0x140040a60]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001f352
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001f322
mov word [rbx], r13w
jmp 0x14001f382
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 0x14001f32f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001f382
cmp word [rsp + 0x70], r13w
jne 0x14001f35f
cmp rbx, r14
je 0x14001f31c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001fe6c
cmp word [rsp + 0x70], r13w
je 0x14001f385
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, [0x140040a60]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001f37f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001f385
Function at 0x140022e54
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 0x140022e84
xor eax, eax
jmp 0x140022f47
mov rbp, rbx
cmp word [rax], si
je 0x140022ea9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140022e90
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140022e8c
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.140021454
movsxd r14, eax
test eax, eax
jne 0x140022ee7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140022e7d
mov rcx, r14
call fcn.14001b408
mov rdi, rax
test rax, rax
jne 0x140022f00
xor ecx, ecx
call fcn.14001a154
jmp 0x140022edc
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.140021454
test eax, eax
jne 0x140022f31
mov rcx, rdi
call fcn.14001a154
jmp 0x140022f3b
xor ecx, ecx
call fcn.14001a154
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 0x140025be0
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.14001a508
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 0x140025c81
cmp ebx, dword [rsp + 0x30]
je 0x140025c7a
test esi, esi
je 0x140025c7a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140025c55
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140025c62
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140025c3f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140025c66
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140025c83
mov eax, 1
jmp 0x140025c83
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret