joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012580
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x1400127de
mov byte [rsp + 0x37], 0
mov rax, qword [0x1400640f0]
cmp rax, 3
jne 0x14001278a
cmp byte [rsp + 0x37], 0
jne 0x14001279f
mov ecx, dword [0x1400380a0]
test ecx, ecx
je 0x1400127a5
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400125dd
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x140012679
mov ecx, dword [0x1400380a0]
test ecx, ecx
je 0x1400127b8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14001262b
mov rsi, rax
cmp rax, 1
jne 0x140012673
lea rax, [0x14005b0e8]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destructionlibrary_std_src_threadlocal.rs
lea r9, [0x14005a470]
lea r8, [rsp + 0x40]
mov edx, 0x46
call fcn.140004eb0
ud2
movzx eax, byte [0x1400640a0]
mov ecx, 0x10
mov edx, 8
call fcn.1400025b0
test rax, rax
je 0x1400127ff
mov rsi, rax
lea rax, [0x140038088]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400380a0]
test ecx, ecx
je 0x1400127cb
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x1400640b8]
cmp rax, rsi
jne 0x1400126ad
mov eax, dword [0x1400640e8]
inc eax
jne 0x1400126cd
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x14005b428]
mov edx, 0x26
call fcn.140005110
ud2
lea rcx, [0x1400640b0]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x14001279f
mov qword [0x1400640b8], rsi
mov eax, 1
mov dword [0x1400640e8], eax
mov qword [rsp + 0x40], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x56], 0
cmp qword [0x1400640c0], 0
jne 0x1400127f8
mov qword [0x1400640c0], 0xffffffffffffffff
cmp byte [0x1400640e0], 0
jne 0x14001272f
lea rcx, [0x1400640c8]
call fcn.140012940
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14001272f
lea rcx, [rsp + 0x38]
call fcn.140011360
cmp qword [0x1400640d0], 0
je 0x14001274a
mov rcx, qword [0x1400640c8]
mov edx, 1
call fcn.1400025f0
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [0x1400640d8], xmm1
movups xmmword [0x1400640c8], xmm0
inc qword [0x1400640c0]
dec dword [0x1400640e8]
jne 0x14001279f
mov qword [0x1400640b8], 0
lea rcx, [0x1400640b0]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
jmp 0x14001279f
lea rcx, [rsp + 0x37]
call fcn.1400128d0
cmp byte [rsp + 0x37], 0
je 0x1400125b5
add rsp, 0x60
pop rsi
ret
lea rcx, [0x140038088]
call fcn.140011cc0
mov ecx, eax
jmp 0x1400125c5
lea rcx, [0x140038088]
call fcn.140011cc0
mov ecx, eax
jmp 0x1400125ed
lea rcx, [0x140038088]
call fcn.140011cc0
mov ecx, eax
jmp 0x14001266b
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call fcn.140003fa0
ud2
call fcn.1400046d0
ud2
mov ecx, 8
mov edx, 0x10
call fcn.140002a10
ud2
Function at 0x140012e90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x14005bea0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x140012f01
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140012f37
test eax, eax
js 0x140012f12
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140012f2a
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140011f30
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140011400
mov ecx, 7
int 0x29
ud2

Function at 0x1400134f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140038060]
test ecx, ecx
je 0x1400135ad
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140013520
cmp qword [rax + 8], 0
je 0x140013520
add rax, 0x10
jmp 0x1400135a7
mov ecx, dword [0x140038060]
test ecx, ecx
je 0x1400135c0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400135a5
mov rsi, rax
test rax, rax
jne 0x14001358b
movzx eax, byte [0x1400640a0]
mov ecx, 0x20
mov edx, 8
call fcn.1400025b0
test rax, rax
je 0x1400135e3
mov rsi, rax
lea rax, [0x140038048]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140038060]
test ecx, ecx
je 0x1400135d3
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x1400135a7
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140038048]
call fcn.140011cc0
mov ecx, eax
jmp 0x140013505
lea rcx, [0x140038048]
call fcn.140011cc0
mov ecx, eax
jmp 0x140013530
lea rcx, [0x140038048]
call fcn.140011cc0
mov ecx, eax
jmp 0x140013583
mov ecx, 8
mov edx, 0x20
call fcn.140002a10
ud2
Function at 0x140016940
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x38], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 7
mov qword [rsp + 0x54], 0
mov word [rsp + 0x5c], 0
mov byte [rsp + 0x58], 1
lea r8, [rsp + 0x38]
mov rcx, rdx
mov rdx, rax
call fcn.14002f1c0
mov rdi, rdx
test rax, rax
je 0x1400169d4
mov qword [rsp + 0x80], 1
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x88], rdi
call fcn.140011360
mov qword [rsi], 0
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.14002f3e0
cmp dword [rsp + 0x38], 2
jne 0x140016a03
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], 2
jmp 0x140016a4f
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmm2, xmmword [rsp + 0x58]
movups xmm3, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xc0], rax
movaps xmmword [rsp + 0xb0], xmm3
movaps xmmword [rsp + 0xa0], xmm2
movaps xmmword [rsp + 0x90], xmm1
cmp qword [rsp + 0x80], 2
jne 0x140016a7b
lea rcx, [rsp + 0x88]
call fcn.140011360
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.KERNEL32.dll_CloseHandle
mov r12, qword [rsp + 0xb8]
test rdi, rdi
je 0x140016ad9
mov qword [rsp + 0x80], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x140016b55
mov rbx, qword [rsp + 0x80]
jmp 0x140016adb
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x140016b44
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x140016b44
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x140016b81
mov qword [rsi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x140016b81
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x38], 1
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.140011360
mov qword [rsi], 0
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
jmp 0x1400169c3
Function at 0x140036b90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
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.140037930
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.140037930
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140036c00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140064214]
mov rbx, rcx
test esi, esi
jle 0x140036d30
mov rax, qword [0x140064218]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140036c4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140036cd5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140036c30
mov rcx, rbx
call fcn.140037650
mov rdi, rax
test rax, rax
je 0x140036d52
mov rax, qword [0x140064218]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140037790
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140064218]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140036d37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140036cce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140036ce0
add dword [0x140064214], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140064218]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140036cce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140036b90
nop dword [rax]
xor esi, esi
jmp 0x140036c58
mov rax, qword [0x140064218]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140036b90
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140036b90
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400372c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140064280]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140064260]
test rbx, rbx
je 0x14003731c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140037313
test rsi, rsi
je 0x140037313
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400372f8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140037650
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14005cf30]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140037670
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140037678
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140037670
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400376cd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400376c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140037670
add rax, 0x28
cmp rax, r9
jne 0x1400376b0
xor eax, eax
ret

Function at 0x1400376d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14005cf30]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400376ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400376f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400376ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140037790
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14005cf30]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400377af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400377b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140006460
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov edx, 0x65
xor ecx, ecx
lea r8d, [rdx - 0x5b]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1400065b8
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400065b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x1400065b8
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test eax, eax
je 0x1400065b8
mov r8d, ebx
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140004b10
nop
mov r9d, 0x40
mov r8d, 0x1000
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x140006573
mov r9, qword [rsp + 0x28]
mov r8, qword [rsp + 0x20]
sub r9, r8
mov rcx, rax
cmp r9, 4
jb 0x140006533
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax + rax]
mov eax, dword [r8]
mov dword [rcx], eax
add rcx, 4
add r8, 4
sub rdx, 1
jne 0x140006520
test r9, r9
je 0x140006551
sub r8, rcx
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x140006540
mov dword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
mov r8d, 0x20
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rdi
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400065ab
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400065a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400065c8
call fcn.14000764c
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
call fcn.14000e2ac
int3

Function at 0x140007f70
Capabilities:
Parse pe header

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

Function at 0x14001245c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140012258
Function at 0x14001b6c0
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 0x14001b6f0
xor eax, eax
jmp 0x14001b7b3
mov rbp, rbx
cmp word [rax], si
je 0x14001b715
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001b6fc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001b6f8
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.140019dd0
movsxd r14, eax
test eax, eax
jne 0x14001b753
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001b6e9
mov rcx, r14
call fcn.140016e18
mov rdi, rax
test rax, rax
jne 0x14001b76c
xor ecx, ecx
call fcn.140015c64
jmp 0x14001b748
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.140019dd0
test eax, eax
jne 0x14001b79d
mov rcx, rdi
call fcn.140015c64
jmp 0x14001b7a7
xor ecx, ecx
call fcn.140015c64
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 0x14001e728
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.140015904
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 0x14001e7c9
cmp ebx, dword [rsp + 0x30]
je 0x14001e7c2
test esi, esi
je 0x14001e7c2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001e79d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001e7aa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001e787
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001e7ae
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001e7cb
mov eax, 1
jmp 0x14001e7cb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140021368
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002137e
mov al, 1
jmp 0x1400213de
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002138f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400213dc
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001c1d4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400213dc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400213dc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400213dc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400213de
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400225f4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140011330
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002267e
cmp byte [rbp - 0x21], r15b
je 0x140022679
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400226b4
call fcn.140015fe0
test eax, eax
jne 0x1400226a0
cmp byte [rbp - 0x21], r15b
je 0x140022698
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400226b4
cmp byte [rbp - 0x21], r15b
je 0x1400226b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140011964
test eax, eax
jne 0x140022754
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140011330
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400226f3
cmp byte [rbp - 0x21], r15b
je 0x140022728
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140022728
call fcn.140015fe0
test eax, eax
jne 0x140022714
cmp byte [rbp - 0x21], r15b
je 0x14002270d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140022728
cmp byte [rbp - 0x21], r15b
je 0x140022725
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140011964
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140022754
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140022757
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140022765
mov rcx, rdi
call fcn.140015c64
cmp byte [rbp + 0x3f], r15b
je 0x140022774
mov rcx, qword [rbp + 0x27]
call fcn.140015c64
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140024940
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140024968
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140024968
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001720
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140002570
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140001790
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140009094]
test esi, esi
mov rbx, rcx
jle 0x1400018c0
mov rax, qword [0x140009098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400017db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001865
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017c0
mov rcx, rbx
call fcn.140002200
test rax, rax
mov rdi, rax
je 0x1400018e2
mov rax, qword [0x140009098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002340
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140009098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000185e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001870
add dword [0x140009094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140009098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000185e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001720
nop dword [rax]
xor esi, esi
jmp 0x1400017e8
mov rax, qword [0x140009098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140001720
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140001720
nop
nop word cs:[rax + rax]
nop dword [rax]