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

Disassembly:
mov eax, 0x1016e98
call fcn.0100af48
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ebx
push 0x20019
push dword [0x101f844]
lea ecx, [ebp - 0x20]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.0100b21c
test eax, eax
jne 0x100b5b8
lea eax, [ebp - 0x24]
push eax
push dword [0x101f848]
lea ecx, [ebp - 0x20]
push ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
call fcn.0100b28b
test eax, eax
jne 0x100b5b8
mov eax, dword [ebp - 0x24]
shl eax, 2
push eax
mov byte [ebp - 4], 1
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
cmp esi, ebx
pop ecx
mov dword [ebp - 0x14], esi
je 0x100b5b8
lea eax, [ebp - 0x24]
push eax
push dword [0x101f848]
lea ecx, [ebp - 0x20]
push esi
call fcn.0100b28b
test eax, eax
jne 0x100b5af
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0x100b5af
shl eax, 2
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
mov dword [ebp - 0x1c], ebx
je 0x100b5af
push edi
push ebx
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x100b5a4
push dword [0x101f84c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
push ebx
mov edi, eax
call esi
add edi, eax
lea eax, [edi + edi + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 0x18], esi
je 0x100b5a4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [0x101f84c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
and dword [ebp - 0x1c], 0
pop ecx
push dword [ebp - 0x14]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x20]
call fcn.0100b1a9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x100e242
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x4c]
xor ecx, ecx
cmp eax, ecx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x100e2cd
cmp eax, 0xffffffff
je 0x100e2cd
cmp dword [ebp + 8], ecx
je 0x100e2cd
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 8], ecx
call esi
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0100af80
mov eax, esp
push edi
push dword [ebp + 8]
push eax
call fcn.0100dfc5
mov ebx, dword [ebx + 0x4c]
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call esi
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100e2d4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100e2bf
call esi
mov dword [ebp - 4], eax
jmp 0x100e2d4
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x100e2ba
mov dword [ebp - 4], 0x80070057
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100e2e6
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ecx + 0x4c]
xor esi, esi
cmp edi, esi
je 0x100e347
cmp edi, 0xffffffff
je 0x100e347
cmp dword [ebp + 8], esi
je 0x100e347
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100e34c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100e335
call esi
mov esi, eax
jmp 0x100e34c
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x100e34c
mov esi, 0x80070057
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x100e359
Capabilities:
Create directory

Disassembly:
mov eax, 0x10170bb
call fcn.0100af48
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov esi, 0x8007000e
je 0x100e480
call fcn.0100b4a0
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x100e485
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 4], ebx
call edi
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
call edi
mov ecx, dword [ebp - 0x18]
add ecx, eax
lea eax, [ecx + ecx + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
cmp edi, ebx
pop ecx
mov dword [ebp - 0x18], edi
je 0x100e475
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x100e428
call edi
cmp eax, 0xb7
je 0x100e421
call edi
test eax, eax
jg 0x100e40f
call edi
mov esi, eax
jmp 0x100e424
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x100e424
xor esi, esi
inc esi
cmp esi, ebx
jl 0x100e46c
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x4c], eax
jne 0x100e46a
call edi
test eax, eax
jg 0x100e458
call edi
mov esi, eax
jmp 0x100e46c
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x100e46c
xor esi, esi
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x14]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x100e485
mov esi, 0x80070057
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x100e49d
Capabilities:
Delete file

Disassembly:
mov eax, 0x10170ca
call fcn.0100af48
push ecx
push ecx
push ebx
push esi
push edi
add ecx, 0x48
mov dword [ebp - 0x10], esp
mov edi, 0x8007000e
call fcn.01006c2c
cmp dword [ebp + 8], 0
je 0x100e566
call fcn.0100b4a0
test eax, eax
mov dword [ebp - 0x14], eax
je 0x100e56b
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
and dword [ebp - 4], 0
push eax
call esi
push dword [ebp + 8]
mov ebx, eax
call esi
add ebx, eax
lea eax, [ebx + ebx + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
je 0x100e55b
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100e552
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100e540
call esi
mov edi, eax
jmp 0x100e554
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x100e554
xor edi, edi
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x14]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x100e56b
mov edi, 0x80070057
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x100e583
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x10170d9
call fcn.0100af48
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c]
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], esp
mov edi, 0x8007000e
mov dword [ebp - 0x14], ebx
je 0x100e5b3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4c], ebx
cmp dword [ebp + 8], ebx
je 0x100e6ee
cmp dword [ebp + 0xc], ebx
je 0x100e6ee
call fcn.0100b4a0
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x100e6f3
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 4], ebx
call esi
push dword [ebp + 8]
mov ebx, eax
call esi
add ebx, eax
lea eax, [ebx + ebx + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
mov dword [ebp - 0x14], ebx
je 0x100e62d
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor edi, edi
inc edi
jmp 0x100e62d
or dword [ebp - 4], 0xffffffff
test edi, edi
jl 0x100e6d4
push dword [ebp - 0x18]
mov dword [ebp - 4], 2
call esi
push dword [ebp + 0xc]
mov edi, eax
call esi
add edi, eax
lea eax, [edi + edi + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
je 0x100e69c
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x100e6c7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100e6b5
call esi
mov edi, eax
jmp 0x100e6c9
mov edi, 0x8007000e
jmp 0x100e6c9
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x100e6c9
xor edi, edi
test ebx, ebx
je 0x100e6d4
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x14], 0
je 0x100e6e3
push dword [ebp - 0x14]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x100e6f3
mov edi, 0x80070057
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x100f023
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x101711e
call fcn.0100af48
sub esp, 0x20c
mov eax, dword [0x101f7d8]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], esp
push 0x7f
pop ecx
mov dword [ebp - 0x14], eax
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x214], bx
lea edi, [ebp - 0x212]
rep stosd dword es:[edi], eax
push 0x100
stosw word es:[edi], ax
lea eax, [ebp - 0x214]
push eax
push 0x1001
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x214]
push eax
and esi, 0x3ff
mov dword [ebp - 0x218], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 0xe]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
cmp edi, ebx
pop ecx
je 0x100f0c6
lea eax, [ebp - 0x214]
push eax
push esi
push 0x10022f0
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x100f0c6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, edi
call fcn.0100abde
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1012ecc
Capabilities:
Set registry value

Disassembly:
mov eax, 0x101741b
call fcn.0100af48
sub esp, 0x248
mov eax, dword [0x101f7d8]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x23c], ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x18]
cmp dword [sym.WmiApSrv.exe_unsigned_long_int_CRegistry::s_dwPlatform], 2
jne 0x1012f1f
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x22c], eax
jmp 0x10130d2
xor ebx, ebx
mov dword [ebp - 0x234], ebx
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, ebx
je 0x1012f5a
push ebx
push ebx
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call esi
cmp eax, ebx
je 0x101305b
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x224], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x228], ebx
mov byte [ebp - 0x21d], bl
cmp dword [ebp + 0x14], ebx
jbe 0x1013079
cmp dword [ebp + 0x14], 2
jbe 0x1012ff7
cmp dword [ebp + 0x14], 7
jne 0x1013079
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x1c]
push edi
push ebx
push ebx
call esi
mov dword [ebp - 0x240], eax
cmp eax, ebx
jle 0x1012fe8
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x224], eax
cmp eax, ebx
je 0x1012fcb
push ebx
push ebx
push dword [ebp - 0x240]
push eax
push dword [ebp + 0x1c]
push edi
push ebx
push ebx
call esi
jmp 0x1013082
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x238], ebx
push 0x101a70c
lea eax, [ebp - 0x238]
push eax
jmp 0x10130fc
mov dword [ebp - 0x22c], 0x459
jmp 0x10130d2
mov byte [ebp - 0x21e], bl
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x230], ebx
mov byte [ebp - 0x21e], bl
push ebx
push ebx
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0xffffffffffffffff
push edi
push ebx
push ebx
call esi
mov dword [ebp - 0x244], eax
cmp eax, ebx
je 0x101304e
lea eax, [ebp - 0x118]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x224], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1013043
sub eax, edx
jmp 0x1013082
mov byte [ebp - 0x21e], 1
mov dword [ebp - 0x230], ebx
mov eax, 0x459
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0100abde
pop edi
pop esi
pop ebx
leave
ret 0x18
mov dword [ebp - 0x224], edi
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x228], eax
mov byte [ebp - 0x21d], 1
push eax
mov esi, dword [ebp - 0x224]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x234]
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x22c], eax
cmp dword [ebp + 0x14], 7
jne 0x10130d2
cmp esi, ebx
je 0x10130d2
mov dword [ebp - 0x248], esi
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [ebp - 0x224], ebx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
jmp 0x1013060
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1013107
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x101742a
call fcn.0100af48
sub esp, 0x140
mov eax, dword [0x101f7d8]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x138], ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x130], edx
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x120], ebx
mov esi, dword [ebp + 0x1c]
cmp dword [sym.WmiApSrv.exe_unsigned_long_int_CRegistry::s_dwPlatform], 2
jne 0x1013169
push esi
push ebx
push edi
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x128], eax
jmp 0x10132ed
xor ebx, ebx
mov dword [ebp - 0x12c], ebx
cmp eax, ebx
je 0x101319e
push ebx
push ebx
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, ebx
je 0x10131e4
lea eax, [ebp - 0x118]
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x120], ebx
je 0x1013202
push dword [esi]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x11c], eax
cmp eax, ebx
jne 0x1013202
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x134], ebx
push 0x101a70c
lea eax, [ebp - 0x134]
push eax
jmp 0x101330c
mov eax, 0x459
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0100abde
pop edi
pop esi
pop ebx
leave
ret 0x18
mov eax, dword [esi]
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x11c]
push edi
push dword [ebp - 0x130]
push dword [ebp - 0x12c]
push dword [ebp - 0x138]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x128], eax
cmp eax, ebx
jne 0x10132d4
mov edi, dword [edi]
cmp edi, ebx
jbe 0x10132ae
cmp edi, 2
jbe 0x101327a
cmp edi, 7
jne 0x10132ae
cmp dword [ebp - 0x120], ebx
je 0x1013282
push dword [esi]
push dword [ebp - 0x120]
push dword [ebp - 0x124]
push dword [ebp - 0x11c]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x13c], eax
jmp 0x10132d4
cmp dword [ebp - 0x120], ebx
jne 0x101328e
mov eax, dword [ebp - 0x124]
add eax, eax
mov dword [esi], eax
jmp 0x10132d4
push dword [esi]
push dword [ebp - 0x120]
push 0xffffffffffffffff
push dword [ebp - 0x11c]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x140], eax
jmp 0x1013288
mov ecx, dword [ebp - 0x124]
mov dword [esi], ecx
mov edi, dword [ebp - 0x120]
cmp edi, ebx
je 0x10132d4
mov esi, dword [ebp - 0x11c]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x144], eax
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [ebp - 0x11c], ebx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x128]
jmp 0x10131e9
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1013317
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [sym.WmiApSrv.exe_unsigned_long_int_CRegistry::s_dwPlatform], 2
mov eax, dword [0x101f7d8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
jne 0x1013344
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x1013378
xor ecx, ecx
push ecx
push ecx
push 0x104
lea edx, [ebp - 0x108]
push edx
push 0xffffffffffffffff
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1013373
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x1013378
mov eax, 0x459
mov ecx, dword [ebp - 4]
pop esi
call fcn.0100abde
leave
ret 8

Function at 0x101338a
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [sym.WmiApSrv.exe_unsigned_long_int_CRegistry::s_dwPlatform], 2
mov eax, dword [0x101f7d8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
jne 0x10133b7
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x10133eb
xor ecx, ecx
push ecx
push ecx
push 0x104
lea edx, [ebp - 0x108]
push edx
push 0xffffffffffffffff
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x10133e6
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x10133eb
mov eax, 0x459
mov ecx, dword [ebp - 4]
pop esi
call fcn.0100abde
leave
ret 8
Function at 0x1013483
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
cmp dword [sym.WmiApSrv.exe_unsigned_long_int_CRegistry::s_dwPlatform], 2
mov edx, dword [ebp + 0x1c]
mov eax, dword [0x101f7d8]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x110], edx
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x10c], edx
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x118], edx
mov edx, dword [ebp + 0x28]
mov dword [ebp - 0x114], edx
mov edx, dword [ebp + 0x2c]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x11c], edx
mov edx, dword [ebp + 0x30]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x120], edx
mov edx, dword [ebp + 0x34]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], edx
jne 0x1013528
push edx
push dword [ebp - 0x120]
push dword [ebp - 0x11c]
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
push ecx
push ebx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
jmp 0x101358e
xor ecx, ecx
push ecx
push ecx
push 0x104
lea edx, [ebp - 0x108]
push edx
push 0xffffffffffffffff
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1013589
push dword [ebp - 0x124]
lea eax, [ebp - 0x108]
push dword [ebp - 0x120]
push dword [ebp - 0x11c]
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
push dword [ebp - 0x128]
push ebx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
jmp 0x101358e
mov eax, 0x459
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100abde
leave
ret 0x30

Function at 0x1013d41
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp sym.WmiApSrv.exe_private:_long_int___thiscall_CRegistry::myRegDeleteValue_struct_HKEY_____unsigned_short_int_const__

Function at 0x1013d51
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30c
cmp dword [sym.WmiApSrv.exe_unsigned_long_int_CRegistry::s_dwPlatform], 2
mov eax, dword [0x101f7d8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
jne 0x1013d84
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x1013dd5
push esi
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x1013dd2
push 0x104
lea eax, [ebp - 0x30c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x104]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1013de2
lea eax, [ebp - 0x30c]
push eax
push dword [ebp + 0x14]
push edi
call fcn.01011ecb
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.0100abde
leave
ret 0x10
mov eax, 0x459
jmp 0x1013dd4
Function at 0x1013dee
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [sym.WmiApSrv.exe_unsigned_long_int_CRegistry::s_dwPlatform], 2
mov ecx, dword [ebp + 0x10]
mov eax, dword [0x101f7d8]
mov edx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x20]
push ebx
push edi
push esi
mov dword [ebp - 0x210], ecx
mov ecx, dword [ebp + 0x14]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
jne 0x1013e42
push dword [ebp - 0x210]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x1013ed3
xchg ecx, eax
add byte [eax], al
invalid
lea ecx, [ebp - 0x20c]
push ecx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
mov dword [ebp - 0x214], eax
jne 0x1013ecd
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.msvcrt.dll_mbstowcs]
mov esi, dword [esi]
add esp, 0xc
cmp esi, 1
je 0x1013e8e
cmp esi, 7
jne 0x1013ecd
push edi
push 0x208
lea eax, [ebp - 0x20c]
push eax
call fcn.010128a7
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.msvcrt.dll_mbstowcs]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebx], eax
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100abde
leave
ret 0x20

Function at 0x10142cb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x52c
mov edx, dword [ebp + 0xc]
mov eax, dword [0x101f7d8]
push ebx
mov dword [ebp - 0x528], edx
lea edx, [ebp - 0x524]
push edx
lea edx, [ebp - 0x318]
push edx
lea edx, [ebp - 0x52c]
push edx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
push ebx
push ecx
push dword [eax + 4]
mov dword [ebp - 0x52c], 3
mov dword [ebp - 0x524], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x10143b1
push esi
push 0x1002644
mov esi, 0x106
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01011d63
cmp dword [ebp - 0x524], ebx
jbe 0x101438a
movzx eax, byte [ebp + ebx - 0x318]
push eax
push 0x1002fb4
lea eax, [ebp - 0x520]
push 0x104
push eax
call fcn.01011eed
add esp, 0x10
lea eax, [ebp - 0x520]
push eax
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01011f1b
inc ebx
cmp ebx, dword [ebp - 0x524]
jb 0x101434b
push 0x1002644
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01011f1b
mov ecx, dword [ebp - 0x528]
lea eax, [ebp - 0x210]
push eax
call fcn.010159d6
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0100abde
leave
ret 8