joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140041a00
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov r8, rdx
movaps xmmword [rsp + 0x20], xmm6
movdqu xmm6, xmmword [rcx + rdx - 0x10]
mov rdx, rcx
mov rcx, rbx
call fcn.140042640
mov r8, rdi
lea rdx, [0x14008ae84]
aeskeygenassist xmm0, xmm6, 0
pextrd ecx, xmm0, 3
xor ecx, dword [rbx]
shr r8, 2
xor ecx, 1
lea r10, [r8*4]
lea rsi, [r8*4 + 8]
mov dword [r10 + rbx], ecx
mov eax, dword [rbx + 4]
lea r9, [r10 + rbx]
xor eax, ecx
lea r11, [r8 + 7]
lea r14, [r8*4 + 0xc]
mov dword [r9 + 4], eax
mov ecx, dword [rbx + 8]
shl r11, 4
xor ecx, eax
lea r8, [r8*4 + 0x10]
add r11, rbx
mov dword [rsi + rbx], ecx
mov eax, dword [rbx + 0xc]
xor eax, ecx
mov dword [r14 + rbx], eax
lea rax, [r8 + rbx]
cmp rax, r11
je 0x140041b5b
nop dword [rax]
cmp rdi, 0x18
jne 0x140041acf
mov eax, dword [rbx + 0x24]
mov ecx, dword [rbx + 0x14]
xor eax, dword [rbx + 0x10]
xor ecx, eax
mov dword [rbx + 0x28], eax
mov dword [rbx + 0x2c], ecx
pinsrd xmm6, ecx, 3
jmp 0x140041b15
cmp rdi, 0x20
jne 0x140041b0e
pinsrd xmm6, dword [rbx + 0x2c], 3
mov ecx, dword [rbx + 0x14]
aeskeygenassist xmm0, xmm6, 0
pextrd eax, xmm0, 2
xor eax, dword [rbx + 0x10]
xor ecx, eax
mov dword [rbx + 0x30], eax
mov eax, dword [rbx + 0x18]
xor eax, ecx
mov dword [rbx + 0x34], ecx
mov ecx, dword [rbx + 0x1c]
xor ecx, eax
mov dword [rbx + 0x38], eax
mov dword [rbx + 0x3c], ecx
pinsrd xmm6, ecx, 3
jmp 0x140041b15
pinsrd xmm6, dword [rbx + 0x1c], 3
mov rbx, r9
add r9, r10
aeskeygenassist xmm0, xmm6, 0
pextrd ecx, xmm0, 3
add rdx, 4
xor ecx, dword [rdx - 4]
xor ecx, dword [rbx]
mov dword [r9], ecx
mov eax, dword [rbx + 4]
xor eax, ecx
mov dword [r10 + rbx + 4], eax
mov ecx, dword [rbx + 8]
xor ecx, eax
mov dword [rsi + rbx], ecx
mov eax, dword [rbx + 0xc]
xor eax, ecx
mov dword [r14 + rbx], eax
lea rax, [r8 + rbx]
cmp rax, r11
jne 0x140041ab0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop r14
ret
Function at 0x140066450
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
lea rdx, [0x140095eec]
xor edi, edi
call fcn.140042e6c
mov rbx, rax
test rax, rax
je 0x1400664e4
lea r8d, [rdi + 2]
xor edx, edx
mov rcx, rax
call fcn.140043664
test eax, eax
jne 0x1400664dc
mov rcx, rbx
call fcn.140043560
movsxd rsi, eax
test eax, eax
js 0x1400664dc
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140043664
test eax, eax
jne 0x1400664dc
lea rcx, [rsi + 1]
call fcn.140041f2c
mov rdi, rax
test rax, rax
je 0x1400664dc
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call fcn.140043098
cmp eax, esi
je 0x1400664d8
xor edi, edi
jmp 0x1400664dc
mov byte [rax + rdi], 0
mov rcx, rbx
call fcn.140043754
mov rcx, rbx
call fcn.140043754
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x140069f08
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rdi
mov r14, rdx
mov rbx, rcx
xor ecx, ecx
mov dword [rbp - 0x30], ecx
mov rdi, qword [r8]
test rdi, rdi
jne 0x140069f6f
lea r15d, [rcx + 0xf]
mov qword [rbx + 0x18], r15
mov qword [rbx + 0x10], rcx
mov byte [rbx], cl
xor r8d, r8d
lea rdx, [0x140095e4a]
mov rcx, rbx
call fcn.14000472c
nop
mov dword [rbp - 0x30], 1
jmp 0x14006a0df
mov r12, rcx
mov rax, rdi
and eax, 3
jne 0x140069f86
cmp byte [rdi + rdx - 1], 0x3d
je 0x140069f86
mov r13, rcx
jmp 0x140069f99
mov r13d, 1
cmp rax, 2
ja 0x140069f9e
cmp byte [rdi + rdx - 2], 0x3d
jne 0x140069f9e
mov rax, rcx
jmp 0x140069fa1
mov rax, r13
mov qword [rbp + 0x40], rax
sub rdi, r13
and rdi, 0xfffffffffffffffc
mov qword [rbp - 0x10], rcx
mov qword [rbp - 8], rcx
mov r15d, 0xf
mov qword [rbp - 8], r15
mov qword [rbp - 0x10], rcx
mov byte [rbp - 0x20], cl
mov rdx, rdi
shr rdx, 2
lea rax, [rax + rdx*2]
add rdx, rax
add rdx, r13
xor r8d, r8d
lea rcx, [rbp - 0x20]
call fcn.14000a514
nop
lea r8, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae r8, qword [rbp - 0x20]
lea r11, [0x140096c40]
xor r10d, r10d
test rdi, rdi
je 0x14006a060
lea r9, [r14 + 1]
lea rdx, [rdi - 1]
shr rdx, 2
inc rdx
movzx eax, byte [r9 - 1]
mov ecx, dword [r11 + rax*4]
shl ecx, 6
movzx eax, byte [r9]
or ecx, dword [r11 + rax*4]
shl ecx, 6
movzx eax, byte [r9 + 1]
or ecx, dword [r11 + rax*4]
shl ecx, 6
movzx eax, byte [r9 + 2]
or ecx, dword [r11 + rax*4]
mov eax, ecx
sar eax, 0x10
mov byte [r8 + r12], al
mov eax, ecx
sar eax, 8
mov byte [r8 + r12 + 1], al
mov byte [r8 + r12 + 2], cl
add r12, 3
lea r9, [r9 + 4]
dec rdx
jne 0x14006a00f
test r13, r13
je 0x14006a0a4
movzx eax, byte [rdi + r14]
mov edx, dword [r11 + rax*4]
shl edx, 6
movzx eax, byte [rdi + r14 + 1]
or edx, dword [r11 + rax*4]
shl edx, 0xc
mov eax, edx
sar eax, 0x10
mov byte [r8 + r12], al
cmp qword [rbp + 0x40], r10
je 0x14006a0a4
movzx eax, byte [rdi + r14 + 2]
mov ecx, dword [r11 + rax*4]
shl ecx, 6
or edx, ecx
sar edx, 8
mov byte [r8 + r12 + 1], dl
mov qword [rbx + 0x18], r15
mov qword [rbx + 0x10], r10
mov byte [rbx], r10b
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.140004490
mov dword [rbp - 0x30], 1
cmp qword [rbp - 8], 0x10
jb 0x14006a0d2
mov rcx, qword [rbp - 0x20]
call fcn.1400431dc
mov qword [rbp - 8], r15
and qword [rbp - 0x10], 0
mov byte [rbp - 0x20], 0
mov rax, rbx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14006ad8c
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor edi, edi
mov r15, rdx
mov rbx, rcx
mov dword [rdx], edi
mov ebp, 0x3e8
xor r9d, r9d
lea rcx, [0x140097d38]
xor r8d, r8d
lea edx, [r9 + 1]
mov dword [rsp + 0x20], edi
call qword [0x1400c4868]
mov r14, rax
test rax, rax
jne 0x14006add8
mov ecx, ebp
call qword [0x1400c47e8]
jmp 0x14006adab
cmp qword [rbx + 0x18], 8
jb 0x14006ade4
mov rdx, qword [rbx]
jmp 0x14006ade7
mov rdx, rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x80000000
call qword [0x1400c49d8]
mov rsi, rax
test rax, rax
je 0x14006adce
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x60]
mov edx, 0x20000005
mov rcx, rax
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x70], 4
mov qword [rsp + 0x20], rdi
call qword [0x1400c49a8]
mov ebx, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14006ae92
mov r8d, dword [rsp + 0x60]
mov ebx, edi
mov rdx, rax
jmp 0x14006ae7a
cmp dword [rsp + 0x68], edi
jbe 0x14006ae8c
add ebx, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x60]
mov edx, ebx
sub r8d, ebx
add rdx, rbp
lea r9, [rsp + 0x68]
mov rcx, rsi
call qword [0x1400c4938]
test eax, eax
jne 0x14006ae63
mov dword [r15], ebx
mov rdi, rbp
mov rcx, rsi
call qword [0x1400c4990]
mov rcx, r14
call qword [0x1400c4990]
mov rbx, qword [rsp + 0x78]
mov rax, rdi
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006df8c
Capabilities:
Capture screenshot

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x80
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov edi, r9d
mov esi, r8d
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rbx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov r8d, edi
mov edx, esi
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rbp, rax
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov dword [rsp + 0x40], 0xcc0020
xor r14d, r14d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9d, esi
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.GDI32.dll_BitBlt]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rax
lea edi, [r14 + 7]
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], r14
mov word [rsp + 0x60], r14w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rbx, qword [rsp + 0xb0]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140009c54
nop
lea r9, [rsp + 0x60]
mov rcx, rbp
call fcn.14006e0b0
mov rcx, rbp
call qword [sym.imp.GDI32.dll_DeleteObject]
nop
cmp qword [rbx + 0x18], 8
jb 0x14006e07e
mov rcx, qword [rbx]
call fcn.1400431dc
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
mov al, 1
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x14006e71c
Capabilities:
Enumerate device drivers on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
xor ebx, ebx
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], rbx
mov word [rbp - 0x28], bx
lea r8d, [rbx + 0x19]
lea rdx, str.driverquery___Drivers.txt
lea rcx, [rbp - 0x28]
call fcn.14000a734
nop
lea rcx, [rbp - 0x28]
call fcn.14006e89c
nop
cmp qword [rbp - 0x10], 8
jb 0x14006e77b
mov rcx, qword [rbp - 0x28]
call fcn.1400431dc
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], rbx
mov word [rbp - 0x28], bx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
Function at 0x14006e89c
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov r8, rcx
lea rdx, [0x1400992a8]
lea rcx, [rbp - 0x49]
call fcn.14000afc8
nop
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rbp - 0x15]
call fcn.140046360
mov dword [rbp - 0x19], 0x70
mov dword [rbp - 0x15], 0x40
lea rax, [0x1400992b0]
mov qword [rbp - 9], rax
lea rax, str.cmd.exe
mov qword [rbp - 1], rax
lea rax, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rax, qword [rbp - 0x49]
mov qword [rbp + 7], rax
xor edi, edi
mov dword [rbp + 0x17], edi
lea rcx, [rbp - 0x19]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x14006e942
or edx, 0xffffffff
mov rcx, qword [rbp + 0x4f]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x4f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x14006e945
mov bl, dil
cmp qword [rbp - 0x31], 8
jb 0x14006e955
mov rcx, qword [rbp - 0x49]
call fcn.1400431dc
mov qword [rbp - 0x31], 7
mov qword [rbp - 0x39], rdi
mov word [rbp - 0x49], di
mov al, bl
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14006ec3c
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x230
mov rdi, rdx
mov edx, 0x5c
mov rbx, rcx
call fcn.140046038
test rax, rax
je 0x14006ec8d
lea r9, [rax + 2]
lea rdx, [0x140099198]
lea rcx, [rsp + 0x20]
mov r8, rdi
call qword [0x1400c4848]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne al
mov rbx, qword [rsp + 0x240]
add rsp, 0x230
pop rdi
ret
Function at 0x14007414c
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140074179
xor al, al
jmp 0x1400741d2
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor edi, edi
test eax, eax
je 0x1400741c6
lea rcx, [rsp + 0x4c]
mov rdx, rsi
call fcn.1400460e8
test eax, eax
je 0x1400741c3
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140074195
mov rcx, rbx
call qword [0x1400c49f0]
jmp 0x140074175
mov dil, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, dil
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400747fc
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rbx, rdx
mov rsi, rcx
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140074839
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400748a5
lea rax, [rsp + 0x4c]
mov rdx, rsi
sub rdx, rax
movzx ecx, word [rax]
movzx r8d, word [rax + rdx]
sub ecx, r8d
jne 0x14007485a
add rax, 2
test r8d, r8d
jne 0x140074844
test ecx, ecx
jne 0x14007488a
mov r8d, dword [rsp + 0x28]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14007488a
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [0x1400c49f0]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140074839
mov rcx, rbx
call qword [0x1400c49f0]
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140074998
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x598]
sub rsp, 0x690
lea r8, [rbp + 0x380]
mov rdi, rcx
mov rdx, rcx
sub r8, rcx
xor esi, esi
movzx eax, word [rdx]
mov word [r8 + rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x1400749c8
lea rcx, [rbp + 0x380]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], si
jne 0x1400749e4
mov eax, dword [0x14009ad5c]
lea rdx, [rsp + 0x20]
mov dword [rcx], eax
movzx eax, word [0x14009ad60]
mov word [rcx + 4], ax
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140074b21
movzx ecx, word [rsp + 0x4c]
movzx eax, word [rsp + 0x4e]
cmp cx, word [0x140098c34]
jne 0x140074a3f
cmp ax, word [0x140098c36]
je 0x140074ae9
cmp cx, word [0x14009ad64]
jne 0x140074a63
cmp ax, word [0x14009ad66]
jne 0x140074a63
movzx eax, word [rsp + 0x50]
cmp ax, word [0x14009ad68]
je 0x140074ae9
lea rdx, [rbp + 0x170]
mov rcx, rdi
sub rdx, rdi
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140074a70
lea rcx, [rbp + 0x170]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], si
jne 0x140074a8b
mov eax, dword [0x140098c44]
mov dword [rcx], eax
lea rcx, [rbp + 0x170]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], si
jne 0x140074aa7
lea r8, [rsp + 0x4c]
xor edx, edx
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
inc rdx
test ax, ax
jne 0x140074ab7
test byte [rsp + 0x20], 0x10
lea rcx, [rbp + 0x170]
je 0x140074adf
call fcn.140074998
test al, al
jmp 0x140074ae7
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140074b18
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140074a1f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x140074b23
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140076c68
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
mov byte [rax + 0x20], r9b
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
lea rbp, [rax - 0xe8]
sub rsp, 0x1d0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rdi, r8
mov rsi, rcx
lea r8, str..
lea rcx, [rsp + 0x20]
call fcn.14001d27c
nop
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rcx, qword [rsp + 0x20]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140076dc4
mov dl, byte [rbp - 0x44]
mov cl, byte [rbp - 0x43]
cmp dl, byte [0x140098dd4]
jne 0x140076cea
cmp cl, byte [0x140098dd5]
je 0x140076da5
cmp dl, byte [0x140098dc4]
jne 0x140076d09
cmp cl, byte [0x140098dc5]
jne 0x140076d09
mov al, byte [rbp - 0x42]
cmp al, byte [0x140098dc6]
je 0x140076da5
lea r8, [0x140098de4]
mov rdx, qword [rbp + 0xf8]
lea rcx, [rsp + 0x60]
call fcn.14001d27c
nop
lea r8, [rbp - 0x44]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005638
nop
cmp qword [rsp + 0x78], 0x10
jb 0x140076d46
mov rcx, qword [rsp + 0x60]
call fcn.1400431dc
mov qword [rsp + 0x78], 0xf
and qword [rsp + 0x70], 0
mov byte [rsp + 0x60], 0
mov r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rsi
test byte [rbp - 0x70], 0x10
je 0x140076d79
mov r9b, byte [rbp + 0x108]
call fcn.140076c68
jmp 0x140076d7f
call fcn.140076e04
nop
cmp qword [rsp + 0x58], 0x10
jb 0x140076d91
mov rcx, qword [rsp + 0x40]
call fcn.1400431dc
mov qword [rsp + 0x58], 0xf
and qword [rsp + 0x50], 0
mov byte [rsp + 0x40], 0
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140076cd0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp qword [rsp + 0x38], 0x10
jb 0x140076dd6
mov rcx, qword [rsp + 0x20]
call fcn.1400431dc
mov qword [rsp + 0x38], 0xf
and qword [rsp + 0x30], 0
mov byte [rsp + 0x20], 0
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1d0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140076e04
Capabilities:
Read file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x3bc0]
mov eax, 0x3cc0
call fcn.140046480
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x3cd0], rbx
mov qword [rsp + 0x3cd8], rsi
mov qword [rsp + 0x3ce0], rdi
mov rbx, rdx
mov rsi, rcx
mov r8, qword [r8 + 0x10]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14001d230
nop
cmp qword [rbx + 0x18], 0x10
jb 0x140076e5e
mov rbx, qword [rbx]
lea rdx, [0x140098db4]
mov rcx, rbx
call fcn.140042e6c
mov rbx, rax
test rax, rax
je 0x140076f45
xor edx, edx
lea r8d, [rdx + 0x24]
lea rcx, [rsp + 0x78]
call fcn.140046360
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdx, qword [rsp + 0x50]
or dword [rsp + 0x48], 0xffffffff
mov dword [rsp + 0x40], 8
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x78]
mov rcx, rsi
call fcn.14001f8e0
test eax, eax
jne 0x140076f3c
mov r9, rbx
mov edx, 1
mov r8d, 0x3c18
lea rcx, [rbp - 0x60]
call fcn.140043098
mov rdi, rax
cmp rax, 0x3c18
jae 0x140076f0b
mov rcx, rbx
call fcn.14004625c
test eax, eax
jne 0x140076f25
mov rcx, rbx
call fcn.140046284
test eax, eax
jne 0x140076f34
mov r8d, edi
lea rdx, [rbp - 0x60]
mov rcx, rsi
call fcn.14001e7e0
test eax, eax
js 0x140076f34
test rdi, rdi
je 0x140076f34
jmp 0x140076ed1
mov r8d, edi
lea rdx, [rbp - 0x60]
mov rcx, rsi
call fcn.14001e7e0
mov rcx, rsi
call fcn.14001f100
mov rcx, rbx
call fcn.140043754
nop
cmp qword [rsp + 0x68], 0x10
jb 0x140076f57
mov rcx, qword [rsp + 0x50]
call fcn.1400431dc
mov qword [rsp + 0x68], 0xf
and qword [rsp + 0x60], 0
mov byte [rsp + 0x50], 0
lea r11, [rsp + 0x3cc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x2fc4c4c20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4c5ce0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4c5622
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ea108]
test eax, eax
je 0x2fc4c56ba
lea rax, [0x2fc4ea0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ea110]
mov qword [rbp - 8], rax
jmp 0x2fc4c569e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c5692
cmp qword [rbp - 0x10], 0
je 0x2fc4c5692
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c5658
lea rax, [0x2fc4ea0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c56bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c57c0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c57e8
mov eax, 0
jmp 0x2fc4c5836
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c5811
mov eax, 0
jmp 0x2fc4c5836
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c5831
mov eax, 0
jmp 0x2fc4c5836
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c583c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c58ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c58b1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c58b1
mov rax, qword [rbp - 8]
jmp 0x2fc4c58cf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c5884
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62