joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140066704
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14005ac44
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005ac44
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140066854
cmp rax, 0xffffffffffffffff
je 0x140066854
xor edi, edi
test rbp, rbp
jle 0x1400667ff
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140054a5c
mov rbx, rax
test rax, rax
jne 0x14006678c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400667f5
mov edx, 0x8000
mov ecx, r14d
call fcn.140052064
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140057284
cmp eax, 0xffffffff
je 0x1400667d5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14006679c
mov edx, r15d
mov ecx, r14d
call fcn.140052064
jmp 0x1400667f5
cmp byte [rsi + 0x38], dil
je 0x1400667ec
cmp dword [rsi + 0x34], 5
jne 0x1400667ec
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400667f5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140054ad4
jmp 0x140066868
jns 0x140066868
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005ac44
cmp rax, 0xffffffffffffffff
jne 0x140066820
cmp byte [rsi + 0x30], dil
je 0x140066868
mov edi, dword [rsi + 0x2c]
jmp 0x140066868
mov ecx, r14d
call fcn.14005f2b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140066868
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140066868
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140066861
mov eax, dword [rsi + 0x2c]
jmp 0x140066866
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005ac44
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x100004628
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [0x100001688]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x100001670]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [section..data], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x100001698]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x100007008], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1000016b0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x100007010], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1000016d0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x100007018], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1000016f4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x100007020], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1000016fc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x100007028], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x100001704]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x100007030], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x10000170c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x100007038], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x100001714]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x100007040], rax
add rsp, 0x20
pop rbx
ret

Function at 0x100004798
Capabilities:
Check os version

Disassembly:
sub rsp, 0x148
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 6
setb al
add rsp, 0x148
ret
Function at 0x1000048c8
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x80
mov rdi, rcx
call fcn.100004798
test al, al
jne 0x1000048f0
mov eax, 2
jmp 0x1000049dd
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor ebx, ebx
lea rdx, [rsp + 0x20]
lea r8d, [rbx + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x100004987
mov esi, 0x1000
mov ecx, dword [rsp + 0x78]
mov rax, qword [rsp + 0x20]
xor edx, edx
div rcx
test rdx, rdx
jne 0x10000495c
cmp qword [rsp + 0x38], rsi
jne 0x10000495c
cmp dword [rsp + 0x40], esi
jne 0x10000495c
cmp dword [rsp + 0x48], 0x20000
jne 0x10000495c
cmp dword [rsp + 0x44], 4
jne 0x10000495c
movabs rax, 0x74636a6e696d7678
cmp qword [rbx], rax
je 0x1000049f2
add rbx, qword [rsp + 0x38]
cmp rbx, 0x7fff0000
jae 0x1000048e6
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x100004918
lea rsi, [0x100007060]
or edi, 0xffffffff
lea rdx, [0x100001358]
mov rcx, rsi
mov r8d, edi
call fcn.100006040
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xa
mov edx, eax
mov rcx, rsi
call fcn.100005f90
lea rdx, [0x10000125c]
mov r8d, edi
mov rcx, rsi
call fcn.100006040
mov r8d, 0x10
mov edx, ebx
mov rcx, rsi
call fcn.100005f90
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov r8d, 0x20
mov rdx, rbx
mov rcx, rdi
call qword [0x100007020]
mov eax, 1
jmp 0x1000049dd
Function at 0x100004a18
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x840
call fcn.100004798
test al, al
je 0x100004a3a
mov eax, 2
jmp 0x100004c49
mov ebx, 0x400
lea rdx, [rsp + 0x40]
xor ecx, ecx
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x100004c16
cmp eax, ebx
je 0x100004c16
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
xor r9d, r9d
lea r8d, [r9 + 7]
lea rcx, [rsp + 0x40]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x100004a9e
lea rdx, [0x100001200]
jmp 0x100004c1d
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8d, [r9 + 2]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
jne 0x100004acf
lea rdx, [0x100001218]
jmp 0x100004c1d
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
mov qword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbp, rax
test rax, rax
jne 0x100004aff
lea rdx, [0x100001230]
jmp 0x100004c1d
mov rcx, rax
call fcn.100004868
and qword [rsp + 0x868], 0
and dword [rsp + 0x860], 0
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor r9d, r9d
lea rax, [rbx + 0xc]
lea edx, [r9 + 4]
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbp, rax
test rax, rax
jne 0x100004b9e
lea rdx, [0x100001248]
lea rcx, [0x100007060]
or r8d, 0xffffffff
call fcn.100006040
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8d, [rbp + 0xa]
lea rcx, [0x100007060]
mov edx, eax
call fcn.100005f90
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x100004c47
lea rdx, [0x10000125c]
lea rcx, [0x100007060]
or r8d, 0xffffffff
call fcn.100006040
jmp 0x100004bd9
add rbx, rax
lea rcx, [rsp + 0x868]
mov r8d, 8
mov rdx, rbx
call qword [0x100007020]
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x860]
mov r8d, 4
call qword [0x100007020]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movabs r11, 0x74636a6e696d7678
cmp qword [rsp + 0x868], r11
jne 0x100004a30
mov eax, 1
test byte [rsp + 0x860], al
jne 0x100004c49
jmp 0x100004a30
lea rdx, [0x1000011e8]
lea rcx, [0x100007060]
or r8d, 0xffffffff
call fcn.100006040
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x100007060]
mov edx, eax
mov r8d, 0xa
call fcn.100005f90
xor eax, eax
mov rbx, qword [rsp + 0x870]
add rsp, 0x840
pop rdi
pop rsi
pop rbp
ret
Function at 0x100004db8
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, 0x22
cmp word [rax], dx
jne 0x100004e1d
lea rcx, [rax + 2]
call qword [0x100007038]
xor ecx, ecx
cmp rax, rcx
je 0x100004de9
cmp word [rax + 2], cx
je 0x100004de9
add rax, 4
jmp 0x100004e3f
lea rdx, [0x100001170]
lea rcx, [0x100007060]
or r8d, 0xffffffff
call fcn.100006040
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [0x100007060]
mov rdx, rax
or r8d, 0xffffffff
call fcn.100006040
xor eax, eax
jmp 0x100004e3f
mov edx, 0x20
mov rcx, rax
call qword [0x100007038]
xor ecx, ecx
cmp rax, rcx
jne 0x100004e3b
lea rdx, [0x100001188]
jmp 0x100004df0
add rax, 2
add rsp, 0x28
ret

Function at 0x100004e78
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x448
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
lea r8d, [rax + 0x10]
mov dword [rsp + 0x434], eax
mov word [rsp + 0x20], ax
call fcn.100005f00
lea rdx, [rsp + 0x20]
lea rcx, [0x100001160]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x448
ret

Function at 0x100004f18
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor r14d, r14d
mov rdi, rcx
mov rbx, r14
cmp dword [rax + rcx + 0x8c], r14d
je 0x100004fa8
mov esi, dword [rax + rcx + 0x88]
mov ebp, r14d
add rsi, rcx
mov r13d, dword [rsi + 0x1c]
mov r12d, dword [rsi + 0x20]
add r13, rcx
add r12, rcx
cmp dword [rsi + 0x14], r14d
jbe 0x100004fa8
mov ecx, dword [r12]
lea rdx, [0x100001590]
add rcx, rdi
call qword [0x100007030]
cmp eax, r14d
je 0x100004f93
inc ebp
add r12, 4
cmp ebp, dword [rsi + 0x14]
jb 0x100004f6d
jmp 0x100004fa8
mov eax, dword [rsi + 0x24]
mov edx, ebp
lea rcx, [rdi + rax]
movzx eax, word [rcx + rdx*2]
mov ebx, dword [r13 + rax*4]
add rbx, rdi
call main
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
sub eax, dword [0x100007054]
mov rdi, qword [rsp + 0x58]
cmp eax, 0x7fff
cmova rbx, r14
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x140049790
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
xor ebx, ebx
mov dword [rsp + 0x58], 4
cmp dword [0x14009b400], ebx
mov dword [rsp + 0x50], ebx
jne 0x14004980e
lea rax, [r11 + 0x10]
mov r9d, 0x20000010
mov qword [r11 - 0x18], rax
lea r8, str.CacheDisable
lea rax, [r11 + 8]
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFveDetect
mov qword [r11 - 0x28], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, 0xfffffffc
jne 0x14004980e
cmp eax, 1
je 0x14004980e
mov eax, dword [0x14009a71c]
cmp dword [rsp + 0x50], ebx
mov dword [0x14009b400], 1
cmovne eax, ebx
mov dword [0x14009a71c], eax
jmp 0x140049814
mov eax, dword [0x14009a71c]
add rsp, 0x40
pop rbx
ret

Function at 0x14004ab40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14004ab8c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14004ab84
cmp dword [rcx + 0x3c], edx
jl 0x14004ab84
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14004ab84
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 0x14004ab8c
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040ca
push r9
push r8
push rdx
push rcx
push rsi
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040bf
add rax, rdx
push rax
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040be
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004075
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004066
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140001a10
Capabilities:
Set registry value

Disassembly:
jmp 0x140001a10
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rsi
sub rsp, 0x60
lea rax, [r11 + 0x20]
mov rsi, rdx
xor edx, edx
mov qword [r11 - 0x28], rax
lea rax, [r11 - 0x18]
mov qword [r11 - 0x18], rdx
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], rdx
mov rbx, r8
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edx
mov rdx, rcx
mov rcx, 0xffffffff80000001
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140001aa5
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rsp + 0x70], rdi
mov rdi, rbx
lea r9d, [rax + 1]
xor r8d, r8d
repne scasb al, byte [rdi]
mov rdx, rsi
not rcx
and ecx, ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rsi
ret

Function at 0x14000333b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x1400027ca
rol rcx, 0x10
test cx, 0xffff
jne 0x1400027c6
repz ret
ror rcx, 0x10
jmp 0x140003294
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140021b60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140021c58]
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 0x140003319
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, [0x140021b60]
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 0x14000333b
mov rax, qword [rsp + 0x88]
mov qword [0x140021c58], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140021bf8], rax
mov rax, qword [0x140021c58]
mov qword [0x140021ad0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140021be0], rax
mov dword [0x140021ac0], 0xc0000409
mov dword [0x140021ac4], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140020008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140021b58], eax
mov ecx, 1
call fcn.1400071a4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14001ade0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140021b58], 0
jne 0x1400033c2
mov ecx, 1
call fcn.1400071a4
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 0x140004770
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.1400045d8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140007268
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140004890
xor ebx, ebx
cmp qword [0x140022a08], rbx
mov rdi, rax
jne 0x14000737b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140007452
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140007452
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140022a08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140022a10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140022a18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140022a28], rax
test rax, rax
je 0x140007372
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140022a20], rax
jmp 0x140007382
mov rax, qword [0x140022a20]
jmp 0x140007389
mov rax, qword [0x140022a20]
mov r11, qword [0x140022a28]
cmp rax, rdi
je 0x1400073f0
cmp r11, rdi
je 0x1400073f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140022a28]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400073f0
test rax, rax
je 0x1400073f0
call rsi
test rax, rax
je 0x1400073ea
lea rcx, [rsp + 0x30]
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 0x1400073ea
test byte [rsp + 0x40], 1
jne 0x1400073f0
bts ebp, 0x15
jmp 0x140007430
mov rcx, qword [0x140022a10]
cmp rcx, rdi
je 0x140007430
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140007430
call rax
mov rbx, rax
test rax, rax
je 0x140007430
mov rcx, qword [0x140022a18]
cmp rcx, rdi
je 0x140007430
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140007430
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140022a08]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140007452
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140007454
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400027b0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400316e0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14003170d
xor al, al
jmp 0x14003186f
mov rax, qword [0x1400526c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1400526c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1400526d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1400526d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1400526e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1400526e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1400526f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1400526f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x140052700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x140031861
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x1400317b9
mov r11d, 2
jmp 0x1400317dd
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x1400317d3
mov r11d, 1
jmp 0x1400317dd
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x140031885
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x140031822
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14003183a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x14003184a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x140031858
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x1400317a0
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x14003186a
Function at 0x140002210
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002290
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400583d0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400022af
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400022b8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400022af
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002350
Capabilities:
Parse pe header

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

Function at 0x1400027e0
Capabilities:
Modify service

Disassembly:
push r13
push r12
sub rsp, 0x78
mov rax, qword [str.Manages_universal_application_core_process_that_in_Windows_8_and_continues_in_Windows_10._It_is_used_to_determine_whether_universal_apps_installed_from_the_Windows_Store_are_declaring_all_of_their_permissions__like_being_able_to_access_your_telemetry__location_or_microphone._It_helps_to_transact_records_of_your_universal_apps_with_the_trust_and_privacy_settings_of_user.]
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x68], rax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r13, rax
test rax, rax
je 0x1400028a2
mov rdx, qword [str.TransactionBrokerService]
mov r8d, 2
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov r12, rax
test rax, rax
jne 0x140002839
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400028a2
mov r8d, 2
or edx, 0xffffffff
mov rcx, rax
or r9d, 0xffffffff
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
lea r8, [rsp + 0x68]
mov edx, 1
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
nop
add rsp, 0x78
pop r12
pop r13
ret