joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005726c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14004b244
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14005730d
cmp ebx, dword [rsp + 0x30]
je 0x140057306
test esi, esi
je 0x140057306
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400572e1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400572ee
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400572cb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400572f2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14005730f
mov eax, 1
jmp 0x14005730f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14005bc10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005bc38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14005bc38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x12520
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov edx, 1
mov ecx, dword [rsp + 0x40]
call fcn.00011030
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x12558
mov edx, dword [rsp + 0x40]
lea rcx, [0x000154a0]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x13a00
Capabilities:
Check os version
Print debug messages

Disassembly:
sub rsp, 0x178
mov rax, qword [0x00017100]
xor rax, rsp
mov qword [rsp + 0x168], rax
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x20], 0xffffffff
call fcn.00013560
movzx eax, al
cmp eax, 1
jle 0x13a88
call fcn.00013560
movzx edx, al
lea rcx, [0x000154d0]
call sub.ntoskrnl.exe_DbgPrint
xor r11d, r11d
cmp r11d, 1
je 0x13a7d
xor r9d, r9d
mov r8d, 0x2e8
lea rdx, [0x00015500]
lea rcx, [0x00015520]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov dword [rsp + 0x164], 0
jmp 0x13a88
mov dword [rsp + 0x164], 1
mov dword [rsp + 0x40], 0x11c
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jge 0x13aad
xor eax, eax
jmp 0x13c36
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x160], eax
movzx eax, word [rsp + 0x154]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x24], 5
jne 0x13b14
cmp dword [rsp + 0x160], 1
jne 0x13b14
cmp dword [rsp + 0x28], 2
jne 0x13af6
mov dword [rsp + 0x20], 0
jmp 0x13b0f
cmp dword [rsp + 0x28], 3
jne 0x13b07
mov dword [rsp + 0x20], 1
jmp 0x13b0f
mov dword [rsp + 0x20], 0xffffffff
jmp 0x13c32
cmp dword [rsp + 0x24], 5
jne 0x13b65
cmp dword [rsp + 0x160], 2
jne 0x13b65
cmp dword [rsp + 0x28], 0
jne 0x13b36
mov dword [rsp + 0x20], 2
jmp 0x13b60
cmp dword [rsp + 0x28], 1
jne 0x13b47
mov dword [rsp + 0x20], 3
jmp 0x13b60
cmp dword [rsp + 0x28], 2
jne 0x13b58
mov dword [rsp + 0x20], 4
jmp 0x13b60
mov dword [rsp + 0x20], 0xffffffff
jmp 0x13c32
cmp dword [rsp + 0x24], 6
jne 0x13bb3
cmp dword [rsp + 0x160], 0
jne 0x13bb3
cmp dword [rsp + 0x28], 0
jne 0x13b87
mov dword [rsp + 0x20], 5
jmp 0x13bb1
cmp dword [rsp + 0x28], 1
jne 0x13b98
mov dword [rsp + 0x20], 6
jmp 0x13bb1
cmp dword [rsp + 0x28], 2
jne 0x13ba9
mov dword [rsp + 0x20], 7
jmp 0x13bb1
mov dword [rsp + 0x20], 0xffffffff
jmp 0x13c32
cmp dword [rsp + 0x24], 6
jne 0x13bf0
cmp dword [rsp + 0x160], 1
jne 0x13bf0
cmp dword [rsp + 0x28], 0
jne 0x13bd5
mov dword [rsp + 0x20], 8
jmp 0x13bee
cmp dword [rsp + 0x28], 1
jne 0x13be6
mov dword [rsp + 0x20], 9
jmp 0x13bee
mov dword [rsp + 0x20], 0xffffffff
jmp 0x13c32
cmp dword [rsp + 0x24], 6
jne 0x13c12
cmp dword [rsp + 0x160], 2
jne 0x13c12
cmp dword [rsp + 0x28], 0
jne 0x13c10
mov dword [rsp + 0x20], 0xa
jmp 0x13c32
cmp dword [rsp + 0x24], 6
jne 0x13c32
cmp dword [rsp + 0x160], 3
jne 0x13c32
cmp dword [rsp + 0x28], 0
jne 0x13c32
mov dword [rsp + 0x20], 0xb
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.00014ef0
add rsp, 0x178
ret
Function at 0x142c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x5c], 0xc0000001
mov dword [rsp + 0x20], 0
lea rdi, [rsp + 0x28]
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
cmp qword [rsp + 0x78], 0
je 0x1430e
cmp qword [rsp + 0x70], 0
jne 0x14324
lea rcx, [0x00015680]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc000000d
jmp 0x143cf
mov dword [rsp + 0x20], 0x30
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x38], 0x240
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
lea r8, [rsp + 0x20]
mov edx, 1
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwOpenSymbolicLinkObject]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
jge 0x1437f
mov eax, dword [rsp + 0x5c]
jmp 0x143cf
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySymbolicLinkObject]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
jge 0x143af
mov edx, dword [rsp + 0x5c]
lea rcx, [0x000156b0]
call sub.ntoskrnl.exe_DbgPrint
cmp qword [rsp + 0x50], 0
je 0x143cb
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov qword [rsp + 0x50], 0
mov eax, dword [rsp + 0x5c]
add rsp, 0x60
pop rdi
ret

Function at 0x14ca0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x30], 0xffffffffffffffff
je 0x14cd0
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x30], 0
jne 0x14cd7
mov eax, 0xc0000001
jmp 0x14d41
cmp qword [rsp + 0x68], 0
je 0x14cea
mov rax, qword [rsp + 0x68]
mov dword [rax], 0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [rax + 0x30]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x14d2a
mov edx, dword [rsp + 0x30]
lea rcx, [0x00015750]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0x30]
jmp 0x14d41
cmp qword [rsp + 0x68], 0
je 0x14d3d
mov rcx, qword [rsp + 0x68]
mov eax, dword [rsp + 0x28]
mov dword [rcx], eax
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x19064
Capabilities:
Create device object

Disassembly:
sub rsp, 0x28
mov r8, rdx
mov r9, rcx
call fcn.00019008
mov rdx, r8
mov rcx, r9
add rsp, 0x28
jmp fcn.000111d0
Function at 0x140002ec0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ebx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, ebx
movabs rax, 0x20c49ba5e353f7cf
imul rdx, qword [rdi + 0x288]
imul rdx
mov rbx, rdx
sar rbx, 7
mov rax, rbx
shr rax, 0x3f
add rbx, rax
add rbx, qword [rsp + 0x30]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [rsp + 0x40], rbx
jle 0x140002f10
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x14000f840
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x58
cmp byte [0x14004c850], 0
je 0x14000f857
mov eax, 0xffffffff
add rsp, 0x58
ret
mov qword [rsp + 0x50], rbx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x20]
lea rcx, [0x14004c8c0]
call fcn.14000fb20
cmp al, 1
jne 0x14000f921
call fcn.14001ddf0
cmp byte [rax], bl
je 0x14000f91a
call fcn.14001ddf0
cmp byte [rax + 0x90], bl
je 0x14000f91a
call fcn.14001ddf0
cmp byte [rax + 0x50], bl
je 0x14000f91a
call fcn.14001ddf0
cmp byte [rax + 0xa0], bl
je 0x14000f91a
call fcn.14001ddf0
cmp byte [rax + 0xb0], bl
je 0x14000f91a
call fcn.14001ddf0
cmp byte [rax + 0xc0], bl
je 0x14000f91a
lea rax, [0x14004c928]
mov dword [0x14004cb4c], 1
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
lea rax, [0x140011e30]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14000f925
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x14004cb3c], eax
mov ebx, eax
jmp 0x14000f925
mov ebx, 0x80070032
jmp 0x14000f925
mov ebx, dword [rsp + 0x20]
cmp dword [0x14004cb4c], 0
jne 0x14000f93d
cmp byte [0x14004c922], 0
je 0x14000f93d
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x58
ret
Function at 0x140011330
Capabilities:
Create service

Disassembly:
push rdi
sub rsp, 0xa90
mov rax, qword [0x14004b0e8]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.1400115b0
test eax, eax
je 0x140011361
mov eax, 1
jmp 0x140011468
mov r8d, 0x104
lea rdx, [rsp + 0x72]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14001155e
cmp eax, 0x104
je 0x14001155e
lea ecx, [rax + 1]
mov r8d, 0x22
mov word [rsp + 0x70], r8w
mov word [rsp + rcx*2 + 0x70], r8w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x1400115a7
mov qword [rsp + 0xaa8], rbx
xor edx, edx
mov qword [rsp + 0xab0], rsi
mov r8d, 0xf003f
xor esi, esi
mov word [rsp + rcx + 0x70], si
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140011481
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80a
call fcn.140011210
test eax, eax
jne 0x14001143f
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.140029150
test eax, eax
je 0x14001143f
cmp eax, 0xc
je 0x14001157b
cmp eax, 0x16
je 0x140011570
cmp eax, 0x22
je 0x140011570
cmp eax, 0x50
jne 0x140011565
lea r8, [rdi + 0x68]
xor r9d, r9d
lea rdx, [rsp + 0x280]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rbx, qword [rsp + 0xaa8]
mov rsi, qword [rsp + 0xab0]
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.14001fae0
add rsp, 0xa90
pop rdi
ret
mov qword [rsp + 0x60], rsi
lea rax, str.RPCSS
mov qword [rsp + 0x58], rsi
add rdi, 0x68
mov qword [rsp + 0x50], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov r8, rdi
mov qword [rsp + 0x38], rax
mov rdx, rdi
mov dword [rsp + 0x30], 1
mov rcx, rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
jne 0x140011542
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80b
call fcn.140011210
test eax, eax
jne 0x140011537
lea r8, str.Could_not_start_service
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.140029150
test eax, eax
je 0x140011537
cmp eax, 0xc
je 0x14001159c
cmp eax, 0x16
je 0x140011591
cmp eax, 0x22
je 0x140011591
cmp eax, 0x50
jne 0x140011586
xor r9d, r9d
mov r8, rdi
jmp 0x140011446
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x140011458
xor eax, eax
jmp 0x140011468
mov ecx, 0x80004005
call fcn.140004970
int3
mov ecx, 0x80070057
call fcn.140004970
int3
mov ecx, 0x8007000e
call fcn.140004970
int3
mov ecx, 0x80004005
call fcn.140004970
int3
mov ecx, 0x80070057
call fcn.140004970
int3
mov ecx, 0x8007000e
call fcn.140004970
int3
call fcn.140020124
int3
Function at 0x140011630
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
cmp dword [rcx + 0x28c], 0
mov rsi, rcx
je 0x140011758
lea rdx, str.SeDebugPrivilege
mov qword [rsp + 0x78], r14
call fcn.140010360
lea rdx, str.SeImpersonatePrivilege
mov rcx, rsi
call fcn.140010360
lea rdx, str.SeTcbPrivilege
mov rcx, rsi
call fcn.140010360
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx edx, byte [rsi + 0x299]
movzx ecx, byte [rsi + 0x298]
mov dword [rsi + 0x290], eax
call fcn.14001a3d0
test rax, rax
jne 0x1400116a9
mov eax, 0x8007000e
jmp 0x1400116b3
xor edx, edx
mov rcx, rax
call fcn.14001a4f0
xor ebx, ebx
lea rcx, [rsp + 0x20]
test eax, eax
cmovns ebx, eax
call fcn.140003630
mov rcx, qword [rsp + 0x20]
call fcn.140004360
mov rdi, qword [rsp + 0x28]
mov r14d, eax
test rdi, rdi
je 0x14001171f
mov qword [rsp + 0x70], rbp
mov ebp, 0xffffffff
mov ecx, ebp
lock xadd dword [rdi + 8], ecx
cmp ecx, 1
jne 0x14001171a
mov rdx, qword [rdi]
mov rcx, rdi
mov rax, qword [rdx]
call qword [0x140037608]
lock xadd dword [rdi + 0xc], ebp
cmp ebp, 1
jne 0x14001171a
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [0x140037608]
mov rbp, qword [rsp + 0x70]
mov eax, 0x80004005
test r14d, r14d
cmove ebx, eax
xor edx, edx
xor ecx, ecx
call fcn.14001fa4c
xor ecx, ecx
call fcn.140026b80
xor ecx, ecx
call fcn.140026b80
xor ecx, ecx
call fcn.140026b80
xor ecx, ecx
call fcn.140026b80
mov r14, qword [rsp + 0x78]
test ebx, ebx
js 0x1400117a2
cmp dword [rsi + 0x28c], 0
je 0x140011780
mov eax, 4
lea rdx, [rsi + 0x270]
xchg dword [rsi + 0x274], eax
mov rcx, qword [rsi + 0x268]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov rcx, rsi
call fcn.140010850
xor ebx, ebx
test eax, eax
cmovns ebx, eax
test ebx, ebx
js 0x1400117a2
lfence
mov rcx, rsi
call fcn.140010420
mov ebx, eax
test eax, eax
jne 0x1400117ef
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x1400117f3
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jg 0x1400117c0
jmp 0x1400117f3
test ebx, ebx
js 0x14001185d
mov rbx, qword [0x14004b060]
xor edi, edi
mov rdx, qword [0x14004b068]
cmp rbx, rdx
jae 0x140011837
test edi, edi
jne 0x140011837
mov rax, qword [rbx]
test rax, rax
je 0x14001182e
mov rax, qword [rax + 0x20]
mov ecx, dword [rax + 8]
test ecx, ecx
je 0x14001182e
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov rdx, qword [0x14004b068]
mov edi, eax
add rbx, 8
cmp rbx, rdx
jb 0x140011808
cmp byte [rsi + 0x60], 0
je 0x140011849
lfence
mov ecx, dword [rsi + 0x5c]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140016430
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x1400164e9
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x1400164b5
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x1400164cd
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x1400164cd
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call qword [0x140037608]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp dword [rdi + 8], 0
je case.default.0x1400164cd
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp byte [0x14004cba8], 0
jne 0x140016534
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140016524
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14004cba0], rax
mov byte [0x14004cba8], 1
jmp 0x14001653b
mov rax, qword [0x14004cba0]
mov byte [0x14004cba8], 1
jmp 0x14001653b
mov rax, qword [0x14004cba0]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x1400164be
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [0x140037608]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
movabs al, byte [0xc713d02affd02c23]
cmp dh, bh
add eax, 0x51ffa0f8
invalid
Function at 0x140017910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x14004b0e8]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x60], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140017995
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140017995
call fcn.140015e90
mov ebx, eax
jmp 0x140017ac0
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400179b6
call fcn.140015e90
jmp 0x140017aaf
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400179d9
call fcn.140015e90
jmp 0x140017aaf
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1400179fb
mov ebx, 0x8007000e
jmp 0x140017ab1
mov ecx, eax
test eax, eax
je 0x140017a33
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140017af8
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140017a33
lfence
lea rcx, [rsp + 0x60]
call fcn.140015d00
jmp 0x140017a3d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x140017a50
cmp qword [rsp + 0x60], 0
jne 0x140017a5f
mov ebx, 0x8007000e
jmp 0x140017ab1
lfence
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140017a8c
call fcn.140015e90
jmp 0x140017aaf
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.140017440
mov ebx, eax
test rdi, rdi
je 0x140017ac0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x140017ad7
lea rcx, [rsp + 0x60]
call fcn.140016570
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14001fae0
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
lfence
mov ecx, 0x80070216
call fcn.140004970
int3
Function at 0x140020980
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400209ca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400209ca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400209ca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400209ca
cmp dword [rcx + 0x84], 0xe
jbe 0x1400209ca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400209cc
xor al, al
add rsp, 0x28
ret
Function at 0x14002eae8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002eb6f
mov rsi, rbx
cmp word [rax], bp
je 0x14002eb2e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002eb18
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002eb14
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002aa60
mov rdi, rax
test rax, rax
je 0x14002eb5c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140022230
mov rbp, rdi
xor ecx, ecx
call fcn.14002aa00
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x412aa0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x412c2b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00ca7a30]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x412b05
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x412b14
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x412b33
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x412b43
cmp rbx, 0x1000
jae 0x412b0b
jmp 0x412bad
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x412b55
xor edx, edx
jmp 0x412ba4
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00ca7a30]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x412b39
jmp 0x412b28
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x00ca7a30]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x004ceed8]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004cf338]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004d14c8]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS