joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10168a8
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x1023b46
call fcn.01014f68
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], 0x8007000e
jne 0x10168d5
mov dword [ebp - 0x14], 0x80070057
jmp 0x1016abc
mov eax, 0x1003fb0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], eax
push dword [0x1030b3c]
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
push edi
push 2
mov byte [ebp - 4], 1
call esi
push dword [0x1030b40]
mov dword [ebp - 0x28], eax
push edi
push 0x100000
call esi
cmp dword [ebp - 0x28], edi
mov dword [ebp - 0x30], eax
je 0x101692f
cmp eax, edi
je 0x101692f
push dword [ebp - 0x28]
xor esi, esi
inc esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp eax, esi
jne 0x1016aa5
cmp dword [ebp + 0xc], edi
mov dword [ebp + 0xc], edi
je 0x1016a28
push 0x10002
push dword [0x1030ba8]
lea ecx, [ebp + 0xc]
push 0x80000002
mov byte [ebp - 4], 2
call fcn.01015568
test eax, eax
jne 0x1016984
mov ebx, dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x10016f4
push ebx
call esi
push 0x1004070
push ebx
call esi
push 0x10016d8
push ebx
call esi
push 0x100405c
push ebx
call esi
lea ecx, [ebp + 0xc]
call fcn.010154f5
call fcn.01015b0e
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x24], ebx
je 0x1016a1e
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 3
call esi
push dword [ebp + 8]
mov dword [ebp - 0x1c], eax
call esi
mov ecx, dword [ebp - 0x1c]
add ecx, eax
lea eax, [ecx + ecx + 0x10]
push eax
call fcn.010056e5
mov esi, eax
cmp esi, edi
pop ecx
je 0x1016a15
push dword [ebp + 8]
push ebx
push 0x1004044
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 1
push esi
call dword [sym.imp.loadperf.dll_LoadPerfCounterTextStringsW]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x1016a0a
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1016a0a
cmp esi, edi
je 0x1016a15
push esi
call fcn.010056f5
pop ecx
push dword [ebp - 0x24]
call fcn.010056f5
pop ecx
lea ecx, [ebp + 0xc]
call fcn.010154f5
jmp 0x1016a8e
push dword [ebp + 8]
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 8]
push eax
call fcn.010056e5
mov esi, eax
cmp esi, edi
pop ecx
je 0x1016a8e
push dword [ebp + 8]
push 0x1004038
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
push esi
call dword [sym.imp.loadperf.dll_UnloadPerfCounterTextStringsW]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x1016a83
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1016a83
cmp esi, edi
je 0x1016a8e
push esi
call fcn.010056f5
pop ecx
cmp dword [ebp - 0x18], edi
je 0x1016aac
push 0xbb8
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1016aac
mov dword [ebp - 0x14], 0x80004005
lea ecx, [ebp - 0x34]
call fcn.010159c6
lea ecx, [ebp - 0x2c]
call fcn.010159c6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x101896d
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 0x10189f8
cmp eax, 0xffffffff
je 0x10189f8
cmp dword [ebp + 8], ecx
je 0x10189f8
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 sub.ntdll.dll__alloca_probe
mov eax, esp
push edi
push dword [ebp + 8]
push eax
call fcn.010186d2
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 0x10189ff
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10189ea
call esi
mov dword [ebp - 4], eax
jmp 0x10189ff
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x10189e5
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 0x1018a11
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 0x1018a72
cmp edi, 0xffffffff
je 0x1018a72
cmp dword [ebp + 8], esi
je 0x1018a72
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 0x1018a77
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1018a60
call esi
mov esi, eax
jmp 0x1018a77
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1018a77
mov esi, 0x80070057
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x1018a84
Capabilities:
Create directory

Disassembly:
mov eax, 0x1023cc0
call fcn.01014f68
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 0x1018bab
call fcn.01015b0e
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x1018bb0
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 fcn.010056e5
mov edi, eax
cmp edi, ebx
pop ecx
mov dword [ebp - 0x18], edi
je 0x1018ba0
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 0x1018b53
call edi
cmp eax, 0xb7
je 0x1018b4c
call edi
test eax, eax
jg 0x1018b3a
call edi
mov esi, eax
jmp 0x1018b4f
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1018b4f
xor esi, esi
inc esi
cmp esi, ebx
jl 0x1018b97
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 0x1018b95
call edi
test eax, eax
jg 0x1018b83
call edi
mov esi, eax
jmp 0x1018b97
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1018b97
xor esi, esi
push dword [ebp - 0x18]
call fcn.010056f5
pop ecx
push dword [ebp - 0x14]
call fcn.010056f5
pop ecx
jmp 0x1018bb0
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 0x1018bc8
Capabilities:
Delete file

Disassembly:
mov eax, 0x1023ccf
call fcn.01014f68
push ecx
push ecx
push ebx
push esi
push edi
add ecx, 0x48
mov dword [ebp - 0x10], esp
mov edi, 0x8007000e
call fcn.0101894f
cmp dword [ebp + 8], 0
je 0x1018c91
call fcn.01015b0e
test eax, eax
mov dword [ebp - 0x14], eax
je 0x1018c96
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 fcn.010056e5
mov ebx, eax
test ebx, ebx
pop ecx
je 0x1018c86
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 0x1018c7d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1018c6b
call esi
mov edi, eax
jmp 0x1018c7f
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x1018c7f
xor edi, edi
push ebx
call fcn.010056f5
pop ecx
push dword [ebp - 0x14]
call fcn.010056f5
pop ecx
jmp 0x1018c96
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 0x1018cae
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x1023cde
call fcn.01014f68
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 0x1018cde
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4c], ebx
cmp dword [ebp + 8], ebx
je 0x1018e19
cmp dword [ebp + 0xc], ebx
je 0x1018e19
call fcn.01015b0e
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x1018e1e
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 fcn.010056e5
mov ebx, eax
test ebx, ebx
pop ecx
mov dword [ebp - 0x14], ebx
je 0x1018d58
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 0x1018d58
or dword [ebp - 4], 0xffffffff
test edi, edi
jl 0x1018dff
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 fcn.010056e5
mov ebx, eax
test ebx, ebx
pop ecx
je 0x1018dc7
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 0x1018df2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1018de0
call esi
mov edi, eax
jmp 0x1018df4
mov edi, 0x8007000e
jmp 0x1018df4
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x1018df4
xor edi, edi
test ebx, ebx
je 0x1018dff
push ebx
call fcn.010056f5
pop ecx
cmp dword [ebp - 0x14], 0
je 0x1018e0e
push dword [ebp - 0x14]
call fcn.010056f5
pop ecx
push dword [ebp - 0x18]
call fcn.010056f5
pop ecx
jmp 0x1018e1e
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 0x10197d1
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x1023d23
call fcn.01014f68
sub esp, 0x20c
mov eax, dword [0x10309f4]
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 fcn.010056e5
mov edi, eax
cmp edi, ebx
pop ecx
je 0x1019874
lea eax, [ebp - 0x214]
push eax
push esi
push 0x1004808
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x1019874
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, edi
call fcn.01014c6a
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x101d538
Capabilities:
Set registry value

Disassembly:
mov eax, 0x102403a
call fcn.01014f68
sub esp, 0x248
mov eax, dword [0x10309f4]
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.WMIADAP.exe_unsigned_long_int_CRegistry::s_dwPlatform], 2
jne 0x101d58b
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 0x101d73e
xor ebx, ebx
mov dword [ebp - 0x234], ebx
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, ebx
je 0x101d5c6
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 0x101d6c7
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 0x101d6e5
cmp dword [ebp + 0x14], 2
jbe 0x101d663
cmp dword [ebp + 0x14], 7
jne 0x101d6e5
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 0x101d654
push eax
call fcn.010056e5
pop ecx
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x224], eax
cmp eax, ebx
je 0x101d637
push ebx
push ebx
push dword [ebp - 0x240]
push eax
push dword [ebp + 0x1c]
push edi
push ebx
push ebx
call esi
jmp 0x101d6ee
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x238], ebx
push 0x1029248
lea eax, [ebp - 0x238]
push eax
jmp 0x101d768
mov dword [ebp - 0x22c], 0x459
jmp 0x101d73e
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 0x101d6ba
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 0x101d6af
sub eax, edx
jmp 0x101d6ee
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.01014c6a
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 0x101d73e
cmp esi, ebx
je 0x101d73e
mov dword [ebp - 0x248], esi
push esi
call fcn.010056f5
pop ecx
mov dword [ebp - 0x224], ebx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
jmp 0x101d6cc
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x101d773
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1024049
call fcn.01014f68
sub esp, 0x140
mov eax, dword [0x10309f4]
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.WMIADAP.exe_unsigned_long_int_CRegistry::s_dwPlatform], 2
jne 0x101d7d5
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 0x101d959
xor ebx, ebx
mov dword [ebp - 0x12c], ebx
cmp eax, ebx
je 0x101d80a
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 0x101d850
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 0x101d86e
push dword [esi]
call fcn.010056e5
pop ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x11c], eax
cmp eax, ebx
jne 0x101d86e
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x134], ebx
push 0x1029248
lea eax, [ebp - 0x134]
push eax
jmp 0x101d978
mov eax, 0x459
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.01014c6a
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 0x101d940
mov edi, dword [edi]
cmp edi, ebx
jbe 0x101d91a
cmp edi, 2
jbe 0x101d8e6
cmp edi, 7
jne 0x101d91a
cmp dword [ebp - 0x120], ebx
je 0x101d8ee
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 0x101d940
cmp dword [ebp - 0x120], ebx
jne 0x101d8fa
mov eax, dword [ebp - 0x124]
add eax, eax
mov dword [esi], eax
jmp 0x101d940
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 0x101d8f4
mov ecx, dword [ebp - 0x124]
mov dword [esi], ecx
mov edi, dword [ebp - 0x120]
cmp edi, ebx
je 0x101d940
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 fcn.010056f5
pop ecx
mov dword [ebp - 0x11c], ebx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x128]
jmp 0x101d855
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x101d983
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [sym.WMIADAP.exe_unsigned_long_int_CRegistry::s_dwPlatform], 2
mov eax, dword [0x10309f4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
jne 0x101d9b0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x101d9e4
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 0x101d9df
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x101d9e4
mov eax, 0x459
mov ecx, dword [ebp - 4]
pop esi
call fcn.01014c6a
leave
ret 8

Function at 0x101d9f6
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [sym.WMIADAP.exe_unsigned_long_int_CRegistry::s_dwPlatform], 2
mov eax, dword [0x10309f4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
jne 0x101da23
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x101da57
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 0x101da52
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x101da57
mov eax, 0x459
mov ecx, dword [ebp - 4]
pop esi
call fcn.01014c6a
leave
ret 8
Function at 0x101daef
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
cmp dword [sym.WMIADAP.exe_unsigned_long_int_CRegistry::s_dwPlatform], 2
mov edx, dword [ebp + 0x1c]
mov eax, dword [0x10309f4]
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 0x101db94
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 0x101dbfa
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 0x101dbf5
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 0x101dbfa
mov eax, 0x459
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01014c6a
leave
ret 0x30

Function at 0x101e3ad
Capabilities:
Delete registry value

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

Function at 0x101e3bd
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30c
cmp dword [sym.WMIADAP.exe_unsigned_long_int_CRegistry::s_dwPlatform], 2
mov eax, dword [0x10309f4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
jne 0x101e3f0
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x101e441
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 0x101e43e
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 0x101e44e
lea eax, [ebp - 0x30c]
push eax
push dword [ebp + 0x14]
push edi
call fcn.0100a0a2
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.01014c6a
leave
ret 0x10
mov eax, 0x459
jmp 0x101e440