joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002e3d0
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov eax, dword [rsp + 0x40]
not eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
lea rax, [0x1401361c0]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x38], 0
je 0x14002e4d4
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x38]
dec rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x18], 0
je 0x14002e4cf
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
mov byte [rsp + 2], al
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
movzx eax, byte [rsp + 2]
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 0x23
jne 0x14002e4a4
cmp qword [rsp + 0x38], 2
jb 0x14002e4a4
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14002e4a4
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14002e4a4
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
movzx edx, byte [rsp + 1]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x14002e417
jmp 0x14002e566
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
mov byte [rsp + 3], al
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
movzx eax, byte [rsp + 3]
mov byte [rsp], al
movzx eax, byte [rsp]
test eax, eax
je 0x14002e566
movzx eax, byte [rsp]
cmp eax, 0x23
jne 0x14002e53c
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14002e53c
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14002e53c
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
movzx edx, byte [rsp]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x14002e4d4
mov eax, dword [rsp + 4]
not eax
add rsp, 0x28
ret
Function at 0x140051830
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1401e2218]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x80]
add rax, 0x68
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x58]
call fcn.14001b7a0
nop
mov rax, qword [rsp + 0x30]
mov edx, dword [rax]
lea rcx, [rsp + 0x58]
call fcn.14005a420
lea rcx, [rsp + 0x58]
call fcn.14005a4c0
cdqe
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400f9480
mov dword [rsp + 0x24], 0
jmp 0x1400518b6
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
cmp dword [rsp + 0x24], eax
jge 0x14005191a
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
call fcn.14001f220
movzx eax, word [rax]
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x58]
call fcn.140048540
mov ecx, dword [rsp + 0x38]
mov dword [rax + 4], ecx
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
call fcn.14001f220
movzx eax, word [rax + 2]
mov dword [rsp + 0x3c], eax
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x58]
call fcn.140048540
mov ecx, dword [rsp + 0x3c]
mov dword [rax + 8], ecx
jmp 0x1400518ac
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.140048540
mov r8d, dword [rsp + 0x58]
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call fcn.140064460
mov dword [rsp + 0x20], 0
jmp 0x14005194c
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x20], eax
jge 0x140051a2c
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.140048540
cmp dword [rax + 0x14], 0
je 0x140051a27
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.140048540
movzx eax, word [rax + 0xc]
mov word [rsp + 0x28], ax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.14001f220
movzx ecx, word [rsp + 0x28]
mov word [rax + 4], cx
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.140048540
movzx eax, word [rax + 0x10]
mov word [rsp + 0x2a], ax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.14001f220
movzx ecx, word [rsp + 0x2a]
mov word [rax + 6], cx
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.140048540
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.140048540
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x10]
add ecx, dword [rax + 8]
mov eax, ecx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x44]
mov dword [rsp + 0x44], eax
mov edx, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x44]
call fcn.14001b5e0
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x44], eax
jmp 0x140051942
lea rcx, [rsp + 0x58]
call fcn.14001e940
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400f70e0
add rsp, 0x78
ret
Function at 0x14006b1e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14006b206
mov dword [rsp + 0x20], 1
jmp 0x14006b20e
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140087420
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 [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x3c18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
movss xmm0, dword [rax + 0x3c20]
movss dword [rsp + 0x24], xmm0
mov rax, qword [rsp + 0x50]
movss xmm0, dword [rsp + 0x24]
divss xmm0, dword [rax + 0x14]
movss dword [rsp + 0x3c], xmm0
xorps xmm2, xmm2
xorps xmm1, xmm1
mov rcx, qword [rsp + 0x70]
call fcn.14000a730
xorps xmm0, xmm0
movss dword [rsp + 0x20], xmm0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x30], rax
jae 0x14008756f
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xa
jne 0x140087531
movss xmm1, dword [rsp + 0x20]
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax]
call fcn.14001b610
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 + 0xa0]
test eax, eax
je 0x14008752c
jmp 0x14008756f
jmp 0x1400874a2
cmp dword [rsp + 0x28], 0xd
jne 0x14008753d
jmp 0x1400874a2
movzx edx, word [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.140086a40
mulss xmm0, dword [rsp + 0x3c]
movss dword [rsp + 0x40], xmm0
movss xmm0, dword [rsp + 0x20]
addss xmm0, dword [rsp + 0x40]
movss dword [rsp + 0x20], xmm0
jmp 0x1400874a2
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rsp + 0x20]
comiss xmm0, dword [rax]
jbe 0x14008758e
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rsp + 0x20]
movss dword [rax], xmm0
cmp qword [rsp + 0x98], 0
je 0x1400875ca
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 + 0x58]
call fcn.14000a730
mov rax, qword [rax]
mov rcx, qword [rsp + 0x98]
mov qword [rcx], rax
movss xmm0, dword [rsp + 0x20]
comiss xmm0, dword [0x140136a54]
ja 0x1400875ee
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
ucomiss xmm0, dword [0x140136a54]
jp 0x140087608
jne 0x140087608
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 + 0x90], 0
je 0x140087623
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov rax, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x1400b9bc0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x2c0
lea rbp, [rsp + 0x20]
mov rax, qword [0x1401e2218]
xor rax, rbp
mov qword [rbp + 0x290], rax
mov dword [rbp + 0x50], 0x238
xor edx, edx
mov ecx, 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 8], rax
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 8]
call sub.KERNEL32.dll_Process32FirstW
call fcn.1400c1210
mov dword [rbp + 0x10], eax
mov rcx, qword [rbp + 0x2b8]
call fcn.140095570
mov qword [rbp + 0x40], rax
lea rax, [rbp + 0x7c]
mov qword [rbp + 0x20], rax
cmp qword [rbp + 0x20], 0
jne 0x1400b9c40
mov qword [rbp + 0x30], 0
jmp 0x1400b9cc0
mov rcx, qword [rbp + 0x20]
call fcn.140110db0
inc eax
mov dword [rbp], eax
cmp dword [rbp], 0x3fffffff
jle 0x1400b9c61
mov qword [rbp + 0x28], 0
jmp 0x1400b9cb8
movsxd rax, dword [rbp]
shl rax, 1
mov qword [rbp + 0x38], rax
movsxd rcx, dword [rbp]
shl rcx, 1
mov rdx, rcx
add rdx, 0xf
cmp rdx, rcx
ja 0x1400b9c89
movabs rdx, 0xffffffffffffff0
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.1400f7450
sub rsp, rax
lea rax, [rsp + 0x20]
mov r9d, dword [rbp + 0x10]
mov rcx, qword [rbp + 0x38]
mov r8d, ecx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call fcn.1400b8770
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x30], rax
mov rdx, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x30]
call fcn.1401011b0
test eax, eax
jne 0x1400b9cf2
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x58]
mov dword [rbp + 0x14], eax
mov rcx, qword [rbp + 0x2b8]
call fcn.14000b0e0
mov eax, dword [rbp + 0x14]
jmp 0x1400b9d27
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 8]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400b9c14
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp + 0x18], 0
mov rcx, qword [rbp + 0x2b8]
call fcn.14000b0e0
mov eax, dword [rbp + 0x18]
mov rcx, qword [rbp + 0x290]
xor rcx, rbp
call fcn.1400f70e0
lea rsp, [rbp + 0x2a0]
pop rbp
ret
Function at 0x1400b9d40
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x4c0
lea rbp, [rsp + 0x20]
mov rax, qword [0x1401e2218]
xor rax, rbp
mov qword [rbp + 0x490], rax
mov dword [rbp + 0x50], 0x438
mov rax, qword [rbp + 0x4b0]
mov edx, dword [rax + 0x10]
mov ecx, 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 8], rax
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 8]
call sub.KERNEL32.dll_Module32FirstW
call fcn.1400c1210
mov dword [rbp + 0x10], eax
mov rcx, qword [rbp + 0x4b8]
call fcn.140095570
mov qword [rbp + 0x38], rax
lea rax, [rbp + 0x80]
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x18], 0
jne 0x1400b9dcb
mov qword [rbp + 0x28], 0
jmp 0x1400b9e4b
mov rcx, qword [rbp + 0x18]
call fcn.140110db0
inc eax
mov dword [rbp], eax
cmp dword [rbp], 0x3fffffff
jle 0x1400b9dec
mov qword [rbp + 0x20], 0
jmp 0x1400b9e43
movsxd rax, dword [rbp]
shl rax, 1
mov qword [rbp + 0x30], rax
movsxd rcx, dword [rbp]
shl rcx, 1
mov rdx, rcx
add rdx, 0xf
cmp rdx, rcx
ja 0x1400b9e14
movabs rdx, 0xffffffffffffff0
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.1400f7450
sub rsp, rax
lea rax, [rsp + 0x20]
mov r9d, dword [rbp + 0x10]
mov rcx, qword [rbp + 0x30]
mov r8d, ecx
mov rdx, qword [rbp + 0x18]
mov rcx, rax
call fcn.1400b8770
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x28], rax
mov rdx, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x28]
call fcn.1401011b0
test eax, eax
jne 0x1400b9e80
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x40], rax
mov rcx, qword [rbp + 0x4b8]
call fcn.14000b0e0
mov rax, qword [rbp + 0x40]
jmp 0x1400b9eb7
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 8]
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x1400b9d9c
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x48], 0
mov rcx, qword [rbp + 0x4b8]
call fcn.14000b0e0
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x490]
xor rcx, rbp
call fcn.1400f70e0
lea rsp, [rbp + 0x4a0]
pop rbp
ret
Function at 0x1400d5b88
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1400d5bb6
xor eax, eax
jmp 0x1400d5c9c
cmp qword [rcx + 0x68], 0
je 0x1400d5bc7
call fcn.1400cc2f0
jmp 0x1400d5c9c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400d5bde
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400d5be0
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400d5c12
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400f7ef0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400d5c96
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400d5c49
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400d5c72
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140101f28
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400d5c96
cmp rsi, rbx
ja 0x1400d5c50
test rsi, rsi
je 0x1400d5c96
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140101f28
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400ebfbc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1400d74ea
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1400d74cd
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1400d74b8

Function at 0x1400f7a94
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400f7ade
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400f7ade
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400f7ade
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400f7ade
cmp dword [rcx + 0x84], 0xe
jbe 0x1400f7ade
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400f7ae0
xor al, al
add rsp, 0x28
ret
Function at 0x14010273c
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.1400f7450
sub rsp, rax
mov rax, qword [0x1401e2218]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14011c270
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14010278b
mov rax, rbp
jmp 0x140102893
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 + 0x1e6970]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14011e0ec
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1e6970]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14010288f
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 0x14010288f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14011e0ec
test rax, rax
js 0x14010288f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14010288f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140102881
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140102881
cmp byte [rcx], 0xd
jne 0x140102867
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140102876
cmp byte [rcx + 1], 0xa
jne 0x140102876
inc rcx
jmp 0x140102876
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1e2620]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140102849
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140102893
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400f70e0
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 0x140116d20
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140116b1c
Function at 0x14011d324
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, [0x1401e6970]
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 0x14011d37b
cmp word [rdx], r13w
jne 0x14011d37b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14011d380
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14011d4a5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14011d4c6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14011d3b9
mov rdx, r9
mov word [rbx], cx
jmp 0x14011d3e0
cmp r9, r8
jae 0x14011d3f0
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 0x14011d39a
jmp 0x14011d4a5
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 0x14011d49a
cmp dword [rsp + 0x80], esi
je 0x14011d49a
lea r8, [0x1401e6970]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14011d472
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14011d442
mov word [rbx], r13w
jmp 0x14011d4a2
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 0x14011d44f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14011d4a2
cmp word [rsp + 0x70], r13w
jne 0x14011d47f
cmp rbx, r14
je 0x14011d43c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14011e0f4
cmp word [rsp + 0x70], r13w
je 0x14011d4a5
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, [0x1401e6970]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14011d49f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14011d4a5
Function at 0x14011e290
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14011e2a6
mov al, 1
jmp 0x14011e306
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14011e2b7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14011e304
mov ecx, dword [rcx + 0x18]
nop
call fcn.140124c00
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14011e304
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14011e304
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14011e304
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14011e306
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140123ed4
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 0x140123f04
xor eax, eax
jmp 0x140123fc7
mov rbp, rbx
cmp word [rax], si
je 0x140123f29
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140123f10
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140123f0c
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.140122004
movsxd r14, eax
test eax, eax
jne 0x140123f67
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140123efd
mov rcx, r14
call fcn.14011e52c
mov rdi, rax
test rax, rax
jne 0x140123f80
xor ecx, ecx
call fcn.14011ae08
jmp 0x140123f5c
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.140122004
test eax, eax
jne 0x140123fb1
mov rcx, rdi
call fcn.14011ae08
jmp 0x140123fbb
xor ecx, ecx
call fcn.14011ae08
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 0x140123fe4
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 0x14012406b
mov rsi, rbx
cmp word [rax], bp
je 0x14012402a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140124014
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140124010
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14011e52c
mov rdi, rax
test rax, rax
je 0x140124058
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400f7ef0
mov rbp, rdi
xor ecx, ecx
call fcn.14011ae08
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