joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003ef0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180004110
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180003ff7
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180003f54
mov rax, qword [0x180024008]
cmp qword [rsp + 0x20], rax
ja 0x180003f54
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180003f16
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18000a5e0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180003f83
jmp 0x180003ff7
cmp dword [rsp + 0x50], 0x10000
jne 0x180003fda
cmp qword [rsp + 0x48], 0x10000
jb 0x180003fda
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180003fc8
mov rax, qword [rsp + 0x28]
jmp 0x180003ff9
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180003ff2
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180004110
mov qword [rsp + 0x20], rax
jmp 0x180003f16
xor eax, eax
add rsp, 0x68
ret

Function at 0x180004000
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180004150
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180004103
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18000405b
mov rax, qword [0x180024008]
cmp qword [rsp + 0x20], rax
ja 0x18000405b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18000401d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18000a5e0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18000408a
jmp 0x180004103
cmp dword [rsp + 0x50], 0x10000
jne 0x1800040e1
cmp qword [rsp + 0x48], 0x10000
jb 0x1800040e1
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800040cf
mov rax, qword [rsp + 0x28]
jmp 0x180004105
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800040fe
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180004150
mov qword [rsp + 0x20], rax
jmp 0x18000401d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800041a0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004730
mov qword [rsp + 0x28], 0
cmp qword [0x180024bd8], 0
jne 0x1800041e8
cmp qword [0x180024bd0], 0
je 0x1800041e8
mov rax, qword [0x180024bd0]
mov qword [0x180024bd8], rax
cmp qword [0x180024bd8], 0
je 0x18000428e
mov rax, qword [0x180024bd8]
cmp qword [rax + 0x10], 0
je 0x18000428e
mov rax, qword [0x180024bd8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000428e
mov rax, qword [0x180024bd8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000428e
mov rax, qword [0x180024bd8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180004254
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18000425b
xor eax, eax
jmp 0x180004409
mov rax, qword [0x180024bd8]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.18000a5e0
mov rax, qword [rsp + 0x28]
jmp 0x180004409
mov rax, qword [0x180024bd0]
mov qword [0x180024bd8], rax
jmp 0x1800042b0
mov rax, qword [0x180024bd8]
mov rax, qword [rax + 8]
mov qword [0x180024bd8], rax
cmp qword [0x180024bd8], 0
je 0x1800042fd
cmp qword [0x180024bd8], 0
je 0x1800042fb
mov rax, qword [0x180024bd8]
cmp qword [rax + 0x10], 0
je 0x1800042fb
mov rax, qword [0x180024bd8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800042fb
mov rax, qword [0x180024bd8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800042fb
jmp 0x18000422c
jmp 0x18000429e
mov rcx, qword [rsp + 0x60]
call fcn.180006360
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004410
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180004407
mov rax, qword [rsp + 0x48]
mov qword [0x180024bd8], rax
mov rax, qword [0x180024bd8]
mov dword [rax], 0x52727464
mov rax, qword [0x180024bd8]
mov qword [rax + 0x10], 0
mov rax, qword [0x180024bd8]
mov rcx, qword [0x180024bd0]
mov qword [rax + 8], rcx
mov rax, qword [0x180024bd8]
mov qword [0x180024bd0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180024bd8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1800043b8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1800043f2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1800043ae
mov rax, qword [0x180024bd8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18000422c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180006370
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
cmp dword [0x180024c60], 0
je 0x180006384
xor eax, eax
jmp 0x1800065ed
cmp qword [0x180024c58], 0
je 0x18000639a
mov rax, qword [0x180024c58]
jmp 0x1800065ed
mov r8d, 0x48
xor edx, edx
lea rcx, [0x180024c10]
call fcn.18000a5e0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x180024c10], rax
xor r8d, r8d
xor edx, edx
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x180024c18], rax
cmp qword [0x180024c18], 0
jne 0x180006453
mov dword [0x180024c60], 1
cmp qword [0x180024c18], 0
je 0x1800063ff
mov rcx, qword [0x180024c18]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x180024c20], 0
mov qword [0x180024c28], 0
mov qword [0x180024c30], 0
mov qword [0x180024c38], 0
mov qword [0x180024c40], 0
mov qword [0x180024c48], 0
mov qword [0x180024c50], 0
xor eax, eax
jmp 0x1800065ed
lea rdx, str.ImagehlpApiVersionEx
mov rcx, qword [0x180024c18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180024c20], rax
lea rdx, str.SymInitialize
mov rcx, qword [0x180024c18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180024c28], rax
lea rdx, str.SymSetOptions
mov rcx, qword [0x180024c18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180024c30], rax
lea rdx, str.SymGetOptions
mov rcx, qword [0x180024c18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180024c38], rax
lea rdx, str.SymLoadModule64
mov rcx, qword [0x180024c18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180024c40], rax
lea rdx, str.SymGetModuleInfo64
mov rcx, qword [0x180024c18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180024c48], rax
lea rdx, str.SymFromName
mov rcx, qword [0x180024c18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180024c50], rax
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.18000a5e0
mov eax, 0xc
mov word [rsp + 0x28], ax
cmp qword [0x180024c20], 0
je 0x18000655e
cmp qword [0x180024c28], 0
je 0x18000655e
cmp qword [0x180024c40], 0
je 0x18000655e
cmp qword [0x180024c48], 0
je 0x18000655e
cmp qword [0x180024c50], 0
jne 0x180006563
jmp 0x1800063de
lea rcx, [rsp + 0x28]
call qword [0x180024c20]
movzx eax, word [rsp + 0x28]
cmp eax, 0xc
jge 0x18000657d
jmp 0x1800063de
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x180024c10]
call qword [0x180024c28]
test eax, eax
jne 0x180006598
jmp 0x1800063de
cmp qword [0x180024c38], 0
je 0x1800065d8
cmp qword [0x180024c30], 0
je 0x1800065d8
call qword [0x180024c38]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 0xfffffff8
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
or eax, 0x2704
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
call qword [0x180024c30]
lea rax, [0x180024c10]
mov qword [0x180024c58], rax
mov rax, qword [0x180024c58]
add rsp, 0x38
ret
Function at 0x1800122ac
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 0x1800122dc
xor eax, eax
jmp 0x18001239f
mov rbp, rbx
cmp word [rax], si
je 0x180012301
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800122e8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800122e4
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.1800121fc
movsxd r14, eax
test eax, eax
jne 0x18001233f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800122d5
mov rcx, r14
call fcn.180010750
mov rdi, rax
test rax, rax
jne 0x180012358
xor ecx, ecx
call fcn.180010864
jmp 0x180012334
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.1800121fc
test eax, eax
jne 0x180012389
mov rcx, rdi
call fcn.180010864
jmp 0x180012393
xor ecx, ecx
call fcn.180010864
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 0x10000fd40
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x1001556a0], ecx
xor eax, eax
add eax, 1
lea rdx, [0x1001556a0]
movsxd rcx, eax
mov r8d, dword [rdx + rcx*4 - 4]
mov ecx, r8d
shr ecx, 0x1e
xor ecx, r8d
imul ecx, ecx, 0x6c078965
mov r8d, eax
add r8d, ecx
mov ecx, eax
mov dword [rdx + rcx*4], r8d
cmp eax, 0x26f
jl 0x10000fd48
mov dword [0x1000d7d60], 0x270
ret

Function at 0x10000fd90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0xffffffff
nop dword [rax]
add eax, 1
movsxd rdx, eax
lea rcx, [0x1001556a0]
mov ecx, dword [rcx + rdx*4 + 4]
mov edx, eax
lea r8, [0x1001556a0]
mov r8d, dword [r8 + rdx*4]
mov edx, ecx
and edx, 1
neg rdx
and edx, 0x9908b0df
and r8d, 0x80000000
and ecx, 0x7fffffff
or r8d, ecx
shr r8d, 1
xor edx, r8d
movsxd rcx, eax
lea r8, [0x1001556a0]
xor edx, dword [r8 + rcx*4 + 0x634]
mov ecx, eax
lea r8, [0x1001556a0]
mov dword [r8 + rcx*4], edx
cmp eax, 0xe2
jl 0x10000fd98
mov eax, 0xe2
nop dword [rax]
add eax, 1
movsxd rdx, eax
lea rcx, [0x1001556a0]
mov ecx, dword [rcx + rdx*4 + 4]
mov edx, eax
lea r8, [0x1001556a0]
mov r8d, dword [r8 + rdx*4]
mov edx, ecx
and edx, 1
neg rdx
and edx, 0x9908b0df
and r8d, 0x80000000
and ecx, 0x7fffffff
or r8d, ecx
shr r8d, 1
xor edx, r8d
movsxd rcx, eax
lea r8, [0x1001556a0]
xor edx, dword [r8 + rcx*4 - 0x38c]
mov ecx, eax
lea r8, [0x1001556a0]
mov dword [r8 + rcx*4], edx
cmp eax, 0x26e
jl 0x10000fe08
mov edx, dword [0x1001556a0]
mov ecx, dword [0x10015605c]
mov eax, edx
and eax, 1
neg rax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x100155cd0]
mov dword [0x10015605c], eax
mov dword [0x1000d7d60], 0
ret

Function at 0x10000fec0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbx
lea rsp, [rsp - 0x20]
mov ebx, dword [0x1000d7d60]
add dword [0x1000d7d60], 1
mov eax, dword [0x100154020]
cmp eax, dword [0x1000d77b0]
jne 0x10000fee9
cmp ebx, 0x271
jb 0x10000ff0c
mov ecx, dword [0x100154020]
call fcn.10000fd40
not dword [0x100154020]
mov eax, dword [0x100154020]
mov dword [0x1000d77b0], eax
mov ebx, 0x270
nop
cmp ebx, 0x270
jne 0x10000ff28
call fcn.10000fd90
xor ebx, ebx
mov dword [0x1000d7d60], 1
nop dword [rax]
and ebx, ebx
lea rax, [0x1001556a0]
mov edx, dword [rax + rbx*4]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
nop
lea rsp, [rsp + 0x20]
pop rbx
ret
Function at 0x100012060
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
push rdi
push rsi
lea rsp, [rsp - 0x20]
mov ax, word [0x1000d7500]
cmp ax, 0xcb
je 0x10001219c
cmp ax, 0xcc
je 0x10001219c
nop
mov rax, qword [0x1001563a0]
test rax, rax
je 0x10001209d
mov ecx, dword [0x100156190]
call rax
mov rbx, rax
jmp 0x1000120a4
lea rbx, [0x100156198]
cmp word [0x100156180], 0
jle 0x1000120cc
lea rcx, [0x100156150]
call fcn.1000123f0
mov rcx, rbx
call fcn.100011b20
mov rcx, rbx
call fcn.100011bb0
nop
mov rsi, qword [rbx]
jmp 0x1000120f9
mov rdi, qword [rsi + 8]
mov rax, qword [rsi]
and rax, 1
jne 0x1000120f2
mov rdx, rsi
mov rcx, rbx
call fcn.100010da0
jmp 0x1000120f6
and qword [rsi], 0xfffffffffffffffe
mov rsi, rdi
test rsi, rsi
jne 0x1000120d8
mov qword [rbx], 0
mov dword [rbx + 0x90], 0
cmp word [0x100156180], 0
jle 0x10001219c
lea rdx, [0x100156060]
mov rcx, rbx
call fcn.100010f20
mov rsi, rax
test rax, rax
je 0x100012168
mov rax, qword [0x100156100]
mov qword [rsi + 0x18], rax
cmp qword [0x100156100], 0
je 0x100012158
mov rax, qword [0x100156100]
mov qword [rax + 0x10], rsi
nop dword [rax]
mov rax, qword [rbx + 0xa0]
mov qword [0x100156100], rax
nop
sub word [0x100156180], 1
cmp word [0x100156180], 0
sete bl
lea rcx, [0x100156150]
call fcn.100012430
test bl, bl
je 0x10001219c
lea rcx, [0x100156150]
call fcn.1000123d0
nop dword [rax]
nop
lea rsp, [rsp + 0x20]
pop rsi
pop rdi
pop rbx
ret
Function at 0x1000152d0
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x70]
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], r12
mov sil, cl
mov rdi, rdx
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
nop
test sil, sil
je 0x10001540e
movzx eax, sil
sub eax, 0xffffffc0
mov word [rbp - 8], ax
mov word [rbp - 6], 0x3a
mov word [rbp - 4], 0
mov word [rbp - 2], 0
lea rcx, [rbp - 8]
lea r9, [rbp - 0x10]
xor r8, r8
xor edx, edx
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
mov edx, ebx
sub rdx, 1
mov rcx, rdi
call fcn.10000be90
mov r8, qword [rdi]
test r8, r8
jne 0x10001535f
lea r8, [0x100155470]
lea rcx, [rbp - 8]
lea r9, [rbp - 0x10]
mov edx, ebx
call sub.kernel32.dll_GetFullPathNameW
mov r12d, eax
test eax, eax
jne 0x1000153cb
call sub.kernel32.dll_GetLastError
mov ecx, eax
call fcn.1000048f0
lea rcx, [rbp - 0x18]
call fcn.10000aa50
and esi, 0xff
lea edx, [esi + 0x41]
sub edx, 1
and edx, 0xffff
lea rcx, [rbp - 0x20]
call fcn.10000af70
mov rdx, qword [rbp - 0x20]
lea r8, [0x1000e377c]
lea rcx, [rbp - 0x18]
call fcn.10000ae10
mov rdx, qword [rbp - 0x18]
mov rcx, rdi
call fcn.10000b750
jmp 0x100015460
mov eax, ebx
sub rax, 1
mov edx, r12d
cmp rax, rdx
je 0x1000153e4
mov edx, r12d
mov rcx, rdi
call fcn.10000be90
cmp byte [0x1000d7780], 0
jne 0x100015460
mov rdx, qword [rdi]
lea rcx, [rbp - 0x28]
call fcn.10000c580
mov rdx, qword [rbp - 0x28]
mov rcx, rdi
call fcn.10000b810
nop dword [rax]
jmp 0x100015460
xor edx, edx
xor ecx, ecx
call sub.kernel32.dll_GetCurrentDirectoryW
mov ebx, eax
mov edx, ebx
sub rdx, 1
mov rcx, rdi
call fcn.10000be90
mov rdx, qword [rdi]
test rdx, rdx
jne 0x100015436
lea rdx, [0x100155470]
mov ecx, ebx
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x1000d7780], 0
jne 0x100015460
mov rdx, qword [rdi]
lea rcx, [rbp - 0x28]
call fcn.10000c580
mov rdx, qword [rbp - 0x28]
mov rcx, rdi
call fcn.10000b810
nop
nop
mov rcx, rbp
call fcn.1000152a0
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
mov r12, qword [rbp - 0x30]
lea rsp, [rbp]
pop rbp
ret
Function at 0x100015960
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push rsi
push r12
push r13
push r14
lea rsp, [rsp - 0x128]
xor esi, esi
mov qword [0x1001553b0], 0
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x24]
mov r8d, 0x104
xor ecx, ecx
call sub.kernel32.dll_GetModuleFileNameA
mov ebx, eax
and eax, eax
mov byte [rsp + rax + 0x24], 0
mov r8d, ebx
xor edx, edx
mov rcx, rsp
call fcn.100015b40
movsxd rax, ebx
lea r8, [rax + 1]
mov rax, qword [0x1001553b0]
mov rdx, qword [rax]
lea rcx, [rsp + 0x24]
call fcn.1000040c0
call sub.kernel32.dll_GetCommandLineA
mov qword [0x1000d7580], rax
mov r14, rax
jmp 0x100015ae7
add r14, 1
movzx eax, byte [r14]
sub eax, 1
cmp eax, 0x20
jb 0x1000159e8
cmp byte [r14], 0
je 0x100015af1
nop
xor dil, dil
mov r12, r14
xor ebx, ebx
jmp 0x100015a50
mov al, byte [r14]
cmp al, 1
jb 0x100015a48
sub al, 0x20
jbe 0x100015a24
sub al, 2
je 0x100015a30
jmp 0x100015a48
test dil, dil
je 0x100015a56
add ebx, 1
jmp 0x100015a4c
cmp byte [r14 + 1], 0x22
je 0x100015a40
test dil, dil
sete dil
jmp 0x100015a4c
add r14, 1
jmp 0x100015a4c
add ebx, 1
nop
add r14, 1
cmp byte [r14], 0
jne 0x100015a10
test esi, esi
je 0x100015ae4
mov r8d, ebx
mov edx, esi
mov rcx, rsp
call fcn.100015b40
xor dil, dil
mov r14, r12
mov rdx, qword [0x1001553b0]
movsxd rax, esi
mov r13, qword [rdx + rax*8]
jmp 0x100015ad8
mov al, byte [r14]
cmp al, 1
jb 0x100015ac8
sub al, 0x20
jbe 0x100015a9c
sub al, 2
je 0x100015ab0
jmp 0x100015ac8
test dil, dil
je 0x100015ade
mov al, byte [r14]
mov byte [r13], al
add r13, 1
jmp 0x100015ad4
cmp byte [r14 + 1], 0x22
je 0x100015ac0
test dil, dil
sete dil
jmp 0x100015ad4
add r14, 1
jmp 0x100015ad4
mov al, byte [r14]
mov byte [r13], al
add r13, 1
nop
add r14, 1
cmp byte [r14], 0
jne 0x100015a88
mov byte [r13], 0
nop
add esi, 1
cmp byte [r14], 0
jne 0x1000159ec
mov dword [0x1001553a0], esi
movsxd rax, esi
lea rdx, [rax + 1]
shl rdx, 3
lea rcx, [0x1001553b0]
call fcn.100011e40
mov rax, qword [0x1001553b0]
movsxd rsi, esi
mov qword [rax + rsi*8], 0
nop
lea rsp, [rsp + 0x128]
pop r14
pop r13
pop r12
pop rsi
pop rdi
pop rbx
ret
Function at 0x100017e60
Capabilities:
Get geographical location

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x50]
mov dword [rbp - 8], ecx
mov dword [rbp - 0x10], edx
mov byte [rbp - 0x18], r8b
lea r8, [rbp - 0x24]
mov edx, dword [rbp - 0x10]
mov ecx, dword [rbp - 8]
mov r9d, 4
call sub.kernel32.dll_GetLocaleInfoW
mov dword [rbp - 0x28], eax
cmp eax, 2
jle 0x100017f12
mov eax, dword [rbp - 0x28]
sub eax, 2
test eax, eax
jl 0x100017f2f
mov dword [rbp - 0x2c], 0xffffffff
nop dword [rax]
mov edx, dword [rbp - 0x2c]
add edx, 1
mov dword [rbp - 0x2c], edx
mov dx, word [rbp + rdx*2 - 0x24]
mov word [rbp - 0x30], dx
mov edx, dword [rbp - 0x2c]
mov dx, word [rbp + rdx*2 - 0x24]
cmp dx, 0x20
jb 0x100017f2f
sub dx, 0x20
je 0x100017f08
sub dx, 0x80
je 0x100017f08
sub dx, 0x1f62
jb 0x100017f2f
sub dx, 1
jbe 0x100017f08
sub dx, 6
je 0x100017f08
sub dx, 0x26
jne 0x100017f2f
nop
jmp 0x100017f08
cmp eax, dword [rbp - 0x2c]
jg 0x100017eb0
nop dword [rax]
jmp 0x100017f2f
cmp dword [rbp - 0x28], 2
jne 0x100017f22
mov ax, word [rbp - 0x24]
mov word [rbp - 0x30], ax
jmp 0x100017f2f
movzx ecx, byte [rbp - 0x18]
call fcn.10000bb10
mov word [rbp - 0x30], ax
mov ax, word [rbp - 0x30]
sub ax, 0x7f
jbe 0x100017fac
sub ax, 0x21
je 0x100017fc0
sub ax, 0x17
je 0x100017fcc
sub ax, 0x222
je 0x100017fd8
sub ax, 0x392
je 0x100017fe0
sub ax, 1
je 0x100017fe8
sub ax, 0x1996
je 0x100017ff0
sub ax, 1
je 0x100017ff8
sub ax, 6
je 0x100018000
sub ax, 0xb
je 0x100018010
sub ax, 0x1b
je 0x100018008
sub ax, 0x367
je 0x100018018
jmp 0x100018020
movzx ecx, word [rbp - 0x30]
call fcn.10000bb90
mov byte [rbp - 0x1c], al
jmp 0x100018028
mov byte [rbp - 0x1c], 0x20
jmp 0x100018028
mov byte [rbp - 0x1c], 0x2e
jmp 0x100018028
mov byte [rbp - 0x1c], 0x27
jmp 0x100018028
mov byte [rbp - 0x1c], 0x2c
jmp 0x100018028
mov byte [rbp - 0x1c], 0x27
jmp 0x100018028
mov byte [rbp - 0x1c], 0x20
jmp 0x100018028
mov byte [rbp - 0x1c], 0x20
jmp 0x100018028
mov byte [rbp - 0x1c], 0x20
jmp 0x100018028
mov byte [rbp - 0x1c], 0x20
jmp 0x100018028
mov byte [rbp - 0x1c], 0x2d
jmp 0x100018028
mov byte [rbp - 0x1c], 0x27
jmp 0x100018028
mov al, byte [rbp - 0x18]
mov byte [rbp - 0x1c], al
nop
movzx eax, byte [rbp - 0x1c]
nop
lea rsp, [rbp]
pop rbp
ret
Function at 0x10002ca60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x2b0]
mov qword [rbp - 0x290], rbx
mov qword [rbp - 0x288], rdi
mov qword [rbp - 0x280], rsi
mov qword [rbp - 8], rcx
mov byte [rbp - 0x10], dl
mov bl, r8b
lea rdx, [0x1000ea5a8]
lea rcx, [rbp - 0x278]
call fcn.10000f500
nop
mov rcx, qword [rbp - 8]
test rcx, rcx
jne 0x10002caaf
lea rcx, [0x100155470]
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x10002caf2
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x10002cacd
clc
jmp 0x10002cad4
bt dword [0x1000e97d0], eax
jb 0x10002caea
mov rcx, rbp
call fcn.10002cba0
test al, al
je 0x10002caea
mov dil, 1
jmp 0x10002cb70
xor dil, dil
jmp 0x10002cb70
mov eax, esi
and eax, 0x10
movzx ecx, byte [rbp - 0x10]
lea rdx, [0x1000d9400]
cmp eax, dword [rdx + rcx*4]
sete dil
and bl, dil
je 0x10002cb70
and esi, 0x400
je 0x10002cb70
lea rbx, [rbp - 0x278]
lea rdx, [0x1000ea5a8]
mov rcx, rbx
call fcn.10000f5e0
mov rdx, rbx
mov rcx, qword [rbp - 8]
xor r8b, r8b
call fcn.10002c690
test eax, eax
je 0x10002cb4c
sub eax, 1
je 0x10002cb64
jmp 0x10002cb6c
mov dl, byte [rbp - 0x10]
mov rcx, qword [rbp - 0x278]
xor r8b, r8b
call fcn.10002ca60
mov dil, al
jmp 0x10002cb70
mov dil, 1
jmp 0x10002cb70
xor dil, dil
nop
nop
mov rcx, rbp
call fcn.10002ca30
mov al, dil
mov rbx, qword [rbp - 0x290]
mov rdi, qword [rbp - 0x288]
mov rsi, qword [rbp - 0x280]
lea rsp, [rbp]
pop rbp
ret

Function at 0x10002cdf0
Capabilities:
Get file attributes

Disassembly:
lea rsp, [rsp - 0x28]
test rcx, rcx
jne 0x10002ce01
lea rcx, [0x100155470]
call sub.kernel32.dll_GetFileAttributesW
nop
lea rsp, [rsp + 0x28]
ret

Function at 0x10002cf30
Capabilities:
Get geographical location

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x50]
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], r13
mov rsi, rcx
mov edi, edx
mov r12d, r8d
mov r13, r9
mov qword [rbp - 8], 0
nop
mov edx, r12d
mov ecx, edi
xor r9d, r9d
xor r8, r8
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x10002cfb1
movsxd rdx, ebx
sub rdx, 1
lea rcx, [rbp - 8]
call fcn.10000be90
cmp ebx, 1
jle 0x10002cfa0
mov r8, qword [rbp - 8]
mov r9d, ebx
mov edx, r12d
mov ecx, edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
nop
mov rcx, rsi
mov rdx, qword [rbp - 8]
xor r8d, r8d
call fcn.10000b5f0
jmp 0x10002cfbc
mov rcx, rsi
mov rdx, r13
call fcn.100008da0
nop
mov rcx, rbp
call fcn.10002cf10
mov rbx, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x20]
mov r12, qword [rbp - 0x18]
mov r13, qword [rbp - 0x10]
lea rsp, [rbp]
pop rbp
ret