joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140054ce0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1400d3010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
call sub.VCRUNTIME140.dll_memset
mov edx, dword [rbx + 0x10]
mov ecx, 8
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140054d8f
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x140054d86
nop dword [rax + rax]
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
jb 0x140054d5d
mov rdx, qword [rdi]
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov rcx, rbx
test eax, eax
je 0x140054db2
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x140054d50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140054e70
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x48]
jmp 0x140054d91

Function at 0x140054e00
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x14102e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14102e1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14102e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14102e06f
add dl, dl
jne 0x14102e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14102e0f6
xor eax, eax
add dl, dl
jne 0x14102e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14102e1ad
add dl, dl
jne 0x14102e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14102e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14102e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14102e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14102e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14102e07e
mov eax, 1
add dl, dl
jne 0x14102e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14102e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14102e0fb
sub eax, ebx
mov ebx, 1
jne 0x14102e14c
mov ecx, 1
add dl, dl
jne 0x14102e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14102e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14102e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14102e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14102e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14102e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14102e15d
cmp eax, 0x7d00
jae 0x14102e19b
cmp eax, 0x500
jb 0x14102e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14102e07e
cmp eax, 0x7f
ja 0x14102e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14102e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14102e1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14102e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001230
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
nop dword [rax + rax]
mov rdx, qword [0x1400056c0]
lea r8, [rsp + 0x38]
mov rcx, qword [0x1400056b8]
add rdx, 0x17c17f0
mov r9d, 8
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [0x1400056c0]
lea r8, [rsp + 0x40]
mov rcx, qword [0x1400056b8]
add rdx, 0x1954568
mov rbx, qword [rsp + 0x38]
mov r9d, 8
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x1400056b8]
lea rdx, [rbx + 0x3c3]
mov r9d, 4
mov dword [rsp + 0x34], edi
lea r8, [rsp + 0x34]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x1400056b8]
lea rdx, [rbx + 0x13a8]
mov r9d, 4
mov dword [rsp + 0x30], edi
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ebx, dword [rsp + 0x30]
cmp ebx, 0xffffffff
je 0x140001250
mov rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x38]
mov ecx, ebx
mov qword [rsp + 0x38], rdi
sar ecx, 9
add rdx, 0x10
and ecx, 0x3f
mov qword [rsp + 0x20], rdi
shl ecx, 3
mov r9d, 8
add rdx, rcx
mov rcx, qword [0x1400056b8]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x1400056b8]
lea r8, [rsp + 0x40]
and ebx, 0x1ff
mov qword [rsp + 0x40], rdi
imul edx, ebx, 0x78
mov r9d, 8
mov qword [rsp + 0x20], rdi
add rdx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x30]
mov rcx, qword [0x1400056b8]
add rdx, 0x3c3
mov r9d, 4
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
je 0x140001250
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140001250
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
mov ecx, 2
call qword [sym.imp.USER32.dll_mouse_event]
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
mov ecx, 4
call qword [sym.imp.USER32.dll_mouse_event]
jmp 0x140001250

Function at 0x140001ecc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001f16
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001f16
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001f16
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001f16
cmp dword [rcx + 0x84], 0xe
jbe 0x140001f16
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001f18
xor al, al
add rsp, 0x28
ret
Function at 0x140001f78
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001fc2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001fc2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001fc2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001fc2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001fc2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001fc4
xor al, al
add rsp, 0x28
ret
Function at 0x1400041b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x1400042c8
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x1400a52f8]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x5e], 0
je 0x14000430d
movzx edi, word [rsi + 0x5c]
test bl, bl
je 0x140004412
mov word [rsi + 0x5c], 0xffff
mov byte [rsi + 0x5e], 0
jmp 0x140004412
mov eax, dword [rsi + 0x58]
test eax, eax
mov edi, 1
cmovg edi, eax
xor ebp, ebp
mov rcx, qword [rsi + 0x40]
call fcn.1400711c0
cmp eax, 0xffffffff
je 0x14000440e
mov byte [rsp + rbp + 0x58], al
inc rbp
cmp rbp, rdi
jb 0x14000431c
cmp byte [rsi + 0x5f], 0
je 0x140004360
movsx eax, byte [rsp + 0x58]
mov word [rsp + 0x56], ax
test bl, bl
je 0x1400043d2
movzx edi, word [rsp + 0x56]
mov word [rsi + 0x5c], di
jmp 0x140004412
lea r13, [rsp + 0x56]
lea r12, [rsp + 0x48]
lea r14, [rsp + 0x58]
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r15, qword [rdx]
lea r9, [rsp + rdi]
add r9, 0x58
mov rax, qword [rcx]
lea rbp, [rsp + 0x40]
mov qword [rsp + 0x38], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r12
mov r8, r14
call qword [rax + 0x18]
cmp eax, 1
jne 0x1400043fb
mov rax, qword [rsi + 0x50]
mov qword [rax], r15
cmp rdi, 8
je 0x14000440e
mov rcx, qword [rsi + 0x40]
call fcn.1400711c0
cmp eax, 0xffffffff
je 0x14000440e
mov byte [rsp + rdi + 0x58], al
inc rdi
jmp 0x14000436f
mov edi, edi
test rdi, rdi
jle 0x1400043f4
mov rdx, qword [rsi + 0x40]
movsx eax, byte [rsp + rdi + 0x57]
dec rdi
movzx ecx, ax
call fcn.140072754
cmp eax, 0xffffffff
jne 0x1400043d4
jmp 0x14000440e
movzx edi, word [rsp + 0x56]
jmp 0x140004412
cmp eax, 2
je 0x14000440e
cmp eax, 3
je 0x140004340
jmp 0x14000434a
mov di, 0xffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14005ec20
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140004480
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x1400a52f8]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r14, [rsp + 0x38]
lea r12, [rsp + 0x28]
lea r15, [rsp + 0x30]
mov ebp, 0xffffffff
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r12
mov r8, r15
mov r9, r14
call qword [rax + 0x20]
mov edi, eax
mov rbx, qword [rsp + 0x28]
sub rbx, r15
mov r9, qword [rsi + 0x40]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.140070de4
cmp rax, rbx
jne 0x140004507
cmp edi, 1
je 0x1400044b4
cmp edi, 2
je 0x140004507
mov rcx, qword [rsi + 0x40]
call fcn.140070a90
neg eax
sbb ebp, ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14005ec20
mov eax, ebp
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140004530
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x140004565
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140070de4
xor ebx, ebx
test rsi, rsi
jle 0x14000458a
movzx edx, byte [r14 + rbx]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp eax, 0xffffffff
je 0x14000458a
inc rbx
cmp rsi, rbx
jne 0x14000456c
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400045a0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15d, edx
mov rax, qword [0x1400a52f8]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp edx, 0xffffffff
je 0x1400045fd
mov rdi, rcx
mov byte [rsp + 0x57], r15b
cmp byte [rcx + 0x58], 0
je 0x14000460c
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x57]
mov edx, 1
mov r8d, 1
call fcn.140070de4
mov esi, 0xffffffff
cmp rax, 1
jne 0x1400046bc
xor esi, esi
cmp r15d, 0xffffffff
cmovne esi, r15d
jmp 0x1400046bc
lea rbx, [rsp + 0x58]
lea r12, [rsp + 0x48]
mov qword [r12], rbx
lea rsi, [rsp + 0x57]
lea r13, [rsp + 0x60]
lea r14, [rsp + 0x40]
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r8, rsi
lea r9, [rsp + 0x58]
call qword [rax + 0x10]
cmp qword [rsp + 0x40], rsi
je 0x1400046b7
mov ebp, eax
cmp eax, 3
je 0x140004696
cmp ebp, 1
ja 0x1400046b7
mov rsi, qword [rsp + 0x48]
sub rsi, rbx
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, rsi
call fcn.140070de4
cmp rax, rsi
jne 0x1400046b7
mov rsi, qword [rsp + 0x40]
cmp ebp, 1
je 0x140004629
jmp 0x1400045fd
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rsi
call fcn.140070de4
cmp rax, 1
je 0x1400045fd
mov esi, 0xffffffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14005ec20
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140004720
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x140004755
mov r9, qword [rdi + 0x40]
mov edx, 2
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140070de4
xor ebx, ebx
test rsi, rsi
jle 0x14000477b
movzx edx, word [r14 + rbx*2]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp ax, 0xffff
je 0x14000477b
inc rbx
cmp rsi, rbx
jne 0x14000475c
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140004790
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov esi, edx
mov rax, qword [0x1400a52f8]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp dx, 0xffff
je 0x1400047ec
mov rdi, rcx
mov word [rsp + 0x56], si
cmp byte [rcx + 0x58], 0
je 0x1400047fc
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x56]
mov edx, 2
mov r8d, 1
call fcn.140070de4
mov di, 0xffff
cmp rax, 1
jne 0x1400048ab
xor eax, eax
cmp si, 0xffff
cmove esi, eax
mov edi, esi
jmp 0x1400048ab
lea r15, [rsp + 0x58]
lea r12, [rsp + 0x48]
mov qword [r12], r15
lea rbx, [rsp + 0x56]
lea r13, [rsp + 0x60]
lea r14, [rsp + 0x40]
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov r8, rbx
lea r9, [rsp + 0x58]
call qword [rax + 0x10]
cmp qword [rsp + 0x40], rbx
je 0x1400048a7
mov ebp, eax
cmp eax, 3
je 0x140004886
cmp ebp, 1
ja 0x1400048a7
mov rbx, qword [rsp + 0x48]
sub rbx, r15
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.140070de4
cmp rax, rbx
jne 0x1400048a7
mov rbx, qword [rsp + 0x40]
cmp ebp, 1
je 0x140004819
jmp 0x1400047ec
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rbx
call fcn.140070de4
cmp rax, 1
je 0x1400047ec
mov di, 0xffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14005ec20
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400049c0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x1400049f7
movabs r9, 0xf000000000000000
shl rax, 4
movsx r10, byte [rdx]
add r10, rax
mov rcx, r10
and rcx, r9
mov rax, rcx
shr rax, 0x38
or rax, rcx
xor rax, r10
inc rdx
cmp r8, rdx
jne 0x1400049d1
ret

Function at 0x140004b10
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x140004b48
movabs r9, 0xf000000000000000
shl rax, 4
movzx r10d, word [rdx]
add r10, rax
mov rcx, r10
and rcx, r9
mov rax, rcx
shr rax, 0x38
or rax, rcx
xor rax, r10
add rdx, 2
cmp r8, rdx
jne 0x140004b21
ret
Function at 0x140023c40
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140023cc3
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x140023c8e
call fcn.1400313b0
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsi]
mov rdx, rsi
mov r9, rax
call fcn.140032d90
mov rcx, qword [rsi]
call fcn.140032d20
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140023cb3
mov qword [rsi], rdi
call fcn.1400313b0
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.140032d50
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140023e50
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x1400a52f8]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x140023e7f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140023e82
mov rcx, qword [rdi]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x140023ea3
test bl, bl
je 0x140023ef2
cmp byte [rdi + 8], 0
je 0x140023ee4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140023ee7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x140023eba
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140023ebd
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140023ed3
xor edi, edi
jmp 0x140023f6e
cmp byte [rdi + 8], 0
je 0x140023f26
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140023f29
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rdi + 8], 0
je 0x140023f03
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140023f06
mov rcx, qword [rdi]
call fcn.140032cf0
mov rcx, qword [0x1400a8990]
mov dil, 1
test rcx, rcx
je 0x140023f6e
mov edx, eax
mov r8d, esi
call fcn.1400280c0
jmp 0x140023f6e
mov rcx, qword [rdi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140023f3c
mov esi, dword [rsp + 0x24]
cmp byte [rdi + 8], 0
je 0x140023f4d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140023f50
mov rcx, qword [rdi]
call fcn.140032cf0
mov rcx, qword [0x1400a8990]
test rcx, rcx
je 0x140023f6b
mov edx, eax
mov r8d, esi
call fcn.1400280c0
mov dil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14005ec20
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140069434
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140069564
Function at 0x140006784
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1400b70a8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1400b70a4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400067d2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400067ca
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400068b9
inc ebx
add rax, 0x28
jmp 0x1400067aa
mov rcx, r12
call fcn.140006fb1
mov rbp, rax
test rax, rax
jne 0x1400067f1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140006720
movsxd rbx, ebx
mov rax, qword [0x1400b70a8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000705f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400b70a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140006853
mov rax, qword [0x1400b70a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140006720
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400068b3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400068b3
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 [0x1400b70a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400068b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140006720
inc dword [0x1400b70a4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140006ce0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1400b7100]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400b70e0]
test rbx, rbx
je 0x140006d2c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140006d26
test eax, eax
jne 0x140006d26
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140006cfe
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140006ee0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140006f03
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140006f03
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140006f04
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140006f3e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140006f35
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140006f40
inc r8d
add rax, 0x28
jmp 0x140006f1c
xor eax, eax
ret
Function at 0x140006fb1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14008ed60]
mov r8, rcx
mov rcx, r9
call fcn.140006ee0
test eax, eax
je 0x140006fdd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140006f04
xor eax, eax
add rsp, 0x28
ret

Function at 0x140007bf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x230
mov rbx, rcx
call sub.msvcrt.dll__errno
xor ecx, ecx
mov dword [rax], ecx
test rbx, rbx
jne 0x140007c1b
call sub.msvcrt.dll__errno
mov dword [rax], 0xe
jmp 0x140007c2c
cmp word [rbx], 0
jne 0x140007c33
call sub.msvcrt.dll__errno
mov dword [rax], 0x14
xor ebx, ebx
jmp 0x140007d43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140007c4e
call sub.msvcrt.dll__errno
mov dword [rax], 2
jmp 0x140007c2c
test al, 0x10
je 0x140007c21
lea rdi, [rsp + 0x28]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rdi
lea rbp, [0x14008dc60]
lea r12, [0x14008dc64]
call sub.msvcrt.dll__wfullpath
mov rcx, rdi
call sub.msvcrt.dll_wcslen
mov rcx, rbp
mov rbx, rax
call sub.msvcrt.dll_wcslen
mov rcx, r12
add rbx, rax
call sub.msvcrt.dll_wcslen
lea rcx, [rbx + rax + 0x229]
add rcx, rcx
call sub.msvcrt.dll_malloc
mov rbx, rax
test rax, rax
jne 0x140007cbc
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x140007c2c
lea rsi, [rax + 0x44c]
mov rdx, rdi
mov rcx, rsi
call sub.msvcrt.dll_wcscpy
cmp word [rbx + 0x44c], 0
je 0x140007d09
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp word [rbx + rax*2 + 0x44a], 0x2f
je 0x140007d09
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp word [rbx + rax*2 + 0x44a], 0x5c
je 0x140007d09
mov rdx, rbp
mov rcx, rsi
call sub.msvcrt.dll_wcscat
mov rdx, r12
mov rcx, rsi
call sub.msvcrt.dll_wcscat
xor edx, edx
xor eax, eax
mov ecx, 0x82
mov qword [rbx + 0x230], rdx
lea rdx, [rbx + 0x238]
mov dword [rbx + 0x448], eax
mov rdi, rdx
xor eax, eax
mov qword [rbx + 0x440], 0xffffffffffffffff
rep stosd dword [rdi], eax
mov rax, rbx
add rsp, 0x230
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret