joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140050bd4
Capabilities:
Parse pe header

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

Function at 0x140056810
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14005667b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005667b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005667b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005667b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005667b
cmp dword [rcx + 0x84], 0xe
jbe 0x14005667b
cmp dword [rcx + 0xf8], 0
je 0x14005667b
mov ecx, ebx
call fcn.14005672c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140056508
nop
cmp dword [rbp + 0x20], 0
je 0x1400566c9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400566d4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14005660c
Function at 0x14005e198
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.140050840
sub rsp, rax
mov rax, qword [0x1400a9020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14006b050
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14005e1e7
mov rax, rbp
jmp 0x14005e2ef
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 + 0xae5f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14007166c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xae5f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005e2eb
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 0x14005e2eb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14007166c
test rax, rax
js 0x14005e2eb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005e2eb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14005e2dd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14005e2dd
cmp byte [rcx], 0xd
jne 0x14005e2c3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005e2d2
cmp byte [rcx + 1], 0xa
jne 0x14005e2d2
inc rcx
jmp 0x14005e2d2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa95d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14005e2a5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005e2ef
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14004fba0
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 0x14006b170
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14006b186
mov al, 1
jmp 0x14006b1e6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14006b197
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14006b1e4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400757f0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006b1e4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14006b1e4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14006b1e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14006b1e6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140070a0c
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, [0x1400ae5f0]
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 0x140070a63
cmp word [rdx], r13w
jne 0x140070a63
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140070a68
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140070b8d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140070bae
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140070aa1
mov rdx, r9
mov word [rbx], cx
jmp 0x140070ac8
cmp r9, r8
jae 0x140070ad8
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 0x140070a82
jmp 0x140070b8d
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 0x140070b82
cmp dword [rsp + 0x80], esi
je 0x140070b82
lea r8, [0x1400ae5f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140070b5a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140070b2a
mov word [rbx], r13w
jmp 0x140070b8a
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 0x140070b37
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140070b8a
cmp word [rsp + 0x70], r13w
jne 0x140070b67
cmp rbx, r14
je 0x140070b24
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140071674
cmp word [rsp + 0x70], r13w
je 0x140070b8d
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, [0x1400ae5f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140070b87
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140070b8d
Function at 0x140074ac4
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 0x140074af4
xor eax, eax
jmp 0x140074bb7
mov rbp, rbx
cmp word [rax], si
je 0x140074b19
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140074b00
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140074afc
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.1400702a8
movsxd r14, eax
test eax, eax
jne 0x140074b57
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140074aed
mov rcx, r14
call fcn.14006de60
mov rdi, rax
test rax, rax
jne 0x140074b70
xor ecx, ecx
call fcn.14006d9dc
jmp 0x140074b4c
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.1400702a8
test eax, eax
jne 0x140074ba1
mov rcx, rdi
call fcn.14006d9dc
jmp 0x140074bab
xor ecx, ecx
call fcn.14006d9dc
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 0x140074bd4
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 0x140074c5b
mov rsi, rbx
cmp word [rax], bp
je 0x140074c1a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140074c04
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140074c00
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14006de60
mov rdi, rax
test rax, rax
je 0x140074c48
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140052000
mov rbp, rdi
xor ecx, ecx
call fcn.14006d9dc
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 0x140077d44
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.14006b630
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 0x140077de5
cmp ebx, dword [rsp + 0x30]
je 0x140077dde
test esi, esi
je 0x140077dde
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140077db9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140077dc6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140077da3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140077dca
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140077de7
mov eax, 1
jmp 0x140077de7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14007c610
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.140071674
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140071674
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14007c760
cmp rax, 0xffffffffffffffff
je 0x14007c760
xor edi, edi
test rbp, rbp
jle 0x14007c70b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14006bc04
mov rbx, rax
test rax, rax
jne 0x14007c698
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14007c701
mov edx, 0x8000
mov ecx, r14d
call fcn.140068a2c
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.14006d6d4
cmp eax, 0xffffffff
je 0x14007c6e1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14007c6a8
mov edx, r15d
mov ecx, r14d
call fcn.140068a2c
jmp 0x14007c701
cmp byte [rsi + 0x38], dil
je 0x14007c6f8
cmp dword [rsi + 0x34], 5
jne 0x14007c6f8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14007c701
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14006d9dc
jmp 0x14007c774
jns 0x14007c774
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140071674
cmp rax, 0xffffffffffffffff
jne 0x14007c72c
cmp byte [rsi + 0x30], dil
je 0x14007c774
mov edi, dword [rsi + 0x2c]
jmp 0x14007c774
mov ecx, r14d
call fcn.1400757f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14007c774
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 0x14007c774
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14007c76d
mov eax, dword [rsi + 0x2c]
jmp 0x14007c772
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140071674
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 0x1400058f0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rax, [0x1400b0310]
mov r14, rcx
mov r13, rdx
lea rcx, [rsp + 0x20]
mov edx, 0xfa0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
call fcn.14000c730
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x40], rax
mov rbx, rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
test rbx, rbx
jle 0x140005a68
mov rcx, qword [0x1400d7510]
lea rdi, [rsp + 0x30]
movabs r15, 0x7fffffffffffffff
movabs rbp, 0x8000000000000000
call fcn.1400a4c00
mov rsi, rax
nop dword [rax]
mov rax, qword [rsp + 0x48]
mov r9, r13
mov r8d, 0xfa0
mov edx, 1
lea rcx, [rax + 8]
call sub.msvcrt.dll_fread
mov r12, rax
cmp rax, 0xfa0
je 0x140005a00
mov rcx, r13
call sub.msvcrt.dll_ferror
test eax, eax
je 0x1400059c3
mov rcx, r13
call fcn.140005550
cmp byte [rsi], 0
je 0x140005ab0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400059e0
test byte [rcx + 7], 0x40
je 0x140005aa0
movdqu xmm0, xmmword [rsp + 0x30]
mov rax, r14
movups xmmword [r14], xmm0
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rsi], 0
jne 0x1400059cc
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call fcn.140009f20
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jle 0x140005a68
mov r8, rbx
add r8, 1
jo 0x140005a7d
test r8, r8
js 0x140005a88
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
lea rcx, [rdx + rax + 8]
mov rax, qword [rsp + 0x48]
lea rdx, [rax + 8]
call sub.msvcrt.dll_memcpy
add rbx, qword [rsp + 0x30]
jo 0x140005a7d
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jg 0x140005988
nop dword [rax]
xor ecx, ecx
lea rdx, [rbx - 1]
call fcn.14000b7e0
mov rcx, qword [rsp + 0x48]
jmp 0x1400059d1
call fcn.140008cf0
jmp 0x140005a53
mov r8, r15
xor edx, edx
mov rcx, rbp
call fcn.1400093f0
jmp 0x140005a53
call fcn.140008a10
jmp 0x1400059e0
test r12, r12
js 0x140005b28
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.14000a0f0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140009f20
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
test rbx, rbx
jle 0x1400059d1
mov r8, rbx
add r8, 1
jo 0x140005b6b
test r8, r8
js 0x140005b46
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
lea r9, [rdx + rax + 8]
lea rdx, [rcx + 8]
mov rcx, r9
call sub.msvcrt.dll_memcpy
add rbx, qword [rsp + 0x30]
jo 0x140005b6b
mov qword [rsp + 0x30], rbx
mov rcx, qword [rsp + 0x48]
jmp 0x1400059d1
movabs r8, 0x7fffffffffffffff
mov rcx, r12
xor edx, edx
call fcn.1400093f0
mov rcx, qword [rsp + 0x48]
jmp 0x1400059d1
movabs rcx, 0x8000000000000000
xor edx, edx
movabs r8, 0x7fffffffffffffff
call fcn.1400093f0
mov rcx, qword [rsp + 0x48]
jmp 0x1400059d1
call fcn.140008cf0
jmp 0x1400059cc
Function at 0x140005b80
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], 0
mov r14, rcx
mov r13, rdx
mov r12, r8
mov qword [rsp + 0x38], 0
test r8, r8
js 0x140005c80
lea rdi, [rsp + 0x20]
mov rdx, r8
mov rcx, rdi
call fcn.14000c730
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov rdx, rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
test rdx, rdx
jle 0x140005cd0
mov rax, qword [rsp + 0x38]
mov r9, r13
mov r8, r12
mov edx, 1
lea rcx, [rax + 8]
call sub.msvcrt.dll_fread
mov r15, rax
cmp r12, rax
je 0x140005c14
mov rcx, r13
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x140005ca0
mov rcx, qword [0x1400d7510]
call fcn.1400a4c00
cmp byte [rax], 0
mov rbx, rax
jne 0x140005c60
mov rcx, r13
call sub.msvcrt.dll_fgetc
mov rdx, r13
mov ecx, eax
mov esi, eax
call sub.msvcrt.dll_ungetc
cmp byte [rbx], 0
jne 0x140005c60
test esi, esi
jns 0x140005ce0
cmp r12, r15
jle 0x140005c60
test r15, r15
js 0x140005cb0
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.14000a0f0
movdqu xmm0, xmmword [rsp + 0x30]
mov rax, r14
movups xmmword [r14], xmm0
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r12
call fcn.1400093f0
jmp 0x140005c60
mov rcx, r13
call fcn.140005550
jmp 0x140005c14
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r15
call fcn.1400093f0
jmp 0x140005c60
sub rdx, 1
xor ecx, ecx
call fcn.14000b7e0
jmp 0x140005c60
mov rdx, r13
mov rcx, rdi
call fcn.1400058f0
cmp byte [rbx], 0
mov rsi, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
jne 0x140005d3f
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.140009f20
test rsi, rsi
jle 0x140005d3f
mov r8, rsi
add r8, 1
jo 0x140005d61
test r8, r8
js 0x140005d70
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
lea rcx, [rdx + rax + 8]
lea rdx, [r12 + 8]
call sub.msvcrt.dll_memcpy
add rsi, qword [rsp + 0x30]
jo 0x140005d61
mov qword [rsp + 0x30], rsi
test r12, r12
je 0x140005c60
test byte [r12 + 7], 0x40
jne 0x140005c60
mov rcx, r12
call fcn.140008a10
jmp 0x140005c60
call fcn.140008cf0
jmp 0x140005d3f
movabs r8, 0x7fffffffffffffff
xor edx, edx
movabs rcx, 0x8000000000000000
call fcn.1400093f0
jmp 0x140005d3f
Function at 0x140006090
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
lea rax, [0x1400b0243]
mov rdi, qword [rcx]
mov rbp, qword [rcx + 8]
test rdi, rdi
lea rcx, [rbp + 8]
cmove rcx, rax
mov r13, rdx
lea rdx, [0x1400b026d]
mov rsi, r8
call fcn.1400052c0
mov rcx, qword [0x1400d7510]
mov r12, rax
call fcn.1400a4c00
cmp byte [rax], 0
mov rbx, rax
jne 0x140006121
test r12, r12
je 0x140006140
test rsi, rsi
jle 0x140006230
mov rcx, r13
mov r9, r12
mov r8, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x140006130
movzx esi, byte [rbx]
mov byte [rbx], 0
mov rcx, r12
call sub.msvcrt.dll_fclose
cmp byte [rbx], 0
jne 0x140006121
mov byte [rbx], sil
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rcx, r12
call fcn.140005550
jmp 0x14000610b
mov edx, 8
mov ecx, 0x40
movabs rbx, 0x6f20746f6e6e6163
call fcn.14000a2f0
lea rdx, [rdi + 0xd]
lea rcx, [rsp + 0x30]
mov r12, rax
mov rax, qword [0x1400d7390]
mov qword [r12], rax
lea rax, [0x1400b0244]
mov qword [r12 + 0x10], rax
call fcn.14000a150
mov rsi, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov edx, 0x20
lea rax, [rsi + r13 + 8]
mov qword [rax], rbx
mov rbx, rsi
add rbx, 0xd
mov dword [rax + 8], 0x3a6e6570
mov word [rax + 0xc], dx
jo 0x140006260
test rdi, rdi
jle 0x1400061e1
mov r8, rdi
add r8, 1
jo 0x14000626d
test r8, r8
js 0x140006240
lea rcx, [rbx + r13 + 8]
lea rdx, [rbp + 8]
call sub.msvcrt.dll_memcpy
add rdi, rbx
jo 0x14000626d
mov rbx, rdi
mov qword [r12 + 0x18], rbx
lea r9, str.syncio.nim
mov rcx, r12
lea r8, str.writeFile
mov qword [r12 + 0x20], r13
lea rdx, [0x1400b0244]
mov qword [r12 + 8], 0
mov qword [rsp + 0x20], 0x371
call fcn.14000b530
nop
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [rsi - 1]
xor ecx, ecx
call fcn.14000b7e0
jmp 0x14000610b
movabs r8, 0x7fffffffffffffff
xor edx, edx
movabs rcx, 0x8000000000000000
call fcn.1400093f0
jmp 0x1400061e1
call fcn.140008cf0
mov rbx, rsi
jmp 0x1400061b0
call fcn.140008cf0
jmp 0x1400061e1

Function at 0x140006630
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 0x140006651
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 fcn.1400adc48
Function at 0x14000d040
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
xor r12d, r12d
lea rdi, [0x1400af400]
mov rsi, rcx
mov rbx, rdx
lea rbp, [rsp + 0x20]
lea rcx, [0x1400e1040]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r13, qword [fcn.1400ae230]
jmp 0x14000d08a
add r12, 1
jo 0x14000d158
cmp r12, rbx
jge 0x14000d0e0
test r12, r12
js 0x14000d138
mov r14, r12
mov ecx, 1
call r13
shl r14, 4
xor r8d, r8d
mov rdx, rbp
add r14, rsi
mov rcx, rax
movdqu xmm0, xmmword [r14]
movups xmmword [rsp + 0x20], xmm0
call fcn.14000cef0
mov rcx, rdi
call fcn.1400a4c00
cmp byte [rax], 0
je 0x14000d080
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rbx, qword [fcn.1400ae230]
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x1400b0491]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbx
mov rcx, rax
call fcn.1400adc48
lea rcx, [0x1400e1040]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [rbx - 1]
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp fcn.14000b7e0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp fcn.140008cf0

Function at 0x140012fb0
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx]
mov rdx, qword [rcx + 8]
test rax, rax
jle 0x140013010
lea r8, [rax + rdx + 8]
lea rcx, [rdx + 8]
xor eax, eax
nop word [rax + rax]
movzx edx, byte [rcx]
add rcx, 1
add rdx, rax
mov rax, rdx
shl rax, 0xa
add rax, rdx
mov rdx, rax
shr rdx, 6
xor rax, rdx
cmp r8, rcx
jne 0x140012fd0
lea rdx, [rax + rax*8]
mov rax, rdx
shr rax, 0xb
xor rax, rdx
mov rdx, rax
shl rdx, 0xf
add rax, rdx
ret
xor eax, eax
ret
Function at 0x1400156a0
Capabilities:
Hash data using murmur3

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [rdx + 3]
test rdx, rdx
mov rbp, rcx
mov rsi, rdx
cmovns rdi, rdx
and rdi, 0xfffffffffffffffc
jle 0x14001584f
test rdx, rdx
jle 0x140015716
mov ebx, dword [rcx]
mov rcx, qword [0x1400d7510]
call fcn.1400a4c00
cmp byte [rax], 0
jne 0x140015730
xor r12d, r12d
mov ecx, 4
imul eax, ebx, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r12d
rol eax, 0xd
lea r12d, [rax + rax*4 - 0x19ab949c]
cmp rcx, rdi
jge 0x140015738
cmp rsi, rcx
jle 0x140015718
mov ebx, dword [rbp + rcx]
add rcx, 4
jmp 0x1400156e5
xor ecx, ecx
lea rdx, [rsi - 1]
call fcn.14000b7e0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor eax, eax
jmp 0x140015723
mov rax, rsi
and eax, 3
je 0x14001587a
sub rax, 1
mov r8, rcx
xor edx, edx
add r8, rax
js 0x140015881
cmp r8, rax
jb 0x140015881
test rdx, rdx
jne 0x140015843
cmp rsi, r8
jle 0x140015830
test r8, r8
js 0x140015830
movzx edx, byte [rbp + r8]
test rax, rax
je 0x1400157dc
sub rax, 1
mov r9, rcx
xor r10d, r10d
add r9, rax
js 0x14001588b
cmp r9, rax
jb 0x14001588b
mov r8, r9
test r10, r10
jne 0x140015843
cmp rsi, r9
jle 0x140015830
test r9, r9
js 0x140015830
movzx r8d, byte [rbp + r9]
shl edx, 8
or edx, r8d
test rax, rax
je 0x1400157dc
test rcx, rcx
js 0x14001582d
cmp rsi, rcx
jle 0x14001582d
movzx eax, byte [rbp + rcx]
shl edx, 8
or edx, eax
imul ebx, edx, 0xcc9e2d51
rol ebx, 0xf
mov rcx, qword [0x1400d7510]
call fcn.1400a4c00
cmp byte [rax], 0
jne 0x140015730
imul ebx, ebx, 0x1b873593
mov eax, r12d
xor eax, esi
xor eax, ebx
mov edx, eax
shr edx, 0x10
xor eax, edx
imul edx, eax, 0x85ebca6b
mov eax, edx
shr eax, 0xd
xor eax, edx
imul edx, eax, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
jmp 0x140015723
mov r8, rcx
lea rdx, [rsi - 1]
mov rcx, r8
call fcn.14000b7e0
xor eax, eax
jmp 0x140015723
call fcn.140008cf0
xor eax, eax
jmp 0x140015723
sar rdx, 0x3f
shr rdx, 0x3e
lea rax, [rsi + rdx]
and eax, 3
sub rax, rdx
test rax, rax
jle 0x140015877
sub rax, 1
xor ecx, ecx
xor r12d, r12d
mov r8, rax
jmp 0x140015768
xor r12d, r12d
xor ebx, ebx
jmp 0x1400157e5
mov edx, 1
jmp 0x14001575f
mov r10d, 1
jmp 0x1400157a1
sub rsp, 0x28
mov rdx, qword [rcx]
mov rcx, qword [rcx + 8]
test rdx, rdx
js 0x1400158c8
lea rax, [rcx + 8]
test rcx, rcx
cmovne rcx, rax
add rsp, 0x28
jmp 0x1400156a0
lea r9, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, r9
call fcn.14000e760
xor eax, eax
add rsp, 0x28
ret