joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e0480
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
movzx eax, word [rsp + 0x50]
and eax, 0x3ff
movzx eax, ax
bts eax, 0xa
movzx eax, ax
mov dword [rsp + 0x24], eax
call fcn.1400bf3b0
add rax, 0x98
mov qword [rsp + 0x30], rax
mov r9d, 2
lea r8, [rsp + 0x20]
mov edx, 0x20000001
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400e04e3
xor eax, eax
jmp 0x1400e0523
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x50], eax
je 0x1400e051e
cmp dword [rsp + 0x58], 0
je 0x1400e051e
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call fcn.1400dfc50
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call fcn.1400b9130
mov ecx, dword [rsp + 0x28]
cmp ecx, eax
jne 0x1400e051e
xor eax, eax
jmp 0x1400e0523
mov eax, 1
add rsp, 0x48
ret
Function at 0x1400e9330
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140135040]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1400e9359
jmp 0x1400e93de
mov rcx, qword [rbp + 0x30]
call fcn.1400f7c70
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1400e9372
jmp 0x1400e93de
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1400e938f
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400ef280
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 0
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400e1650
test eax, eax
jne 0x1400e93de
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.14006fcc0
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x1400eac30
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
lea rcx, [rsp + 0xe8]
call fcn.1400ab9d0
lea rcx, [rsp + 0xb8]
call fcn.1400ab9d0
lea rcx, [rsp + 0x88]
call fcn.1400ab9d0
call fcn.1400ce220
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.1400ab8c0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x1400eacd2
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.1400aba60
lea rcx, [rsp + 0xb8]
call fcn.1400aba60
lea rcx, [rsp + 0xe8]
call fcn.1400aba60
mov eax, dword [rsp + 0x54]
jmp 0x1400eae78
call fcn.1400ce220
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.1400ab8c0
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x1400ead32
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.1400aba60
lea rcx, [rsp + 0xb8]
call fcn.1400aba60
lea rcx, [rsp + 0xe8]
call fcn.1400aba60
mov eax, dword [rsp + 0x5c]
jmp 0x1400eae78
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x1400eadb8
call fcn.1400ce220
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.1400ab8c0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x1400eada6
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.1400aba60
lea rcx, [rsp + 0xb8]
call fcn.1400aba60
lea rcx, [rsp + 0xe8]
call fcn.1400aba60
mov eax, dword [rsp + 0x64]
jmp 0x1400eae78
lea rcx, [rsp + 0x88]
call fcn.1400a0ae0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.1400a0ae0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.1400a0ae0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.1400aba60
lea rcx, [rsp + 0xb8]
call fcn.1400aba60
lea rcx, [rsp + 0xe8]
call fcn.1400aba60
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret
Function at 0x1400ec4b0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400ab9d0
lea rcx, [rsp + 0x48]
call fcn.1400ab9d0
call fcn.1400ce220
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400ab8c0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400ec51f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400aba60
lea rcx, [rsp + 0x78]
call fcn.1400aba60
mov eax, dword [rsp + 0x24]
jmp 0x1400ec5b0
call fcn.1400ce220
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400ab8c0
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400ec566
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400aba60
lea rcx, [rsp + 0x78]
call fcn.1400aba60
mov eax, dword [rsp + 0x2c]
jmp 0x1400ec5b0
lea rcx, [rsp + 0x48]
call fcn.1400a0ae0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400a0ae0
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400aba60
lea rcx, [rsp + 0x78]
call fcn.1400aba60
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x142151058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1421511df
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 0x142151089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14215106f
add dl, dl
jne 0x142151096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1421510f6
xor eax, eax
add dl, dl
jne 0x1421510a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1421511ad
add dl, dl
jne 0x1421510b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1421510c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1421510d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1421510dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1421510ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14215107e
mov eax, 1
add dl, dl
jne 0x142151106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142151113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1421510fb
sub eax, ebx
mov ebx, 1
jne 0x14215114c
mov ecx, 1
add dl, dl
jne 0x14215112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14215113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142151123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14215107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x142151168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142151175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14215115d
cmp eax, 0x7d00
jae 0x14215119b
cmp eax, 0x500
jb 0x142151196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14215107e
cmp eax, 0x7f
ja 0x14215119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14215107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1421511d2
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 0x14215107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002c90
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x20
xor ebx, ebx
lea r14, [rcx + 0xf0]
mov rax, qword [r14]
mov rbp, rcx
lea r9d, [rbx + 1]
cmp rax, r14
je 0x140002cdc
nop dword [rax + rax]
mov rbx, rax
cmp word [rax + 0x10], dx
jne 0x140002ccf
cmp byte [rax + 0x29], r8b
je 0x140002cd7
mov rax, qword [rax]
cmp rax, r14
jne 0x140002cc0
cmp rax, r14
jne 0x140002d46
lea rax, [rcx + 0x110]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140002d11
nop dword [rax + rax]
cmp byte [rbx + 0x28], 0
jge 0x140002d09
cmp word [rbx + 0x26], r9w
jb 0x140002d11
cmp word [rbx + 0x10], dx
jne 0x140002d09
cmp byte [rbx + 0x29], r8b
je 0x140002d43
mov rbx, qword [rbx]
cmp rbx, rax
jne 0x140002cf0
lea rax, [rcx + 0x100]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140002d41
cmp byte [rbx + 0x28], 0
jge 0x140002d39
cmp word [rbx + 0x26], r9w
jb 0x140002d41
cmp word [rbx + 0x10], dx
jne 0x140002d39
cmp byte [rbx + 0x29], r8b
je 0x140002d43
mov rbx, qword [rbx]
cmp rbx, rax
jne 0x140002d20
xor ebx, ebx
xor r9d, r9d
test rbx, rbx
jne 0x140002d5e
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
movzx eax, r8b
mov qword [rsp + 0x30], rsi
cmp rax, qword [rcx + 0x48]
jae 0x140002da9
lea r8, [rax + rax*4]
shr dx, 0xc
shl r8, 4
add r8, qword [rcx + 0x40]
movzx eax, dx
lea rcx, [r8 + rax*2]
movzx eax, word [r8 + rax*2 + 6]
test ax, ax
je 0x140002da9
sub ax, 1
mov word [rcx + 6], ax
jne 0x140002da9
movzx ecx, word [r8 + 4]
movzx eax, dx
btr ecx, eax
mov word [r8 + 4], cx
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
movzx esi, byte [rbx + 0x28]
and esi, 0xf
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
cmp qword [rbx + 0x58], 0
je 0x140002e32
test r9d, r9d
je 0x140002ddb
movzx eax, word [rbx + 0x24]
sub dword [rbp + 0xd8], eax
mov rax, qword [rbx + 0x58]
dec qword [rax]
mov rax, qword [rbx + 0x58]
cmp qword [rax], 0
jne 0x140002e32
or dword [rax + 8], 0x100
mov qword [rsp + 0x38], rdi
mov rdi, qword [rbx + 0x58]
test rdi, rdi
je 0x140002e2d
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x140002e0f
mov rcx, rdi
call rax
test byte [rdi + 8], 4
jne 0x140002e24
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140002e24
call qword [0x14000b0c0]
mov rcx, rdi
call qword [0x14000b0c0]
mov rdi, qword [rsp + 0x38]
mov rcx, rbx
call qword [0x14000b0c0]
mov rcx, qword [r14]
cmp rcx, r14
je 0x140002e4c
mov eax, dword [rcx + 0x18]
add eax, dword [rcx + 0x14]
mov dword [rbp + 0x70], eax
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140005950
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400059b9
movzx eax, word [rsp + 0x20]
cmp al, 1
jne 0x1400059b3
shr ax, 8
cmp al, 1
jne 0x1400059b3
mov ecx, 1
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400076c0
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400076c0
add rsp, 0x1d8
ret
Function at 0x14000802c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008076
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008076
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008076
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008076
cmp dword [rcx + 0x84], 0xe
jbe 0x140008076
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140008078
xor al, al
add rsp, 0x28
ret
Function at 0x140001020
Capabilities:
Create thread
Execute command

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
lea r8, section..text
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
movzx eax, byte [0x14000566c]
test al, al
je 0x140001080
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Success
call fcn.140001130
mov rcx, rax
lea rdx, [0x140001310]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
movzx eax, byte [0x14000566c]
test al, al
jne 0x1400010ab
nop
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rdx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, [0x1400032e8]
call fcn.140001130
inc rbx
cmp byte [0x14000566c], 0
je 0x140001080
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140001c28
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b104
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b104
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027b2c
cmp rax, 0xffffffffffffffff
je 0x140027b2c
xor edi, edi
test rbp, rbp
jle 0x140027ad7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001da18
mov rbx, rax
test rax, rax
jne 0x140027a64
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027acd
mov edx, 0x8000
mov ecx, r14d
call fcn.140018a68
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001bde0
cmp eax, 0xffffffff
je 0x140027aad
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027a74
mov edx, r15d
mov ecx, r14d
call fcn.140018a68
jmp 0x140027acd
cmp byte [rsi + 0x38], dil
je 0x140027ac4
cmp dword [rsi + 0x34], 5
jne 0x140027ac4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027acd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400197c8
jmp 0x140027b40
jns 0x140027b40
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b104
cmp rax, 0xffffffffffffffff
jne 0x140027af8
cmp byte [rsi + 0x30], dil
je 0x140027b40
mov edi, dword [rsi + 0x2c]
jmp 0x140027b40
mov ecx, r14d
call fcn.140017594
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027b40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027b40
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027b39
mov eax, dword [rsi + 0x2c]
jmp 0x140027b3e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b104
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140028c30
Capabilities:
Parse pe header

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

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x180001a38
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x180001a9c
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x180001a8a
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180001a83
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180001a57
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x1800ac600]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180001aac
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x1800ac620]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x180001ae2
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x40]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180001b18
mov eax, 0xa
jmp 0x180001ba7
test esi, esi
je 0x180001b3a
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180001b5b
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180001b5b
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180001b55
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180001b5b
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, sil
shl sil, 2
add al, al
xor al, byte [rbx + 0x20]
and al, 2
xor al, byte [rbx + 0x20]
xor sil, al
and sil, 4
xor sil, al
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x1800021f8
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x18000220f
cmp r8b, 0x90
je 0x18000220f
cmp r8b, 0xcc
jne 0x180002231
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x18000222d
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x180002231
add edx, r10d
cmp edx, r9d
jb 0x18000221d
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x180002598
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x1800025e2
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x1800ac610]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
jmp 0x18000261b
cmp rbx, r14
jb 0x180002618
cmp rbx, r12
jae 0x180002618
cmp qword [rbx + 8], rsi
jne 0x18000277d
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180002604
mov r15, rdi
cmp rdi, r14
jb 0x180002737
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
jmp 0x180002667
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800026a1
cmp dword [rbp - 0x10], 0x10000
je 0x180002671
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x1800026a1
sub r15, r13
cmp r15, r14
jae 0x18000263d
jmp 0x1800026a1
test r15, r15
je 0x1800026a1
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180002742
cmp r15, r14
jae 0x18000262c
test rbx, rbx
jmp 0x180002735
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x18000277d
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000277d
cmp dword [rbp - 0x10], 0x10000
je 0x180002710
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jbe 0x1800026cd
jmp 0x18000277d
test rdi, rdi
je 0x18000277d
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180002742
cmp rdi, r12
jbe 0x1800026a9
jmp 0x18000277d
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x18000274e
mov rax, qword [0x1800ac610]
mov qword [rbx], rax
mov qword [0x1800ac610], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret