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

Disassembly:
push rsi
push rdi
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov rdi, rdx
mov rsi, rcx
cmp byte [0x140039fab], 1
jne 0x14000d005
cmp byte [0x140039faa], 0
jne 0x14000d024
jmp 0x14000d044
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
mov byte [0x140039fab], 1
test rax, rax
setne byte [0x140039faa]
je 0x14000d044
mov ecx, 2
call qword [fcn.14000b750]
lea rdx, str.libunwind:___unw_init_local_cursor_p__context_p__n
mov rcx, rax
mov r8, rsi
mov r9, rdi
call fcn.14000a9f0
lea rax, [0x140031170]
mov qword [rsi], rax
lea rax, [0x140039f98]
mov qword [rsi + 8], rax
xorps xmm0, xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x40], xmm0
mov qword [rsi + 0x50], 0
lea rax, [rsi + 0x580]
lea rcx, [rsi + 0xb0]
movaps xmmword [rsi + 0x580], xmm0
movaps xmmword [rsi + 0x590], xmm0
movaps xmmword [rsi + 0x5a0], xmm0
movaps xmmword [rsi + 0x5b0], xmm0
movaps xmmword [rsi + 0x5c0], xmm0
movaps xmmword [rsi + 0x5d0], xmm0
movaps xmmword [rsi + 0x5e0], xmm0
movaps xmmword [rsi + 0x5f0], xmm0
movaps xmmword [rsi + 0x600], xmm0
movaps xmmword [rsi + 0x610], xmm0
movaps xmmword [rsi + 0x620], xmm0
movaps xmmword [rsi + 0x630], xmm0
movaps xmmword [rsi + 0x640], xmm0
movups xmmword [rsi + 0x649], xmm0
mov qword [rsi + 0x80], rcx
mov qword [rsi + 0x98], rax
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
mov rdx, qword [rdi + 0x80]
movups xmm0, xmmword [rdi + 0x10]
movdqu xmm1, xmmword [rdi + 0x30]
pshufd xmm1, xmm1, 0x4e
movdqu xmm2, xmmword [rdi + 0x20]
pshufd xmm2, xmm2, 0x4e
movups xmm3, xmmword [rdi + 0x40]
movups xmm4, xmmword [rdi + 0x50]
movups xmm5, xmmword [rdi + 0x60]
movups xmm6, xmmword [rdi + 0x70]
mov dword [rsi + 0xe0], 0x10000b
mov qword [rsi + 0x128], rax
movaps xmmword [rsi + 0x130], xmm0
mov qword [rsi + 0x140], rcx
movdqu xmmword [rsi + 0x148], xmm1
movdqu xmmword [rsi + 0x158], xmm2
movups xmmword [rsi + 0x168], xmm3
movups xmmword [rsi + 0x178], xmm4
movups xmmword [rsi + 0x188], xmm5
movups xmmword [rsi + 0x198], xmm6
mov qword [rsi + 0x1a8], rdx
test rdx, rdx
je 0x14000d18b
mov rcx, rsi
call fcn.14000b5f0
test al, al
jne 0x14000d192
mov byte [rsi + 0x658], 1
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x14000d1a0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x140039fab], 1
jne 0x14000d1bc
cmp byte [0x140039faa], 0
setne al
add rsp, 0x28
ret
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
test rax, rax
setne al
setne byte [0x140039faa]
mov byte [0x140039fab], 1
add rsp, 0x28
ret
Function at 0x14000d1f0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov edi, edx
mov rbx, rcx
cmp byte [0x140039fab], 1
jne 0x14000d213
cmp byte [0x140039faa], 0
jne 0x14000d232
jmp 0x14000d257
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
mov byte [0x140039fab], 1
test rax, rax
setne byte [0x140039faa]
je 0x14000d257
mov ecx, 2
call qword [fcn.14000b750]
mov qword [rsp + 0x20], rsi
lea rdx, str.libunwind:___unw_get_reg_cursor_p__regNum_d__value_p__n
mov rcx, rax
mov r8, rbx
mov r9d, edi
call fcn.14000a9f0
mov rax, qword [rbx]
mov rax, qword [rax + 0x10]
mov rcx, rbx
mov edx, edi
call qword [0x14003d008]
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x14000d28b
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
mov edx, edi
call qword [0x14003d008]
mov qword [rsi], rax
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x14000d2a0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rbx, r8
mov edi, edx
mov rsi, rcx
cmp byte [0x140039fab], 1
jne 0x14000d2c4
cmp byte [0x140039faa], 0
jne 0x14000d2e3
jmp 0x14000d308
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
mov byte [0x140039fab], 1
test rax, rax
setne byte [0x140039faa]
je 0x14000d308
mov ecx, 2
call qword [fcn.14000b750]
mov qword [rsp + 0x20], rbx
lea rdx, str.libunwind:___unw_set_reg_cursor_p__regNum_d__value0x_llx__n
mov rcx, rax
mov r8, rsi
mov r9d, edi
call fcn.14000a9f0
mov rax, qword [rsi]
mov rax, qword [rax + 0x10]
mov rcx, rsi
mov edx, edi
call qword [0x14003d008]
mov ebp, 0xffffe672
test al, al
je 0x14000d3a9
mov rax, qword [rsi]
mov rax, qword [rax + 0x20]
mov rcx, rsi
mov edx, edi
mov r8, rbx
call qword [0x14003d008]
xor ebp, ebp
cmp edi, 0xffffffff
jne 0x14000d3a9
mov rax, qword [rsi]
mov rax, qword [rax + 0x48]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [0x14003d008]
mov rax, qword [rsi]
mov rax, qword [rax + 0x68]
xor ebp, ebp
mov rcx, rsi
xor edx, edx
call qword [0x14003d008]
cmp qword [rsp + 0x50], 0
je 0x14000d3a9
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov rcx, rsi
mov edx, 0xfffffffe
call qword [0x14003d008]
add rax, qword [rsp + 0x50]
mov rcx, qword [rsi]
mov r9, qword [rcx + 0x20]
mov rcx, rsi
mov edx, 0xfffffffe
mov r8, rax
mov rax, r9
call qword [0x14003d008]
mov eax, ebp
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x14000d3c0
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
cmp byte [0x140039fab], 1
jne 0x14000d3dc
cmp byte [0x140039faa], 0
jne 0x14000d3fb
jmp 0x14000d418
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
mov byte [0x140039fab], 1
test rax, rax
setne byte [0x140039faa]
je 0x14000d418
mov ecx, 2
call qword [fcn.14000b750]
lea rdx, str.libunwind:___unw_step_cursor_p__n
mov rcx, rax
mov r8, rsi
call fcn.14000a9f0
mov rax, qword [rsi]
mov rax, qword [rax + 0x40]
mov r8, qword [0x14003d008]
mov rcx, rsi
xor edx, edx
add rsp, 0x20
pop rsi
jmp r8
Function at 0x14000d440
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
cmp byte [0x140039fab], 1
jne 0x14000d460
cmp byte [0x140039faa], 0
jne 0x14000d47f
jmp 0x14000d49f
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
mov byte [0x140039fab], 1
test rax, rax
setne byte [0x140039faa]
je 0x14000d49f
mov ecx, 2
call qword [fcn.14000b750]
lea rdx, str.libunwind:___unw_get_proc_info_cursor_p__info_p__n
mov rcx, rax
mov r8, rdi
mov r9, rsi
call fcn.14000a9f0
mov rax, qword [rdi]
mov rax, qword [rax + 0x48]
mov rcx, rdi
mov rdx, rsi
call qword [0x14003d008]
xor ecx, ecx
cmp qword [rsi + 8], 0
mov eax, 0xffffe66b
cmovne eax, ecx
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x14000d4d0
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
cmp byte [0x140039fab], 1
jne 0x14000d4ec
cmp byte [0x140039faa], 0
jne 0x14000d50b
jmp 0x14000d528
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
mov byte [0x140039fab], 1
test rax, rax
setne byte [0x140039faa]
je 0x14000d528
mov ecx, 2
call qword [fcn.14000b750]
lea rdx, str.libunwind:___unw_resume_cursor_p__n
mov rcx, rax
mov r8, rsi
call fcn.14000a9f0
mov rax, qword [rsi]
mov rax, qword [rax + 0x50]
mov rcx, rsi
call qword [0x14003d008]
mov eax, 0xffffe674
add rsp, 0x20
pop rsi
ret

Function at 0x14000d550
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov r14, rcx
cmp byte [0x140039fab], 1
jne 0x14000d579
cmp byte [0x140039faa], 0
jne 0x14000d598
jmp 0x14000d5bc
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
mov byte [0x140039fab], 1
test rax, rax
setne byte [0x140039faa]
je 0x14000d5bc
mov ecx, 2
call qword [fcn.14000b750]
mov dword [rsp + 0x20], edi
lea rdx, str.libunwind:___unw_get_proc_name_cursor_p__buf_p__bufLen_lu__n
mov rcx, rax
mov r8, r14
mov r9, rbx
call fcn.14000a9f0
mov rax, qword [r14]
mov rax, qword [rax + 0x60]
mov rcx, r14
mov rdx, rbx
mov r8, rdi
mov r9, rsi
call qword [0x14003d008]
xor ecx, ecx
test al, al
mov eax, 0xffffe674
cmovne eax, ecx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14000d5f0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x140039fa9], 1
jne 0x14000d60c
cmp byte [0x140039fa8], 0
setne al
add rsp, 0x28
ret
lea rcx, str.LIBUNWIND_PRINT_UNWINDING
call sub.msvcrt.dll_getenv
test rax, rax
setne al
setne byte [0x140039fa8]
mov byte [0x140039fa9], 1
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x140009008]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov eax, 2
mov rsi, rdx
cmp ecx, eax
jne 0x1400010d3
lea rcx, [rsp + 0x22]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], bx
call fcn.140004e30
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x140001066
lea eax, [rbx + 5]
jmp 0x1400010d3
lea r8, str.nvcpl.dll
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
test rax, rax
jne 0x140001089
mov eax, 6
jmp 0x1400010d3
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
jne 0x1400010a1
lea eax, [rdi + 3]
jmp 0x1400010d3
lea rdx, str.NvUpdateWhiteList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400010bb
lea ebx, [rax + 4]
jmp 0x1400010c8
mov r8, qword [rsi + 8]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140001110
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140001363
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140009008]
jne 0x14000112a
rol rcx, 0x10
test cx, 0xffff
jne 0x140001126
repz ret
ror rcx, 0x10
jmp 0x1400012bc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140009f80]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14000a078]
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 0x140001341
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, [0x140009f80]
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 0x140001363
mov rax, qword [rsp + 0x88]
mov qword [0x14000a078], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000a018], rax
mov rax, qword [0x14000a078]
mov qword [0x140009ef0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000a000], rax
mov dword [0x140009ee0], 0xc0000409
mov dword [0x140009ee4], 1
mov rax, qword [0x140009008]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140009010]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140009f78], eax
mov ecx, 1
call fcn.140002b4c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140006260]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140009f78], 0
jne 0x1400013ea
mov ecx, 1
call fcn.140002b4c
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 0x1400017c4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140001634

Function at 0x1400036c8
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 [0x140009008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400026f4
xor ebx, ebx
cmp qword [0x14000ae78], rbx
mov rdi, rax
jne 0x1400037db
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400038b2
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400038b2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14000ae78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14000ae80], 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 [0x14000ae88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14000ae98], rax
test rax, rax
je 0x1400037d2
lea rdx, [0x140006e60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14000ae90], rax
jmp 0x1400037e2
mov rax, qword [0x14000ae90]
jmp 0x1400037e9
mov rax, qword [0x14000ae90]
mov r11, qword [0x14000ae98]
cmp rax, rdi
je 0x140003850
cmp r11, rdi
je 0x140003850
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14000ae98]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140003850
test rax, rax
je 0x140003850
call rsi
test rax, rax
je 0x14000384a
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000384a
test byte [rsp + 0x40], 1
jne 0x140003850
bts ebp, 0x15
jmp 0x140003890
mov rcx, qword [0x14000ae80]
cmp rcx, rdi
je 0x140003890
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140003890
call rax
mov rbx, rax
test rax, rax
je 0x140003890
mov rcx, qword [0x14000ae88]
cmp rcx, rdi
je 0x140003890
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140003890
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14000ae78]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400038b2
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1400038b4
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001110
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x2b37950
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x2b3795d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x2b3796d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x2b37955
lea eax, [rcx + 1]
jmp 0x2b3797b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x2b3798e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x2b37974
sub eax, 3
jb 0x2b379ae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x2b379fd
sar eax, 1
movsxd rbp, eax
jb 0x2b379e4
jmp 0x2b379bc
add ebx, ebx
jne 0x2b379ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x2b379e4
inc ecx
add ebx, ebx
jne 0x2b379ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x2b379e4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x2b379dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x2b379cc
add ecx, 2
jmp 0x2b379e9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.02b37912
jmp 0x2b3795d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x272f000]
mov eax, dword [rdi]
or eax, eax
je 0x2b37a59
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x273744c]
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 0x2b37a09
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 0x2b37a53
mov qword [rbx], rax
add rbx, 8
jmp 0x2b37a29
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x2b37a9d
cmp al, 0xef
ja 0x2b37a85
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x2b37a65
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x2b37a74
mov eax, dword [rdi]
add rdi, 4
jmp 0x2b37a74
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.02b37b1c], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.02b37b1c
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x2b37b0c
sub rsp, 0xffffffffffffff80
jmp 0x4014f0
Function at 0x140002468
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rsi, r8
mov rcx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ecx, ecx
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x1400024ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov rcx, rsi
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140002595
cmp dword [rbx + 0x10], 0
je 0x140002509
lea rdx, str.NBRNewInstance
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.NBRDeleteInstance
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8, qword [rbx + 0x20]
mov qword [rbx + 0x28], rax
test r8, r8
je 0x14000257c
test rax, rax
je 0x14000257c
mov rcx, rdi
jmp 0x140002567
lea rdx, str.PDNewInstance
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
mov qword [rbx + 0x20], rax
test rax, rax
je 0x140002528
mov esi, 1
jmp 0x14000253d
mov rcx, qword [rbx + 8]
lea rdx, str.ATNewInstance
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x20], rax
mov rcx, qword [rbx + 8]
lea rdx, str.ATDeleteInstance
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8, qword [rbx + 0x20]
mov qword [rbx + 0x28], rax
test r8, r8
je 0x14000257c
test rax, rax
je 0x14000257c
mov rcx, rdi
test esi, esi
je 0x14000256e
xor edx, edx
call r8
jmp 0x140002571
call r8
mov qword [rbx + 0x18], rax
mov eax, 1
jmp 0x140002597
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
and qword [rbx + 8], 0
and qword [rbx + 0x20], 0
and qword [rbx + 0x28], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140003ac4
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 0x140003aea
mov r8, rdx
mov rdx, qword [rbx]
call fcn.140005278
jmp 0x140003b51
cmp byte [0x140052c40], 0
jne 0x140003b2e
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003b1e
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140052c38], rax
jmp 0x140003b25
mov rax, qword [0x140052c38]
mov byte [0x140052c40], 1
jmp 0x140003b35
mov rax, qword [0x140052c38]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140003b4b
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x140003b51
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140005278
Capabilities:
Delete registry key

Disassembly:
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 0x1400052db
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400052ef
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400052ef
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x1400052f4
cmp dword [rcx + 8], 0
je 0x1400052ef
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x1400052f4
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140005524
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x1400513c8]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x60], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400055a8
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400055a8
call fcn.1400039f4
mov ebx, eax
jmp 0x1400056b1
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400055c9
call fcn.1400039f4
jmp 0x1400056a0
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400055bf
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140005604
mov ebx, 0x8007000e
jmp 0x1400056a2
mov ecx, eax
test eax, eax
je 0x140005636
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400056e9
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140005636
lea rcx, [rsp + 0x60]
call fcn.14000387c
jmp 0x140005640
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x140005652
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1400055fa
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1400055bf
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.1400053bc
mov ebx, eax
test rsi, rsi
je 0x1400056b1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x1400056c8
lea rcx, [rsp + 0x60]
call fcn.1400043f0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14002e470
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140002088
int3