joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005cd00
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14005cd16
mov al, 1
jmp 0x14005cd82
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14005cd27
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14005cd80
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400616b4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005cd80
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005cd80
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14005cd80
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14005cd82
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14005e268
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.140045820
sub rsp, rax
mov rax, qword [0x14008d040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140058e0c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14005e2b7
mov rax, rbp
jmp 0x14005e3c3
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 + 0x8fe40]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005e758
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x8fe40]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005e3bf
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005e3bf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005e758
test rax, rax
js 0x14005e3bf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005e3bf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14005e3b1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14005e3b1
cmp byte [rcx], 0xd
jne 0x14005e397
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005e3a6
cmp byte [rcx + 1], 0xa
jne 0x14005e3a6
inc rcx
jmp 0x14005e3a6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x8db50]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14005e379
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005e3c3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400449f0
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 0x140060c0c
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 0x140060c3c
xor eax, eax
jmp 0x140060cff
mov rbp, rbx
cmp word [rax], si
je 0x140060c61
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140060c48
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140060c44
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.14005f448
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x140060ca2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140060c35
call fcn.1400575e0
mov rdi, rax
test rax, rax
jne 0x140060cb8
xor ecx, ecx
call fcn.140057580
jmp 0x140060c97
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.14005f448
test eax, eax
jne 0x140060ce9
mov rcx, rdi
call fcn.140057580
jmp 0x140060cf3
xor ecx, ecx
call fcn.140057580
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 0x140063bac
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x140063c1f
cmp word [rcx], si
je 0x140063c1f
lea rdx, [0x1400749a8]
call fcn.140067e20
test eax, eax
je 0x140063c1f
lea rdx, [0x1400749c0]
mov rcx, rbx
call fcn.140067e20
test eax, eax
jne 0x140063c15
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140063c3c
mov eax, dword [rsp + 0x30]
jmp 0x140063c4e
mov rcx, rbx
call fcn.140050d3c
jmp 0x140063c4e
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x140063c40
xor eax, eax
jmp 0x140063c4e
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x140063c4e
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140063c60
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.1400593e8
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140063d03
cmp edi, dword [rsp + 0x30]
je 0x140063cfc
test ebp, ebp
je 0x140063cfc
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x140063cd8
sub dx, 0x61
cmp dx, 0x19
ja 0x140063ce4
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x140063cc5
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x140063ce8
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x140063d05
mov eax, 1
jmp 0x140063d05
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400664e0
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
xor edi, edi
mov rax, r15
lea rcx, [0x14008fe40]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x140066536
cmp word [rdx], r9w
jne 0x140066536
or byte [rax + rbp*8 + 0x38], 4
jmp 0x14006653b
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x1400666ba
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x140066685
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x140066583
cmp rcx, r8
jae 0x1400665a3
cmp word [rcx], r9w
jne 0x140066583
add rax, 4
mov edx, r9d
jmp 0x140066586
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x140066558
jmp 0x1400666ba
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006667e
cmp dword [rsp + 0x80], edi
je 0x14006667e
lea r9, [0x14008fe40]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x140066658
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x14006660b
mov word [rbx], bp
jmp 0x1400666b7
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x140066626
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x1400666b7
cmp word [rsp + 0x70], bp
jne 0x140066664
cmp rbx, rsi
je 0x140066603
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14005e760
cmp word [rsp + 0x70], bp
je 0x1400666ba
mov word [rbx], 0xd
jmp 0x1400666b7
mov rcx, r15
lea r9, [0x14008fe40]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400666b4
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400666ba
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
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
Function at 0x140067938
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14004fed8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400679c2
cmp byte [rbp - 0x21], r15b
je 0x1400679bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400679f8
call fcn.14005b630
test eax, eax
jne 0x1400679e4
cmp byte [rbp - 0x21], r15b
je 0x1400679dc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400679f8
cmp byte [rbp - 0x21], r15b
je 0x1400679f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400543d4
test eax, eax
jne 0x140067a98
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14004fed8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140067a37
cmp byte [rbp - 0x21], r15b
je 0x140067a6c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140067a6c
call fcn.14005b630
test eax, eax
jne 0x140067a58
cmp byte [rbp - 0x21], r15b
je 0x140067a51
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140067a6c
cmp byte [rbp - 0x21], r15b
je 0x140067a69
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400543d4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140067a98
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140067a9b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140067aa9
mov rcx, rdi
call fcn.140057580
cmp byte [rbp + 0x3f], r15b
je 0x140067ab8
mov rcx, qword [rbp + 0x27]
call fcn.140057580
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400694a0
Capabilities:
Parse pe header

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rcx]
cmp rax, qword [rdx]
je 0x140007bc5
lea rcx, str.x0__nw__x1__nw
lea rdx, str..._mpint.c
mov r8d, 0x9a
call fcn.1400376dc
mov rax, qword [rdi]
and ebx, 1
neg rbx
mov qword [rsp + 0x28], rbx
test rax, rax
je 0x140007c07
xor eax, eax
mov rcx, qword [rdi + 8]
mov rdx, qword [rsi + 8]
mov rdx, qword [rdx + rax*8]
xor rdx, qword [rcx + rax*8]
mov rcx, qword [rsp + 0x28]
and rcx, rdx
mov rdx, qword [rdi + 8]
xor qword [rdx + rax*8], rcx
mov rdx, qword [rsi + 8]
xor qword [rdx + rax*8], rcx
inc rax
cmp rax, qword [rdi]
jb 0x140007bd7
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x140007de5
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, rcx
mov rax, qword [rcx + 8]
mov rcx, rax
shr rcx, 0x3e
je 0x140007e1b
lea rcx, str.hex.len_____size_t_0____4
lea rdx, str..._mpint.c
mov r8d, 0xfa
call fcn.1400376dc
mov rax, qword [r14 + 8]
lea rax, [rax*4 + 0x3f]
shr rax, 6
mov ecx, 1
cmovne rcx, rax
call fcn.1400079c4
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x140007ec3
mov r8, 0xffffffffffffffff
xor r9d, r9d
xor r10d, r10d
add rcx, qword [r14]
movsx ecx, byte [r8 + rcx]
movsxd rcx, ecx
lea rbx, [rcx - 0x61]
mov edx, 0x66
sub rdx, rcx
or rdx, rbx
sar rdx, 0x3f
lea rsi, [rcx - 0x41]
mov ebx, 0x46
sub rbx, rcx
or rbx, rsi
sar rbx, 0x3f
lea esi, [rcx - 0x30]
lea edi, [rcx - 0x57]
xor esi, edi
and edx, esi
add ecx, 0xffffffc9
xor edi, ecx
xor edi, edx
and ebx, edi
xor ebx, ecx
and ebx, 0xf
mov rdx, r10
shr rdx, 4
mov ecx, r9d
and cl, 0x3c
shl rbx, cl
mov rcx, qword [rax + 8]
or qword [rcx + rdx*8], rbx
inc r10
mov rcx, qword [r14 + 8]
dec r8
add r9, 4
cmp r10, rcx
jb 0x140007e4f
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14000841f
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbp
push rbx
mov r9, rcx
test r8, r8
je 0x140008450
lea rax, [r8 - 1]
movzx ecx, byte [r9 + rax]
xor rcx, 0x30
dec rcx
sar rcx, 0x3f
xor r8, rax
and r8, rcx
xor r8, rax
add rax, 0xffffffffffffffff
jb 0x14000842f
jmp 0x140008453
xor r8d, r8d
test rdx, rdx
je 0x1400084b0
xor ecx, ecx
mov r10, r8
shr r10, cl
mov edi, 1
shl rdi, cl
cmp rdi, rdx
jae 0x1400084a2
and r10b, 1
neg r10b
mov r11, rdx
sub r11, rdi
add rdi, r9
xor esi, esi
mov bl, byte [r9 + rsi]
mov bpl, byte [rdi + rsi]
mov eax, ebp
xor al, bl
and al, r10b
xor bl, al
mov byte [r9 + rsi], bl
xor al, bpl
mov byte [rdi + rsi], al
inc rsi
cmp r11, rsi
jne 0x14000847f
inc rcx
mov rax, rdx
shr rax, cl
test rax, rax
jne 0x14000845a
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x14000d648
Capabilities:
Encode data using xor

Disassembly:
mov rcx, qword [rcx + 8]
jmp fcn.140007fdf

Function at 0x140013076
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov qword [rsp + 0x58], r9
mov edi, edx
mov ebx, ecx
mov r12, qword [rsp + 0x140]
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xa0], rax
imul eax, r8d, 0x3e8
imul r14, rax, 0x10624dd3
shr r14, 0x26
mov esi, 1
mov r13, qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, 1
mov r15d, ebp
mov ebp, esi
call r13
mov esi, eax
mov rax, qword [rsp + 0x120]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x90], xmm0
mov rax, qword [rsp + 0x128]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x130]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x70], xmm0
mov rax, qword [rsp + 0x138]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x48], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x20], eax
mov ecx, ebx
mov edx, edi
mov r8d, ebp
mov r9d, dword [rsp + 0x110]
call fcn.1400123af
call r13
sub eax, esi
mov esi, r15d
add esi, ebp
setb cl
cmp eax, r14d
jae 0x140013196
test cl, cl
jne 0x140013196
mov rcx, r12
xor edx, edx
call fcn.140024904
jmp 0x1400130cf
mov rax, qword [rsp + 0x58]
mov dword [rax], ebp
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14002b230
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14001323a
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0xc28
mov rsi, rcx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xc20], rax
xor eax, eax
mov rcx, qword [r8 + rax*8]
xor rcx, qword [rdx + rax*8]
mov qword [rsp + rax*8 + 0x820], rcx
inc rax
cmp rax, 0x80
jne 0x14001325a
xor edi, edi
lea r8, [rsp + rdi]
add r8, 0x820
lea rcx, [rsp + rdi]
add rcx, 0x420
mov edx, 2
mov r9d, 2
call fcn.140013348
sub rdi, 0xffffffffffffff80
cmp rdi, 0x400
jne 0x140013277
xor edi, edi
lea r8, [rsp + rdi]
add r8, 0x420
lea rcx, [rsp + rdi]
add rcx, 0x20
mov edx, 0x10
mov r9d, 0x10
call fcn.140013348
add rdi, 0x10
cmp rdi, 0x80
jne 0x1400132ac
xor eax, eax
mov rcx, qword [rsp + rax*8 + 0x20]
xor rcx, qword [rsp + rax*8 + 0x820]
xor qword [rsi + rax*8], rcx
inc rax
cmp rax, 0x80
jne 0x1400132de
lea rcx, [rsp + 0x820]
mov edx, 0x400
call fcn.140026378
lea rcx, [rsp + 0x420]
mov edx, 0x400
call fcn.140026378
lea rcx, [rsp + 0x20]
mov edx, 0x400
call fcn.140026378
mov rcx, qword [rsp + 0xc20]
xor rcx, rsp
call fcn.14002b230
nop
add rsp, 0xc28
pop rdi
pop rsi
ret
Function at 0x140013dbe
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
movaps xmmword [rsp + 0xe0], xmm6
mov esi, r9d
mov dword [rsp + 0x2c], r8d
mov qword [rsp + 0x30], rdx
mov rdi, rcx
mov ebx, dword [rsp + 0x168]
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xd8], rax
call fcn.14003c0a0
lea rdx, [rsp + 0x40]
mov qword [rdx], rdi
mov qword [rdx + 8], rax
lea rcx, [0x140054060]
lea r8, [rsp + 0x90]
call fcn.140013b1f
lea ecx, [rbx + 0x1f]
lea eax, [rbx + 0x3e]
test ecx, ecx
cmovns eax, ecx
test ebx, ebx
jle 0x140013f08
sar eax, 5
movsxd rbx, eax
mov eax, dword [rsp + 0x168]
mov ebp, eax
cmp ebx, 1
mov eax, 1
cmovg eax, ebx
mov qword [rsp + 0x38], rax
xor r15d, r15d
xorps xmm6, xmm6
lea r12, [rsp + 0x70]
lea rdi, [rsp + 0x90]
lea r14, [r15 + 1]
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
test esi, esi
jle 0x140013ed0
xor r13d, r13d
mov r8, qword [rsp + 0x30]
mov r9d, dword [rsp + 0x2c]
test r13d, r13d
mov ecx, 0
cmove ecx, r14d
mov qword [rsp + 0x20], r12
mov rdx, rdi
call fcn.140013cf7
xor eax, eax
movaps xmm0, xmmword [rsp + rax + 0x50]
xorps xmm0, xmmword [rsp + rax + 0x70]
movaps xmmword [rsp + rax + 0x50], xmm0
add rax, 0x10
cmp rax, 0x20
jne 0x140013ea6
inc r13d
mov r9d, 0x20
mov r8, r12
cmp r13d, esi
jne 0x140013e8b
mov eax, dword [rsp + 0x168]
cmp r15d, eax
mov rdx, qword [rsp + 0x160]
jge 0x140013efa
lea rax, [rsp + 0x50]
mov cl, byte [rax]
mov byte [rdx + r15], cl
add r15, rbx
inc rax
cmp r15, rbp
jl 0x140013ee9
mov r15, r14
cmp r14, qword [rsp + 0x38]
jne 0x140013e6c
lea rcx, [rsp + 0x90]
mov edx, 0x40
call fcn.140026378
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.14002b230
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140014be6
Capabilities:
Encrypt data using blowfish

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdi, [rcx + 0x1000]
lea rsi, [0x140051230]
mov ecx, 0x12
rep movsd dword [rdi], dword [rsi]
lea rdx, [0x140051280]
mov r8d, 0x400
mov rcx, rbx
call fcn.14002c390
lea rcx, [rbx + 0x400]
lea rdx, [0x140051680]
mov r8d, 0x400
call fcn.14002c390
lea rcx, [rbx + 0x800]
lea rdx, [0x140051a80]
mov r8d, 0x400
call fcn.14002c390
add rbx, 0xc00
lea rdx, [0x140051e80]
mov r8d, 0x400
mov rcx, rbx
call fcn.14002c390
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x140016e5c
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov r9, rcx
shr r9, 0x20
mov r10d, dword [rdx + r8*4]
mov eax, r9d
rol eax, 4
xor r10d, r9d
xor eax, dword [rdx + r8*4 + 0x40]
mov r11d, eax
shr r11d, 8
mov r8d, r10d
shr r8d, 8
movd xmm0, r10d
movd xmm1, r8d
punpckldq xmm1, xmm0
movd xmm0, eax
movd xmm2, r11d
punpckldq xmm2, xmm0
punpcklqdq xmm1, xmm2
pand xmm1, xmmword [0x140052920]
por xmm1, xmmword [0x140052930]
pxor xmm0, xmm0
lea rdx, [0x140052720]
movdqa xmm2, xmmword [str._b_b_b_b_b_b_b_b]
lea rsi, [0x140052920]
movdqu xmm3, xmmword [rdx]
pshufd xmm3, xmm3, 0x1b
pand xmm3, xmm1
pxor xmm0, xmm3
paddd xmm1, xmm2
add rdx, 0x10
cmp rdx, rsi
jb 0x140016ecf
pshufd xmm1, xmm0, 0xff
movd edi, xmm1
mov ebx, edi
shl ebx, 4
mov esi, 0x40004
and eax, esi
imul edx, eax, 0x3c00
and edx, ebx
xor edx, edi
pshufd xmm1, xmm0, 0xee
movd eax, xmm1
mov edi, eax
shl edi, 4
and r11d, esi
imul r11d, r11d, 0x3c00
and r11d, edi
xor r11d, eax
pshufd xmm1, xmm0, 0x55
movd edi, xmm1
mov ebx, edi
shl ebx, 4
and r10d, esi
imul eax, r10d, 0x3c00
and eax, ebx
xor eax, edi
movd edi, xmm0
mov ebx, edi
shl ebx, 4
and r8d, esi
imul esi, r8d, 0x3c00
and esi, ebx
xor esi, edi
and esi, 0xf000f000
shr edx, 0xc
and edx, 0xf000f
shr r11d, 4
and r11d, 0xf000f00
shr eax, 8
and eax, 0xf000f0
or eax, r11d
or eax, esi
or edx, eax
shr eax, 4
xor eax, edx
and eax, 0x7030702
xor edx, eax
shl eax, 4
xor eax, edx
mov ebx, eax
shr ebx, 8
xor ebx, edx
and ebx, 0x4e009e
xor eax, ebx
shl ebx, 8
xor ebx, eax
mov eax, ebx
shr eax, 0x10
xor eax, ebx
and eax, 0xd9d3
xor ebx, eax
shl eax, 0x10
xor eax, ebx
mov edx, eax
shr edx, 4
xor edx, eax
and edx, 0x5040004
mov ebx, edx
xor ebx, eax
shl edx, 4
shr eax, 1
xor eax, ebx
and eax, 0x4045015
xor edx, ecx
xor edx, ebx
xor edx, eax
add eax, eax
xor eax, edx
shl rax, 0x20
or rax, r9
pop rbx
pop rdi
pop rsi
ret

Function at 0x14001c33a
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 8], 0
mov r8, qword [rcx + 0x10]
test r8, r8
je 0x14001c3a9
xor ecx, ecx
sub r8, rcx
add rcx, qword [rsi]
mov edx, 1
mov r9, rdi
call fcn.14003959c
mov rbx, rax
mov rcx, rdi
call fcn.140038ff0
test eax, eax
jne 0x14001c397
mov rcx, qword [rsi + 8]
test rbx, rbx
je 0x14001c39e
add rcx, rbx
mov qword [rsi + 8], rcx
mov r8, qword [rsi + 0x10]
cmp r8, rcx
ja 0x14001c35a
jmp 0x14001c3a2
mov eax, 2
jmp 0x14001c3e1
mov r8, qword [rsi + 0x10]
xor eax, eax
cmp rcx, r8
jne 0x14001c3bf
mov rcx, rdi
call fcn.14003901c
mov ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
setne al
mov rcx, qword [rsi + 8]
mov rdx, qword [rsi]
lea rbx, [rsi + 0x18]
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x28], rcx
mov qword [rsi + 0x20], 0
mov dword [rsi + 0x30], 0
mov qword [rsi + 0x38], rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x14001ca3c
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, r8
mov rbx, rdx
mov rcx, qword [rcx]
lea rdx, [0x14005f3b7]
call fcn.140039158
test rax, rax
je 0x14001caa4
mov rsi, rax
mov rcx, rbx
mov rdx, rdi
call fcn.14001c8bf
mov rdi, rax
mov rcx, qword [rax]
mov r8, qword [rax + 0x10]
mov edx, 1
mov r9, rsi
call fcn.140039860
cmp rax, qword [rdi + 0x10]
sete bl
mov rcx, rsi
call fcn.140038f08
test eax, eax
sete sil
and sil, bl
mov rcx, rdi
call fcn.1400249e3
jmp 0x14001caa6
xor esi, esi
mov eax, esi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14001ea18
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, r9
mov rbx, r8
mov rdi, rdx
mov rcx, qword [rcx]
lea rdx, [0x14005f3b7]
call fcn.140039158
test rax, rax
je 0x14001ea88
mov rsi, rax
mov rcx, rdi
mov rdx, rbx
mov r8, r14
call fcn.14001e413
mov rdi, rax
mov rcx, qword [rax]
mov r8, qword [rax + 0x10]
mov edx, 1
mov r9, rsi
call fcn.140039860
cmp rax, qword [rdi + 0x10]
sete bl
mov rcx, rsi
call fcn.140038f08
test eax, eax
sete sil
and sil, bl
mov rcx, rdi
call fcn.1400249e3
jmp 0x14001ea8a
xor esi, esi
mov eax, esi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret