joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bbb50
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 [0x1402144f0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x1998]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x40]
movss xmm0, dword [rax + 0x19a0]
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.14002a7d0
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 0x1400bbc96
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 0x1400bbc58
movss xmm1, dword [rsp + 0x20]
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax]
call fcn.140092850
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 0x1400bbc53
jmp 0x1400bbc96
jmp 0x1400bbbd1
cmp dword [rsp + 0x28], 0xd
jne 0x1400bbc64
jmp 0x1400bbbd1
movzx edx, word [rsp + 0x28]
mov rcx, qword [rsp + 0x48]
call fcn.1400b3640
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 0x1400bbbd1
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rsp + 0x20]
comiss xmm0, dword [rax]
jbe 0x1400bbcb5
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rsp + 0x20]
movss dword [rax], xmm0
cmp qword [rsp + 0x90], 0
je 0x1400bbcf1
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.14002a7d0
mov rax, qword [rax]
mov rcx, qword [rsp + 0x90]
mov qword [rcx], rax
movss xmm0, dword [rsp + 0x20]
comiss xmm0, dword [0x1401dbd14]
ja 0x1400bbd15
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
ucomiss xmm0, dword [0x1401dbd14]
jp 0x1400bbd2f
jne 0x1400bbd2f
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 0x1400bbd4a
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 0x1400d9250
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 [0x1401ed1a0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x88]
call fcn.14002ca60
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 0x1400d92c5
xor al, al
jmp 0x1400d932d
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 0x1400d9320
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x50], eax
jne 0x1400d9320
mov dword [rsp + 0x40], 1
jmp 0x1400d9328
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400fd630
add rsp, 0x68
ret
Function at 0x1400d9340
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 [0x1401ed1a0]
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, [0x1401db4de]
mov rcx, rax
call fcn.14000f650
nop
mov rax, qword [rsp + 0x1a0]
add rax, 0x28
lea rdx, [0x1401db4de]
mov rcx, rax
call fcn.14000f650
nop
mov rax, qword [rsp + 0x1a0]
add rax, 0x48
lea rdx, [0x1401db4de]
mov rcx, rax
call fcn.14000f650
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.14000f4c0
xor r8d, r8d
mov dl, 0x3a
mov rcx, qword [rsp + 0x1a8]
call fcn.1400dd790
cmp rax, 0xffffffffffffffff
jne 0x1400d94de
lea rdx, [rsp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14000f650
nop
lea rdx, [0x1401dbce0]
lea rcx, [rsp + 0x48]
call fcn.1400dd7d0
mov r8, qword [rsp + 0x1a8]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.1400dfe80
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x1a0]
add rax, 8
mov rdx, qword [rsp + 0x20]
mov rcx, rax
call fcn.14000f570
lea rcx, [rsp + 0x28]
call fcn.14000f540
nop
lea rcx, [rsp + 0x48]
call fcn.14000f540
mov rax, qword [rsp + 0x1a0]
add rax, 0x28
mov rdx, qword [rsp + 0x1b0]
mov rcx, rax
call fcn.14000f4c0
mov rax, qword [rsp + 0x1a0]
add rax, 0x48
mov rdx, qword [rsp + 0x1b8]
mov rcx, rax
call fcn.14000f4c0
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.1400d9830
nop
mov rax, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400fd630
add rsp, 0x198
ret
Function at 0x1400e13f0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x48
mov eax, dword [0x14021446c]
mov dword [rsp + 0x30], eax
movsxd rax, dword [0x140214510]
mov qword [rsp + 0x20], 0
mov r9d, 0x3c
lea r8, [0x14020e930]
mov rdx, rax
mov rcx, qword [0x1402144e0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x1f4
xor edx, edx
mov rcx, qword [0x1402144e0]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [0x140214510], eax
movsxd rax, dword [0x140214510]
mov qword [rsp + 0x20], 0
mov r9d, 0x3c
lea r8, [0x14020e930]
mov rdx, rax
mov rcx, qword [0x1402144e0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, byte [0x140213af5]
cmp eax, 1
jne 0x1400e14a1
mov eax, dword [0x140214510]
add eax, 0x13
mov dl, 0x40
mov ecx, eax
call fcn.1400e4580
jmp 0x1400e14bf
movzx eax, byte [0x140213af7]
cmp eax, 1
jne 0x1400e14bf
mov eax, dword [0x140214510]
add eax, 0x13
mov dl, 0x50
mov ecx, eax
call fcn.1400e4580
movzx eax, byte [0x140213af4]
cmp eax, 1
jne 0x1400e14df
mov eax, dword [0x140214510]
add eax, 0x13
mov dl, 0x40
mov ecx, eax
call fcn.1400e4580
jmp 0x1400e14fd
movzx eax, byte [0x140213af6]
cmp eax, 1
jne 0x1400e14fd
mov eax, dword [0x140214510]
add eax, 0x13
mov dl, 0x50
mov ecx, eax
call fcn.1400e4580
mov eax, dword [0x140214510]
add eax, 0x5e
mov ecx, dword [0x140214510]
add ecx, 9
mov edx, eax
call fcn.1400e45c0
mov eax, dword [rsp + 0x30]
add eax, 8
cdqe
mov qword [rsp + 0x20], 0
mov r9d, 7
lea r8, [0x140214514]
mov rdx, rax
mov rcx, qword [0x1402144e0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movsxd rax, dword [0x140214510]
mov qword [rsp + 0x20], 0
mov r9d, 7
lea r8, [0x140214514]
mov rdx, rax
mov rcx, qword [0x1402144e0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
add rsp, 0x48
ret

Function at 0x1400e1a00
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 [0x1401ed1a0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, dword [0x140214468]
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.1400fd630
add rsp, 0x58
ret
Function at 0x1400e31e0
Capabilities:
Allocate or change rwx memory

Disassembly:
movss dword [rsp + 0x10], xmm1
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov rax, qword [0x1401ed1a0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, dword [0x140214468]
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 ecx, 0xe0c36e8
call fcn.1400080c0
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov eax, eax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 0x40
mov r8d, 4
mov edx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov eax, eax
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rsp + 0x68]
mov edx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov eax, eax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 2
mov r8d, 4
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.1400fd630
add rsp, 0x58
ret

Function at 0x1400e4eb0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov rax, qword [0x1401ed1a0]
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 0x1400e4efe
xor eax, eax
jmp 0x1400e4f71
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 0x1400e4f5e
mov rdx, qword [rsp + 0x290]
lea rcx, [rsp + 0x5c]
call fcn.140114738
test eax, eax
jne 0x1400e4f4a
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x4c], eax
jbe 0x1400e4f4a
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 0x1400e4f1a
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x24]
jmp 0x1400e4f71
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400fd630
add rsp, 0x288
ret
Function at 0x1400fe548
Capabilities:
Parse pe header

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

Function at 0x1401133c0
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 0x1401133f7
call fcn.1401190c8
mov dword [rax], 0x16
call fcn.14010c494
xor eax, eax
jmp 0x140113485
mov rdx, r9
mov rcx, r8
call fcn.14011335c
mov rbx, rax
test rax, rax
je 0x140113482
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140113288]
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 0x14011346f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14011903c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140113456
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140113465
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140125d78
jmp 0x140113482
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14011347f
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 0x14011386c
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 0x1401136d7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401136d7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401136d7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401136d7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401136d7
cmp dword [rcx + 0x84], 0xe
jbe 0x1401136d7
cmp dword [rcx + 0xf8], 0
je 0x1401136d7
mov ecx, ebx
call fcn.140113788
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.140113564
nop
cmp dword [rbp + 0x20], 0
je 0x140113725
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140113730
int3
xor r8d, r8d
xor edx, edx
jmp 0x140113668
Function at 0x140113c20
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.1400fe370
sub rsp, rax
mov rax, qword [0x1401ed1a0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14011e254
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140113c6f
mov rax, rbp
jmp 0x140113d77
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 + 0x2134d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140128908
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x2134d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140113d73
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 0x140113d73
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140128908
test rax, rax
js 0x140113d73
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140113d73
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140113d65
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140113d65
cmp byte [rcx], 0xd
jne 0x140113d4b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140113d5a
cmp byte [rcx + 1], 0xa
jne 0x140113d5a
inc rcx
jmp 0x140113d5a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1ed5c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140113d2d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140113d77
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400fd630
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 0x1401289b4
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, [0x1402134d0]
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 0x140128a0b
cmp word [rdx], r13w
jne 0x140128a0b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140128a10
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140128b35
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140128b56
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140128a49
mov rdx, r9
mov word [rbx], cx
jmp 0x140128a70
cmp r9, r8
jae 0x140128a80
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 0x140128a2a
jmp 0x140128b35
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 0x140128b2a
cmp dword [rsp + 0x80], esi
je 0x140128b2a
lea r8, [0x1402134d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140128b02
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140128ad2
mov word [rbx], r13w
jmp 0x140128b32
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 0x140128adf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140128b32
cmp word [rsp + 0x70], r13w
jne 0x140128b0f
cmp rbx, r14
je 0x140128acc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140128910
cmp word [rsp + 0x70], r13w
je 0x140128b35
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, [0x1402134d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140128b2f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140128b35
Function at 0x1401296a8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401296be
mov al, 1
jmp 0x14012971e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401296cf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14012971c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140131810
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14012971c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14012971c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14012971c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14012971e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140130714
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 0x140130744
xor eax, eax
jmp 0x140130807
mov rbp, rbx
cmp word [rax], si
je 0x140130769
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140130750
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14013074c
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.14012e6d0
movsxd r14, eax
test eax, eax
jne 0x1401307a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14013073d
mov rcx, r14
call fcn.140126f58
mov rdi, rax
test rax, rax
jne 0x1401307c0
xor ecx, ecx
call fcn.140125d78
jmp 0x14013079c
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.14012e6d0
test eax, eax
jne 0x1401307f1
mov rcx, rdi
call fcn.140125d78
jmp 0x1401307fb
xor ecx, ecx
call fcn.140125d78
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 0x140130824
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 0x1401308ab
mov rsi, rbx
cmp word [rax], bp
je 0x14013086a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140130854
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140130850
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140126f58
mov rdi, rax
test rax, rax
je 0x140130898
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400ffbf0
mov rbp, rdi
xor ecx, ecx
call fcn.140125d78
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 0x140133c6c
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.1401250c8
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 0x140133d0d
cmp ebx, dword [rsp + 0x30]
je 0x140133d06
test esi, esi
je 0x140133d06
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140133ce1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140133cee
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140133ccb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140133cf2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140133d0f
mov eax, 1
jmp 0x140133d0f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret