joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003c923
Capabilities:
Query environment variable

Disassembly:
jmp 0x140095f7c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140095fac
xor eax, eax
jmp 0x14009606f
mov rbp, rbx
cmp word [rax], si
je 0x140095fd1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140095fb8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140095fb4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14003d2d8
movsxd r14, eax
test eax, eax
jne 0x14009600f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140095fa5
mov rcx, r14
call fcn.14003b037
mov rdi, rax
test rax, rax
jne 0x140096028
xor ecx, ecx
call fcn.14003b172
jmp 0x140096004
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14003d2d8
test eax, eax
jne 0x140096059
mov rcx, rdi
call fcn.14003b172
jmp 0x140096063
xor ecx, ecx
call fcn.14003b172
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14003c92d
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400514fc
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1400bd338]
xor ecx, ecx
lea r8, [0x1400bd330]
lea rdx, str.FlsAlloc
call fcn.14005107c
test rax, rax
je 0x140051535
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400df020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x14003c9aa
Capabilities:
Get geographical location

Disassembly:
jmp 0x14009063c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x1400be988]
mov rbp, rcx
lea r8, [0x1400be980]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.14008fb5c
test rax, rax
je 0x14009069c
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1400df030]
jmp 0x1400906b6
xor edx, edx
mov rcx, rbp
call fcn.14003c28e
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14003c9b9
Capabilities:
Terminate process

Disassembly:
jmp 0x140042a74
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x14003caf4
Capabilities:
Parse pe header

Disassembly:
jmp 0x14005ad48
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14005aaa4

Function at 0x14003cfc7
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x14008ef34
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14008ef4e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.14003db34
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x14003dc1f
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140051604
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400bd398]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1400bd390]
call fcn.14005107c
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140051644
call qword [0x1400df020]
jmp 0x14005164a
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14003dcb0
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400a3334
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14003c1c1
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400a33be
cmp byte [rbp - 0x21], r15b
je 0x1400a33b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400a33f4
call fcn.14003e07a
test eax, eax
jne 0x1400a33e0
cmp byte [rbp - 0x21], r15b
je 0x1400a33d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400a33f4
cmp byte [rbp - 0x21], r15b
je 0x1400a33f1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14003e255
test eax, eax
jne 0x1400a3494
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003c1c1
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400a3433
cmp byte [rbp - 0x21], r15b
je 0x1400a3468
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400a3468
call fcn.14003e07a
test eax, eax
jne 0x1400a3454
cmp byte [rbp - 0x21], r15b
je 0x1400a344d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400a3468
cmp byte [rbp - 0x21], r15b
je 0x1400a3465
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14003e255
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400a3494
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400a3497
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400a34a5
mov rcx, rdi
call fcn.14003b172
cmp byte [rbp + 0x3f], r15b
je 0x1400a34b4
mov rcx, qword [rbp + 0x27]
call fcn.14003b172
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14003dda5
Capabilities:
Parse pe header

Disassembly:
jmp 0x14005ad38
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14005ab13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005ab13
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005ab13
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005ab13
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005ab13
cmp dword [rcx + 0x84], 0xe
jbe 0x14005ab13
cmp dword [rcx + 0xf8], 0
je 0x14005ab13
mov ecx, ebx
call fcn.14005ac7c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14005a7f4
nop
cmp dword [rbp + 0x20], 0
je 0x14005ab61
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14005ab9c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14005aaa4
Function at 0x140c5a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140c5a1df
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 0x140c5a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c5a06f
add dl, dl
jne 0x140c5a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c5a0f6
xor eax, eax
add dl, dl
jne 0x140c5a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c5a1ad
add dl, dl
jne 0x140c5a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c5a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c5a07e
mov eax, 1
add dl, dl
jne 0x140c5a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c5a0fb
sub eax, ebx
mov ebx, 1
jne 0x140c5a14c
mov ecx, 1
add dl, dl
jne 0x140c5a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c5a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c5a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c5a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c5a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c5a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c5a15d
cmp eax, 0x7d00
jae 0x140c5a19b
cmp eax, 0x500
jb 0x140c5a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c5a07e
cmp eax, 0x7f
ja 0x140c5a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c5a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c5a1d2
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 0x140c5a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001e00
Capabilities:
Encode data using base64

Disassembly:
push rsi
mov esi, edx
mov r11, rcx
test rcx, rcx
je 0x180001f43
test edx, edx
js 0x180001f43
test r8, r8
je 0x180001f2d
mov qword [rsp + 0x10], rbx
mov ebx, edx
test edx, edx
jle 0x180001f24
mov qword [rsp + 0x18], rdi
mov rdi, qword [section..data]
nop dword [rax]
cmp ebx, 3
jl 0x180001eaf
movzx ecx, byte [r11 + 1]
movzx r9d, byte [r11]
mov edx, ecx
movzx r10d, byte [r11 + 2]
mov eax, r9d
shr rax, 2
add r11, 3
shl r9, 4
movzx eax, byte [rax + rdi]
mov byte [r8], al
mov eax, ecx
shr rax, 4
mov ecx, r10d
or rax, r9
shr rcx, 6
and eax, 0x3f
movzx eax, byte [rax + rdi]
mov byte [r8 + 1], al
lea rax, [rdx*4]
or rcx, rax
and ecx, 0x3f
movzx eax, byte [rcx + rdi]
mov byte [r8 + 2], al
add r8, 3
mov eax, r10d
and eax, 0x3f
movzx eax, byte [rax + rdi]
mov byte [r8], al
jmp 0x180001f11
movzx r9d, byte [r11]
inc r11
cmp ebx, 2
jne 0x180001ec4
movzx edx, byte [r11]
inc r11
jmp 0x180001ec6
xor dl, dl
movzx eax, r9b
shr rax, 2
movzx ecx, dl
shr rcx, 4
movzx eax, byte [rax + rdi]
mov byte [r8], al
movzx eax, r9b
shl rax, 4
or rcx, rax
and ecx, 0x3f
movzx eax, byte [rcx + rdi]
mov byte [r8 + 1], al
cmp ebx, 1
jne 0x180001efb
mov al, 0x3d
jmp 0x180001f05
movzx eax, dl
and eax, 0xf
movzx eax, byte [rdi + rax*4]
mov byte [r8 + 2], al
add r8, 3
mov byte [r8], 0x3d
sub ebx, 3
inc r8
test ebx, ebx
jg 0x180001e40
mov rdi, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
mov byte [r8], 0
lea ecx, [rsi + 2]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
shl eax, 2
pop rsi
ret
or eax, 0xffffffff
pop rsi
ret
Function at 0x180004ba0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x180004bce
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180005880
cmp byte [0x1800b85a0], 0
jne 0x180004c19
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180004c09
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800b8598], rax
mov byte [0x1800b85a0], 1
jmp 0x180004c20
mov rax, qword [0x1800b8598]
mov byte [0x1800b85a0], 1
jmp 0x180004c20
mov rax, qword [0x1800b8598]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x180004c3f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1800058f4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180005916
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180005916
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x180005916
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1800055f0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1800ad0e0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x40], rbp
xor eax, eax
mov qword [rsp + 0x50], rbp
mov r8, rdx
mov qword [rsp + 0x48], rax
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov dword [rsp + 0x48], ebp
lea rcx, [rsp + 0x40]
call fcn.180005140
mov ebx, eax
test eax, eax
jne 0x180005707
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1800056e1
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.1800055f0
mov ebx, eax
test eax, eax
jne 0x180005707
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180005690
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800056f6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rdx, rsi
mov dword [rsp + 0x48], ebp
mov rcx, rdi
call fcn.180004ba0
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180005717
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180046a00
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x180005880
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x180004bce
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180005880
cmp byte [0x1800b85a0], 0
jne 0x180004c19
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180004c09
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800b8598], rax
mov byte [0x1800b85a0], 1
jmp 0x180004c20
mov rax, qword [0x1800b8598]
mov byte [0x1800b85a0], 1
jmp 0x180004c20
mov rax, qword [0x1800b8598]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x180004c3f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1800058f4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180005916
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180005916
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x180005916
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180005b20
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 [0x1800ad0e0]
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 + 0x60], rcx
mov qword [rsp + 0x58], r14
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.18004c910
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 0x180005bc0
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 0x180005bc0
call fcn.180003e90
mov ebx, eax
jmp 0x180005ce8
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x180005be1
call fcn.180003e90
jmp 0x180005cd7
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 0x180005c04
call fcn.180003e90
jmp 0x180005cd7
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 0x180005c26
mov ebx, 0x8007000e
jmp 0x180005cd9
mov ecx, eax
test eax, eax
je 0x180005c5e
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x180005c54
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x180005c5e
lea rcx, [rsp + 0x70]
call fcn.180003c20
jmp 0x180005c68
mov ecx, 0x80070216
call fcn.180004810
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x180005c7b
cmp qword [rsp + 0x70], 0
jne 0x180005c8a
mov ebx, 0x8007000e
jmp 0x180005cd9
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
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 0x180005cb4
call fcn.180003e90
jmp 0x180005cd7
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.180005930
mov ebx, eax
test rdi, rdi
je 0x180005ce8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x180005cff
lea rcx, [rsp + 0x70]
call fcn.180004ed0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.180046a00
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800063f0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1800ad0e0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r8d
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180046a00
add rsp, 0x48
ret

Function at 0x180006440
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x180006458
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
nop
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x180006464
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x180006460
mov rcx, qword [rcx]
mov rdx, r10
mov dword [rsp + 0x28], r8d
xor r8d, r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret
Function at 0x180011c40
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x340
mov rax, qword [0x1800ad0e0]
xor rax, rsp
mov qword [rsp + 0x330], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.18004c910
mov r8d, 0x104
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x180011d00
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call fcn.18004ed38
mov rbx, rax
test rax, rax
je 0x180011d00
lea rdx, str.iexplore.exe
lea rcx, [rax + 1]
call fcn.1800583c0
test eax, eax
je 0x180011d00
xor edx, edx
lea rcx, [rsp + 0x130]
mov r8d, 0x200
call fcn.18004c910
lea r9, [rbx + 1]
mov edx, 0x200
lea r8, str.process_is__s__not_start_bho
lea rcx, [rsp + 0x130]
call fcn.180001da0
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [rdi + 0xa0], 0
xor eax, eax
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.180046a00
mov rbx, qword [rsp + 0x358]
add rsp, 0x340
pop rdi
ret