joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006d1f0
Capabilities:
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov ebx, ecx
call sub.SDL2.dll_SDL_GetError
mov ecx, 2
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [rsp + 0x20], rsi
mov r9d, ebx
lea r8, str.src_platform_tiles.c
mov rcx, rax
lea rdx, str.Fatal_SDL_image_error___s:_d_:__s_n
call fcn.140071800
mov ecx, 3
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
nop word cs:[rax + rax]
nop

Function at 0x14006d240
Capabilities:
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov ebx, ecx
call sub.SDL2.dll_SDL_GetError
mov ecx, 2
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [rsp + 0x20], rsi
mov r9d, ebx
lea r8, str.src_platform_tiles.c
mov rcx, rax
lea rdx, str.Fatal_SDL_error___s:_d_:__s_n
call fcn.140071800
mov ecx, 3
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
nop word cs:[rax + rax]
nop
Function at 0x14006ec60
Capabilities:
Write file on windows

Disassembly:
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140071680
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x14006ecd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140207d44]
test esi, esi
mov rbx, rcx
jle 0x14006ee00
mov rax, qword [0x140207d48]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14006ed1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14006eda5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14006ed00
mov rcx, rbx
call fcn.14006f720
test rax, rax
mov rdi, rax
je 0x14006ee22
mov rax, qword [0x140207d48]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14006f860
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140207d48]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14006ee07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14006ed9e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14006edb0
add dword [0x140207d44], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140207d48]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14006ed9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14006ec60
nop dword [rax]
xor esi, esi
jmp 0x14006ed28
mov rax, qword [0x140207d48]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14006ec60
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14006ec60
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14006f390
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140207da0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140207d80]
test rbx, rbx
je 0x14006f3ec
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14006f3e3
test rsi, rsi
je 0x14006f3e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14006f3c8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

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

Disassembly:
mov rdx, qword [0x14011db00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14006f740
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14006f748
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14006f740
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14006f79d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x14006f794
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14006f740
add rax, 0x28
cmp rax, r9
jne 0x14006f780
xor eax, eax
ret

Function at 0x14006f7a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14011db00]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14006f7bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14006f7c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14006f7bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14006f860
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14011db00]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14006f87f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14006f888
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400702b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
test rbx, rbx
mov dword [rax], 0
je 0x1400703f0
cmp byte [rbx], 0
je 0x1400703b8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140070400
test al, 0x10
je 0x1400703b8
lea rdi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rdi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__fullpath
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rcx, [rax + 0x24b]
mov rsi, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
mov rbx, rax
je 0x14007040f
lea rbp, [rsi + 1]
mov rdx, rdi
lea rcx, [rax + 0x244]
mov r8, rbp
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp byte [rbx + 0x244], 0
mov rcx, rax
je 0x140070360
movzx eax, byte [rbx + rsi + 0x243]
cmp al, 0x5c
je 0x140070360
cmp al, 0x2f
jne 0x1400703d8
lea rdx, [rbx + 0x130]
mov eax, 0x2a
mov word [rcx + rsi], ax
mov rdi, rdx
xor eax, eax
mov ecx, 0x20
mov qword [rbx + 0x238], 0xffffffffffffffff
mov dword [rbx + 0x240], 0
mov qword [rbx + 0x128], 0
rep stosq qword [rdi], rax
mov rax, rbx
mov dword [rdi], 0
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
xor ebx, ebx
mov dword [rax], 0x14
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, 0x5c
mov word [rcx + rsi], dx
mov rsi, rbp
jmp 0x140070360
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
xor ebx, ebx
mov dword [rax], 0xe
jmp 0x1400703c5
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x1400703c5
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
xor ebx, ebx
mov dword [rax], 0xc
jmp 0x1400703c5
Function at 0x140011258
Capabilities:
Terminate process

Disassembly:
jmp 0x140014410
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 0x1400112f8
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015760
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015780
xor al, al
jmp 0x140015801
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015793
xor al, al
jmp 0x140015801
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 0x1400157bd
xor al, al
jmp 0x140015801
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400157d1
xor al, al
jmp 0x140015801
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400157e3
xor al, al
jmp 0x140015801
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400157ff
xor al, al
jmp 0x140015801
mov al, 1
add rsp, 0x38
ret
Function at 0x140c43058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140c431df
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 0x140c43089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c4306f
add dl, dl
jne 0x140c43096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c430f6
xor eax, eax
add dl, dl
jne 0x140c430a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c431ad
add dl, dl
jne 0x140c430b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c430c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c430d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c430dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c430ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c4307e
mov eax, 1
add dl, dl
jne 0x140c43106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c43113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c430fb
sub eax, ebx
mov ebx, 1
jne 0x140c4314c
mov ecx, 1
add dl, dl
jne 0x140c4312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c4313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c43123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c4307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c43168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c43175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c4315d
cmp eax, 0x7d00
jae 0x140c4319b
cmp eax, 0x500
jb 0x140c43196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c4307e
cmp eax, 0x7f
ja 0x140c4319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c4307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c431d2
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 0x140c4307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400010b0
Capabilities:
Allocate or change rwx memory
Enumerate gui resources
Execute shellcode via windows callback function

Disassembly:
sub rsp, 0x28
xor ecx, ecx
mov edx, 0x1ff
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x140005828], rax
lea rdx, [0x140005040]
mov ecx, 3
nop
lea rax, [rax + 0x80]
movups xmm0, xmmword [rdx]
lea rdx, [rdx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm1, xmmword [rdx - 0x70]
movups xmmword [rax - 0x70], xmm1
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rax - 0x60], xmm0
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rax - 0x50], xmm1
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rax - 0x40], xmm0
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rax - 0x30], xmm1
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rax - 0x20], xmm0
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rax - 0x10], xmm1
sub rcx, 1
jne 0x1400010e0
movups xmm0, xmmword [rdx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rax + 0x60], xmm0
mov rcx, qword [rdx + 0x70]
mov qword [rax + 0x70], rcx
mov ecx, dword [rdx + 0x78]
mov dword [rax + 0x78], ecx
movzx ecx, word [rdx + 0x7c]
mov word [rax + 0x7c], cx
movzx ecx, byte [rdx + 0x7e]
xor edx, edx
mov byte [rax + 0x7e], cl
lea rcx, [0x140001020]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400011b0
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001cbc
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003dd4
cmp word [rcx], 0x5a4d
jne 0x140003dd4
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003dd4
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003dd4
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003ce0
test eax, eax
jne 0x140003df0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003d50
test rax, rax
je 0x140003de5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400045a2
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400044a0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004440
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 0x140004904
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140562878]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140562874]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004952
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000494a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004a39
inc ebx
add rax, 0x28
jmp 0x14000492a
mov rcx, r12
call fcn.140005131
mov rbp, rax
test rax, rax
jne 0x140004971
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400048a0
movsxd rbx, ebx
mov rax, qword [0x140562878]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.1400051df
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140562878]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400049d3
mov rax, qword [0x140562878]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400048a0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004a33
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004a33
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140562878]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004a33
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400048a0
inc dword [0x140562874]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004e60
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1405628e0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1405628c0]
test rbx, rbx
je 0x140004eac
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004ea6
test eax, eax
jne 0x140004ea6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004e7e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140005060
Capabilities:
Parse pe header

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

Function at 0x140005084
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x1400050be
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x1400050b5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400050c0
inc r8d
add rax, 0x28
jmp 0x14000509c
xor eax, eax
ret

Function at 0x140005131
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14055e950]
mov r8, rcx
mov rcx, r9
call fcn.140005060
test eax, eax
je 0x14000515d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140005084
xor eax, eax
add rsp, 0x28
ret
Function at 0x100002454
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x100004758], rdi
je 0x1000024a2
cmp rax, rdi
jne 0x100002495
mov edi, 1
mov r12d, edi
jmp 0x1000024a7
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100002479
mov edi, 1
mov eax, dword [0x100004750]
cmp eax, edi
jne 0x1000024bd
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x10000251a
mov eax, dword [0x100004750]
test eax, eax
jne 0x100002514
mov dword [0x100004750], edi
lea r13, [0x100001290]
lea rsi, [0x100001278]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x100002506
test eax, eax
jne 0x100002506
mov rcx, qword [rsi]
test rcx, rcx
je 0x1000024fb
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x1000024e4
test eax, eax
je 0x10000251a
mov eax, 0xff
jmp 0x1000025ec
mov dword [0x100004184], edi
mov eax, dword [0x100004750]
cmp eax, edi
jne 0x100002541
lea rdx, [0x100001270]
lea rcx, [0x100001260]
call sub.msvcrt.dll__initterm
mov dword [0x100004750], 2
test r12d, r12d
jne 0x10000254f
xor eax, eax
xchg qword [0x100004758], rax
cmp qword [0x100004760], 0
je 0x100002578
lea rcx, [0x100004760]
call fcn.10000284c
test eax, eax
je 0x100002578
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100004760]
mov r8, qword [0x100004168]
mov rdx, qword [0x100004170]
mov ecx, dword [0x100004160]
call fcn.100001b54
mov dword [0x100004180], eax
cmp dword [0x100004164], 0
jne 0x1000025a8
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100004184], 0
jne 0x1000025bd
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100004180]
jmp 0x1000025ec
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.100135000
add rsp, 0x28
jmp 0x100002454
Function at 0x1408ee058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1408ee1df
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 0x1408ee089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408ee06f
add dl, dl
jne 0x1408ee096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408ee0f6
xor eax, eax
add dl, dl
jne 0x1408ee0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408ee1ad
add dl, dl
jne 0x1408ee0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408ee0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408ee0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408ee0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408ee0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408ee07e
mov eax, 1
add dl, dl
jne 0x1408ee106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408ee113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408ee0fb
sub eax, ebx
mov ebx, 1
jne 0x1408ee14c
mov ecx, 1
add dl, dl
jne 0x1408ee12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408ee13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408ee123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408ee07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408ee168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408ee175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408ee15d
cmp eax, 0x7d00
jae 0x1408ee19b
cmp eax, 0x500
jb 0x1408ee196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408ee07e
cmp eax, 0x7f
ja 0x1408ee19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408ee07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408ee1d2
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 0x1408ee07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20