joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001ee3c
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1800240b0]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor ebx, ebx
mov rsi, rcx
mov byte [rsp + 0x30], 1
mov edi, ebx
cmp rcx, 0xffffffffffffffff
jne 0x18001ee77
lea edi, [rcx + 0x58]
jmp 0x18001ef08
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x38]
mov r9d, 0x28
mov dword [rsp + 0x20], 4
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x18001eed9
test byte [rsp + 0x68], 1
je 0x18001eed9
xor edx, edx
lea rcx, [rsp + 0x48]
lea r8d, [rdx + 0x28]
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x38]
mov r9d, 0x28
mov rcx, rsi
mov dword [rsp + 0x68], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r9d, 1
mov rcx, rsi
mov dword [rsp + 0x20], 0xd
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jns 0x18001ef08
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180001ac0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18001f058
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1800240b0]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov ebx, 0x104
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
xor r15d, r15d
mov edx, ebx
mov esi, r15d
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, ebx
jae 0x18001f1df
test eax, eax
jne 0x18001f0be
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18001f1e4
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x18001f1df
lea rcx, [rsp + 0x30]
cmp rax, rcx
je 0x18001f1df
mov word [rax], r15w
movzx ecx, word [rsp + 0x30]
mov r12d, 0x5c
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x18001f0fb
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x18001f114
cmp word [rsp + 0x32], 0x3a
jne 0x18001f114
cmp word [rsp + 0x34], r12w
jne 0x18001f1df
lea rsi, [rsp + 0x34]
cmp cx, r12w
jne 0x18001f152
cmp word [rsp + 0x32], r12w
jne 0x18001f152
lea rcx, [rsp + 0x34]
mov edx, r12d
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
je 0x18001f1df
lea rcx, [rax + 2]
mov edx, r12d
call qword [sym.imp.msvcrt.dll_wcschr]
mov rsi, rax
test rax, rax
je 0x18001f1df
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18001f171
and al, 0x10
neg al
sbb eax, eax
not eax
and eax, 0x10b
jmp 0x18001f1e4
mov rdi, qword [rsp + 0x20]
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x18001f187
lea rdi, [rsp + 0x30]
jmp 0x18001f18b
add rdi, 0xfffffffffffffffe
cmp rdi, rsi
je 0x18001f1df
cmp word [rdi], r12w
jne 0x18001f1df
cmp rdi, rsi
jbe 0x18001f1df
lea rcx, [rsp + 0x30]
mov edx, r12d
mov word [rdi], r15w
call sub.msvcrt.dll_wcsrchr
mov r14, rax
test rax, rax
je 0x18001f1df
movzx ebx, word [rax + 2]
lea rcx, [rsp + 0x30]
mov word [rax + 2], r15w
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov word [r14 + 2], bx
cmp eax, 0xffffffff
jne 0x18001f20f
mov rdi, r14
cmp r14, rsi
ja 0x18001f19b
cmp rdi, rsi
ja 0x18001f235
mov eax, 0x7b
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.180001ac0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
test al, 0x10
jne 0x18001f1da
mov eax, 0x10b
jmp 0x18001f1e4
cmp word [rdi + 2], r15w
je 0x18001f24b
mov rcx, rdi
mov word [rdi], r12w
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rdi, [rdi + rcx*2]
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18001f21a
jmp 0x18001f0b3
xor eax, eax
jmp 0x18001f1e4
Function at 0x18001f2ec
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, qword [rsp + 0x70]
or edx, 0xc0000000
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r9d
call fcn.18001ec4c
mov edi, eax
test eax, eax
jne 0x18001f353
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [rsp + 0x78]
xor r9d, r9d
mov dword [rcx], eax
mov rcx, qword [rbx]
xor r8d, r8d
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x18001f353
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rbx], 0xffffffffffffffff
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18001f418
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov ebx, 1
test r8, r8
je 0x18001f442
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, eax
test rsi, rsi
je 0x18001f461
test ebx, ebx
je 0x18001f45f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18001f45f
mov ebx, 1
jmp 0x18001f461
xor ebx, ebx
cmp rdi, 0xffffffffffffffff
je 0x18001f470
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18001faac
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1800240b0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0xd0]
xor edi, edi
mov rbp, r9
mov r15, r8
mov r13, rdx
mov r12, rcx
test r9, r9
je 0x18001fb04
mov esi, dword [r14]
add esi, 0xf
mov ecx, esi
call fcn.18001f4a0
mov rbx, rax
test rax, rax
jne 0x18001fb0e
lea edi, [rax + 0xe]
jmp 0x18001fbab
lea rbx, [rsp + 0x48]
mov esi, 0x10
lea rcx, [rsp + 0x38]
mov rdx, r13
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov ecx, r12d
mov r9, rbx
mov r8d, 2
mov dword [rsp + 0x20], esi
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov edx, 0x80000000
mov ecx, eax
add eax, edx
test edx, eax
jne 0x18001fb60
cmp ecx, 0x80000005
je 0x18001fb60
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edi, eax
jmp 0x18001fb94
test rbp, rbp
je 0x18001fb83
mov eax, dword [rbx + 8]
cmp dword [r14], eax
jb 0x18001fb7e
lea rdx, [rbx + 0xc]
mov r8d, eax
mov rcx, rbp
call sub.msvcrt.dll_memcpy
jmp 0x18001fb83
mov edi, 0x7a
mov eax, dword [rbx + 8]
mov dword [r14], eax
test r15, r15
je 0x18001fb94
mov eax, dword [rbx + 4]
mov dword [r15], eax
test rbx, rbx
je 0x18001fbab
lea rax, [rsp + 0x48]
cmp rbx, rax
je 0x18001fbab
mov rcx, rbx
call fcn.18001f484
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180001ac0
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18001fbd4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
lea rcx, [rsp + 0x30]
mov rdi, r9
xor esi, esi
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea r9d, [rsi + 4]
mov dword [rsp + 0x28], r9d
lea rdx, [rsp + 0x30]
mov ecx, ebx
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntdll.dll_NtSetValueKey]
test eax, eax
jns 0x18001fc22
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov esi, eax
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x18002b218
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x30]
lea rax, [rax + rcx + 0x18]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0
jmp 0x18002b285
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x40], eax
jae 0x18002b2c6
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x7273722e
jne 0x18002b2b6
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x18002b2c6
mov rax, qword [rsp + 0x38]
add rax, 0x28
mov qword [rsp + 0x38], rax
jmp 0x18002b27b
cmp qword [rsp + 0x20], 0
je 0x18002b2f0
mov rax, qword [rsp + 0x20]
add rax, 0x10
mov edx, 1
mov rcx, rax
mov rax, qword [rsp + 0x20]
call qword [rax]
xor ecx, ecx
mov rax, qword [rsp + 0x20]
call qword [rax + 8]
mov eax, 1
add rsp, 0x58
ret
Function at 0x180003380
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov rax, qword gs:[0x60]
mov rbp, rdx
mov r14, rcx
mov rsi, qword [rax + 0x18]
add rsi, 0x10
mov rdi, qword [rsi]
cmp rdi, rsi
je 0x180003426
movzx ebx, word [rdi + 0x58]
xor eax, eax
shr rbx, 1
je 0x180003415
mov r10, qword [rdi + 0x60]
nop dword [rax]
nop dword [rax + rax]
movzx edx, word [r10]
movsx r11d, byte [rax + rbp]
movzx r9d, r11w
lea ecx, [rdx - 0x61]
cmp cx, 0x19
lea r8d, [rdx - 0x20]
lea ecx, [r9 - 0x61]
cmova r8w, dx
cmp cx, 0x19
lea edx, [r9 - 0x20]
cmova dx, r11w
cmp r8w, dx
jne 0x18000341e
test r11b, r11b
je 0x18000341e
inc rax
add r10, 2
cmp rax, rbx
jb 0x1800033d0
mov rax, qword [rdi + 0x30]
mov qword [r14], rax
jmp 0x18000342d
mov rdi, qword [rdi]
cmp rdi, rsi
jne 0x1800033b5
mov qword [r14], 0
mov rbx, qword [rsp + 0x10]
mov rax, r14
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret

Function at 0x1800066b0
Capabilities:
Parse pe header

Disassembly:
push rbx
push r13
sub rsp, 0x18
mov r11, qword [rcx]
xor r9d, r9d
mov r13, r8
mov rbx, rdx
test r11, r11
je 0x1800067e9
mov qword [rsp + 0x30], rbp
mov eax, 0x5a4d
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x10], r12
mov qword [rsp + 8], r14
mov qword [rsp], r15
cmp word [r11], ax
jne 0x1800067be
movsxd rax, dword [r11 + 0x3c]
add rax, r11
cmp dword [rax], 0x4550
cmovne rax, r9
test rax, rax
je 0x1800067be
add rax, 0x18
mov ecx, 0x20b
cmp word [rax], cx
jne 0x1800067be
test rax, rax
je 0x1800067be
cmp dword [rax + 0x6c], r9d
jbe 0x1800067be
lea r14, [rax + 0x70]
test r14, r14
je 0x1800067be
mov r15d, dword [r14]
mov r10d, r9d
mov edi, dword [r11 + r15 + 0x18]
lea rsi, [r11 + r15]
test edi, edi
je 0x1800067be
mov r12d, dword [rsi + 0x20]
nop dword [rax]
mov ebp, r10d
mov r8, r13
lea rax, [r12 + rbp*4]
mov eax, dword [rax + r11]
add rax, r11
sub r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180006787
inc rax
test ecx, ecx
jne 0x180006774
test edx, edx
je 0x180006795
inc r10d
cmp r10d, edi
jb 0x180006760
jmp 0x1800067be
mov ecx, dword [rsi + 0x24]
add rcx, r11
movzx edx, word [rcx + rbp*2]
mov ecx, dword [rsi + 0x1c]
add rcx, r11
mov r8d, dword [rcx + rdx*4]
cmp r8d, r15d
jb 0x1800067ba
mov eax, r8d
sub eax, r15d
cmp eax, dword [r14 + 4]
jb 0x1800067be
lea r9, [r11 + r8]
mov qword [rbx], r9
mov rax, rbx
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov r12, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
add rsp, 0x18
pop r13
pop rbx
ret
mov qword [rdx], r9
mov rax, rbx
add rsp, 0x18
pop r13
pop rbx
ret
Function at 0x180006c00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r10, qword [rcx]
xor r8d, r8d
test r10, r10
je 0x180006c94
mov eax, 0x5a4d
cmp word [r10], ax
jne 0x180006c77
movsxd rcx, dword [r10 + 0x3c]
add rcx, r10
cmp dword [rcx], 0x4550
cmovne rcx, r8
test rcx, rcx
je 0x180006c77
movzx eax, word [rcx + 0x14]
add rax, 0x18
add rax, rcx
movzx ecx, word [rcx + 6]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8]
cmp rax, r9
je 0x180006c77
test dword [rax + 0x24], 0x40000000
je 0x180006c65
cmp dword [rax], 0x6164722e
jne 0x180006c65
cmp word [rax + 4], 0x6174
je 0x180006c6b
add rax, 0x28
jmp 0x180006c47
mov ecx, dword [rax + 0xc]
mov r8d, dword [rax + 8]
add rcx, r10
jmp 0x180006c7e
mov qword [rdx + 8], r8
mov rcx, r8
mov eax, 8
mov qword [rdx], rcx
mov r10, rdx
mov r9, rdx
mov qword [rax + rdx], r8
mov rax, rdx
ret
mov qword [rdx], r8
mov rax, rdx
mov qword [rdx + 8], r8
ret
Function at 0x140003390
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x1400033b8
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp], rax
jae 0x140003415
xor edx, edx
mov rax, qword [rsp]
mov ecx, 8
div rcx
mov rax, rdx
shl rax, 3
movzx ecx, al
mov rax, qword [rsp + 0x30]
shr rax, cl
and rax, 0xff
movsx eax, al
mov rcx, qword [rsp]
mov rdx, qword [rsp + 0x20]
add rdx, rcx
mov rcx, rdx
movsx ecx, byte [rcx]
xor ecx, eax
mov eax, ecx
mov rcx, qword [rsp]
mov rdx, qword [rsp + 0x20]
add rdx, rcx
mov rcx, rdx
mov byte [rcx], al
jmp 0x1400033ad
add rsp, 0x18
ret

Function at 0x140004690
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x70], 0
jg 0x1400046b2
xor eax, eax
jmp 0x140004855
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x68], 0
je 0x1400046d7
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140005300
jmp 0x140004855
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x60]
call fcn.1400085e0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x14000476d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.140004860
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x60]
call fcn.1400087a0
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.140009620
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.140008700
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x140004845
mov rcx, qword [rsp + 0x60]
call fcn.1400080e0
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x14000480d
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.14001aae4
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x14000480b
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x140004855
jmp 0x140004793
cmp qword [rsp + 0x20], 0
jbe 0x140004845
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.14001aae4
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x58
ret
Function at 0x140010e4c
Capabilities:
Parse pe header

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

Function at 0x14001dba0
Capabilities:
Parse pe header

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

Function at 0x1400209b0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400209c6
mov al, 1
jmp 0x140020a26
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400209d7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140020a24
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002b24c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140020a24
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140020a24
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140020a24
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140020a26
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140025b4c
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.140010720
sub rsp, rax
mov rax, qword [0x14004f080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140020890
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140025b9b
mov rax, rbp
jmp 0x140025ca3
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 + 0x51390]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002756c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x51390]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140025c9f
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 0x140025c9f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002756c
test rax, rax
js 0x140025c9f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140025c9f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140025c91
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140025c91
cmp byte [rcx], 0xd
jne 0x140025c77
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140025c86
cmp byte [rcx + 1], 0xa
jne 0x140025c86
inc rcx
jmp 0x140025c86
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4f4c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140025c59
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140025ca3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000ff80
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 0x14002690c
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, [0x140051390]
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 0x140026963
cmp word [rdx], r13w
jne 0x140026963
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140026968
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140026a8d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140026aae
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400269a1
mov rdx, r9
mov word [rbx], cx
jmp 0x1400269c8
cmp r9, r8
jae 0x1400269d8
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 0x140026982
jmp 0x140026a8d
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 0x140026a82
cmp dword [rsp + 0x80], esi
je 0x140026a82
lea r8, [0x140051390]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140026a5a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140026a2a
mov word [rbx], r13w
jmp 0x140026a8a
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 0x140026a37
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140026a8a
cmp word [rsp + 0x70], r13w
jne 0x140026a67
cmp rbx, r14
je 0x140026a24
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140027574
cmp word [rsp + 0x70], r13w
je 0x140026a8d
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, [0x140051390]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140026a87
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140026a8d
Function at 0x14002a7e4
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 0x14002a814
xor eax, eax
jmp 0x14002a8d7
mov rbp, rbx
cmp word [rax], si
je 0x14002a839
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002a820
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002a81c
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.140028de4
movsxd r14, eax
test eax, eax
jne 0x14002a877
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002a80d
mov rcx, r14
call fcn.140022a1c
mov rdi, rax
test rax, rax
jne 0x14002a890
xor ecx, ecx
call fcn.140022598
jmp 0x14002a86c
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.140028de4
test eax, eax
jne 0x14002a8c1
mov rcx, rdi
call fcn.140022598
jmp 0x14002a8cb
xor ecx, ecx
call fcn.140022598
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 0x14002d7a0
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.140020e70
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 0x14002d841
cmp ebx, dword [rsp + 0x30]
je 0x14002d83a
test esi, esi
je 0x14002d83a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002d815
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002d822
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002d7ff
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002d826
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002d843
mov eax, 1
jmp 0x14002d843
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret