joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14021d510
Capabilities:
Reference sql statements

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rax, str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
movq xmm1, rax
movsxd rbp, edx
mov rbx, rcx
mov rdi, r8
cmp qword [rbx + rbp*8 + 0x28], 0
lea r13, [rbp + 4]
mov rsi, rbp
mov r12, r9
lea rcx, str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
movq xmm0, rcx
punpcklqdq xmm0, xmm1
movaps xmmword [rsp + 0x40], xmm0
je 0x14021d5c0
mov ecx, dword [rbx + 0x40]
test ecx, ecx
je 0x14021d570
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rbp, qword [rbx + rbp*8 + 0x28]
mov r8, rdi
mov edx, 1
mov rcx, rbp
call fcn.1401935c0
mov rcx, rbp
call fcn.1401f4fe0
cmp eax, 0x65
je 0x14021d5e0
cmp eax, 0x64
je 0x14021d610
mov rcx, rbp
call fcn.1401c5d20
mov edx, dword [rbx + 0x40]
test edx, edx
jne 0x14021d55f
mov dword [rbx + 0x40], eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rdx, qword [rsp + rbp*8 + 0x40]
mov rcx, rbx
mov r9, qword [rbx + 0x10]
mov r8, qword [rbx + 8]
call fcn.140210480
mov qword [rbx + r13*8 + 8], rax
jmp 0x14021d558
test esi, esi
mov r9, r12
mov r8, rdi
lea rdx, str.__rowid
mov rcx, rbx
lea rax, str.__parent
cmovne rax, rdx
lea rdx, str.Mapping___lld_____lld__missing_from__s_table
mov qword [rsp + 0x20], rax
call fcn.1401b97c0
jmp 0x14021d597
xor edx, edx
mov rcx, rbp
call fcn.140160a60
cmp r12, rax
mov r9, rax
je 0x14021d597
test esi, esi
mov qword [rsp + 0x30], r12
mov r8, rdi
mov rcx, rbx
lea rdx, str.__rowid
mov qword [rsp + 0x28], rdi
lea rax, str.__parent
cmovne rax, rdx
lea rdx, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov qword [rsp + 0x20], rax
call fcn.1401b97c0
jmp 0x14021d597
Function at 0x140239c00
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.14023ae50
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.14023ae50
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 0x140239c70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14041f3a4]
test esi, esi
mov rbx, rcx
jle 0x140239da0
mov rax, qword [0x14041f3a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140239cbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140239d45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140239ca0
mov rcx, rbx
call fcn.14023a6e0
test rax, rax
mov rdi, rax
je 0x140239dc2
mov rax, qword [0x14041f3a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14023a820
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14041f3a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140239da7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140239d3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140239d50
add dword [0x14041f3a4], 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 [0x14041f3a8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140239d3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140239c00
nop dword [rax]
xor esi, esi
jmp 0x140239cc8
mov rax, qword [0x14041f3a8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140239c00
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140239c00
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14023a330
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14041f400]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14041f3e0]
test rbx, rbx
je 0x14023a38c
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 0x14023a383
test rsi, rsi
je 0x14023a383
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14023a368
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 0x14023a5a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14023a5d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14023a5e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14023a5b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14023a5d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14023a5e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14023a5c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14023a5d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14023a5e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14023a6e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1403b6a90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14023a700
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14023a708
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14023a700
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14023a75d
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]
cmp rcx, r8
mov rdx, r8
jb 0x14023a754
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14023a700
add rax, 0x28
cmp rax, r9
jne 0x14023a740
xor eax, eax
ret

Function at 0x14023a760
Capabilities:
Parse pe header

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

Function at 0x14023a820
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1403b6a90]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14023a83f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14023a848
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140005a70
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x14006c080]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov ebx, edx
xor esi, esi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rax
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x30], 0x68
mov dword [rbp + 0xc], 1
mov word [rbp + 0x10], si
mov edi, esi
mov eax, 0x10
test edx, edx
cmove edi, eax
lea rax, str.cmd.exe__c_
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0xd
mov rdx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x140005b07
mov rdx, qword [rcx]
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbp - 0x80], xmm0
movabs rax, 0xc000000000000000
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x50], 1
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm1
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x58]
call fcn.14000e440
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 7
cmova rdx, qword [rbp - 0x58]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140005bb1
xor bl, bl
jmp 0x140005bd7
test ebx, ebx
je 0x140005bc1
mov edx, ebx
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov rdx, qword [rbp - 0x40]
cmp rdx, 7
jbe 0x140005c13
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005c0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005c3b
call fcn.140018bd4
movzx eax, bl
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140018810
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140020f88
int3
Function at 0x140006290
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x4b0
mov rax, qword [0x14006c080]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov r14, rdx
mov esi, ecx
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, 0x234
call fcn.140036040
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
test rax, rax
je 0x14000639c
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x4c0], rbx
mov rcx, rdi
mov dword [rsp + 0x40], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140006389
nop dword [rax + rax]
mov r8d, dword [rsp + 0x48]
cmp r8d, esi
jne 0x140006377
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140006377
xor edx, edx
lea rcx, [rsp + 0x290]
mov r8d, 0x208
call fcn.140036040
lea r9, [rsp + 0x280]
mov dword [rsp + 0x280], 0x104
lea r8, [rsp + 0x290]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
jne 0x1400063c2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140006310
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rbx, qword [rsp + 0x4c0]
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.140018810
lea r11, [rsp + 0x4b0]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
xorps xmm0, xmm0
lea rax, [rsp + 0x290]
xorps xmm1, xmm1
mov r8, 0xffffffffffffffff
movups xmmword [rsp + 0x20], xmm0
movdqu xmmword [rsp + 0x30], xmm1
inc r8
cmp word [rax + r8*2], 0
jne 0x1400063e2
lea rdx, [rsp + 0x290]
lea rcx, [rsp + 0x20]
call fcn.14000c310
lea rax, [rsp + 0x20]
cmp r14, rax
je 0x140006469
mov rdx, qword [r14 + 0x18]
cmp rdx, 7
jbe 0x140006448
mov rcx, qword [r14]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140006443
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400064c0
mov rcx, r8
call fcn.140018bd4
movups xmm0, xmmword [rsp + 0x20]
xor eax, eax
mov edx, 7
movups xmm1, xmmword [rsp + 0x30]
mov word [rsp + 0x20], ax
movups xmmword [r14], xmm0
movups xmmword [r14 + 0x10], xmm1
jmp 0x14000646e
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x1400064a7
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400064a2
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400064c0
call fcn.140018bd4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140006394
call fcn.140020f88
int3
Function at 0x140017778
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [0x14006c008]
syscall
ret

Function at 0x1400177b4
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [0x14006c01c]
syscall
ret

Function at 0x1400177cc
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [0x14006c024]
syscall
ret

Function at 0x1400196bc
Capabilities:
Parse pe header

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

Function at 0x140022dc0
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 0x140022e2f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140022e2f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140022e2f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140022e2f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140022e2f
cmp dword [rcx + 0x84], 0xe
jbe 0x140022e2f
cmp dword [rcx + 0xf8], 0
je 0x140022e2f
mov ecx, ebx
call fcn.140022ed4
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.140022cc8
nop
cmp dword [rbp + 0x20], 0
jne 0x140022e90
call fcn.14002b148
cmp eax, 1
jne 0x140022e80
xor dl, dl
jmp 0x140022e8a
call fcn.14002b114
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140022e9b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140022ea4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140022dc0

Function at 0x140022fa8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140022dc0

Function at 0x140029250
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140072050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x1400292b5
test rax, rax
jne 0x1400292a3
lea r9, str.GetLocaleInfoEx
lea r8, [0x14005a228]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.140028e60
test rax, rax
je 0x1400292b5
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.140035950
jmp 0x1400292cf
xor edx, edx
mov rcx, rbp
call fcn.140029540
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14002c758
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 0x14002c788
xor eax, eax
jmp 0x14002c84b
mov rbp, rbx
cmp word [rax], si
je 0x14002c7ad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002c794
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002c790
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.14002ae18
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x14002c7ee
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002c781
call fcn.140026140
mov rdi, rax
test rax, rax
jne 0x14002c804
xor ecx, ecx
call fcn.1400260e0
jmp 0x14002c7e3
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.14002ae18
test eax, eax
jne 0x14002c835
mov rcx, rdi
call fcn.1400260e0
jmp 0x14002c83f
xor ecx, ecx
call fcn.1400260e0
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 0x14002fae4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x14002fb57
cmp word [rcx], si
je 0x14002fb57
lea rdx, [0x14005b368]
call fcn.140033a0c
test eax, eax
je 0x14002fb57
lea rdx, [0x14005b380]
mov rcx, rbx
call fcn.140033a0c
test eax, eax
jne 0x14002fb4d
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14002fb74
mov eax, dword [rsp + 0x30]
jmp 0x14002fb86
mov rcx, rbx
call fcn.140025f80
jmp 0x14002fb86
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x14002fb78
xor eax, eax
jmp 0x14002fb86
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x14002fb86
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002fb98
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.140027e38
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14002fc3b
cmp edi, dword [rsp + 0x30]
je 0x14002fc34
test ebp, ebp
je 0x14002fc34
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x14002fc10
sub dx, 0x61
cmp dx, 0x19
ja 0x14002fc1c
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x14002fbfd
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x14002fc20
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x14002fc3d
mov eax, 1
jmp 0x14002fc3d
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140032740
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.140021000
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400327ca
cmp byte [rbp - 0x21], r15b
je 0x1400327c5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140032800
call fcn.140029070
test eax, eax
jne 0x1400327ec
cmp byte [rbp - 0x21], r15b
je 0x1400327e4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140032800
cmp byte [rbp - 0x21], r15b
je 0x1400327fd
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.1400227a4
test eax, eax
jne 0x1400328a0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140021000
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003283f
cmp byte [rbp - 0x21], r15b
je 0x140032874
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140032874
call fcn.140029070
test eax, eax
jne 0x140032860
cmp byte [rbp - 0x21], r15b
je 0x140032859
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140032874
cmp byte [rbp - 0x21], r15b
je 0x140032871
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.1400227a4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400328a0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400328a3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400328b1
mov rcx, rdi
call fcn.1400260e0
cmp byte [rbp + 0x3f], r15b
je 0x1400328c0
mov rcx, qword [rbp + 0x27]
call fcn.1400260e0
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 0x140035550
Capabilities:
Parse pe header

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