joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f7e0
Capabilities:
Encode data using xor

Disassembly:
mov r8d, edx
lea rax, [rcx + 1]
shl r8d, 4
lea r10, [0x140041540]
inc r8d
mov r9d, 4
nop dword [rax + rax]
lea ecx, [r8 - 1]
movzx ecx, byte [rcx + r10]
xor byte [rax - 1], cl
lea rax, [rax + 4]
movzx ecx, byte [r8 + r10]
xor byte [rax - 4], cl
lea ecx, [r8 + 1]
movzx ecx, byte [rcx + r10]
xor byte [rax - 3], cl
lea ecx, [r8 + 2]
lea r8d, [r8 + 4]
movzx ecx, byte [rcx + r10]
xor byte [rax - 2], cl
sub r9, 1
jne 0x14000f500
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
call 0x14000f4e0
lea edi, [rdx + 1]
mov rcx, rbx
call fcn.14000f5f0
mov rcx, rbx
call fcn.14000f640
mov rcx, rbx
call fcn.14000f690
mov edx, edi
mov rcx, rbx
call 0x14000f4e0
inc edi
cmp edi, 0xb
jb 0x14000f787
mov rcx, rbx
call fcn.14000f5f0
mov rcx, rbx
call fcn.14000f640
mov edx, ntohs
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14000f4e0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14d, ecx
mov esi, ecx
shr esi, 4
and r14d, 0xf
xor ebx, ebx
mov rdi, r8
mov rbp, rdx
test esi, esi
je 0x14000f836
mov ecx, ebx
mov r8d, 0x10
shl ecx, 4
mov rdx, rdi
add rcx, rbp
call fcn.14000f540
mov rcx, rdi
call 0x14000f770
inc ebx
cmp ebx, esi
jb 0x14000f812
xor byte [r14 + rdi], 0x80
mov r8d, r14d
shl ebx, 4
mov rdx, rdi
mov ecx, ebx
add rcx, rbp
call fcn.14000f540
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp 0x14000f770

Function at 0x14000f870
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, r8
mov qword [rsp + 0x40], 0
mov rdi, rdx
mov qword [rsp + 0x30], 0
mov ebx, ecx
mov dword [rsp + 0x38], 0x20
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
lea rcx, [rsp + 0x40]
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14000f941
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
mov r8, rsi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000f92f
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000f941
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400102f0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000f9e0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor eax, eax
mov dword [rsp + 0x40], 0x20
xor ebp, ebp
mov qword [r11 - 0x40], rax
mov rsi, r8
mov qword [r11 - 0x38], rax
mov rdi, rdx
mov qword [r11 - 0x30], rax
mov ebx, ecx
mov qword [r11 - 0x28], rax
lea r9d, [rbp + 0x18]
mov qword [r11 - 0x60], rbp
xor r8d, r8d
mov qword [r11 - 0x50], rbp
xor edx, edx
mov qword [r11 - 0x68], rbp
lea rcx, [r11 - 0x60]
mov dword [rsp + 0x50], 0x800c
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14000fb1a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8d, [rbp + 0x1c]
xor r9d, r9d
mov dword [rsp + 0x20], ebp
lea rdx, [0x140048a80]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov r8, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov edx, 0x8009
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x50]
xor r9d, r9d
lea edx, [rbp + 5]
call qword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x40]
mov r8, rsi
mov dword [rsp + 0x20], ebp
lea edx, [rbp + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000faf8
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000fb08
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000fb1a
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400102f0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000fce0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov dword [rsp + 0x20], 0xf0000000
mov rdi, rcx
mov qword [rsp + 0x30], rbx
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
lea r9d, [rbx + 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14000fd3d
mov rcx, qword [rsp + 0x30]
lea edx, [rbx + 0x10]
mov r8, rdi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x14000fd3d
mov ebx, 1
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000fd4f
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400102f0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14000ff00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x310
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x350], rbx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov r14, rdx
mov r15, rcx
mov dword [rsp + 0xa8], 0x100
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x100]
call fcn.1400148a0
movzx eax, byte [r14 + 0x1f]
movzx ecx, byte [r14 + 0x1e]
movzx edx, byte [r14 + 0x1d]
movzx r8d, byte [r14 + 0x1c]
movzx r10d, byte [r14 + 0x1b]
movzx r11d, byte [r14 + 0x1a]
movzx ebx, byte [r14 + 0x19]
movzx edi, byte [r14 + 0x18]
movzx esi, word [r14 + 0x16]
movzx ebp, word [r14 + 0x14]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x58], edx
mov dword [rsp + 0x50], r8d
mov dword [rsp + 0x48], r10d
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], ebp
mov r9d, dword [r14 + 0x10]
lea r8, [0x140041660]
mov edx, 0x25
lea rcx, [rsp + 0xb0]
call fcn.14000fba0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesKMSServerServiceParametersKMSPID
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400100a4
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010094
lea rdx, str.__0_9_5____0_9_5____0_9_3____0_9_6____0_9_2____0_9_4_5____0_9_4_.__0_9_4____0_9_7__
lea rcx, [rsp + 0x78]
call fcn.140003fa0
nop
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.140005670
movzx ebx, al
lea rcx, [rsp + 0x78]
call fcn.140003f80
test bl, bl
je 0x140010094
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x100]
mov edx, 0x40
mov rcx, r15
call fcn.1400029f0
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400100b8
lea r8, [0x1400400dc]
mov edx, 0x40
mov rcx, r15
call fcn.1400029f0
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.1400102f0
mov rbx, qword [rsp + 0x350]
add rsp, 0x310
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400100e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x310
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x350], rbx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov r14, rdx
mov r15, rcx
mov dword [rsp + 0xa8], 0x100
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x100]
call fcn.1400148a0
movzx eax, byte [r14 + 0x1f]
movzx edx, byte [r14 + 0x1e]
movzx r8d, byte [r14 + 0x1d]
movzx r10d, byte [r14 + 0x1c]
movzx r11d, byte [r14 + 0x1b]
movzx ecx, byte [r14 + 0x1a]
movzx ebx, byte [r14 + 0x19]
movzx edi, byte [r14 + 0x18]
movzx esi, word [r14 + 0x16]
movzx ebp, word [r14 + 0x14]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], edx
mov dword [rsp + 0x58], r8d
mov dword [rsp + 0x50], r10d
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], ebp
mov r9d, dword [r14 + 0x10]
lea r8, str._08X__04hX__04hX__02X_02X__02X_02X_02X_02X_02X_02X
mov edx, 0x25
lea rcx, [rsp + 0xb0]
call fcn.14000fba0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesKMSServerServiceParametersKMSHWID
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010285
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010275
lea rdx, str._a_fA_F0_9_16_
lea rcx, [rsp + 0x78]
call fcn.140003fa0
nop
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.140005670
movzx ebx, al
lea rcx, [rsp + 0x78]
call fcn.140003f80
test bl, bl
je 0x140010275
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
lea r8d, [rdx + 0x10]
lea rcx, [rsp + 0x100]
call fcn.14001a8e0
mov qword [r15], rax
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001028c
mov qword [r15], 0
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.1400102f0
mov rbx, qword [rsp + 0x350]
add rsp, 0x310
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140015d6c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140015b40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140015b40
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140015b40
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140015b40
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140015b40
cmp dword [rcx + 0x84], 0xe
jbe 0x140015b40
cmp dword [rcx + 0xf8], esi
je 0x140015b40
mov ecx, r14d
call fcn.140015c88
mov ecx, 2
call fcn.14001de0c
nop
cmp byte [0x140049bb8], 0
jne 0x140015c0a
mov r15d, 1
mov eax, r15d
xchg dword [0x140049ba8], eax
test ebx, ebx
jne 0x140015bb3
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140049bb0]
cmp rcx, rax
je 0x140015baa
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140015590]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140049e68]
jmp 0x140015bbf
cmp ebx, r15d
jne 0x140015bc5
lea rcx, [0x140049e80]
call fcn.14001d40c
nop
test ebx, ebx
jne 0x140015bdc
lea rdx, [0x140031450]
lea rcx, [0x140031430]
call fcn.14001bb48
lea rdx, [0x140031460]
lea rcx, [0x140031458]
call fcn.14001bb48
movzx eax, byte [0x140049bb8]
test esi, esi
cmove eax, r15d
mov byte [0x140049bb8], al
jmp 0x140015c0a
mov ecx, 2
call fcn.14001de60
test esi, esi
jne 0x140015c21
mov ecx, r14d
call fcn.140015c3c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140015ad0
Function at 0x140001096
Capabilities:
Enumerate threads

Disassembly:
jmp 0x140002050
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
lea rdi, [rsp + 0x20]
mov ecx, 0x34
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x100]
mov rax, qword [0x140015418]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [rsp + 0x20], eax
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x38], 0x1c
lea rax, [rsp + 0x3c]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
mov dword [rsp + 0x80], 0x48
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x14000212a
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x44], eax
jne 0x140002117
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x108]
call fcn.140001253
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1400020fb
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x108]
call fcn.1400013f2
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140010020]
call fcn.14000143d
mov rax, rdi
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140001271
add rsp, 0xf0
pop rdi
ret

Function at 0x1400012cb
Capabilities:
Terminate process

Disassembly:
jmp 0x140007e50
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14000137f
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400091a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400091c0
xor al, al
jmp 0x140009241
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400091d3
xor al, al
jmp 0x140009241
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400091fd
xor al, al
jmp 0x140009241
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140009211
xor al, al
jmp 0x140009241
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140009223
xor al, al
jmp 0x140009241
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14000923f
xor al, al
jmp 0x140009241
mov al, 1
add rsp, 0x38
ret
Function at 0x140002050
Capabilities:
Enumerate threads

Disassembly:
jmp 0x140002050
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
lea rdi, [rsp + 0x20]
mov ecx, 0x34
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x100]
mov rax, qword [0x140015418]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [rsp + 0x20], eax
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x38], 0x1c
lea rax, [rsp + 0x3c]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
mov dword [rsp + 0x80], 0x48
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x14000212a
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x44], eax
jne 0x140002117
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x108]
call fcn.140001253
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1400020fb
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x108]
call fcn.1400013f2
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140010020]
call fcn.14000143d
mov rax, rdi
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140001271
add rsp, 0xf0
pop rdi
ret
Function at 0x140005f30
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x140005f30
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x44], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x140005fea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
lea rdx, str.Failed_to_protect_
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000108c
lea rdx, [0x1400014ab]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov ecx, dword [rsp + 0x54]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x1400112b4]
mov rcx, rax
call fcn.14000108c
xor al, al
jmp 0x140006033
mov byte [rsp + 0x30], 1
lea rdx, str.Protection_changed__Old:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000108c
lea rdx, [0x1400014ab]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, dword [rsp + 0x44]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x140011364]
mov rcx, rax
call fcn.14000108c
movzx eax, byte [rsp + 0x30]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140011590]
call fcn.14000143d
mov rax, rdi
add rsp, 0x60
pop rdi
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00406d30]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00406d40]
mov dword [rax], 1
mov rax, qword [0x00406d50]
mov dword [rax], 1
mov rax, qword [0x00406d20]
mov dword [rax], 1
mov rax, qword [0x00406c10]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00406d10]
mov dword [0x00409008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00406cd0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00406b80]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401550
Capabilities:
Download url
Receive data

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rdx
mov rax, qword [rbp - 0x18]
mov rcx, rax
call fcn.00402498
mov rbx, rax
mov rcx, qword [rbp - 0x20]
call fcn.00402498
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rbx
mov rdx, rax
mov ecx, 0
call sym.URLDownloadToFileW
mov dword [rbp - 0x44], eax
mov eax, dword [rbp - 0x44]
test eax, eax
jns 0x4015ef
lea rdx, str.Failed_to_download_file._HRESULT:
mov rcx, qword [sym.imp.libstdc_6.dll_std::wcerr]
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::operator____wchar_t__std::char_traits_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t_____wchar_t_const_
mov rcx, rax
lea rax, [method.std.hex_std::ios_base_]
mov rdx, rax
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t___::operator___std::ios_base____std::ios_base__
mov rcx, rax
mov eax, dword [rbp - 0x44]
mov edx, eax
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t___::operator___long_
mov rdx, qword [0x00406b90]
mov rcx, rax
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t___::operator___std::basic_ostream_wchar_t__std::char_traits_wchar_t_______std::basic_ostream_wchar_t__std::char_traits_wchar_t_____
mov eax, 0
jmp 0x4015f4
mov eax, 1
add rsp, 0x48
pop rbx
pop rbp
ret
Function at 0x4019b7
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov dword [rbp - 4], 0
mov qword [rbp - 0x10], 0
mov byte [rbp - 0x16], 0
mov byte [rbp - 0x15], 0
mov byte [rbp - 0x14], 0
mov byte [rbp - 0x13], 0
mov byte [rbp - 0x12], 0
mov byte [rbp - 0x11], 5
lea rax, [rbp - 0x16]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
call rax
test eax, eax
setne al
test al, al
je 0x401a85
mov rax, qword [rbp - 0x10]
lea rdx, [rbp - 4]
mov r8, rdx
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
call rax
test eax, eax
sete al
test al, al
je 0x401a75
mov dword [rbp - 4], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_FreeSid]
call rax
mov eax, dword [rbp - 4]
test eax, eax
setne al
sub rsp, 0xffffffffffffff80
pop rbp
ret

Function at 0x401a93
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0x2a0
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x10]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call rax
test eax, eax
setne al
test al, al
je 0x401b53
lea rdx, [rbp - 0x60]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x60], 0x70
lea rax, str.runas
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x10]
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x30], 1
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExW]
call rax
test eax, eax
sete al
test al, al
je 0x401b53
lea rdx, str.Failed_to_relaunch_as_administrator._Error_code:
mov rcx, qword [sym.imp.libstdc_6.dll_std::wcerr]
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::operator____wchar_t__std::char_traits_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t_____wchar_t_const_
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rcx, rbx
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t___::operator___unsigned_long_
mov rdx, qword [0x00406b90]
mov rcx, rax
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t___::operator___std::basic_ostream_wchar_t__std::char_traits_wchar_t_______std::basic_ostream_wchar_t__std::char_traits_wchar_t_____
nop
add rsp, 0x2a0
pop rbx
pop rdi
pop rbp
ret