joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140055d1c
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x20
mov ebx, ecx
test rdx, rdx
je 0x140055d46
lea rcx, [0x14009f300]
call fcn.140053b64
mov dword [0x14009f3b8], eax
jmp 0x140055d4c
mov eax, dword [0x14009f3b8]
cmp eax, 0xffffffff
je 0x140055ead
movsxd rcx, eax
mov rax, qword [0x14009f3a0]
mov rcx, qword [rax + rcx*8]
mov rdi, qword [rcx]
cmp byte [rdi + 0x6a], 0
mov rbp, qword [rdi]
je 0x140055da2
cmp dword [rdi + 0x2b8], 0
mov byte [rdi + 0x6a], 0
jl 0x140055da2
cmp byte [rdi + 0x2c4], 0
je 0x140055da2
mov r8d, dword [rdi + 0x2c0]
lea rcx, [0x14009f300]
mov rdx, rdi
call fcn.14005c1bc
mov byte [rdi + 0x2c4], 0
cmp ebx, 8
jg 0x140055e35
je 0x140055e08
test ebx, ebx
je 0x140055def
cmp ebx, 1
je 0x140055e08
mov edx, 6
cmp ebx, 2
je 0x140055dd6
cmp ebx, 3
je 0x140055e8f
jle 0x140055dfe
cmp ebx, 5
jle 0x140055e08
cmp ebx, edx
je 0x140055dda
jmp 0x140055dfe
mov byte [rdi + 0x68], 1
cmp byte [rdi + 0x68], 0
je 0x140055ead
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x140055dfe
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [rdi + 0x68], 0
mov eax, 1
jmp 0x140055eaf
cmp byte [rdi + 0x68], 0
jne 0x140055ead
mov edx, ebx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
cmp ebx, 8
je 0x140055e2f
cmp ebx, 4
je 0x140055e2f
mov rcx, rbp
call fcn.14000e6f0
mov byte [rdi + 0x68], 1
jmp 0x140055dfe
mov edx, ebx
sub edx, 9
je 0x140055e8f
sub edx, 0x37
je 0x140055e88
dec edx
je 0x140055e78
dec edx
je 0x140055e69
dec edx
jne 0x140055dfe
xor ecx, ecx
mov byte [rdi + 0x69], dl
call qword [sym.imp.USER32.dll_LockWindowUpdate]
mov rcx, qword [rdi]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x140055dfe
mov rcx, rbp
mov byte [rdi + 0x69], 1
call qword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x140055dfe
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_EnableWindow]
jmp 0x140055dfe
mov edx, 1
jmp 0x140055e7a
cmp byte [rdi + 0x68], 0
je 0x140055ead
mov edx, ebx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbp
call fcn.14000e6f0
jmp 0x140055dfe
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14005b47c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xor r15d, r15d
mov rbx, r9
mov rsi, r8
mov rax, rdx
mov rdi, rcx
cmp word [rdx], r15w
je 0x14005b5f5
mov qword [r11 - 0x78], r15
mov dword [r11 - 0x80], r15d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x14005b4eb
xor eax, eax
jmp 0x14005b630
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, 2
mov edx, eax
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r13, rax
test rax, rax
je 0x14005b4e4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
lea r9, [rbp + 0x38]
mov r8d, r14d
mov rcx, r12
mov rdx, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rbp - 0x30]
mov edx, 1
mov rcx, r13
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov rcx, qword [rbp - 0x30]
lea rax, [rbp - 0x38]
lea r9, [0x1400882a0]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x38], r15
call qword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov rcx, qword [rbp - 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x14005b4e4
mov rax, qword [rcx]
lea rdx, [rbp - 0x40]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rcx, qword [rbp - 0x40]
lea r8, [rbp - 0x28]
mov edx, SafeArrayAllocDescriptor
call qword [sym.imp.GDI32.dll_GetObjectW]
cmp dword [rsi], r15d
jne 0x14005b5c7
cmp dword [rbx], r15d
jne 0x14005b5c7
mov eax, dword [rbp - 0x24]
mov dword [rsi], eax
mov eax, dword [rbp - 0x20]
mov dword [rbx], eax
mov r9d, dword [rbx]
mov r8d, dword [rsi]
mov rcx, qword [rbp - 0x40]
xor edx, edx
mov dword [rsp + 0x20], 0x2000
call qword [sym.imp.USER32.dll_CopyImage]
mov rcx, qword [rbp - 0x38]
mov qword [rbp - 0x40], rax
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov r9, qword [rbp - 0x40]
jmp 0x14005b5fc
mov r9, r15
mov qword [rbp - 0x40], r15
mov rcx, qword [rdi + 0xb8]
test rcx, rcx
je 0x14005b612
call qword [sym.imp.GDI32.dll_DeleteObject]
mov r9, qword [rbp - 0x40]
mov rbx, qword [rdi]
xor r8d, r8d
mov edx, 0x172
mov rcx, rbx
mov qword [rdi + 0xb8], r9
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, rbx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400606c8
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rbp, rdx
mov rsi, rcx
mov rdx, rcx
lea rcx, [0x14009f300]
mov r12d, r9d
mov r13d, r8d
call fcn.140053b64
movsxd r10, eax
mov rax, qword [0x14009f3a0]
mov r10, qword [rax + r10*8]
mov rbx, qword [r10]
cmp rbp, rsi
jne 0x140060753
cmp qword [rbx + 0x2d0], 0
je 0x1400607c5
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
and qword [rsp + 0x28], 0
mov rcx, qword [rbx + 0x2d0]
mov qword [rsp + 0x20], rsi
mov r8d, dword [rsp + 0x50]
mov r9d, dword [rsp + 0x54]
xor edx, edx
call qword [sym.imp.USER32.dll_TrackPopupMenuEx]
jmp 0x1400607e5
lea rcx, [0x14009f300]
mov rdx, rbp
call fcn.140053bb8
cmp eax, 0xffffffff
je 0x1400607c5
movsxd rdi, eax
mov rax, qword [0x14009f3c8]
mov rcx, qword [rax + rdi*8]
mov rdx, qword [rcx]
mov al, byte [rdx + 0xf4]
cmp al, 0xe
je 0x1400607c5
cmp al, 0xf
je 0x1400607c5
cmp al, 0x13
je 0x1400607c5
cmp al, 0x10
je 0x1400607c5
cmp qword [rdx + 0x10], 0
je 0x1400607c5
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov r11, qword [0x14009f3c8]
and qword [rsp + 0x28], 0
mov rax, qword [r11 + rdi*8]
mov rcx, qword [rax]
mov rax, qword [rbx]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rax
jmp 0x14006073c
movzx r9d, r12w
movzx eax, r13w
mov r8, rbp
shl r9d, 0x10
mov edx, 0x7b
mov rcx, rsi
or r9, rax
call qword [sym.imp.USER32.dll_DefDlgProcW]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x14006fbdc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14006fa4c

Function at 0x140080378
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 [0x14009c1f0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14007614c
xor ebx, ebx
cmp qword [0x1400a4618], rbx
mov rdi, rax
jne 0x14008048b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140080562
lea rdx, [0x14008a340]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140080562
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x14008a330]
mov rcx, rsi
mov qword [0x1400a4618], 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 [0x1400a4620], 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 [0x1400a4628], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400a4638], rax
test rax, rax
je 0x140080482
lea rdx, [0x14008a2e0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400a4630], rax
jmp 0x140080492
mov rax, qword [0x1400a4630]
jmp 0x140080499
mov rax, qword [0x1400a4630]
mov r11, qword [0x1400a4638]
cmp rax, rdi
je 0x140080500
cmp r11, rdi
je 0x140080500
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400a4638]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140080500
test rax, rax
je 0x140080500
call rsi
test rax, rax
je 0x1400804fa
lea rcx, [rsp + 0x30]
mov r9d, recvfrom
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400804fa
test byte [rsp + 0x40], 1
jne 0x140080500
bts ebp, 0x15
jmp 0x140080540
mov rcx, qword [0x1400a4620]
cmp rcx, rdi
je 0x140080540
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140080540
call rax
mov rbx, rax
test rax, rax
je 0x140080540
mov rcx, qword [0x1400a4628]
cmp rcx, rdi
je 0x140080540
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140080540
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400a4618]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140080562
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140080564
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140078c80
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400826e7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14009c1f0]
jne 0x140078c9a
rol rcx, 0x10
test cx, 0xffff
jne 0x140078c96
repz ret
ror rcx, 0x10
jmp 0x140082640
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400a46f0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400a47e8]
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 0x1400826c5
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, [0x1400a46f0]
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 0x1400826e7
mov rax, qword [rsp + 0x88]
mov qword [0x1400a47e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400a4788], rax
mov rax, qword [0x1400a47e8]
mov qword [0x1400a4660], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400a4770], rax
mov dword [0x1400a4650], 0xc0000409
mov dword [0x1400a4654], 1
mov rax, qword [0x14009c1f0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14009c1f8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400a46e8], eax
mov ecx, 1
call fcn.14008015c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, str.PF_n_
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400a46e8], 0
jne 0x14008276e
mov ecx, 1
call fcn.14008015c
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 0x10004c2c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
push rsi
dec rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov r11, 8
mov rax, 0x38
cqo
idiv r11
mov r14, rax
mov dword [rbp - 0x58], 0xe453517f
movabs r10, 0x4fd9
mov qword [rbp - 0x98], r10
movabs r9, 0xac
mov r13, r10
imul r13, r9
mov dword [rbp - 0x38], 0x2b89
mov r10d, dword [rbp - 0x38]
movabs r9, 0x42c4
add r10, r9
mov dword [rbp - 0x38], r10d
movabs r12, 0x100000000
add r13, r12
mov r10, r14
sub r10, 7
mov dword [rbp - 0x48], r10d
mov r10d, dword [rbp - 0x38]
movabs r9, 0x4a9b3
add r10, r9
mov dword [rbp - 0x38], r10d
mov dword [rbp - 0x5c], 0x2583
and dword [0xba4dc2c7], 0xffffffb4
add byte [rax], r8b
add byte [rax], al
add byte [rax], al
add r13, r10
mov r10d, dword [rbp - 0x58]
sub r10d, 1
mov dword [rbp - 0x58], r10d
mov r10d, dword [rbp - 0x5c]
sub r13, r10

Function at 0x10004c2e4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [rbp - 0x48]
mov r10, r14
sub r10, 3
cqo
idiv r10
mov dword [rbp - 0x9c], eax
mov r10, r14
sub r10, 4
mov r9d, dword [rbp - 0x5c]
mov rdi, r10
add rdi, r9
add edi, ecx
mov r10d, edi
mov r10b, byte [r13 + r10]
mov byte [rbp - 0x31], r10b
movzx r10d, byte [rbp - 0x31]
mov r9d, dword [rbp - 0x58]
mov r8d, dword [rbp - 0x9c]
add r9d, r8d
movzx r9d, r9b
xor r10d, r9d
mov byte [rbp - 0x31], r10b
mov r10d, edi
mov r9b, byte [rbp - 0x31]
mov byte [r13 + r10], r9b
lea rdi, [rdi + 1]
mov r10d, dword [rbp - 0x38]
mov r9d, dword [rbp - 0x5c]
add r10d, r9d
cmp edi, r10d
jae 0x10004c356
jmp 0x10004c30a
mov qword [rbp - 0x68], 0x35f880
mov r10d, dword [rbp - 0x48]
lea r10, [r10 + 1]
mov dword [rbp - 0x48], r10d
mov qword [rbp - 0x50], 0x3ea000
add qword [rbp - 0x68], r12
add qword [rbp - 0x50], r12
mov rax, 0x20
cqo
idiv r11
mov r10d, r10d
cmp rax, r10
jge fcn.10004c2e4
mov r10, r11
invalid
invalid
invalid

Function at 0x10004d944
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x100347ae0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rcx
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x110
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
xor ebx, ebx
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x10004d9b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10004d9a2
mov ebx, 0x80004005
jmp 0x10004d9cf
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x10004d9cb
cmp dword [rsp + 0x30], 2
jne 0x10004d9c7
cmp dword [rsp + 0x24], 6
jb 0x10004d9c7
mov eax, 1
jmp 0x10004d9c9
xor eax, eax
mov dword [rdi], eax
test ebx, ebx
jns 0x10004da00
mov rcx, qword [0x100331948]
lea rax, [0x100331948]
cmp rcx, rax
je 0x10004da00
test byte [rcx + 0x3c], 2
je 0x10004da00
mov rcx, qword [rcx + 0x30]
lea r8, [0x1000215c0]
mov edx, 0x27
mov r9d, ebx
call fcn.100050618
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1002edf64
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret
Function at 0x100074074
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r15
sub rsp, 0x40
mov rbx, rdx
mov r13, r8
mov r12, rcx
lea rdx, [rax - 0x28]
mov r8d, 0x7fffffff
mov rcx, r9
mov rbp, r9
call fcn.100076cf4
lea r15, [0x100331948]
mov edi, eax
test eax, eax
jns 0x1000740e6
mov rcx, qword [0x100331948]
cmp rcx, r15
je 0x1000740ed
test byte [rcx + 0x3c], 2
je 0x1000740ed
mov rcx, qword [rcx + 0x30]
lea r8, [0x1000214d0]
mov edx, 0x12
mov r9d, eax
call fcn.100050618
mov rcx, qword [0x100331948]
mov esi, dword [rsp + 0x30]
test edi, edi
js 0x1000741a2
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
mov r8d, 2
mov rdx, rbx
mov rcx, r12
call fcn.100074fb8
mov rbx, qword [rsp + 0x30]
mov edi, eax
test eax, eax
js 0x100074158
mov r9d, 1
xor r8d, r8d
mov rdx, r13
mov rcx, rbx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100074146
xor edi, edi
jmp 0x100074182
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x100074182
mov rcx, qword [0x100331948]
cmp rcx, r15
je 0x100074189
test byte [rcx + 0x3c], 2
je 0x100074189
mov rcx, qword [rcx + 0x30]
lea r8, [0x1000214d0]
mov edx, 0x24
mov r9d, edi
call fcn.100050618
mov rcx, qword [0x100331948]
test rbx, rbx
je 0x10007419e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x100331948]
test edi, edi
jns 0x1000741c5
cmp rcx, r15
je 0x1000741c5
test byte [rcx + 0x3c], 2
je 0x1000741c5
mov rcx, qword [rcx + 0x30]
lea r8, [0x1000214d0]
mov edx, 0x23
mov r9d, edi
call fcn.100050618
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, edi
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r13
pop r12
ret
Function at 0x100074da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rdi
push r12
push r13
push r15
sub rsp, 0x50
xor r13d, r13d
mov r12, r9
mov rdi, r8
lea r9, [rax - 0x30]
lea r8d, [r13 + 1]
mov qword [rax - 0x30], r13
mov rbx, r13
call fcn.100074fb8
cmp eax, r13d
mov ebp, eax
lea r15, [0x100331948]
jl 0x100074f43
mov dword [rsp + 0x70], r13d
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r13d
je 0x100074e2f
movzx ebp, ax
or ebp, 0x80070000
cmp eax, r13d
cmovle ebp, eax
cmp ebp, r13d
jne 0x100074f41
cmp rbx, r13
jne 0x100074e73
mov eax, dword [rsp + 0x70]
cmp eax, r13d
jbe 0x100074e69
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
cmp rax, r13
jne 0x100074ded
mov rbx, r13
mov ebp, 0x8007000e
jmp 0x100074f3e
mov ebp, 0x8000ffff
jmp 0x100074f43
cmp dword [rsp + 0x30], 1
je 0x100074e84
mov ebp, 0x8007000d
jmp 0x100074f43
mov rdi, r13
mov qword [rsp + 0x40], r13
cmp dword [rsp + 0x70], r13d
ja 0x100074e9a
mov ebp, 0x8007000d
jmp 0x100074ed7
test byte [rsp + 0x70], 1
jne 0x100074e93
mov eax, dword [rsp + 0x70]
shr eax, 1
dec eax
cmp word [rbx + rax*2], r13w
jne 0x100074e93
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.10005058c
cmp eax, r13d
mov ebp, eax
jl 0x100074ed2
mov rax, qword [rsp + 0x40]
mov qword [r12], rax
mov eax, r13d
jmp 0x100074f1f
mov rdi, qword [rsp + 0x40]
mov rcx, qword [0x100331948]
cmp rcx, r15
je 0x100074f01
test byte [rcx + 0x3c], 2
je 0x100074f01
mov rcx, qword [rcx + 0x30]
lea r8, [0x1000214d0]
mov edx, 0x11
mov r9d, ebp
call fcn.100050618
cmp rdi, r13
je 0x100074f1b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rdi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rsp + 0x70]
cmp ebp, r13d
jl 0x100074f43
mov rcx, qword [rsp + 0x90]
cmp eax, r13d
cmovne rbx, r13
cmp rcx, r13
je 0x100074f3e
mov eax, dword [rsp + 0x70]
mov dword [rcx], eax
cmp ebp, r13d
jge 0x100074f6d
mov rcx, qword [0x100331948]
cmp rcx, r15
je 0x100074f6d
test byte [rcx + 0x3c], 2
je 0x100074f6d
mov rcx, qword [rcx + 0x30]
lea r8, [0x1000214d0]
mov edx, 0x22
mov r9d, ebp
call fcn.100050618
cmp rbx, r13
je 0x100074f86
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x38], r13
je 0x100074f98
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x50]
mov eax, ebp
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
ret
Function at 0x1000767b4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x250
mov rax, qword [0x100347ae0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbp, rdx
mov edi, 0x104
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov r8d, edi
mov r12, rcx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
jne 0x100076822
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100076812
mov edi, 0x80004005
jmp 0x10007687c
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x100076878
cmp esi, edi
ja 0x100076837
lea rcx, [rsp + 0x30]
mov rdx, rbp
call fcn.10005058c
mov edi, eax
jmp 0x100076878
lea r8, [rsp + 0x20]
mov rdx, rsi
xor ecx, ecx
call fcn.100076700
mov rbx, qword [rsp + 0x20]
mov edi, eax
test eax, eax
js 0x10007687c
mov r8d, esi
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x100076801
cmp eax, esi
je 0x10007686f
mov edi, 0x8007007a
jmp 0x10007687c
mov rax, rbx
xor ebx, ebx
mov qword [rbp], rax
test edi, edi
jns 0x1000768ad
mov rcx, qword [0x100331948]
lea rax, [0x100331948]
cmp rcx, rax
je 0x1000768ad
test byte [rcx + 0x3c], 2
je 0x1000768ad
mov rcx, qword [rcx + 0x30]
lea r8, [0x100021490]
mov edx, 0x13
mov r9d, edi
call fcn.100050618
test rbx, rbx
je 0x1000768c7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1002edf64
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x100089e6c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rax, [r11 - 0x28]
mov rbp, rcx
xor ebx, ebx
lea rdx, [0x100039560]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x28], rbx
mov esi, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100089ef1
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
lea rdx, [0x100039580]
xor r8d, r8d
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x100089ef1
cmp dword [rsp + 0x70], 1
sete sil
mov rcx, qword [rsp + 0x30]
cmp rcx, rbx
je 0x100089f01
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x30]
lea rdx, [0x100039560]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rax
mov edi, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100089f76
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
lea rdx, [0x1000395b0]
xor r8d, r8d
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x100089f76
cmp dword [rsp + 0x70], 1
sete dil
mov rcx, qword [rsp + 0x30]
cmp rcx, rbx
je 0x100089f86
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x68]
xor ecx, ecx
call fcn.10011ca58
mov ecx, ebx
cmp eax, ebx
cmovge ecx, dword [rsp + 0x68]
cmp esi, ebx
jne 0x100089fa7
cmp edi, ebx
je 0x100089fac
cmp ecx, ebx
jne 0x100089fac
mov ebx, 1
mov dword [rbp], ebx
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret