joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140099910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
add rax, 4
mov qword [rsp + 0x60], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 0x88]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
jmp 0x14009998b
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x20], eax
jae 0x140099a6d
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jb 0x1400999b9
jmp 0x140099a6d
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x20]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140099a00
jmp 0x140099981
mov edx, 0x811c9dc5
mov rcx, qword [rsp + 0x50]
call fcn.14000aa90
cmp eax, 0x99fbc63d
jne 0x140099a68
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov ecx, dword [rsp + 0x20]
add rax, qword [rsp + 0x80]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x24], ax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
movzx ecx, word [rsp + 0x24]
add rax, qword [rsp + 0x80]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
jmp 0x140099a6f
jmp 0x140099981
xor eax, eax
add rsp, 0x78
ret
Function at 0x140099a80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
add rax, 4
mov qword [rsp + 0x60], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 0x88]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
jmp 0x140099afb
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x20], eax
jae 0x140099bdd
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jb 0x140099b29
jmp 0x140099bdd
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x20]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140099b70
jmp 0x140099af1
mov edx, 0x811c9dc5
mov rcx, qword [rsp + 0x50]
call fcn.14000aa90
cmp eax, 0x4a7c0a09
jne 0x140099bd8
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov ecx, dword [rsp + 0x20]
add rax, qword [rsp + 0x80]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x24], ax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
movzx ecx, word [rsp + 0x24]
add rax, qword [rsp + 0x80]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
jmp 0x140099bdf
jmp 0x140099af1
xor eax, eax
add rsp, 0x78
ret
Function at 0x140099bf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
add rax, 4
mov qword [rsp + 0x60], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 0x88]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
jmp 0x140099c6b
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x20], eax
jae 0x140099d4d
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jb 0x140099c99
jmp 0x140099d4d
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x20]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140099ce0
jmp 0x140099c61
mov edx, 0x811c9dc5
mov rcx, qword [rsp + 0x50]
call fcn.14000aa90
cmp eax, 0xdf670872
jne 0x140099d48
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov ecx, dword [rsp + 0x20]
add rax, qword [rsp + 0x80]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x24], ax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
movzx ecx, word [rsp + 0x24]
add rax, qword [rsp + 0x80]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
jmp 0x140099d4f
jmp 0x140099c61
xor eax, eax
add rsp, 0x78
ret
Function at 0x140099d60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
add rax, 4
mov qword [rsp + 0x60], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 0x88]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
jmp 0x140099ddb
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x20], eax
jae 0x140099ebd
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jb 0x140099e09
jmp 0x140099ebd
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x20]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140099e50
jmp 0x140099dd1
mov edx, 0x811c9dc5
mov rcx, qword [rsp + 0x50]
call fcn.14000aa90
cmp eax, 0xc6dd0460
jne 0x140099eb8
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov ecx, dword [rsp + 0x20]
add rax, qword [rsp + 0x80]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x24], ax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
movzx ecx, word [rsp + 0x24]
add rax, qword [rsp + 0x80]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
jmp 0x140099ebf
jmp 0x140099dd1
xor eax, eax
add rsp, 0x78
ret
Function at 0x140099ed0
Capabilities:
Resolve function by fnv-1a hash
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
add rax, 4
mov qword [rsp + 0x60], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 0x88]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
jmp 0x140099f4b
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x20], eax
jae 0x14009a02d
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jb 0x140099f79
jmp 0x14009a02d
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x20]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140099fc0
jmp 0x140099f41
mov edx, 0x811c9dc5
mov rcx, qword [rsp + 0x50]
call fcn.14000aa90
cmp eax, 0xbdcac9ce
jne 0x14009a028
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov ecx, dword [rsp + 0x20]
add rax, qword [rsp + 0x80]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x24], ax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
movzx ecx, word [rsp + 0x24]
add rax, qword [rsp + 0x80]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
jmp 0x14009a02f
jmp 0x140099f41
xor eax, eax
add rsp, 0x78
ret
Function at 0x14009a040
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
add rax, 4
mov qword [rsp + 0x60], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 0x88]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
jmp 0x14009a0bb
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x20], eax
jae 0x14009a19d
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jb 0x14009a0e9
jmp 0x14009a19d
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x20]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14009a130
jmp 0x14009a0b1
mov edx, 0x811c9dc5
mov rcx, qword [rsp + 0x50]
call fcn.14000aa90
cmp eax, 0xcb80cc06
jne 0x14009a198
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov ecx, dword [rsp + 0x20]
add rax, qword [rsp + 0x80]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x24], ax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
movzx ecx, word [rsp + 0x24]
add rax, qword [rsp + 0x80]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
jmp 0x14009a19f
jmp 0x14009a0b1
xor eax, eax
add rsp, 0x78
ret
Function at 0x14009a1b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
add rax, 4
mov qword [rsp + 0x60], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 0x88]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
jmp 0x14009a22b
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x20], eax
jae 0x14009a30d
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jb 0x14009a259
jmp 0x14009a30d
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x20]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14009a2a0
jmp 0x14009a221
mov edx, 0x811c9dc5
mov rcx, qword [rsp + 0x50]
call fcn.14000aa90
cmp eax, 0xb04cce94
jne 0x14009a308
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov ecx, dword [rsp + 0x20]
add rax, qword [rsp + 0x80]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x24], ax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
movzx ecx, word [rsp + 0x24]
add rax, qword [rsp + 0x80]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
jmp 0x14009a30f
jmp 0x14009a221
xor eax, eax
add rsp, 0x78
ret

Function at 0x14009fbdc
Capabilities:
Parse pe header

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

Function at 0x1400a60e0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400a5edc
Function at 0x1400b1940
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.14009f9c0
sub rsp, rax
mov rax, qword [0x1400ff038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400be2ac
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400b198f
mov rax, rbp
jmp 0x1400b1a97
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 + 0x1016c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400c00fc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1016c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400b1a93
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 0x1400b1a93
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400c00fc
test rax, rax
js 0x1400b1a93
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400b1a93
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400b1a85
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400b1a85
cmp byte [rcx], 0xd
jne 0x1400b1a6b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400b1a7a
cmp byte [rcx + 1], 0xa
jne 0x1400b1a7a
inc rcx
jmp 0x1400b1a7a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xff420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400b1a4d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400b1a97
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14009eb70
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 0x1400c01a8
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, [0x1401016c0]
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 0x1400c01ff
cmp word [rdx], r13w
jne 0x1400c01ff
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400c0204
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400c0329
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400c034a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400c023d
mov rdx, r9
mov word [rbx], cx
jmp 0x1400c0264
cmp r9, r8
jae 0x1400c0274
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 0x1400c021e
jmp 0x1400c0329
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 0x1400c031e
cmp dword [rsp + 0x80], esi
je 0x1400c031e
lea r8, [0x1401016c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400c02f6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400c02c6
mov word [rbx], r13w
jmp 0x1400c0326
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 0x1400c02d3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400c0326
cmp word [rsp + 0x70], r13w
jne 0x1400c0303
cmp rbx, r14
je 0x1400c02c0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400c0104
cmp word [rsp + 0x70], r13w
je 0x1400c0329
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, [0x1401016c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400c0323
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400c0329
Function at 0x1400c2d58
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400c2d6e
mov al, 1
jmp 0x1400c2dce
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400c2d7f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400c2dcc
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400c6478
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400c2dcc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400c2dcc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400c2dcc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400c2dce
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400c5c24
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 0x1400c5c54
xor eax, eax
jmp 0x1400c5d17
mov rbp, rbx
cmp word [rax], si
je 0x1400c5c79
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400c5c60
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400c5c5c
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.1400c3580
movsxd r14, eax
test eax, eax
jne 0x1400c5cb7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400c5c4d
mov rcx, r14
call fcn.1400bd084
mov rdi, rax
test rax, rax
jne 0x1400c5cd0
xor ecx, ecx
call fcn.1400bc818
jmp 0x1400c5cac
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.1400c3580
test eax, eax
jne 0x1400c5d01
mov rcx, rdi
call fcn.1400bc818
jmp 0x1400c5d0b
xor ecx, ecx
call fcn.1400bc818
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 0x1400c88d4
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.1400bc4b8
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 0x1400c8975
cmp ebx, dword [rsp + 0x30]
je 0x1400c896e
test esi, esi
je 0x1400c896e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400c8949
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400c8956
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400c8933
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400c895a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400c8977
mov eax, 1
jmp 0x1400c8977
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400cccfc
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.1400c0104
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400c0104
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400cce4c
cmp rax, 0xffffffffffffffff
je 0x1400cce4c
xor edi, edi
test rbp, rbp
jle 0x1400ccdf7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400c0ba0
mov rbx, rax
test rax, rax
jne 0x1400ccd84
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400ccded
mov edx, 0x8000
mov ecx, r14d
call fcn.1400ba5f8
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.1400c2458
cmp eax, 0xffffffff
je 0x1400ccdcd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400ccd94
mov edx, r15d
mov ecx, r14d
call fcn.1400ba5f8
jmp 0x1400ccded
cmp byte [rsi + 0x38], dil
je 0x1400ccde4
cmp dword [rsi + 0x34], 5
jne 0x1400ccde4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400ccded
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400bc818
jmp 0x1400cce60
jns 0x1400cce60
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400c0104
cmp rax, 0xffffffffffffffff
jne 0x1400cce18
cmp byte [rsi + 0x30], dil
je 0x1400cce60
mov edi, dword [rsi + 0x2c]
jmp 0x1400cce60
mov ecx, r14d
call fcn.1400c6478
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400cce60
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 0x1400cce60
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400cce59
mov eax, dword [rsi + 0x2c]
jmp 0x1400cce5e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400c0104
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