joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008410
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x1400b7f40]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rdx
mov r9d, dword [rcx + 0x14]
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx]
call fcn.1400029e0
mov r15d, eax
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov r14, qword [rcx + 0x18]
mov rsi, r14
mov rsi, qword [rsi]
cmp qword [rsi + 0x30], 0
je 0x140008489
lea rdx, [0x140097708]
mov rcx, qword [rsi + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000848e
cmp r14, rsi
jne 0x14000846a
mov r9d, 0xa
lea r14d, [r9 + 2]
mov r8d, r14d
lea rdx, [0x140097728]
mov rcx, rdi
call fcn.1400029e0
mov dword [rsp + 0x20], 0xa
mov r9d, r14d
mov r8d, eax
mov rdx, qword [rsi + 0x30]
mov rcx, rdi
call fcn.140002a98
mov rcx, qword [rdi + 8]
call rax
mov rdx, rax
mov eax, dword [rdi + 0x14]
mov dword [rsp + 0x20], eax
mov r9d, dword [rdi + 0x10]
mov r8d, r15d
mov rcx, rdi
call fcn.140002a98
mov rdi, rax
mov qword [rsp + 0x40], rax
and qword [rsp + 0x88], 0
lea rcx, [rsp + 0x40]
call fcn.140001a24
test al, al
je 0x140008520
lea rcx, vtable.std::_Func_impl_no_alloc_int____cdecl___void____ptr64__struct__WIN32_FIND_DATAA____ptr64___int__void____ptr64__struct__WIN32_FIND_DATAA____ptr64_.0
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x88], rcx
neg al
sbb rcx, rcx
lea rax, [rsp + 0x50]
and rcx, rax
mov qword [rbx + 0x38], 0
je 0x140008572
lea rax, [rsp + 0x50]
cmp rcx, rax
jne 0x14000856e
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 8]
mov qword [rbx + 0x38], rax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140008572
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x140008572
mov qword [rbx + 0x38], rcx
mov rax, rbx
jmp 0x14000857c
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14006e190
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1400085a8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x1400b7f40]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rdx
mov r9d, dword [rcx + 0x14]
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx]
call fcn.1400029e0
mov r15d, eax
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov r14, qword [rcx + 0x18]
mov rsi, r14
mov rsi, qword [rsi]
cmp qword [rsi + 0x30], 0
je 0x140008621
lea rdx, [0x140097708]
mov rcx, qword [rsi + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140008626
cmp r14, rsi
jne 0x140008602
mov r9d, 0xa
lea r14d, [r9 + 2]
mov r8d, r14d
lea rdx, [0x140097728]
mov rcx, rdi
call fcn.1400029e0
mov dword [rsp + 0x20], 0xa
mov r9d, r14d
mov r8d, eax
mov rdx, qword [rsi + 0x30]
mov rcx, rdi
call fcn.140002a98
mov rcx, qword [rdi + 8]
call rax
mov rdx, rax
mov eax, dword [rdi + 0x14]
mov dword [rsp + 0x20], eax
mov r9d, dword [rdi + 0x10]
mov r8d, r15d
mov rcx, rdi
call fcn.140002a98
mov rdi, rax
mov qword [rsp + 0x40], rax
and qword [rsp + 0x88], 0
lea rcx, [rsp + 0x40]
call fcn.140001a24
test al, al
je 0x1400086b8
lea rcx, vtable.std::_Func_impl_no_alloc_int____cdecl___char_const____ptr64__char_const____ptr64__int___int__char_const____ptr64__char_const____ptr64__int_.0
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x88], rcx
neg al
sbb rcx, rcx
lea rax, [rsp + 0x50]
and rcx, rax
mov qword [rbx + 0x38], 0
je 0x14000870a
lea rax, [rsp + 0x50]
cmp rcx, rax
jne 0x140008706
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 8]
mov qword [rbx + 0x38], rax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14000870a
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x14000870a
mov qword [rbx + 0x38], rcx
mov rax, rbx
jmp 0x140008714
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14006e190
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140008740
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x1400b7f40]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rdx
mov r9d, dword [rcx + 0x14]
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx]
call fcn.1400029e0
mov r15d, eax
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov r14, qword [rcx + 0x18]
mov rsi, r14
mov rsi, qword [rsi]
cmp qword [rsi + 0x30], 0
je 0x1400087b9
lea rdx, [0x140097708]
mov rcx, qword [rsi + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400087be
cmp r14, rsi
jne 0x14000879a
mov r9d, 0xa
lea r14d, [r9 + 2]
mov r8d, r14d
lea rdx, [0x140097728]
mov rcx, rdi
call fcn.1400029e0
mov dword [rsp + 0x20], 0xa
mov r9d, r14d
mov r8d, eax
mov rdx, qword [rsi + 0x30]
mov rcx, rdi
call fcn.140002a98
mov rcx, qword [rdi + 8]
call rax
mov rdx, rax
mov eax, dword [rdi + 0x14]
mov dword [rsp + 0x20], eax
mov r9d, dword [rdi + 0x10]
mov r8d, r15d
mov rcx, rdi
call fcn.140002a98
mov rdi, rax
mov qword [rsp + 0x40], rax
and qword [rsp + 0x88], 0
lea rcx, [rsp + 0x40]
call fcn.140001a24
test al, al
je 0x140008850
lea rcx, vtable.std::_Func_impl_no_alloc_unsigned_long_int____cdecl___unsigned_long_int__char____ptr64___unsigned_long_int__unsigned_long_int__char____ptr64_.0
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x88], rcx
neg al
sbb rcx, rcx
lea rax, [rsp + 0x50]
and rcx, rax
mov qword [rbx + 0x38], 0
je 0x1400088a2
lea rax, [rsp + 0x50]
cmp rcx, rax
jne 0x14000889e
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 8]
mov qword [rbx + 0x38], rax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1400088a2
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x1400088a2
mov qword [rbx + 0x38], rcx
mov rax, rbx
jmp 0x1400088ac
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14006e190
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1400088d8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x1400b7f40]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rdx
mov r9d, dword [rcx + 0x14]
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx]
call fcn.1400029e0
mov r15d, eax
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov r14, qword [rcx + 0x18]
mov rsi, r14
mov rsi, qword [rsi]
cmp qword [rsi + 0x30], 0
je 0x140008951
lea rdx, [0x140097708]
mov rcx, qword [rsi + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140008956
cmp r14, rsi
jne 0x140008932
mov r9d, 0xa
lea r14d, [r9 + 2]
mov r8d, r14d
lea rdx, [0x140097728]
mov rcx, rdi
call fcn.1400029e0
mov dword [rsp + 0x20], 0xa
mov r9d, r14d
mov r8d, eax
mov rdx, qword [rsi + 0x30]
mov rcx, rdi
call fcn.140002a98
mov rcx, qword [rdi + 8]
call rax
mov rdx, rax
mov eax, dword [rdi + 0x14]
mov dword [rsp + 0x20], eax
mov r9d, dword [rdi + 0x10]
mov r8d, r15d
mov rcx, rdi
call fcn.140002a98
mov rdi, rax
mov qword [rsp + 0x40], rax
and qword [rsp + 0x88], 0
lea rcx, [rsp + 0x40]
call fcn.140001a24
test al, al
je 0x1400089e8
lea rcx, vtable.std::_Func_impl_no_alloc_unsigned_long_int____cdecl___char_const____ptr64___unsigned_long_int__char_const____ptr64_.0
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x88], rcx
neg al
sbb rcx, rcx
lea rax, [rsp + 0x50]
and rcx, rax
mov qword [rbx + 0x38], 0
je 0x140008a3a
lea rax, [rsp + 0x50]
cmp rcx, rax
jne 0x140008a36
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 8]
mov qword [rbx + 0x38], rax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140008a3a
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x140008a3a
mov qword [rbx + 0x38], rcx
mov rax, rbx
jmp 0x140008a44
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14006e190
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140008a70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x1400b7f40]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rdx
mov r9d, dword [rcx + 0x14]
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx]
call fcn.1400029e0
mov r15d, eax
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov r14, qword [rcx + 0x18]
mov rsi, r14
mov rsi, qword [rsi]
cmp qword [rsi + 0x30], 0
je 0x140008ae9
lea rdx, [0x140097708]
mov rcx, qword [rsi + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140008aee
cmp r14, rsi
jne 0x140008aca
mov r9d, 0xa
lea r14d, [r9 + 2]
mov r8d, r14d
lea rdx, [0x140097728]
mov rcx, rdi
call fcn.1400029e0
mov dword [rsp + 0x20], 0xa
mov r9d, r14d
mov r8d, eax
mov rdx, qword [rsi + 0x30]
mov rcx, rdi
call fcn.140002a98
mov rcx, qword [rdi + 8]
call rax
mov rdx, rax
mov eax, dword [rdi + 0x14]
mov dword [rsp + 0x20], eax
mov r9d, dword [rdi + 0x10]
mov r8d, r15d
mov rcx, rdi
call fcn.140002a98
mov rdi, rax
mov qword [rsp + 0x40], rax
and qword [rsp + 0x88], 0
lea rcx, [rsp + 0x40]
call fcn.140001a24
test al, al
je 0x140008b80
lea rcx, vtable.std::_Func_impl_no_alloc_unsigned_long_int____cdecl___char_const____ptr64__unsigned_long_int__char____ptr64__char____ptr64____ptr64___unsigned_long_int__char_const____ptr64__unsigned_long_int__char____ptr64__char____ptr64____ptr64_.0
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x88], rcx
neg al
sbb rcx, rcx
lea rax, [rsp + 0x50]
and rcx, rax
mov qword [rbx + 0x38], 0
je 0x140008bd2
lea rax, [rsp + 0x50]
cmp rcx, rax
jne 0x140008bce
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 8]
mov qword [rbx + 0x38], rax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140008bd2
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x140008bd2
mov qword [rbx + 0x38], rcx
mov rax, rbx
jmp 0x140008bdc
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14006e190
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14003e28c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor ebp, ebp
mov r13d, r8d
mov rbx, rdx
mov r14, rcx
test rdx, rdx
je 0x14003e30f
lea edx, [rbp + 0x10]
call fcn.140039bd0
mov rdi, rax
test rax, rax
je 0x14003e30f
mov r8d, dword [rbx]
mov dword [rax], r8d
test r13b, 1
jne 0x14003e2e5
lea r8d, [rbp + 1]
cmp dword [rbx], r8d
jle 0x14003e2e5
add r8d, r8d
cmp r8d, dword [rbx]
jl 0x14003e2dd
movsxd rax, r8d
mov rcx, r14
lea rdx, [rax + rax*4]
shl rdx, 3
call fcn.140039bd0
mov qword [rdi + 8], rax
mov rsi, rax
test rax, rax
jne 0x14003e32e
mov rdx, rdi
mov rcx, r14
call fcn.140039b7c
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r15, qword [rbx + 8]
cmp dword [rbx], ebp
jle 0x14003e3ac
lea r12, [rax + 0x1c]
sub rsi, r15
mov rdx, qword [r15]
mov r8d, r13d
mov rcx, r14
call fcn.14003d8e8
mov qword [rsi + r15], rax
mov rcx, r14
mov rdx, qword [r15 + 8]
call fcn.140039e3c
mov qword [r12 - 0x14], rax
mov rcx, r14
mov rdx, qword [r15 + 0x10]
call fcn.140039e3c
mov ecx, dword [r12]
lea r15, [r15 + 0x28]
mov qword [r12 - 0xc], rax
and ecx, 0xfffffffe
mov al, byte [r15 - 0x10]
inc ebp
mov byte [r12 - 4], al
mov eax, ecx
mov dword [r12], ecx
xor eax, dword [r15 - 0xc]
and eax, 2
xor eax, ecx
mov dword [r12], eax
lea r12, [r12 + 0x28]
mov eax, dword [r15 - 8]
mov dword [r12 - 0x24], eax
cmp ebp, dword [rbx]
jl 0x14003e33d
mov rax, rdi
jmp 0x14003e311
Function at 0x14006d63c
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 0x14006d66a
xor eax, eax
jmp 0x14006d750
cmp qword [rcx + 0x68], 0
je 0x14006d67b
call fcn.14006d76c
jmp 0x14006d750
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14006d692
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14006d694
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14006d6c6
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140094c70
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 0x14006d74a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14006d6fd
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 0x14006d726
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14007ccb8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14006d74a
cmp rsi, rbx
ja 0x14006d704
test rsi, rsi
je 0x14006d74a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14007ccb8
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 0x14006ebd4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14007b4af
call fcn.14007d980
mov dword [rax], 0x16
call fcn.140074f8c
xor eax, eax
jmp 0x14007b53d
mov rdx, r9
mov rcx, r8
call fcn.14007b414
mov rbx, rax
test rax, rax
je 0x14007b53a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14007b340]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14007b527
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007d8f4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14007b50e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14007b51d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140081fd0
jmp 0x14007b53a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14007b537
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14007e538
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14007e334
Function at 0x140088bd8
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.14006e510
sub rsp, rax
mov rax, qword [0x1400b7f40]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140084104
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140088c27
mov rax, rbp
jmp 0x140088d2f
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 + 0xbbb50]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140089cf8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xbbb50]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140088d2b
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 0x140088d2b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140089cf8
test rax, rax
js 0x140088d2b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140088d2b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140088d1d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140088d1d
cmp byte [rcx], 0xd
jne 0x140088d03
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140088d12
cmp byte [rcx + 1], 0xa
jne 0x140088d12
inc rcx
jmp 0x140088d12
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xb8540]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140088ce5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140088d2f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14006e190
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 0x140088f50
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140088f66
mov al, 1
jmp 0x140088fc6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140088f77
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140088fc4
mov ecx, dword [rcx + 0x18]
nop
call fcn.14008ce38
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140088fc4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140088fc4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140088fc4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140088fc6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140089098
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, [0x1400bbb50]
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 0x1400890ef
cmp word [rdx], r13w
jne 0x1400890ef
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400890f4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140089219
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14008923a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14008912d
mov rdx, r9
mov word [rbx], cx
jmp 0x140089154
cmp r9, r8
jae 0x140089164
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 0x14008910e
jmp 0x140089219
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 0x14008920e
cmp dword [rsp + 0x80], esi
je 0x14008920e
lea r8, [0x1400bbb50]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400891e6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400891b6
mov word [rbx], r13w
jmp 0x140089216
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 0x1400891c3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140089216
cmp word [rsp + 0x70], r13w
jne 0x1400891f3
cmp rbx, r14
je 0x1400891b0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140089d00
cmp word [rsp + 0x70], r13w
je 0x140089219
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, [0x1400bbb50]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140089213
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140089219
Function at 0x14008be54
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 0x14008be84
xor eax, eax
jmp 0x14008bf47
mov rbp, rbx
cmp word [rax], si
je 0x14008bea9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14008be90
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14008be8c
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.14008a5e4
movsxd r14, eax
test eax, eax
jne 0x14008bee7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14008be7d
mov rcx, r14
call fcn.140082ea8
mov rdi, rax
test rax, rax
jne 0x14008bf00
xor ecx, ecx
call fcn.140081fd0
jmp 0x14008bedc
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.14008a5e4
test eax, eax
jne 0x14008bf31
mov rcx, rdi
call fcn.140081fd0
jmp 0x14008bf3b
xor ecx, ecx
call fcn.140081fd0
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 0x14008bf64
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14008bfeb
mov rsi, rbx
cmp word [rax], bp
je 0x14008bfaa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14008bf94
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14008bf90
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140082ea8
mov rdi, rax
test rax, rax
je 0x14008bfd8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140094c70
mov rbp, rdi
xor ecx, ecx
call fcn.140081fd0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14008f38c
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.140081bf8
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 0x14008f42d
cmp ebx, dword [rsp + 0x30]
je 0x14008f426
test esi, esi
je 0x14008f426
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14008f401
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14008f40e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14008f3eb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14008f412
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14008f42f
mov eax, 1
jmp 0x14008f42f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret