joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004f90
Capabilities:
Read file on windows
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x460
mov rax, qword [0x14004f0c8]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rdi, rdx
lea rax, str.RshFileMap000
xor edx, edx
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov dword [rsp + 0x20], 0x34
mov rbx, rcx
lea rcx, [rdx - 1]
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r14d, r14d
test eax, eax
je 0x14000503d
xor r9d, r9d
mov qword [rsp + 0x20], 0x34
xor r8d, r8d
mov edx, 0xf001f
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea rcx, [rbx + 0x14]
mov edx, dword [rax]
mov dword [rbx], edx
mov edx, dword [rax + 4]
mov dword [rbx + 4], edx
mov edx, dword [rax + 8]
mov dword [rbx + 8], edx
mov edx, dword [rax + 0xc]
mov dword [rbx + 0xc], edx
mov edx, dword [rax + 0x10]
mov dword [rbx + 0x10], edx
lea rdx, [rax + 0x14]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x14000505d
mov dword [rbx], r14d
mov dword [rbx + 4], 0x3a4
mov dword [rbx + 8], 0x411
mov dword [rbx + 0xc], 0xfffffde4
mov qword [rbx + 0x10], 0x64
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetBinaryTypeW]
test eax, eax
je 0x1400051b3
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400050b6
mov eax, 0xffffd8ed
jmp 0x1400051b8
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], r14
mov r8d, 0x400
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400051ac
mov eax, 0x5a4d
cmp word [rsp + 0x50], ax
jne 0x1400051ac
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd rcx, dword [rsp + 0x8c]
lea rdi, [rsp + 0x54]
add rdi, rcx
mov esi, 0x8664
movzx eax, word [rdi]
cmp ax, si
je 0x140005126
mov edx, 0x14c
cmp ax, dx
je 0x140005126
mov eax, 0xffffd8e5
jmp 0x1400051b8
mov rax, qword [rsp + rcx + 0x80]
lea r9, str.RcpEvent000
mov qword [rbx + 0x50], rax
xor r8d, r8d
mov eax, dword [rsp + rcx + 0x78]
xor edx, edx
xor ecx, ecx
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
xor edx, edx
mov qword [rbx + 0x38], rax
lea rax, str.RcpFileMap000
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 8
lea rcx, [rdx - 1]
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
xor r9d, r9d
mov qword [rsp + 0x20], 8
mov rcx, rax
mov qword [rbx + 0x40], rax
xor r8d, r8d
mov edx, 0xf001f
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp word [rdi], si
mov qword [rbx + 0x48], rax
mov eax, 0xffffd8ef
cmove eax, r14d
jmp 0x1400051b8
mov eax, 0xffffd8e6
jmp 0x1400051b8
mov eax, 0xffffd8ec
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14000d0e0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140005b20
Capabilities:
Patch process command line

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14004f0c8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, rcx
mov rdi, rdx
lea rcx, [0x14003aa64]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtQueryInformationProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
jne 0x140005b6f
mov eax, 0xffffd8e7
jmp 0x140005c44
mov rcx, qword [rdi]
lea r8, [rsp + 0x40]
mov qword [rsp + 0xb0], rbx
mov r9d, 0x30
xor edx, edx
mov qword [rsp + 0xb8], r14
mov qword [rsp + 0x20], 0
call rbp
mov r14d, 2
mov ebx, eax
mov ecx, r14d
call fcn.1400147c8
mov rcx, rax
lea rdx, str.QueryProcess_info_pointer_:__p__ret_:__d_n
mov r9d, ebx
mov r8, rbp
call fcn.140006010
test ebx, ebx
js 0x140005bfe
mov rdx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
mov rcx, qword [rdi]
lea r9d, [r14 + 6]
add rdx, 0x10
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbp, qword [rsi + 0x58]
add rbp, qword [rsp + 0x30]
mov qword [rsi + 0x58], rbp
lea rsi, str.ProcessID_:__u__EntryPoint_1_:__p_n
jmp 0x140005c11
mov rbp, qword [rsi + 0x50]
add rbp, qword [rsi + 0x58]
mov qword [rsi + 0x58], rbp
lea rsi, str.ProcessID_:__u__EntryPoint_0_:__p_n
mov eax, 0x10
mov ecx, r14d
mov ebx, dword [rax + rdi]
call fcn.1400147c8
mov rcx, rax
mov r9, rbp
mov r8d, ebx
mov rdx, rsi
call fcn.140006010
mov r14, qword [rsp + 0xb8]
xor eax, eax
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14000d0e0
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005e30
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x14004f0c8]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rdi, rdx
lea r8, str.RcpInternalMutex
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140005eb0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor r9d, r9d
lea r8, str.NT_Locale_Emulator_Advance
mov rcx, rax
lea rdx, str.Err:_NTLEAS_could_not_startup_two_instances_at_one_time.
call qword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0xffffd8ee
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14000d0e0
mov rdi, qword [rsp + 0x180]
add rsp, 0x160
pop rbp
ret
mov rdi, qword [rdi + 8]
lea rcx, [rbp - 0x20]
xorps xmm0, xmm0
mov qword [rsp + 0x170], rbx
xor eax, eax
mov rdx, rdi
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp + 0x40], rax
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
call fcn.140004f90
lea rdx, str.MS_PGothic
mov dword [rbp - 0x20], 4
lea rcx, [rbp - 0xc]
mov dword [rbp - 0x1c], 0x3a4
mov ebx, eax
mov dword [rbp - 0x18], 0x411
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
test ebx, ebx
jns 0x140005f25
mov ecx, ebx
call fcn.140005a50
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x68
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x60], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x48], rax
mov rcx, rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], eax
movdqu xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rbp - 0x68], xmm0
movups xmmword [rbp - 0x58], xmm0
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x38], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140005fa3
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x20]
call fcn.1400051e0
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
test ebx, ebx
jns 0x140005fe2
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, ebx
call fcn.140005a50
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140006900
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [rsp + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x14000693d
nop dword [rax + rax]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
jne 0x140006920
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140006950
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x14004f0c8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rdi, rcx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140006610
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x28], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rsp + 0x38], xmm1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea rcx, [rsp + 0x80]
call fcn.140008400
mov rbx, rax
lea rdx, str.LOSSLESS_WAITFOR_STOP_SIGNAL
lea rcx, [rsp + 0x60]
call fcn.1400066a0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140006560
mov rcx, rax
call fcn.140006b60
mov r9, rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.1400021f0
nop
lea rcx, [rsp + 0x60]
call fcn.1400021f0
nop
lea rcx, [rsp + 0x80]
call fcn.1400021f0
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [rdi]
call qword [rdi + 8]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140008640
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.140008860
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x140008747
mov rax, qword [0x14004f030]
cmp qword [rsp + 0x20], rax
jb 0x1400086a4
mov rax, qword [0x14004f038]
cmp qword [rsp + 0x20], rax
ja 0x1400086a4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x140008666
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14000f4f0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400086d3
jmp 0x140008747
cmp dword [rsp + 0x50], 0x10000
jne 0x14000872a
cmp qword [rsp + 0x48], 0x10000
jb 0x14000872a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140008718
mov rax, qword [rsp + 0x28]
jmp 0x140008749
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140008742
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.140008860
mov qword [rsp + 0x20], rax
jmp 0x140008666
xor eax, eax
add rsp, 0x68
ret

Function at 0x140008750
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1400088a0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x140008853
mov rax, qword [0x14004f030]
cmp qword [rsp + 0x20], rax
jb 0x1400087ab
mov rax, qword [0x14004f038]
cmp qword [rsp + 0x20], rax
ja 0x1400087ab
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x14000876d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14000f4f0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400087da
jmp 0x140008853
cmp dword [rsp + 0x50], 0x10000
jne 0x140008831
cmp qword [rsp + 0x48], 0x10000
jb 0x140008831
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14000881f
mov rax, qword [rsp + 0x28]
jmp 0x140008855
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x14000884e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1400088a0
mov qword [rsp + 0x20], rax
jmp 0x14000876d
xor eax, eax
add rsp, 0x68
ret
Function at 0x14000dd1c
Capabilities:
Parse pe header

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

Function at 0x1400212d8
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 0x14002130f
call fcn.14001396c
mov dword [rax], 0x16
call fcn.140013800
xor eax, eax
jmp 0x14002139d
mov rdx, r9
mov rcx, r8
call fcn.140021274
mov rbx, rax
test rax, rax
je 0x14002139a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400211a0]
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 0x140021387
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400138e0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14002136e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14002137d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400281f4
jmp 0x14002139a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140021397
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 0x1400259bc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400257b8
Function at 0x14002aa24
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.14000d650
sub rsp, rax
mov rax, qword [0x14004f0c8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140029390
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002aa73
mov rax, rbp
jmp 0x14002ab7b
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 + 0x51910]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002bd0c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x51910]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002ab77
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 0x14002ab77
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002bd0c
test rax, rax
js 0x14002ab77
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002ab77
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002ab69
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002ab69
cmp byte [rcx], 0xd
jne 0x14002ab4f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002ab5e
cmp byte [rcx + 1], 0xa
jne 0x14002ab5e
inc rcx
jmp 0x14002ab5e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4f4e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002ab31
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002ab7b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000d0e0
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 0x14002ae98
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002aeae
mov al, 1
jmp 0x14002af0e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002aebf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002af0c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140031740
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002af0c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002af0c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002af0c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002af0e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002b0ac
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, [0x140051910]
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 0x14002b103
cmp word [rdx], r13w
jne 0x14002b103
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002b108
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002b22d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002b24e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002b141
mov rdx, r9
mov word [rbx], cx
jmp 0x14002b168
cmp r9, r8
jae 0x14002b178
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 0x14002b122
jmp 0x14002b22d
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 0x14002b222
cmp dword [rsp + 0x80], esi
je 0x14002b222
lea r8, [0x140051910]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002b1fa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002b1ca
mov word [rbx], r13w
jmp 0x14002b22a
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 0x14002b1d7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002b22a
cmp word [rsp + 0x70], r13w
jne 0x14002b207
cmp rbx, r14
je 0x14002b1c4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002bd14
cmp word [rsp + 0x70], r13w
je 0x14002b22d
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, [0x140051910]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002b227
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002b22d
Function at 0x140030d68
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 0x140030def
mov rsi, rbx
cmp word [rax], bp
je 0x140030dae
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140030d98
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140030d94
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002bf78
mov rdi, rax
test rax, rax
je 0x140030ddc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000ee40
mov rbp, rdi
xor ecx, ecx
call fcn.1400281f4
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 0x140033c94
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.140027e94
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 0x140033d35
cmp ebx, dword [rsp + 0x30]
je 0x140033d2e
test esi, esi
je 0x140033d2e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140033d09
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140033d16
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140033cf3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140033d1a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140033d37
mov eax, 1
jmp 0x140033d37
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140038780
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14002bd14
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002bd14
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400388d0
cmp rax, 0xffffffffffffffff
je 0x1400388d0
xor edi, edi
test rbp, rbp
jle 0x14003887b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002847c
mov rbx, rax
test rax, rax
jne 0x140038808
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140038871
mov edx, 0x8000
mov ecx, r14d
call fcn.140025a38
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14002a29c
cmp eax, 0xffffffff
je 0x140038851
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140038818
mov edx, r15d
mov ecx, r14d
call fcn.140025a38
jmp 0x140038871
cmp byte [rsi + 0x38], dil
je 0x140038868
cmp dword [rsi + 0x34], 5
jne 0x140038868
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140038871
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400281f4
jmp 0x1400388e4
jns 0x1400388e4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002bd14
cmp rax, 0xffffffffffffffff
jne 0x14003889c
cmp byte [rsi + 0x30], dil
je 0x1400388e4
mov edi, dword [rsi + 0x2c]
jmp 0x1400388e4
mov ecx, r14d
call fcn.140031740
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400388e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400388e4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400388dd
mov eax, dword [rsi + 0x2c]
jmp 0x1400388e2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002bd14
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret