joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43acb0
Capabilities:
Hash data with md5

Disassembly:
lea rax, [0x0043eb30]
mov qword [rcx], rax
xor eax, eax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov dword [rcx + 0x4c], eax
mov dword [rcx + 0x48], eax
mov dword [rcx + 0x50], 0x67452301
mov dword [rcx + 0x54], 0xefcdab89
mov rax, rcx
mov dword [rcx + 0x58], 0x98badcfe
mov dword [rcx + 0x5c], 0x10325476
ret

Function at 0x43b870
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43b89b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042ccf0
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
test al, 1
je 0x43b8c5
test bl, 2
je 0x43b8c5
call fcn.0042cc90
mov dword [rax], 0xd
call fcn.0042ccc0
mov dword [rax], 5
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x180001000
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
cmp word [0x180003010], di
jne 0x18000115e
mov rcx, qword [rcx]
test rcx, rcx
je 0x18000115e
cmp word [rcx], di
je 0x18000115e
mov r8d, 0x80
lea rdx, [0x180003010]
mov r9d, edi
lea rax, [r8 + 0x7fffff7e]
test rax, rax
je 0x180001062
movzx eax, word [rcx]
test ax, ax
je 0x180001062
mov word [rdx], ax
add rcx, 2
add rdx, 2
dec r8
jne 0x18000103e
test r8, r8
jne 0x180001071
sub rdx, 2
mov r9d, 0x8007007a
test r9d, r9d
mov word [rdx], di
setns bl
test bl, bl
je 0x180001161
lea rcx, [0x180003138]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov ebx, edi
test eax, eax
setne bl
mov byte [0x180003131], bl
test bl, bl
je 0x180001161
lea rax, [0x180003128]
lea rdx, str.SoftwareMicrosoftInternet_ExplorerSearchScopes
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete bl
test bl, bl
je 0x180001161
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
mov qword [0x180003118], rax
setne bl
test bl, bl
je 0x180001161
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
mov qword [0x180003120], rax
setne bl
test bl, bl
je 0x180001161
lea r9, [0x180003010]
lea r8, [0x1800016f4]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov qword [0x180003110], rax
setne bl
test bl, bl
je 0x180001161
lea rcx, [0x180003010]
call fcn.1800015a4
jmp 0x180001166
mov bl, dil
call fcn.180001174
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180001218
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
lea rbp, [rax - 0x188]
sub rsp, 0x280
lea rcx, [0x180003138]
xor esi, esi
mov bl, sil
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x180003200]
mov edi, 0xea60
cmp eax, edi
jae 0x180001299
lea rdx, [rsp + 0x40]
lea rcx, [0x180003160]
call fcn.180001464
mov bl, al
test al, al
jne 0x18000128b
lea rdx, [rsp + 0x40]
lea rcx, [0x1800031b0]
call fcn.180001464
mov bl, al
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
mov dword [0x180003200], eax
lea rcx, [0x180003138]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
jne 0x180001444
lea r12, [0x180003010]
lea rax, [rbp + 0x40]
mov edx, 0xa0
mov r9, r12
lea rcx, [rbp + 0x40]
mov r10d, esi
sub r9, rax
mov r8d, edx
lea rax, [r8 + 0x7fffff5e]
test rax, rax
je 0x1800012f0
movzx eax, word [r9 + rcx]
test ax, ax
je 0x1800012f0
mov word [rcx], ax
add rcx, 2
dec r8
jne 0x1800012ce
mov r11d, 0x8007007a
test r8, r8
jne 0x180001302
sub rcx, 2
mov r10d, r11d
mov word [rcx], si
test r10d, r10d
js 0x1800013d2
mov rax, rdx
lea rcx, [rbp + 0x40]
cmp word [rcx], si
je 0x180001323
add rcx, 2
dec rax
jne 0x180001315
test rax, rax
je 0x1800013d2
mov rcx, rdx
mov r9d, esi
sub rcx, rax
sub rdx, rcx
lea rax, [rbp + rcx*2 + 0x40]
je 0x180001376
lea r10, str._SetDefaultSearchMtx
lea rcx, [rdx + rcx + 0x7fffff5e]
sub r10, rax
test rcx, rcx
je 0x180001371
movzx r8d, word [r10 + rax]
test r8w, r8w
je 0x180001371
mov word [rax], r8w
dec rcx
add rax, 2
dec rdx
jne 0x180001351
test rdx, rdx
jne 0x18000137d
sub rax, 2
mov r9d, r11d
mov word [rax], si
test r9d, r9d
js 0x1800013d2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r11, [rbp + 0x40]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], r11
mov qword [rsp + 0x28], r12
mov byte [rsp + 0x30], 1
call fcn.180001c08
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rdi, rdi
setne cl
test cl, cl
je 0x1800013d2
cmp eax, 0xb7
mov rcx, rdi
sete bl
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x180001444
lea rdx, [rsp + 0x40]
xor ecx, ecx
call fcn.180001464
mov bl, al
test al, al
je 0x180001444
lea rcx, [rsp + 0x40]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
sete bl
test bl, bl
je 0x180001444
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r11, str.AE3F1866_7E76_4162_97BD_5555D1C14635Mtx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], r11
mov qword [rsp + 0x28], r12
mov byte [rsp + 0x30], 1
call fcn.180001c08
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rdi, rdi
setne bl
test bl, bl
je 0x180001444
test eax, eax
mov rcx, rdi
sete bl
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x280]
mov al, bl
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180001464
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x190]
sub rsp, 0x290
xor r12d, r12d
mov rsi, rdx
mov rdi, rcx
mov dword [rbp + 0x1d0], 0x50
mov dword [rbp + 0x1d8], 0x100
mov ebx, 1
test rcx, rcx
jne 0x1800014ee
mov rcx, qword [0x180003128]
lea rax, [rbp + 0x1d0]
lea r9, [rbp + 0x1c0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea rdx, str.DefaultScope
xor r8d, r8d
lea rdi, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000158f
cmp dword [rbp + 0x1c0], ebx
jne 0x18000158f
lea r9, str.SoftwareMicrosoftInternet_ExplorerSearchScopes
lea rax, [rbp - 0x80]
mov edx, 0x104
lea rcx, [rbp - 0x80]
mov r8d, r12d
sub r9, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x18000152a
movzx eax, word [r9 + rcx]
test ax, ax
je 0x18000152a
mov word [rcx], ax
add rcx, 2
sub rdx, rbx
jne 0x180001508
test rdx, rdx
jne 0x180001539
sub rcx, 2
mov r8d, 0x8007007a
mov word [rcx], r12w
test r8d, r8d
js 0x18000158f
lea rcx, [rbp - 0x80]
mov rdx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x18000158f
lea rax, [rbp + 0x1d8]
lea r9, [rbp + 0x1c0]
lea r8, [0x180002280]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x80]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rsi
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x18000158f
cmp dword [rbp + 0x1c0], ebx
je 0x180001592
mov ebx, r12d
mov al, bl
add rsp, 0x290
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1800015a4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x80
lea rax, [r11 + 8]
mov rdi, rcx
mov rcx, qword [rcx + 0x118]
mov qword [r11 - 0x70], rax
lea rax, [r11 - 0x68]
lea r9, [r11 + 0x10]
lea rdx, str.DefaultScope
xor r8d, r8d
mov dword [r11 + 8], 0x50
mov qword [r11 - 0x78], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor r12d, r12d
test eax, eax
jne 0x1800016db
cmp dword [rsp + 0xa8], 1
jne 0x1800016db
lea rbx, [rdi + 0x150]
lea rcx, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1800016db
lea rcx, [rdi + 0x128]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rbp, [rdi + 0x1a0]
lea edx, [r12 + 0x28]
mov r9, rbx
mov rcx, rbp
mov r8d, edx
sub r9, rbp
lea rax, [r8 + 0x7fffffd6]
test rax, rax
je 0x18000166d
movzx eax, word [r9 + rcx]
test ax, ax
je 0x18000166d
mov word [rcx], ax
add rcx, 2
dec r8
jne 0x18000164b
test r8, r8
jne 0x180001676
sub rcx, 2
mov word [rcx], r12w
lea rcx, [rsp + 0x30]
sub rcx, rbx
lea rax, [rdx + 0x7fffffd6]
test rax, rax
je 0x1800016a3
movzx eax, word [rcx + rbx]
test ax, ax
je 0x1800016a3
mov word [rbx], ax
add rbx, 2
dec rdx
jne 0x180001682
test rdx, rdx
jne 0x1800016ac
sub rbx, 2
mov word [rbx], r12w
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rdi + 0x1f0], eax
cmp word [rbp], r12w
jne 0x1800016ce
add eax, 0xffff15a0
mov dword [rdi + 0x1f0], eax
lea rcx, [rdi + 0x128]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x14000292c
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x848]
sub rsp, 0x920
mov rax, qword [0x14005d010]
xor rax, rsp
mov qword [rbp + 0x810], rax
xor r13d, r13d
xor edx, edx
mov r8d, 0x11c
lea rcx, [rbp + 0x110]
call fcn.140015430
lea rcx, [0x1400566c0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400029aa
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400029aa
lea rcx, [rbp + 0x110]
call rax
lea r8, [rbp - 0x40]
lea rdx, str.kernel32.dll
mov ecx, 2
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeExW]
mov esi, eax
mov rbx, r13
mov rdi, r13
mov r15d, 0x1000
test eax, eax
je 0x1400029f9
mov ecx, esi
cmp rsi, r15
jb 0x1400029e0
call fcn.1400070a0
jmp 0x1400029e5
call fcn.140012274
mov rbx, rax
lea rdi, [rax + rsi]
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.140015430
sub rdi, rbx
mov qword [rsp + 0x20], rbx
mov r9d, edi
mov r8d, dword [rbp - 0x40]
lea rdx, str.kernel32.dll
mov ecx, 2
call qword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
mov qword [rsp + 0x70], r13
mov dword [rsp + 0x40], r13d
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
lea rdx, [0x14005693c]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov rax, qword [rsp + 0x70]
movzx edx, word [rax + 0xe]
mov ecx, dword [rax + 8]
and ecx, 0xffff0000
cmp ecx, 0xa0000
jb 0x140003b15
cmp edx, 0x4a61
jb 0x140003b15
cmp edx, 0x585d
jb 0x140002a91
call fcn.1400027b8
test al, al
je 0x140002a91
lea rcx, str.ERROR:_Your_windows_version_is_Windows_11_22H2_or_higher_version__please_use_older_versions_of_windows._n_n
call fcn.1400011c8
lea rcx, str.pause
call fcn.14001e7d4
test rbx, rbx
je 0x140002ac2
cmp rdi, r15
jb 0x140002ab7
add rdi, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x140003b92
mov rbx, rcx
mov rdx, rdi
mov rcx, rbx
call fcn.140011fd0
call fcn.140c34068
push rax
mov al, 0xe7
lodsb al, byte [rsi]
push rdx
invalid
lea rcx, str.ERROR:_Your_windows_version_is_old__you_must_use_minimum_windows_10_x64_20h1_version_or_higher_version._n_n
call fcn.1400011c8
lea rcx, str.pause
call fcn.14001e7d4
test rbx, rbx
je 0x140003b5a
cmp rdi, r15
jb 0x140003b4f
add rdi, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x140003b92
mov rbx, rcx
mov rdx, rdi
mov rcx, rbx
call fcn.140011fd0
xor eax, eax
mov rcx, qword [rbp + 0x810]
xor rcx, rsp
call fcn.140011fb0
lea r11, [rsp + 0x920]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140020020
nop
call fcn.140020020
nop
call fcn.1400061bc
nop
call fcn.1400120e0
nop
call fcn.140020020
nop
call fcn.140020020
nop
call fcn.1400061bc
nop
call fcn.1400120e0
nop
call fcn.14000145c
int3
Function at 0x1400042a0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400042c0
xor eax, eax
jmp 0x1400043a6
cmp qword [rcx + 0x68], 0
je 0x1400042d1
call fcn.140004fe0
jmp 0x1400043a6
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400042e8
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400042ea
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000431c
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140015810
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400043a0
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140004353
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000437c
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001f810
add r14, rax
sub rdi, rax
cmp rax, rbx
jne 0x1400043a0
cmp rdi, rbx
ja 0x14000435a
test rdi, rdi
je 0x1400043a0
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call fcn.14001f810
sub rdi, rax
sub rbp, rdi
mov rax, rbp
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140012d9c
Capabilities:
Parse pe header

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

Function at 0x14001aab8
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 0x14001a923
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001a923
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001a923
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001a923
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001a923
cmp dword [rcx + 0x84], 0xe
jbe 0x14001a923
cmp dword [rcx + 0xf8], 0
je 0x14001a923
mov ecx, ebx
call fcn.14001a9d4
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.14001a7b0
nop
cmp dword [rbp + 0x20], 0
je 0x14001a971
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001a97c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001a8b4
Function at 0x140027f70
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140027f86
mov al, 1
jmp 0x140027fe6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140027f97
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140027fe4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140031d2c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140027fe4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140027fe4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140027fe4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140027fe6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002e2a4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14003b7a0
sub rsp, rax
mov rax, qword [0x14005d010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140027e50
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002e2f3
mov rax, rbp
jmp 0x14002e3fb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xc2c6a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002f1f0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xc2c6a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002e3f7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002e3f7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002f1f0
test rax, rax
js 0x14002e3f7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002e3f7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002e3e9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002e3e9
cmp byte [rcx], 0xd
jne 0x14002e3cf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002e3de
cmp byte [rcx + 1], 0xa
jne 0x14002e3de
inc rcx
jmp 0x14002e3de
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5d650]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002e3b1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002e3fb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140011fb0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002e590
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140c2c6a0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14002e5e7
cmp word [rdx], r13w
jne 0x14002e5e7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002e5ec
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002e711
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002e732
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002e625
mov rdx, r9
mov word [rbx], cx
jmp 0x14002e64c
cmp r9, r8
jae 0x14002e65c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14002e606
jmp 0x14002e711
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002e706
cmp dword [rsp + 0x80], esi
je 0x14002e706
lea r8, [0x140c2c6a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002e6de
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002e6ae
mov word [rbx], r13w
jmp 0x14002e70e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14002e6bb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002e70e
cmp word [rsp + 0x70], r13w
jne 0x14002e6eb
cmp rbx, r14
je 0x14002e6a8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002f1f8
cmp word [rsp + 0x70], r13w
je 0x14002e711
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140c2c6a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002e70b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002e711
Function at 0x14003091c
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 0x14003094c
xor eax, eax
jmp 0x140030a0f
mov rbp, rbx
cmp word [rax], si
je 0x140030971
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140030958
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140030954
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.14003083c
movsxd r14, eax
test eax, eax
jne 0x1400309af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140030945
mov rcx, r14
call fcn.140027d8c
mov rdi, rax
test rax, rax
jne 0x1400309c8
xor ecx, ecx
call fcn.140027c5c
jmp 0x1400309a4
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.14003083c
test eax, eax
jne 0x1400309f9
mov rcx, rdi
call fcn.140027c5c
jmp 0x140030a03
xor ecx, ecx
call fcn.140027c5c
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 0x140034410
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.140027880
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 0x1400344b1
cmp ebx, dword [rsp + 0x30]
je 0x1400344aa
test esi, esi
je 0x1400344aa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140034485
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140034492
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14003446f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140034496
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400344b3
mov eax, 1
jmp 0x1400344b3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret