joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14019b15c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140217900]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14019b1a6
call fcn.14017b88c
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14017b8b0
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14017ad1c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14015b7e0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14019b1b1
lea eax, [rbx + 1]
jmp 0x14019b193
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14019b191
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14019b193
Function at 0x14019b4a4
Capabilities:
Set environment variable

Disassembly:
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.14017335c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14019b52e
cmp byte [rbp - 0x21], r15b
je 0x14019b529
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14019b564
call fcn.14018acbc
test eax, eax
jne 0x14019b550
cmp byte [rbp - 0x21], r15b
je 0x14019b548
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14019b564
cmp byte [rbp - 0x21], r15b
je 0x14019b561
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.14017daac
test eax, eax
jne 0x14019b604
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14017335c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14019b5a3
cmp byte [rbp - 0x21], r15b
je 0x14019b5d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14019b5d8
call fcn.14018acbc
test eax, eax
jne 0x14019b5c4
cmp byte [rbp - 0x21], r15b
je 0x14019b5bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14019b5d8
cmp byte [rbp - 0x21], r15b
je 0x14019b5d5
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.14017daac
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14019b604
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14019b607
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14019b615
mov rcx, rdi
call fcn.14018a850
cmp byte [rbp + 0x3f], r15b
je 0x14019b624
mov rcx, qword [rbp + 0x27]
call fcn.14018a850
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 0x14019ca00
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
push rbp
sub rsp, 0x30
movsxd rbx, ecx
mov rbp, r8
lea rcx, [0x140020513]
call fcn.14001233c
call fcn.140001290
cmp ebx, 0x3e7
ja 0x1400013b8
lea rdx, [0x14001b020]
mov qword [rsp + 0x40], rsi
mov rax, rbx
mov qword [rsp + 0x50], rdi
add rax, rax
lea r8, [0x140002260]
lea rdi, [rdx + rax*8]
mov ecx, 0x58
mov word [rdi], cx
xor ebx, ebx
xor ecx, ecx
mov r9, rbp
lea rsi, [rdx + rax*8]
xor edx, edx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsi + 8], rax
cmp qword [rsp + 0x48], rbx
jne 0x1400013a1
mov eax, 0xffffffff
mov qword [rsi + 8], rax
mov eax, 0x20
mov word [rdi], ax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov rbx, qword [rsp + 0x58]
mov eax, 0x16
add rsp, 0x30
pop rbp
ret

Function at 0x1400016f0
Capabilities:
Terminate process

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x830
mov rax, qword [0x14001a010]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov ebp, ecx
mov rdi, r9
lea rcx, [0x140020513]
mov rbx, r8
mov r14, rdx
call fcn.14001233c
lea rdx, str.FAILLEVEL
lea rcx, [rbx + 0x108]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x1400017cc
mov r9d, ebp
lea rdx, str._s:_rc_d
mov r8, r14
lea rcx, [rsp + 0x20]
call fcn.140001600
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.14000e6e0
lea rcx, [rsp + 0x20]
call qword [sym.imp.LIBSAPUCUM.dll_printfU16]
lea r8, [rbx + 8]
lea r9, [rbx + 0x108]
lea rdx, str._s:__s
lea rcx, [rsp + 0x20]
call fcn.140001600
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.14000e6e0
lea rcx, [rsp + 0x20]
call qword [sym.imp.LIBSAPUCUM.dll_printfU16]
test rdi, rdi
je 0x1400017b6
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.SAPNWRFC.dll_RfcCloseConnection]
cmp byte [rsp + 0x880], 1
jne 0x1400017cc
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.1400110e0
add rsp, 0x830
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001a00
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xa80
mov rax, qword [0x14001a010]
xor rax, rsp
mov qword [rsp + 0xa70], rax
lea rcx, [0x140020513]
mov esi, r9d
mov edi, r8d
mov rbx, rdx
call fcn.14001233c
lea rcx, str.TRILLDIRADDR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea rcx, str.TRILLDIRPORT
mov qword [0x14001ab18], rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [0x14001ab08], rax
mov rax, 0xffffffffffffffff
mov dword [rsp + 0x30], 0
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140001a70
add eax, 2
mov rdx, 0xffffffffffffffff
mov dword [rsp + 0x34], eax
nop dword [rax + rax]
inc rdx
cmp word [rbx + rdx*2], 0
jne 0x140001a90
lea rax, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x850]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SAPNWRFC.dll_RfcSAPUCToUTF8]
test rbx, rbx
je 0x140001b08
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x140001ad0
test rax, rax
je 0x140001b08
lea r8, [rsp + 0x850]
lea rdx, str.TRILLCONFIG_s
lea rcx, [rsp + 0x960]
call fcn.140001220
lea rcx, [rsp + 0x960]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
lea rcx, str.TRILLCONFIG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [0x14001ab10], rax
test edi, edi
mov eax, dword [0x14001a050]
lea r8, str.Unicode
cmovne eax, edi
lea rdx, str.Initializing__s_SAP_Client_n
mov dword [0x14001a050], eax
lea rcx, [rsp + 0x720]
mov eax, dword [0x14001a054]
test esi, esi
cmovne eax, esi
mov dword [0x14001a054], eax
call fcn.140001220
mov rax, qword [0x14001ab08]
lea rbx, [0x14001a9b0]
mov r9, qword [0x14001ab18]
lea rdx, str.CONFIG____s_nDIRADDR___s_nDIRPORT___s_n
mov r8, qword [0x14001ab10]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140001220
lea rcx, [rsp + 0x720]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140001b94
xor edx, edx
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140001ba0
mov r9d, dword [0x14001a054]
lea rdx, str.Retry_count___d_nRetry_wait___d_seconds
mov r8d, dword [0x14001a050]
mov rcx, rbx
call fcn.140001220
lea rcx, [rsp + 0x720]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140001be0
xor edx, edx
nop dword [rax]
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140001bf0
lea rdx, [rsp + 0x720]
xor ecx, ecx
call fcn.14000e630
mov rcx, qword [0x14001ab10]
test rcx, rcx
je 0x140001c33
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140001c21
test rax, rax
je 0x140001c33
xor eax, eax
jmp 0x140001c49
lea rdx, str.Unable_to_determine_configuration_file.
mov ecx, 2
call fcn.14000e630
mov eax, 0xffffffff
mov rcx, qword [rsp + 0xa70]
xor rcx, rsp
call fcn.1400110e0
add rsp, 0xa80
pop rdi
pop rsi
pop rbx
ret
Function at 0x140009950
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rsi, rdx
lea rcx, [0x1400204a8]
call fcn.14001233c
mov rdi, qword [rbx + 0x10]
test rdi, rdi
je 0x140009a14
cmp qword [rdi], 0
mov rbx, qword [rbx]
je 0x1400099dd
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400099ff
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400099ff
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 0x1400099ff
mov rdx, rsi
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 [0x14001ef08], 0
jne 0x140009a5f
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009a4f
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001ef00], rax
mov byte [0x14001ef08], 1
jmp 0x140009a66
mov rax, qword [0x14001ef00]
mov byte [0x14001ef08], 1
jmp 0x140009a66
mov rax, qword [0x14001ef00]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x1400099e9
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 0x140009ba0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
lea rcx, [0x1400204a8]
call fcn.14001233c
mov rcx, qword [rdi]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000a380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x490
mov rax, qword [0x14001a010]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r12, r9
mov r15, r8
mov rsi, rdx
mov rbx, rcx
lea rcx, [0x1400204a7]
call fcn.14001233c
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000a419
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000a419
call fcn.1400095c0
mov ebx, eax
jmp 0x14000a53e
mov r8, r12
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000a43a
call fcn.1400095c0
jmp 0x14000a52d
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 0x14000a45d
call fcn.1400095c0
jmp 0x14000a52d
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 0x14000a47f
mov ebx, 0x8007000e
jmp 0x14000a52f
mov ecx, eax
test eax, eax
je 0x14000a4b4
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14000a57f
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000a4b4
lea rcx, [rsp + 0x70]
call fcn.14000fc90
jmp 0x14000a4be
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14000a4d1
cmp qword [rsp + 0x70], 0
jne 0x14000a4e0
mov ebx, 0x8007000e
jmp 0x14000a52f
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 0x14000a50a
call fcn.1400095c0
jmp 0x14000a52d
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 + 0x48]
call fcn.14000b4f0
mov ebx, eax
test rdi, rdi
je 0x14000a53e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14000a555
lea rcx, [rsp + 0x70]
call fcn.14000fc60
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400110e0
mov rbx, qword [rsp + 0x4c0]
add rsp, 0x490
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov ecx, 0x80070216
call fcn.140001670
int3
Function at 0x14000ec50
Capabilities:
Access the windows event log

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
sub rsp, 0xf88
mov rax, qword [0x14001a010]
xor rax, rsp
mov qword [rsp + 0xf70], rax
movzx esi, dx
mov rdi, rcx
lea rcx, [0x140020513]
call fcn.14001233c
lea rdx, [rsp + 0xfc8]
xor ebp, ebp
mov ebx, ebp
add rdx, 0xfffffffffffffff8
nop dword [rax]
lea rdx, [rdx + 8]
mov rcx, qword [rdx]
mov eax, ebx
mov qword [rsp + rax*8 + 0x750], rcx
test rcx, rcx
je 0x14000ecbd
inc ebx
cmp ebx, 3
jb 0x14000eca0
cmp dword [rdi + 0x2e0], ebp
je 0x14000ed25
lea rdx, [rdi + 0xb4]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x14000ee21
xor r8d, r8d
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x750]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebp
mov word [rsp + 0x28], bx
mov qword [rsp + 0x20], rbp
mov r9d, dword [rsp + 0xfc0]
movzx edx, si
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x14000ee21
lea rcx, str.TrilMsg.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
lea rax, [rsp + 0x750]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebp
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0xfc0]
mov rdx, rbx
mov ecx, 0x2900
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rcx, qword [rsp + 0x58]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rcx + rdx*2], bp
jne 0x14000ed75
mov dword [rsp + 0x50], 0x800
dec edx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x770]
call qword [sym.imp.SAPNWRFC.dll_RfcSAPUCToUTF8]
mov rdx, qword [rdi + 0x60]
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_char_StrTraitMFC_DLL_char_ATL::ChTraitsCRT_char_]
nop
lea rdx, [0x1400156c8]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rdi + 0x2e8], rax
test rax, rax
je 0x14000ee01
lea r8, [rsp + 0x770]
lea rdx, [0x1400156cc]
mov rcx, rax
call fcn.140009520
mov rcx, qword [rdi + 0x2e8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XImage::XImage]
mov rcx, qword [rsp + 0xf70]
xor rcx, rsp
call fcn.1400110e0
add rsp, 0xf88
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140011b6c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140011bb6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140011bb6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140011bb6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140011bb6
cmp dword [rcx + 0x84], 0xe
jbe 0x140011bb6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140011bb8
xor al, al
add rsp, 0x28
ret
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 0x10004e514
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x160
mov rax, qword [0x100347ae0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov edi, 0x11c
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8, rdi
xor ebx, ebx
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rbp, [0x100331948]
lea edi, [rbx + 2]
test eax, eax
jne 0x10004e58c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10004e57c
mov ebx, 0x80004005
jmp 0x10004e5bd
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x10004e5b9
cmp dword [rsp + 0x34], 6
jae 0x10004e5ae
cmp dword [rsp + 0x34], 5
jne 0x10004e5aa
cmp dword [rsp + 0x38], edi
jne 0x10004e5aa
cmp word [rsp + 0x144], di
jae 0x10004e5ae
xor eax, eax
jmp 0x10004e5b3
mov eax, 1
mov dword [0x100349be0], eax
test ebx, ebx
jns 0x10004e5e7
mov rcx, qword [0x100331948]
cmp rcx, rbp
je 0x10004e5ee
test byte [rcx + 0x3c], dil
je 0x10004e5ee
mov rcx, qword [rcx + 0x30]
lea r8, [0x100021560]
mov edx, 0xe
mov r9d, ebx
call fcn.100050618
mov rcx, qword [0x100331948]
test ebx, ebx
js 0x10004e69e
xor r9d, r9d
lea r8, [0x100036948]
lea rcx, [0x100036980]
lea edx, [r9 + 0x64]
call qword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
test eax, eax
je 0x10004e62f
mov ecx, eax
call qword [sym.imp.RPCRT4.dll_I_RpcMapWin32Status]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x10004e697
lea rax, [0x10004e700]
lea rcx, [0x100021890]
mov r9d, 0x21
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0x4d2
call qword [sym.imp.RPCRT4.dll_RpcServerRegisterIfEx]
test eax, eax
je 0x10004e679
mov ecx, eax
call qword [sym.imp.RPCRT4.dll_I_RpcMapWin32Status]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x10004e697
lea rcx, [0x100349bb0]
call fcn.10004ff54
mov ebx, eax
test eax, eax
js 0x10004e697
mov dword [0x100349be4], 1
jmp 0x10004e6c1
mov rcx, qword [0x100331948]
cmp rcx, rbp
je 0x10004e6c1
test byte [rcx + 0x3c], dil
je 0x10004e6c1
mov rcx, qword [rcx + 0x30]
lea r8, [0x100021560]
mov edx, 0xa
mov r9d, ebx
call fcn.100050618
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1002edf64
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x10004f718
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push r12
push r13
push r14
sub rsp, 0x40
xor r13d, r13d
mov r12, r9
mov rbp, r8
lea r9, [rax - 0x20]
lea r8d, [r13 + 1]
mov qword [rax - 0x20], r13
mov rbx, r13
call fcn.10004fa18
cmp eax, r13d
mov esi, eax
lea r14, [0x100331948]
jl 0x10004f86b
mov dword [rsp + 0x60], r13d
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r13d
je 0x10004f7a7
movzx esi, ax
or esi, 0x80070000
cmp eax, r13d
cmovle esi, eax
cmp esi, r13d
jne 0x10004f869
cmp rbx, r13
jne 0x10004f7eb
mov eax, dword [rsp + 0x60]
cmp eax, r13d
jbe 0x10004f7e1
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 0x10004f765
mov rbx, r13
mov esi, 0x8007000e
jmp 0x10004f866
mov esi, 0x8000ffff
jmp 0x10004f86b
cmp dword [rsp + 0x30], 4
je 0x10004f7f9
mov esi, 0x8007000d
jmp 0x10004f86b
mov edx, dword [rsp + 0x60]
mov ebp, r13d
cmp edx, 4
je 0x10004f840
mov esi, 0x8007000d
mov ebp, esi
mov rcx, qword [0x100331948]
cmp rcx, r14
je 0x10004f83a
test byte [rcx + 0x3c], 2
je 0x10004f83a
mov rcx, qword [rcx + 0x30]
lea r8, [0x1000215e0]
mov edx, 0xd
mov r9d, esi
call fcn.100050618
mov edx, dword [rsp + 0x60]
mov eax, dword [rsp + 0x60]
jmp 0x10004f849
mov eax, dword [rbx]
mov dword [r12], eax
mov eax, r13d
cmp ebp, r13d
mov esi, ebp
jl 0x10004f86b
cmp eax, r13d
mov rax, qword [rsp + 0x80]
cmovne rbx, r13
cmp rax, r13
je 0x10004f866
mov dword [rax], edx
cmp esi, r13d
jge 0x10004f895
mov rcx, qword [0x100331948]
cmp rcx, r14
je 0x10004f895
test byte [rcx + 0x3c], 2
je 0x10004f895
mov rcx, qword [rcx + 0x30]
lea r8, [0x1000215e0]
mov edx, 0x22
mov r9d, esi
call fcn.100050618
cmp rbx, r13
je 0x10004f8ae
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 0x10004f8c0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov eax, esi
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
ret