joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4257f1
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x78], 1
push edi
je 0x41502b
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
push esi
call fcn.00415140
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [esi + 0x28]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esi + 0x48]
mov dword [esp + 0x44], 0
mov eax, dword [ecx + 4]
mov esi, dword [eax]
mov edi, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
test edi, edi
mov ebx, dword [ecx + 4]
je 0x415062
cmp edi, ecx
je 0x415068
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, ebx
je 0x41511b
test edi, edi
jne 0x41507a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [edi + 4]
jne 0x415085
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, 8
cmp dword [esi + 0x24], ebx
jb 0x415094
mov eax, dword [esi + 0x10]
jmp 0x415097
lea eax, [esi + 0x10]
mov edx, dword [ebp + 8]
push eax
push edx
call fcn.00417460
add esp, 8
test eax, eax
je 0x415101
cmp esi, dword [edi + 4]
jne 0x4150b3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esi + 0x24], ebx
jb 0x4150bd
mov esi, dword [esi + 0x10]
jmp 0x4150c0
add esi, 0x10
push esi
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov ebx, dword [ebp + 0xc]
mov byte [esp + 0x44], 1
mov esi, dword [ebx + 4]
push eax
mov eax, dword [esi + 4]
push eax
push esi
call fcn.00407c10
mov ecx, ebx
mov edi, eax
call fcn.00407cb0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
lea ecx, [esp + 0x1c]
mov dword [eax], edi
mov byte [esp + 0x44], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea esi, [esp + 0x14]
call fcn.004165d0
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
jmp 0x415057
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x416ba0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424f88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
lea esi, [ebx + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x34], 0xffffffff
push esi
setne byte [ebp - 0xd]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0xd], 0
je 0x416ce6
cmp byte [ebx + 0x41], 0
jne 0x416ce6
lea eax, [ebx + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebx + 0x30]
mov edi, dword [ebp + 0xc]
cmp edi, dword [eax + 0xc]
jbe 0x416cfa
push esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
mov dword [ebp - 4], 4
jbe 0x416cc1
mov eax, dword [ebx + 0x30]
mov edi, dword [eax + 0xc]
lea esi, [eax + 8]
call fcn.00419450
mov esi, eax
test esi, esi
je 0x416cdc
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
add edx, ecx
cmp eax, edi
push edx
jbe 0x416c58
call fcn.00419310
sub dword [ebp + 0xc], edi
add dword [ebp - 0x14], edi
jmp 0x416c66
mov edi, eax
call fcn.00419310
mov dword [ebp + 0xc], 0
mov eax, dword [ebx + 0x48]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
je 0x416c7e
add eax, 4
push eax
call edi
sub eax, 1
jmp 0x416c80
xor eax, eax
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 0x30]
lea ecx, [esi + 0x38]
push ecx
mov dword [ebp - 0x1c], eax
mov dword [esi + 0x24], 4
call edi
lea edx, [ebx + 0x38]
push edx
call edi
mov eax, dword [ebp - 0x1c]
push esi
add eax, 0x64
push eax
xor edx, edx
mov ecx, ebx
call fcn.00419820
mov ecx, esi
call fcn.004193b0
cmp dword [ebp + 0xc], 0
ja 0x416c23
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea esi, [eax + 8]
call fcn.00419450
mov esi, eax
test esi, esi
je 0x416ce6
mov edx, dword [ebp + 8]
push edx
call fcn.00419310
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x416d27
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub eax, 1
jmp 0x416d29
xor eax, eax
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 0x30]
push eax
mov eax, 4
mov edi, ebx
call fcn.004169c0
mov ecx, esi
call fcn.004193b0
mov ecx, dword [ebp - 0xc]
pop edi
mov al, 1
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x417000
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424a98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
lea esi, [edi + 0x20]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x417076
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea esp, [esp]
mov eax, dword [eax + 4]
test eax, eax
je 0x417055
cmp eax, 0xffffffff
je 0x417055
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esi, dword [edi + 0x5c]
lea eax, [edi + 0x40]
push eax
call ebx
lea eax, [edi + 0x44]
push eax
call ebx
mov ecx, edi
call fcn.00417090
mov eax, dword [edi + 0x5c]
test eax, eax
jne 0x417040
mov esi, dword [ebp - 0x10]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x418ba0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0xa
mov ebx, ecx
mov ecx, dword [ebp + 8]
push ecx
push 0xe
push 0x400
mov dword [esi], eax
call edi
mov edx, dword [ebp + 8]
push 0xa
push ebx
push 0xf
push 0x400
mov dword [esi + 0xc], edx
call edi
push 0xa
lea eax, [ebp - 0x14]
push eax
push 0x12
push 0x400
mov dword [esi + 0x10], ebx
call edi
mov ebx, dword [sym.imp.MSVCR80.dll__wtol]
lea ecx, [ebp - 0x14]
push ecx
call ebx
add esp, 4
push 0xa
lea edx, [ebp - 0x14]
push edx
push 0x1010
push 0x400
mov dword [esi + 4], eax
call edi
lea eax, [ebp - 0x14]
push eax
call ebx
add esp, 4
push 0xa
lea ecx, [ebp - 0x14]
push ecx
push 0x10
push 0x400
mov dword [esi + 0x14], eax
call edi
mov ax, word [ebp - 0x14]
test ax, ax
pop edi
mov dword [esi + 8], 0
lea edx, [ebp - 0x14]
pop ebx
je 0x418c68
movzx eax, ax
lea esp, [esp]
cmp ax, 0x31
jb 0x418c5c
cmp ax, 0x39
ja 0x418c5c
mov ecx, dword [esi + 8]
movzx eax, ax
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*2 - 0x30]
mov dword [esi + 8], ecx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x418c40
mov esp, ebp
pop ebp
ret

Function at 0x419e30
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push str.GlobalFA6FBBB1_8C8E_43b1_B8EC_35573A94C231
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x419e57
xor eax, eax
jmp 0x419ea4
push 0
push 0
push 0
push 6
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x419e93
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax], 0
xor eax, eax
jmp 0x419ea4
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx + 8], eax
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x41a050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x30], 0
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x31], 0
lea edx, [ebp - 4]
push edx
push 0x20019
push 0
push str.SOFTWARETencentQQPCMgr
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41a0ec
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push str.EnableLogToView
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41a0e2
mov eax, dword [ebp - 0xc]
and eax, 1
je 0x41a0d3
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x30], 1
mov edx, dword [ebp - 0xc]
and edx, 2
je 0x41a0e2
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x31], 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x41a120
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov dword [ebp - 0x214], ecx
mov eax, dword [ebp - 0x214]
mov dword [eax], 0
mov dword [ebp - 4], 0
mov word [ebp - 0x210], 0
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x103
lea edx, [ebp - 0x210]
push edx
push str._APPDATA_TencentQQPCMgr_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41a191
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41a1d7
lea ecx, [ebp - 0x210]
push ecx
push 0x103
mov edx, dword [ebp - 0x214]
add edx, 4
push edx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
push 0xffffffffffffffff
push str.ErrLogFile.log
push 0x104
mov eax, dword [ebp - 0x214]
add eax, 4
push eax
call dword [sym.imp.MSVCR80.dll_wcsncat_s]
add esp, 0x10
jmp 0x41a1f9
push 0x103
push str.C:ErrLogFile.log
push 0x103
mov ecx, dword [ebp - 0x214]
add ecx, 4
push ecx
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
add esp, 0x10
mov eax, dword [ebp - 0x214]
mov esp, ebp
pop ebp
ret
Function at 0x41a210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov word [ebp - 0x1b], ax
mov byte [ebp - 0x19], al
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 2]
push edx
movzx eax, word [ebp - 4]
push eax
movzx ecx, word [ebp - 6]
push ecx
movzx edx, word [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__4d___02d:_02d:_02d._03d_
push 0xffffffffffffffff
push 0x20
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR80.dll__snprintf_s]
add esp, 0x24
mov dword [ebp - 0x18], eax
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret

Function at 0x41a2a0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x4c], ecx
cmp dword [ebp + 8], 0
jne 0x41a2b4
jmp 0x41a3b6
mov eax, dword [ebp - 0x4c]
cmp dword [eax], 0
jne 0x41a2f1
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
mov ecx, dword [ebp - 0x4c]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x4c]
mov dword [edx], eax
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
cmp dword [eax], 0
setne cl
test ecx, ecx
jne 0x41a2f1
jmp 0x41a3b6
mov dword [ebp - 8], 0
push 0
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x41a318
cmp dword [ebp - 8], 0x2000000
jbe 0x41a31d
jmp 0x41a3b6
mov dword [ebp - 0x10], 0
push 2
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x4c]
call fcn.0041a210
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
add edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x50]
mov cl, byte [eax]
mov byte [ebp - 0x55], cl
add dword [ebp - 0x50], 1
cmp byte [ebp - 0x55], 0
jne 0x41a356
mov edx, dword [ebp - 0x50]
sub edx, dword [ebp - 0x54]
mov dword [ebp - 0x5c], edx
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dx, word [0x42b028]
mov word [ebp - 0xc], dx
mov al, byte [0x42b02a]
mov byte [ebp - 0xa], al
push 0
lea ecx, [ebp - 4]
push ecx
push 2
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret 4
Function at 0x41a620
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0x14], 0
jne 0x41a635
lea eax, [ebp - 8]
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41a870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41a8ad
mov eax, dword [ebp - 0xc]
jmp 0x41a8bc
cmp dword [ebp - 4], 4
je 0x41a8ba
mov eax, 0xd
jmp 0x41a8bc
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x41a8d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 8
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41a90d
mov eax, dword [ebp - 0xc]
jmp 0x41a91c
cmp dword [ebp - 4], 0xb
je 0x41a91a
mov eax, 0xd
jmp 0x41a91c
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x41a930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41a966
mov eax, dword [ebp - 8]
jmp 0x41a975
cmp dword [ebp - 4], 3
je 0x41a973
mov eax, 0xd
jmp 0x41a975
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41a980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
shl ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp dword [ebp - 0xc], 0
je 0x41a9d3
mov eax, dword [ebp - 0xc]
jmp 0x41a9e8
cmp dword [ebp - 4], 1
je 0x41a9e6
cmp dword [ebp - 4], 2
je 0x41a9e6
mov eax, 0xd
jmp 0x41a9e8
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41a9f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
shl ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41aa39
mov eax, dword [ebp - 0xc]
jmp 0x41aa52
cmp dword [ebp - 4], 7
je 0x41aa46
mov eax, 0xd
jmp 0x41aa52
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41aa60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov dword [ebp - 8], 0x42b53c
mov dword [ebp - 8], vtable.QMRegisterUtils::CQMRegistryHandle.0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x18], eax
xor eax, eax
je 0x41aac1
mov ecx, dword [ebp - 0x1c]
mov dword [0], ecx
cmp dword [ebp - 0x18], 0
jne 0x41aadb
mov edx, dword [ebp - 8]
lea ecx, [ebp - 8]
mov eax, dword [edx + 0x54]
call eax
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x41ab0f
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], vtable.QMRegisterUtils::CQMRegistryHandle.0
mov dword [ebp - 0x24], 0
cmp dword [ebp - 4], 0
je 0x41ab3d
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41ab80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x41ab9e
cmp dword [ebp + 0x14], 0xffffffff
jne 0x41ab9e
mov eax, 0x57
jmp 0x41abe6
cmp dword [ebp + 0x14], 0xffffffff
jne 0x41abb4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp + 0x14], eax
movzx edx, byte [ebp + 0x10]
neg edx
sbb edx, edx
and edx, 6
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
shl eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41acf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx*2]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*2]
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], 1
jne 0x41ad06
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 7
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8
Function at 0x41adc0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x14], 0x42b53c
mov dword [ebp - 0x14], vtable.QMRegisterUtils::CQMRegistryHandle.0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x244]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x228], 0
lea edx, [ebp - 0x228]
push edx
push 0x2001f
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jne 0x41ae45
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov eax, dword [edx + 0x54]
call eax
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x41ae96
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x14], vtable.QMRegisterUtils::CQMRegistryHandle.0
mov dword [ebp - 0x234], 0
cmp dword [ebp - 0x10], 0
je 0x41ae8b
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x21c]
jmp 0x41afa0
mov dword [ebp - 4], 0x100
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41af28
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x14]
call fcn.0041adc0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41af1c
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x14], vtable.QMRegisterUtils::CQMRegistryHandle.0
mov dword [ebp - 0x238], 0
cmp dword [ebp - 0x10], 0
je 0x41af11
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x220]
jmp 0x41afa0
mov dword [ebp - 4], 0x100
jmp 0x41ae9d
mov dword [ebp - 0x23c], 0
cmp dword [ebp - 0x10], 0
je 0x41af4f
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x244]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x244]
mov edx, dword [eax + 0x70]
call edx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x14], vtable.QMRegisterUtils::CQMRegistryHandle.0
mov dword [ebp - 0x240], 0
cmp dword [ebp - 0x10], 0
je 0x41af9a
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x224]
mov esp, ebp
pop ebp
ret 4