joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a1f50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1401297c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ws2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400a1fe5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.vcruntime140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400a2046
lea rdx, [0x1400cd478]
mov rcx, rdi
call fcn.14007c680
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400b6140
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400a2101
sub ecx, 1
je 0x1400a2174
sub ecx, 1
je 0x1400a20b0
cmp ecx, 1
je 0x1400a2093
lea r8, [0x1400cd4a8]
mov rcx, rdi
lea rdx, [0x1400ca580]
call fcn.14007c680
jmp 0x1400a2174
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400a1c80
test eax, eax
je 0x1400a2174
jmp 0x1400a201a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.vcruntime140.dll_memchr
test rax, rax
je 0x1400a2174
sub rax, rsi
cmp rax, rbp
jae 0x1400a2174
mov r8, rsi
lea rdx, [0x1400cd498]
mov rcx, rdi
call fcn.14007c800
jmp 0x1400a2174
cmp r8d, 4
jle 0x1400a2174
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400a2174
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14007c5a0
mov esi, eax
test eax, eax
je 0x1400a2153
mov edx, 5
mov rcx, rbx
call fcn.1400a2c40
mov eax, esi
jmp 0x1400a201a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14008b070
mov rcx, r14
call fcn.14008b350
test eax, eax
je 0x1400a2018
mov edx, 5
mov rcx, rbx
call fcn.1400a2c40
mov eax, 0x2a
jmp 0x1400a201a
Function at 0x1400b4f10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.ucrtbase.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400b4f52
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400b4f99
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + 0x10]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400b4ff2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + 8]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + 8]
sub rbp, 1
jne 0x1400b4fb0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400b5033
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400cfd0a]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400cfd0b]
mov r8d, 1
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400b5000
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400b5148
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, [0x1400cfe20]
mov r9d, 2
call qword [sym.imp.kernel32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400b5182
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400b5187
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.kernel32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400b51d0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400cfd20]
cmp byte [rcx + rax], 0
je 0x1400b51d0
dec r8
sub rdx, 1
jne 0x1400b51b6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400b6adc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b6b26
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b6b26
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b6b26
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b6b26
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b6b26
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400b6b28
xor al, al
add rsp, 0x28
ret
Function at 0x140002ae0
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.140019f50
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.140019f50
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 0x140002b50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400210b4]
mov r12, rcx
test ebx, ebx
jle 0x140002c80
mov rax, qword [0x1400210b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140002b9c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140002c23
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140002b80
mov rcx, r12
call fcn.1400034f0
mov rsi, rax
test rax, rax
je 0x140002ca2
mov rax, qword [0x1400210b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140003620
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400210b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002c87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002c1c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002c30
add dword [0x1400210b4], 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 [0x1400210b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002c1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002ae0
nop dword [rax]
xor ebx, ebx
jmp 0x140002ba7
mov rax, qword [0x1400210b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002ae0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140002ae0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003160
Capabilities:
Get thread local storage value

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

Disassembly:
mov rdx, qword [0x14001d800]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003510
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003518
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003510
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140003565
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 0x14000355c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003510
add rax, 0x28
cmp rax, r9
jne 0x140003548
xor eax, eax
ret

Function at 0x140003570
Capabilities:
Parse pe header

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

Function at 0x140003620
Capabilities:
Parse pe header

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

Function at 0x140004e10
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14001d880]
mov rax, qword [rsi]
test rax, rax
je 0x140004ea0
cmp qword [rax + 0x30], 0
jne 0x140004ec0
lea rbx, [0x14001b2a8]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140004e70
cmp qword [rax + 0x30], 0
jne 0x140004e90
lea rdx, [0x14001b2a8]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x14001a0e0
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140009d10
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140004e52
test rax, rax
jne 0x140004e90
call fcn.140009d10
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140004e60
call fcn.140009d10
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140004e30
test rax, rax
jne 0x140004ec0
call fcn.140009d10
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140004e3b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x140004ed0
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 0x140004fe2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140004fba
add rax, 1
cmp rax, 0x6b
je 0x140004fd7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140004fb0
cmp edx, 0x6a
je 0x140004fd7
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 0x140004fcb
Function at 0x1400059f0
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 [0x14001d880]
mov rax, qword [rsi]
test rax, rax
je 0x140005be0
cmp qword [rax + 0x28], 0
jne 0x140005bc8
lea rcx, [0x1400211d8]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140005bd5
call fcn.140005000
mov rax, qword [rsi]
test rax, rax
je 0x140005a70
cmp qword [rax + 0x30], 0
jne 0x140005a90
lea rdx, [0x14001b2a8]
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 0x140005aa4
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140009d10
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140005a40
test rax, rax
jne 0x140005a90
call fcn.140009d10
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 0x140005a5e
call fcn.140004b40
cmp qword [0x140024050], 0
mov rbx, rax
je 0x140005a5e
test rax, rax
je 0x140005a5e
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.14000bbb0
cmp eax, 1
je 0x140005c4d
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 0x14001a0e6
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 0x140005c28
cmp qword [rax + 0x30], 0
je 0x140005c10
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14001a0e6
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 0x140005a2c
mov rax, qword [rsi]
jmp 0x140005a39
call fcn.140009d10
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x140005a18
test rax, rax
jne 0x140005bc8
call fcn.140009d10
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x140005a2c
jmp 0x140005a31
lea rdx, [0x14001b2a8]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x140005b9e
call fcn.140009d10
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140005c10
test rax, rax
jne 0x140005b9a
call fcn.140009d10
jmp 0x140005b9a
call fcn.140004ed0
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x14001d880]
mov rdx, qword [rax]
lea rax, [0x1400211e8]
mov qword [rdx + 0x10], rax
ret
Function at 0x140009b90
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 0x140009bb0
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 0x140009bf8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140009ba4
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 0x140009be5
Function at 0x140009d10
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1400212c0]
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 0x140009d33
lea rax, [0x1400212c8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x140009d7b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140009d78
lea rax, [0x140021300]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x140009dab
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140009da8
xor ecx, ecx
mov byte [0x140021319], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140021322], rdx
lea r8, [0x1400212c0]
lea rbx, [0x14002131a]
mov qword [0x140021332], rdx
mov qword [0x140021342], rdx
mov qword [0x140021352], rdx
xor edx, edx
mov qword [0x14002131a], rax
mov qword [0x14002132a], rax
mov qword [0x14002133a], rax
mov qword [0x14002134a], rax
mov byte [0x14002135a], 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 0x140009f86
lea rcx, [0x140021300]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140009ed1
lea rsi, [0x140021200]
lea r8, [0x14002135a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140009e7d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140009e70
lea rcx, [0x140021300]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140009f73
lea rcx, [0x140009c20]
mov qword [0x140021200], 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 [0x140021200]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x140021300]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14002135a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140009fa6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140009f23
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140009f10
mov rax, rdx
mov qword [0x140021200], rax
lea rsi, [0x140021200]
jmp 0x140009f49
cmp rdx, rsi
je 0x140009eaf
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140009f40
cmp rdx, rsi
je 0x140009eaf
mov qword [rdx + 8], rsi
lea rcx, [0x140009c20]
call sub.msvcrt.dll__onexit
jmp 0x140009eaf
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140009b90
xor eax, eax
jmp 0x140009ec8
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140009b90
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.140009b90
xor eax, eax
jmp 0x140009f2f
Function at 0x14061e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14061e1df
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 0x14061e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14061e06f
add dl, dl
jne 0x14061e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14061e0f6
xor eax, eax
add dl, dl
jne 0x14061e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14061e1ad
add dl, dl
jne 0x14061e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14061e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14061e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14061e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14061e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14061e07e
mov eax, 1
add dl, dl
jne 0x14061e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14061e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14061e0fb
sub eax, ebx
mov ebx, 1
jne 0x14061e14c
mov ecx, 1
add dl, dl
jne 0x14061e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14061e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14061e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14061e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14061e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14061e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14061e15d
cmp eax, 0x7d00
jae 0x14061e19b
cmp eax, 0x500
jb 0x14061e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14061e07e
cmp eax, 0x7f
ja 0x14061e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14061e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14061e1d2
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 0x14061e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x23d98
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r11d, dword [rcx]
mov rsi, r8
mov ebx, dword [rcx + 4]
mov rdi, rdx
movsxd rbp, r9d
mov r10, rcx
test r9d, r9d
jle 0x23dff
sub rdi, r8
inc r11b
movzx r11d, r11b
mov r8b, byte [r11 + r10 + 8]
add bl, r8b
movzx ebx, bl
mov cl, byte [rbx + r10 + 8]
mov byte [r11 + r10 + 8], cl
add cl, r8b
mov byte [rbx + r10 + 8], r8b
movzx eax, cl
mov dl, byte [rax + r10 + 8]
xor dl, byte [rdi + rsi]
mov byte [rsi], dl
inc rsi
sub rbp, 1
jne 0x23dc5
mov rbp, qword [rsp + 0x10]
mov eax, r9d
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov dword [r10 + 4], ebx
mov rbx, qword [rsp + 8]
mov dword [r10], r11d
ret