joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011b20
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x270
mov rax, qword [0x14004f678]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r14, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140011bf7
mov edi, 0x104
lea rcx, [rsp + 0x50]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, eax
lea ecx, [rsi - 1]
cmp ecx, 0x102
ja 0x140011c31
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x140011c3c
cmp dword [rsp + 0x40], ebx
lea rdx, str.SysWOW64_s
mov qword [rsp + 0x30], rbp
lea rax, str.System32_s
cmovne rax, rdx
lea rdx, [rsp + 0x50]
lea rcx, [rdx + rsi*2]
mov qword [rsp + 0x28], rax
sub rdi, rsi
mov dword [rsp + 0x20], 0x1800
mov rdx, rdi
xor r9d, r9d
xor r8d, r8d
call fcn.140007bc0
test eax, eax
js 0x140011c31
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140011c06
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400153e0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140011c09
Function at 0x140012140
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x30
xor edi, edi
mov eax, edi
test r8, r8
je 0x140012199
mov r10d, 0x3fffffff
mov rax, r8
mov r9d, r10d
nop dword [rax + rax]
cmp word [rax], di
je 0x14001216f
add rax, 2
sub r9, 1
jne 0x140012160
sub r10, r9
test r9, r9
cmove r10, rdi
lea rax, [r10 + r10]
jne 0x140012195
mov rax, rdi
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x30
pop rdi
ret
add rax, 2
mov dword [rsp + 0x28], eax
mov r9d, 1
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov qword [rsp + 0x40], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
mov rbx, qword [rsp + 0x40]
sete dil
mov eax, edi
add rsp, 0x30
pop rdi
ret

Function at 0x14001f81c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001f648
Function at 0x14005b920
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov dword [rsp + 8], 0xffffffff
mov dword [rsp + 0xc], 0
jmp 0x14005b952
mov eax, dword [rsp + 0xc]
inc eax
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0xc], eax
jae 0x14005b9fa
mov eax, dword [rsp + 0xc]
mov rcx, qword [rsp]
movzx eax, byte [rcx + rax]
movzx ecx, byte [rsp + 8]
xor eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 8]
shr eax, 8
mov dword [rsp + 8], eax
mov dword [rsp + 0x14], 0
jmp 0x14005b996
mov eax, dword [rsp + 0x14]
inc eax
mov dword [rsp + 0x14], eax
cmp dword [rsp + 0x14], 8
jge 0x14005b9e5
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x14005b9b2
mov dword [rsp + 0x1c], 1
jmp 0x14005b9ba
mov dword [rsp + 0x1c], 0
movzx eax, byte [rsp + 0x1c]
mov byte [rsp + 0x18], al
mov eax, dword [rsp + 0x10]
shr eax, 1
mov dword [rsp + 0x10], eax
movzx eax, byte [rsp + 0x18]
test eax, eax
je 0x14005b9e3
mov eax, dword [rsp + 0x10]
xor eax, 0xedb88320
mov dword [rsp + 0x10], eax
jmp 0x14005b98c
mov eax, dword [rsp + 0x10]
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 8], eax
jmp 0x14005b948
mov eax, dword [rsp + 8]
not eax
add rsp, 0x28
ret
Function at 0x97f1b0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x97f1bd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x97f1cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x97f1b5
lea eax, [rcx + 1]
jmp 0x97f1db
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x97f1ee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x97f1d4
sub eax, 3
jb 0x97f20e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x97f25d
sar eax, 1
movsxd rbp, eax
jb 0x97f244
jmp 0x97f21c
add ebx, ebx
jne 0x97f21a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x97f244
inc ecx
add ebx, ebx
jne 0x97f22a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x97f244
call r11
adc ecx, ecx
add ebx, ebx
jne 0x97f23d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x97f22c
add ecx, 2
jmp 0x97f249
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.0097f172
jmp 0x97f1bd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x261600
mov dl, 0x43
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x97f2a9
cmp rsi, rcx
jae 0x97f2b1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x97f290
cmp al, 0x8f
ja 0x97f290
cmp byte [rsi - 2], 0xf
je 0x97f296
sub al, 0xe8
cmp al, 1
ja 0x97f27a
cmp rsi, rcx
jae 0x97f2b1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x97f280
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x97f2b1
lodsb al, byte [rsi]
jmp 0x97f290
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x578000]
mov eax, dword [rdi]
or eax, eax
je 0x97f30e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x57f000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x97f2be
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x97f308
mov qword [rbx], rax
add rbx, 8
jmp 0x97f2de
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x97f352
cmp al, 0xef
ja 0x97f33a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x97f31a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x97f329
mov eax, dword [rdi]
add rdi, 4
jmp 0x97f329
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x97f3a6
sub rsp, 0xffffffffffffff80
jmp 0x4687c0
Function at 0x14005a110
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14005a11d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005a12d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14005a115
lea eax, [rcx + 1]
jmp 0x14005a13b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14005a14e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14005a134
sub eax, 3
jb 0x14005a16e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005a1bd
sar eax, 1
movsxd rbp, eax
jb 0x14005a1a4
jmp 0x14005a17c
add ebx, ebx
jne 0x14005a17a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005a1a4
inc ecx
add ebx, ebx
jne 0x14005a18a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005a1a4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14005a19d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14005a18c
add ecx, 2
jmp 0x14005a1a9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14005a0d2
jmp 0x14005a11d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x29000
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14005a209
cmp rsi, rcx
jae 0x14005a211
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14005a1f0
cmp al, 0x8f
ja 0x14005a1f0
cmp byte [rsi - 2], 0xf
je 0x14005a1f6
sub al, 0xe8
cmp al, 1
ja 0x14005a1da
cmp rsi, rcx
jae 0x14005a211
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14005a1e0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14005a211
lodsb al, byte [rsi]
jmp 0x14005a1f0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x58000]
mov eax, dword [rdi]
or eax, eax
je 0x14005a27a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x69440]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14005a21e
jns 0x14005a253
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14005a25d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14005a274
mov qword [rbx], rax
add rbx, 8
jmp 0x14005a23e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14005a2b4
cmp al, 0xef
ja 0x14005a2a6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14005a286
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14005a295
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14005a308
sub rsp, 0xffffffffffffff80
jmp 0x14000be20
Function at 0x140001000
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001040
lea rcx, str.powershell.exe_Invoke_WebRequest__Uri_https:__github.com_Daulaires_GodotTestGame_releases_download_1.0.0_data_Test_2_windows_x86_64.zip__OutFile_data_Test_2_windows_x86_64.zip
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.powershell.exe_Expand_Archive__Path_data_Test_2_windows_x86_64.zip__DestinationPath_data_Test_2_windows_x86_64
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.data_Test_2_windows_x86_64TestGame.03.exe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001b48
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b92
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b92
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b92
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b92
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b92
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b94
xor al, al
add rsp, 0x28
ret
Function at 0x140002780
Capabilities:
Create thread
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140141040]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.GetTickCount64
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Sleep
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rdi, rdi
je 0x1400028c2
test rax, rax
je 0x1400028c2
call rdi
mov ecx, 0x12c
call rbx
call rdi
mov dword [rsp + 0x30], 0x90909090
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x38
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x1400028c2
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.GetTickCount64
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Sleep
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rsi, rsi
je 0x1400028c2
test rax, rax
je 0x1400028c2
call rsi
mov ecx, 0x12c
call rbx
call rsi
xor ebx, ebx
lea r8, [rsp + 0x30]
mov r9d, 4
mov qword [rsp + 0x20], rbx
mov edx, 0x401000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x1400026f0]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400028c2

Function at 0x14000ab94
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000abde
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000abde
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000abde
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000abde
cmp dword [rcx + 0x84], 0xe
jbe 0x14000abde
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000abe0
xor al, al
add rsp, 0x28
ret
Function at 0x140014fe0
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 0x14001504f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001504f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001504f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001504f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001504f
cmp dword [rcx + 0x84], 0xe
jbe 0x14001504f
cmp dword [rcx + 0xf8], 0
je 0x14001504f
mov ecx, ebx
call fcn.1400150f4
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.140014ee8
nop
cmp dword [rbp + 0x20], 0
jne 0x1400150b0
call fcn.14001b984
cmp eax, 1
jne 0x1400150a0
xor dl, dl
jmp 0x1400150aa
call fcn.14001b950
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x1400150bb
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400150c4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140014fe0

Function at 0x1400151c8
Capabilities:
Parse pe header

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

Function at 0x1400193c4
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 [0x140146050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x140019429
test rax, rax
jne 0x140019417
lea r9, str.GetLocaleInfoEx
lea r8, [0x14002ade8]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.140018fd4
test rax, rax
je 0x140019429
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.140023c60
jmp 0x140019443
xor edx, edx
mov rcx, rbp
call fcn.1400196b4
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 0x14001cf94
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 0x14001cfc4
xor eax, eax
jmp 0x14001d087
mov rbp, rbx
cmp word [rax], si
je 0x14001cfe9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001cfd0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001cfcc
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.14001b654
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x14001d02a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001cfbd
call fcn.140019990
mov rdi, rax
test rax, rax
jne 0x14001d040
xor ecx, ecx
call fcn.140018b00
jmp 0x14001d01f
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.14001b654
test eax, eax
jne 0x14001d071
mov rcx, rdi
call fcn.140018b00
jmp 0x14001d07b
xor ecx, ecx
call fcn.140018b00
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 0x140020324
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 0x140020397
cmp word [rcx], si
je 0x140020397
lea rdx, [0x14002bf28]
call fcn.140022bdc
test eax, eax
je 0x140020397
lea rdx, [0x14002bf40]
mov rcx, rbx
call fcn.140022bdc
test eax, eax
jne 0x14002038d
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 0x1400203b4
mov eax, dword [rsp + 0x30]
jmp 0x1400203c6
mov rcx, rbx
call fcn.140018150
jmp 0x1400203c6
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 0x1400203b8
xor eax, eax
jmp 0x1400203c6
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x1400203c6
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 0x1400203d8
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.14001884c
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 0x14002047b
cmp edi, dword [rsp + 0x30]
je 0x140020474
test ebp, ebp
je 0x140020474
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x140020450
sub dx, 0x61
cmp dx, 0x19
ja 0x14002045c
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x14002043d
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x140020460
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x14002047d
mov eax, 1
jmp 0x14002047d
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 0x140021910
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.1400106e0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002199a
cmp byte [rbp - 0x21], r15b
je 0x140021995
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400219d0
call fcn.1400191e4
test eax, eax
jne 0x1400219bc
cmp byte [rbp - 0x21], r15b
je 0x1400219b4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400219d0
cmp byte [rbp - 0x21], r15b
je 0x1400219cd
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.1400147c8
test eax, eax
jne 0x140021a70
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400106e0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140021a0f
cmp byte [rbp - 0x21], r15b
je 0x140021a44
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140021a44
call fcn.1400191e4
test eax, eax
jne 0x140021a30
cmp byte [rbp - 0x21], r15b
je 0x140021a29
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140021a44
cmp byte [rbp - 0x21], r15b
je 0x140021a41
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.1400147c8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140021a70
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140021a73
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140021a81
mov rcx, rdi
call fcn.140018b00
cmp byte [rbp + 0x3f], r15b
je 0x140021a90
mov rcx, qword [rbp + 0x27]
call fcn.140018b00
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 0x140023990
Capabilities:
Parse pe header

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