joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004a70
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r14
mov r14, rcx
mov rsi, r8
mov rbp, rdx
sub r14, qword [r8 + 0x30]
je 0x140004bf2
test byte [r8 + 0x5e], 0x40
jne 0x140004a9d
xor eax, eax
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
movzx edx, word [rsi + 0x14]
movzx eax, word [rsi + 6]
add rdx, 0x18
mov r8d, dword [r8 + 0xb0]
add rdx, rsi
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x140004bf2
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140004ad6
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140004aed
add rdx, 0x28
cmp rdx, r9
jb 0x140004ac4
mov eax, 1
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
mov qword [rsp + 0x18], rbx
mov ebx, dword [rdx + 0x14]
sub rbx, rcx
mov qword [rsp + 0x28], r15
mov r15d, dword [rsi + 0xb4]
add rbx, r8
add rbx, rbp
add r15, rbx
test rbx, rbx
je 0x140004be8
cmp rbx, r15
jae 0x140004be8
mov qword [rsp + 0x20], rdi
mov eax, dword [rbx + 4]
test eax, eax
je 0x140004be3
add eax, 0xfffffff8
shr eax, 1
je 0x140004bd4
lea r11, [rbx + 8]
mov edi, eax
movzx r8d, word [r11]
movzx eax, r8w
shr ax, 0xc
and r8d, 0x80000fff
jge 0x140004b62
dec r8d
or r8d, 0xfffff000
inc r8d
cmp ax, 3
je 0x140004b6e
cmp ax, 0xa
jne 0x140004bc6
movzx eax, word [rsi + 0x14]
movzx ecx, word [rsi + 6]
add rax, 0x18
mov r9d, dword [rbx]
add rax, rsi
lea rdx, [rcx + rcx*4]
lea r10, [rax + rdx*8]
cmp rax, r10
jae 0x140004bbb
nop dword [rax]
mov edx, dword [rax + 0xc]
cmp r9, rdx
jb 0x140004ba2
mov ecx, dword [rax + 8]
add ecx, edx
cmp r9, rcx
jb 0x140004bad
add rax, 0x28
cmp rax, r10
jb 0x140004b90
jmp 0x140004bbb
mov ecx, dword [rax + 0x14]
sub rcx, rdx
add rcx, r9
add rcx, rbp
jne 0x140004bbe
mov rcx, rbp
movzx eax, r8w
add qword [rax + rcx], r14
add r11, 2
sub rdi, 1
jne 0x140004b40
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, r15
jb 0x140004b24
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
mov r15, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov eax, 1
pop r14
pop rsi
ret
Function at 0x140004c00
Capabilities:
Enumerate pe sections

Disassembly:
mov dword [rsp + 8], ecx
push rbp
push rdi
push r13
sub rsp, 0x40
movzx eax, word [r8 + 0x14]
lea r10, [r8 + 0x18]
mov r11d, dword [r8 + 0x90]
add r10, rax
movzx eax, word [r8 + 6]
mov rbp, r8
mov r13, rdx
mov edi, ecx
lea r9, [rax + rax*4]
lea r8, [r10 + r9*8]
cmp r10, r8
jae 0x140004c61
nop dword [rax]
mov ecx, dword [r10 + 0xc]
cmp r11, rcx
jb 0x140004c58
mov eax, dword [r10 + 8]
add eax, ecx
cmp r11, rax
jb 0x140004cf5
add r10, 0x28
cmp r10, r8
jb 0x140004c40
xor eax, eax
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
test r11d, r11d
je 0x140004cce
cmp dword [rbp + 0x94], 0
je 0x140004cce
lea rbx, [rax + 0x10]
movzx edx, word [rbp + 0x14]
movzx eax, word [rbp + 6]
add rdx, 0x18
mov r8d, dword [rbx - 4]
add rdx, rbp
mov qword [rsp + 0x70], rbx
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x140004cce
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140004cc5
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140004d07
add rdx, 0x28
cmp rdx, r9
jb 0x140004cb3
mov eax, 1
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r13
pop rdi
pop rbp
ret
mov eax, dword [r10 + 0x14]
sub rax, rcx
add rax, r11
add rax, r13
jmp 0x140004c63
mov r15d, dword [rdx + 0x14]
sub r15, rcx
add r15, r8
add r15, r13
je 0x140004cce
mov rdx, r15
mov ecx, edi
call fcn.140003f70
mov r12, rax
test rax, rax
je 0x140004e42
movzx edx, word [rbp + 0x14]
movzx eax, word [rbp + 6]
add rdx, 0x18
mov r8d, dword [rbx]
add rdx, rbp
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x140004d6b
nop dword [rax + rax]
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140004d62
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140004d90
add rdx, 0x28
cmp rdx, r9
jb 0x140004d50
xor r14d, r14d
mov rdi, qword [r14]
test rdi, rdi
je 0x140004e27
jns 0x140004d9f
xor edx, edx
mov rcx, r15
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
movzx edx, di
jmp 0x140004df0
mov r14d, dword [rdx + 0x14]
sub r14, rcx
add r14, r8
add r14, r13
jmp 0x140004d6e
movzx eax, word [rbp + 0x14]
movzx ecx, word [rbp + 6]
add rax, 0x18
add rax, rbp
lea rdx, [rcx + rcx*4]
lea r8, [rax + rdx*8]
cmp rax, r8
jae 0x140004ddb
nop dword [rax + rax]
mov edx, dword [rax + 0xc]
cmp rdi, rdx
jb 0x140004dd2
mov ecx, dword [rax + 8]
add ecx, edx
cmp rdi, rcx
jb 0x140004e34
add rax, 0x28
cmp rax, r8
jb 0x140004dc0
xor esi, esi
xor edx, edx
mov rcx, r15
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rdx, [rsi + 2]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov rcx, rbx
sub rdi, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rax, [rdi + r12]
mov qword [r14], rax
add r14, 8
mov rdi, qword [r14]
test rdi, rdi
jne 0x140004d7a
mov rbx, qword [rsp + 0x70]
mov edi, dword [rsp + 0x60]
add rbx, 0x14
jmp 0x140004c8e
mov esi, dword [rax + 0x14]
sub rsi, rdx
add rsi, rdi
add rsi, r13
jmp 0x140004ddd
jmp 0x140004cd3
Function at 0x14000d6b0
Capabilities:
Enumerate threads
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x530
mov rax, qword [0x140047020]
xor rax, rsp
mov qword [rsp + 0x520], rax
mov edi, edx
mov rbp, r9
xor edx, edx
mov rsi, r8
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xorps xmm0, xmm0
mov qword [rsp + 0x514], 0
mov rcx, rax
mov dword [rsp + 0x500], 0x1c
lea rdx, [rsp + 0x500]
mov rbx, rax
movdqu xmmword [rsp + 0x504], xmm0
call qword [sym.imp.KERNEL32.dll_Thread32First]
lea rdx, [rsp + 0x500]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
je 0x14000d74e
mov rcx, rbx
cmp dword [rsp + 0x50c], edi
je 0x14000d788
lea rdx, [rsp + 0x500]
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x14000d730
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.couldnt_find_thread_to_hijack_n
call fcn.140001570
xor al, al
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.1400105f0
mov rbx, qword [rsp + 0x550]
add rsp, 0x530
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x508]
test r8d, r8d
je 0x14000d757
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
jne 0x14000d7b9
lea rcx, str.couldnt_open_thread_to_hijack_n
jmp 0x14000d75e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x4d0
call fcn.140012d00
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x60], 0x10000b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rdx, qword [rsp + 0xc8]
lea r8, [rsp + 0x128]
sub rdx, 8
mov qword [rsp + 0x20], 0
mov r9d, 8
mov qword [rsp + 0xc8], rdx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x128], rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14000d765
Function at 0x14000d850
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0x90
mov rax, qword [0x140047020]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rax, qword [rbp + 0x7f]
mov rsi, r8
mov edi, edx
mov qword [rbp + 6], r9
xor edx, edx
mov dword [rbp - 0x21], 0x5153509c
mov r9d, 0x3000
mov dword [rbp - 0x1d], 0x41504152
mov rcx, rsi
mov dword [rbp - 0x19], 0x41524151
mov dword [rbp - 0x15], 0xec834853
lea r8d, [rdx + 0x44]
mov word [rbp - 0x11], 0x4828
mov byte [rbp - 0xf], 0xb9
mov dword [rbp - 6], 0x1c2c748
mov dword [rbp - 2], 0x4d000000
mov dword [rbp + 2], 0xb848c031
mov dword [rbp + 0xe], 0x8348d0ff
mov dword [rbp + 0x12], 0x5b4128c4
mov dword [rbp + 0x16], 0x59415a41
mov dword [rbp + 0x1a], 0x595a5841
mov dword [rbp + 0x1e], 0xc39d585b
mov qword [rbp - 0xe], rax
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, 0x43
mov qword [rsp + 0x20], 0
mov rdx, rax
lea r8, [rbp - 0x21]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9, rbx
mov r8, rsi
mov edx, edi
call fcn.14000d6b0
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400105f0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000d950
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push r12
sub rsp, 0xa0
mov r12d, edx
lea rcx, [0x14008bae0]
lea rdx, str.___Starting_injection_from_memory
mov rbp, r8
call fcn.14000b650
mov rcx, rax
call fcn.14000b900
mov r8d, r12d
mov edx, 1
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x14000d9c5
lea rdx, str.___Unable_to_open_process.
lea rcx, [0x14008bae0]
call fcn.14000b650
mov rcx, rax
call fcn.14000b900
xor al, al
add rsp, 0xa0
pop r12
pop rsi
pop rbp
ret
mov qword [rsp + 0xc8], rbx
xor edx, edx
mov qword [rsp + 0x98], rdi
mov r9d, 0x3000
mov qword [rsp + 0x90], r13
mov rcx, rsi
mov qword [rsp + 0x88], r14
movsxd r14, dword [rbp + 0x3c]
add r14, rbp
mov qword [rsp + 0x80], r15
mov dword [rsp + 0x20], 0x40
mov eax, dword [r14 + 0x28]
mov r8d, dword [r14 + 0x50]
mov ebx, dword [r14 + 0x54]
mov r13, qword [r14 + 0x30]
movzx edi, word [r14 + 6]
mov qword [rsp + 0xc0], rax
mov eax, dword [r14 + 0xb0]
mov qword [rsp + 0xd8], rax
mov eax, dword [r14 + 0x90]
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov rdx, rax
mov r8, rbp
mov rcx, rsi
mov r15, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test rdi, rdi
je 0x14000daaa
lea rbx, [r14 + 0x11c]
xor r14d, r14d
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [rbx]
mov rcx, rsi
mov edx, dword [rbx - 8]
add r8, rbp
mov r9d, dword [rbx - 4]
add rdx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rbx, [rbx + 0x28]
sub rdi, 1
jne 0x14000da80
jmp 0x14000daad
xor r14d, r14d
mov rax, qword [rsp + 0xc0]
xor edx, edx
mov qword [rsp + 0x50], rax
mov r9d, 0x3000
mov rax, qword [rsp + 0xd8]
mov rcx, rsi
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x30]
lea r8d, [rdx + 0x40]
mov qword [rsp + 0x60], rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x68], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x70], rax
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x4000
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, 0x40
mov qword [rsp + 0x20], r14
lea r8, [rsp + 0x40]
mov rdx, rdi
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, 0x4000
mov qword [rsp + 0x20], r14
lea r8, [0x14000d500]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9, rbx
mov qword [rsp + 0x20], rdi
mov r8, rsi
mov edx, r12d
call fcn.14000d850
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x80]
mov al, 1
mov r14, qword [rsp + 0x88]
mov r13, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0xc8]
add rsp, 0xa0
pop r12
pop rsi
pop rbp
ret
Function at 0x14000f43c
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000f46a
xor eax, eax
jmp 0x14000f550
cmp qword [rcx + 0x68], 0
je 0x14000f47b
call fcn.14000f56c
jmp 0x14000f550
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000f492
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000f494
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000f4c6
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140012660
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000f54a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000f4fd
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000f526
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001b560
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000f54a
cmp rsi, rbx
ja 0x14000f504
test rsi, rsi
je 0x14000f54a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001b560
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140011420
Capabilities:
Parse pe header

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

Function at 0x14001df08
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001dd04
Function at 0x14002667c
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.140010e20
sub rsp, rax
mov rax, qword [0x140047020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002381c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400266cb
mov rax, rbp
jmp 0x1400267d3
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 + 0x8ccf0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002779c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x8ccf0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400267cf
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 0x1400267cf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002779c
test rax, rax
js 0x1400267cf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400267cf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400267c1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400267c1
cmp byte [rcx], 0xd
jne 0x1400267a7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400267b6
cmp byte [rcx + 1], 0xa
jne 0x1400267b6
inc rcx
jmp 0x1400267b6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x47420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140026789
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400267d3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400105f0
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 0x1400269f4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140026a0a
mov al, 1
jmp 0x140026a6a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140026a1b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140026a68
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002b3d0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140026a68
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140026a68
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140026a68
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140026a6a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140026b3c
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, [0x14008ccf0]
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 0x140026b93
cmp word [rdx], r13w
jne 0x140026b93
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140026b98
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140026cbd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140026cde
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140026bd1
mov rdx, r9
mov word [rbx], cx
jmp 0x140026bf8
cmp r9, r8
jae 0x140026c08
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 0x140026bb2
jmp 0x140026cbd
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 0x140026cb2
cmp dword [rsp + 0x80], esi
je 0x140026cb2
lea r8, [0x14008ccf0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140026c8a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140026c5a
mov word [rbx], r13w
jmp 0x140026cba
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 0x140026c67
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140026cba
cmp word [rsp + 0x70], r13w
jne 0x140026c97
cmp rbx, r14
je 0x140026c54
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400277a4
cmp word [rsp + 0x70], r13w
je 0x140026cbd
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, [0x14008ccf0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140026cb7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140026cbd
Function at 0x14002a8bc
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 0x14002a8ec
xor eax, eax
jmp 0x14002a9af
mov rbp, rbx
cmp word [rax], si
je 0x14002a911
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002a8f8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002a8f4
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.140028fcc
movsxd r14, eax
test eax, eax
jne 0x14002a94f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002a8e5
mov rcx, r14
call fcn.1400225c0
mov rdi, rax
test rax, rax
jne 0x14002a968
xor ecx, ecx
call fcn.1400217cc
jmp 0x14002a944
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.140028fcc
test eax, eax
jne 0x14002a999
mov rcx, rdi
call fcn.1400217cc
jmp 0x14002a9a3
xor ecx, ecx
call fcn.1400217cc
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 0x14002d924
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.14002146c
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 0x14002d9c5
cmp ebx, dword [rsp + 0x30]
je 0x14002d9be
test esi, esi
je 0x14002d9be
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002d999
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002d9a6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002d983
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002d9aa
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002d9c7
mov eax, 1
jmp 0x14002d9c7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140030e2c
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.14001cee0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140030eb6
cmp byte [rbp - 0x21], r15b
je 0x140030eb1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140030eec
call fcn.140021ad0
test eax, eax
jne 0x140030ed8
cmp byte [rbp - 0x21], r15b
je 0x140030ed0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140030eec
cmp byte [rbp - 0x21], r15b
je 0x140030ee9
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.14001d4bc
test eax, eax
jne 0x140030f8c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001cee0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140030f2b
cmp byte [rbp - 0x21], r15b
je 0x140030f60
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140030f60
call fcn.140021ad0
test eax, eax
jne 0x140030f4c
cmp byte [rbp - 0x21], r15b
je 0x140030f45
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140030f60
cmp byte [rbp - 0x21], r15b
je 0x140030f5d
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.14001d4bc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140030f8c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140030f8f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140030f9d
mov rcx, rdi
call fcn.1400217cc
cmp byte [rbp + 0x3f], r15b
je 0x140030fac
mov rcx, qword [rbp + 0x27]
call fcn.1400217cc
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