joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14019cf78
Capabilities:
Get file system object information

Disassembly:
push rbx
sub rsp, 0x310
mov rax, qword [0x140274940]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov qword [rsp + 0x38], rdx
mov rax, r8
mov rbx, rdx
test r8, r8
je 0x14019cff7
mov rcx, qword [rax + 8]
lea r8, [rsp + 0x40]
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x208
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, rbx
lea rdx, [rsp + 0x50]
test rax, rax
jne 0x14019cfd6
lea rdx, [0x14022bab0]
call fcn.140002d70
mov rax, rbx
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.1401a6530
add rsp, 0x310
pop rbx
ret
call fcn.14000b948
int3

Function at 0x1401a70fc
Capabilities:
Parse pe header

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

Function at 0x1401c13dc
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.1401a6a40
sub rsp, rax
mov rax, qword [0x140274940]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401c109c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401c142b
mov rax, rbp
jmp 0x1401c1533
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 + 0x282870]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401c9a00
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x282870]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401c152f
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 0x1401c152f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401c9a00
test rax, rax
js 0x1401c152f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401c152f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401c1521
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401c1521
cmp byte [rcx], 0xd
jne 0x1401c1507
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401c1516
cmp byte [rcx + 1], 0xa
jne 0x1401c1516
inc rcx
jmp 0x1401c1516
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x274df0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401c14e9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401c1533
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401a6530
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 0x1401c285c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401c2658
Function at 0x1401c8688
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401c869e
mov al, 1
jmp 0x1401c86fe
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401c86af
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401c86fc
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401c1b08
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401c86fc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401c86fc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401c86fc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401c86fe
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1401c9aac
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, [0x140282870]
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 0x1401c9b03
cmp word [rdx], r13w
jne 0x1401c9b03
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401c9b08
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401c9c2d
mov r11d, SafeArrayGetDim
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401c9c4e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401c9b41
mov rdx, r9
mov word [rbx], cx
jmp 0x1401c9b68
cmp r9, r8
jae 0x1401c9b78
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 0x1401c9b22
jmp 0x1401c9c2d
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 0x1401c9c22
cmp dword [rsp + 0x80], esi
je 0x1401c9c22
lea r8, [0x140282870]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401c9bfa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401c9bca
mov word [rbx], r13w
jmp 0x1401c9c2a
mov ecx, SafeArrayGetDim
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 0x1401c9bd7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401c9c2a
cmp word [rsp + 0x70], r13w
jne 0x1401c9c07
cmp rbx, r14
je 0x1401c9bc4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401c9a08
cmp word [rsp + 0x70], r13w
je 0x1401c9c2d
mov ecx, SafeArrayGetDim
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, [0x140282870]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401c9c27
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401c9c2d
Function at 0x1401cde40
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 0x1401cdec7
mov rsi, rbx
cmp word [rax], bp
je 0x1401cde86
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401cde70
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401cde6c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401c6fc0
mov rdi, rax
test rax, rax
je 0x1401cdeb4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401d6700
mov rbp, rdi
xor ecx, ecx
call fcn.1401c6040
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 0x1401d0964
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.1401c5c68
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 0x1401d0a05
cmp ebx, dword [rsp + 0x30]
je 0x1401d09fe
test esi, esi
je 0x1401d09fe
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401d09d9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401d09e6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401d09c3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401d09ea
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401d0a07
mov eax, 1
jmp 0x1401d0a07
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1401d5d10
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.1401c9a08
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401c9a08
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401d5e60
cmp rax, 0xffffffffffffffff
je 0x1401d5e60
xor edi, edi
test rbp, rbp
jle 0x1401d5e0b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401c5fc8
mov rbx, rax
test rax, rax
jne 0x1401d5d98
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401d5e01
mov edx, 0x8000
mov ecx, r14d
call fcn.1401c28d8
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.1401c9490
cmp eax, 0xffffffff
je 0x1401d5de1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401d5da8
mov edx, r15d
mov ecx, r14d
call fcn.1401c28d8
jmp 0x1401d5e01
cmp byte [rsi + 0x38], dil
je 0x1401d5df8
cmp dword [rsi + 0x34], 5
jne 0x1401d5df8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
cmp byte [rsi + 0x30], dil
je 0x1401d5e01
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401c6040
jmp 0x1401d5e74
jns 0x1401d5e74
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401c9a08
cmp rax, 0xffffffffffffffff
jne 0x1401d5e2c
cmp byte [rsi + 0x30], dil
je 0x1401d5e74
mov edi, dword [rsi + 0x2c]
jmp 0x1401d5e74
mov ecx, r14d
call fcn.1401c1b08
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401d5e74
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayGetDim
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
jmp 0x1401d5e74
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401d5e6d
mov eax, dword [rsi + 0x2c]
jmp 0x1401d5e72
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401c9a08
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 0x1401d6430
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401d6458
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401d6458
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140e7f058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140e7f1df
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 0x140e7f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e7f06f
add dl, dl
jne 0x140e7f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e7f0f6
xor eax, eax
add dl, dl
jne 0x140e7f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e7f1ad
add dl, dl
jne 0x140e7f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e7f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e7f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e7f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140e7f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140e7f07e
mov eax, 1
add dl, dl
jne 0x140e7f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e7f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e7f0fb
sub eax, ebx
mov ebx, 1
jne 0x140e7f14c
mov ecx, 1
add dl, dl
jne 0x140e7f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e7f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e7f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e7f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140e7f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e7f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e7f15d
cmp eax, 0x7d00
jae 0x140e7f19b
cmp eax, 0x500
jb 0x140e7f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e7f07e
cmp eax, 0x7f
ja 0x140e7f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e7f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140e7f1d2
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 0x140e7f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140005f1c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005d0c
Function at 0x140008df0
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 0x140008e77
mov rsi, rbx
cmp word [rax], bp
je 0x140008e36
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140008e20
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140008e1c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400097e8
mov rdi, rax
test rax, rax
je 0x140008e64
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400034f0
mov rbp, rdi
xor ecx, ecx
call fcn.140007b18
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 0x140032226
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rdx, qword [rbp + 0x70]
mov ecx, dword [rbp + 0x78]
mov ecx, ecx
mov ebx, dword [rbp + 0x44]
or ebx, 0x40
lea rsi, [rbp + 0x44]
mov qword [rbp], rcx
mov rcx, rdx
mov rdx, qword [rbp]
mov r8d, ebx
mov r9, rsi
call rax
jmp 0x140068e44
xor eax, eax
inc eax
jmp 0x1400791e4
jmp 0x14002d990
xor eax, eax
jmp 0x1400791e4
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x70], rcx
mov dword [rbp + 0x78], edx
mov eax, dword [rbp + 0x78]
test eax, eax
jne 0x140068e6d
jmp 0x14002d990
mov eax, dword [rbp + 0x44]
and eax, 0xffffff80
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x44]
test eax, 0x80
je 0x14001c2d3
jmp 0x140154986
mov dword [rbp + 8], eax
mov eax, dword [rbp + 8]
test eax, eax
jne 0x14001c30b
jmp 0x14006dc13
mov rax, qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rdx, qword [rbp + 0x70]
lea rcx, [rbp + 0x20]
mov qword [rbp + 0x18], rcx
mov rcx, rdx
mov rdx, qword [rbp + 0x18]
mov r8d, 0x30
call rax
jmp 0x14006dba6
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
test rax, rax
jne 0x140052a26
jmp 0x14002d964
jmp 0x14002d990
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
lea rsp, [rbp + 0x60]
pop rbp
ret
xor eax, eax
inc eax
jmp 0x1400791e4

Function at 0x140044ba6
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov eax, dword [rbp + 0x24]
shl eax, 4
mov edx, dword [rbp + 0x24]
shr edx, 5
xor eax, edx
add eax, dword [rbp + 0x24]
mov edx, dword [rbp + 0x28]
and edx, 3
mov rcx, qword [rbp + 8]
mov edx, dword [rcx + rdx*4]
add edx, dword [rbp + 0x28]
xor eax, edx
add eax, dword [rbp + 0x20]
mov dword [rbp + 0x20], eax
mov eax, dword [rbp]
add eax, dword [rbp + 0x28]
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 0x20]
shl eax, 4
mov edx, dword [rbp + 0x20]
shr edx, 5
xor eax, edx
add eax, dword [rbp + 0x20]
mov edx, dword [rbp + 0x28]
shr edx, 0xb
and edx, 3
mov rcx, qword [rbp + 8]
mov edx, dword [rcx + rdx*4]
add edx, dword [rbp + 0x28]
xor eax, edx
add eax, dword [rbp + 0x24]
mov dword [rbp + 0x24], eax
inc dword [rbp + 0x14]
mov eax, dword [rbp + 0x14]
mov edx, dword [rbp + 0x10]
cmp eax, edx
jb 0x14001e8a6
jmp 0x140043478
mov rax, qword [rbp + 0x18]
mov edx, dword [rbp + 0x20]
mov dword [rax], edx
mov rax, qword [rbp + 0x18]
mov edx, dword [rbp + 0x24]
mov dword [rax + 4], edx
lea rsp, [rbp + 0x30]
pop rbp
ret
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x20]
mov dword [rbp + 0x10], 0x40
mov dword [rbp], 0x9e3779b9
lea rax, [0x1402a3100]
mov qword [rbp + 8], rax
lea rax, [0x1401c1598]
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x18]
mov eax, dword [rax]
mov dword [rbp + 0x20], eax
mov rax, qword [rbp + 0x18]
mov eax, dword [rax + 4]
mov dword [rbp + 0x24], eax
xor eax, eax
mov dword [rbp + 0x28], eax
mov dword [rbp + 0x14], eax
mov eax, dword [rbp + 0x14]
mov edx, dword [rbp + 0x10]
cmp eax, edx
jae 0x140043478
jmp 0x14001e8a6
Function at 0x140011433
Capabilities:
Terminate process

Disassembly:
jmp 0x14001e040
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x14001154b
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001eb70
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001eb90
xor al, al
jmp 0x14001ec11
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001eba3
xor al, al
jmp 0x14001ec11
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001ebcd
xor al, al
jmp 0x14001ec11
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001ebe1
xor al, al
jmp 0x14001ec11
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001ebf3
xor al, al
jmp 0x14001ec11
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001ec0f
xor al, al
jmp 0x14001ec11
mov al, 1
add rsp, 0x38
ret
Function at 0x140002584
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x1400025de
mov r11b, 0x23
lea rbx, [0x14003bd90]
movzx edi, byte [r10]
dec rdx
inc r10
cmp dil, r11b
jne 0x1400025c8
cmp rdx, 2
jb 0x1400025c8
cmp byte [r10], r11b
jne 0x1400025c8
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rdi
shr r9d, 8
xor r9d, dword [rbx + rcx*4]
test rdx, rdx
jne 0x1400025a6
jmp 0x14000261f
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x14000261f
mov r11b, 0x23
lea rbx, [0x14003bd90]
cmp dl, r11b
jne 0x140002603
cmp byte [r10], r11b
jne 0x140002603
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rbx + rcx*4]
test dl, dl
jne 0x1400025f1
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x140002754
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
test r8, r8
je 0x140002774
and qword [r8], 0
lea rdx, [0x14003b800]
call fcn.140002630
mov rbx, rax
test rax, rax
je 0x140002865
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14000285c
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000285c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000285c
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000285c
mov rbp, rdi
cmp rdi, 0xffffffffffffffff
je 0x14000285c
mov rax, qword [0x140086940]
test rax, rax
je 0x1400027f9
inc dword [rax + 0x3b0]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14000285c
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x140002849
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140086940]
test rax, rax
je 0x14000283e
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002865
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x140002857
mov qword [rsi], rbp
mov rax, rdi
jmp 0x140002867
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140004720
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x28
movsxd rdx, dword [rcx + 0x108]
mov r9d, 4
mov rax, qword [rcx + 0x110]
mov r8d, dword [rax + rdx*4 - 4]
lea rdx, [rsp + 0x38]
not r8d
movzx eax, byte [rdx]
inc rdx
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
lea rax, [0x14003bd90]
xor r8d, dword [rax + rcx*4]
sub r9, 1
jne 0x140004749
not r8d
mov ecx, r8d
call fcn.140004880
mov eax, r8d
add rsp, 0x28
ret

Function at 0x14000e824
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140086040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [0x140086940]
mov r10d, 4
mov dword [rsp + 0x20], ecx
mov r9, qword [rax + 0x1b90]
movsxd rcx, dword [r9 + 0x108]
mov rax, qword [r9 + 0x110]
mov r8d, dword [rax + rcx*4 - 4]
lea rcx, [rsp + 0x20]
not r8d
movzx eax, byte [rcx]
inc rcx
movzx edx, r8b
xor rdx, rax
shr r8d, 8
lea rax, [0x14003bd90]
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x14000e86a
not r8d
lea rdx, [rsp + 0x20]
lea rcx, [r9 + 0x108]
mov dword [rsp + 0x20], r8d
call fcn.14001c8f4
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140039610
add rsp, 0x38
ret

Function at 0x1400134f8
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, qword [0x140086940]
cmp byte [rbx + 0x3000], 0
je 0x1400135b9
cmp qword [rbx + 0x3008], 0
lea rbp, [rax + 0x10]
lea rdi, [rbx + 0x3010]
je 0x1400135ab
mov r9d, dword [rdi + 4]
test r9d, r9d
jns 0x140013563
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001cc34
mov rcx, qword [rsp + 0x40]
and dword [rdi], 0
mov rdx, rcx
mov rcx, rdi
mov r8, rbp
call fcn.140002e90
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x3008]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x140086938]
movsxd r8, eax
mov rax, qword [rbx + 0x3018]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x1400135b9
mov rdx, rcx
mov r8, rbp
mov rcx, rdi
call fcn.140002e90
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret

Function at 0x140013c14
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x140086940]
mov rbx, rcx
and dword [rax + 0x2fbc], 0
test rcx, rcx
je 0x140013c7d
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.140013c88
lea rdx, [0x14003b804]
mov rcx, rbx
mov rdi, rax
call fcn.140002630
mov rbx, rax
test rax, rax
je 0x140013c7d
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret