joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014330
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14001b290
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001b290
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140015002
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140034228]
test eax, eax
je 0x14001509a
lea rax, [0x140034200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140034230]
mov qword [rbp - 8], rax
jmp 0x14001507e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140015072
cmp qword [rbp - 0x10], 0
je 0x140015072
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140015038
lea rax, [0x140034200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001509b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400151a0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400151c8
mov eax, 0
jmp 0x140015216
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400151f1
mov eax, 0
jmp 0x140015216
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140015211
mov eax, 0
jmp 0x140015216
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14001521c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001529a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015291
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015291
mov rax, qword [rbp - 8]
jmp 0x1400152af
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015264
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x100402330
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov eax, dword [rcx + 4]
mov qword [rdx], 0
mov r12, rcx
mov r13, rdx
mov qword [rdx + 8], 0
mov qword [rdx + 0x10], 0
test eax, eax
jne 0x100402378
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [0x100415010], 0
jne 0x100402500
lea rax, [rsp + 0x30]
mov rcx, rax
mov qword [rsp + 0x28], rax
call qword [sym.imp.msys_gmp_10.dll___gmpz_init]
xor edx, edx
mov rcx, r12
call qword [sym.imp.msys_gmp_10.dll___gmpz_scan1]
mov rdx, r12
mov rcx, r12
mov rbx, rax
mov r8, rax
call qword [sym.imp.msys_gmp_10.dll___gmpz_fdiv_q_2exp]
mov rsi, qword [sym.imp.msys_gmp_10.dll___gmpz_clear]
test rbx, rbx
je 0x1004023f8
mov rbp, qword [sym.imp.msys_gmp_10.dll___gmpz_init_set_ui]
mov rsi, qword [sym.imp.msys_gmp_10.dll___gmpz_clear]
lea rdi, [rsp + 0x40]
nop dword [rax]
mov edx, 2
mov rcx, rdi
call rbp
mov rcx, r13
mov rdx, rdi
call fcn.1004016f0
mov rcx, rdi
call rsi
sub rbx, 1
jne 0x1004023d8
mov ebx, 1
mov r14d, 3
lea rbp, [rsp + 0x40]
mov rdi, qword [sym.imp.msys_gmp_10.dll___gmpz_divisible_ui_p]
mov rdx, r14
mov rcx, r12
call rdi
test eax, eax
jne 0x100402459
lea rax, [0x100410300]
lea r15d, [rbx + 1]
mov rcx, r12
movzx eax, byte [rax + rbx]
add r14, rax
mov rdx, r14
imul rdx, r14
call qword [sym.imp.msys_gmp_10.dll___gmpz_cmp_ui]
test eax, eax
js 0x100402490
cmp r15d, 0x29d
je 0x100402490
mov ebx, r15d
mov rdx, r14
mov rcx, r12
call rdi
test eax, eax
je 0x10040241b
mov r8, r14
mov rdx, r12
mov rcx, r12
call qword [sym.imp.msys_gmp_10.dll___gmpz_tdiv_q_ui]
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.msys_gmp_10.dll___gmpz_init_set_ui]
mov rcx, r13
mov rdx, rbp
call fcn.1004016f0
mov rcx, rbp
call rsi
jmp 0x10040240f
mov rcx, qword [rsp + 0x28]
call rsi
mov edx, 1
mov rcx, r12
call qword [sym.imp.msys_gmp_10.dll___gmpz_cmp_ui]
test eax, eax
je 0x100402364
cmp byte [0x100415010], 0
jne 0x100402548
test eax, eax
jle 0x1004024dc
mov edx, 0x17ded79
mov rcx, r12
call qword [sym.imp.msys_gmp_10.dll___gmpz_cmp_ui]
test eax, eax
js 0x100402528
mov rcx, r12
call fcn.100402580
test al, al
jne 0x100402528
mov r8, r13
mov edx, 1
mov rcx, r12
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.100401f20
call sub.msys_2.0.dll___getreent
mov r8d, 0x11
mov edx, 1
lea rcx, str._trial_division_
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
jmp 0x100402385
mov rdx, r12
mov rcx, r13
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1004016f0
call sub.msys_2.0.dll___getreent
mov r8d, 0x13
mov edx, 1
lea rcx, str._is_number_prime__
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
mov edx, 1
mov rcx, r12
call qword [sym.imp.msys_gmp_10.dll___gmpz_cmp_ui]
jmp 0x1004024ba
Function at 0x100404ba0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x100404c2d
mov edx, 0x2f
call sub.msys_2.0.dll_strrchr
mov rsi, rax
test rax, rax
je 0x100404c0b
lea rdi, [rax + 1]
mov rax, rdi
sub rax, rbx
cmp rax, 6
jle 0x100404c0b
lea rcx, [rsi - 6]
mov r8d, 7
lea rdx, str._.libs_
call sub.msys_2.0.dll_strncmp
test eax, eax
jne 0x100404c0b
cmp byte [rsi + 1], 0x6c
jne 0x100404c28
cmp byte [rdi + 1], 0x74
jne 0x100404c28
cmp byte [rdi + 2], 0x2d
jne 0x100404c28
mov rax, qword [sym.imp.msys_2.0.dll_program_invocation_short_name]
lea rbx, [rsi + 4]
mov qword [rax], rbx
mov rax, qword [sym.imp.msys_2.0.dll_program_invocation_name]
mov qword [0x100415030], rbx
mov qword [rax], rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rbx, rdi
jmp 0x100404c0b
call sub.msys_2.0.dll___getreent
mov r8d, 0x37
mov edx, 1
lea rcx, str.A_NULL_argv_0__was_passed_through_an_exec_system_call._n
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
call sub.msys_2.0.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1004089b0
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
xor ecx, ecx
call fcn.10040a0b0
mov r12, rax
test rax, rax
je 0x100408b10
lea rdx, str.US_ASCII
mov rcx, rax
call sub.msys_2.0.dll_strcmp
test eax, eax
je 0x100408a70
lea rdx, [0x10041104a]
mov rcx, r12
call sub.msys_2.0.dll_strcmp
test eax, eax
je 0x100408a5c
xor edi, edi
mov esi, 0x17
lea rbp, str.CP1361
jmp 0x100408a1e
je 0x100408b20
mov rsi, rbx
cmp rdi, rsi
jae 0x100408a4c
lea rax, [rsi + rdi]
mov rdx, r12
mov rbx, rax
and rax, 0xfffffffffffffffe
shr rbx, 1
add rax, rbx
lea r13, [rbp + rax*8]
mov rcx, r13
call sub.msys_2.0.dll_strcmp
test eax, eax
jns 0x100408a10
lea rdi, [rbx + 1]
cmp rdi, rsi
jb 0x100408a1e
cmp byte [r12], 0
lea rax, [0x100411021]
cmove r12, rax
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rcx, str.LC_ALL
call sub.msys_2.0.dll_getenv
test rax, rax
je 0x100408b38
cmp byte [rax], 0
je 0x100408b38
mov edx, 0x2e
mov rcx, rax
call sub.msys_2.0.dll_strchr
test rax, rax
je 0x100408ac6
lea r12, [rax + 1]
mov edx, 0x40
mov rcx, r12
call sub.msys_2.0.dll_strchr
test rax, rax
je 0x100408a5c
sub rax, r12
mov rbx, rax
cmp rax, 0xc
jbe 0x100408b78
call qword [sym.imp.KERNEL32.dll_GetACP]
lea r12, [rsp + 0x33]
xor edx, edx
lea r9, str.CP_u
mov dword [rsp + 0x20], eax
mov rcx, r12
mov r8d, 0xd
call sub.msys_2.0.dll___sprintf_chk
mov rdx, r12
lea r12, [0x100415180]
mov r8d, 0xd
mov rcx, r12
call sub.msys_2.0.dll___strcpy_chk
jmp 0x1004089e6
lea r12, [0x100411020]
jmp 0x1004089f9
lea r12, [r13 + 0xc]
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rcx, str.LC_CTYPE
call sub.msys_2.0.dll_getenv
test rax, rax
je 0x100408b52
cmp byte [rax], 0
jne 0x100408a8e
lea rcx, str.LANG
call sub.msys_2.0.dll_getenv
test rax, rax
je 0x100408ac6
cmp byte [rax], 0
je 0x100408ac6
jmp 0x100408a8e
mov rdx, r12
lea r12, [0x100415180]
mov r9d, 0xd
mov r8, rax
mov rcx, r12
call sub.msys_2.0.dll___memcpy_chk
mov byte [r12 + rbx], 0
jmp 0x100408a5c
Function at 0x14003b60c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140048cc8], rbx
je 0x14003b673
cmp rax, rbx
jne 0x14003b666
mov ebx, 1
mov esi, ebx
jmp 0x14003b678
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14003b64b
mov ebx, 1
mov eax, dword [0x140048cd0]
cmp eax, ebx
jne 0x14003b690
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14003b6fc
mov eax, dword [0x140048cd0]
test eax, eax
jne 0x14003b6f1
mov dword [0x140048cd0], ebx
lea r15, [0x14003e288]
lea rdi, [0x14003e270]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14003b6e3
test eax, eax
jne 0x14003b6e7
cmp qword [rdi], r14
je 0x14003b6d8
mov rax, qword [rdi]
mov rcx, qword [0x14003e230]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14003b6ba
test eax, eax
je 0x14003b6f7
mov eax, 0xff
jmp 0x14003b852
mov dword [0x140048284], ebx
mov edi, 0x1f
mov eax, dword [0x140048cd0]
cmp eax, ebx
jne 0x14003b723
lea rdx, [0x14003e268]
lea rcx, [0x14003e238]
call sub.msvcrt.dll__initterm
mov dword [0x140048cd0], 2
test esi, esi
jne 0x14003b731
mov rax, r14
xchg qword [0x140048cc8], rax
cmp qword [0x140048ce8], r14
je 0x14003b764
lea rcx, [0x140048ce8]
call fcn.14003bbf0
test eax, eax
je 0x14003b764
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140048ce8]
mov r9, qword [0x14003e230]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14003b77d
mov eax, 0xff
jmp 0x14003b852
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14003b803
test ax, ax
je 0x14003b798
test edx, edx
jne 0x14003b803
sub ax, bx
cmp ax, di
ja 0x14003b7ae
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14003b798
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001fc0
mov dword [0x140048280], eax
cmp dword [0x1400482a0], r14d
jne 0x14003b7ec
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140048284], r14d
jne 0x14003b801
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140048280]
jmp 0x14003b852
cmp ax, 0x22
jne 0x14003b817
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14003b786
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140161000
add rsp, 0x28
jmp 0x14003b60c
Function at 0x1400051e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x1400d9080]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbp, r9
mov esi, r8d
mov rbx, rdx
test rcx, rcx
je 0x14000534d
test rdx, rdx
je 0x14000534d
test r8d, r8d
je 0x14000534d
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14000534d
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x70]
call fcn.1400ad9a0
mov rdx, rbp
lea rcx, [rsp + 0x70]
call fcn.140006a40
nop
cmp qword [rsp + 0xf8], 0
jne 0x140005269
xor bl, bl
jmp 0x1400052d2
mov r8, rsi
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140006fe0
lea rcx, [rsp + 0x78]
call fcn.140008260
test rax, rax
jne 0x1400052c7
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rsp + rcx + 0xb8], 0
cmovne eax, edx
or eax, dword [rsp + rcx + 0x80]
and eax, 0x17
mov dword [rsp + rcx + 0x80], eax
mov edx, dword [rsp + rcx + 0x84]
and edx, eax
jne 0x140005372
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov bl, 1
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.140006990
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rcx, qword [rsp + 0x70]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x10]
mov dword [rsp + rdx + 0x6c], r8d
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x118], rax
lea rcx, [rsp + 0x118]
call fcn.1400165c0
nop
movzx eax, bl
jmp 0x14000534f
xor al, al
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400489e0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x190
pop rdi
pop rsi
pop rbp
ret
test dl, 4
je 0x140005380
lea rbx, [0x1400ce698]
jmp 0x140005395
test dl, 2
lea rbx, [0x1400ce6b0]
lea rax, [0x1400ce6c8]
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140001bf0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140002f80
lea rdx, [0x1400d7660]
lea rcx, [rsp + 0x40]
call fcn.14004c340
int3
Function at 0x140006150
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140006174
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140006202
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400061d0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x1400061d0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.1400ad300
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400061ed
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400061f5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140006191
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x1400062e0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140006219
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000621b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000624d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1400ad300
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400062dd
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140006288
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 rsi, 0xfff
jbe 0x1400062be
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.14005d4e0
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x1400062dd
cmp rsi, rax
ja 0x140006291
test rsi, rsi
je 0x1400062dd
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14005d4e0
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret

Function at 0x14000b960
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, [0x1400b1740]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14000b99d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.14000b900
add rsp, 0x58
ret
Function at 0x1400474d0
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x30
call fcn.14005e080
mov ecx, 8
imul rcx, rcx, 5
mov rax, qword [rax + rcx]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400474fc
mov eax, 2
jmp 0x140047569
lea rax, [rsp + 0x24]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov r9d, 2
lea r8, [rsp + 0x24]
mov edx, 0x22
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
nop
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x24]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x30
je 0x140047552
cmp dword [rsp + 0x20], 0x31
je 0x140047559
cmp dword [rsp + 0x20], 0x32
je 0x140047560
jmp 0x140047567
mov eax, 2
jmp 0x140047569
mov eax, 1
jmp 0x140047569
mov eax, 3
jmp 0x140047569
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140049130
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140048c60
movzx eax, al
test eax, eax
jne 0x140049150
mov ecx, 7
call fcn.140049ee0
nop
mov byte [rsp + 0x20], 0
call fcn.140048bf0
mov byte [rsp + 0x21], al
cmp dword [0x1400db6a0], 1
jne 0x140049174
mov ecx, 7
call fcn.140049ee0
nop
jmp 0x1400491cc
cmp dword [0x1400db6a0], 0
jne 0x1400491c7
mov dword [0x1400db6a0], 1
lea rdx, [0x1400b15f8]
lea rcx, [0x1400b15b8]
call fcn.14007d7a0
test eax, eax
je 0x1400491a8
mov eax, 0xff
jmp 0x1400492d1
lea rdx, [0x1400b15b0]
lea rcx, [0x1400b13f8]
call fcn.14007d740
mov dword [0x1400db6a0], 2
jmp 0x1400491cc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140048e50
call fcn.14004a470
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140049229
mov rcx, qword [rsp + 0x30]
call fcn.140048dc0
movzx eax, al
test eax, eax
je 0x140049229
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x1400b13d0]
nop
call fcn.14004a480
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14004925d
mov rcx, qword [rsp + 0x38]
call fcn.140048dc0
movzx eax, al
test eax, eax
je 0x14004925d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14007b160
nop
call fcn.140049310
mov dword [rsp + 0x28], eax
call fcn.14004a0f0
movzx eax, al
test eax, eax
jne 0x14004927c
mov ecx, dword [rsp + 0x28]
call fcn.14007b1b0
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14004928b
call fcn.14007b120
nop
xor edx, edx
mov cl, 1
call fcn.140048e80
mov eax, dword [rsp + 0x28]
jmp 0x1400492d1
add rsp, 0x68
ret

Function at 0x140052b50
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140052630
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140052b8f
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 [0x1400b13d0]
jmp 0x140052b99
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x14007af00
Capabilities:
Terminate process

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x28
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x14007af28
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [rsp + 0x30]
call fcn.14007b020
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140083b00
Capabilities:
Print debug messages

Disassembly:
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 0x1400848c0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.140056890
movzx eax, al
test eax, eax
je 0x1400848e7
mov al, 1
jmp 0x1400849dc
lea rcx, [rsp + 0x60]
call fcn.1400568d0
movzx eax, al
test eax, eax
je 0x140084926
lea rcx, [rsp + 0x60]
call fcn.14000bb70
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x60]
call fcn.14000bb70
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x40]
cmp qword [rcx], rax
jne 0x140084926
xor al, al
jmp 0x1400849dc
lea rcx, [rsp + 0x60]
call fcn.14005dee0
mov ecx, eax
call fcn.14009d770
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14008494b
xor al, al
jmp 0x1400849dc
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov r9d, 1
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140084990
xor al, al
jmp 0x1400849dc
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400849b9
xor al, al
jmp 0x1400849dc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jne 0x1400849cf
mov dword [rsp + 0x20], 1
jmp 0x1400849d7
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x50
pop rdi
ret