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

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140051040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r9, qword [rcx + 8]
xor r8d, r8d
mov word [rsp + 0x30], r8w
mov rdx, rcx
mov dword [rsp + 0x34], r8d
test r9, r9
je 0x140014ce2
mov ecx, dword [rcx + 0x40]
sub ecx, 1
je 0x140014c8e
sub ecx, 1
je 0x140014c3d
sub ecx, 1
je 0x140014bed
sub ecx, 1
je 0x140014bd3
cmp ecx, 1
jne 0x140014ce2
mov rcx, r9
call fcn.140024bb0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140017150
add rsp, 0x48
ret
mov rcx, rdx
call fcn.140015600
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140017150
add rsp, 0x48
ret
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
call fcn.140022a5c
lea rax, [rsp + 0x34]
mov dword [rsp + 0x28], 1
mov r9d, 1
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [rsp + 0x34]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140017150
add rsp, 0x48
ret
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
call fcn.140022a5c
mov r9d, 1
mov dword [rsp + 0x28], 1
lea rax, [rsp + 0x34]
mov ecx, r9d
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [rsp + 0x34]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140017150
add rsp, 0x48
ret
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
call fcn.140022a5c
movzx eax, word [rsp + 0x30]
cmp al, 0x80
jae 0x140014cbe
movzx eax, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140017150
add rsp, 0x48
ret
movzx ecx, al
lea rax, [0x140047ba0]
movzx eax, word [rax + rcx*2 - 0x100]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140017150
add rsp, 0x48
ret
movzx eax, r8w
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140017150
add rsp, 0x48
ret
Function at 0x140014e10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140051040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov edi, 1
xor eax, eax
mov word [rsp + 0x40], ax
mov byte [rsp + 0x42], al
mov rax, qword [rcx]
call qword [rax + 0x28]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 2
lea rdx, [0x140047fbc]
lea rcx, [rsp + 0x20]
call fcn.1400059a0
nop
lea rdx, [rbx + 0x10]
lea r8, [rsp + 0x20]
call fcn.1400026f0
mov qword [rbx + 8], rax
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140014ebf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014eba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014f4e
call fcn.140017170
mov r9, qword [rbx + 8]
test r9, r9
je 0x140014f34
mov r8d, 3
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140022a5c
movzx eax, byte [rsp + 0x40]
cmp al, 0xff
jne 0x140014ef2
cmp byte [rsp + 0x41], 0xfe
jne 0x140014f0b
mov edi, 5
jmp 0x140014f2b
cmp al, 0xef
jne 0x140014f0b
cmp byte [rsp + 0x41], 0xbb
jne 0x140014f0b
cmp byte [rsp + 0x42], 0xbf
jne 0x140014f0b
mov edi, 4
jmp 0x140014f2b
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 8]
call fcn.140023760
mov qword [rbx + 0x48], 0
mov rcx, rbx
call fcn.140015040
mov edi, eax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x28]
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140017150
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
call fcn.1400225c8
int3

Function at 0x140014fc0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140051040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov byte [rsp + 0x20], 0
mov rcx, qword [rcx + 8]
call fcn.1400237fc
test eax, eax
jne 0x14001501c
mov r9, qword [rbx + 8]
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, edx
call fcn.140022a5c
add qword [rbx + 0x48], rax
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140017150
add rsp, 0x30
pop rbx
ret
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140017150
add rsp, 0x30
pop rbx
ret
Function at 0x140015600
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140051040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r9, qword [rcx + 8]
mov ebx, 1
mov rsi, rcx
xor ebp, ebp
mov edx, ebx
mov qword [rsp + 0x38], rbp
mov r8d, ebx
mov dword [rsp + 0x30], ebp
lea rcx, [rsp + 0x38]
call fcn.140022a5c
mov dil, 0x40
test byte [rsp + 0x38], dil
je 0x140015680
mov r9, qword [rsi + 8]
lea rcx, [rsp + 0x38]
movsxd rax, ebx
mov edx, 1
add rcx, rax
mov r8d, edx
inc ebx
call fcn.140022a5c
shr dil, 1
cmp ebx, 7
jge 0x1400156d1
test byte [rsp + 0x38], dil
jne 0x140015653
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 1
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140017150
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
movzx eax, bp
jmp 0x1400156af

Function at 0x1400162a4
Capabilities:
Get geographical location

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

Function at 0x140017ffc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140018046
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140018046
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140018046
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140018046
cmp dword [rcx + 0x84], 0xe
jbe 0x140018046
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140018048
xor al, al
add rsp, 0x28
ret
Function at 0x140023274
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.140017ba0
sub rsp, rax
mov rax, qword [0x140051040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002a45c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400232c3
mov rax, rbp
jmp 0x1400233cb
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 + 0x53570]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002e3ec
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x53570]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400233c7
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 0x1400233c7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002e3ec
test rax, rax
js 0x1400233c7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400233c7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400233b9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400233b9
cmp byte [rcx], 0xd
jne 0x14002339f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400233ae
cmp byte [rcx + 1], 0xa
jne 0x1400233ae
inc rcx
jmp 0x1400233ae
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x51460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140023381
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400233cb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140017150
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 0x14002655c
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 0x1400265cb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400265cb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400265cb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400265cb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400265cb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400265cb
cmp dword [rcx + 0xf8], 0
je 0x1400265cb
mov ecx, ebx
call fcn.14002667c
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.140026458
nop
cmp dword [rbp + 0x20], 0
je 0x140026619
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140026624
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14002655c
Function at 0x140026760
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002655c

Function at 0x14002c3a8
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, [0x140053570]
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 0x14002c3ff
cmp word [rdx], r13w
jne 0x14002c3ff
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002c404
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002c529
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002c54a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002c43d
mov rdx, r9
mov word [rbx], cx
jmp 0x14002c464
cmp r9, r8
jae 0x14002c474
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 0x14002c41e
jmp 0x14002c529
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 0x14002c51e
cmp dword [rsp + 0x80], esi
je 0x14002c51e
lea r8, [0x140053570]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002c4f6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002c4c6
mov word [rbx], r13w
jmp 0x14002c526
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 0x14002c4d3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002c526
cmp word [rsp + 0x70], r13w
jne 0x14002c503
cmp rbx, r14
je 0x14002c4c0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002e3f4
cmp word [rsp + 0x70], r13w
je 0x14002c529
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, [0x140053570]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002c523
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002c529
Function at 0x14002df70
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002df86
mov al, 1
jmp 0x14002dfe6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002df97
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002dfe4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140032600
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002dfe4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002dfe4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002dfe4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002dfe6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14003194c
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 0x1400319d3
mov rsi, rbx
cmp word [rax], bp
je 0x140031992
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003197c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140031978
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002912c
mov rdi, rax
test rax, rax
je 0x1400319c0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140039970
mov rbp, rdi
xor ecx, ecx
call fcn.14002918c
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 0x140034b54
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.14002a968
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 0x140034bf5
cmp ebx, dword [rsp + 0x30]
je 0x140034bee
test esi, esi
je 0x140034bee
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140034bc9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140034bd6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140034bb3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140034bda
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140034bf7
mov eax, 1
jmp 0x140034bf7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140038c8c
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.14002e3f4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002e3f4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140038ddc
cmp rax, 0xffffffffffffffff
je 0x140038ddc
xor edi, edi
test rbp, rbp
jle 0x140038d87
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002af3c
mov rbx, rax
test rax, rax
jne 0x140038d14
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140038d7d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400275ac
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.14002da74
cmp eax, 0xffffffff
je 0x140038d5d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140038d24
mov edx, r15d
mov ecx, r14d
call fcn.1400275ac
jmp 0x140038d7d
cmp byte [rsi + 0x38], dil
je 0x140038d74
cmp dword [rsi + 0x34], 5
jne 0x140038d74
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140038d7d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002918c
jmp 0x140038df0
jns 0x140038df0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002e3f4
cmp rax, 0xffffffffffffffff
jne 0x140038da8
cmp byte [rsi + 0x30], dil
je 0x140038df0
mov edi, dword [rsi + 0x2c]
jmp 0x140038df0
mov ecx, r14d
call fcn.140032600
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140038df0
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 0x140038df0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140038de9
mov eax, dword [rsi + 0x2c]
jmp 0x140038dee
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002e3f4
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 0x140039610
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140039638
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140039638
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
jmp 0x17681f70c
Function at 0x14014a5ec
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0xfc17fb94
sub r11, 2
not cx
movzx ecx, word [r11]
jmp 0x140161577
add rbp, 0xc
xor r8d, r8d
test rcx, rcx
push 0x6508d423
lea rsp, [rsp + 0x10]
je 0x14014ae36
mov r10d, 0x189bcdb2
or r10w, 0xecb8
push r9
mov r9d, r10d
jne 0x1401712f6
pop rax
not si
neg dword [rsp + 1]
jle 0x14016be63
jmp 0x140172b91
jmp 0x1401614f3
push 0xffffffffaa11ba3f
not word [rsp + 2]
not r8d
call fcn.140159d8c
xor cx, bx
call fcn.140152760
call fcn.140151b19
xor si, 0xee9a
neg si
mov eax, 0x7635bf9e
shl qword [rsp + rax - 0x7635bf9e], 0x30
not rax
not si
rol dword [rsp + rax + 0x7635bfa1], 0x3f
ror si, 1
ror rax, 0xb1
sub si, 0x8c9f
shr rax, 0x88
jp 0x14015563b
and r9d, r10d
lea r10, [0x14014ccc0]
push 0x782e8e9f
mov r9d, dword [rsp]
movzx r9d, byte [r9 + rax - 0x782e8e9f]
xor r9d, r8d
and r9d, 0xff
push 0xffffffff8908761d
mov r9d, dword [r10 + r9*4]
shr r8d, 8
xor r8d, r9d
neg word [rsp + 2]
not dword [rsp + 0xb]
inc rax
xor r8d, 0x9985b702
rol dword [rsp + 3], 0x8b
dec rcx
lea rsp, [rsp + 0x10]
jne 0x140171300
push 0xfffffffff42f0885
call fcn.14014ae2c
or bp, r9w
call fcn.14013a2a5
jmp 0x14013cde4
mov bp, word [rbp + riz]
call fcn.1401332b5
Function at 0x1800038b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1800038d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x18000394c
mov rdi, r14
mov rcx, rbx
call fcn.180004f20
test rax, rax
jle 0x180003924
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.180009a70
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18000393c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180003944
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1800038e6
sub r14, rdi
jmp 0x180003a2f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180003963
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180003965
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180003997
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180009a70
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180003a2c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800039d2
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x180003a0d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.180010424
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x180003a2c
cmp rbp, rax
ja 0x1800039e0
test rbp, rbp
je 0x180003a2c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.180010424
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret