joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007d48
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov rax, qword [0x14001e288]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor ebx, ebx
mov word [rbp + 0x4b], 0x500
lea rax, [rbp + 0x2f]
mov dword [rbp + 0x47], ebx
mov qword [r11 - 0x48], rax
lea rcx, [rbp + 0x3f]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov esi, ebx
mov dword [rsp + 0x28], ebx
mov edi, ebx
mov dword [rsp + 0x20], ebx
mov qword [rbp + 0x37], rbx
mov dword [rbp + 0x3f], ebx
mov word [rbp + 0x43], 0x500
mov qword [rbp + 0x2f], rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140007dfb
mov rdx, qword [rbp + 0x2f]
lea r8, [rbp + 0x27]
xor ecx, ecx
mov dword [rbp + 0x27], ebx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
test eax, eax
je 0x140007de7
mov esi, dword [rbp + 0x27]
jmp 0x140007def
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
jmp 0x140007e03
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test esi, esi
je 0x140007e16
mov eax, 1
jmp 0x140007e73
lea rax, [rbp + 0x37]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x47]
mov dword [rsp + 0x48], ebx
mov dl, 1
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
lea r8d, [r9 + 0x13]
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140007e71
mov rdx, qword [rbp + 0x37]
lea r8, [rbp + 0x27]
xor ecx, ecx
mov dword [rbp + 0x27], ebx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
mov rcx, qword [rbp + 0x37]
test eax, eax
cmovne ebx, dword [rbp + 0x27]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400122a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14000806c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14001e288]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rdx
mov ebx, ecx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, [0x140015eb0]
lea rcx, [0x14001ec10]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetTempFileNameW]
xor esi, esi
test eax, eax
je 0x140008147
mov r9d, 0x104
lea rax, [rsp + 0x20]
mov ecx, r9d
cmp word [rax], si
je 0x1400080e6
add rax, 2
sub rcx, 1
jne 0x1400080d7
mov rax, rcx
neg rax
sbb edx, edx
not edx
and edx, 0x80070057
test rcx, rcx
je 0x140008100
sub r9, rcx
jmp 0x140008103
mov r9, rsi
test edx, edx
js 0x140008147
add r9, 0xfffffffffffffffd
lea r8, [rsp + 0x20]
mov rdx, rbx
mov rcx, rdi
call fcn.140006aac
test eax, eax
js 0x140008147
mov rdx, rbx
mov rcx, rdi
call fcn.14000665c
test eax, eax
js 0x140008147
mov rax, qword [0x14001f0b0]
lea rcx, [rsp + 0x20]
call qword [0x140014db8]
mov eax, 1
jmp 0x140008149
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400122a0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140008170
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rdi, r9
mov r12, r8
mov r13, rdx
mov rbx, rcx
xor r15d, r15d
mov qword [r11 - 0x50], r15
or rax, 0xffffffffffffffff
mov qword [r11 - 0x40], rax
mov r14, rax
mov qword [r11 - 0x48], rax
xor eax, eax
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
and qword [r11 - 0x68], rax
mov dword [rsp + 0x28], 0x100
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, r13
mov rax, qword [0x14001f088]
call qword [0x140014db8]
mov rsi, rax
mov qword [rsp + 0x58], rax
cmp rax, r14
je 0x1400082cd
test rbx, rbx
je 0x140008219
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x64], rbx
and dword [rsp + 0x6c], r15d
neg rbx
sbb rdi, rdi
lea rax, [rsp + 0x60]
and rdi, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, rsi
mov edx, ebx
mov rax, qword [0x14001f0a8]
call qword [0x140014db8]
test eax, eax
je 0x1400082c5
lea rdx, [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp eax, 0xffffffff
je 0x1400082c5
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x44]
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_CreateFileMappingW]
mov r14, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400082c5
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_MapViewOfFile]
mov r15, rax
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0xb8]
test r15, r15
jne 0x140008319
cmp r14, 0xffffffffffffffff
je 0x1400082e8
mov rcx, r14
mov rax, qword [0x14001f098]
call qword [0x140014db8]
cmp rsi, 0xffffffffffffffff
je 0x140008314
mov rcx, rsi
mov rax, qword [0x14001f098]
call qword [0x140014db8]
cmp rsi, 0xffffffffffffffff
je 0x140008314
mov rcx, r13
mov rax, qword [0x14001f0b0]
call qword [0x140014db8]
test r15, r15
je 0x14000833f
test rdi, rdi
je 0x140008326
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov rax, qword [rsp + 0xc0]
test rax, rax
je 0x140008336
mov qword [rax], r14
test r12, r12
je 0x14000833f
mov qword [r12], rsi
mov rax, r15
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400085dc
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
or edi, 0xffffffff
cmp dword [0x14001e2a0], edi
jne 0x140008603
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsAlloc]
mov dword [0x14001e2a0], eax
cmp eax, edi
je 0x140008620
cmp dword [0x14001e2a4], edi
jne 0x14000861b
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsAlloc]
mov dword [0x14001e2a4], eax
cmp eax, edi
je 0x140008620
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140008b50
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x14001f048]
test eax, eax
je 0x140008cfb
add eax, 0xffffffff
mov dword [0x14001f048], eax
jne 0x140008cfb
mov rsi, qword [0x14001f060]
lea rbx, [0x140008580]
and qword [0x14001f060], 0
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
cmp rbx, rax
cmove rax, qword [0x14001f050]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov ecx, dword [0x14001e2a0]
and qword [0x14001f050], 0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsFree]
mov ecx, dword [0x14001e2a4]
or dword [0x14001e2a0], 0xffffffff
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140008c39
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140008c15
mov rax, qword [rax]
jmp 0x140008c00
mov rcx, rdi
call fcn.140008d0c
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x140008c15
mov rax, qword [rbx]
mov rdi, qword [rax + rdx*8 - 8]
mov rcx, rbx
dec rdx
call fcn.140009a98
test rdi, rdi
jne 0x140008bec
mov rdi, qword [rbx]
test rdi, rdi
je 0x140008c31
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov rcx, rbx
call sub.msvcrt.dll_free
mov ecx, dword [0x14001e2a4]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsFree]
or dword [0x14001e2a4], 0xffffffff
lea rcx, [0x14001eee8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov rdx, qword [0x14001f040]
test rdx, rdx
je 0x140008ccf
mov ecx, dword [0x14001f068]
xor ebx, ebx
test ecx, ecx
je 0x140008ca1
mov rdi, qword [rdx + rbx*8]
test rdi, rdi
je 0x140008c9b
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov rdx, qword [0x14001f040]
mov ecx, dword [0x14001f068]
inc ebx
cmp ebx, ecx
jb 0x140008c71
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, qword [0x14001f040]
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
and qword [0x14001f040], 0
and dword [0x14001f068], 0
and dword [0x14001f070], 0
lea rcx, [0x14001eee8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test rsi, rsi
je 0x140008ce9
mov rcx, rsi
call fcn.14000d7ec
and dword [0x14001f058], 0
call fcn.14000a5a8
mov eax, dword [0x14001f048]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140009580
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov ecx, dword [0x14001e2a0]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x1400096f7
lea rcx, [0x14001eee8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop
cmp qword [0x14001f040], rdi
jne 0x1400095f8
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
lea r8d, [rsi + 8]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov qword [0x14001f040], rax
lea ebx, [rsi + 1]
test rax, rax
je 0x1400096a4
xor eax, eax
mov dword [0x14001f070], eax
mov dword [0x14001f068], ebx
jmp 0x14000964e
mov eax, dword [0x14001f070]
mov ecx, dword [0x14001f068]
cmp eax, ecx
jne 0x140009649
lea ebx, [rcx + 1]
shl rbx, 3
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r9, rbx
mov r8, qword [0x14001f040]
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapReAlloc]
mov ebx, 1
test rax, rax
je 0x1400096a4
mov qword [0x14001f040], rax
add dword [0x14001f068], ebx
mov eax, dword [0x14001f070]
jmp 0x14000964e
mov ebx, 1
mov ecx, eax
mov rax, qword [0x14001f040]
and qword [rax + rcx*8], 0
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, 0x8018
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x1400096a4
add rax, 0x18
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], 0x8000
mov rdx, rdi
mov ecx, dword [0x14001e2a0]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
test eax, eax
cmovne esi, ebx
test esi, esi
je 0x1400096c3
mov edx, dword [0x14001f070]
mov rax, qword [0x14001f040]
mov qword [rax + rdx*8], rdi
add edx, ebx
mov dword [0x14001f070], edx
jmp 0x1400096e7
xor edx, edx
mov ecx, dword [0x14001e2a0]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
xor edi, edi
lea rcx, [0x14001eee8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000b3d8
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14001e288]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [0x14001f0f8], 0
jne 0x14000b609
cmp dword [0x14001e5c8], 0
mov dword [0x14001f0f8], 1
mov dword [0x14001f0c0], ecx
je 0x14000b436
and dword [0x14001e5c8], 0
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetVersion]
xor ecx, ecx
cmp eax, 0x80000000
setb cl
mov dword [0x14001f0d8], ecx
jmp 0x14000b43c
mov ecx, dword [0x14001f0d8]
test ecx, ecx
je 0x14000b4ca
lea rax, [0x14000b1b0]
mov qword [0x14001f090], rax
lea rcx, str.kernel32
lea rax, [0x14000b240]
mov qword [0x14001f100], rax
lea rax, [0x14000b300]
mov qword [0x14001f0c8], rax
lea rax, [0x14000af30]
mov qword [0x14001f0b8], rax
lea rax, [0x14000b3b0]
mov qword [0x14001f0a0], rax
lea rax, [0x14000b3c0]
mov qword [0x14001f088], rax
lea rax, [0x14000b3d0]
mov qword [0x14001f0b0], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetModuleHandleW]
test rax, rax
je 0x14000b52c
lea rdx, str.AddVectoredExceptionHandler
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetProcAddress]
jmp 0x14000b52c
lea rax, [0x14000abb0]
mov qword [0x14001f090], rax
lea rax, [0x14000acc0]
mov qword [0x14001f100], rax
lea rax, [0x14000ae00]
mov qword [0x14001f0c8], rax
lea rax, [0x14000af30]
mov qword [0x14001f0b8], rax
lea rax, [0x14000af40]
mov qword [0x14001f0a0], rax
lea rax, [0x14000b010]
mov qword [0x14001f088], rax
lea rax, [0x14000b110]
mov qword [0x14001f0b0], rax
lea rax, [0x14000aac0]
xor edx, edx
mov qword [0x14001f080], rax
lea rcx, [rsp + 0x20]
lea rax, [0x14000aae0]
mov r8d, 0x104
mov qword [0x14001f0e8], rax
lea rax, [0x14000aaf0]
mov qword [0x14001f098], rax
lea rax, [0x14000ab10]
mov qword [0x14001f0f0], rax
lea rax, [0x14000ab30]
mov qword [0x14001f108], rax
lea rax, [0x14000ab40]
mov qword [0x14001f0e0], rax
lea rax, [0x14000ab80]
mov qword [0x14001f0d0], rax
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, str._windir__system32dbghelp.dll
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x14000b5fb
xor r8d, r8d
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_LoadLibraryExA]
test rax, rax
jne 0x14000b5e9
lea rax, [fcn.14000aba0]
xor ecx, ecx
mov qword [0x14001f0a8], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_FreeLibrary]
jmp 0x14000b609
lea rdx, str.MiniDumpWriteDump
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetProcAddress]
jmp 0x14000b602
lea rax, [fcn.14000aba0]
mov qword [0x14001f0a8], rax
mov eax, 1
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400122a0
add rsp, 0x148
ret
Function at 0x140012044
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.1400128d0
add rsp, 0x28
jmp 0x140012044
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x14001f118], rbx
je 0x14001209d
cmp rax, rbx
jne 0x140012090
mov edi, 1
jmp 0x14001209d
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140012077
mov eax, dword [0x14001f120]
cmp eax, 1
jne 0x1400120b2
lea ecx, [rax + 0x1e]
call fcn.140190000
jmp 0x14001211f
mov eax, dword [0x14001f120]
test eax, eax
jne 0x140012115
mov dword [0x14001f120], 1
lea r14, [0x140014e40]
lea rbx, [0x140014e28]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x140012107
test eax, eax
jne 0x14001210b
cmp qword [rbx], 0
je 0x1400120fc
mov rax, qword [rbx]
mov rcx, qword [0x140014db8]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x1400120dd
test eax, eax
je 0x14001211f
mov eax, 0xff
jmp 0x140012272
mov dword [0x14001e630], 1
mov eax, dword [0x14001f120]
cmp eax, 1
jne 0x140012147
lea rdx, [0x140014e20]
lea rcx, [0x140014dd0]
call sub.msvcrt.dll__initterm
mov dword [0x14001f120], 2
test edi, edi
jne 0x140012154
xor eax, eax
xchg qword [0x14001f118], rax
cmp qword [0x14001f138], 0
je 0x140012188
lea rcx, [0x14001f138]
call fcn.140012850
test eax, eax
je 0x140012188
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14001f138]
mov r9, qword [0x140014db8]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
cmp byte [rbx], 0x20
ja 0x140012211
cmp byte [rbx], 0
je 0x1400121a9
test edi, edi
jne 0x140012211
mov al, byte [rbx]
dec al
cmp al, 0x1f
ja 0x1400121bb
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x1400121a9
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001538
mov dword [0x14001e62c], eax
cmp dword [0x14001e650], 0
jne 0x1400121fa
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14001e630], 0
jne 0x14001220f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14001e62c]
jmp 0x140012272
cmp byte [rbx], 0x22
jne 0x140012223
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rbx]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x140012238
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x14001219b
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x140012760
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400127ac
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400127a4
cmp dword [rcx + 0x3c], edx
jl 0x1400127a4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400127a4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400127ac
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400efeac
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1400eff37
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1400eff37
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400eff37
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1400eff33
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1400eff2d
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jae 0x1400eff2d
test rdx, rdx
je 0x1400eff33
cmp dword [rdx + 0x24], 0
jge 0x1400eff29
xor al, al
jmp 0x1400eff3d
mov al, 1
jmp 0x1400eff3d
add rdx, 0x28
jmp 0x1400efeff
xor al, al
jmp 0x1400eff3d
xor al, al
jmp 0x1400eff3d
add rsp, 0x18
ret

Function at 0x140703be5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push qword [rsp + 0x18]
popfq
lea rsp, [rsp + 0x38]
call fcn.140a08d5c
add byte [rax], al
add dword [rax], eax
add byte [rax], al
add byte [rax], al
invalid
call rax
mov r11, rax
cmp r11b, r12b
jmp 0x14099a123
jno 0x1406ca23b
call rax
mov r11, rax
cmp r13, 0x14fc33b0
test rsi, 0x12b37c42
test rax, rax
jne 0x14099a131
lea rcx, [rsp + 0x40]
movsx eax, r10w
not ax
movsx rax, cx
mov rax, qword [0x1405791d8]
jmp 0x140703be3
call rax
jmp 0x14099a28e
xor eax, eax
jmp 0x14099a096
jmp 0x14099a28e
test rax, rax
jmp 0x14099a12b
je 0x14099a08f
cmp r11, rsi
jmp 0x14099a139
jne 0x14099a1d8
cmp byte [rsp + 0x180], dil
jmp 0x14099a14c
je 0x14099a1ba
lea rax, [rsp + 0x40]
movsx dx, ch
xchg cx, cx
sub rbp, rax
nop
btc rcx, rdx
btr cx, dx
lea rdx, [rsp + rdi + 0x40]
cwde
bts ecx, r11d
ror al, 0x76
mov ecx, edi
movsxd rax, r9d
mov eax, 0x36df1d23
rol eax, cl
cmc
stc
add al, dil
jmp 0x14099a18d
xor al, byte [rdx + rbp]
mov byte [rdx], al
jmp 0x14099a197
je 0x14099a1b3
inc rdi
clc
cmp rdi, 0x104
jmp 0x14099a1ad
jb 0x14099a16a
lea rbp, [rsp + 0x40]
cwd
mov rdx, rbp
cwde
movsx ax, r11b
mov rcx, rsi
movsxd rax, r10d
cwde
cbw
mov rax, qword [0x1405791e8]
jmp 0x14098e326
cmp byte [rbx + 1], 0x23
bswap dx
lea rdx, [rbx + 1]
jmp 0x14099a1e8
jne 0x14099a268
movzx edx, byte [rbx + 2]
stc
add rbx, 2
test r8b, r11b
stc
test dl, dl
jmp 0x14099a202
je 0x14099a262
nop
mov rax, 0x14f1027c
movsx eax, bp
cwde
lea eax, [rdx - 0x30]
jmp 0x14099a21c
inc rbx
jmp 0x14099a225
cmp al, 9
jmp 0x14099a22c
ja 0x14099a262
movsx eax, dl
bt rdx, 0xcb
movzx edx, byte [rbx]
test r9b, dl
shrd rcx, r14, 0x70
lea ecx, [rdi + rdi*4]
bsr rdi, r14
lea edi, [rax + rcx*2 - 0x30]
jmp 0x14099a255
test dl, dl
jmp 0x14099a25c
jne 0x14099a214
movsxd rdx, edi
movsx ecx, sp
xor r8d, r8d
bswap ecx
movzx ecx, cx
mov rcx, r11
jmp 0x14099a278
call fcn.140999cde
jmp 0x14099a28e
mov rbx, qword [rsp + 0x178]
movzx bp, r13b
sub sil, bpl
mov rdi, qword [rsp + 0x150]
btr si, si
sar rsi, cl
bsr bp, bp
add rsp, 0x158
movzx ebp, bx
movzx bp, al
movsx ebp, si
pop rsi
movsx ebp, si
xchg bpl, bpl
movsx rbp, r13w
pop rbp
ret
Function at 0x1408f2fe1
Capabilities:
Encode data using xor

Disassembly:
add qword [rsp + 0x10], 0xffffffffbf66e06a
add qword [rsp + 8], 0xffffffffbfa66cb2
movabs r12, 0x58483db249947eba
call fcn.140991e3d
add byte [rax], al
add byte [rdi], bh
push 0x75427469
je 0x1408f3002
outsd dx, dword [rsi]
outsb dx, byte [rsi]
push rcx
push 0x426b6365
outsd dx, dword [rsi]
js 0x1408f2fdb
pop r15
push rsi
push rcx
push rax
outsd dx, dword [rsi]
imul ebp, dword [rsi + 0x74], 0x5a404040
add byte [rax], al
add byte [rax], al
invalid
jbe 0x1408f3020
push rcx
imul r13d, dword [rbp + r12*2 + 0x40], 0x41455140
pop r15
pop rax
pop rdx
add byte [rax], al
add byte [rdi + 0x65], al
je 0x1408f301f
outsd dx, dword [rsi]
jne 0x1408f3042
imul r13d, dword gs:[rbp + r12*2 + 0x4e], 0x41656d61
add byte [rbx + rcx*4 + 0x74], cl
mov r14, qword [rsp + 0x18]
invalid
mov qword [rsp + 0x18], 0x47bfa7d
mov dword [rsp + 0x18], 0x47bfa7d
and al, 0x18
jge 0x1408f2fe7
jnp 0x1408f2ff3
movabs r12, 0x42d009d453d01eb2
setae r12b
rcl byte [rbx - 0x2c]
or eax, edx
setae r12b
push rcx
push r12
js 0x1408fe581
jnp 0x1408f2fb9
add byte [rax], al
xor eax, 0x29c026ad
fidiv word [rbp + 0x716f4123]
in eax, dx
test al, 0x3f
jne 0x1408f2fe8
xchg byte [rdx + 0x3e], dl
ret 0x2b4c
out dx, al
ret 0xbe55
rcl bh, 1
fnstsw word [rsi + 0x568f1778]
rol dl, 0x84
in al, 0xac
rcl dword [rbp + 0x5a], 0x49
movabs al, byte [0xf96641aba0a81641]
xchg dword [rcx + 0x3f], ebx
mov gs, ecx
invalid
pop rcx
neg r12w
mov rcx, qword [rsp]
call fcn.1408ec930
mov r14, qword [rsp + 0x48]
mov rsi, rdi
add qword [rsp + 8], 0xffffffffbf6cd2fe
sub sil, 0x83
bswap esi
setbe sil
call fcn.1409234f2