joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011212
Capabilities:
Terminate process

Disassembly:
jmp 0x1400134d0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001129e
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014810
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014830
xor al, al
jmp 0x1400148b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014843
xor al, al
jmp 0x1400148b1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001486d
xor al, al
jmp 0x1400148b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014881
xor al, al
jmp 0x1400148b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014893
xor al, al
jmp 0x1400148b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400148af
xor al, al
jmp 0x1400148b1
mov al, 1
add rsp, 0x38
ret
Function at 0x6d8f2250
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d9135e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8f23d8
mov rax, qword [0x6d9135e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8f229c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8f2325
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8f2280
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8f240d
mov rax, qword [0x6d9135e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d9135e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8f23f0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8f231e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8f2380
add dword [0x6d9135e4], 1
cmp edi, 8
jae 0x6d8f2353
test dil, 4
jne 0x6d8f23c4
test edi, edi
je 0x6d8f2348
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8f23df
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d8f2348
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d8f236c
jmp 0x6d8f2348
add rsi, qword [0x6d9135e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d8f231e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d8f2348
xor esi, esi
jmp 0x6d8f22a7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8f2348
mov rax, qword [0x6d9135e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d8f2b60
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d9138c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d9138a0]
test rbx, rbx
je 0x6d8f2bb4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d8f2bab
test rsi, rsi
je 0x6d8f2bab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8f2b90
lea rcx, [0x6d9138c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8f2df0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d8f2e00
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d8f2e10
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d8f2e51
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d8f2e48
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8f2e53
add rax, 0x28
cmp rax, r9
jne 0x6d8f2e34
xor eax, eax
ret

Function at 0x6d8f2ef0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d9101f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8f2f5d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8f2f5d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8f2f5d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8f2f54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8f2f5f
add rax, 0x28
cmp rax, r9
jne 0x6d8f2f40
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8f3060
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d9101f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8f3080
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8f3078
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8f30dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8f30d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8f30e4
add rax, 0x28
cmp rax, r9
jne 0x6d8f30c0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8f3100
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d9101f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8f316e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8f316e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8f316e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8f316e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d8f3165
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8f3175
add rcx, 0x28
cmp rcx, rax
jne 0x6d8f3150
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8f3188
jmp 0x6d8f316e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8f3196
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8f316e
test r9d, r9d
jg 0x6d8f3180
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8f3500
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ecx, ecx
mov dword [rsp + 0x30], 0
mov edx, 0x2db
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, 0x2db
lea rdx, [0x140003080]
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memmove
lea r9, [rsp + 0x30]
mov edx, 0x2db
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001098
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov r8, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400010c0
add rsp, 0x40
pop rbx
ret

Function at 0x140001988
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400019d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400019d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400019d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400019d2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400019d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400019d4
xor al, al
add rsp, 0x28
ret
Function at 0x14000147a
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400054d0]
mov dword [rax], 1
mov rax, qword [0x1400054e0]
mov dword [rax], 1
mov rax, qword [0x1400054f0]
mov dword [rax], 1
mov rax, qword [0x1400054c0]
mov dword [rax], 1
mov rax, qword [0x140005390]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
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 0x140001504
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400016ff
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x340
lea rbp, [rsp + 0x80]
call sym.__main
mov qword [rbp + 0x240], 0
mov qword [rbp + 0x248], 0
mov qword [rbp + 0x250], 0
mov dword [rbp + 0x258], 0
mov word [rbp + 0x25c], 0
mov qword [rbp + 0x25e], 0
mov qword [rbp + 0x266], 0
mov qword [rbp + 0x26e], 0
mov dword [rbp + 0x276], 0
mov word [rbp + 0x27a], 0
mov qword [rbp + 0x27c], 0
mov qword [rbp + 0x284], 0
mov qword [rbp + 0x28c], 0
mov dword [rbp + 0x294], 0
mov word [rbp + 0x298], 0
mov dword [rbp + 0x29a], 0
mov byte [rbp + 0x29e], 0x20
mov qword [rbp + 0x1e0], 0
mov qword [rbp + 0x1e8], 0
mov qword [rbp + 0x1f0], 0
mov dword [rbp + 0x1f8], 0
mov word [rbp + 0x1fc], 0
mov qword [rbp + 0x1fe], 0
mov qword [rbp + 0x206], 0
mov qword [rbp + 0x20e], 0
mov dword [rbp + 0x216], 0
mov word [rbp + 0x21a], 0
mov qword [rbp + 0x21c], 0
mov qword [rbp + 0x224], 0
mov qword [rbp + 0x22c], 0
mov dword [rbp + 0x234], 0
mov word [rbp + 0x238], 0
mov dword [rbp + 0x23a], 0
mov byte [rbp + 0x23e], 0x20
lea rax, [rbp - 0x60]
lea rdx, str.sohhhh
mov ecx, 0x47
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov rdx, rsi
mov rax, rdi
movzx ecx, word [rdx]
mov word [rax], cx
mov ecx, 0
call dbg.time
mov ecx, eax
call sym.srand
lea rax, section..rdata
mov rdx, rax
lea rax, str.lista.dat
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x2b0], rax
cmp qword [rbp + 0x2b0], 0
jne 0x1400018e9
lea rax, str.File_could_not_be_opened
mov rcx, rax
call sym.puts
mov ecx, 0
call sym.exit
mov dword [rbp + 0x2bc], 0
jmp 0x140001939
lea rcx, [rbp - 0x60]
mov eax, dword [rbp + 0x2bc]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 5
sub rax, rdx
add rax, rcx
mov rdx, qword [rbp + 0x2b0]
mov r9, rdx
mov r8d, 1
mov edx, 0x5f
mov rcx, rax
call sym.fwrite
add dword [rbp + 0x2bc], 1
cmp dword [rbp + 0x2bc], 5
jle 0x1400018f5
mov rax, qword [rbp + 0x2b0]
mov rcx, rax
call sym.fclose
lea rax, [0x140005026]
mov rdx, rax
lea rax, str.lista.dat
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x2b0], rax
cmp qword [rbp + 0x2b0], 0
jne 0x140001994
lea rax, str.file_could_not_be_opened
mov rcx, rax
call sym.puts
mov ecx, 0
call sym.exit
mov dword [rbp + 0x2b8], 1
jmp 0x1400019f7
mov dword [rbp + 0x2ac], 0
mov eax, dword [rbp + 0x2ac]
cdqe
imul eax, eax, 0x5f
mov edx, eax
mov rax, qword [rbp + 0x2b0]
mov r8d, 0
mov rcx, rax
call sym.fseek
mov rdx, qword [rbp + 0x2b0]
lea rax, [rbp + 0x240]
mov r9, rdx
mov r8d, 1
mov edx, 0x5f
mov rcx, rax
call sym.fwrite
add dword [rbp + 0x2b8], 1
cmp dword [rbp + 0x2b8], 7
jle 0x1400019a0
mov eax, 0
add rsp, 0x340
pop rsi
pop rdi
pop rbp
ret
Function at 0x140001d80
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400029b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140008128]
test eax, eax
je 0x140002a4a
lea rax, [0x140008100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140008130]
mov qword [rbp - 8], rax
jmp 0x140002a2e
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 0x140002a22
cmp qword [rbp - 0x10], 0
je 0x140002a22
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 0x1400029e8
lea rax, [0x140008100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002a4b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002b50
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 0x140002b78
mov eax, 0
jmp 0x140002bc6
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 0x140002ba1
mov eax, 0
jmp 0x140002bc6
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 0x140002bc1
mov eax, 0
jmp 0x140002bc6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140002bcc
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 0x140002c4a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002c41
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 0x140002c41
mov rax, qword [rbp - 8]
jmp 0x140002c5f
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 0x140002c14
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180003180
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x180014008]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, rdx
mov rdi, r8
call fcn.1800033ec
mov edx, 0x80
mov rcx, rdi
mov ebx, eax
call fcn.180003588
mov edx, ebx
mov rcx, rdi
call fcn.180003620
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor edx, edx
lea rcx, [rsp + 0x20]
mov ebx, eax
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
mov r9d, ebx
lea r8, [0x1800103ac]
mov edx, 0x20
lea rcx, [rsp + 0x20]
call fcn.180003314
lea rcx, [rsp + 0x20]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1800031f7
mov r8d, eax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1800035dc
mov eax, 0x16
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18000dd60
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x180003230
Capabilities:
Delete directory
Delete file
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
movsxd r9, dword [rdx + 0x14]
mov rcx, qword [rdx + 8]
mov r8d, dword [rdx + 0x10]
cmp r8d, r9d
jge 0x180003261
xor ecx, ecx
jmp 0x180003270
lea rax, [rcx + r9]
mov qword [rdx + 8], rax
sub r8d, r9d
mov dword [rdx + 0x10], r8d
mov r8, r9
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.180003360
nop
lea rdi, [0x180010510]
mov qword [rsp + 0x60], rdi
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x1800032ce
lea rax, [0x180010528]
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x50]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.180003e08
nop
test rbx, rbx
je 0x1800032dd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x1800032dd
test rbx, rbx
je 0x1800032dd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
mov qword [rsp + 0x60], rdi
test rbx, rbx
je 0x180003304
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x180003304
xor edx, edx
mov rcx, rbx
call sub.msvcrt.dll_memset
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
mov eax, 0x21
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x180003ce4
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, r9
mov qword [rsp + 0x20], r9
mov r9, r8
mov rbx, r8
mov r8d, 1
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x180003d16
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180003d49
mov eax, dword [rdi]
xor ecx, ecx
test eax, eax
je 0x180003d45
cmp byte [rbx], 0x3d
jne 0x180003d2a
mov byte [rbx], 0
dec eax
jmp 0x180003d3c
cmp byte [rbx], 0x2f
jne 0x180003d34
mov byte [rbx], 0x5f
jmp 0x180003d3c
cmp byte [rbx], 0x2b
jne 0x180003d3c
mov byte [rbx], 0x2d
inc ecx
inc rbx
cmp ecx, dword [rdi]
jb 0x180003d1e
mov dword [rdi], eax
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180003d54
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
test edx, edx
je 0x180003d90
mov rax, rcx
mov r10d, edx
cmp byte [rax], 0x5f
jne 0x180003d70
mov byte [rax], 0x2f
jmp 0x180003d78
cmp byte [rax], 0x2d
jne 0x180003d78
mov byte [rax], 0x2b
inc rax
sub r10, 1
jne 0x180003d66
jmp 0x180003d90
cmp edx, r8d
ja 0x180003dc9
mov eax, edx
inc edx
mov byte [rax + rcx], 0x3d
test dl, 3
jne 0x180003d83
mov rax, qword [rsp + 0x70]
mov r8d, 1
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x180003dc1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
add rsp, 0x40
pop rbx
ret
mov eax, 6
jmp 0x180003dc3
Function at 0x180003e08
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x180014008]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rsi, rdx
mov r14, rcx
mov r15d, 0x104
lea rcx, [rbp + 0x170]
mov r8d, r15d
xor edx, edx
mov rdi, r9
call sub.msvcrt.dll_memset
test rsi, rsi
je 0x180003f86
lea r8, [0x1800104fc]
mov rdx, rsi
lea rcx, [rbp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
je 0x180003f80
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180003f80
mov cl, byte [rsp + 0x4c]
cmp cl, byte [0x180010500]
mov al, byte [rsp + 0x4d]
jne 0x180003eb8
cmp al, byte [0x180010501]
je 0x180003f5d
cmp cl, byte [0x180010504]
jne 0x180003ed8
cmp al, byte [0x180010505]
jne 0x180003ed8
mov al, byte [rsp + 0x4e]
cmp al, byte [0x180010506]
je 0x180003f5d
xor edx, edx
mov r8, r15
test byte [rsp + 0x20], 0x10
je 0x180003f1f
lea rcx, [rbp + 0x60]
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x4c]
mov rdx, rsi
lea rcx, [rbp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
je 0x180003f5d
mov r9, rdi
lea rdx, [rbp + 0x60]
mov r8b, 1
mov rcx, r14
call fcn.180003e08
mov r8b, 1
lea rdx, [rbp + 0x60]
jmp 0x180003f4f
lea rcx, [rbp + 0x280]
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x4c]
mov rdx, rsi
lea rcx, [rbp + 0x280]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
je 0x180003f5d
xor r8d, r8d
lea rdx, [rbp + 0x280]
mov rax, qword [rdi]
lea r9, [rsp + 0x20]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180003e9c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x180003f89
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.18000dd60
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x4a0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret