joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7016c550
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x7031dfe4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x7016c6d8
mov rax, qword [0x7031dfe8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x7016c59c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x7016c625
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x7016c580
mov rcx, rbx
call fcn.7016d1f0
test rax, rax
mov r12, rax
je 0x7016c70d
mov rax, qword [0x7031dfe8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.7016d320
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x7031dfe8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x7016c6f0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x7016c61e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x7016c680
add dword [0x7031dfe4], 1
cmp edi, 8
jae 0x7016c653
test dil, 4
jne 0x7016c6c4
test edi, edi
je 0x7016c648
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x7016c6df
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x7016c648
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x7016c66c
jmp 0x7016c648
add rsi, qword [0x7031dfe8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x7016c61e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.7016d910
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x7016c648
xor esi, esi
jmp 0x7016c5a7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x7016c648
mov rax, qword [0x7031dfe8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.7016d910
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.7016d910
nop
nop dword [rax]

Function at 0x7016ce60
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x7031e2c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x7031e2a0]
test rbx, rbx
je 0x7016ceb4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x7016ceab
test rsi, rsi
je 0x7016ceab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x7016ce90
lea rcx, [0x7031e2c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x7016d1f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x702bf630]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x7016d25d
mov rcx, r8
call fcn.7016d0d0
test eax, eax
je 0x7016d25d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x7016d25d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x7016d254
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x7016d25f
add rax, 0x28
cmp rax, r9
jne 0x7016d240
xor eax, eax
add rsp, 0x28
ret

Function at 0x7016d910
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.7016d8d0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.7016d8d0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
push rbp
mov rbp, rsp
pop rbp
jmp fcn.70041390
Function at 0x180009970
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 0x1800099a1
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 0x180009a1b
mov rdi, r14
mov rcx, rbx
call fcn.18000b4a0
test rax, rax
jle 0x1800099f3
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.18004e3a0
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 0x180009a0b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180009a13
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1800099b5
sub r14, rdi
jmp 0x180009aff
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180009a32
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180009a34
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180009a66
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.18004e3a0
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 0x180009afc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180009aa1
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 0x180009add
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.180036bfc
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x180009afc
cmp rbp, rax
ja 0x180009ab0
test rbp, rbp
je 0x180009afc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.180036bfc
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 0x18000f850
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r10, rax
mov eax, 0x5a4d
cmp word [r10], ax
jne 0x18000f8fe
movsxd rcx, dword [r10 + 0x3c]
add rcx, r10
cmp dword [rcx], 0x4550
jne 0x18000f8fe
movzx ebx, word [rcx + 0x14]
xor edx, edx
movzx r11d, word [rcx + 6]
add rbx, rcx
test r11d, r11d
je 0x18000f8fe
lea rdi, str..text
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rax + rax*4]
xor eax, eax
lea r9, [rcx*8]
lea r8, [r9 + rbx]
nop word [rax + rax]
movzx ecx, byte [rdi + rax]
inc rax
cmp cl, byte [r8 + rax + 0x17]
jne 0x18000f8f7
cmp rax, 6
jne 0x18000f8d0
mov eax, dword [rbx + r9 + 0x20]
mov ebx, dword [rbx + r9 + 0x24]
add rbx, r10
mov dword [rsp + 0x30], eax
jmp 0x18000f900
inc edx
cmp edx, r11d
jl 0x18000f8b0
xor ebx, ebx
mov esi, dword [rsp + 0x30]
lea rdx, [0x180079fbc]
add rsi, rbx
mov r9d, 7
mov r8, rsi
mov rcx, rbx
call fcn.18000f770
test rax, rax
je 0x18000f944
mov edx, dword [rax + 0x15]
mov dword [rdx + rax + 0x1a], 0
mov edx, 0xefff
mov rax, qword gs:[0x30]
and word [rax + 0x17ee], dx
mov rbp, qword gs:[0x60]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x18000fa3b
lea rdx, str.RtlLeaveCriticalSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x110]
call rax
lea rdx, str.LdrFastFailInLoaderCallout
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000f9a1
mov ecx, dword [rax + 0x18]
mov dword [rcx + rax + 0x1d], 2
jmp 0x18000f9c9
mov r9d, 0xa
lea rdx, [0x180079fa0]
mov r8, rsi
mov rcx, rbx
call fcn.18000f770
test rax, rax
je 0x18000f9c9
mov ecx, dword [rax + 5]
mov dword [rcx + rax + 9], 2
lea rdx, str.LdrGetDllFullName
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x18000fa3b
mov r9d, 7
lea r8, [rax + 0x80]
lea rdx, [0x180079fb4]
mov rcx, rax
call fcn.18000f770
mov rcx, rax
test rax, rax
jne 0x18000fa22
lea r9d, [rax + 7]
mov rcx, rbx
lea r8, [rbx + 0x80]
lea rdx, [0x180079fac]
call fcn.18000f770
mov rcx, rax
test rcx, rcx
je 0x18000fa3b
mov eax, dword [rcx + 3]
mov rcx, qword [rax + rcx + 7]
mov rax, qword [rcx + 0x98]
add qword [rax + 0x38], 2
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180010980
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
xor eax, eax
mov rbx, rdx
mov r11, rcx
mov r9d, eax
test r8d, r8d
je 0x180010a03
mov qword [rsp + 0x10], rdi
mov edi, r8d
nop word [rax + rax]
inc eax
and eax, 0x800000ff
jge 0x1800109b2
dec eax
or eax, 0xffffff00
inc eax
movsxd r8, eax
movzx r10d, byte [r8 + r11]
add r9d, r10d
and r9d, 0x800000ff
jge 0x1800109d3
dec r9d
or r9d, 0xffffff00
inc r9d
movsxd rdx, r9d
movzx ecx, byte [rdx + r11]
mov byte [r8 + r11], cl
mov byte [rdx + r11], r10b
movzx edx, byte [r8 + r11]
add rdx, r10
movzx ecx, dl
movzx edx, byte [rcx + r11]
xor byte [rbx], dl
inc rbx
sub rdi, 1
jne 0x1800109a0
mov rdi, qword [rsp + 0x10]
pop rbx
ret
Function at 0x180021e70
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x18007e978]
test rbx, rbx
je 0x180021f40
mov qword [rsp + 0x30], rdi
xor dil, dil
cmp ecx, 0x101
ja 0x180021eeb
je 0x180021eb1
cmp ecx, 6
je 0x180021ed6
cmp ecx, 0x1c
je 0x180021ed6
cmp ecx, 0x100
jne 0x180021f3b
mov dil, 1
mov ecx, edx
sub ecx, 0x10
je 0x180021f46
sub ecx, 1
je 0x180021f03
cmp ecx, 1
jne 0x180021f18
and r8d, 0x1000000
or r8d, 0xa4ffffff
jmp 0x180021f11
mov rdi, qword [rsp + 0x30]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
add rsp, 0x20
pop rbx
ret
sub ecx, 0x104
je 0x180021eae
cmp ecx, 1
je 0x180021eb1
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
and r8d, 0x1000000
or r8d, 0xa2ffffff
shr r8d, 0x18
mov edx, r8d
test dil, dil
je 0x180021f64
cmp edx, 0xfe
ja 0x180021f3b
movsxd rax, edx
and edx, 0x1f
sar rax, 5
lea rcx, [rbx + rax*4]
mov eax, dword [rbx + rax*4]
bts eax, edx
mov dword [rcx], eax
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
shr r8d, 0x10
mov edx, 3
movzx ecx, r8b
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edx, eax
test dil, dil
jne 0x180021f1d
and dword [rbx + 0x14], 0xfffffffc
cmp edx, 0xfe
ja 0x180021f3b
mov rdi, qword [rsp + 0x30]
movsxd rax, edx
and edx, 0x1f
sar rax, 5
lea rcx, [rbx + rax*4]
mov eax, dword [rbx + rax*4]
btr eax, edx
mov dword [rcx], eax
add rsp, 0x20
pop rbx
ret

Function at 0x180025ff0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1800792c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, r8
mov rsi, rdx
test rcx, rcx
je 0x180026101
test r8, r8
je 0x180026101
xor edi, edi
mov qword [r8], rdi
mov qword [rsp + 0x20], rdi
mov edx, 0x80000000
lea r9d, [rdi + 3]
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFile2]
mov rbx, rax
cmp rax, 0xffffffffffffffff
cmove rbx, rdi
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x1800260c4
lea r9d, [rdi + 0x18]
lea r8, [rsp + 0x38]
lea edx, [rdi + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x1800260c4
cmp dword [rsp + 0x44], edi
jle 0x18002607c
mov edi, 0x80004005
jmp 0x1800260ef
mov ecx, dword [rsp + 0x40]
call fcn.18002a59c
mov rcx, qword [rsi]
mov qword [rsi], rax
test rcx, rcx
je 0x180026095
call fcn.180029f20
mov rdx, qword [rsi]
test rdx, rdx
jne 0x1800260a4
mov edi, 0x8007000e
jmp 0x1800260ef
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800260db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x1800260ef
movzx edi, ax
or edi, 0x80070000
jmp 0x1800260ef
mov eax, dword [rsp + 0x50]
cmp eax, dword [rsp + 0x40]
jae 0x1800260ec
mov edi, 0x80004005
jmp 0x1800260ef
mov qword [r14], rax
test rbx, rbx
je 0x1800260fd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x180026106
mov eax, 0x80070057
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180029e30
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
Function at 0x180027a30
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x180027a6a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180027a6f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180027ab8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18005fc70]
cmp byte [rcx + rax], 0
je 0x180027ab8
dec r8
sub rdx, 1
jne 0x180027a9e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x180037744
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 0x1800375f7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800375f7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800375f7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800375f7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800375f7
cmp dword [rcx + 0x84], 0xe
jbe 0x1800375f7
cmp dword [rcx + 0xf8], 0
je 0x1800375f7
mov ecx, ebx
call fcn.1800376a8
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.180037484
nop
cmp dword [rbp + 0x20], 0
je 0x180037645
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180037650
int3
xor r8d, r8d
xor edx, edx
jmp 0x180037588

Function at 0x18003e1e0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18003e1f6
mov al, 1
jmp 0x18003e256
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18003e207
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18003e254
mov ecx, dword [rcx + 0x18]
nop
call fcn.180049690
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18003e254
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18003e254
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18003e254
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18003e256
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180040868
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.18002ab80
sub rsp, rax
mov rax, qword [0x1800792c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18003bd44
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800408b7
mov rax, rbp
jmp 0x1800409bf
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x7fd20]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800417b4
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x7fd20]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800409bb
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 0x1800409bb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800417b4
test rax, rax
js 0x1800409bb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800409bb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800409ad
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800409ad
cmp byte [rcx], 0xd
jne 0x180040993
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800409a2
cmp byte [rcx + 1], 0xa
jne 0x1800409a2
inc rcx
jmp 0x1800409a2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x796f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180040975
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800409bf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180029e30
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 0x180040b54
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, [0x18007fd20]
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 0x180040bab
cmp word [rdx], r13w
jne 0x180040bab
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180040bb0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180040cd5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180040cf6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180040be9
mov rdx, r9
mov word [rbx], cx
jmp 0x180040c10
cmp r9, r8
jae 0x180040c20
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 0x180040bca
jmp 0x180040cd5
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 0x180040cca
cmp dword [rsp + 0x80], esi
je 0x180040cca
lea r8, [0x18007fd20]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180040ca2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180040c72
mov word [rbx], r13w
jmp 0x180040cd2
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 0x180040c7f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180040cd2
cmp word [rsp + 0x70], r13w
jne 0x180040caf
cmp rbx, r14
je 0x180040c6c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800417bc
cmp word [rsp + 0x70], r13w
je 0x180040cd5
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, [0x18007fd20]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180040ccf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180040cd5
Function at 0x180044e84
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 0x180044eb4
xor eax, eax
jmp 0x180044f77
mov rbp, rbx
cmp word [rax], si
je 0x180044ed9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180044ec0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180044ebc
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.180043814
movsxd r14, eax
test eax, eax
jne 0x180044f17
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180044ead
mov rcx, r14
call fcn.18003aae8
mov rdi, rax
test rax, rax
jne 0x180044f30
xor ecx, ecx
call fcn.18003aaac
jmp 0x180044f0c
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.180043814
test eax, eax
jne 0x180044f61
mov rcx, rdi
call fcn.18003aaac
jmp 0x180044f6b
xor ecx, ecx
call fcn.18003aaac
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 0x180048e30
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.18003c294
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 0x180048ed1
cmp ebx, dword [rsp + 0x30]
je 0x180048eca
test esi, esi
je 0x180048eca
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180048ea5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180048eb2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180048e8f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180048eb6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180048ed3
mov eax, 1
jmp 0x180048ed3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret