joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400142e0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x50
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x48]
mov qword [rsp], rax
mov qword [rsp + 0x40], 0x137
mov qword [rsp + 0x38], 0x9c
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x30], 0x9c
jae 0x1400143a3
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rax + rcx*8 + 0x9c8]
and rcx, 0xffffffff80000000
mov rdx, qword [rsp + 0x30]
mov rdx, qword [rax + rdx*8 + 0x9d0]
and rdx, 0x7fffffff
or rcx, rdx
mov qword [rsp + 0x28], rcx
mov rdx, qword [rsp + 0x28]
shr rdx, 1
mov r9, qword [rsp + 0x28]
and r9, 1
xor ecx, ecx
movabs r8, 0xb5026f5aa96619e9
cmp r9, 0
cmovne rcx, r8
xor rdx, rcx
mov rcx, qword [rsp + 0x30]
xor rdx, qword [rax + rcx*8 + 0xea8]
mov rcx, qword [rsp + 0x30]
mov qword [rax + rcx*8 + 8], rdx
mov rax, qword [rsp + 0x30]
add rax, 1
mov qword [rsp + 0x30], rax
jmp 0x14001430d
mov qword [rsp + 0x20], 0x9c
cmp qword [rsp + 0x20], 0x137
jae 0x140014449
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rax + rcx*8 + 0x9c8]
and rcx, 0xffffffff80000000
mov rdx, qword [rsp + 0x20]
mov rdx, qword [rax + rdx*8 + 0x9d0]
and rdx, 0x7fffffff
or rcx, rdx
mov qword [rsp + 0x18], rcx
mov rdx, qword [rsp + 0x18]
shr rdx, 1
mov r9, qword [rsp + 0x18]
and r9, 1
xor ecx, ecx
movabs r8, 0xb5026f5aa96619e9
cmp r9, 0
cmovne rcx, r8
xor rdx, rcx
mov rcx, qword [rsp + 0x20]
sub rcx, 0x138
xor rdx, qword [rax + rcx*8 + 0x4e8]
mov rcx, qword [rsp + 0x20]
mov qword [rax + rcx*8 + 8], rdx
mov rax, qword [rsp + 0x20]
add rax, 1
mov qword [rsp + 0x20], rax
jmp 0x1400143ac
mov rax, qword [rsp]
mov qword [rsp + 0x10], 0x137
mov rcx, qword [rax + 0x1380]
and rcx, 0xffffffff80000000
mov rdx, qword [rax + 8]
and rdx, 0x7fffffff
or rcx, rdx
mov qword [rsp + 8], rcx
mov rcx, qword [rsp + 8]
shr rcx, 1
mov r9, qword [rsp + 8]
and r9, 1
xor edx, edx
movabs r8, 0xb5026f5aa96619e9
cmp r9, 0
cmovne rdx, r8
xor rcx, rdx
xor rcx, qword [rax + 0x4e0]
mov qword [rax + 0x9c0], rcx
mov dword [rax], 0
add rsp, 0x50
ret

Function at 0x1400174b0
Capabilities:
Log keystrokes

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 8], 0xfffffffffffffffe
mov byte [rbp - 0xd], cl
mov cl, byte [rbp - 0xd]
call fcn.140017540
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
je 0x1400174e5
mov eax, dword [rbp - 0x14]
mov dword [rbp - 0xc], eax
jmp 0x14001750c
mov cl, byte [rbp - 0xd]
call fcn.140017650
movzx ecx, ax
mov rax, qword [sym.imp.USER32.dll_MapVirtualKeyA]
mov edx, 3
call rax
mov dword [rbp - 0x18], eax
jmp 0x140017506
mov eax, dword [rbp - 0x18]
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
add rsp, 0x40
pop rbp
ret
Function at 0x14001bb90
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x20
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov qword [rsp], 0
mov rax, qword [rsp]
cmp rax, qword [rsp + 0x18]
jae 0x14001bbf7
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp]
movzx eax, byte [rax + rcx]
xor rax, qword [rsp + 8]
mov qword [rsp + 8], rax
movabs rax, 0x100000001b3
imul rax, qword [rsp + 8]
mov qword [rsp + 8], rax
mov rax, qword [rsp]
add rax, 1
mov qword [rsp], rax
jmp 0x14001bbab
mov rax, qword [rsp + 8]
add rsp, 0x20
ret

Function at 0x14003c560
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x34], r8d
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
mov eax, dword [rsp + 0x34]
xor eax, 0xffffffff
mov dword [rsp + 0x1c], eax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x28], 4
jb 0x14003c63f
mov eax, dword [rsp + 0x1c]
mov dword [rsp + 0xc], eax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax]
xor eax, dword [rsp + 0xc]
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0xc]
shr eax, 0x18
mov eax, eax
mov ecx, eax
lea rax, [0x14006d8b0]
mov eax, dword [rax + rcx*4]
mov ecx, dword [rsp + 0xc]
shr ecx, 0x10
and ecx, 0xff
mov ecx, ecx
mov edx, ecx
lea rcx, [0x14006d8b0]
xor eax, dword [rcx + rdx*4 + 0x400]
mov ecx, dword [rsp + 0xc]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
mov edx, ecx
lea rcx, [0x14006d8b0]
xor eax, dword [rcx + rdx*4 + 0x800]
mov ecx, dword [rsp + 0xc]
and ecx, 0xff
mov ecx, ecx
mov edx, ecx
lea rcx, [0x14006d8b0]
xor eax, dword [rcx + rdx*4 + 0xc00]
mov dword [rsp + 0x1c], eax
mov rax, qword [rsp + 0x10]
add rax, 4
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x28]
sub rax, 4
mov qword [rsp + 0x28], rax
jmp 0x14003c588
mov rax, qword [rsp + 0x10]
mov qword [rsp], rax
cmp qword [rsp + 0x28], 0
je 0x14003c69e
mov eax, dword [rsp + 0x1c]
shr eax, 8
mov ecx, dword [rsp + 0x1c]
and ecx, 0xff
mov rdx, qword [rsp]
mov r8, rdx
add r8, 1
mov qword [rsp], r8
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov edx, ecx
lea rcx, [0x14006d8b0]
xor eax, dword [rcx + rdx*4]
mov dword [rsp + 0x1c], eax
mov rax, qword [rsp + 0x28]
add rax, 0xffffffffffffffff
mov qword [rsp + 0x28], rax
jmp 0x14003c648
mov eax, dword [rsp + 0x1c]
xor eax, 0xffffffff
add rsp, 0x38
ret

Function at 0x1400438ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400438f6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400438f6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400438f6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400438f6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400438f6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400438f8
xor al, al
add rsp, 0x28
ret
Function at 0x1400446e8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140044108
mov ebx, eax
test eax, eax
jne 0x140044718
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140044774
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004476b
test al, 0x10
je 0x14004476b
bt eax, 0xa
jae 0x140044764
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14004478c
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140044760
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140044784
test edi, edi
jne 0x14004476b
and dword [rsp + 0x3c], 0
jmp 0x140044770
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.140052e84
int3

Function at 0x1400450d4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140045158
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14006fe00]
cmp byte [rcx + rax], 0
je 0x140045158
dec r8
sub rdx, 1
jne 0x14004513e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140050e34
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140050c24
Function at 0x14005bbc8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14005bbfa
call fcn.14004e8e4
mov dword [rax], 0x16
call fcn.14004b3b8
jmp 0x14005bd19
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14005bd19
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14005bd19
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14005bc29
lock or dword [rcx + 0x14], 0x10
jmp 0x14005bd19
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14005bc3d
call fcn.14005bd34
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14005996c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14005c24c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14005bd07
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14005bcd2
mov rcx, rsi
call fcn.14005996c
cmp eax, edi
je 0x14005bcbd
mov rcx, rsi
call fcn.14005996c
cmp eax, 0xfffffffe
je 0x14005bcbd
mov rcx, rsi
call fcn.14005996c
movsxd rbx, eax
lea r14, [0x14008c5d0]
mov rcx, rsi
sar rbx, 6
call fcn.14005996c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14005bcc4
lea rdx, [0x140088ee0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14005bcd2
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14005bcf6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14005bcf6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14005bcf6
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14005bd1c
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14005bda0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14008c5d0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14005bdfe
cmp word [rdx], r12w
jne 0x14005bdfe
or byte [rax + r8*8 + 0x38], cl
jmp 0x14005be04
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14005bf5f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14005bf3a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14005be3d
mov rcx, r9
jmp 0x14005be60
cmp r9, rdx
jae 0x14005be77
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14005be21
jmp 0x14005bf5f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005bf34
cmp dword [rsp + 0x80], edi
je 0x14005bf34
mov rdx, r14
lea r11, [0x14008c5d0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14005bf0d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14005bee0
mov word [rbx], r12w
jmp 0x14005bf5b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14005bee9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14005bf5b
cmp word [rsp + 0x70], r12w
jne 0x14005bf1a
cmp rbx, rsi
je 0x14005beda
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14005ca2c
cmp word [rsp + 0x70], r12w
je 0x14005bf5f
mov word [rbx], r13w
jmp 0x14005bf5b
lea r11, [0x14008c5d0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14005bf57
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14005bf5f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14005cde0
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.140043580
sub rsp, rax
mov rax, qword [0x1400872e8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14005996c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14005ce2f
mov rax, rbp
jmp 0x14005cf37
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 + 0x8c5d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005ca24
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x8c5d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005cf33
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 0x14005cf33
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005ca24
test rax, rax
js 0x14005cf33
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005cf33
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14005cf25
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14005cf25
cmp byte [rcx], 0xd
jne 0x14005cf0b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005cf1a
cmp byte [rcx + 1], 0xa
jne 0x14005cf1a
inc rcx
jmp 0x14005cf1a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x88f30]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14005ceed
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005cf37
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14006ab10
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 0x14005fd20
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 0x14005fd50
xor eax, eax
jmp 0x14005fe13
mov rbp, rbx
cmp word [rax], si
je 0x14005fd75
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14005fd5c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14005fd58
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.14005fc70
movsxd r14, eax
test eax, eax
jne 0x14005fdb3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14005fd49
mov rcx, r14
call fcn.14005e638
mov rdi, rax
test rax, rax
jne 0x14005fdcc
xor ecx, ecx
call fcn.140057fec
jmp 0x14005fda8
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.14005fc70
test eax, eax
jne 0x14005fdfd
mov rcx, rdi
call fcn.140057fec
jmp 0x14005fe07
xor ecx, ecx
call fcn.140057fec
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 0x140066eac
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140053d18
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140066f36
cmp byte [rbp - 0x21], r15b
je 0x140066f31
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140066f6c
call fcn.140059eac
test eax, eax
jne 0x140066f58
cmp byte [rbp - 0x21], r15b
je 0x140066f50
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140066f6c
cmp byte [rbp - 0x21], r15b
je 0x140066f69
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140057430
test eax, eax
jne 0x14006700c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140053d18
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140066fab
cmp byte [rbp - 0x21], r15b
je 0x140066fe0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140066fe0
call fcn.140059eac
test eax, eax
jne 0x140066fcc
cmp byte [rbp - 0x21], r15b
je 0x140066fc5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140066fe0
cmp byte [rbp - 0x21], r15b
je 0x140066fdd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140057430
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14006700c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14006700f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14006701d
mov rcx, rdi
call fcn.140057fec
cmp byte [rbp + 0x3f], r15b
je 0x14006702c
mov rcx, qword [rbp + 0x27]
call fcn.140057fec
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140069cb4
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.14005ca2c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005ca2c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140069e04
cmp rax, 0xffffffffffffffff
je 0x140069e04
xor edi, edi
test rbp, rbp
jle 0x140069daf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140057f74
mov rbx, rax
test rax, rax
jne 0x140069d3c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140069da5
mov edx, 0x8000
mov ecx, r14d
call fcn.140050eb0
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.14005b374
cmp eax, 0xffffffff
je 0x140069d85
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140069d4c
mov edx, r15d
mov ecx, r14d
call fcn.140050eb0
jmp 0x140069da5
cmp byte [rsi + 0x38], dil
je 0x140069d9c
cmp dword [rsi + 0x34], 5
jne 0x140069d9c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140069da5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140057fec
jmp 0x140069e18
jns 0x140069e18
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005ca2c
cmp rax, 0xffffffffffffffff
jne 0x140069dd0
cmp byte [rsi + 0x30], dil
je 0x140069e18
mov edi, dword [rsi + 0x2c]
jmp 0x140069e18
mov ecx, r14d
call fcn.140060820
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140069e18
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 0x140069e18
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140069e11
mov eax, dword [rsi + 0x2c]
jmp 0x140069e16
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005ca2c
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
Function at 0x1400022d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x140002092
mov ecx, dword [rcx]
call fcn.140007cfc
mov rcx, rax
xor r9d, r9d
xor eax, eax
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
lea r8d, [rax + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x1400020c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xc1
jne 0x1400020a1
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp 0x1400022d0
mov rdx, qword [rbx + 8]
lea rcx, str.Unable_create_file_mapping_for__ls:_Windows_error__u
mov r8d, eax
call fcn.140002130
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x140002118
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rbx + 8]
lea rcx, str.Unable_to_map__ls_into_memory:_Windows_error__u
mov r8d, eax
call fcn.140002130
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov qword [rbx + 0x28], rdi
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x20], rbp
push r12
push r14
push r15
sub rsp, 0x20
mov r12, rcx
mov ebp, 0x1000
mov ecx, ebp
xor r14d, r14d
call fcn.140006ae8
mov r15, rax
test rax, rax
jne 0x140002305
lea rcx, str.Out_of_memory
call fcn.140002130
test r15, r15
jne 0x14000231e
lea eax, [r15 - 1]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rsi
nop dword [rax]
cmp r14, rbp
jne 0x140002366
cmp rbp, 0xffffffffffffffff
je 0x1400023fe
mov rax, rbp
mov rcx, r15
not rax
cmp rax, rbp
cmova rax, rbp
add rbp, rax
mov rdx, rbp
call fcn.140006af0
test rax, rax
je 0x1400023fe
mov r15, rax
mov rbx, rbp
lea rdi, [r15 + r14]
sub rbx, r14
mov rsi, rbx
je 0x1400023db
nop word [rax + rax]
mov ecx, dword [r12]
mov r8d, 0x7fffffff
cmp rbx, r8
mov rdx, rdi
cmovbe r8d, ebx
call fcn.140009cd4
movsxd rcx, eax
test eax, eax
je 0x1400023db
jns 0x1400023d0
call fcn.140004700
cmp dword [rax], 0xb
je 0x1400023d6
call fcn.140004700
cmp dword [rax], 4
je 0x1400023d6
mov rdx, qword [r12 + 8]
lea rcx, str.Error_reading_from__ls
call fcn.140002160
mov rsi, 0xffffffffffffffff
jmp 0x1400023de
add rdi, rcx
sub rbx, rcx
test rbx, rbx
jne 0x140002380
sub rsi, rbx
test esi, esi
js 0x140002414
movsxd rax, esi
add r14, rax
test esi, esi
jne 0x140002330
mov qword [r12 + 0x20], r15
xor eax, eax
mov qword [r12 + 0x28], r14
jmp 0x14000241e
mov rdx, qword [r12 + 8]
lea rcx, str.Out_of_memory____ls_is_too_large_to_be_processed_by_this_program_as_currently_implemented.
call fcn.140002130
mov esi, 0xffffffff
mov rcx, r15
call fcn.140004720
mov eax, esi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140005f8c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140005f84
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140004690
or eax, 0xffffffff
jmp 0x140005f86
xor eax, eax
add rsp, 0x28
ret
jmp 0x140005f64

Function at 0x140008c58
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140008a84
Function at 0x180005920
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18000597d
lea rbx, [0x18003e910]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180005964
cmp r10, 2
jb 0x180005964
cmp byte [r9], r8b
jne 0x180005964
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180005940
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800059bf
lea rbx, [0x18003e910]
cmp r8b, 0x23
jne 0x1800059a3
cmp byte [r9], r8b
jne 0x1800059a3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180005990
mov rbx, qword [rsp + 8]
not eax
ret