joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008b4b0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140173020]
xor rax, rsp
mov qword [rsp + 0x60], rax
call fcn.140052420
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0xa0]
call fcn.14008a7f0
movzx eax, al
test eax, eax
je 0x14008b4f1
lea rax, str.Font_atlas_not_built__It_is_generally_built_by_the_renderer_backend._Missing_call_to_renderer__NewFrame___function__e.g._ImGui_ImplOpenGL3_NewFrame__.
test rax, rax
jne 0x14008b50c
mov r8d, 0x10c
lea rdx, [0x140134b80]
lea rcx, str.io.Fonts__IsBuilt_____Font_atlas_not_built__It_is_generally_built_by_the_renderer_backend._Missing_call_to_renderer__NewFrame___function__e.g._ImGui_ImplOpenGL3_NewFrame__._
call fcn.1400c7f74
xor eax, eax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x54], 0
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402787e0]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x54]
sub ecx, eax
mov eax, ecx
cvtsi2ss xmm0, eax
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
cvtsi2ss xmm1, eax
movaps xmm2, xmm0
lea rcx, [rsp + 0x3c]
call fcn.140021d80
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 8], rax
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [0x1402787e8]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
cvtsi2ss xmm0, rax
cvtsi2ss xmm1, qword [0x1402787f0]
divss xmm0, xmm1
mov rax, qword [rsp + 0x20]
movss dword [rax + 0x10], xmm0
mov rax, qword [rsp + 0x58]
mov qword [0x1402787e8], rax
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14008b5e4
mov dword [rsp + 0x28], 1
jmp 0x14008b5ec
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x28]
mov byte [rax + 0x138], cl
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14008b61b
mov dword [rsp + 0x2c], 1
jmp 0x14008b623
mov dword [rsp + 0x2c], 0
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x2c]
mov byte [rax + 0x139], cl
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14008b652
mov dword [rsp + 0x30], 1
jmp 0x14008b65a
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x30]
mov byte [rax + 0x13a], cl
mov rax, qword [rsp + 0x20]
mov byte [rax + 0x13b], 0
call fcn.14008acb0
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0xc0]
test eax, eax
je 0x14008b695
mov dword [rsp + 0x34], 0xffffffff
jmp 0x14008b69e
call fcn.140057020
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
cmp dword [0x14023dd3c], eax
je 0x14008b6c1
mov eax, dword [rsp + 0x38]
mov dword [0x14023dd3c], eax
call fcn.14008ab80
call fcn.14008ae10
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400badc0
add rsp, 0x78
ret
Function at 0x140095f70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140240588]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x1978]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x40]
movss xmm0, dword [rax + 0x1980]
movss dword [rsp + 0x24], xmm0
mov rax, qword [rsp + 0x48]
movss xmm0, dword [rsp + 0x24]
divss xmm0, dword [rax + 0x14]
movss dword [rsp + 0x38], xmm0
xorps xmm2, xmm2
xorps xmm1, xmm1
mov rcx, qword [rsp + 0x70]
call fcn.140021d80
xorps xmm0, xmm0
movss dword [rsp + 0x20], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x80]
cmp qword [rsp + 0x30], rax
jae 0x1400960b6
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x28], 0xa
jne 0x140096078
movss xmm1, dword [rsp + 0x20]
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax]
call fcn.14006d3f0
mov rax, qword [rsp + 0x70]
movss dword [rax], xmm0
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rsp + 0x24]
mov rax, qword [rsp + 0x70]
movss dword [rax + 4], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x20], xmm0
movzx eax, byte [rsp + 0x98]
test eax, eax
je 0x140096073
jmp 0x1400960b6
jmp 0x140095ff1
cmp dword [rsp + 0x28], 0xd
jne 0x140096084
jmp 0x140095ff1
movzx edx, word [rsp + 0x28]
mov rcx, qword [rsp + 0x48]
call fcn.14008dad0
mulss xmm0, dword [rsp + 0x38]
movss dword [rsp + 0x3c], xmm0
movss xmm0, dword [rsp + 0x20]
addss xmm0, dword [rsp + 0x3c]
movss dword [rsp + 0x20], xmm0
jmp 0x140095ff1
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rsp + 0x20]
comiss xmm0, dword [rax]
jbe 0x1400960d5
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rsp + 0x20]
movss dword [rax], xmm0
cmp qword [rsp + 0x90], 0
je 0x140096111
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rsp + 0x24]
movaps xmm2, xmm0
movss xmm1, dword [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.140021d80
mov rax, qword [rax]
mov rcx, qword [rsp + 0x90]
mov qword [rcx], rax
movss xmm0, dword [rsp + 0x20]
comiss xmm0, dword [0x140164a24]
ja 0x140096135
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
ucomiss xmm0, dword [0x140164a24]
jp 0x14009614f
jne 0x14009614f
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rsp + 0x24]
mov rax, qword [rsp + 0x70]
movss dword [rax + 4], xmm0
cmp qword [rsp + 0x88], 0
je 0x14009616a
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov rax, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x1400b20a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140173020]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x88]
call fcn.140012410
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov ecx, dword [rsp + 0x90]
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x1400b2115
xor al, al
jmp 0x1400b217d
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x44], 0
je 0x1400b2170
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x50], eax
jne 0x1400b2170
mov dword [rsp + 0x40], 1
jmp 0x1400b2178
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400badc0
add rsp, 0x68
ret
Function at 0x1400b2190
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x198
mov rax, qword [0x140173020]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rax, qword [rsp + 0x1a0]
mov byte [rax], 0
mov rax, qword [rsp + 0x1a0]
add rax, 8
lea rdx, [0x14016448d]
mov rcx, rax
call fcn.1400126f0
nop
mov rax, qword [rsp + 0x1a0]
add rax, 0x28
lea rdx, [0x14016448d]
mov rcx, rax
call fcn.1400126f0
nop
mov rax, qword [rsp + 0x1a0]
add rax, 0x48
lea rdx, [0x14016448d]
mov rcx, rax
call fcn.1400126f0
nop
mov rax, qword [rsp + 0x1a0]
mov qword [rax + 0x68], 0
mov rax, qword [rsp + 0x1a0]
mov qword [rax + 0x70], 0
mov rax, qword [rsp + 0x1a0]
mov byte [rax + 0x78], 0
mov rax, qword [rsp + 0x1a0]
mov byte [rax + 0x79], 0
mov rax, qword [rsp + 0x1a0]
mov byte [rax + 0x7a], 0
mov rax, qword [rsp + 0x1a0]
mov byte [rax + 0x7b], 0
mov rax, qword [rsp + 0x1a0]
mov qword [rax + 0x80], 0
mov rax, qword [rsp + 0x1a0]
add rax, 8
mov rdx, qword [rsp + 0x1a8]
mov rcx, rax
call fcn.140012510
xor r8d, r8d
mov dl, 0x3a
mov rcx, qword [rsp + 0x1a8]
call fcn.1400b5290
cmp rax, 0xffffffffffffffff
jne 0x1400b232e
lea rdx, [rsp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400126f0
nop
lea rdx, [0x140164a00]
lea rcx, [rsp + 0x48]
call fcn.1400b5300
mov r8, qword [rsp + 0x1a8]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.1400b53a0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x1a0]
add rax, 8
mov rdx, qword [rsp + 0x20]
mov rcx, rax
call fcn.1400125c0
lea rcx, [rsp + 0x28]
call fcn.140012590
nop
lea rcx, [rsp + 0x48]
call fcn.140012590
mov rax, qword [rsp + 0x1a0]
add rax, 0x28
mov rdx, qword [rsp + 0x1b0]
mov rcx, rax
call fcn.140012510
mov rax, qword [rsp + 0x1a0]
add rax, 0x48
mov rdx, qword [rsp + 0x1b8]
mov rcx, rax
call fcn.140012510
mov rax, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x1c0]
mov qword [rax + 0x68], rcx
mov rax, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x1c8]
mov qword [rax + 0x70], rcx
mov rcx, qword [rsp + 0x1a0]
call fcn.1400b2680
nop
mov rax, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400badc0
add rsp, 0x198
ret
Function at 0x1400b62c0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x48
mov eax, dword [0x1402405a0]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x1f4
xor edx, edx
mov rcx, qword [0x140240578]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [0x1402405a4], eax
movsxd rax, dword [0x1402405a4]
mov qword [rsp + 0x20], 0
mov r9d, 0x3c
lea r8, [0x14023d900]
mov rdx, rax
mov rcx, qword [0x140240578]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, byte [0x1402404bd]
cmp eax, 1
jne 0x1400b6344
mov eax, dword [0x1402405a4]
add eax, 0x13
mov dl, 0x40
mov ecx, eax
call fcn.1400b7d80
jmp 0x1400b6362
movzx eax, byte [0x1402404bf]
cmp eax, 1
jne 0x1400b6362
mov eax, dword [0x1402405a4]
add eax, 0x13
mov dl, 0x50
mov ecx, eax
call fcn.1400b7d80
movzx eax, byte [0x1402404bc]
cmp eax, 1
jne 0x1400b6382
mov eax, dword [0x1402405a4]
add eax, 0x13
mov dl, 0x40
mov ecx, eax
call fcn.1400b7d80
jmp 0x1400b63a0
movzx eax, byte [0x1402404be]
cmp eax, 1
jne 0x1400b63a0
mov eax, dword [0x1402405a4]
add eax, 0x13
mov dl, 0x50
mov ecx, eax
call fcn.1400b7d80
mov eax, dword [0x1402405a4]
add eax, 0x5e
mov ecx, dword [0x1402405a4]
add ecx, 9
mov edx, eax
call fcn.1400b7dc0
mov eax, dword [rsp + 0x30]
add eax, 8
cdqe
mov qword [rsp + 0x20], 0
mov r9d, 7
lea r8, [0x140240598]
mov rdx, rax
mov rcx, qword [0x140240578]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movsxd rax, dword [0x1402405a4]
mov qword [rsp + 0x20], 0
mov r9d, 7
lea r8, [0x140240598]
mov rdx, rax
mov rcx, qword [0x140240578]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
add rsp, 0x48
ret

Function at 0x1400b7bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov rax, qword [0x140173020]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, dword [0x140240570]
mov dword [rsp + 0x34], eax
mov r8d, dword [rsp + 0x34]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x78]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 0x40
mov r8, qword [rsp + 0x70]
mov edx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov edx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x40]
mov r8, qword [rsp + 0x70]
mov edx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400badc0
add rsp, 0x58
ret
Function at 0x1400b8570
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov rax, qword [0x140173020]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x1400b85be
xor eax, eax
jmp 0x1400b8631
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400b861e
mov rdx, qword [rsp + 0x290]
lea rcx, [rsp + 0x5c]
call fcn.1400c94ec
test eax, eax
jne 0x1400b860a
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x4c], eax
jbe 0x1400b860a
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x24], eax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400b85da
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x24]
jmp 0x1400b8631
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400badc0
add rsp, 0x288
ret

Function at 0x1400bbce0
Capabilities:
Parse pe header

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

Function at 0x1400c8620
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400c848b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c848b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c848b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c848b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c848b
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c848b
cmp dword [rcx + 0xf8], 0
je 0x1400c848b
mov ecx, ebx
call fcn.1400c853c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400c8318
nop
cmp dword [rbp + 0x20], 0
je 0x1400c84d9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400c84e4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400c841c
Function at 0x1400c89d4
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.1400bb950
sub rsp, rax
mov rax, qword [0x140173020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400d2f84
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400c8a23
mov rax, rbp
jmp 0x1400c8b2b
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 + 0x23fc50]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400db94c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x23fc50]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400c8b27
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 0x1400c8b27
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400db94c
test rax, rax
js 0x1400c8b27
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400c8b27
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400c8b19
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400c8b19
cmp byte [rcx], 0xd
jne 0x1400c8aff
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400c8b0e
cmp byte [rcx + 1], 0xa
jne 0x1400c8b0e
inc rcx
jmp 0x1400c8b0e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x173410]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400c8ae1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400c8b2b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400badc0
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 0x1400db9f8
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, [0x14023fc50]
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 0x1400dba4f
cmp word [rdx], r13w
jne 0x1400dba4f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400dba54
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400dbb79
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400dbb9a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400dba8d
mov rdx, r9
mov word [rbx], cx
jmp 0x1400dbab4
cmp r9, r8
jae 0x1400dbac4
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 0x1400dba6e
jmp 0x1400dbb79
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 0x1400dbb6e
cmp dword [rsp + 0x80], esi
je 0x1400dbb6e
lea r8, [0x14023fc50]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400dbb46
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400dbb16
mov word [rbx], r13w
jmp 0x1400dbb76
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 0x1400dbb23
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400dbb76
cmp word [rsp + 0x70], r13w
jne 0x1400dbb53
cmp rbx, r14
je 0x1400dbb10
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400db954
cmp word [rsp + 0x70], r13w
je 0x1400dbb79
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, [0x14023fc50]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400dbb73
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400dbb79
Function at 0x1400dc6ec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400dc702
mov al, 1
jmp 0x1400dc762
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400dc713
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400dc760
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400e3cf4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400dc760
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400dc760
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400dc760
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400dc762
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400e2bf8
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 0x1400e2c28
xor eax, eax
jmp 0x1400e2ceb
mov rbp, rbx
cmp word [rax], si
je 0x1400e2c4d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400e2c34
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400e2c30
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.1400e169c
movsxd r14, eax
test eax, eax
jne 0x1400e2c8b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400e2c21
mov rcx, r14
call fcn.1400d7454
mov rdi, rax
test rax, rax
jne 0x1400e2ca4
xor ecx, ecx
call fcn.1400d7418
jmp 0x1400e2c80
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.1400e169c
test eax, eax
jne 0x1400e2cd5
mov rcx, rdi
call fcn.1400d7418
jmp 0x1400e2cdf
xor ecx, ecx
call fcn.1400d7418
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 0x1400e2d08
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 0x1400e2d8f
mov rsi, rbx
cmp word [rax], bp
je 0x1400e2d4e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400e2d38
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400e2d34
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400d7454
mov rdi, rax
test rax, rax
je 0x1400e2d7c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400bd450
mov rbp, rdi
xor ecx, ecx
call fcn.1400d7418
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 0x1400e6150
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.1400d8dc4
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 0x1400e61f1
cmp ebx, dword [rsp + 0x30]
je 0x1400e61ea
test esi, esi
je 0x1400e61ea
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400e61c5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400e61d2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400e61af
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400e61d6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400e61f3
mov eax, 1
jmp 0x1400e61f3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret