joyce8/EMBER2024-capa huggingface dataset:
Function at 0xcd9eeb
Capabilities:
Lock the desktop

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ProcessIdToSessionId]
test eax, eax
je 0xcd9fa3
push 0
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test eax, eax
je 0xcd9f6f
mov ecx, dword [ebp - 4]
mov edx, eax
call fcn.00cda39b
call fcn.00cda4ac
call dword [sym.imp.USER32.dll_LockWorkStation]
test eax, eax
jne 0xcd9fe0
mov eax, dword [0xd08120]
cmp eax, 0xd08120
je 0xcd9fe0
test byte [eax + 0x1c], 2
je 0xcd9fe0
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0xcd9f5f
movzx eax, ax
or eax, 0x80070000
push eax
mov eax, dword [0xd08120]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xa
jmp 0xcd9fd5
mov eax, dword [0xd08120]
cmp eax, 0xd08120
je 0xcd9fe0
test byte [eax + 0x1c], 2
je 0xcd9fe0
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0xcd9f93
movzx eax, ax
or eax, 0x80070000
push eax
mov eax, dword [0xd08120]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xb
jmp 0xcd9fd5
mov eax, dword [0xd08120]
cmp eax, 0xd08120
je 0xcd9fe0
test byte [eax + 0x1c], 2
je 0xcd9fe0
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0xcd9fc7
movzx eax, ax
or eax, 0x80070000
push eax
mov eax, dword [0xd08120]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xc
mov edx, 0xb49a84
pop ecx
call fcn.00cd773d
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0xcda39b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0xd08954]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
mov dword [ebp - 0x10], edx
cmp dword [0xd0b988], edi
jne 0xcda49b
mov dword [0xd0b980], ecx
lea ecx, [ebp - 8]
push esi
mov dword [ebp - 0xc], edi
call fcn.00cda069
push eax
lea ecx, [ebp - 0xc]
call fcn.00cc0adb
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0xcda3f4
mov dword [ebp - 8], edi
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0xd0cffc]
call esi
mov esi, dword [ebp - 0xc]
test esi, esi
jne 0xcda405
mov edi, 0x8007000e
jmp 0xcda49a
push edi
push edi
lea eax, [ebp - 0x10]
push eax
push 0xcda160
push edi
push edi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov dword [0xd0b988], eax
test eax, eax
je 0xcda448
mov eax, dword [0xd08120]
cmp eax, 0xd08120
je 0xcda48a
test byte [eax + 0x1c], 8
je 0xcda48a
push dword [eax + 0x14]
mov edx, 0xb49b54
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.00cd7601
jmp 0xcda48a
mov edi, 0x80004005
mov eax, dword [0xd08120]
cmp eax, 0xd08120
je 0xcda48a
test byte [eax + 0x1c], 2
je 0xcda48a
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0xcda471
movzx eax, ax
or eax, 0x80070000
push eax
mov eax, dword [0xd08120]
mov edx, 0xb49b54
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xb
pop ecx
call fcn.00cd773d
mov ecx, dword [esi]
push esi
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0xd0cffc]
call esi
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.00bc0ea0
mov esp, ebp
pop ebp
ret
Function at 0xcdb508
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0xd08954]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x488
lea eax, [ebp - 0x48c]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00bc259b
mov edi, dword [0xb17114]
lea eax, [ebp - 0x414]
add esp, 0xc
mov dword [ebp - 0x48c], esi
mov dword [ebp - 0x460], 0x20000
mov esi, 0x80004005
mov dword [ebp - 0x45c], 8
mov dword [ebp - 0x44c], 0x20801
push 0x104
push eax
push dword [0xb17118]
mov dword [ebp - 0x420], 0x78
mov dword [ebp - 0x41c], 0x280
call dword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_SHExpandEnvironmentStringsW]
test eax, eax
je 0xcdb6cc
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.api_ms_win_shell_shdirectory_l1_1_0.dll_Ordinal_292_1]
push edi
push 0x104
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchAppend]
mov esi, eax
test esi, esi
js 0xcdb6cc
push 0xb49c84
push 0x104
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchAddExtension]
mov esi, eax
test esi, esi
js 0xcdb6cc
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x494], ebx
push eax
push edi
lea eax, [ebp - 0x494]
mov dword [ebp - 0x490], ebx
push eax
call dword [sym.imp.api_ms_win_eventing_controller_l1_1_0.dll_StartTraceW]
mov esi, eax
test esi, esi
jle 0xcdb617
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80070057
jne 0xcdb658
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
je 0xcdb6df
lea eax, [ebp - 0x48c]
push eax
push edi
lea eax, [ebp - 0x494]
push eax
call dword [sym.imp.api_ms_win_eventing_controller_l1_1_0.dll_StartTraceW]
mov esi, eax
test esi, esi
jle 0xcdb65a
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0xcdb6cc
mov edi, ebx
test esi, esi
js 0xcdb6a5
mov eax, dword [0xb17124]
push ebx
push ebx
push ebx
push ebx
add eax, edi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 4
push 1
push eax
push dword [ebp - 0x490]
push dword [ebp - 0x494]
call dword [sym.imp.api_ms_win_eventing_controller_l1_1_0.dll_EnableTraceEx2]
mov esi, eax
test esi, esi
jle 0xcdb699
movzx esi, si
or esi, 0x80070000
add edi, 0x18
cmp edi, 0x18
jb 0xcdb65e
test esi, esi
jns 0xcdb6cc
lea eax, [ebp - 0x48c]
push eax
push ebx
push dword [ebp - 0x490]
push dword [ebp - 0x494]
call dword [sym.imp.api_ms_win_eventing_controller_l1_1_0.dll_StopTraceW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00bc0ea0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0xcdb6f6
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0xcdb658
mov esi, 0x80004005
jmp 0xcdb6cc
Function at 0xcdc91a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0xd0b990]
test esi, esi
jne 0xcdc9b8
push edi
push 2
pop esi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
push 0x20019
push edi
push 0xb49e4c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0xcdc9b1
push ebx
push 4
pop ebx
lea eax, [ebp - 8]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], ebx
push eax
push edi
push edi
push 0xb49e20
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0xcdc9a7
cmp dword [ebp - 4], edi
je 0xcdc9a7
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0xb49e00
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0xcdc9a4
cmp dword [ebp - 4], edi
jne 0xcdc9a7
xor esi, esi
inc esi
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
pop ebx
mov dword [0xd0b990], esi
pop edi
xor eax, eax
cmp esi, 1
pop esi
sete al
mov esp, ebp
pop ebp
ret

Function at 0xcdcd65
Capabilities:
Get hostname
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0xd08954]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x10
pop ebx
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xd8], ebx
push eax
lea eax, [ebp - 0x24]
xor esi, esi
push eax
call dword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_GetComputerNameW]
test eax, eax
je 0xcdce85
push edi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.00bc259b
add esp, 0xc
mov dword [ebp - 0xe0], edi
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xdc], ebx
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupAccountNameW]
test eax, eax
je 0xcdce84
push edi
lea eax, [ebp - 0xac]
push esi
push eax
call fcn.00bc259b
add esp, 0xc
mov dword [ebp - 0xe4], edi
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x26
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
test eax, eax
je 0xcdce84
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertSidToStringSidW]
test eax, eax
je 0xcdce84
lea edx, [ebp - 0xd0]
call fcn.00bbb6ba
test eax, eax
js 0xcdce79
push 0xffffffffffffffff
push dword [ebp - 0xd0]
push 0xffffffffffffffff
push dword [ebp - 0xd4]
push 1
push 0x7f
call fcn.00bc1d9d
push dword [ebp - 0xd0]
sub eax, 2
neg eax
sbb esi, esi
inc esi
call fcn.00bc1d03
push dword [ebp - 0xd4]
call fcn.00bc1d03
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00bc0ea0
mov esp, ebp
pop ebp
ret
Function at 0xcdd099
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1080
call fcn.00bc6320
mov eax, dword [0xd08954]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x107c], ecx
or ecx, 0xffffffff
push edi
push dword [ebp + 0x10]
mov dword [ebp - 0x1078], edx
xor edi, edi
mov dword [ebp - 0x1074], ecx
mov edx, 0x824
lea ecx, [ebp - 0x1054]
mov dword [ebp - 0x106c], edi
call fcn.00b7db60
xor esi, esi
mov dword [ebp - 0x1070], esi
cmp esi, 3
jae 0xcdd195
and dword [ebp - 0x1068], 0
lea eax, [ebp - 0x1068]
push eax
push 0
push 0x5000
push ebx
call dword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
test eax, eax
js 0xcdd183
push 0
lea eax, [ebp - 0x1054]
push eax
push dword [ebp - 0x1068]
call dword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathCommonPrefixW]
mov edi, eax
mov dword [ebp - 0x1080], edi
test edi, edi
je 0xcdd172
push dword [ebp - 0x1068]
call fcn.00bc1d3c
cmp edi, eax
jne 0xcdd172
mov eax, dword [ebp - 0x1080]
lea edi, [ebp - 0x1064]
mov esi, ebx
mov dword [ebp - 0x1074], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1070]
xor edi, edi
inc edi
mov dword [ebp - 0x106c], edi
jmp 0xcdd178
mov edi, dword [ebp - 0x106c]
push dword [ebp - 0x1068]
call fcn.00bc1cf1
inc esi
add ebx, 0x10
mov dword [ebp - 0x1070], esi
test edi, edi
je 0xcdd0f0
test edi, edi
je 0xcdd1cf
mov edi, dword [ebp - 0x1078]
lea eax, [ebp - 0x1064]
mov esi, dword [ebp - 0x107c]
push edi
push esi
push eax
call dword [sym.imp.api_ms_win_shlwapi_winrt_storage_l1_1_1.dll_Ordinal_24]
mov ecx, dword [ebp - 0x1074]
lea eax, [ebp - 0x1054]
mov edx, edi
lea eax, [eax + ecx*2]
mov ecx, esi
push eax
call fcn.00b80376
jmp 0xcdd1e7
mov edx, dword [ebp - 0x1078]
lea eax, [ebp - 0x1054]
mov ecx, dword [ebp - 0x107c]
push eax
call fcn.00b7db60
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00bc0ea0
mov esp, ebp
pop ebp
ret 0xc
Function at 0xce2283
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
push esi
mov esi, edx
test ecx, ecx
jne 0xce22b1
push 0x57
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0xce231c
test esi, esi
je 0xce22d5
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push esi
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0xce22d2
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0xce22d8
push eax
jmp 0xce22a7
mov dword [ebp - 4], ecx
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xb2d654
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0xce2301
cmp dword [ebp - 0xc], 4
je 0xce2304
push 0xd
pop edi
mov dword [ebp - 8], ebx
test esi, esi
je 0xce2311
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
push edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0xce2683
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xd08954]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push 1
push esi
push esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0xce26b9
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
jmp 0xce2750
push edi
push 0x14
push 0xb4a23c
push ebx
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0xce26d8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
jmp 0xce2748
push esi
push esi
push edi
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_StartServiceW]
test eax, eax
jne 0xce26f5
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
cmp esi, 0x420
jne 0xce2741
mov esi, 0x5b4
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
test eax, eax
je 0xce2739
cmp dword [ebp - 0x1c], 4
je 0xce2735
cmp dword [ebp - 0x1c], 1
je 0xce2730
push 0x1f4
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, 0x258
jbe 0xce26fa
jmp 0xce2741
mov esi, dword [ebp - 0x14]
jmp 0xce2741
xor esi, esi
jmp 0xce2741
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00bc0ea0
mov esp, ebp
pop ebp
ret
Function at 0xce2762
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0xd08954]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x68
mov dword [ebp - 0x7c], eax
mov ebx, ecx
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00bc259b
add esp, 0xc
mov dword [ebp - 0x74], esi
mov edx, edi
mov dword [ebp - 0x78], esi
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x70], 0x67452301
mov dword [ebp - 0x6c], 0xefcdab89
push dword [ebp + 0xc]
mov dword [ebp - 0x68], 0x98badcfe
mov dword [ebp - 0x64], 0x10325476
call fcn.00ce29d9
lea ecx, [ebp - 0x78]
call fcn.00ce2926
mov esi, dword [ebx]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
mov esi, dword [esi]
mov ecx, esi
push edi
call dword [0xd0cffc]
mov ecx, ebx
call esi
test eax, eax
js 0xce2801
lea eax, [ebp - 0x80]
push eax
push 0x20
push dword [ebp - 0x7c]
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.00ce2814
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00bc0ea0
mov esp, ebp
pop ebp
ret 0x10

Function at 0xce2814
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
push ebx
push 3
pop ebx
lea eax, [ecx + 2]
div ebx
cmp dword [ebp + 0x14], 0
mov ebx, dword [ebp + 0x10]
lea edx, [eax*4 + 1]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
jne 0xce2845
test ebx, ebx
je 0xce291d
cmp dword [ebp + 0x14], edx
jae 0xce2854
mov eax, 0x8007007a
jmp 0xce291f
push esi
push edi
xor esi, esi
xor edi, edi
test ecx, ecx
je 0xce28f3
mov eax, dword [ebp + 8]
mov dh, byte [esi + eax]
inc esi
cmp esi, ecx
jae 0xce2873
mov dl, byte [esi + eax]
inc esi
jmp 0xce2875
xor dl, dl
cmp esi, ecx
jae 0xce2882
mov al, byte [esi + eax]
inc esi
mov byte [ebp - 1], al
jmp 0xce2886
mov byte [ebp - 1], 0
movzx ecx, dh
mov eax, ecx
movzx edx, dl
shr eax, 2
and ecx, 3
shl ecx, 4
mov ax, word [eax*2 + 0xb4a2a0]
mov word [ebx + edi*2], ax
mov eax, edx
shr eax, 4
and edx, 0xf
or eax, ecx
shl edx, 2
movzx ecx, byte [ebp - 1]
mov ax, word [eax*2 + 0xb4a2a0]
mov word [ebx + edi*2 + 2], ax
mov eax, ecx
shr eax, 6
and ecx, 0x3f
or eax, edx
mov cx, word [ecx*2 + 0xb4a2a0]
mov ax, word [eax*2 + 0xb4a2a0]
mov word [ebx + edi*2 + 4], ax
mov word [ebx + edi*2 + 6], cx
add edi, 4
mov ecx, dword [ebp + 0xc]
cmp esi, ecx
jb 0xce2862
push 3
mov eax, ecx
xor edx, edx
pop ecx
div ecx
push 0x3d
pop eax
sub edx, 1
je 0xce290b
sub edx, 1
je 0xce2910
jmp 0xce2915
mov word [ebx + edi*2 - 4], ax
mov word [ebx + edi*2 - 2], ax
xor eax, eax
mov word [ebx + edi*2], ax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0xce8248
Capabilities:
Set registry value

Disassembly:
push 0x2bc
mov eax, 0xbd12e6
call fcn.00bc132b
mov ebx, dword [ebp + 8]
xor edi, edi
mov esi, edi
mov dword [ebp - 0x2c4], 0x3f
mov dword [ebp - 0x2c8], esi
xor ecx, ecx
mov dword [ebp - 4], edi
mov word [ebp - 0x2b8], cx
lea eax, [ebx + 0x14]
mov word [ebp - 0x60], cx
mov word [ebp - 0xb0], cx
lea ecx, [ebp - 0xb0]
push 0x27
push ecx
push eax
mov dword [ebp - 0x2c0], edi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_StringFromGUID2]
cmp eax, 0x27
je 0xce82ad
mov edi, 0x8000ffff
jmp 0xce83da
lea eax, [ebp - 0x2bc]
mov dword [ebp - 0x2bc], edi
push eax
push 0x27
pop edx
lea ecx, [ebp - 0xb0]
call fcn.00bb5829
mov edi, eax
test edi, edi
js 0xce83da
mov eax, dword [ebp - 0x2bc]
add eax, 0xfffffffe
cmp eax, 0x24
ja 0xce8333
lea eax, [ebp - 0xae]
push eax
push 0x27
pop edx
lea ecx, [ebp - 0x60]
call fcn.00b7db60
mov edi, eax
test edi, edi
js 0xce83da
lea eax, [ebp - 0x2bc]
push eax
push 0x27
pop edx
lea ecx, [ebp - 0x60]
call fcn.00bb5829
mov edi, eax
test edi, edi
js 0xce83da
mov ecx, dword [ebp - 0x2bc]
lea eax, [ecx - 2]
cmp eax, 0x24
ja 0xce82a3
xor eax, eax
mov word [ebp + ecx*2 - 0x62], ax
jmp 0xce8338
mov edi, 0x8000ffff
test edi, edi
js 0xce83da
lea eax, [ebp - 0x60]
push eax
push 0xb268b0
push 0xb26910
lea eax, [ebp - 0x2b8]
push 0x104
push eax
call fcn.00b55e8f
mov edi, eax
add esp, 0x14
test edi, edi
js 0xce83da
lea eax, [ebp - 0x2c0]
mov edx, 0x20006
push eax
lea ecx, [ebp - 0x2b8]
call fcn.00bbfb00
mov edi, eax
test edi, edi
js 0xce83da
mov esi, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 0x2c8], esi
mov eax, dword [ebx]
push ecx
push ebx
mov edi, dword [eax + 0x1c]
mov ecx, edi
call dword [0xd0cffc]
call edi
mov edi, eax
test edi, edi
js 0xce83da
push 4
lea eax, [ebp - 0x2c4]
push eax
push 4
push 0
push 0xb268f0
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0xce83da
jg 0xce83d1
mov edi, eax
jmp 0xce83da
movzx edi, ax
or edi, 0x80070000
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0xce83e9
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
call fcn.00bc12da
ret 4

Function at 0xce83f3
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
mov ebx, edx
mov dword [ebp - 8], ecx
jne 0xce840a
xor eax, eax
jmp 0xce8460
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push esi
push eax
push 0xfffffffffffffffe
pop edx
call fcn.00cdd3bb
mov esi, eax
test esi, esi
js 0xce845d
mov ecx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push 2
pop edx
call fcn.00c2389d
mov esi, eax
test esi, esi
js 0xce845d
push dword [ebp - 4]
xor esi, esi
push dword [ebp + 8]
push 1
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0xce845d
jg 0xce8454
mov esi, eax
jmp 0xce845d
movzx esi, ax
or esi, 0x80070000
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0xce8467
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 2
push 0xb4a478
mov edi, ecx
mov dword [ebp - 4], ebx
push ebx
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0xce849b
jle 0xce8504
movzx eax, ax
or eax, 0x80070000
jmp 0xce8504
push esi
push dword [ebp - 4]
push 8
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0xce84bb
mov edi, 0x8007000e
jmp 0xce84ee
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 2
push 0xb4a478
push ebx
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov edi, eax
test edi, edi
je 0xce84e3
jle 0xce84ee
movzx edi, di
or edi, 0x80070000
jmp 0xce84ee
mov eax, dword [ebp + 8]
mov ecx, esi
mov esi, ebx
mov edi, ebx
mov dword [eax], ecx
test esi, esi
je 0xce8501
push esi
push ebx
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov eax, edi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0xce958b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0xd08954]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
mov edi, 0x208
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], edi
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 2
push 0xb4a500
push eax
push edx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0xce95e1
push 2
push 0xb284a8
jmp 0xce95e9
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 0x2e0]
push edi
push eax
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov ecx, dword [ebp - 4]
add esp, 0x10
neg eax
sbb eax, eax
xor ecx, ebp
pop edi
and eax, 0x8007007a
pop esi
call fcn.00bc0ea0
mov esp, ebp
pop ebp
ret 8