joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e000
Capabilities:
Parse pe header

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rax, qword [0x0044cab0]
add rax, 0x10
mov qword [0x0044cbd8], rax
mov rax, qword [0x0044c9d8]
mov rsi, rcx
add rax, 0x10
test rcx, rcx
mov qword [0x0044cb50], rax
je 0x41e1e0
call fcn.00419730
mov qword [rsp + 0x40], 0
mov rax, qword [0x0044c9d8]
mov rbp, rax
add rbp, 0x10
je 0x41e1d3
cmp word [rax + 0x10], 0x5a4d
jne 0x41e1d3
movsxd rbx, dword [rax + 0x4c]
cmp ebx, 0x400
jg 0x41e1d3
add rbx, rbp
cmp dword [rbx], 0x4550
jne 0x41e1d3
mov eax, dword [rbx + 0xb0]
lea r14, [rsp + 0x40]
mov r8d, 0
mov rcx, qword [rsi + 0x3f8]
lea r9, [rsp + 0x48]
mov rdx, r14
test eax, eax
mov rax, qword [rbx + 0x30]
mov qword [rsp + 0x40], rax
movsxd rax, dword [rbx + 0x50]
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x3000
mov qword [rsp + 0x48], rax
je 0x41e1c0
call fcn.00417d00
mov rdx, qword [rsp + 0x40]
mov qword [rbx + 0x30], rdx
movsxd r9, dword [rbx + 0x54]
lea r13, [rsp + 0x50]
mov r8, rbp
mov rcx, qword [rsi + 0x3f8]
mov qword [rsp + 0x20], r13
xor r12d, r12d
mov qword [rsp + 0x50], 0
lea rdi, [rbx + 0x108]
call fcn.00417d70
cmp word [rbx + 6], 0
je 0x41e160
nop word [rax + rax]
movsxd rdx, dword [rdi + 0xc]
add r12, 1
add rdi, 0x28
mov rcx, qword [rsp + 0x40]
call fcn.0040efa0
movsxd rdx, dword [rdi - 0x14]
movsxd r9, dword [rdi - 0x18]
mov rcx, qword [rsi + 0x3f8]
mov qword [rsp + 0x20], r13
lea r8, [rbp + rdx]
mov rdx, rax
call fcn.00417d70
movzx eax, word [rbx + 6]
cmp rax, r12
jg 0x41e120
mov rcx, qword [rsp + 0x40]
call fcn.0041dd60
movsxd rax, dword [rbx + 0x50]
mov r9d, 0x20
mov rdx, r14
movsxd rsi, dword [rbx + 0x28]
lea r8, [rsp + 0x58]
mov rcx, 0xffffffffffffffff
mov dword [rsp + 0x3c], 0
add rsi, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
call fcn.00417de0
call rsi
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call fcn.00417d00
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jne 0x41e0df
xor ecx, ecx
call sub.msvcrt.dll_exit
nop word [rax + rax]
call fcn.00419730
jmp 0x41e043
Function at 0x41fb90
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00439d24]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x41fd18
mov rax, qword [0x00439d28]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x41fbdc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x41fc65
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x41fbc0
mov rcx, rbx
call fcn.00420830
test rax, rax
mov r12, rax
je 0x41fd4d
mov rax, qword [0x00439d28]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00420960
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00439d28]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x41fd30
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x41fc5e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x41fcc0
add dword [0x00439d24], 1
cmp edi, 8
jae 0x41fc93
test dil, 4
jne 0x41fd04
test edi, edi
je 0x41fc88
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x41fd1f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x41fc88
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x41fcac
jmp 0x41fc88
add rsi, qword [0x00439d28]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41fc5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00420dd0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x41fc88
xor esi, esi
jmp 0x41fbe7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x41fc88
mov rax, qword [0x00439d28]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00420dd0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00420dd0
nop
nop dword [rax]

Function at 0x4204a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0043a000]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00439fe0]
test rbx, rbx
je 0x4204f4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4204eb
test rsi, rsi
je 0x4204eb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4204d0
lea rcx, [0x0043a000]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x420830
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00432d50]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x42089d
mov rcx, r8
call fcn.00420710
test eax, eax
je 0x42089d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x42089d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x420894
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x42089f
add rax, 0x28
cmp rax, r9
jne 0x420880
xor eax, eax
add rsp, 0x28
ret

Function at 0x420dd0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00420c40
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00420c40
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Spawn thread to rwx shellcode

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ecx, ecx
mov dword [rsp + 0x30], 0
mov edx, 0x1cc
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r9d, r9d
lea r8, [0x1400030a0]
xor edx, edx
lea r10, str.mysuperdupersecretkey
mov rbx, rax
nop word [rax + rax]
xor ecx, ecx
lea r8, [r8 + 1]
cmp rdx, 0x15
cmovne rcx, rdx
inc r9d
movzx eax, byte [rcx + r10]
lea rdx, [rcx + 1]
xor byte [r8 - 1], al
cmp r9d, 0x1cc
jb 0x140001050
mov r8d, 0x1cc
lea rdx, [0x1400030a0]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea r9, [rsp + 0x30]
mov edx, 0x1cc
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400010d8
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov r8, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001100
add rsp, 0x40
pop rbx
ret

Function at 0x1400019c8
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100011df8], rdi
je 0x10000bb40
cmp rax, rdi
jne 0x10000bb33
mov r12d, 1
jmp 0x10000bb40
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10000bb19
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bb55
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10000bbbc
mov eax, dword [0x100011df0]
cmp eax, ebx
jne 0x10000bbb2
mov dword [0x100011df0], 1
lea r13, [0x100001448]
lea rdi, [0x100001430]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000bba4
cmp eax, ebx
jne 0x10000bba4
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10000bb99
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10000bb82
cmp eax, ebx
je 0x10000bbbc
mov eax, 0xff
jmp 0x10000bd04
mov dword [0x1000115d4], 1
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bbe4
lea rdx, [0x100001428]
lea rcx, [0x1000013f0]
call sub.msvcrt.dll__initterm
mov dword [0x100011df0], 2
cmp r12d, ebx
jne 0x10000bbf3
mov rax, rbx
xchg qword [0x100011df8], rax
cmp qword [0x100011e10], rbx
je 0x10000bc1b
lea rcx, [0x100011e10]
call fcn.10000c0cc
cmp eax, ebx
je 0x10000bc1b
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100011e10]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10000bc31
mov eax, 0xff
jmp 0x10000bd04
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc4c
cmp edx, ebx
jne 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc62
cmp word [rcx], 0x20
ja 0x10000bc62
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc4c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100002d14
mov dword [0x1000115d0], eax
cmp dword [0x1000115b4], ebx
jne 0x10000bca0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000115d4], ebx
jne 0x10000bcb4
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000115d0]
jmp 0x10000bd04
cmp word [rcx], 0x22
jne 0x10000bcc9
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc3d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.100133000
add rsp, 0x28
jmp 0x10000bae0
Function at 0x403070
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040f900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040f8e0]
test rbx, rbx
je 0x4030c4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x4030bb
test r12, r12
je 0x4030bb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4030a0
lea rcx, [0x0040f900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x403400
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x0040bf40]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x403479
mov rcx, r10
call fcn.004032d0
test eax, eax
je 0x403479
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x403476
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x40346d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x403479
add r8, 0x28
cmp r8, r9
jne 0x403458
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x409760
Capabilities:
Write file on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], r8
je 0x40978f
lea rdx, [rsp + 0x24]
lea r8, [rsp + 0x28]
call qword [rcx + 0x18]
nop
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
call fcn.00402160
mov rcx, rax
cmp rdx, 1
je 0x4097cf
cmp rdx, 2
je 0x409805
call sub.libstdc_6.dll___cxa_begin_catch
mov ecx, 2
call qword [fcn.004094a0]
mov r9, rax
mov r8d, 0x19
mov edx, 1
lea rcx, str.Unknown_exception_caught_n
call sub.msvcrt.dll_fwrite
jmp 0x4097f9
call sub.libstdc_6.dll___cxa_begin_catch
mov ecx, 2
call qword [fcn.004094a0]
mov r9, rax
mov r8d, 0xe
mov edx, 1
lea rcx, str.Out_of_memory_n
call sub.msvcrt.dll_fwrite
call sub.libstdc_6.dll___cxa_end_catch
mov eax, 1
jmp 0x409786
call sub.libstdc_6.dll___cxa_begin_catch
mov rbx, rax
mov rax, qword [rax]
mov rcx, rbx
call qword [rax + 0x10]
mov rsi, rax
mov rax, qword [rbx]
mov rax, qword [rax - 8]
mov rbx, qword [rax + 8]
cmp byte [rbx], 0x2a
je 0x40986b
mov ecx, 2
call qword [fcn.004094a0]
mov rcx, rax
mov r9, rsi
lea rdx, str.Caught__s:_n_s_n
mov r8, rbx
call fcn.00409730
jmp 0x4097f9
add rbx, 1
jmp 0x409829
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
add ecx, dword [rax]
invalid
Function at 0x140013938
Capabilities:
Terminate process

Disassembly:
jmp 0x140036eb0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140013aa0
Capabilities:
Get geographical location

Disassembly:
jmp 0x140030950
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14003098d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.14001409f
add rsp, 0x58
ret

Function at 0x140013b4f
Capabilities:
Parse pe header

Disassembly:
jmp 0x140036260
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140036280
xor al, al
jmp 0x140036301
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140036293
xor al, al
jmp 0x140036301
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400362bd
xor al, al
jmp 0x140036301
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400362d1
xor al, al
jmp 0x140036301
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400362e3
xor al, al
jmp 0x140036301
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400362ff
xor al, al
jmp 0x140036301
mov al, 1
add rsp, 0x38
ret
Function at 0x140013c9e
Capabilities:
Create thread

Disassembly:
jmp 0x14001df70
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x14004c048]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x14005510b]
call fcn.1400140ae
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140013474
mov r8, qword [rbp + 0x140]
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.140013f5f
nop
lea rax, [0x1400136f9]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.140013afa
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x14001e056
lea rcx, [rbp + 8]
call fcn.14001406d
jmp 0x14001e06f
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400133ed
nop
lea rcx, [rbp + 8]
call fcn.140013be5
lea rcx, [rbp - 0x30]
lea rdx, [0x140042680]
call fcn.140013d98
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.140013811
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x14076c2c0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14076c447
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 0x14076c2f1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14076c2d7
add dl, dl
jne 0x14076c2fe
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14076c35e
xor eax, eax
add dl, dl
jne 0x14076c30d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14076c415
add dl, dl
jne 0x14076c31e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14076c32b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14076c338
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14076c345
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14076c352
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14076c2e6
mov eax, 1
add dl, dl
jne 0x14076c36e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14076c37b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14076c363
sub eax, ebx
mov ebx, 1
jne 0x14076c3b4
mov ecx, 1
add dl, dl
jne 0x14076c396
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14076c3a3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14076c38b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14076c2e6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14076c3d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14076c3dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14076c3c5
cmp eax, 0x7d00
jae 0x14076c403
cmp eax, 0x500
jb 0x14076c3fe
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14076c2e6
cmp eax, 0x7f
ja 0x14076c406
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14076c2e6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14076c43a
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 0x14076c2e6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400017f8
Capabilities:
Parse pe header

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

Function at 0x1400059f4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400057f0
Function at 0x140008abc
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 0x140008aec
xor eax, eax
jmp 0x140008baf
mov rbp, rbx
cmp word [rax], si
je 0x140008b11
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140008af8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140008af4
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.1400089dc
movsxd r14, eax
test eax, eax
jne 0x140008b4f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140008ae5
mov rcx, r14
call fcn.140009998
mov rdi, rax
test rax, rax
jne 0x140008b68
xor ecx, ecx
call fcn.14000703c
jmp 0x140008b44
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.1400089dc
test eax, eax
jne 0x140008b99
mov rcx, rdi
call fcn.14000703c
jmp 0x140008ba3
xor ecx, ecx
call fcn.14000703c
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