joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fb0f0
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x50]
mov rbx, rcx
test rdi, rdi
je 0x1400fb119
mov rcx, rdi
call qword [fcn.1400059b0]
call rdi
mov qword [rbx + 0x50], 0
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x1400fb130
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx + 0x48], 0
cmp qword [rbx + 0x38], 0
je 0x1400fb14b
cmp qword [rbx + 0x40], 8
lea rcx, [rbx + 0x28]
jb 0x1400fb145
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [rbx], 0
je 0x1400fb168
cmp dword [0x14028b8f8], 0
jle 0x1400fb165
call qword [sym.imp.ole32.dll_CoUninitialize]
dec dword [0x14028b8f8]
mov byte [rbx], 0
cmp byte [rbx + 1], 0
je 0x1400fb1b5
mov rdi, qword [0x14028b8e0]
test rdi, rdi
jne 0x1400fb19e
lea ecx, [rdi + 0x50]
call fcn.1401649b4
mov edx, 0x102
mov qword [rsp + 0x30], rax
mov rcx, rax
mov rdi, rax
call fcn.140166158
mov qword [0x14028b8e0], rdi
mov rcx, rdi
call fcn.1401661ac
test eax, eax
je 0x1400fb1b1
mov ecx, eax
call fcn.140165cf4
mov byte [rbx + 1], 0
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140121450
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, r8
mov r14, rdx
mov r8, qword [r8 + 0x10]
mov r15, rcx
cmp qword [rdi + 0x18], 8
jb 0x14012147d
mov rdx, qword [rdi]
jmp 0x140121480
mov rdx, rdi
xor ecx, ecx
movabs rbx, 0xcbf29ce484222325
mov qword [rsp + 0x80], rbx
add r8, r8
je 0x1401214cb
movabs r9, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
xor rbx, rax
imul rbx, r9
cmp rcx, r8
jb 0x1401214b0
mov qword [rsp + 0x80], rbx
xor edx, edx
mov dword [rsp + 0x70], 0
mov rax, rbx
mov r13d, 1
div qword [r15 + 0x228]
mov r12, rdx
mov rbp, rdx
or r12, 1
bsr rax, r12
movzx ecx, al
mov rdx, qword [r15 + rcx*8 + 8]
test rdx, rdx
je 0x14012151c
mov r8d, r13d
mov rax, rbp
shl r8, cl
and r8, 0xfffffffffffffffe
sub rax, r8
cmp qword [rdx + rax*8], 0
setne al
test al, al
jne 0x140121527
mov rdx, rbp
mov rcx, r15
call fcn.140121930
lea rcx, [0x140208e70]
movzx eax, bl
mov dword [rsp + 0x70], 0
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x27], al
movzx eax, byte [rsp + 0x81]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x26], al
movzx eax, byte [rsp + 0x82]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x25], al
movzx eax, byte [rsp + 0x83]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x24], al
movzx eax, byte [rsp + 0x84]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x23], al
movzx eax, byte [rsp + 0x85]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x22], al
movzx eax, byte [rsp + 0x86]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x87]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x20], al
mov rsi, qword [rsp + 0x20]
or rsi, r13
bsr rax, r12
movzx ecx, al
shl r13, cl
and r13, 0xfffffffffffffffe
sub rbp, r13
mov rbx, qword [r15 + rcx*8 + 8]
mov rbx, qword [rbx + rbp*8]
test rbx, rbx
je 0x140121624
nop dword [rax + rax]
mov rax, qword [rbx + 0x40]
cmp rax, rsi
ja 0x140121624
jne 0x14012161c
cmp qword [rdi + 0x18], 8
lea rcx, [rbx + 8]
jb 0x1401215fb
mov r8, qword [rdi]
jmp 0x1401215fe
mov r8, rdi
cmp qword [rcx + 0x18], 8
lea rdx, [rcx + 0x10]
jb 0x14012160c
mov rcx, qword [rcx]
mov r9, qword [rdi + 0x10]
mov rdx, qword [rdx]
call fcn.1400c4840
test eax, eax
je 0x140121643
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1401215e0
mov qword [r14], 0
mov rax, r14
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [r14], rbx
jmp 0x14012162b
Function at 0x1401261e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, r8
mov r14, rdx
mov r8, qword [r8 + 0x10]
mov r15, rcx
cmp qword [rdi + 0x18], 8
jb 0x14012620d
mov rdx, qword [rdi]
jmp 0x140126210
mov rdx, rdi
xor ecx, ecx
movabs rbx, 0xcbf29ce484222325
mov qword [rsp + 0x80], rbx
add r8, r8
je 0x14012625b
movabs r9, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
xor rbx, rax
imul rbx, r9
cmp rcx, r8
jb 0x140126240
mov qword [rsp + 0x80], rbx
xor edx, edx
mov dword [rsp + 0x70], 0
mov rax, rbx
mov r13d, 1
div qword [r15 + 0x228]
mov r12, rdx
mov rbp, rdx
or r12, 1
bsr rax, r12
movzx ecx, al
mov rdx, qword [r15 + rcx*8 + 8]
test rdx, rdx
je 0x1401262ac
mov r8d, r13d
mov rax, rbp
shl r8, cl
and r8, 0xfffffffffffffffe
sub rax, r8
cmp qword [rdx + rax*8], 0
setne al
test al, al
jne 0x1401262b7
mov rdx, rbp
mov rcx, r15
call fcn.140126530
lea rcx, [0x140208e70]
movzx eax, bl
mov dword [rsp + 0x70], 0
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x27], al
movzx eax, byte [rsp + 0x81]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x26], al
movzx eax, byte [rsp + 0x82]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x25], al
movzx eax, byte [rsp + 0x83]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x24], al
movzx eax, byte [rsp + 0x84]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x23], al
movzx eax, byte [rsp + 0x85]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x22], al
movzx eax, byte [rsp + 0x86]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x87]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x20], al
mov rsi, qword [rsp + 0x20]
or rsi, r13
bsr rax, r12
movzx ecx, al
shl r13, cl
and r13, 0xfffffffffffffffe
sub rbp, r13
mov rbx, qword [r15 + rcx*8 + 8]
mov rbx, qword [rbx + rbp*8]
test rbx, rbx
je 0x1401263b4
nop dword [rax + rax]
mov rax, qword [rbx + 0x38]
cmp rax, rsi
ja 0x1401263b4
jne 0x1401263ac
cmp qword [rdi + 0x18], 8
lea rcx, [rbx + 8]
jb 0x14012638b
mov r8, qword [rdi]
jmp 0x14012638e
mov r8, rdi
cmp qword [rcx + 0x18], 8
lea rdx, [rcx + 0x10]
jb 0x14012639c
mov rcx, qword [rcx]
mov r9, qword [rdi + 0x10]
mov rdx, qword [rdx]
call fcn.1400c4840
test eax, eax
je 0x1401263d3
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140126370
mov qword [r14], 0
mov rax, r14
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [r14], rbx
jmp 0x1401263bb
Function at 0x1401266f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp qword [r8 + 0x20], 8
lea r9, [r8 + 8]
mov rsi, rdx
mov rdi, rcx
mov rdx, qword [r9 + 0x10]
jb 0x14012671d
mov r9, qword [r9]
xor ecx, ecx
movabs rbx, 0xcbf29ce484222325
mov qword [rsp + 0x88], rbx
add rdx, rdx
je 0x14012675c
movabs r10, 0x100000001b3
movzx eax, byte [r9 + rcx]
inc rcx
xor rbx, rax
imul rbx, r10
cmp rcx, rdx
jb 0x140126740
mov qword [rsp + 0x88], rbx
xor edx, edx
mov dword [rsp + 0x70], 0
mov rax, rbx
mov r15d, 1
div qword [rdi + 0x228]
mov r14, rdx
mov rbp, rdx
or r14, 1
bsr rax, r14
movzx ecx, al
mov dword [rsp + 0x70], eax
mov r9, qword [rdi + rcx*8 + 8]
test r9, r9
je 0x1401267b1
mov edx, r15d
mov rax, rbp
shl rdx, cl
and rdx, 0xfffffffffffffffe
sub rax, rdx
cmp qword [r9 + rax*8], 0
setne al
test al, al
jne 0x1401267c4
mov rdx, rbp
mov rcx, rdi
call fcn.140126530
mov r8, qword [rsp + 0x80]
lea rcx, [0x140208e70]
movzx eax, bl
mov qword [rsp + 0x20], rbx
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x2f], al
movzx eax, byte [rsp + 0x89]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x2e], al
movzx eax, byte [rsp + 0x8a]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x2d], al
movzx eax, byte [rsp + 0x8b]
mov dword [rsp + 0x88], 0
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x2c], al
movzx eax, byte [rsp + 0x8c]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x2b], al
movzx eax, byte [rsp + 0x8d]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x2a], al
movzx eax, byte [rsp + 0x8e]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x29], al
movzx eax, byte [rsp + 0x8f]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x28], al
bsr rax, r14
movzx ecx, al
shl r15, cl
and r15, 0xfffffffffffffffe
mov dword [rsp + 0x88], eax
sub rbp, r15
mov rcx, qword [rdi + rcx*8 + 8]
mov rcx, qword [rcx + rbp*8]
mov rax, qword [rcx]
test rax, rax
je 0x140126890
nop
cmp rax, r8
je 0x1401268ab
mov rcx, rax
mov rax, qword [rax]
test rax, rax
jne 0x140126880
mov qword [rsi], 0
mov rax, rsi
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [r8]
mov rdx, r8
mov qword [rcx], rbx
call fcn.1401263e0
dec dword [rdi + 0x218]
test rbx, rbx
je 0x1401268d6
movzx eax, byte [rbx + 0x38]
not al
test al, 1
je 0x1401268d6
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1401268c4
mov qword [rsi], rbx
jmp 0x140126897
Function at 0x1401301e0
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x2a0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14027e238]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rsi, rdx
mov rbp, rcx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14013032b
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x54]
call fcn.1401a7d70
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14013031e
xor r14d, r14d
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
cmp word [rsp + 0x7c], 0
jne 0x140130283
mov r8, r14
jmp 0x14013029b
lea rax, [rsp + 0x7c]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140130290
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x30]
call fcn.1400be520
nop
lea rbx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rbx, qword [rsp + 0x30]
mov rcx, rbp
call fcn.1400be280
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x1401302eb
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140130be0
nop
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x140130308
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.1400be810
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140130262
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14013032e
or eax, 0xffffffff
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1401646e0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140136e00
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
push r14
mov eax, 0x10e8
call fcn.140165470
sub rsp, rax
mov rax, qword [0x14027e238]
xor rax, rsp
mov qword [rsp + 0x10c0], rax
mov eax, dword [rdx + 0x10]
mov ebp, r8d
mov r14, rdx
mov rdi, rcx
lea r9d, [rax*2 + 2]
mov rax, qword [rcx]
mov dword [rax], r9d
cmp qword [rdx + 0x18], 8
jb 0x140136e49
mov r14, qword [rdx]
mov rax, qword [rcx]
mov ebx, dword [rax]
test ebx, ebx
je 0x140136fc0
mov qword [rsp + 0x1120], rsi
mov qword [rsp + 0x10e0], r12
mov qword [rsp + 0x10d8], r13
xor r13d, r13d
mov qword [rsp + 0x10d0], r15
nop dword [rax]
cmp ebx, 0x1000
jbe 0x140136e94
mov esi, 0x1000
mov byte [rsp + 0x30], 0x20
jmp 0x140136eb5
mov eax, ebp
mov esi, ebx
sub eax, 1
je 0x140136eb0
cmp eax, 1
je 0x140136ea9
mov byte [rsp + 0x30], 0x23
jmp 0x140136eb5
mov byte [rsp + 0x30], 0x24
jmp 0x140136eb5
mov byte [rsp + 0x30], 0x40
mov r8d, esi
lea rcx, [rsp + 0x31]
mov rdx, r14
mov r12d, esi
call fcn.1401a60f0
mov rcx, qword [rdi + 0x10]
lea r15d, [rsi + 1]
mov r9, qword [rdi + 0x18]
lea rdx, [rsp + 0x30]
mov r8d, r15d
mov qword [rsp + 0x20], r13
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 8]
mov dword [rcx], eax
mov rax, qword [rdi + 8]
cmp dword [rax], r13d
je 0x140136f1f
mov rax, qword [rdi + 0x18]
cmp r15d, dword [rax]
jne 0x140136f1f
mov rcx, qword [rdi + 0x10]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
add r14, r12
sub ebx, esi
jne 0x140136e80
jmp 0x140136fa0
test ebp, ebp
je 0x140136fa0
xor edx, edx
lea rcx, [rsp + 0x1040]
mov r8d, 0x80
call fcn.1401a7d70
mov rax, qword [rdi + 8]
cmp dword [rax], r13d
jne 0x140136f7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x7f
lea rcx, [rsp + 0x1040]
cmp eax, 0xe8
jne 0x140136f69
lea r8, str.Finished_writing:_the_pipe_has_been_closed
call fcn.140136630
jmp 0x140136fa0
mov r9d, eax
lea r8, str.Error_writing_to_the_pipe___d_
call fcn.140136630
jmp 0x140136fa0
mov rax, qword [rdi + 0x18]
lea r8, str.Warning._Writing_to_the_pipe__d_bytes___wrote__d_bytes
mov r9d, r15d
mov edx, 0x7f
mov ecx, dword [rax]
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x1040]
call fcn.140136630
mov r13, qword [rsp + 0x10d8]
mov r12, qword [rsp + 0x10e0]
mov rsi, qword [rsp + 0x1120]
mov r15, qword [rsp + 0x10d0]
mov rcx, qword [rsp + 0x10c0]
xor rcx, rsp
call fcn.1401646e0
add rsp, 0x10e8
pop r14
pop rdi
pop rbp
pop rbx
ret
mov r8d, dword [r8]
add rcx, 8
jmp 0x140136e00
Function at 0x140137ef0
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x14027e238]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rbp + 0x2f], 7
xor esi, esi
mov qword [rbp + 0x27], rsi
mov word [rbp + 0x17], si
lea r8d, [rsi + 1]
lea rdx, [0x140227df4]
lea rcx, [rbp + 0x17]
call fcn.1400be520
nop
lea r8, [rbp + 0x17]
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.14013edc0
nop
mov r8, qword [rbp + 0x2f]
cmp r8, 8
jb 0x140137f76
inc r8
mov rdx, qword [rbp + 0x17]
lea rcx, [rbp + 0x17]
call fcn.1400be810
mov qword [rbp + 0x2f], 7
mov qword [rbp + 0x27], rsi
mov word [rbp + 0x17], si
lea rdx, [rdi + 8]
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rsi
mov word [rbp - 9], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 9]
call fcn.1400be8c0
nop
mov ebx, esi
mov r9, qword [rbp - 0x21]
mov rdx, r9
mov r8, qword [rbp - 0x29]
sub rdx, r8
sar rdx, 5
lea rax, [rdx - 1]
test rax, rax
je 0x14013806c
mov rcx, rsi
nop
cmp rdx, rcx
jbe 0x140138066
shl rcx, 5
lea rdx, [r8 + rcx]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 9]
call fcn.1400c4cb0
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x14013802b
lea rax, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rax, qword [rbp - 9]
movzx ecx, word [rax + rcx*2 - 2]
cmp cx, 0x5c
je 0x14013802b
cmp cx, 0x2f
je 0x14013802b
mov edx, 1
lea r8d, [rdx + 0x5b]
lea rcx, [rbp - 9]
call fcn.1400be670
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rcx, qword [rbp - 9]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
inc ebx
mov r9, qword [rbp - 0x21]
mov rdx, r9
mov r8, qword [rbp - 0x29]
sub rdx, r8
sar rdx, 5
mov ecx, ebx
lea rax, [rdx - 1]
cmp rcx, rax
jb 0x140137fd0
jmp 0x14013806c
call fcn.1400c4750
nop
mov rax, qword [rbp + 0xf]
cmp rax, 8
jb 0x14013808f
lea r8, [rax + 1]
mov rdx, qword [rbp - 9]
lea rcx, [rbp - 9]
call fcn.1400be810
mov r9, qword [rbp - 0x21]
mov r8, qword [rbp - 0x29]
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rsi
mov word [rbp - 9], si
test r8, r8
je 0x1401380c3
mov rdx, r9
mov rcx, r8
call fcn.1400c5a10
mov r8, qword [rbp - 0x19]
mov rdx, qword [rbp - 0x29]
sub r8, rdx
sar r8, 5
call fcn.1400c4960
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1401646e0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x140138330
Capabilities:
Create directory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14027e238]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, r8
mov rdi, rdx
mov qword [rsp + 0x28], rbx
lea rdx, [rcx + 8]
lea rcx, [rsp + 0x50]
call fcn.1400c5640
nop
lea r8, [0x140227df4]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400c5940
mov rdx, rax
mov rcx, rdi
call fcn.1400c44d0
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x1401383a9
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.1400be810
mov qword [rsp + 0x48], 7
xor esi, esi
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x1401383db
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.1400be810
cmp qword [rdi + 0x18], 8
jb 0x1401383e5
mov rdi, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x140138409
inc r8
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.1400be810
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x14013841f
mov rbx, qword [rbx]
mov word [rbx], si
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401646e0
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x140139e70
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [rdx]
mov r12d, 0xffffffe5
mov qword [rdx + 8], rax
mov rbx, rdx
cmp qword [rcx + 0x18], 8
mov edi, r12d
jb 0x140139e9a
mov rcx, qword [rcx]
xor r15d, r15d
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov edx, 0x80000000
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
lea r8d, [r15 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140139f88
xor edx, edx
mov qword [rsp + 0x80], rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
je 0x140139f71
lea ecx, [rax + 1]
mov qword [rsp + 0x78], rbp
call fcn.1401aa2b0
mov rbp, rax
test rax, rax
je 0x140139f6c
lea r9, [rsp + 0x70]
mov dword [rsp + 0x70], r15d
mov r8d, esi
mov qword [rsp + 0x20], r15
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140139f64
mov ecx, dword [rsp + 0x70]
cmp ecx, esi
jne 0x140139f64
mov rax, qword [rbx + 0x10]
mov edx, ecx
sub rax, qword [rbx]
cmp rax, rcx
jae 0x140139f45
mov rcx, rbx
call fcn.14013a300
mov ecx, dword [rsp + 0x70]
mov edx, ecx
mov rcx, rbx
call fcn.14013a240
mov edx, dword [rsp + 0x70]
mov r8, rbp
mov rcx, qword [rbx]
mov r9d, edx
call fcn.140139130
mov edi, r15d
mov rcx, rbp
call fcn.1401aa290
mov rbp, qword [rsp + 0x78]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x80]
test eax, eax
cmove edi, r12d
mov eax, edi
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret

Function at 0x140139fa0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rbp, rcx
xor edx, edx
xor ecx, ecx
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
movsxd rsi, eax
test eax, eax
je 0x14013a049
mov eax, 2
mov qword [rsp + 0x30], rdi
mul rsi
lea rdx, [0x1402015a8]
cmovo rax, rbx
mov rcx, rax
call fcn.14016514c
mov rdi, rax
test rax, rax
je 0x14013a032
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14013a02a
cmp word [rdi], 0
jne 0x14013a010
xor ebx, ebx
jmp 0x14013a01a
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14013a010
mov r8, rbx
mov rdx, rdi
mov rcx, rbp
call fcn.1400be520
xor ebx, ebx
mov rcx, rdi
call fcn.140164c98
mov eax, ebx
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov rbp, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x14013a880
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov rbx, rcx
xor edi, edi
lea rdx, [rsp + 0x40]
mov rcx, rbp
mov dword [rsp + 0x40], edi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x14013a93c
mov ecx, esi
call fcn.1401aa2b0
mov qword [rbx + 0x40], rax
test rax, rax
je 0x14013a93c
mov r9, rax
mov r8d, esi
xor edx, edx
mov rcx, rbp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14013a93c
mov rcx, qword [rbx + 0x40]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x58]
mov dword [rsp + 0x50], edi
lea rdx, [0x140227df4]
mov qword [rsp + 0x58], rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14013a93c
mov rax, qword [rsp + 0x58]
movups xmm0, xmmword [rax]
movups xmmword [rbx + 8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x18], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rbx + 0x28], xmm0
mov eax, dword [rax + 0x30]
mov dword [rbx + 0x38], eax
cmp dword [rbx + 8], 0xfeef04bd
sete dil
mov dword [rbx + 0x58], edi
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rbx + 0x58]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x14013bb20
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0xe0
mov rdi, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.1401a7d70
xor eax, eax
mov dword [rsp + 0x70], 0x68
xor ebx, ebx
mov qword [rsp + 0x50], rax
lea rcx, str.kernel32
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x100], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.Wow64DisableWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x14013bbad
mov rcx, rax
call qword [fcn.1400059b0]
lea rcx, [rsp + 0x100]
call rbp
cmp qword [rdi + 0x18], 8
jb 0x14013bbb7
mov rdi, qword [rdi]
cmp qword [rsi + 0x18], 8
jb 0x14013bbc1
mov rsi, qword [rsi]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
mov rdx, rdi
mov qword [rsp + 0x40], rax
mov rcx, rsi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14013bc1d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14013bc25
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp qword [rsp + 0x100], 0
je 0x14013bc68
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.Wow64RevertWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14013bc68
mov rcx, rax
call qword [fcn.1400059b0]
mov rcx, qword [rsp + 0x100]
call rdi
test ebx, ebx
je 0x14013bc8e
cmp ebx, 2
jb 0x14013bc87
cmp ebx, 3
jbe 0x14013bc80
cmp ebx, 5
jne 0x14013bc87
lea eax, [rbx - 0x1b]
jmp 0x14013bc90
mov eax, 0xffffffe4
jmp 0x14013bc90
mov eax, 0xffffffe5
jmp 0x14013bc90
xor eax, eax
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret