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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x78], rbx
je 0x1400059c1
cmp byte [rcx + 0x81], bl
je 0x1400059c1
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x1400058c7
xor al, al
jmp 0x1400059c6
mov qword [rbp - 0x10], 0xf
mov qword [rbp - 0x18], rbx
mov byte [rbp - 0x28], bl
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x28]
call fcn.140005ad4
nop
mov esi, 1
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rdx, qword [rbp - 0x28]
lea r8, [rbp - 0x28]
cmovae r8, qword [rbp - 0x28]
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x18]
add r9, rdx
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x84]
call qword [r10 + 0x40]
mov ecx, eax
test eax, eax
je 0x140005931
dec ecx
jne 0x14000599d
jmp 0x140005937
mov byte [rdi + 0x81], bl
lea rax, [rbp - 0x28]
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
cmp r10, 0x10
cmovae rax, r9
mov r14, qword [rbp + 0x20]
sub r14, rax
je 0x140005977
lea rcx, [rbp - 0x28]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x90]
mov r8, r14
mov rdx, rsi
call fcn.14001f97c
cmp r14, rax
jne 0x1400059a7
cmp byte [rdi + 0x81], bl
je 0x1400059a4
test r14, r14
jne 0x1400058ec
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x28]
call fcn.140001770
jmp 0x1400058ec
cmp ecx, 2
jne 0x1400059ad
jmp 0x1400059aa
mov bl, sil
mov sil, bl
mov bl, sil
cmp qword [rbp - 0x10], 0x10
jb 0x1400059bd
mov rcx, qword [rbp - 0x28]
call fcn.14001ddec
mov al, bl
jmp 0x1400059c6
mov eax, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140014ea0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
mov r10d, dword [rcx]
mov ebx, r8d
mov r8, rcx
mov eax, ebx
mov r9d, r10d
mov r11, rdx
xor r9, rax
shr r10d, 8
movzx eax, r9b
mov r9d, dword [rdx + rax*4]
mov edx, dword [rcx + 8]
xor r9d, r10d
mov dword [rcx], r9d
movzx eax, r9b
add eax, dword [rcx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [rcx + 4], eax
mov ecx, eax
shr ecx, 0x18
xor rcx, rdx
shr edx, 8
movzx eax, cl
mov eax, dword [r11 + rax*4]
xor eax, edx
mov dword [r8 + 8], eax
mov eax, ebx
mov rbx, qword [rsp + 8]
ret

Function at 0x140014f70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push r15
sub rsp, 0x48
mov rbp, r9
mov r15, rcx
cmp r8d, 0xc
jge 0x140014f92
xor eax, eax
add rsp, 0x48
pop r15
pop rbp
ret
mov eax, dword [0x140067460]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
inc eax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r14
mov dword [0x140067460], eax
cmp eax, 1
jne 0x140014fd6
xor ecx, ecx
call fcn.140020de0
xor eax, 0xbb40e64e
mov ecx, eax
call fcn.140020e6c
mov r12, qword [rsp + 0x80]
mov rdx, rbp
mov rcx, r15
mov r8, r12
call fcn.140014f00
mov r13d, 0xa
lea rsi, [rsp + 0x20]
mov r14d, r13d
nop word [rax + rax]
call fcn.140020e40
mov rcx, rbp
sar eax, 7
movzx edi, al
call fcn.140014e80
mov r8d, edi
mov rdx, r12
mov ebx, eax
call fcn.140014ea0
xor dil, bl
inc rsi
dec r14
mov byte [rsi - 1], dil
jne 0x140015000
mov r8, r12
mov rdx, rbp
mov rcx, r15
call fcn.140014f00
mov r15, qword [rsp + 0x68]
lea rax, [rsp + 0x20]
mov r14, r15
lea rsi, [rsp + 0x20]
sub r14, rax
mov rcx, rbp
call fcn.140014e80
movzx edi, byte [rsi]
mov rdx, r12
mov r8d, edi
mov ebx, eax
call fcn.140014ea0
xor dil, bl
inc rsi
dec r13
mov byte [r14 + rsi - 1], dil
jne 0x140015052
mov rcx, rbp
call fcn.140014e80
mov esi, dword [rsp + 0x88]
mov rdx, r12
mov ebx, esi
mov edi, eax
shr ebx, 0x10
movzx r8d, bl
call fcn.140014ea0
xor bl, dil
mov rcx, rbp
mov byte [r15 + 0xa], bl
call fcn.140014e80
shr esi, 0x18
mov r8d, esi
mov rdx, r12
mov ebx, eax
call fcn.140014ea0
mov r14, qword [rsp + 0x30]
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x78]
xor sil, bl
mov rbx, qword [rsp + 0x60]
mov byte [r15 + 0xb], sil
mov rsi, qword [rsp + 0x70]
lea eax, [r13 + 0xc]
mov r13, qword [rsp + 0x38]
add rsp, 0x48
pop r15
pop rbp
ret
Function at 0x140016200
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
cmp dword [rcx + 0x10108], 0
mov rsi, rcx
je 0x140016283
mov qword [rsp + 0x30], rbp
xor ebp, ebp
cmp dword [rcx + 0xd4], ebp
jbe 0x14001627e
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], r12
lea rdi, [rcx + 0x100]
nop word [rax + rax]
lea rcx, [rsi + 0x10128]
call fcn.140014e80
movzx r8d, byte [rdi]
mov rdx, qword [rsi + 0x10138]
lea rcx, [rsi + 0x10128]
mov ebx, eax
call fcn.140014ea0
xor byte [rdi], bl
inc ebp
inc rdi
cmp ebp, dword [rsi + 0xd4]
jb 0x140016240
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov r9d, dword [rsi + 0xd4]
mov rdx, qword [rsi + 0x58]
mov rcx, qword [rsi + 0x38]
mov ebx, dword [rsi + 0xd4]
lea r8, [rsi + 0x100]
call qword [rsi + 0x10]
or ecx, 0xffffffff
xor edx, edx
cmp eax, ebx
mov dword [rsi + 0xd4], 0
cmovne edx, ecx
mov ecx, dword [rsi + 0x84]
add qword [rsi + 0x10118], rbx
mov rbx, qword [rsp + 0x48]
add qword [rsi + 0x10120], rcx
mov dword [rsi + 0x84], 0
mov eax, edx
add rsp, 0x20
pop rsi
ret
Function at 0x140035358
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [rbp - 0x30], r12d
cmp qword [rdx + 0x18], 8
jb 0x140035392
mov rax, qword [rdx]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rax
call qword [0x140068d70]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x1400353eb
lea rdx, [0x140052976]
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r12
xor r8d, r8d
mov byte [rdi], r12b
mov rcx, rdi
call fcn.14000157c
jmp 0x1400354b6
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x140035410
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x140052977]
jmp 0x1400353cc
mov qword [rbp - 8], 0xf
mov qword [rbp - 0x10], r12
mov byte [rbp - 0x20], r12b
mov rdx, r14
test eax, eax
jne 0x140035432
mov qword [rbp - 0x10], rdx
mov byte [rbp + r14 - 0x20], r12b
jmp 0x14003543e
xor r8d, r8d
lea rcx, [rbp - 0x20]
call fcn.140001770
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rdx, qword [rbp - 0x20]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x28]
mov r8d, r14d
mov rcx, r15
call qword [0x140068d40]
mov ebx, eax
mov rcx, r15
call qword [0x140068d78]
test ebx, ebx
je 0x140035484
cmp dword [rbp + 0x28], r14d
jne 0x140035484
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140001228
jmp 0x1400354a6
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r12
mov byte [rdi], r12b
xor r8d, r8d
lea rdx, [0x14005297e]
mov rcx, rdi
call fcn.14000157c
nop
cmp qword [rbp - 8], 0x10
jb 0x1400354b6
mov rcx, qword [rbp - 0x20]
call fcn.14001ddec
mov rax, rdi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140037890
Capabilities:
Decode data using base64 via dword translation table

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 r13
push r14
push r15
sub rsp, 0x50
mov rbx, qword [r8]
and dword [rsp + 0x20], 0
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
jne 0x1400378e2
and qword [rcx + 0x10], rbx
mov qword [rcx + 0x18], 0xf
lea rdx, [0x14005299a]
xor r8d, r8d
mov byte [rcx], bl
call fcn.14000157c
jmp 0x140037a35
xor ebp, ebp
mov rax, rbx
lea r13d, [rbp + 1]
and eax, 3
jne 0x1400378fc
cmp byte [rbx + rdx - 1], 0x3d
je 0x1400378fc
xor r14d, r14d
jmp 0x14003790c
mov r14, r13
cmp rax, 2
ja 0x140037911
cmp byte [rbx + rdx - 2], 0x3d
jne 0x140037911
xor r15d, r15d
jmp 0x140037914
mov r15, r13
and qword [rsp + 0x38], rbp
sub rbx, r14
lea rcx, [rsp + 0x28]
and rbx, 0xfffffffffffffffc
xor r8d, r8d
mov qword [rsp + 0x40], 0xf
mov rdx, rbx
mov byte [rsp + 0x28], bpl
shr rdx, 2
lea rax, [r15 + rdx*2]
add rdx, rax
add rdx, r14
call fcn.140005ad4
cmp qword [rsp + 0x40], 0x10
lea r9, [rsp + 0x28]
cmovae r9, qword [rsp + 0x28]
lea r10, [0x1400533a0]
test rbx, rbx
je 0x1400379cc
lea rdx, [rbx - 1]
lea r8, [rsi + 1]
shr rdx, 2
add rdx, r13
movzx eax, byte [r8 - 1]
mov ecx, dword [r10 + rax*4]
movzx eax, byte [r8]
lea r8, [r8 + 4]
shl ecx, 6
or ecx, dword [r10 + rax*4]
movzx eax, byte [r8 - 3]
shl ecx, 6
or ecx, dword [r10 + rax*4]
movzx eax, byte [r8 - 2]
shl ecx, 6
or ecx, dword [r10 + rax*4]
mov eax, ecx
sar eax, 0x10
mov byte [r9 + rbp], al
add rbp, r13
mov eax, ecx
sar eax, 8
mov byte [r9 + rbp], al
add rbp, r13
mov byte [r9 + rbp], cl
add rbp, r13
sub rdx, r13
jne 0x140037978
test r14, r14
je 0x140037a16
movzx eax, byte [rbx + rsi]
movzx edx, byte [rbx + rsi + 1]
mov ecx, dword [r10 + rax*4]
mov r8d, dword [r10 + rdx*4]
shl ecx, 6
or r8d, ecx
shl r8d, 0xc
mov eax, r8d
sar eax, 0x10
mov byte [r9 + rbp], al
test r15, r15
je 0x140037a16
movzx eax, byte [rbx + rsi + 2]
sar r8d, 8
mov ecx, dword [r10 + rax*4]
shl ecx, 6
sar ecx, 8
or cl, r8b
mov byte [r9 + rbp + 1], cl
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.140001228
cmp qword [rsp + 0x40], 0x10
jb 0x140037a35
mov rcx, qword [rsp + 0x28]
call fcn.14001ddec
lea r11, [rsp + 0x50]
mov rax, rdi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
Function at 0x140038684
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, [0x140054398]
xor r8d, r8d
lea edx, [r9 + 1]
mov dword [rsp + 0x20], edi
call qword [0x140068dc8]
mov r14, rax
test rax, rax
jne 0x1400386d0
mov ecx, ebp
call qword [0x140068d10]
jmp 0x1400386a3
cmp qword [rbx + 0x18], 8
jb 0x1400386dc
mov rdx, qword [rbx]
jmp 0x1400386df
mov rdx, rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x80000000
call qword [0x140068f00]
mov rsi, rax
test rax, rax
je 0x1400386c6
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 [0x140068ed0]
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 0x14003878a
mov r8d, dword [rsp + 0x60]
mov ebx, edi
mov rdx, rax
jmp 0x140038772
cmp dword [rsp + 0x68], edi
jbe 0x140038784
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 [0x140068e80]
test eax, eax
jne 0x14003875b
mov dword [r15], ebx
mov rdi, rbp
mov rcx, rsi
call qword [0x140068ec0]
mov rcx, r14
call qword [0x140068ec0]
mov rbx, qword [rsp + 0x78]
mov rax, rdi
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003ab68
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 edi, [r14 + 7]
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], r14
mov word [rsp + 0x58], r14w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rbx, qword [rsp + 0xb0]
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140001e00
lea r9, [rsp + 0x58]
mov rcx, rbp
call fcn.14003ac84
mov rcx, rbp
call qword [sym.imp.GDI32.dll_DeleteObject]
nop
cmp qword [rbx + 0x18], 8
jb 0x14003ac4f
mov rcx, qword [rbx]
call fcn.14001ddec
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 0x14003ae4c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x7a0]
sub rsp, 0x8a0
mov rsi, rdx
mov rbx, rcx
mov r8, rcx
lea rdx, str._s
lea rcx, [rbp + 0x590]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x590]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14003b014
test byte [rsp + 0x20], 0x10
jne 0x14003b027
test byte [rsp + 0x20], 2
jne 0x14003b027
mov eax, dword [rsp + 0x40]
mov dword [rbp + 0x7d0], eax
mov eax, dword [rsp + 0x3c]
mov dword [rbp + 0x7d4], eax
cmp qword [rbp + 0x7d0], 0x1f40
jge 0x14003aff5
lea r9, [rsp + 0x4c]
lea rdx, [0x140055548]
lea rcx, [rbp + 0x380]
mov r8, rbx
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x380]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
lea rdx, str..txt
mov rcx, rax
mov rbx, rax
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x14003afdf
lea rdx, str..jpg
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x14003afdf
lea rdx, str..pdf
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x14003afdf
lea rdx, str..docx
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x14003afdf
lea rdx, str..csv
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x14003afdf
lea rdx, str..sql
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x14003afdf
lea rdx, [0x1400555b8]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x14003afdf
lea rdx, [0x1400555c0]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x14003afdf
lea rdx, str..cpp
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x14003afdf
lea rdx, [0x1400555d4]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x14003afee
lea rcx, [rbp + 0x380]
mov rdx, rsi
call fcn.14003b0bc
mov rbx, qword [rbp + 0x7c0]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14003aea4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x8c8]
add rsp, 0x8a0
pop rdi
pop rsi
pop rbp
ret
movzx ecx, word [rsp + 0x4c]
movzx eax, word [rsp + 0x4e]
cmp cx, word [0x140053934]
jne 0x14003b043
cmp ax, word [0x140053936]
je 0x14003aff5
cmp cx, word [0x1400555dc]
jne 0x14003b063
cmp ax, word [0x1400555de]
jne 0x14003b063
movzx eax, word [rsp + 0x50]
cmp ax, word [0x1400555e0]
je 0x14003aff5
lea rcx, [rsp + 0x4c]
call fcn.14003b124
test al, al
jne 0x14003aff5
lea r9, [rsp + 0x4c]
lea rdx, str._s_s
lea rcx, [rbp + 0x170]
mov r8, rbx
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x170]
call fcn.14003b1cc
test al, al
je 0x14003aff5
lea rcx, [rbp + 0x170]
mov rdx, rsi
call fcn.14003ae4c
jmp 0x14003aff5
Function at 0x14003b0bc
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.1400207a0
test rax, rax
je 0x14003b10d
lea r9, [rax + 2]
lea rdx, [0x140055528]
lea rcx, [rsp + 0x20]
mov r8, rdi
call qword [0x140068db0]
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 0x1400401d8
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 0x140040205
xor al, al
jmp 0x14004025e
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 0x140040252
lea rcx, [rsp + 0x4c]
mov rdx, rsi
call fcn.140020850
test eax, eax
je 0x14004024f
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140040221
mov rcx, rbx
call qword [0x140068d78]
jmp 0x140040201
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 0x140040594
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 0x1400405d1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14004063d
lea rax, [rsp + 0x4c]
mov rdx, rsi
sub rdx, rax
movzx ecx, word [rax]
movzx r8d, word [rax + rdx]
sub ecx, r8d
jne 0x1400405f2
add rax, 2
test r8d, r8d
jne 0x1400405dc
test ecx, ecx
jne 0x140040622
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 0x140040622
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [0x140068d78]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400405d1
mov rcx, rbx
call qword [0x140068d78]
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140040b70
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 0x140040ba0
lea rcx, [rbp + 0x380]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], si
jne 0x140040bbc
mov eax, dword [0x140056aec]
lea rdx, [rsp + 0x20]
mov dword [rcx], eax
movzx eax, word [0x140056af0]
mov word [rcx + 4], ax
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140040cf9
movzx ecx, word [rsp + 0x4c]
movzx eax, word [rsp + 0x4e]
cmp cx, word [0x1400546e4]
jne 0x140040c17
cmp ax, word [0x1400546e6]
je 0x140040cc1
cmp cx, word [0x140056af4]
jne 0x140040c3b
cmp ax, word [0x140056af6]
jne 0x140040c3b
movzx eax, word [rsp + 0x50]
cmp ax, word [0x140056af8]
je 0x140040cc1
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 0x140040c48
lea rcx, [rbp + 0x170]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], si
jne 0x140040c63
mov eax, dword [0x1400546f4]
mov dword [rcx], eax
lea rcx, [rbp + 0x170]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], si
jne 0x140040c7f
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 0x140040c8f
test byte [rsp + 0x20], 0x10
lea rcx, [rbp + 0x170]
je 0x140040cb7
call fcn.140040b70
test al, al
jmp 0x140040cbf
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140040cf0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140040bf7
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 0x140040cfb
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 0x1400428f4
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.140014da8
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 0x140042a3c
mov dl, byte [rbp - 0x44]
mov cl, byte [rbp - 0x43]
cmp dl, byte [0x1400548ac]
jne 0x140042976
cmp cl, byte [0x1400548ad]
je 0x140042a1d
cmp dl, byte [0x1400548c4]
jne 0x140042995
cmp cl, byte [0x1400548c5]
jne 0x140042995
mov al, byte [rbp - 0x42]
cmp al, byte [0x1400548c6]
je 0x140042a1d
lea r8, [0x140054f94]
mov rdx, qword [rbp + 0xf8]
lea rcx, [rsp + 0x40]
call fcn.140014da8
nop
lea r8, [rbp - 0x44]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140005f5c
nop
cmp qword [rsp + 0x58], 0x10
jb 0x1400429d2
mov rcx, qword [rsp + 0x40]
call fcn.14001ddec
mov qword [rsp + 0x58], 0xf
and qword [rsp + 0x50], 0
mov byte [rsp + 0x40], 0
mov r8, rdi
lea rdx, [rsp + 0x60]
mov rcx, rsi
test byte [rbp - 0x70], 0x10
je 0x140042a05
mov r9b, byte [rbp + 0x108]
call fcn.1400428f4
jmp 0x140042a0b
call fcn.140042a68
nop
cmp qword [rsp + 0x78], 0x10
jb 0x140042a1d
mov rcx, qword [rsp + 0x60]
call fcn.14001ddec
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14004295c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp qword [rsp + 0x38], 0x10
jb 0x140042a4e
mov rcx, qword [rsp + 0x20]
call fcn.14001ddec
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1d0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140042a68
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x3cc0
call fcn.140020fc0
sub rsp, rax
mov r8, qword [r8 + 0x10]
mov rbx, rdx
mov rsi, rcx
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140014d70
cmp qword [rbx + 0x18], 0x10
jb 0x140042aa1
mov rbx, qword [rbx]
lea rdx, [0x140054894]
mov rcx, rbx
call fcn.140020aec
mov rbx, rax
test rax, rax
je 0x140042b93
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x24]
call fcn.140020ea0
cmp qword [rsp + 0x68], 0x10
lea rdx, [rsp + 0x50]
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
lea r8, [rsp + 0x70]
xor r9d, r9d
mov rcx, rsi
call fcn.1400173f0
test eax, eax
jne 0x140042b8b
lea rcx, [rsp + 0xa0]
mov r9, rbx
mov edx, 1
mov r8d, 0x3c18
call fcn.140020d18
mov rdi, rax
cmp rax, 0x3c18
jae 0x140042b52
mov rcx, rbx
call fcn.1400209c4
test eax, eax
jne 0x140042b70
mov rcx, rbx
call fcn.1400209ec
test eax, eax
jne 0x140042b83
lea rdx, [rsp + 0xa0]
mov r8d, edi
mov rcx, rsi
call fcn.1400162f0
test eax, eax
js 0x140042b83
test rdi, rdi
je 0x140042b83
jmp 0x140042b14
lea rdx, [rsp + 0xa0]
mov r8d, edi
mov rcx, rsi
call fcn.1400162f0
mov rcx, rsi
call fcn.140016c10
mov rcx, rbx
call fcn.14001fa88
cmp qword [rsp + 0x68], 0x10
jb 0x140042ba5
mov rcx, qword [rsp + 0x50]
call fcn.14001ddec
lea r11, [rsp + 0x3cc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret