joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1408cf0d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1408cede9
call fcn.1408bfb04
mov dword [rax], Ordinal_27
call fcn.1408b5be0
jmp 0x1408cef45
mov eax, dword [rcx + 0x14]
shr eax, 0xd
mov ebp, 1
test bpl, al
je 0x1408cef45
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test bpl, al
jne 0x1408cef45
mov eax, dword [rcx + 0x14]
shr eax, 1
test bpl, al
je 0x1408cee20
lock or dword [rcx + 0x14], 0x10
jmp 0x1408cef45
lock or dword [rcx + 0x14], ebp
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1408cee33
call fcn.1408cf4d0
mov r14d, dword [rbx + 0x10]
cmp r14d, ebp
jne 0x1408cee44
mov rax, qword [rbx]
mov r15b, byte [rax]
jmp 0x1408cee47
xor r15b, r15b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.1408ce9b4
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1408d7f8c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1408cef33
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1408ceeda
mov rcx, rbx
call fcn.1408ce9b4
cmp eax, 0xffffffff
je 0x1408ceec5
mov rcx, rbx
call fcn.1408ce9b4
cmp eax, 0xfffffffe
je 0x1408ceec5
mov rcx, rbx
call fcn.1408ce9b4
movsxd rdi, eax
lea rsi, [0x140a80730]
mov rcx, rbx
sar rdi, 6
call fcn.1408ce9b4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1408ceecc
lea rdx, [0x140a7aad0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1408ceeda
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1408cef00
mov eax, dword [rbx + 0x14]
shr eax, 6
test bpl, al
je 0x1408cef00
mov eax, dword [rbx + 0x14]
shr eax, 8
test bpl, al
jne 0x1408cef00
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp r14d, ebp
jne 0x1408cef1b
movzx ecx, byte [rdx]
shl cx, 8
movzx eax, r15b
or cx, ax
dec dword [rbx + 0x10]
jmp 0x1408cef27
movzx ecx, word [rdx]
mov ebp, 2
add dword [rbx + 0x10], 0xfffffffe
lea rax, [rdx + rbp]
mov qword [rbx], rax
movzx eax, cx
jmp 0x1408cef4a
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
jmp 0x1408cedb4
Function at 0x1408d2098
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 0x1408d20c8
xor eax, eax
jmp 0x1408d218b
mov rbp, rbx
cmp word [rax], si
je 0x1408d20ed
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1408d20d4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1408d20d0
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.1408d1fe8
movsxd r14, eax
test eax, eax
jne 0x1408d212b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1408d20c1
mov rcx, r14
call fcn.1408cb8d4
mov rdi, rax
test rax, rax
jne 0x1408d2144
xor ecx, ecx
call fcn.1408cb898
jmp 0x1408d2120
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.1408d1fe8
test eax, eax
jne 0x1408d2175
mov rcx, rdi
call fcn.1408cb898
jmp 0x1408d217f
xor ecx, ecx
call fcn.1408cb898
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 0x1408d21a8
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 0x1408d222f
mov rsi, rbx
cmp word [rax], bp
je 0x1408d21ee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1408d21d8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1408d21d4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1408cb8d4
mov rdi, rax
test rax, rax
je 0x1408d221c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1408af920
mov rbp, rdi
xor ecx, ecx
call fcn.1408cb898
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 0x1408d7ae0
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, [0x140a80730]
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 0x1408d7b3e
cmp word [rdx], r12w
jne 0x1408d7b3e
or byte [rax + r8*8 + 0x38], cl
jmp 0x1408d7b44
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1408d7c9f
mov r9d, reloc.WLDAP32.dll_Ordinal_26
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1408d7c7a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1408d7b7d
mov rcx, r9
jmp 0x1408d7ba0
cmp r9, rdx
jae 0x1408d7bb7
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, reloc.WLDAP32.dll_Ordinal_26
add rbx, 2
cmp rcx, rdx
jb 0x1408d7b61
jmp 0x1408d7c9f
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 0x1408d7c74
cmp dword [rsp + 0x80], edi
je 0x1408d7c74
mov rdx, r14
lea r11, [0x140a80730]
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 0x1408d7c4d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1408d7c20
mov word [rbx], r12w
jmp 0x1408d7c9b
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 0x1408d7c29
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1408d7c9b
cmp word [rsp + 0x70], r12w
jne 0x1408d7c5a
cmp rbx, rsi
je 0x1408d7c1a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1408cb3a4
cmp word [rsp + 0x70], r12w
je 0x1408d7c9f
mov word [rbx], r13w
jmp 0x1408d7c9b
lea r11, [0x140a80730]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1408d7c97
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1408d7c9f
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 0x1408d858c
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.1408cb3a4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1408cb3a4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1408d86dc
cmp rax, 0xffffffffffffffff
je 0x1408d86dc
xor edi, edi
test rbp, rbp
jle 0x1408d8687
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1408cb9b0
mov rbx, rax
test rax, rax
jne 0x1408d8614
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1408d867d
mov edx, 0x8000
mov ecx, r14d
call fcn.1408bd400
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.1408d0514
cmp eax, 0xffffffff
je 0x1408d865d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1408d8624
mov edx, r15d
mov ecx, r14d
call fcn.1408bd400
jmp 0x1408d867d
cmp byte [rsi + 0x38], dil
je 0x1408d8674
cmp dword [rsi + 0x34], 5
jne 0x1408d8674
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1408d867d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1408cb898
jmp 0x1408d86f0
jns 0x1408d86f0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1408cb3a4
cmp rax, 0xffffffffffffffff
jne 0x1408d86a8
cmp byte [rsi + 0x30], dil
je 0x1408d86f0
mov edi, dword [rsi + 0x2c]
jmp 0x1408d86f0
mov ecx, r14d
call fcn.1408d3000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1408d86f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1408d86f0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1408d86e9
mov eax, dword [rsi + 0x2c]
jmp 0x1408d86ee
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1408cb3a4
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 0x1408dcae4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1408dcb04
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1408bfa78
or eax, 0xffffffff
jmp 0x1408dcb06
xor eax, eax
add rsp, 0x28
ret
Function at 0x141060058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1410601df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141060089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14106006f
add dl, dl
jne 0x141060096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410600f6
xor eax, eax
add dl, dl
jne 0x1410600a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410601ad
add dl, dl
jne 0x1410600b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410600c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410600d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410600dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1410600ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14106007e
mov eax, 1
add dl, dl
jne 0x141060106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141060113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410600fb
sub eax, ebx
mov ebx, 1
jne 0x14106014c
mov ecx, 1
add dl, dl
jne 0x14106012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14106013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141060123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14106007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141060168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141060175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14106015d
cmp eax, 0x7d00
jae 0x14106019b
cmp eax, 0x500
jb 0x141060196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14106007e
cmp eax, 0x7f
ja 0x14106019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14106007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1410601d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14106007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14002bef0]
mov dword [rax], 1
mov rax, qword [0x14002bf00]
mov dword [rax], 1
mov rax, qword [0x14002bf10]
mov dword [rax], 1
mov rax, qword [0x14002bee0]
mov dword [rax], 1
mov rax, qword [0x14002bd60]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400025a0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x40
mov r13, qword [rcx]
mov rbx, qword [rcx + 8]
mov qword [rsp + 0x30], 0
lea r12, [rsp + 0x30]
mov qword [rsp + 0x38], 0
call fcn.140005cb0
lea rcx, [rsp + 0x20]
mov edx, 0xc8
call fcn.140004810
movdqu xmm0, xmmword [rsp + 0x20]
mov edx, 0x1c
mov rcx, r12
movaps xmmword [rsp + 0x30], xmm0
call fcn.140004870
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
movabs rcx, 0x64656c646e61686e
lea rax, [rdx + rax + 8]
movabs rdx, 0x75203a726f727245
mov qword [rax], rdx
movabs rdx, 0x6974706563786520
mov qword [rax + 8], rcx
mov rcx, r12
mov qword [rax + 0x10], rdx
mov rdx, r13
mov dword [rax + 0x18], 0x203a6e6f
mov byte [rax + 0x1c], 0
add qword [rsp + 0x30], 0x1c
call fcn.140004870
test r13, r13
jle 0x14000266d
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
lea r8, [r13 + 1]
lea rcx, [rdx + rax + 8]
lea rdx, [rbx + 8]
call sub.msvcrt.dll_memcpy
add qword [rsp + 0x30], r13
movabs rbx, 0x7463656665446e
xor edx, edx
mov rcx, r12
call fcn.140004870
mov rcx, r12
mov edx, 2
call fcn.140004870
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, r12
lea rax, [rdx + rax + 8]
mov edx, 0x5b20
mov word [rax], dx
mov edx, 0xf
mov byte [rax + 2], 0
add qword [rsp + 0x30], 2
call fcn.140004870
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
movabs rcx, 0x6f69747265737341
mov qword [rdx + rax + 8], rcx
mov rcx, r12
mov qword [rdx + rax + 0x10], rbx
mov edx, 2
add qword [rsp + 0x30], 0xf
call fcn.140004870
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov ecx, 0xa5d
lea rax, [rdx + rax + 8]
mov word [rax], cx
mov ecx, 2
mov byte [rax + 2], 0
mov rbx, qword [rsp + 0x38]
lea rax, [0x140029180]
add qword [rsp + 0x30], 2
lea r12, [rbx + 8]
cmove r12, rax
call qword [fcn.14001c3a0]
mov rcx, r12
mov r13, rax
call sub.msvcrt.dll_strlen
mov r9, r13
mov edx, 1
mov rcx, r12
mov r8, rax
call sub.msvcrt.dll_fwrite
mov rcx, r13
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop

Function at 0x140003490
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov r13, rcx
mov rcx, rdx
mov edx, 1
mov rbx, r8
mov r9, r13
call sub.msvcrt.dll_fread
mov r12, rax
cmp rbx, rax
je 0x1400034c3
mov rcx, r13
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x1400034d0
mov rax, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
mov rcx, r13
call fcn.140003260
mov rax, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
ret

Function at 0x140003a40
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12, rcx
mov rcx, rdx
mov edx, 1
mov r9, r12
call sub.msvcrt.dll_fwrite
mov rcx, r12
mov r13, rax
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140003a72
mov rcx, r12
call fcn.140003260
mov rax, r13
add rsp, 0x28
pop r12
pop r13
ret
Function at 0x140003be0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x140003c01
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp sub.msvcrt.dll_fflush

Function at 0x14000c870
Capabilities:
Hash data using murmur3

Disassembly:
push rbx
lea rax, [rdx + 3]
test rdx, rdx
mov r10, rcx
mov r8, rdx
cmovns rax, rdx
and rax, 0xfffffffffffffffc
jle 0x14000c960
mov rdx, rcx
lea r9, [rcx + rax]
lea r11, [rax - 1]
xor ecx, ecx
nop dword [rax]
imul eax, dword [rdx], 0xcc9e2d51
add rdx, 4
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, ecx
rol eax, 0xd
lea ecx, [rax + rax*4 - 0x19ab949c]
cmp r9, rdx
jne 0x14000c8a0
mov rax, r11
shr rax, 2
lea r11, [rax*4 + 4]
mov rax, r8
sar rax, 0x3f
shr rax, 0x3e
lea rdx, [r8 + rax]
and edx, 3
sub rdx, rax
xor eax, eax
test rdx, rdx
jle 0x14000c92f
lea rbx, [r10 + r11]
lea r9, [rdx - 1]
movzx eax, byte [rdx + rbx - 1]
test r9, r9
je 0x14000c920
movzx r9d, byte [rdx + rbx - 2]
shl eax, 8
sub rdx, 2
or eax, r9d
test rdx, rdx
je 0x14000c920
movzx edx, byte [r10 + r11]
shl eax, 8
or eax, edx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor ecx, r8d
xor eax, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, eax
imul ecx, ecx, 0x85ebca6b
mov edx, ecx
shr edx, 0xd
xor edx, ecx
imul edx, edx, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
pop rbx
ret
xor r11d, r11d
xor ecx, ecx
jmp 0x14000c8d3
mov rdx, qword [rcx]
mov rcx, qword [rcx + 8]
lea rax, [rcx + 8]
test rcx, rcx
cmovne rcx, rax
jmp 0x14000c870

Function at 0x14000c970
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push rbx
lea rax, [rdx + 3]
test rdx, rdx
mov r10, rcx
mov r8, rdx
cmovns rax, rdx
and rax, 0xfffffffffffffffc
jle 0x14000c960
mov rdx, rcx
lea r9, [rcx + rax]
lea r11, [rax - 1]
xor ecx, ecx
nop dword [rax]
imul eax, dword [rdx], 0xcc9e2d51
add rdx, 4
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, ecx
rol eax, 0xd
lea ecx, [rax + rax*4 - 0x19ab949c]
cmp r9, rdx
jne 0x14000c8a0
mov rax, r11
shr rax, 2
lea r11, [rax*4 + 4]
mov rax, r8
sar rax, 0x3f
shr rax, 0x3e
lea rdx, [r8 + rax]
and edx, 3
sub rdx, rax
xor eax, eax
test rdx, rdx
jle 0x14000c92f
lea rbx, [r10 + r11]
lea r9, [rdx - 1]
movzx eax, byte [rdx + rbx - 1]
test r9, r9
je 0x14000c920
movzx r9d, byte [rdx + rbx - 2]
shl eax, 8
sub rdx, 2
or eax, r9d
test rdx, rdx
je 0x14000c920
movzx edx, byte [r10 + r11]
shl eax, 8
or eax, edx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor ecx, r8d
xor eax, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, eax
imul ecx, ecx, 0x85ebca6b
mov edx, ecx
shr edx, 0xd
xor edx, ecx
imul edx, edx, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
pop rbx
ret
xor r11d, r11d
xor ecx, ecx
jmp 0x14000c8d3
mov rdx, qword [rcx]
mov rcx, qword [rcx + 8]
lea rax, [rcx + 8]
test rcx, rcx
cmovne rcx, rax
jmp 0x14000c870
Function at 0x140015aa0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14001c3a0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001c3a0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1400166d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140032348]
test eax, eax
je 0x14001676a
lea rax, [0x140032320]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140032350]
mov qword [rbp - 8], rax
jmp 0x14001674e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140016742
cmp qword [rbp - 0x10], 0
je 0x140016742
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140016708
lea rax, [0x140032320]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001676b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140016870
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140016898
mov eax, 0
jmp 0x1400168e6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400168c1
mov eax, 0
jmp 0x1400168e6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400168e1
mov eax, 0
jmp 0x1400168e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400168ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001696a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140016961
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140016961
mov rax, qword [rbp - 8]
jmp 0x14001697f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140016934
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14001d724
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x14001d86e
mov rcx, qword [rbp + 0x10]
call fcn.140021cfd
cmp eax, 1
jne 0x14001d861
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x14001d817
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x14001d82d
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x14001d813
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x14001d84c
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sub.msvcrt.dll_abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x14001d86f
nop
add rsp, 0x90
pop rbp
ret