joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1408bd0f8
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1408af700
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1408af700
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1408bd248
cmp rax, 0xffffffffffffffff
je 0x1408bd248
xor edi, edi
test rbp, rbp
jle 0x1408bd1f3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1408afd0c
mov rbx, rax
test rax, rax
jne 0x1408bd180
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1408bd1e9
mov edx, 0x8000
mov ecx, r14d
call fcn.1408a1be0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1408b5364
cmp eax, 0xffffffff
je 0x1408bd1c9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1408bd190
mov edx, r15d
mov ecx, r14d
call fcn.1408a1be0
jmp 0x1408bd1e9
cmp byte [rsi + 0x38], dil
je 0x1408bd1e0
cmp dword [rsi + 0x34], 5
jne 0x1408bd1e0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1408bd1e9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1408afbf4
jmp 0x1408bd25c
jns 0x1408bd25c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1408af700
cmp rax, 0xffffffffffffffff
jne 0x1408bd214
cmp byte [rsi + 0x30], dil
je 0x1408bd25c
mov edi, dword [rsi + 0x2c]
jmp 0x1408bd25c
mov ecx, r14d
call fcn.1408b7e50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1408bd25c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1408bd25c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1408bd255
mov eax, dword [rsi + 0x2c]
jmp 0x1408bd25a
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1408af700
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1408c1504
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1408c1524
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1408a41f8
or eax, 0xffffffff
jmp 0x1408c1526
xor eax, eax
add rsp, 0x28
ret
Function at 0x140002690
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.140019b00
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.140019b00
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 0x140002700
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14001f0b4]
mov r12, rcx
test ebx, ebx
jle 0x140002830
mov rax, qword [0x14001f0b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000274c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400027d3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140002730
mov rcx, r12
call fcn.1400030a0
mov rsi, rax
test rax, rax
je 0x140002852
mov rax, qword [0x14001f0b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1400031d0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14001f0b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002837
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400027cc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400027e0
add dword [0x14001f0b4], 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 [0x14001f0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400027cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002690
nop dword [rax]
xor ebx, ebx
jmp 0x140002757
mov rax, qword [0x14001f0b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002690
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140002690
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002d10
Capabilities:
Get thread local storage value

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

Disassembly:
mov rdx, qword [0x14001c580]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400030c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400030c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400030c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140003115
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 0x14000310c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400030c0
add rax, 0x28
cmp rax, r9
jne 0x1400030f8
xor eax, eax
ret

Function at 0x140003120
Capabilities:
Parse pe header

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

Function at 0x1400031d0
Capabilities:
Parse pe header

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

Function at 0x1400049c0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14001c600]
mov rax, qword [rsi]
test rax, rax
je 0x140004a50
cmp qword [rax + 0x30], 0
jne 0x140004a70
lea rbx, [0x14001a088]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140004a20
cmp qword [rax + 0x30], 0
jne 0x140004a40
lea rdx, [0x14001a088]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x140019c90
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400098c0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140004a02
test rax, rax
jne 0x140004a40
call fcn.1400098c0
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140004a10
call fcn.1400098c0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1400049e0
test rax, rax
jne 0x140004a70
call fcn.1400098c0
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x1400049eb
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x140004a80
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 0x140004b92
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140004b6a
add rax, 1
cmp rax, 0x6b
je 0x140004b87
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140004b60
cmp edx, 0x6a
je 0x140004b87
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 0x140004b7b
Function at 0x1400055a0
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 [0x14001c600]
mov rax, qword [rsi]
test rax, rax
je 0x140005790
cmp qword [rax + 0x28], 0
jne 0x140005778
lea rcx, [0x14001f1d8]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140005785
call fcn.140004bb0
mov rax, qword [rsi]
test rax, rax
je 0x140005620
cmp qword [rax + 0x30], 0
jne 0x140005640
lea rdx, [0x14001a088]
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 0x140005654
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400098c0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1400055f0
test rax, rax
jne 0x140005640
call fcn.1400098c0
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 0x14000560e
call fcn.1400046f0
cmp qword [0x140022050], 0
mov rbx, rax
je 0x14000560e
test rax, rax
je 0x14000560e
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.14000b760
cmp eax, 1
je 0x1400057fd
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 0x140019c96
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 0x1400057d8
cmp qword [rax + 0x30], 0
je 0x1400057c0
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140019c96
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 0x1400055dc
mov rax, qword [rsi]
jmp 0x1400055e9
call fcn.1400098c0
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x1400055c8
test rax, rax
jne 0x140005778
call fcn.1400098c0
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1400055dc
jmp 0x1400055e1
lea rdx, [0x14001a088]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x14000574e
call fcn.1400098c0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1400057c0
test rax, rax
jne 0x14000574a
call fcn.1400098c0
jmp 0x14000574a
call fcn.140004a80
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x14001c600]
mov rdx, qword [rax]
lea rax, [0x14001f1e8]
mov qword [rdx + 0x10], rax
ret
Function at 0x140009740
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 0x140009760
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 0x1400097a8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140009754
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 0x140009795
Function at 0x1400098c0
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x14001f2c0]
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 0x1400098e3
lea rax, [0x14001f2c8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x14000992b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140009928
lea rax, [0x14001f300]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x14000995b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140009958
xor ecx, ecx
mov byte [0x14001f319], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x14001f322], rdx
lea r8, [0x14001f2c0]
lea rbx, [0x14001f31a]
mov qword [0x14001f332], rdx
mov qword [0x14001f342], rdx
mov qword [0x14001f352], rdx
xor edx, edx
mov qword [0x14001f31a], rax
mov qword [0x14001f32a], rax
mov qword [0x14001f33a], rax
mov qword [0x14001f34a], rax
mov byte [0x14001f35a], 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 0x140009b36
lea rcx, [0x14001f300]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140009a81
lea rsi, [0x14001f200]
lea r8, [0x14001f35a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140009a2d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140009a20
lea rcx, [0x14001f300]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140009b23
lea rcx, [0x1400097d0]
mov qword [0x14001f200], 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 [0x14001f200]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x14001f300]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14001f35a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140009b56
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140009ad3
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140009ac0
mov rax, rdx
mov qword [0x14001f200], rax
lea rsi, [0x14001f200]
jmp 0x140009af9
cmp rdx, rsi
je 0x140009a5f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140009af0
cmp rdx, rsi
je 0x140009a5f
mov qword [rdx + 8], rsi
lea rcx, [0x1400097d0]
call sub.msvcrt.dll__onexit
jmp 0x140009a5f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140009740
xor eax, eax
jmp 0x140009a78
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140009740
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.140009740
xor eax, eax
jmp 0x140009adf
Function at 0x18000103c
Capabilities:
Decompress data using aplib

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x40
mov al, byte [rcx]
and dword [rbp - 0xc], 0
mov r10d, dword [rbp + 0x10]
mov byte [rdx], al
lea rax, [rdx + 1]
xor r11d, r11d
mov qword [rbp - 0x18], rax
lea rax, [rcx + 1]
xor edi, edi
mov qword [rbp - 0x20], rax
mov rbx, rdx
lea esi, [rdi + 1]
lea rcx, [rbp - 0x20]
call entry0
test eax, eax
je 0x180001220
lea rcx, [rbp - 0x20]
call entry0
test eax, eax
je 0x18000112f
lea rcx, [rbp - 0x20]
call entry0
test eax, eax
je 0x1800010e7
xor r9d, r9d
lea r11d, [r9 + 4]
lea rcx, [rbp - 0x20]
call entry0
lea r9d, [rax + r9*2]
sub r11d, esi
jne 0x1800010b0
mov r8, qword [rbp - 0x18]
test r9d, r9d
je 0x1800010de
mov ecx, r9d
mov rax, r8
sub rax, rcx
mov al, byte [rax]
mov byte [r8], al
jmp 0x180001234
mov byte [r8], 0
jmp 0x180001234
mov rax, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
movzx r10d, byte [rax]
add rax, rsi
mov ecx, r10d
mov qword [rbp - 0x20], rax
and ecx, esi
add ecx, 2
shr r10d, 1
je 0x180001128
test ecx, ecx
je 0x18000121b
mov edx, r10d
neg rdx
mov al, byte [rdx + r8]
mov byte [r8], al
add r8, rsi
dec ecx
jne 0x180001115
jmp 0x180001217
mov edi, esi
jmp 0x18000121b
mov r9d, esi
lea rcx, [rbp - 0x20]
call entry0
lea rcx, [rbp - 0x20]
lea r9d, [rax + r9*2]
call entry0
test eax, eax
jne 0x180001132
test r11d, r11d
jne 0x18000119e
cmp r9d, 2
jne 0x180001198
mov r9d, esi
lea rcx, [rbp - 0x20]
call entry0
lea rcx, [rbp - 0x20]
lea r9d, [rax + r9*2]
call entry0
test eax, eax
jne 0x18000115a
mov r8, qword [rbp - 0x18]
test r9d, r9d
je 0x18000121b
mov ecx, r10d
neg rcx
mov al, byte [rcx + r8]
mov byte [r8], al
add r8, rsi
dec r9d
jne 0x180001187
jmp 0x180001217
lea r10d, [r9 - 3]
jmp 0x1800011a2
lea r10d, [r9 - 2]
mov rcx, qword [rbp - 0x20]
shl r10d, 8
mov r9d, esi
movzx eax, byte [rcx]
add r10d, eax
add rcx, rsi
mov qword [rbp - 0x20], rcx
lea rcx, [rbp - 0x20]
call entry0
lea rcx, [rbp - 0x20]
lea r9d, [rax + r9*2]
call entry0
test eax, eax
jne 0x1800011ba
cmp r10d, 0x7d00
jb 0x1800011e0
inc r9d
cmp r10d, 0x500
jb 0x1800011ec
add r9d, esi
cmp r10d, 0x80
jae 0x1800011f9
add r9d, 2
mov r8, qword [rbp - 0x18]
test r9d, r9d
je 0x18000121b
mov ecx, r10d
neg rcx
mov al, byte [rcx + r8]
mov byte [r8], al
add r8, rsi
dec r9d
jne 0x180001208
mov qword [rbp - 0x18], r8
mov r11d, esi
jmp 0x18000123e
mov rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
mov cl, byte [rdx]
add rdx, rsi
mov byte [r8], cl
mov qword [rbp - 0x20], rdx
add r8, rsi
xor r11d, r11d
mov qword [rbp - 0x18], r8
test edi, edi
je 0x18000107a
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
sub r8, rbx
mov rbx, qword [rsp + 0x58]
mov eax, r8d
add rsp, 0x40
pop rbp
ret
Function at 0x180002d28
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rdi, dword [rcx + 0x3c]
xor r11d, r11d
mov r14, r8
add rdi, rcx
mov r12, rcx
movzx eax, word [rdi + 0x14]
mov r10d, dword [rdi + 0xa0]
lea r13, [rdi + 0x18]
add r13, rax
mov qword [rsp + 0x60], r13
test r10d, r10d
je 0x180002ed3
mov edx, dword [rdi + 0xa4]
test edx, edx
je 0x180002ed3
movzx r9d, word [rdi + 6]
mov r8d, r11d
mov ecx, r11d
test r9d, r9d
je 0x180002da7
mov rax, r13
cmp dword [rax + 0xc], r10d
je 0x180002da4
inc ecx
add rax, 0x28
cmp ecx, r9d
jb 0x180002d91
jmp 0x180002da7
mov r8, rax
mov esi, dword [r8 + 0x14]
add rsi, r12
mov rbx, rsi
lea rax, [rsi + rdx]
cmp rsi, rax
je 0x180002ed3
mov eax, dword [rbx + 4]
mov edx, dword [rbx]
add rbx, 8
add eax, 0xfffffff8
mov dword [rsp + 0x68], edx
shr eax, 1
je 0x180002ec1
mov r15d, eax
movzx ecx, word [rbx]
mov r8d, 0xf000
add rbx, 2
movzx eax, cx
and ax, r8w
mov r8d, 0x3000
cmp ax, r8w
jne 0x180002eb8
movzx r10d, word [rdi + 6]
movzx ebp, cx
xor r8d, r8d
and ebp, 0xfff
add ebp, edx
test r10d, r10d
je 0x180002e38
lea rdx, [r13 + 0xc]
mov ecx, dword [rdx]
cmp ecx, ebp
ja 0x180002e26
add ecx, dword [rdx - 4]
cmp ecx, ebp
ja 0x180002e34
inc r8d
add rdx, 0x28
cmp r8d, r10d
jae 0x180002e38
jmp 0x180002e19
lea r11, [rdx - 0xc]
mov edx, dword [r11 + 0x14]
mov rcx, qword [0x180013580]
mov eax, ebp
sub eax, dword [r11 + 0xc]
add rax, r12
mov r13d, dword [rdx + rax]
xor edx, edx
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r11d, r11d
mov rcx, rax
test rax, rax
je 0x180002e7f
mov qword [rax + 8], r11
mov qword [rax + 0x10], r11
lea rax, [0x1800103c0]
mov qword [rcx], rax
mov qword [rcx + 0x18], r11
jmp 0x180002e82
mov rcx, r11
mov rax, qword [r14 + 8]
test rax, rax
je 0x180002e91
mov qword [rax + 0x10], rcx
jmp 0x180002e94
mov qword [r14], rcx
mov rax, qword [r14 + 8]
mov edx, dword [rsp + 0x68]
mov qword [rcx + 0x10], r11
mov qword [rcx + 8], rax
inc dword [r14 + 0x10]
mov qword [r14 + 8], rcx
mov dword [rcx + 0x1c], r13d
mov r13, qword [rsp + 0x60]
mov dword [rcx + 0x18], ebp
dec r15
jne 0x180002dd9
mov eax, dword [rdi + 0xa4]
add rax, rsi
cmp rbx, rax
jne 0x180002dbe
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000368c
Capabilities:
Get hostname

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x30
lea rdx, [rbp + 0x38]
mov rdi, rcx
mov dword [rbp + 0x38], 0x40
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, dword [rbp + 0x38]
mov dword [rdi + 0x80], eax
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [rdi + 0x88], 1
mov dword [rdi + 0x84], eax
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x400
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x1800037b6
lea r8, [rbp + 0x40]
lea edx, [rbx + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1800037ad
mov rcx, qword [rbp + 0x40]
lea rax, [rbp + 0x30]
lea edx, [rbx + 1]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1800037a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1800037a3
mov r8d, dword [rbp + 0x30]
mov rcx, qword [0x180013580]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r9d, dword [rbp + 0x30]
mov rcx, qword [rbp + 0x40]
mov rsi, rax
lea rax, [rbp + 0x30]
lea edx, [rbx + 1]
mov r8, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x180003791
mov rax, qword [rsi]
cmp byte [rax + 1], 2
jbe 0x180003791
movzx ecx, byte [rax + 1]
sub ecx, 2
je 0x180003791
add rax, 0xc
mov edx, ecx
add ebx, dword [rax]
lea rax, [rax + 4]
dec rdx
jne 0x180003786
mov rcx, qword [0x180013580]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rdi + 0x8c]
lea rdx, [rbp + 0x30]
xor ebx, 0xcf8558fc
mov dword [rbp + 0x30], ebx
call fcn.1800077b8
lea rcx, [rdi + 0x9c]
lea rdx, [rbp + 0x30]
call fcn.1800077b8
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x1800037ec
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x20
and dword [rcx + 0x10], 0
lea rbx, [rcx + 8]
mov dword [rcx], 0x18
and qword [rbx], 0
call qword [sym.imp.KERNEL32.dll_GetVersion]
lea rdx, str.S:_ML__NW___LW_
cmp al, 5
lea rcx, str.D:_D_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GA___AU__A_OICI_GA___BA_
mov r8, rbx
cmova rcx, rdx
xor r9d, r9d
lea edx, [r9 + 1]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA]