joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18011329c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
je 0x1801132c5
mov rdi, qword [rdx + 0x10]
jmp 0x180113316
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rbx + 8]
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x1801132e6
call fcn.18000b6fc
mov rcx, qword [rbx + 8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x180113300
call fcn.18000b6fc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x180113316
call fcn.18000b6fc
call fcn.1800099f8
cmp qword [rax + 0x68], 0
je 0x180113330
mov rdx, rdi
mov rcx, rbp
call fcn.180111a24
mov rdi, rax
mov edx, esi
mov rcx, rdi
call fcn.1801130dc
mov rcx, qword [rbp + 0xe8]
mov rsi, rax
test rcx, rcx
je 0x180113357
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xe8], 0
test rsi, rsi
je 0x180113366
mov rdi, rsi
mov qword [rbp + 0xe8], rsi
or dword [rbx + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18014a117
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1801f2fb0]
jne 0x1801447ca
rol rcx, 0x10
test cx, 0xffff
jne 0x1801447c6
repz ret
ror rcx, 0x10
jmp 0x18014a070
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1801fec30]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1801fed28]
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 0x18014a0f5
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, [0x1801fec30]
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 0x18014a117
mov rax, qword [rsp + 0x88]
mov qword [0x1801fed28], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1801fecc8], rax
mov rax, qword [0x1801fed28]
mov qword [0x1801feba0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1801fecb0], rax
mov dword [0x1801feb90], 0xc0000409
mov dword [0x1801feb94], 1
mov rax, qword [0x1801f2fb0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1801f2fb8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1801fec28], eax
mov ecx, 1
call fcn.180155a64
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1801b8ee8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1801fec28], 0
jne 0x18014a19e
mov ecx, 1
call fcn.180155a64
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 0x180155a6c
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 [0x1801f2fb0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18014a540
xor ebx, ebx
cmp qword [0x1801ffbc8], rbx
mov rdi, rax
jne 0x180155b7f
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180155c56
lea rdx, [0x1801ba098]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180155c56
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1801ba088]
mov rcx, rsi
mov qword [0x1801ffbc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1801ba070]
mov rcx, rsi
mov qword [0x1801ffbd0], 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 [0x1801ffbd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1801ffbe8], rax
test rax, rax
je 0x180155b76
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 [0x1801ffbe0], rax
jmp 0x180155b86
mov rax, qword [0x1801ffbe0]
jmp 0x180155b8d
mov rax, qword [0x1801ffbe0]
mov r11, qword [0x1801ffbe8]
cmp rax, rdi
je 0x180155bf4
cmp r11, rdi
je 0x180155bf4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1801ffbe8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180155bf4
test rax, rax
je 0x180155bf4
call rsi
test rax, rax
je 0x180155bee
lea rcx, [rsp + 0x30]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180155bee
test byte [rsp + 0x40], 1
jne 0x180155bf4
bts ebp, 0x15
jmp 0x180155c34
mov rcx, qword [0x1801ffbd0]
cmp rcx, rdi
je 0x180155c34
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180155c34
call rax
mov rbx, rax
test rax, rax
je 0x180155c34
mov rcx, qword [0x1801ffbd8]
cmp rcx, rdi
je 0x180155c34
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180155c34
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1801ffbc8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180155c56
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180155c58
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1801447b0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140008370
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0x1505
mov rax, qword [rsp + 0x20]
movsx eax, byte [rax]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
cmp dword [rsp + 8], 0
je 0x1400083ba
mov eax, dword [rsp]
shl eax, 5
add eax, dword [rsp]
add eax, dword [rsp + 4]
mov dword [rsp], eax
jmp 0x140008380
mov eax, dword [rsp]
add rsp, 0x18
ret
Function at 0x14000bd50
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x250
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0xe
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140014c70
add rsp, 0x250
pop rdi
ret
Function at 0x1400155cc
Capabilities:
Parse pe header

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

Function at 0x14001eb64
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001e960
Function at 0x140023b34
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 0x140023bbb
mov rsi, rbx
cmp word [rax], bp
je 0x140023b7a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140023b64
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140023b60
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001f9a0
mov rdi, rax
test rax, rax
je 0x140023ba8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140018770
mov rbp, rdi
xor ecx, ecx
call fcn.14001f964
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 0x1400268a4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400268ba
mov al, 1
jmp 0x14002691a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400268cb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140026918
mov ecx, dword [rcx + 0x18]
nop
call fcn.140023f98
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140026918
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140026918
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140026918
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002691a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140029e90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029eb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029eb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x100f37820
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x100f3782d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x100f3783d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x100f37825
lea eax, [rcx + 1]
jmp 0x100f3784b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x100f3785e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x100f37844
sub eax, 3
jb 0x100f3787e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x100f378cd
sar eax, 1
movsxd rbp, eax
jb 0x100f378b4
jmp 0x100f3788c
add ebx, ebx
jne 0x100f3788a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x100f378b4
inc ecx
add ebx, ebx
jne 0x100f3789a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x100f378b4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x100f378ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x100f3789c
add ecx, 2
jmp 0x100f378b9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.100f377e2
jmp 0x100f3782d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xf33000]
mov eax, dword [rdi]
or eax, eax
je 0x100f37929
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf4d86c]
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 0x100f378d9
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 0x100f37923
mov qword [rbx], rax
add rbx, 8
jmp 0x100f378f9
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 + 0x1af]
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
mov byte [fcn.100f379ac], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.100f379ac
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x100f3799c
sub rsp, 0xffffffffffffff80
jmp 0x100003210
Function at 0x1406d6678
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406d67ff
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 0x1406d66a9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406d668f
add dl, dl
jne 0x1406d66b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406d6716
xor eax, eax
add dl, dl
jne 0x1406d66c5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406d67cd
add dl, dl
jne 0x1406d66d6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d66e3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d66f0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d66fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406d670a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406d669e
mov eax, 1
add dl, dl
jne 0x1406d6726
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d6733
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406d671b
sub eax, ebx
mov ebx, 1
jne 0x1406d676c
mov ecx, 1
add dl, dl
jne 0x1406d674e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406d675b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406d6743
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406d669e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406d6788
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406d6795
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406d677d
cmp eax, 0x7d00
jae 0x1406d67bb
cmp eax, 0x500
jb 0x1406d67b6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406d669e
cmp eax, 0x7f
ja 0x1406d67be
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406d669e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406d67f2
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 0x1406d669e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140011352
Capabilities:
Terminate process

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

Function at 0x140011433
Capabilities:
Parse pe header

Disassembly:
jmp 0x140019300
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140019320
xor al, al
jmp 0x1400193a1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140019333
xor al, al
jmp 0x1400193a1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001935d
xor al, al
jmp 0x1400193a1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140019371
xor al, al
jmp 0x1400193a1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140019383
xor al, al
jmp 0x1400193a1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001939f
xor al, al
jmp 0x1400193a1
mov al, 1
add rsp, 0x38
ret
Function at 0x140018600
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011618
movzx eax, al
test eax, eax
jne 0x140018620
mov ecx, 7
call fcn.14001150a
nop
mov byte [rsp + 0x20], 0
call fcn.140011546
mov byte [rsp + 0x21], al
cmp dword [0x140026550], 1
jne 0x140018644
mov ecx, 7
call fcn.14001150a
nop
jmp 0x14001869c
cmp dword [0x140026550], 0
jne 0x140018697
mov dword [0x140026550], 1
lea rdx, [0x140021780]
lea rcx, [0x140021450]
call fcn.1400112cb
test eax, eax
je 0x140018678
mov eax, 0xff
jmp 0x1400187a1
lea rdx, [0x140021340]
lea rcx, [section..rdata]
call fcn.14001152d
mov dword [0x140026550], 2
jmp 0x14001869c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400114f6
call fcn.14001145b
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400186f9
mov rcx, qword [rsp + 0x30]
call fcn.140011244
movzx eax, al
test eax, eax
je 0x1400186f9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14002d020]
nop
call fcn.1400114a1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001872d
mov rcx, qword [rsp + 0x38]
call fcn.140011244
movzx eax, al
test eax, eax
je 0x14001872d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400115c3
nop
call fcn.140018810
mov dword [rsp + 0x28], eax
call fcn.140011433
movzx eax, al
test eax, eax
jne 0x14001874c
mov ecx, dword [rsp + 0x28]
call fcn.14001107d
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001875b
call fcn.1400115d2
nop
xor edx, edx
mov cl, 1
call fcn.140011217
mov eax, dword [rsp + 0x28]
jmp 0x1400187a1
add rsp, 0x68
ret
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 [0x180296370], 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 [0x180296368], rax
mov byte [0x180296370], 1
jmp 0x180004c07
mov rax, qword [0x180296368]
mov byte [0x180296370], 1
jmp 0x180004c07
mov rax, qword [0x180296368]
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.1801ccd40
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.1801cf330
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.1801ccd40
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.1800049b0
int3