joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14065d058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14065d1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14065d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065d06f
add dl, dl
jne 0x14065d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065d0f6
xor eax, eax
add dl, dl
jne 0x14065d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065d1ad
add dl, dl
jne 0x14065d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14065d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14065d07e
mov eax, 1
add dl, dl
jne 0x14065d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065d0fb
sub eax, ebx
mov ebx, 1
jne 0x14065d14c
mov ecx, 1
add dl, dl
jne 0x14065d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14065d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14065d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14065d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065d15d
cmp eax, 0x7d00
jae 0x14065d19b
cmp eax, 0x500
jb 0x14065d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065d07e
cmp eax, 0x7f
ja 0x14065d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14065d1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14065d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140115c00
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140115c0d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140115c1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140115c05
lea eax, [rcx + 1]
jmp 0x140115c2b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140115c3e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140115c24
sub eax, 3
jb 0x140115c5e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140115cad
sar eax, 1
movsxd rbp, eax
jb 0x140115c94
jmp 0x140115c6c
add ebx, ebx
jne 0x140115c6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140115c94
inc ecx
add ebx, ebx
jne 0x140115c7a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140115c94
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140115c8d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140115c7c
add ecx, 2
jmp 0x140115c99
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140115bc2
jmp 0x140115c0d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xcba00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140115cf9
cmp rsi, rcx
jae 0x140115d01
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140115ce0
cmp al, 0x8f
ja 0x140115ce0
cmp byte [rsi - 2], 0xf
je 0x140115ce6
sub al, 0xe8
cmp al, 1
ja 0x140115cca
cmp rsi, rcx
jae 0x140115d01
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140115cd0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140115d01
lodsb al, byte [rsi]
jmp 0x140115ce0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x113000]
mov eax, dword [rdi]
or eax, eax
je 0x140115d5e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1155b8]
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 0x140115d0e
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 0x140115d58
mov qword [rbx], rax
add rbx, 8
jmp 0x140115d2e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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 + 0x247]
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 0x140115db6
sub rsp, 0xffffffffffffff80
jmp 0x140001e51
Function at 0x180001040
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x180007040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x1800010ed
lea rdx, str.NtQuerySection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtProtectVirtualMemory
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rdi, rdi
je 0x1800010ed
test rax, rax
je 0x1800010ed
movzx edi, byte [rdi + 4]
lea r9, [rsp + 0x20]
mov edx, 5
mov r8d, 0x40
mov rcx, rax
dec dil
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800010ed
mov dword [rbx], 0xb8d18b4c
lea r9, [rsp + 0x20]
mov edx, 5
mov byte [rbx + 4], dil
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800010ed
mov al, 1
jmp 0x1800010ef
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180003e00
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180002360
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x18000243b
nop dword [rax]
cmp rbx, qword [section..data]
jb 0x1800023ae
cmp rbx, qword [0x180007008]
ja 0x1800023ae
sub rbx, 0x8000000
jmp 0x180002432
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000243b
cmp dword [rsp + 0x40], 0x10000
jne 0x180002416
cmp qword [rsp + 0x38], 0x10000
jb 0x180002416
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x18000243d
sub rbx, 0x10000
jmp 0x180002432
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x180002390
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180002450
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x180002472
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x18000252d
nop dword [rax + rax]
cmp rbx, qword [section..data]
jb 0x18000249e
cmp rbx, qword [0x180007008]
ja 0x18000249e
add rbx, 0x8000000
jmp 0x180002524
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000252d
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x180002509
cmp rcx, 0x10000
jb 0x180002509
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x18000252f
add rbx, 0x10000
jmp 0x180002524
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x180002524
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x180002480
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180002540
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
lea rdi, [rcx - 0x7ff80000]
mov rbx, rcx
cmp rcx, 0x7ff80000
ja 0x180002562
mov edi, 0x80000
mov qword [rsp + 0x38], rsi
lea rsi, [rcx + 0x7ff80000]
cmp rbx, 0xffffffff80000000
jb 0x18000257e
mov rsi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x180002595
cmp byte [rcx + 1], 0x25
jne 0x1800025d9
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x1800025a1
cmp al, 0xe9
jne 0x1800025d9
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, rbx
cmp rcx, rbx
jae 0x1800025c4
cmp rcx, 0xffffffff80000000
jae 0x1800025bb
lea rsi, [rcx + 0x7ff80000]
jmp 0x1800025d9
mov rsi, 0xfffffffffff80000
jmp 0x1800025d9
lea rdi, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x1800025d9
mov edi, 0x80000
mov rdx, qword [0x180007168]
mov rax, qword [0x180007160]
mov qword [rsp + 0x30], rbp
test rdx, rdx
jne 0x180002600
test rax, rax
je 0x180002617
mov rdx, rax
mov qword [0x180007168], rax
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x180002617
cmp rcx, rdi
jb 0x180002617
cmp rcx, rsi
jbe 0x18000276a
mov qword [0x180007168], rax
mov rdx, rax
test rax, rax
je 0x180002662
mov rcx, rax
nop dword [rax]
test rax, rax
je 0x18000264c
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x18000264c
cmp rax, rdi
jb 0x18000264c
cmp rax, rsi
jbe 0x18000276a
mov rdx, qword [rdx + 8]
mov qword [0x180007168], rdx
mov rcx, rdx
mov rax, rdx
test rdx, rdx
jne 0x180002630
movzx eax, bx
sub rbx, rax
cmp rbx, 0x40000000
jbe 0x18000268c
lea rdx, [rbx - 0x40000000]
mov rcx, rdi
call fcn.180002360
mov rdx, rax
test rax, rax
jne 0x180002718
movabs rbp, 0xffffffff40000000
cmp rbx, rbp
jae 0x1800026b2
lea rcx, [rbx + 0x40000000]
mov rdx, rsi
call fcn.180002450
mov rdx, rax
test rax, rax
jne 0x180002718
cmp rbx, 0x40000000
jbe 0x1800026d2
lea rcx, [rbx - 0x40000000]
mov rdx, rbx
call fcn.180002450
mov rdx, rax
test rax, rax
jne 0x180002718
cmp rbx, rbp
jae 0x1800026ee
lea rdx, [rbx + 0x40000000]
mov rcx, rbx
call fcn.180002360
mov rdx, rax
test rax, rax
jne 0x180002718
mov rdx, rbx
mov rcx, rdi
call fcn.180002360
mov rdx, rax
test rax, rax
jne 0x180002718
mov rdx, rsi
mov rcx, rbx
call fcn.180002450
mov rdx, rax
test rax, rax
je 0x1800027a1
mov dword [rdx], 0x52727464
lea rcx, [rdx + 0xffa8]
xor r8d, r8d
mov qword [0x180007168], rdx
mov qword [rdx + 0x10], r8
mov r9d, 0x2a7
mov rax, qword [0x180007160]
mov qword [rdx + 8], rax
lea rax, [rdx + 0xff60]
mov qword [0x180007160], rdx
mov qword [rcx], r8
lea rcx, [rcx - 0x60]
mov r8, rax
sub rax, 0x60
sub r9, 1
jne 0x180002752
mov qword [rdx + 0x10], r8
mov rax, qword [rdx + 0x10]
cmp rax, rdi
jb 0x1800027a1
cmp rax, rsi
ja 0x1800027a1
mov rcx, qword [rax + 0x48]
movdqa xmm0, xmmword [0x180005280]
mov qword [rdx + 0x10], rcx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
jmp 0x1800027a3
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800029f0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x180002a1e
xor al, al
jmp 0x180002a60
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x180002a2f
xor al, al
jmp 0x180002a60
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x180002a56
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x180002a56
mov al, 1
jmp 0x180002a60
xor al, al
add rsp, 0x50
pop rbx
ret
add rsp, 0x50
pop rbx
ret
Function at 0x180002f40
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x180007178], 0
jne 0x180002fe7
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x180007178], ecx
jne 0x180002fe7
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x180007160]
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [0x180007190], rdi
mov qword [0x180007188], rdi
mov qword [0x180007180], rdi
test rbx, rbx
je 0x180002fd0
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180002fc8
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180002fa0
jmp 0x180002fd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov dword [0x18000717c], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0x10dd
add rsp, 0x28
ret
Function at 0x180003600
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x18000717c]
mov rdi, rcx
test eax, eax
jne 0x1800036a5
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
jne 0x18000362a
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.180003e20
mov rbx, rax
test rax, rax
jne 0x180003648
mov edi, 8
jmp 0x18000366b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x180003689
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.1800041d4
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x18000717c], edi
mov qword [0x180007180], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x180007188]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x180007188], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800349f2
Capabilities:
Encode data using base64

Disassembly:
lea r10, [r10 + rbp - 0x4f10a904]
jmp 0x18003e355
xor dword [rsp + rdx*4 - 0x5c12a414], edi
pop rbx
lea r11, [rbp + r8*4 - 0x7b750b7e]
pop r11
dec r8b
jns 0x180059acd
sal byte [rsp + 0xa], 0x85
sbb ebp, eax
lea edi, [rdi + rax - 0x6094d205]
or rdx, r8
adc qword [rsp + rdx + 0x54d60002], 0x7ca25a83
ror edi, 1
call fcn.18005bc0e
inc ebp
mov edi, r8d
mov r8w, word [r10 + rdx - 0x1704fd27]
call fcn.180053d07
dec eax
shl byte [rsp + rax - 0x9f], 0x22
not ecx
mov qword [rsp + rax - 0x9a], r11
sets al
xor dword [rsp + rax + 8], ecx
mov r11d, edi
ror rbx, 0x9a
mov r11, qword [rsp + rax + 8]
mov dword [rsi + rax*2 - 6], ecx
sar rbp, 0xda
adc ax, 0x1797
lea rsi, [rax + rsi - 0x179e]
rol ebx, 0x18
rol rbp, 0x2b
pop rbx
pop rbp
ja fcn.180054c25
movsxd rdi, edi
add r9, rdi
xchg r8w, dx
jmp 0x18002e26c
jge 0x180043509
pop rax
jmp fcn.180054c25

Function at 0x180046e21
Capabilities:
Encode data using base64

Disassembly:
lea ebp, [rbp + r8 + 0x390b1a03]
neg ebp
shr rbx, 0xa5
mov edx, 0x43285212
rol ebp, 1
call fcn.18002cb74
mov ebp, 0x55a1fcbe
or rbp, rbp
lea rbx, [rbp + rbp*8 + 0x3f8f6725]
mov rdi, qword [rsi + rbp - 0x55a1fcbe]
movsx eax, bx
shl eax, 0x3c
movzx bp, byte [rax + rdi - 0x30000000]
lea rdx, [rax + rbx - 0x9717f6e]
je 0x18003558f
lea rsi, [rax + rsi - 0x2ffffffa]
mov r8d, 0x43374308
bswap r8d
lea rdi, [r8*4 - 0x67d95848]
mov word [rsi + rax - 0x30000000], bp
xadd di, bx
lea r10, [r10 + rax - 0x30000004]
movzx ecx, r8w
mov ebx, dword [r10 + rax*2 - 0x60000000]
neg ecx
xor ebx, r11d
or r8, r8
jae 0x180025696
mov r8d, 0x1f92e9b1
mov ebx, r8d
sub r8w, bx
lea r10, [r10 + r8*2 - 0x3f240004]
mov ebx, dword [r8 + r10 - 0x1f920000]
jge 0x18002dc23
Function at 0x180004b00
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x180004bb5
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x180004b81
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180004ba0
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180004ba0
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 rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je 0x180004ba0
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x180296350], 0
jne 0x180004c00
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180004bf0
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180296348], rax
mov byte [0x180296350], 1
jmp 0x180004c07
mov rax, qword [0x180296348]
mov byte [0x180296350], 1
jmp 0x180004c07
mov rax, qword [0x180296348]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x180004b8a
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp rax
Function at 0x180004d30
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x198]
sub rsp, 0x280
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x18028e088]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rdx
mov rdi, rcx
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x58], r14
mov r9d, dword [rcx + 8]
or r9d, 0x2001f
mov r8, rdx
mov rdx, qword [rcx]
lea rcx, [rsp + 0x48]
call fcn.180004c30
mov ebx, eax
test eax, eax
jne 0x180004e69
mov dword [rsp + 0x60], 0x100
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180004e42
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180004d30
mov ebx, eax
test eax, eax
jne 0x180004e69
mov dword [rsp + 0x60], 0x100
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180004df1
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180004e57
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x50], r14d
mov rdx, rsi
mov rcx, rdi
call fcn.180004b00
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180004e7e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r14
mov eax, ebx
mov dword [rsp + 0x50], r14d
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1801ccd30
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180005440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x18028e088]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], r14
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.1801cf320
mov qword [rsp + 0x70], 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 0x1800054e5
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 0x1800054e5
call fcn.180004a40
mov ebx, eax
jmp 0x180005607
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x180005506
call fcn.180004a40
jmp 0x1800055f6
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 0x180005529
call fcn.180004a40
jmp 0x1800055f6
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 0x18000554b
mov ebx, 0x8007000e
jmp 0x1800055f8
mov ecx, eax
test eax, eax
je 0x180005580
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x18000563f
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x180005580
lea rcx, [rsp + 0x70]
call fcn.180008500
jmp 0x18000558a
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x18000559d
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x1800055ae
mov ebx, 0x8007000e
jmp 0x1800055f8
mov dword [rsp + 0x28], ebx
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 0x1800055d3
call fcn.180004a40
jmp 0x1800055f6
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.1800063f0
mov ebx, eax
test rdi, rdi
je 0x180005607
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x18000561e
lea rcx, [rsp + 0x70]
call fcn.1800084f0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1801ccd30
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.1800049b0
int3
Function at 0x18000df90
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0xc8]
sub rsp, 0x1b0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18028e088]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x24], r14d
mov qword [rsp + 0x58], r14
mov edi, 1
mov ecx, edi
call fcn.1801cd4e0
mov rbx, rax
mov qword [rsp + 0x58], rax
mov byte [rax], r14b
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp - 0x7c]
call fcn.1801cf320
mov dword [rbp - 0x80], 0x11c
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18000e027
cmp dword [rbp - 0x7c], 6
setae al
mov byte [rbx], al
lea r8, [rsp + 0x24]
lea rdx, [rsp + 0x28]
call fcn.1800947d0
test al, al
je 0x18000e145
mov r8, qword [rsp + 0x28]
test r8, r8
je 0x18000e145
lea rdx, [rsp + 0x60]
call fcn.180094860
nop
cmp qword [rsp + 0x70], 0
jne 0x18000e066
xor bl, bl
jmp 0x18000e0f1
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
xor r9d, r9d
mov r8d, dword [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.180092ea0
mov dword [rsp + 0x20], edi
mov rdx, rax
mov rcx, rsi
call fcn.18000e190
and edi, 0xfffffffe
mov dword [rsp + 0x20], edi
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x18000e0dc
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000e0d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000e181
call fcn.1801ccd54
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov bl, 1
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x18000e12f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000e12a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000e17b
call fcn.1801ccd54
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r14w
jmp 0x18000e147
xor bl, bl
lea rcx, [rsp + 0x58]
call fcn.180093810
movzx eax, bl
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1801ccd30
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1801d1a6c
nop
call fcn.1801d1a6c
int3