joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002230
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000227c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x140002273
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000227e
add rax, 0x28
cmp rax, r9
jne 0x140002260
xor eax, eax
ret

Function at 0x140002280
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140002310
mov rdx, qword [0x14001ae00]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x1400022fe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400022fe
cmp word [rax + 0x18], 0x20b
jne 0x1400022fe
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140002310
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x1400022e9
add r12, 0x28
cmp r12, rsi
je 0x140002310
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x1400022e0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x140002320
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001ae00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002340
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002348
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002340
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002395
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000238c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002340
add rax, 0x28
cmp rax, r9
jne 0x140002378
xor eax, eax
ret

Function at 0x1400023a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001ae00]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400023c0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400023c8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400023c0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1400023e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14001ae00]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002400
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002408
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002400
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002448
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000243f
test rcx, rcx
je 0x140002400
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002430
xor eax, eax
ret
Function at 0x140002450
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001ae00]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002470
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002478
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140002490
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14001ae00]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400024b0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400024b8
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400024b0
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400024b0
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400024f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002508
add rax, 0x28
cmp r9, rax
jne 0x1400024e0
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x140002520
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14001ae00]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002542
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002550
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002542
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002542
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002542
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000259d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400025b0
add rdx, 0x28
cmp r10, rdx
jne 0x140002588
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400025bf
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400025cf
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400025a6
test ecx, ecx
jg 0x1400025b8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140003c40
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14001ae80]
mov rax, qword [rsi]
test rax, rax
je 0x140003cd0
cmp qword [rax + 0x30], 0
jne 0x140003cf0
lea rbx, [0x140019078]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140003ca0
cmp qword [rax + 0x30], 0
jne 0x140003cc0
lea rdx, [0x140019078]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140003c82
test rax, rax
jne 0x140003cc0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140003c90
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140003c60
test rax, rax
jne 0x140003cf0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140003c6b
Function at 0x1400078c0
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14001ae80]
mov rax, qword [rbx]
mov r12, rcx
mov esi, edx
test rax, rax
je 0x140007990
cmp qword [rax + 0x60], 0
jne 0x1400079b0
lea rcx, [0x140019068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
test rax, rax
je 0x1400079c0
cmp qword [rax + 0x1d8], r12
jne 0x1400079c0
test byte [rax + 0x40], 0xc
jne 0x1400079c0
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x1400079c0
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x1400079c0
mov rax, qword [rbx]
test rax, rax
je 0x140007a20
cmp qword [rax + 0x60], 0
jne 0x140007a40
lea rcx, [0x140019068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
test esi, esi
je 0x140007a50
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x140007a58
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp sym.pthread_cancel
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x1400078eb
test rax, rax
jne 0x1400079b0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x1400078f6
mov rax, qword [rbx]
test rax, rax
je 0x1400079f0
cmp qword [rax + 0x60], 0
jne 0x140007a10
lea rcx, [0x140019068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rbx]
cmp qword [r8 + 0x60], 0
je 0x1400079cf
test rax, rax
jne 0x140007a10
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x1400079da
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x14000795a
test rax, rax
jne 0x140007a40
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007965
xor eax, eax
jmp 0x1400079e4
mov eax, 0x16
jmp 0x1400079e4
Function at 0x1400089c0
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400089e0
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140008a28
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400089d4
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140008a15

Function at 0x140008a50
Capabilities:
Check mutex on windows

Disassembly:
push r12
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea r8, [0x14001e2c0]
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140008b08
mov rdx, qword [0x14001e200]
lea rcx, [0x14001e200]
mov rax, qword [rdx + 8]
test rax, rax
je 0x140008ad8
cmp rdx, rcx
jne 0x140008aba
mov qword [rdx], rax
cmp rax, rcx
je 0x140008abf
nop dword [rax]
test rax, rax
je 0x140008aea
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rdx, rax
mov rax, qword [rdx + 8]
cmp rax, rcx
jne 0x140008aa8
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
test rax, rax
je 0x140008aea
mov rdx, rax
jmp 0x140008ab6
lea rcx, [0x14001e300]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140008b26
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
lea rcx, str.failed_to_to_lock_cleanup_mutex_n
call sym.__shmem_get_error
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_DeleteAtom]
jmp 0x140008aea
Function at 0x14059d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14059d1df
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 0x14059d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14059d06f
add dl, dl
jne 0x14059d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14059d0f6
xor eax, eax
add dl, dl
jne 0x14059d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14059d1ad
add dl, dl
jne 0x14059d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14059d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14059d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14059d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14059d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14059d07e
mov eax, 1
add dl, dl
jne 0x14059d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14059d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14059d0fb
sub eax, ebx
mov ebx, 1
jne 0x14059d14c
mov ecx, 1
add dl, dl
jne 0x14059d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14059d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14059d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14059d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14059d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14059d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14059d15d
cmp eax, 0x7d00
jae 0x14059d19b
cmp eax, 0x500
jb 0x14059d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14059d07e
cmp eax, 0x7f
ja 0x14059d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14059d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14059d1d2
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 0x14059d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140058590]
mov dword [rax], 1
mov rax, qword [0x1400585a0]
mov dword [rax], 1
mov rax, qword [0x1400585b0]
mov dword [rax], 1
mov rax, qword [0x140058540]
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 0x140021a00
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.14003b5c0
sub rsp, rax
xor eax, eax
mov rdx, rcx
lea rbx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.140034120
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140021a59
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x14003a2a0
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 fcn.14004ba20
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14004ba20
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14003af72
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140061368]
test eax, eax
je 0x14003b00a
lea rax, [0x140061340]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140061370]
mov qword [rbp - 8], rax
jmp 0x14003afee
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 0x14003afe2
cmp qword [rbp - 0x10], 0
je 0x14003afe2
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 0x14003afa8
lea rax, [0x140061340]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14003b00b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14003b110
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 0x14003b138
mov eax, 0
jmp 0x14003b186
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 0x14003b161
mov eax, 0
jmp 0x14003b186
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 0x14003b181
mov eax, 0
jmp 0x14003b186
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14003b18c
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 0x14003b20a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14003b201
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 0x14003b201
mov rax, qword [rbp - 8]
jmp 0x14003b21f
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 0x14003b1d4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1414a42bc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1414a42c6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1414a42ef
pop rbp
sub rbp, 0x33
sub rbp, 0x14a42bc
sub rsp, 0x20
jmp 0x1414a430e
mov rax, 0x14a42bc
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffce30d1ec
xor byte [rax], dl
inc rax
dec rcx
jne 0x1414a432d
jmp 0x1414a4344
movsb byte [rdi], byte [rsi]
add eax, 0xecd06567
in al, dx
in al, dx
movsb byte [rdi], byte [rsi]
insd dword [rdi], dx
sub eax, 0xececede4
movsb byte [rdi], byte [rsi]
in eax, dx
add eax, 0xef2c2ba4
in al, dx
in al, dx
in al, dx
movsb byte [rdi], byte [rsi]
sub ebp, dword [rsi]
invalid
Function at 0x140001350
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1400035f0], rbx
je 0x14000139c
cmp rax, rbx
jne 0x14000138f
mov ebx, 1
mov esi, ebx
jmp 0x1400013a1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001374
mov ebx, 1
mov eax, dword [0x1400035f8]
cmp eax, ebx
jne 0x1400013b7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14000141c
mov eax, dword [0x1400035f8]
test eax, eax
jne 0x140001416
mov dword [0x1400035f8], ebx
lea r15, [0x140002168]
lea rdi, [0x140002150]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140001408
test eax, eax
jne 0x14000140c
cmp qword [rdi], 0
je 0x1400013fd
mov rax, qword [rdi]
mov rcx, qword [0x140002130]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400013de
test eax, eax
je 0x14000141c
mov eax, 0xff
jmp 0x1400014f8
mov dword [0x140003034], ebx
mov eax, dword [0x1400035f8]
cmp eax, ebx
jne 0x140001443
lea rdx, [0x140002148]
lea rcx, [0x140002138]
call sub.msvcrt.dll__initterm
mov dword [0x1400035f8], 2
test esi, esi
jne 0x140001450
xor eax, eax
xchg qword [0x1400035f0], rax
cmp qword [0x140003600], 0
je 0x140001484
lea rcx, [0x140003600]
call fcn.140001790
test eax, eax
je 0x140001484
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140003600]
mov r9, qword [0x140002130]
call r9
mov r8, qword [0x140003048]
mov rdx, qword [0x140003040]
mov ecx, dword [0x140003038]
call fcn.14000109c
mov dword [0x140003030], eax
cmp dword [0x140003050], 0
jne 0x1400014b4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140003034], 0
jne 0x1400014c9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140003030]
jmp 0x1400014f8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140173000
add rsp, 0x28
jmp 0x140001350

Function at 0x14000167c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400016c8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400016c0
cmp dword [rcx + 0x3c], edx
jl 0x1400016c0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400016c0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400016c8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140002790
Capabilities:
Create thread

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15d, r9d
mov rdi, r8
mov rbx, rdx
mov rbp, rcx
mov rax, qword [0x1400c5038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ecx, 1
mov edx, 0x1050
xor r8d, r8d
call fcn.140016170
mov rsi, rax
mov dword [rax], 0
lea r14, [rax + 8]
mov qword [rax + 8], rbp
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi + 0x20], rax
mov qword [rsi + 0x1048], rbx
mov byte [rsi + 0x2a], 0
mov word [rsi + 0x28], 0
mov qword [rsi + 0x30], rdi
mov dword [rsi + 0x38], r15d
cmp qword [0x1400c5008], 0xffffffffffffffff
jne 0x14000285c
lea rax, [0x1400c5ec0]
mov qword [0x1400c5ec0], rax
mov qword [0x1400c5ec8], rax
lea rcx, [0x1400c5ed0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1400c5008], rax
lea rdx, [0x140003200]
mov rcx, rax
xor r8d, r8d
call fcn.140017d80
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x1400028c0]
xor ecx, ecx
xor edx, edx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140002890
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsi + 0x2b], 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14006cf60
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140002af0
Capabilities:
Create thread

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15d, r9d
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
mov rax, qword [0x1400c5038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ecx, 1
mov edx, 0x1050
xor r8d, r8d
call fcn.140016170
mov rsi, rax
mov dword [rax], 1
lea r14, [rax + 8]
mov qword [rax + 8], rbp
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi + 0x20], rax
mov dword [rsi + 0x28], 0
mov qword [rsi + 0x30], rbx
lea rcx, [rsi + 0x58]
call fcn.1400180b0
mov dword [rsi + 0x80], 0
mov qword [rsi + 0x88], rdi
mov qword [rsi + 0x90], rsi
mov dword [rsi + 0x38], r15d
cmp qword [0x1400c5008], 0xffffffffffffffff
jne 0x140002bd3
lea rax, [0x1400c5ec0]
mov qword [0x1400c5ec0], rax
mov qword [0x1400c5ec8], rax
lea rcx, [0x1400c5ed0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1400c5008], rax
lea rdx, [0x140003200]
mov rcx, rax
xor r8d, r8d
call fcn.140017d80
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x140002c30]
xor ecx, ecx
xor edx, edx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140002c07
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14006cf60
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret