joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800e838c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800e83ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800de374
or eax, 0xffffffff
jmp 0x1800e83ae
xor eax, eax
add rsp, 0x28
ret

Function at 0x1800e9958
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1800e9935
call fcn.1800de3e4
mov dword [rax], 0x16
call fcn.1800df190
or eax, 0xffffffff
jmp 0x1800e9952
sub dword [rcx + 0x10], 1
jns 0x1800e9944
add rsp, 0x28
jmp 0x1800f4398
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1800e9914
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x1800f43ca
call fcn.1800de3e4
mov dword [rax], 0x16
call fcn.1800df190
jmp 0x1800f44e7
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800f44e7
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1800f44e7
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1800f43f9
lock or dword [rcx + 0x14], 0x10
jmp 0x1800f44e7
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1800f440d
call fcn.1800f71ec
mov rbx, qword [rdi + 8]
mov rcx, rdi
mov qword [rdi], rbx
call fcn.1800e801c
mov r8d, dword [rdi + 0x20]
mov ecx, eax
mov rdx, rbx
call fcn.1800f6288
mov dword [rdi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1800f44d5
mov eax, dword [rdi + 0x14]
or esi, 0xffffffff
test al, 6
jne 0x1800f44a0
mov rcx, rdi
call fcn.1800e801c
cmp eax, esi
je 0x1800f448b
mov rcx, rdi
call fcn.1800e801c
cmp eax, 0xfffffffe
je 0x1800f448b
mov rcx, rdi
call fcn.1800e801c
movsxd rbx, eax
lea r14, [0x18012f560]
mov rcx, rdi
sar rbx, 6
call fcn.1800e801c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1800f4492
lea rdx, [0x18012a460]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800f44a0
lock or dword [rdi + 0x14], 0x20
cmp dword [rdi + 0x20], 0x200
jne 0x1800f44c4
mov eax, dword [rdi + 0x14]
shr eax, 6
test al, 1
je 0x1800f44c4
mov eax, dword [rdi + 0x14]
shr eax, 8
test al, 1
jne 0x1800f44c4
mov dword [rdi + 0x20], 0x1000
add dword [rdi + 0x10], esi
mov rax, qword [rdi]
movzx esi, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x1800f44ea
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rdi + 0x14], eax
and dword [rdi + 0x10], 0
or esi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400054f0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x140005500]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140003180
jmp 0x14000123c
mov rax, qword [0x140005500]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x140005500]
mov dword [rax], 1
mov rax, qword [0x140005540]
mov rdx, rax
mov rax, qword [0x140005530]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140009024], 1
mov rax, qword [0x140005500]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140005520]
mov rdx, rax
mov rax, qword [0x140005510]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x140005500]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400054f0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x140005440]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140005440]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140002408
mov rax, qword [0x140005580]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400054e0]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140001c00
mov eax, dword [0x140009004]
lea rdx, [0x140009008]
mov ecx, eax
call fcn.14000147c
call fcn.140001997
mov rax, qword [0x140005470]
mov rax, qword [rax]
mov rdx, qword [0x140009010]
mov qword [rax], rdx
mov rcx, qword [0x140009010]
mov rdx, qword [0x140009008]
mov eax, dword [0x140009004]
mov r8, rcx
mov ecx, eax
call fcn.140001863
mov dword [0x14000901c], eax
mov eax, dword [0x140009020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000901c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140009024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14000901c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400054a0]
mov dword [rax], 1
mov rax, qword [0x1400054b0]
mov dword [rax], 1
mov rax, qword [0x1400054c0]
mov dword [rax], 1
mov rax, qword [0x140005460]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001782
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
cmp qword [rbp + 0x10], 0
je 0x140001859
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x10]
mov edx, eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
add eax, edx
cdqe
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x1c], 0x40
mov edx, dword [rbp - 0x1c]
lea rcx, [rbp - 0x20]
mov rax, qword [rbp - 0x10]
mov r9, rcx
mov r8d, 4
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
je 0x140001803
mov dword [rbp - 4], 0
jmp 0x1400017fb
mov edx, dword [rbp - 4]
mov rax, qword [rbp - 0x10]
add rax, rdx
mov byte [rax], 0
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp eax, dword [rbp - 0x1c]
jb 0x1400017ea
mov dword [rbp - 0x1c], 0x108
cmp qword [rbp - 0x18], 0
je 0x14000185c
mov edx, dword [rbp - 0x1c]
lea rcx, [rbp - 0x20]
mov rax, qword [rbp - 0x18]
mov r9, rcx
mov r8d, 4
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
je 0x14000185c
mov dword [rbp - 4], 0
jmp 0x14000184f
mov edx, dword [rbp - 4]
mov rax, qword [rbp - 0x18]
add rax, rdx
mov byte [rax], 0
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp eax, dword [rbp - 0x1c]
jb 0x14000183e
jmp 0x14000185c
nop
jmp 0x14000185d
nop
add rsp, 0x40
pop rbp
ret
Function at 0x140001863
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call fcn.140001997
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000189f
lea rax, str.Error_getting_module_handle_
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
mov eax, 1
jmp 0x1400018ce
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.140001782
lea rax, str.PE_headers_erased._The_executable_may_not_function_properly.
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
lea rax, str.pause
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_system
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x140001c10
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140002f70
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400028e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000297a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000295e
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 0x140002952
cmp qword [rbp - 0x10], 0
je 0x140002952
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 0x140002918
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000297b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002a80
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 0x140002aa8
mov eax, 0
jmp 0x140002af6
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 0x140002ad1
mov eax, 0
jmp 0x140002af6
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 0x140002af1
mov eax, 0
jmp 0x140002af6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140002afc
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 0x140002b7a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002b71
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 0x140002b71
mov rax, qword [rbp - 8]
jmp 0x140002b8f
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 0x140002b44
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001140
Capabilities:
Check os version
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword gs:[0x60]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140001170
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x118], 0xa
je 0x14000117d
mov dword [rsp + 0x34], 0
jmp 0x1400012ff
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
add rax, 0xfffffffffffffff0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x18], rax
cmp qword [rsp + 0x18], 0
jne 0x1400011bd
mov dword [rsp + 0x34], 0
jmp 0x1400012ff
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400011e7
mov dword [rsp + 0x34], 0
jmp 0x1400012ff
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp + 0x10]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x14000121b
mov dword [rsp + 0x34], 0
jmp 0x1400012ff
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp + 8]
mov ecx, dword [rcx + 0x88]
add rax, rcx
mov qword [rsp], rax
cmp qword [rsp], 0
jne 0x14000124a
mov dword [rsp + 0x34], 0
jmp 0x1400012ff
mov rax, qword [rsp + 0x18]
mov qword [0x1401e11f0], rax
mov rax, qword [rsp]
mov eax, dword [rax + 0x18]
mov dword [0x1401e11e8], eax
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp]
mov ecx, dword [rcx + 0x20]
add rax, rcx
mov qword [0x1401e11d8], rax
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp]
mov ecx, dword [rcx + 0x1c]
add rax, rcx
mov qword [0x1401e11d0], rax
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp]
mov ecx, dword [rcx + 0x24]
add rax, rcx
mov qword [0x1401e11e0], rax
cmp qword [0x1401e11f0], 0
je 0x1400012ea
cmp dword [0x1401e11e8], 0
je 0x1400012ea
cmp qword [0x1401e11d8], 0
je 0x1400012ea
cmp qword [0x1401e11d0], 0
je 0x1400012ea
cmp qword [0x1401e11e0], 0
jne 0x1400012f7
mov dword [rsp + 0x34], 0
jmp 0x1400012ff
mov dword [rsp + 0x34], 1
mov eax, dword [rsp + 0x34]
add rsp, 0x38
ret
Function at 0x140002c70
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rcx
add rdx, 0x15
mov qword [rsp + 0x18], rdx
xor eax, eax
cmp dword [0x1401e120c], 1
mov dword [rsp + 0x24], eax
je 0x140002cf2
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov dword [rsp + 4], eax
movsxd r8, eax
mov r8b, byte [rdx + r8]
mov r9d, 0x15
xor edx, edx
div r9d
mov eax, dword [rsp + 4]
mov r9d, edx
mov rdx, qword [rsp + 8]
movsxd r9, r9d
xor r8b, byte [rdx + r9]
movsxd rdx, eax
mov byte [rcx + rdx], r8b
add eax, 1
cmp eax, 9
mov dword [rsp + 0x24], eax
jne 0x140002c9a
mov dword [0x1401e120c], 1
add rsp, 0x28
ret

Function at 0x140002d00
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x20
mov qword [rsp], rdx
mov qword [rsp + 8], rcx
add rdx, 0x10
mov qword [rsp + 0x10], rdx
xor eax, eax
cmp dword [0x1401e1234], 1
mov dword [rsp + 0x1c], eax
je 0x140002d71
mov eax, dword [rsp + 0x1c]
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp]
mov r8, qword [rsp + 0x10]
movsxd r9, eax
mov r8b, byte [r8 + r9]
mov r9d, eax
and r9d, 0xf
movsxd r9, r9d
xor r8b, byte [rdx + r9]
movsxd rdx, eax
mov byte [rcx + rdx], r8b
add eax, 1
cmp eax, 0x21
mov dword [rsp + 0x1c], eax
jne 0x140002d29
mov dword [0x1401e1234], 1
add rsp, 0x20
ret

Function at 0x140002d80
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rcx
add rdx, 0x1e
mov qword [rsp + 0x18], rdx
xor eax, eax
cmp dword [0x1401e1250], 1
mov dword [rsp + 0x24], eax
je 0x140002e02
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov dword [rsp + 4], eax
movsxd r8, eax
mov r8b, byte [rdx + r8]
mov r9d, 0x1e
xor edx, edx
div r9d
mov eax, dword [rsp + 4]
mov r9d, edx
mov rdx, qword [rsp + 8]
movsxd r9, r9d
xor r8b, byte [rdx + r9]
movsxd rdx, eax
mov byte [rcx + rdx], r8b
add eax, 1
cmp eax, 0x15
mov dword [rsp + 0x24], eax
jne 0x140002daa
mov dword [0x1401e1250], 1
add rsp, 0x28
ret

Function at 0x140002e10
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rcx
add rdx, 0x16
mov qword [rsp + 0x18], rdx
xor eax, eax
cmp dword [0x1401e1264], 1
mov dword [rsp + 0x24], eax
je 0x140002e92
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov dword [rsp + 4], eax
movsxd r8, eax
mov r8b, byte [rdx + r8]
mov r9d, 0x16
xor edx, edx
div r9d
mov eax, dword [rsp + 4]
mov r9d, edx
mov rdx, qword [rsp + 8]
movsxd r9, r9d
xor r8b, byte [rdx + r9]
movsxd rdx, eax
mov byte [rcx + rdx], r8b
add eax, 1
cmp eax, 0x10
mov dword [rsp + 0x24], eax
jne 0x140002e3a
mov dword [0x1401e1264], 1
add rsp, 0x28
ret
Function at 0x140002ea0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x20
mov qword [rsp], rdx
mov qword [rsp + 8], rcx
add rdx, 0x10
mov qword [rsp + 0x10], rdx
xor eax, eax
cmp dword [0x1401e1278], 1
mov dword [rsp + 0x1c], eax
je 0x140002f11
mov eax, dword [rsp + 0x1c]
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp]
mov r8, qword [rsp + 0x10]
movsxd r9, eax
mov r8b, byte [r8 + r9]
mov r9d, eax
and r9d, 0xf
movsxd r9, r9d
xor r8b, byte [rdx + r9]
movsxd rdx, eax
mov byte [rcx + rdx], r8b
add eax, 1
cmp eax, 0xe
mov dword [rsp + 0x1c], eax
jne 0x140002ec9
mov dword [0x1401e1278], 1
add rsp, 0x20
ret

Function at 0x140002f20
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rcx
add rdx, 0x13
mov qword [rsp + 0x18], rdx
xor eax, eax
cmp dword [0x1401e128c], 1
mov dword [rsp + 0x24], eax
je 0x140002fa2
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov dword [rsp + 4], eax
movsxd r8, eax
mov r8b, byte [rdx + r8]
mov r9d, 0x13
xor edx, edx
div r9d
mov eax, dword [rsp + 4]
mov r9d, edx
mov rdx, qword [rsp + 8]
movsxd r9, r9d
xor r8b, byte [rdx + r9]
movsxd rdx, eax
mov byte [rcx + rdx], r8b
add eax, 1
cmp eax, 0xf
mov dword [rsp + 0x24], eax
jne 0x140002f4a
mov dword [0x1401e128c], 1
add rsp, 0x28
ret

Function at 0x140002fb0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rcx
add rdx, 0x1a
mov qword [rsp + 0x18], rdx
xor eax, eax
cmp dword [0x1401e12a0], 1
mov dword [rsp + 0x24], eax
je 0x140003032
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov dword [rsp + 4], eax
movsxd r8, eax
mov r8b, byte [rdx + r8]
mov r9d, 0x1a
xor edx, edx
div r9d
mov eax, dword [rsp + 4]
mov r9d, edx
mov rdx, qword [rsp + 8]
movsxd r9, r9d
xor r8b, byte [rdx + r9]
movsxd rdx, eax
mov byte [rcx + rdx], r8b
add eax, 1
cmp eax, 0xd
mov dword [rsp + 0x24], eax
jne 0x140002fda
mov dword [0x1401e12a0], 1
add rsp, 0x28
ret
Function at 0x14015d004
Capabilities:
Parse pe header

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

Function at 0x1401617c8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401615c4
Function at 0x140164e64
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140164e94
xor eax, eax
jmp 0x140164f57
mov rbp, rbx
cmp word [rax], si
je 0x140164eb9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140164ea0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140164e9c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140164d84
movsxd r14, eax
test eax, eax
jne 0x140164ef7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140164e8d
mov rcx, r14
call fcn.1401620ac
mov rdi, rax
test rax, rax
jne 0x140164f10
xor ecx, ecx
call fcn.1401625ec
jmp 0x140164eec
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140164d84
test eax, eax
jne 0x140164f41
mov rcx, rdi
call fcn.1401625ec
jmp 0x140164f4b
xor ecx, ecx
call fcn.1401625ec
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140169fd0
Capabilities:
Parse pe header

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