joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001e7d4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x10003a170]
xor rax, rsp
mov qword [rsp + 0x470], rax
test r9d, r9d
mov r14d, r9d
mov r15, rdx
mov rdi, rcx
mov ebx, r8d
je 0x10001e817
mov ebp, dword [rcx + rbx*4 + 0x12a0]
jmp 0x10001e81e
mov ebp, dword [rcx + rbx*4 + 0xbdc]
or dword [rsp + 0x40], 0xffffffff
mov esi, 0x20
lea rcx, [rsp + 0x48]
mov r8, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, qword [rdi + 0x3e0]
lea rdx, [rsp + 0x40]
mov rax, qword [rcx]
mov qword [rsp + 0x38], rdx
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rdx
mov edx, dword [rdi + rbx*4 + 0x2de0]
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x2f2870
call qword [rax + 0x168]
test eax, eax
js 0x10001e9a5
xor esi, esi
cmp dword [rsp + 0x58], esi
jbe 0x10001e9a5
lea r12, [rsp + 0x5c]
cmp esi, 0xc
jae 0x10001e9a5
movzx ebx, byte [r12]
mov r13, rbx
cmp dword [rdi + rbx*8 + 0x1e60], ebp
je 0x10001e994
mov eax, dword [rdi + rbx*8 + 0x1e64]
cmp eax, r14d
je 0x10001e8ce
xor ecx, ecx
test eax, eax
sete cl
xor eax, eax
test r14d, r14d
sete al
cmp ecx, eax
jne 0x10001e98c
test ebp, ebp
movzx r9d, bl
lea rdx, [0x100006ad0]
lea rcx, [rsp + 0x70]
jle 0x10001e929
lea r8, [0x1000036d0]
call qword [sym.imp.USER32.dll_wsprintfA]
xor ecx, ecx
and bl, 0xf
movzx r8d, bl
lea rdx, [rdi + 0x1960]
mov al, byte [rdx]
and ax, 0xf
cmp ax, r8w
je 0x10001e91b
add ecx, 1
add rdx, 0x28
cmp ecx, 0x10
jb 0x10001e8ff
xor ebx, ebx
jmp 0x10001e96c
lea rcx, [rcx + rcx*4]
lea rbx, [rdi + rcx*8 + 0x1960]
jmp 0x10001e96c
lea r8, [0x1000036e0]
call qword [sym.imp.USER32.dll_wsprintfA]
xor ecx, ecx
and bl, 0xf
movzx r8d, bl
lea rdx, [rdi + 0x1be0]
mov al, byte [rdx]
and ax, 0xf
cmp ax, r8w
je 0x10001e960
add ecx, 1
add rdx, 0x28
cmp ecx, 0x10
jb 0x10001e946
jmp 0x10001e917
lea rcx, [rcx + rcx*4]
lea rbx, [rdi + rcx*8 + 0x1be0]
test rbx, rbx
je 0x10001e98c
lea rdx, [rsp + 0x70]
mov ecx, 2
call fcn.10000f87c
lea rdx, [rbx + 8]
mov rcx, r15
call fcn.10001f020
mov dword [rdi + r13*8 + 0x1e60], ebp
add esi, 1
add r12, 1
cmp esi, dword [rsp + 0x58]
jb 0x10001e88d
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.100033800
mov rbx, qword [rsp + 0x4d8]
add rsp, 0x480
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100021028
Capabilities:
Identify system language via api

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
and qword [rsp + 0x78], 0
and dword [rsp + 0x70], 0
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx r12d, ax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ebp, ax
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea r11, [rsp + 0x78]
mov qword [rsp + 0x20], r11
lea r9, [0x100007a60]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x100007ab0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x100021129
or edx, 0xffffffff
lea rcx, [0x100007848]
call fcn.100011be0
mov rbx, rax
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea edx, [r9 + 8]
lea r8d, [r9 + 4]
mov rcx, qword [rsp + 0x78]
call fcn.100011d64
mov edi, eax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
js 0x100021116
mov r8d, dword [rsp + 0x70]
lea rdx, [0x100007858]
mov ecx, 1
call fcn.10000f87c
mov r11d, dword [rsp + 0x70]
sub r11d, 1
je 0x100021111
cmp r11d, 1
jne 0x10002113a
mov si, r12w
jmp 0x10002113a
mov si, bp
jmp 0x10002113a
lea rdx, [0x100007878]
mov ecx, 1
call fcn.10000f87c
jmp 0x10002113a
lea rdx, [0x1000078a0]
mov ecx, 1
call fcn.10000f87c
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x100021150
and qword [rsp + 0x78], 0
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x100021167
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov ax, si
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x100027074
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
sub rsp, 0x140
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x140], rbx
mov qword [rbp + 0x148], rsi
mov qword [rbp + 0x150], rdi
mov rax, qword [0x10003a170]
xor rax, rbp
mov qword [rbp + 0x110], rax
mov eax, dword [0x10003b0ec]
mov r13d, 1
test r13b, al
jne 0x1000270fb
or eax, r13d
mov ebx, DllRegisterServer
lea rcx, [rbp + 0x70]
mov r8, rbx
xor edx, edx
mov dword [0x10003b0ec], eax
call sub.msvcrt.dll_memset
lea rcx, [rbp + 0x70]
mov dword [rbp + 0x70], ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov r11d, dword [rbp + 0x80]
mov dword [0x10003b0f0], r13d
mov dword [0x10003b0e0], r11d
mov eax, dword [rsp]
sub rsp, 0x10
lea rsi, [rsp + 0x20]
mov eax, dword [rsi]
lea rdx, [rbp + 8]
mov r8d, 0x30
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x100027128
xor eax, eax
jmp 0x1000271f1
mov rbx, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp + 0x3c]
mov ecx, 0x11000
mov r12, rax
add eax, 0xffffffff
mov edi, eax
mov eax, dword [0x10003b0e0]
not rdi
and rdi, rsi
mov esi, 0x2000
sub rdi, r12
cmp eax, r13d
cmove rsi, rcx
add rsi, rbx
cmp rdi, rsi
jb 0x100027121
cmp eax, r13d
je 0x1000271d1
lea rdx, [rbp + 8]
mov r8d, 0x30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x100027121
add rbx, qword [rbp + 0x20]
bt dword [rbp + 0x28], 0xc
jae 0x10002716e
bt dword [rbp + 0x2c], 8
mov rbx, qword [rbp + 8]
jae 0x1000271a1
mov eax, r13d
jmp 0x1000271f1
cmp rdi, rbx
jb 0x100027121
cmp rbx, rsi
mov r9d, 4
mov r8d, 0x1000
cmovb rbx, rsi
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10003b0e0]
jmp 0x1000271d4
mov rbx, rdi
mov r8d, 0x104
cmp eax, r13d
lea r9, [rbp]
mov rdx, r12
mov rcx, rbx
cmove r8d, r13d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rbp + 0x110]
xor rcx, rbp
call fcn.100033800
mov rbx, qword [rbp + 0x140]
mov rsi, qword [rbp + 0x148]
mov rdi, qword [rbp + 0x150]
lea rsp, [rbp + 0x120]
pop r13
pop r12
pop rbp
ret
Function at 0x10002763c
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r13
sub rsp, 0xa0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x10003a170]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov ebx, r8d
mov rsi, rcx
mov r13d, reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [r11 - 0x40], r13
xor ebp, ebp
mov qword [r11 - 0x48], rbp
mov byte [rsp + 0x70], bpl
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [r11 - 0x60]
call fcn.10002149c
nop
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], rbp
mov byte [rsp + 0x40], bpl
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x38]
call fcn.100021388
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
lea r9d, [r13 - 0xb]
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, qword [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebp
je 0x10002771f
cmp qword [rsp + 0x58], 0x10
jb 0x10002770e
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], rbp
mov byte [rsp + 0x40], bpl
jmp 0x100027743
cmp qword [rsp + 0x58], 0x10
jb 0x100027731
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], rbp
mov byte [rsp + 0x40], bpl
mov bpl, 1
cmp qword [rsp + 0x88], 0x10
jb 0x100027758
mov rcx, qword [rsp + 0x70]
call sub.msvcrt.dll_free
mov al, bpl
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.100033800
add rsp, 0xa0
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x10002779c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r13
sub rsp, 0xa0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x10003a170]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbp, r8
mov rbx, rcx
mov r13d, reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [r11 - 0x40], r13
xor esi, esi
mov qword [r11 - 0x48], rsi
mov byte [rsp + 0x70], sil
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [r11 - 0x60]
call fcn.10002149c
nop
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x40], sil
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x38]
call fcn.100021388
mov dword [rsp + 0x30], 4
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
je 0x100027885
mov dword [rbp], esi
cmp qword [rsp + 0x58], 0x10
jb 0x100027874
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x40], sil
jmp 0x1000278a9
cmp qword [rsp + 0x58], 0x10
jb 0x100027897
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x40], sil
mov sil, 1
cmp qword [rsp + 0x88], 0x10
jb 0x1000278be
mov rcx, qword [rsp + 0x70]
call sub.msvcrt.dll_free
mov al, sil
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.100033800
add rsp, 0xa0
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x10002790c
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xf0
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rax, qword [0x10003a170]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rbx, r8
mov rsi, rcx
mov r14d, reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [r11 - 0x50], r14
xor r13d, r13d
mov qword [r11 - 0x58], r13
mov byte [r11 - 0x68], r13b
xor eax, eax
or r12, 0xffffffffffffffff
mov rcx, r12
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea ebp, [rax + 1]
sub rcx, rbp
mov r8, rcx
lea rcx, [r11 - 0x70]
call fcn.10002149c
nop
mov qword [rsp + 0xb0], r14
mov qword [rsp + 0xa8], r13
mov byte [rsp + 0x98], r13b
xor eax, eax
mov rcx, r12
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
sub rcx, rbp
mov r8, rcx
mov rdx, rbx
lea rcx, [rsp + 0x90]
call fcn.10002149c
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r13
mov byte [rsp + 0x38], r13b
mov r9, r12
xor r8d, r8d
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.100021388
nop
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r13
mov byte [rsp + 0x60], r13b
mov r9, r12
xor r8d, r8d
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x58]
call fcn.100021388
nop
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, ebp
xor r8d, r8d
mov rcx, qword [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, r13d
je 0x100027aa1
cmp qword [rsp + 0x78], 0x10
jb 0x100027a6c
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_free
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r13
mov byte [rsp + 0x60], r13b
cmp qword [rsp + 0x50], 0x10
jb 0x100027a8d
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r13
mov byte [rsp + 0x38], r13b
mov bpl, r13b
jmp 0x100027ae3
cmp qword [rsp + 0x78], 0x10
jb 0x100027ab3
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_free
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r13
mov byte [rsp + 0x60], r13b
cmp qword [rsp + 0x50], 0x10
jb 0x100027ad4
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r13
mov byte [rsp + 0x38], r13b
cmp qword [rsp + 0xb0], 0x10
jb 0x100027afb
mov rcx, qword [rsp + 0x98]
call sub.msvcrt.dll_free
mov qword [rsp + 0xb0], r14
mov qword [rsp + 0xa8], r13
mov byte [rsp + 0x98], r13b
cmp qword [rsp + 0xd8], 0x10
jb 0x100027b2b
mov rcx, qword [rsp + 0xc0]
call sub.msvcrt.dll_free
mov al, bpl
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.100033800
add rsp, 0xf0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x10002c864
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x260
mov rax, qword [0x10003a170]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r13, qword [rsp + 0x2c0]
mov r12, r8
mov edi, edx
mov ebx, 0x103
lea rcx, [rsp + 0x31]
xor esi, esi
xor edx, edx
mov r8, rbx
mov ebp, r9d
mov byte [rsp + 0x30], sil
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x141]
mov r8, rbx
xor edx, edx
mov byte [rsp + 0x140], sil
call sub.msvcrt.dll_memset
lea r11, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
xor ecx, ecx
mov qword [rsp + 0x20], r11
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
cmp eax, esi
jge 0x10002c907
mov r8d, edi
lea ecx, [rsi + 1]
lea rdx, [0x10000a5d8]
mov r9d, eax
call fcn.10000f87c
xor eax, eax
jmp 0x10002ca4f
xor eax, eax
or r14, 0xffffffffffffffff
lea rdi, [rsp + 0x30]
lea ebx, [rax + 1]
mov rcx, r14
repne scasb al, byte [rdi]
movzx eax, word [0x100002090]
mov rcx, r14
sub rdi, rbx
mov word [rdi], ax
xor eax, eax
lea rdi, [rsp + 0x30]
repne scasb al, byte [rdi]
sub rdi, rbx
xor ecx, ecx
mov al, byte [r12 + rcx]
mov byte [rdi + rcx], al
add rcx, rbx
test al, al
jne 0x10002c938
cmp ebp, esi
jne 0x10002c985
lea rdx, [0x10000a618]
mov ecx, ebx
call fcn.10000f87c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, esi
je 0x10002c973
lea rdx, [0x10000a658]
jmp 0x10002ca2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x10000a670]
jmp 0x10002ca43
lea rax, [rsp + 0x140]
xor r9d, r9d
xor r8d, r8d
mov edx, ebp
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
cmp eax, esi
jge 0x10002c9b0
mov r8d, ebp
mov ecx, ebx
jmp 0x10002c8f1
xor eax, eax
lea rdi, [rsp + 0x140]
mov rcx, r14
repne scasb al, byte [rdi]
movzx eax, word [0x100002090]
mov rcx, r14
sub rdi, rbx
mov word [rdi], ax
xor eax, eax
lea rdi, [rsp + 0x140]
repne scasb al, byte [rdi]
sub rdi, rbx
xor ecx, ecx
mov al, byte [r13 + rcx]
mov byte [rdi + rcx], al
add rcx, rbx
test al, al
jne 0x10002c9e0
lea r9, [rsp + 0x140]
lea r8, [rsp + 0x30]
lea rdx, [0x10000a698]
mov ecx, ebx
call fcn.10000f87c
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileA]
cmp eax, esi
je 0x10002ca36
lea rdx, [0x10000a6c0]
mov ecx, ebx
call fcn.10000f87c
mov esi, ebx
jmp 0x10002ca4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x10000a6d8]
mov r8d, eax
mov ecx, ebx
call fcn.10000f87c
mov eax, esi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.100033800
add rsp, 0x260
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x10002ca78
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x10003a170]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rdi, rcx
lea rcx, [rsp + 0x61]
xor ebx, ebx
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x60], bl
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x60]
sub rcx, rdi
mov al, byte [rdi]
mov byte [rcx + rdi], al
add rdi, 1
cmp al, bl
jne 0x10002caba
lea rax, [rsp + 0x60]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x40], 0x414
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
call qword [sym.imp.SHELL32.dll_SHFileOperationA]
cmp eax, ebx
jne 0x10002cb0e
mov ebx, 1
jmp 0x10002cb22
lea rdx, [0x10000a748]
mov r8d, eax
mov ecx, 1
call fcn.10000f87c
mov eax, ebx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.100033800
mov rbx, qword [rsp + 0x480]
add rsp, 0x470
pop rdi
ret
Function at 0x10002f9e4
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
lea r8, [rsp + 0x34]
lea rdx, [0x10000bee0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rbx]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10002fa45
xor eax, eax
jmp 0x10002fa8c
xor r9d, r9d
mov rdx, rdi
xor ecx, ecx
lea r8d, [r9 + 0x1e]
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
test eax, eax
je 0x10002fa41
and qword [rsp + 0x28], 0
mov rcx, qword [rbx]
and dword [rsp + 0x3c], 0
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x10002faa0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x220
mov rax, qword [0x10003a170]
xor rax, rsp
mov qword [rsp + 0x210], rax
or qword [rsp + 0x60], 0xffffffffffffffff
or qword [rsp + 0x68], 0xffffffffffffffff
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea rdx, [rsp + 0x60]
mov ecx, eax
call sub.WTSAPI32.dll_WTSQueryUserToken
xor ebx, ebx
cmp eax, ebx
je 0x10002fbd9
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
lea r9d, [rbx + 2]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, 0x2000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
cmp eax, ebx
je 0x10002fbd9
xor eax, eax
lea r8d, [rbx + 0x68]
lea rcx, [rsp + 0x90]
xor edx, edx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
call sub.msvcrt.dll_memset
lea rax, [0x10000bef8]
lea rdx, [rsp + 0x100]
mov r8d, 0x104
mov rcx, rdi
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x90], 0x68
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea r8, [rsp + 0x100]
lea rdx, [0x10000bf08]
lea ecx, [rbx + 1]
call fcn.10000f87c
mov rcx, qword [rsp + 0x68]
lea r11, [rsp + 0x70]
mov qword [rsp + 0x50], r11
lea rax, [rsp + 0x90]
lea r8, [rsp + 0x100]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
neg eax
sbb cl, cl
and cl, 1
mov bl, cl
cmp qword [rsp + 0x60], 0xffffffffffffffff
je 0x10002fbf2
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x10002fc03
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.100033800
mov rbx, qword [rsp + 0x230]
add rsp, 0x220
pop rdi
ret
Function at 0x100033a5c
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x100033ac7
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x100033ae7
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x1000018f8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret

Function at 0x100033f70
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100033fba
cmp rcx, 0xffffffffffffffff
je 0x100033fba
cmp word [rcx], 0x5a4d
jne 0x100033fb2
cmp dword [rcx + 0x3c], edx
jl 0x100033fb2
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100033fb2
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 0x100033fba
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x14034fc20
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14034fc2d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14034fc3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14034fc25
lea eax, [rcx + 1]
jmp 0x14034fc4b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14034fc5e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14034fc44
sub eax, 3
jb 0x14034fc7e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14034fccd
sar eax, 1
movsxd rbp, eax
jb 0x14034fcb4
jmp 0x14034fc8c
add ebx, ebx
jne 0x14034fc8a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14034fcb4
inc ecx
add ebx, ebx
jne 0x14034fc9a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14034fcb4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14034fcad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14034fc9c
add ecx, 2
jmp 0x14034fcb9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14034fbe2
jmp 0x14034fc2d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x9ae00
mov dl, 0x13
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14034fd19
cmp rsi, rcx
jae 0x14034fd21
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14034fd00
cmp al, 0x8f
ja 0x14034fd00
cmp byte [rsi - 2], 0xf
je 0x14034fd06
sub al, 0xe8
cmp al, 1
ja 0x14034fcea
cmp rsi, rcx
jae 0x14034fd21
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14034fcf0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14034fd21
lodsb al, byte [rsi]
jmp 0x14034fd00
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x34c000]
mov eax, dword [rdi]
or eax, eax
je 0x14034fd8a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x34f1dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14034fd2e
jns 0x14034fd63
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14034fd6d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14034fd84
mov qword [rbx], rax
add rbx, 8
jmp 0x14034fd4e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14034fdc4
cmp al, 0xef
ja 0x14034fdb6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14034fd96
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14034fda5
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x24f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14034fe18
sub rsp, 0xffffffffffffff80
jmp 0x14009a358