joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6073b0
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov byte [rbp + 0x3f], 1
mov rax, qword [rbp + 0x50]
cmp byte [rax + 0x9d], 0
jne 0x6074db
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0xd0]
xor rdx, rdx
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x6074db
mov rcx, qword [rbp + 0x50]
call fcn.006075c0
mov rax, qword [rbp + 0x50]
cmp qword [rax + 0x90], 0
je 0x6074db
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x70]
mov rax, qword [rbp + 0x50]
mov rax, qword [rax + 0x90]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x50]
mov rax, qword [rax + 0x90]
mov r8d, dword [rax + 8]
mov rax, qword [rbp + 0x50]
lea r9, [rax + 0x88]
mov rax, qword [rbp + 0x50]
lea rax, [rax + 0xf8]
mov qword [rsp + 0x20], rax
call sub.kernel32.dll_WriteFile_1
test eax, eax
setne al
mov byte [rbp + 0x3e], al
call sub.kernel32.dll_GetLastError_2
mov rcx, qword [rbp + 0x50]
mov dword [rcx + 0x78], eax
cmp byte [rbp + 0x3e], 0
je 0x6074bd
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x68]
mov edx, 0x468
mov rax, qword [rbp + 0x50]
mov r8, qword [rax + 0x70]
mov rax, qword [rbp + 0x50]
mov r9d, dword [rax + 0x88]
call sub.user32.dll_PostMessageW
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x90]
call fcn.006089c0
mov rax, qword [rbp + 0x50]
mov qword [rax + 0x90], 0
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x110]
call sub.kernel32.dll_ResetEvent
jmp 0x6074db
mov rax, qword [rbp + 0x50]
cmp dword [rax + 0x78], 0x3e5
jne 0x6074d7
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x9d], 1
jmp 0x6074db
mov byte [rbp + 0x3f], 0
movzx rax, byte [rbp + 0x3f]
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x607ab0
Capabilities:
Create pipe

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x60], rcx
mov byte [rbp + 0x68], dl
mov dword [rbp + 0x48], 0x40000003
cmp byte [rbp + 0x68], 0
jne 0x607ae4
mov rax, qword [rbp + 0x60]
mov rax, qword [rax + 0xc0]
cmp byte [rax + 0x38], 0
je 0x607ae4
or dword [rbp + 0x48], 0x80000
mov rax, qword [rbp + 0x60]
lea rcx, [rax + 0xe0]
lea rdx, [0x00607bac]
mov rax, qword [rbp + 0x60]
mov r8, qword [rax + 0x80]
call fcn.00411650
mov rax, qword [rbp + 0x60]
mov rcx, qword [rax + 0xe0]
call fcn.004111f0
mov rcx, rax
mov edx, dword [rbp + 0x48]
mov r8d, 6
mov r9d, 0xff
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0x3e8
mov rax, qword [rbp + 0x60]
lea rax, [rax + 0xc8]
mov qword [rsp + 0x38], rax
call sub.kernel32.dll_CreateNamedPipeW
mov rcx, qword [rbp + 0x60]
mov qword [rcx + 0x78], rax
mov rax, qword [rbp + 0x60]
cmp qword [rax + 0x78], 0xffffffffffffffff
jne 0x607b78
call sub.kernel32.dll_GetLastError_2
mov rcx, qword [rbp + 0x60]
mov dword [rcx + 0x70], eax
jmp 0x607b83
mov rax, qword [rbp + 0x60]
mov dword [rax + 0x70], 0
mov rax, qword [rbp + 0x60]
cmp qword [rax + 0x78], 0xffffffffffffffff
setne al
mov byte [rbp + 0x4f], al
movzx rax, byte [rbp + 0x4f]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x1400012b0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x190
mov rax, qword [0x14005c4e0]
xor rax, rsp
mov qword [rsp + 0x188], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32First
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x140001397
nop dword [rax]
xor eax, eax
lea rcx, [rsp + 0x4c]
mov qword [rsp + 0x150], rax
mov qword [rsp + 0x158], rax
mov qword [rsp + 0x160], rax
lea edx, [rax + 0x30]
mov qword [rsp + 0x168], rax
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x178], rax
mov word [rsp + 0x180], ax
call fcn.140026b18
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x150]
lea r8, [rax - 4]
call fcn.1400262a0
lea rdx, [rsp + 0x150]
mov rcx, rdi
call fcn.1400045e0
mov rcx, rbx
test rax, rax
jne 0x1400013c3
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140001310
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.140003480
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x190
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400013a2

Function at 0x1400013d0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x190
mov rax, qword [0x14005c4e0]
xor rax, rsp
mov qword [rsp + 0x188], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32First
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1400014cc
nop dword [rax]
xor eax, eax
lea rcx, [rsp + 0x4c]
mov qword [rsp + 0x150], rax
mov qword [rsp + 0x158], rax
mov qword [rsp + 0x160], rax
lea edx, [rax + 0x30]
mov qword [rsp + 0x168], rax
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x178], rax
mov word [rsp + 0x180], ax
call fcn.140026b18
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x150]
lea r8, [rax - 4]
call fcn.1400262a0
lea r8, [rsp + 0x150]
mov rax, rdi
sub r8, rdi
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400014b3
inc rax
test ecx, ecx
jne 0x1400014a0
mov rcx, rbx
test edx, edx
je 0x1400014f8
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140001430
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.140003480
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x190
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400014d7
Function at 0x140001510
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x1b0
mov rax, qword [0x14005c4e0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rbp, rdx
mov rsi, rcx
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rdi, rax
call sub.KERNEL32.dll_Process32First
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1400015eb
lea r8, [rsp + 0x4c]
mov rax, rsi
sub r8, rsi
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001593
inc rax
test ecx, ecx
jne 0x140001580
test edx, edx
jne 0x1400015da
mov r8d, dword [rsp + 0x28]
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r8d, 0x48
lea rdx, [rsp + 0x150]
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_K32GetProcessMemoryInfo
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x160]
shr rax, 0x14
cmp rax, rbp
ja 0x14000161f
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140001572
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140003480
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov eax, 1
jmp 0x1400015f6

Function at 0x140001810
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x14005c4e0]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rdi, rax
call sub.KERNEL32.dll_Process32First
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1400018d7
mov qword [rsp + 0x170], rbx
nop dword [rax]
lea rax, [rsp + 0x4c]
mov r8, rsi
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001893
inc rax
test ecx, ecx
jne 0x140001880
test edx, edx
jne 0x1400018be
mov r8d, dword [rsp + 0x28]
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140001870
mov rbx, qword [rsp + 0x170]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140003480
mov rsi, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
Function at 0x140003e64
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140003ef5
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140003ef5
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003ef5
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140003ed9
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140003ed3
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140003edb
add rdx, 0x28
jmp 0x140003eb8
xor edx, edx
test rdx, rdx
jne 0x140003ee4
xor al, al
jmp 0x140003efb
test dword [rdx + 0x24], 0x80000000
je 0x140003ef1
xor al, al
jmp 0x140003efb
mov al, 1
jmp 0x140003efb
xor al, al
jmp 0x140003efb
add rsp, 0x18
ret

Function at 0x140027268
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140026fa0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140026fa0
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140026fa0
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140026fa0
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140026fa0
cmp dword [rcx + 0x84], 0xe
jbe 0x140026fa0
cmp dword [rcx + 0xf8], esi
je 0x140026fa0
mov ecx, r14d
call fcn.140027170
mov ecx, 2
call fcn.140036584
nop
cmp byte [0x14005f718], 0
jne 0x14002706a
mov r15d, 1
mov eax, r15d
xchg dword [0x14005f70c], eax
test ebx, ebx
jne 0x140027013
mov rdi, qword [0x14005c4e0]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14005f710]
cmp rcx, rax
je 0x14002700a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [0x14004b400]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400600a8]
jmp 0x14002701f
cmp ebx, r15d
jne 0x140027025
lea rcx, [0x1400600c0]
call fcn.14002b43c
nop
test ebx, ebx
jne 0x14002703c
lea rdx, [0x14004b480]
lea rcx, [0x14004b460]
call fcn.140028fc8
lea rdx, [0x14004b490]
lea rcx, [0x14004b488]
call fcn.140028fc8
movzx eax, byte [0x14005f718]
test esi, esi
cmove eax, r15d
mov byte [0x14005f718], al
jmp 0x14002706a
mov ecx, 2
call fcn.1400365d8
test esi, esi
jne 0x140027081
mov ecx, r14d
call fcn.14002709c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140026f30
Function at 0x140031fec
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140031c14
call fcn.14002de28
mov dword [rax], 0x16
call fcn.14002dc7c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140031bfc
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140031bfc
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x140031c46
lock or dword [rax + 0x14], 0x10
jmp 0x140031bfc
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140031c63
mov rcx, qword [rbp + 0x10]
call fcn.1400407b4
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1400302d0
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14003164c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140031cba
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140031bfc
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140031d26
mov rcx, qword [rbp + 0x10]
call fcn.1400302d0
cmp eax, 0xffffffff
je 0x140031d0d
mov rcx, qword [rbp + 0x10]
call fcn.1400302d0
cmp eax, 0xfffffffe
je 0x140031d0d
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1400302d0
movsxd rdi, eax
lea rsi, [0x140060290]
mov rcx, rbx
sar rdi, 6
call fcn.1400302d0
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x140031d14
lea rax, [0x14005c6a0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140031d26
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140031d5c
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140031d58
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140031d58
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x140031bff
jmp 0x140031bcc
Function at 0x140036ea4
Capabilities:
Create thread
Print debug messages

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, 0x50
mov esi, r8d
mov r14, rdx
mov rbx, rcx
call fcn.14002f984
mov bpl, al
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor edi, edi
test eax, eax
je 0x140036ef7
test rbx, rbx
je 0x140036ee8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bpl, bpl
je 0x140036ef7
mov edi, 4
jmp 0x140036fa0
call fcn.14002f72c
test al, al
jne 0x140036f14
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb edi, edi
neg edi
add edi, 3
jmp 0x140036fa0
test bpl, bpl
je 0x140036f77
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
lea r8, [0x140036cc8]
mov dword [rsp + 0x20], edi
xor edx, edx
mov qword [rsp + 0x30], r14
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140036fa0
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, rbx
test eax, eax
je 0x140036f71
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140036fa0
mov edi, dword [rsp + 0x44]
jmp 0x140036f69
call fcn.14002f8b0
test al, al
jne 0x140036f88
bts esi, 0x15
xor ecx, ecx
jmp 0x140036f90
call fcn.14002f7e8
mov rcx, rax
mov r9d, esi
mov r8, r14
mov rdx, rbx
call fcn.14002f564
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x180001570
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
or r8, 0xffffffffffffffff
mov rbx, rdx
mov rdi, r8
nop dword [rax]
inc rdi
cmp word [rdx + rdi*2], 0
jne 0x180001590
lea eax, [rdi + 1]
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.180007568
mov rsi, rax
sub rax, rbx
nop word [rax + rax]
movzx ecx, word [rbx]
lea rbx, [rbx + 2]
mov word [rax + rbx - 2], cx
test cx, cx
jne 0x1800015c0
xor r14d, r14d
movsxd rdi, edi
mov bpl, 1
mov ebx, r14d
test rdi, rdi
js 0x18000162f
mov qword [rsp + 0x40], r15
mov r15d, 0x5c
nop dword [rax]
cmp word [rsi + rbx*2], r15w
jne 0x18000161d
mov rcx, rsi
mov word [rsi + rbx*2], r14w
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180001618
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x180001627
mov word [rsi + rbx*2], r15w
inc rbx
cmp rbx, rdi
jle 0x1800015f0
jmp 0x18000162a
xor bpl, bpl
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1800087dc
mov rbx, qword [rsp + 0x48]
movzx eax, bpl
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x180001650
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x8c0
mov rax, qword [0x18002d340]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
mov rbx, rdx
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.1800098a0
xor eax, eax
cmp qword [rbx + 0x18], 8
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x70], 0x68
jb 0x1800016a7
mov r8, qword [rbx]
jmp 0x1800016aa
mov r8, rbx
lea rdx, [0x18001f9d0]
lea rcx, [rsp + 0xe0]
call fcn.18000862c
xor edi, edi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x18000171a
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx + 0x18], 8
jb 0x180001729
mov rcx, qword [rbx]
call fcn.180007828
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
mov word [rbx], di
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.180009870
mov rbx, qword [rsp + 0x8d0]
add rsp, 0x8c0
pop rdi
ret
Function at 0x180001760
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x5e8]
sub rsp, 0x6e8
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x18002d340]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
mov qword [rsp + 0x20], r9
mov rsi, r8
mov rbx, rdx
mov qword [rsp + 0x28], rcx
cmp qword [rdx + 0x18], 8
jb 0x1800017aa
mov r8, qword [rdx]
jmp 0x1800017ad
mov r8, rdx
lea rdx, str._s.
lea rcx, [rbp + 0x3c0]
call fcn.18000862c
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000191f
nop
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x18000191f
cmp word [rbp - 0x74], 0x2e
je 0x1800017e0
movzx eax, word [rbp - 0x72]
test ax, ax
je 0x1800017e0
cmp ax, 0x2e
jne 0x180001813
cmp word [rbp - 0x70], 0
je 0x1800017e0
test byte [rsp + 0x60], 0x10
je 0x1800018c7
xor eax, eax
mov word [rbp + 0x1b0], ax
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1b2]
call fcn.1800098a0
mov rcx, rbx
call fcn.180003fd0
mov r8, rax
lea r9, [rbp - 0x74]
lea rdx, str._s_s_
lea rcx, [rbp + 0x1b0]
call fcn.18000862c
mov qword [rsp + 0x50], 7
xor eax, eax
mov qword [rsp + 0x48], rax
mov word [rsp + 0x38], ax
cmp word [rbp + 0x1b0], ax
jne 0x180001880
mov r8d, eax
jmp 0x18000189b
lea rax, [rbp + 0x1b0]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x180001890
lea rdx, [rbp + 0x1b0]
lea rcx, [rsp + 0x38]
call fcn.180003e80
nop
mov r9, qword [rsp + 0x20]
mov r8, rsi
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call fcn.180001760
nop
jmp 0x180001904
mov rcx, rsi
call fcn.180003fd0
mov rdx, rax
lea rcx, [rbp - 0x74]
call fcn.180007f44
test rax, rax
je 0x1800017e0
lea r8, [rbp - 0x74]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call section..text
nop
mov rdx, rax
mov rcx, qword [rsp + 0x20]
call fcn.180004370
nop
cmp qword [rsp + 0x50], 8
jb 0x1800017e0
mov rcx, qword [rsp + 0x38]
call fcn.180007828
jmp 0x1800017e0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.180009870
add rsp, 0x6e8
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180001950
Capabilities:
Check if file exists

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x18002d340]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, str.Shell32.dll
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
jne 0x18000198d
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180009870
add rsp, 0x40
pop rdi
ret
lea rdx, str.SHGetKnownFolderPath
mov rcx, rax
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1800019d4
lea rdx, [rsp + 0x28]
lea rcx, str.A520A1A4_1780_4FF6_BD18_167343C5AF16
call qword [sym.imp.ole32.dll_CLSIDFromString]
lea r9, [rsp + 0x20]
lea rcx, [rsp + 0x28]
xor r8d, r8d
mov edx, 0x400
call rbx
test eax, eax
jns 0x1800019d8
xor al, al
jmp 0x180001a10
mov rdx, qword [rsp + 0x20]
mov r8, rdi
sub r8, rdx
nop word [rax + rax]
movzx eax, word [rdx]
lea rdx, [rdx + 2]
mov word [r8 + rdx - 2], ax
test ax, ax
jne 0x1800019f0
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180009870
add rsp, 0x40
pop rdi
ret
Function at 0x180001ab0
Capabilities:
Get file version info

Disassembly:
push rbp
push rbx
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a8]
sub rsp, 0x2a8
mov rax, qword [0x18002d340]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, rdx
xor r13d, r13d
lea rdx, [rsp + 0x34]
mov rcx, r8
mov r12, r9
mov r15, r8
mov dword [rsp + 0x50], r13d
mov dword [rsp + 0x34], r13d
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov r14d, eax
test eax, eax
jne 0x180001b2c
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
lea rdx, [0x18001f800]
xor r8d, r8d
mov rcx, rbx
mov word [rbx], r13w
call fcn.180003e80
jmp 0x180001cdd
mov eax, 2
mov qword [rsp + 0x2e0], rsi
mov qword [rsp + 0x2a0], rdi
mov rdi, 0xffffffffffffffff
mul r14
cmovo rax, rdi
mov rcx, rax
call fcn.180007568
mov r8d, r14d
xor edx, edx
mov r9, rax
mov rcx, r15
mov rsi, rax
call sub.VERSION.dll_GetFileVersionInfoW
mov rcx, rsi
test eax, eax
jne 0x180001b9d
call fcn.180007828
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
lea rdx, [0x18001f800]
xor r8d, r8d
mov rcx, rbx
mov word [rbx], r13w
call fcn.180003e80
jmp 0x180001ccd
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, str.VarFileInfoTranslation
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
call sub.VERSION.dll_VerQueryValueW
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x48]
lea rdx, [0x18001f778]
mov rcx, rsi
mov qword [rsp + 0x48], r13
call sub.VERSION.dll_VerQueryValueW
lea rcx, [rbp - 0x7e]
xor edx, edx
mov r8d, 0x206
mov word [rbp - 0x80], r13w
call fcn.1800098a0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], r13
movzx r9d, word [rax + 2]
movzx r8d, word [rax]
lea rdx, str.StringFileInfo_04x_04x_s
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x20], r12
call fcn.1800011e0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x80]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jne 0x180001c46
mov rcx, rsi
call fcn.1800087dc
jmp 0x180001b76
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r13
mov word [rsp + 0x58], r13w
cmp word [rdx], r13w
jne 0x180001c65
mov rdi, r13
jmp 0x180001c6f
inc rdi
cmp word [rdx + rdi*2], r13w
jne 0x180001c65
lea rcx, [rsp + 0x58]
mov r8, rdi
call fcn.180003e80
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
mov rcx, qword [rsp + 0x70]
cmp rcx, 8
jae 0x180001cb8
mov r8, qword [rsp + 0x68]
inc r8
je 0x180001cc0
lea rdx, [rsp + 0x58]
add r8, r8
mov rcx, rbx
call fcn.1800079b0
mov rcx, qword [rsp + 0x70]
jmp 0x180001cc0
mov rax, qword [rsp + 0x58]
mov qword [rbx], rax
mov rax, qword [rsp + 0x68]
mov qword [rbx + 0x18], rcx
mov qword [rbx + 0x10], rax
mov rsi, qword [rsp + 0x2e0]
mov rdi, qword [rsp + 0x2a0]
mov rax, rbx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.180009870
add rsp, 0x2a8
pop r15
pop r14
pop r13
pop r12
pop rbx
pop rbp
ret