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

Disassembly:
jmp 0x1401162b0
mov rax, rcx
neg rcx
test rax, 7
je 0x1401162cd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140116328
test al, 7
jne 0x1401162c0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1401162e1
mov rdx, qword [rax - 8]
test dl, dl
je 0x140116352
test dh, dh
je 0x14011634c
shr rdx, 0x10
test dl, dl
je 0x140116346
test dh, dh
je 0x140116340
shr rdx, 0x10
test dl, dl
je 0x14011633a
test dh, dh
je 0x140116334
shr edx, 0x10
test dl, dl
je 0x14011632e
test dh, dh
jne 0x1401162e1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x140077ca7
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140099040
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400989c0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14009907f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401b8020]
jmp 0x140099089
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x140077e19
Capabilities:
Query environment variable

Disassembly:
jmp 0x140135e1c
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 r14d, r14d
mov rbx, rax
test rax, rax
je 0x140135f04
mov rsi, rax
cmp word [rax], r14w
je 0x140135e6f
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x140135e57
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x140135e53
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.140078959
movsxd rbp, eax
test eax, eax
je 0x140135f04
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov rcx, rbp
lea edx, [r9 - 0x64]
call fcn.140077b8f
mov rdi, rax
test rax, rax
je 0x140135ef2
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.140078959
test eax, eax
je 0x140135ef2
mov rsi, rdi
mov rdi, r14
jmp 0x140135ef5
mov rsi, r14
mov edx, 2
mov rcx, rdi
call fcn.1400769a1
jmp 0x140135f07
mov rsi, r14
test rbx, rbx
je 0x140135f15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140077e2d
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140098f70
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140098940
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140098fb1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401b8020]
jmp 0x140098fb7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x140077eaa
Capabilities:
Get geographical location

Disassembly:
jmp 0x14011aeb0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140119e30
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14011af03
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
call qword [0x1401b8020]
jmp 0x14011af25
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.14007763f
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x48
ret

Function at 0x140077eb4
Capabilities:
Terminate process

Disassembly:
jmp 0x14007faa0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x14007810c
Capabilities:
Print debug messages

Disassembly:
jmp 0x140154c90
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1401a4008]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140154cb6
jmp 0x140154d33
mov rcx, qword [rbp + 0x30]
call fcn.140077932
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x140154ccf
jmp 0x140154d33
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x140154cec
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400769c9
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140076e4c
test eax, eax
jne 0x140154d33
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140077b03
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400785ee
Capabilities:
Parse pe header

Disassembly:
jmp 0x140080de0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140080e00
xor al, al
jmp 0x140080e81
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140080e13
xor al, al
jmp 0x140080e81
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140080e3d
xor al, al
jmp 0x140080e81
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140080e51
xor al, al
jmp 0x140080e81
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140080e63
xor al, al
jmp 0x140080e81
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140080e7f
xor al, al
jmp 0x140080e81
mov al, 1
add rsp, 0x38
ret
Function at 0x140078af8
Capabilities:
Terminate process

Disassembly:
jmp 0x140116a90
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140116abe
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.14007932c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140078bbb
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14011aca0
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.140119cb0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14011acd5
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x1401b8020]
jmp 0x14011acdf
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x38
ret

Function at 0x14007905c
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14011ad00
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.140119cf0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14011ad3f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x1401b8020]
jmp 0x14011ad4e
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret

Function at 0x14007909d
Capabilities:
Create process on windows
Terminate process

Disassembly:
jmp 0x14007da50
push rbp
push rdi
sub rsp, 0x3e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x8e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1401a4008]
xor rax, rbp
mov qword [rbp + 0x3a8], rax
lea rcx, [0x1401b7017]
call fcn.14007972d
lea rcx, str.Welcome_to_the_RICK_ROLL_prank_program__n_nWith_this_program_you_can_setup_rick_rolls_that_start_either_after_a_certain_time__or_as_soon_as_user_moves_mouse_or_presses_keys._nMode_1:_rick_roll_starts_after_a_specified_amount_of_time_in_milliseconds__max_86400000__1_day_._nMode_2:_program_waits_for_10_seconds._After_that__rick_roll_starts_as_soon_as_user_moves_mouse_or_presses_keys._n_nPress_any_key_to_continue..._n_nMade_with_hate_by_AleX_1337_nhttps:__youtube.com__YT_AleX_1337
call fcn.140079403
call fcn.14007626c
mov r8d, 0x104
lea rdx, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x14007939a
Capabilities:
Print debug messages

Disassembly:
jmp 0x14012e1b0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x14007945d
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400990b0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140098a00
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400990f9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401b8020]
jmp 0x140099108
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret
Function at 0x140079831
Capabilities:
Check for unmoving mouse cursor
Hide graphical window
Log keystrokes via polling

Disassembly:
jmp 0x14007de40
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1401a4008]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x1401b7017]
call fcn.14007972d
lea rcx, str.Do_not_move_mouse_or_press_keys_after_10_seconds__n10
call fcn.140079403
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x14016e508]
call fcn.140079403
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x14016e50c]
call fcn.140079403
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x14016e510]
call fcn.140079403
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x14016e514]
call fcn.140079403
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x14016e518]
call fcn.140079403
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x14016e51c]
call fcn.140079403
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x14016e520]
call fcn.140079403
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x14016e524]
call fcn.140079403
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x14016e528]
call fcn.140079403
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x14016e52c]
call fcn.140079403
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x14016e52c]
call fcn.140079403
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x14016e52c]
call fcn.140079403
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [rbp + 4], 0
movzx eax, byte [rbp + 4]
test eax, eax
jne 0x14007e04b
lea rcx, [rbp + 0x28]
call qword [sym.imp.USER32.dll_GetCursorPos]
call fcn.14007638e
test eax, eax
je 0x14007dfe5
mov byte [rbp + 4], 1
call fcn.14007626c
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
jne 0x14007e024
mov ecx, 2
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
jne 0x14007e024
mov ecx, 4
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14007e028
mov byte [rbp + 4], 1
lea rcx, [rbp + 0x48]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rbp + 0x48]
cmp dword [rbp + 0x28], eax
jne 0x14007e042
mov eax, dword [rbp + 0x2c]
cmp dword [rbp + 0x2c], eax
je 0x14007e046
mov byte [rbp + 4], 1
jmp 0x14007dfbd
call fcn.140079af2
lea rcx, [rbp - 0x20]
lea rdx, [0x14016e300]
call fcn.140078d50
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.140077b03
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x140079af2
Capabilities:
Find taskbar

Disassembly:
jmp 0x14007dc10
push rbp
push rdi
sub rsp, 0x3f8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x96
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1401a4008]
xor rax, rbp
mov qword [rbp + 0x3c8], rax
lea rcx, [0x1401b7017]
call fcn.14007972d
xor r9d, r9d
lea r8, [rbp + 0x10]
mov edx, 0x104
lea rcx, str.rick.png
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov r9d, 2
lea r8, [rbp + 0x10]
xor edx, edx
mov ecx, 0x14
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
mov qword [rbp + 0x238], rax
xor r9d, r9d
mov r8d, 0x1a3
mov edx, 0x111
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
cmp eax, 1
je 0x14007dce1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.play_rick.wav_wait
call qword [sym.imp.WINMM.dll_mciSendStringW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.seek_rick.wav_to_start_wait
call qword [sym.imp.WINMM.dll_mciSendStringW]
jmp 0x14007dcae
lea rcx, [rbp - 0x20]
lea rdx, [0x14016e1c0]
call fcn.140078d50
mov rcx, qword [rbp + 0x3c8]
xor rcx, rbp
call fcn.140077b03
lea rsp, [rbp + 0x3d8]
pop rdi
pop rbp
ret
Function at 0x180004304
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 0x180004332
xor eax, eax
jmp 0x180004418
cmp qword [rcx + 0x68], 0
je 0x180004343
call fcn.180004434
jmp 0x180004418
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18000435a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18000435c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18000438e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.180021840
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 0x180004412
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1800043c5
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 0x1800043ee
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.18000f274
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x180004412
cmp rsi, rbx
ja 0x1800043cc
test rsi, rsi
je 0x180004412
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.18000f274
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 0x180018260
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.1800078d0
sub rsp, rax
mov rax, qword [0x180032040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180014ac0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800182af
mov rax, rbp
jmp 0x1800183b7
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 + 0x349a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180019548
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x349a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800183b3
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 0x1800183b3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180019548
test rax, rax
js 0x1800183b3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800183b3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800183a5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800183a5
cmp byte [rcx], 0xd
jne 0x18001838b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18001839a
cmp byte [rcx + 1], 0xa
jne 0x18001839a
inc rcx
jmp 0x18001839a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x32480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18001836d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800183b7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180007060
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 0x1800186d4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800186ea
mov al, 1
jmp 0x18001874a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800186fb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180018748
mov ecx, dword [rcx + 0x18]
nop
call fcn.18001cabc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180018748
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180018748
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180018748
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18001874a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800188e8
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, [0x1800349a0]
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 0x18001893f
cmp word [rdx], r13w
jne 0x18001893f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180018944
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180018a69
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180018a8a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18001897d
mov rdx, r9
mov word [rbx], cx
jmp 0x1800189a4
cmp r9, r8
jae 0x1800189b4
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 0x18001895e
jmp 0x180018a69
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 0x180018a5e
cmp dword [rsp + 0x80], esi
je 0x180018a5e
lea r8, [0x1800349a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180018a36
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180018a06
mov word [rbx], r13w
jmp 0x180018a66
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 0x180018a13
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180018a66
cmp word [rsp + 0x70], r13w
jne 0x180018a43
cmp rbx, r14
je 0x180018a00
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180019550
cmp word [rsp + 0x70], r13w
je 0x180018a69
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, [0x1800349a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180018a63
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180018a69
Function at 0x18001c36c
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 0x18001c39c
xor eax, eax
jmp 0x18001c45f
mov rbp, rbx
cmp word [rax], si
je 0x18001c3c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001c3a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001c3a4
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.18001aab8
movsxd r14, eax
test eax, eax
jne 0x18001c3ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001c395
mov rcx, r14
call fcn.180014528
mov rdi, rax
test rax, rax
jne 0x18001c418
xor ecx, ecx
call fcn.1800130d4
jmp 0x18001c3f4
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.18001aab8
test eax, eax
jne 0x18001c449
mov rcx, rdi
call fcn.1800130d4
jmp 0x18001c453
xor ecx, ecx
call fcn.1800130d4
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 0x18001f454
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.180014198
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 0x18001f4f5
cmp ebx, dword [rsp + 0x30]
je 0x18001f4ee
test esi, esi
je 0x18001f4ee
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18001f4c9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18001f4d6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18001f4b3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18001f4da
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18001f4f7
mov eax, 1
jmp 0x18001f4f7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800215a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800215c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800215c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret