joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1036a0a
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call sym.spoolsv.exe_PrvWaitForSpoolerInitialization
push 0x1049318
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x1036b82
cmp word [esi], bx
je 0x1036b82
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x3001f
push ebx
push ebx
push ebx
push 0x10129b0
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
cmp eax, ebx
je 0x1036a6f
push eax
jmp 0x1036b84
push esi
push dword [ebp - 4]
call fcn.010367e7
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x1036b8a
mov edi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
mov esi, 0x10137b8
push esi
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call edi
cmp eax, ebx
jne 0x1036a69
cmp dword [ebp - 8], ebx
je 0x1036b8a
push dword [ebp - 8]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x1036b8a
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push ebx
push ebx
push esi
push dword [ebp - 4]
call edi
cmp eax, ebx
jne 0x1036a69
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.01033737
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x1036b8a
push dword [ebp - 0x18]
push eax
push 7
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
cmp eax, ebx
jne 0x1036a69
push dword [ebp + 0x10]
push 0x1023bd0
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
mov edi, 0x1036be0
test eax, eax
jne 0x1036b3b
lea eax, [ebp - 0x20]
push eax
push 0x1036c1c
push edi
push dword [ebp - 4]
call fcn.010334c7
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x1036b3d
mov esi, ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.01033193
cmp esi, ebx
je 0x1036b5d
push dword [ebp - 0x20]
push 0x1036c1c
push edi
push dword [ebp - 4]
call fcn.01033567
mov eax, dword [0x10491bc]
jmp 0x1036b6f
mov ecx, dword [eax]
mov edx, dword [ebp - 0x24]
cmp ecx, edx
je 0x1036b75
mov eax, ecx
cmp dword [eax], ebx
je 0x1036b79
jmp 0x1036b64
mov ecx, dword [edx]
mov dword [eax], ecx
mov dword [ebp - 0x14], 1
jmp 0x1036b9c
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1036b9c
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0xc], ebx
je 0x1036ba9
push dword [ebp - 0xc]
call sym.spoolsv.exe_PrvDllFreeSplMem
cmp dword [ebp - 0x10], ebx
je 0x1036bb6
push dword [ebp - 0x10]
call sym.spoolsv.exe_PrvDllFreeSplMem
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x1036bc7
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
push 0x1049318
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x14]
leave
ret 0xc
Function at 0x103909c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
cmp esi, edi
je 0x103924d
cmp dword [esi], 0x6060
jne 0x103924d
mov eax, dword [ebp + 0x10]
dec eax
je 0x10390df
push 0x7c
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x103915f
push 0xc
pop ebx
cmp dword [ebp + 0x18], ebx
jae 0x10390f6
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0x1c]
mov dword [eax], ebx
jmp 0x103915f
mov ebx, dword [ebp + 0x14]
cmp ebx, edi
jne 0x1039101
push 0x57
jmp 0x10390d4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x103915f
mov edx, dword [esi + 4]
mov eax, dword [0x10491bc]
cmp edx, eax
je 0x103917a
mov ecx, dword [esi + 0x1c]
cmp ecx, 0xffffffff
je 0x1039176
push 2
pop edi
push edi
xor esi, esi
inc esi
push esi
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x103914f
mov eax, dword [ebp - 4]
mov dword [ebx], esi
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
xor edi, edi
cmp dword [ebp - 8], edi
je 0x103915f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], edi
pop edi
pop esi
pop ebx
je 0x103916f
push dword [ebp - 0x10]
call sym.spoolsv.exe_PrvDllFreeSplMem
mov eax, dword [ebp - 0xc]
leave
ret 0x18
cmp edx, eax
jne 0x10391a5
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
push dword [ebp - 8]
push ecx
push edi
push dword [esi + 8]
call dword [eax + 0x150]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x1039151
mov eax, dword [ebp - 4]
xor esi, esi
inc esi
mov dword [ebx], esi
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
jmp 0x1039151
push edi
push edi
push edi
lea ecx, [ebp - 0x10]
push ecx
push edi
call dword [eax + 0x150]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x1039151
call sym.spoolsv.exe_PrvRevertToPrinterSelf
push 0x208
mov dword [ebp + 8], eax
call sym.spoolsv.exe_PrvDllAllocSplMem
mov dword [esi + 0x20], eax
cmp eax, edi
je 0x1039234
push eax
push edi
push 0x103925c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1039234
push edi
push edi
push 2
pop edi
push edi
push 0
push 3
push 0xc0000000
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x1c], eax
cmp eax, 0xffffffff
je 0x1039232
push edi
xor esi, esi
inc esi
push esi
push 0
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1039232
mov eax, dword [ebp - 4]
mov dword [ebx + 8], edi
mov dword [ebx], esi
mov dword [ebx + 4], eax
xor edi, edi
jmp 0x1039237
xor edi, edi
mov dword [ebp - 0xc], edi
cmp dword [ebp + 8], edi
je 0x1039151
push dword [ebp + 8]
call sym.spoolsv.exe_PrvImpersonatePrinterClient
jmp 0x1039151
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1039151
Function at 0x1039ede
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 4], 0x7b
call sym.spoolsv.exe_PrvWaitForSpoolerInitialization
cmp dword [ebp + 8], 0
je 0x1039f06
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1039fdd
push edi
push 0xc
call sym.spoolsv.exe_PrvDllAllocSplMem
mov edi, eax
test edi, edi
jne 0x1039f3f
mov eax, dword [0x1049104]
cmp eax, 0x1049104
je 0x1039f38
test byte [eax + 0x1c], 1
je 0x1039f38
push 0x1023b30
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01023f56
xor eax, eax
jmp 0x1039fdc
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [0x10491bc]
and dword [ebx], 0
jmp 0x1039f84
push dword [ebp + 0x18]
lea eax, [ebp - 8]
push dword [ebp + 0x14]
push eax
push dword [ebp + 0xc]
push 0
call dword [esi + 0x108]
mov dword [ebp + 8], eax
cmp eax, 1
je 0x1039fe1
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01019916
cmp dword [ebp + 8], 2
je 0x1039f88
mov esi, dword [esi]
test esi, esi
jne 0x1039f4f
push edi
call sym.spoolsv.exe_PrvDllFreeSplMem
lea eax, [ebp - 4]
push eax
push 0x709
call fcn.01019916
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x1049104]
cmp eax, 0x1049104
je 0x1039fd8
test byte [eax + 0x1c], 1
je 0x1039fd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0xc]
mov eax, dword [0x1049104]
push 0x1023b30
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0103a009
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret 0x14
mov dword [edi], 0x6262
mov dword [edi + 4], esi
mov eax, dword [ebp - 8]
mov dword [edi + 8], eax
mov dword [ebx], edi
mov eax, dword [0x10491d0]
test eax, eax
je 0x1039fff
mov byte [eax + 0x40], 0
xor eax, eax
inc eax
jmp 0x1039fda

Function at 0x103bc11
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1049108]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x418], ecx
mov eax, 0x80070057
test ecx, ecx
je 0x103bccf
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push 0x10111c0
push dword [edi + 4]
mov dword [ebp - 0x41c], 0x40e
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x103bcc3
lea eax, [ebp - 0x414]
push 0x2c
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x103bca6
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
jmp 0x103bccf
jle 0x103bccf
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0100327d
leave
ret 8
Function at 0x103c342
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x1049108]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov ecx, dword [ebp + 8]
lea edi, [ebp - 0x434]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ebx, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumValueW]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x41c]
push eax
xor edi, edi
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
push edi
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x418], edi
push ecx
jmp 0x103c480
cmp word [ebp - 0x20c], di
je 0x103c450
lea eax, [ebp - 0x20c]
push 0x2c
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
je 0x103c450
xor eax, eax
mov word [esi], ax
inc esi
inc esi
cmp word [esi], 0x20
je 0x103c3cf
push 2
push 0x103c4bc
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x103c450
add esi, 4
push esi
mov word [esi + 4], ax
call fcn.0103c2db
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0x414]
mov di, word [edx]
cmp di, word [esi]
jne 0x103c428
test di, di
je 0x103c424
mov di, word [edx + 2]
cmp di, word [esi + 2]
jne 0x103c428
add edx, 4
add esi, 4
test di, di
jne 0x103c402
xor edx, edx
jmp 0x103c42d
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
je 0x103c4aa
cmp eax, 0x64
jae 0x103c44e
mov ecx, eax
shr ecx, 5
lea edx, [ebp + ecx*4 - 0x434]
mov ecx, eax
xor eax, eax
and ecx, 0x1f
inc eax
shl eax, cl
or dword [edx], eax
xor edi, edi
inc dword [ebp - 0x418]
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
push dword [ebp - 0x424]
mov dword [ebp - 0x420], 0x104
mov dword [ebp - 0x41c], 0x208
call ebx
test eax, eax
je 0x103c3a2
lea eax, [ebp - 0x434]
push eax
call fcn.0103c310
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100327d
leave
ret 8
Function at 0x103c975
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 3
cmp esi, edi
je 0x103cabf
cmp dword [ebp + 0xc], edi
je 0x103cabf
cmp dword [ebp + 0x10], edi
je 0x103cabf
push ebx
push 0x2001f
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x103c9cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x103caa7
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x103ca99
cmp word [eax], 0x5c
jne 0x103ca99
cmp word [eax + 2], 0x5c
jne 0x103ca99
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
call fcn.0103c8a5
mov ebx, eax
cmp ebx, edi
jne 0x103ca9e
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push edi
mov edi, 0x103cad0
push edi
push dword [ebp - 8]
call esi
mov ebx, eax
test ebx, ebx
jne 0x103ca8c
cmp dword [ebp - 0x10], 3
jne 0x103ca89
push dword [ebp - 4]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
test eax, eax
jne 0x103ca46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x103ca8c
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push dword [ebp - 8]
call esi
mov ecx, dword [ebp + 0x10]
mov ebx, eax
mov eax, dword [ebp - 4]
add eax, 3
and eax, 0xfffffffc
mov dword [ecx], eax
xor eax, eax
test ebx, ebx
sete al
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x103ca8c
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x103ca8c
push eax
call sym.spoolsv.exe_PrvDllFreeSplMem
and dword [esi], 0
jmp 0x103ca8c
push 0xd
pop ebx
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
xor edi, edi
jmp 0x103ca9e
mov ebx, 0x709
push dword [ebp - 0x14]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp ebx, edi
pop ebx
je 0x103cac7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0103c7d8
mov dword [ebp - 0xc], eax
jmp 0x103cac7
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret 0xc
Function at 0x103caf5
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp dword [ebp + 0xc], edi
jne 0x103cb19
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x103cbca
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010180dc
test eax, eax
je 0x103cb12
mov eax, dword [ebp + 0x10]
push esi
cmp eax, edi
jne 0x103cb4f
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteValueW]
mov esi, eax
cmp esi, 2
jne 0x103cb7e
xor esi, esi
jmp 0x103cb7e
movzx ecx, word [eax + 0x46]
movzx edx, word [eax + 0x44]
add ecx, edx
push ecx
push eax
push 3
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
jne 0x103cb7e
push dword [ebp + 0xc]
push edi
push 0x1b
push edi
push 2
call sym.spoolsv.exe_PrvRouterBroadcastMessage
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp esi, edi
je 0x103cbc6
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x1049104]
cmp eax, 0x1049104
je 0x103cbc2
test byte [eax + 0x1c], 1
je 0x103cbc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1049104]
push 0x1023b88
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01034754
xor eax, eax
jmp 0x103cbc9
xor eax, eax
inc eax
pop esi
pop edi
leave
ret 0xc

Function at 0x103df0d
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push dword [eax + 0x18]
xor ebx, ebx
inc ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [esi + 4], bl
jne 0x103dfbf
mov eax, dword [esi + 0xc]
test eax, eax
je 0x103df6b
lea ecx, [eax - 1]
mov dword [esi + 0xc], ecx
mov eax, dword [0x1049104]
cmp eax, 0x1049104
je 0x103df60
test byte [eax + 0x1c], 2
je 0x103df60
push ecx
push 0x1023c78
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01034754
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x103dfc1
mov ecx, dword [esi + 8]
mov eax, dword [esi]
cmp ecx, dword [eax]
jae 0x103dfc1
mov eax, dword [0x1049104]
cmp eax, 0x1049104
je 0x103df99
test byte [eax + 0x1c], 2
je 0x103df99
push ecx
push 0x1023c78
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01034754
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x103ddb4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x103dfbf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esi + 8]
jmp 0x103dfc1
xor ebx, ebx
mov eax, dword [esi]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
Function at 0x103e69d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push 0x1023c9c
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x103e6fe
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x1023cc0
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
inc edi
cmp eax, esi
jne 0x103e6fe
xor eax, eax
cmp dword [ebp - 8], 1
setne al
mov edi, eax
cmp dword [ebp - 4], esi
je 0x103e70c
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x103e871
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
xor edi, edi
inc edi
push edi
xor esi, esi
push esi
push 0x1023c9c
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x103e8d0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x1023cc0
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, esi
jne 0x103e8d0
xor eax, eax
cmp dword [ebp - 8], edi
setne al
mov edi, eax
cmp dword [ebp - 4], esi
je 0x103e8de
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x103ea8d
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1049108]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x224], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x234], 1
call sub.msvcrt.dll_memset
mov esi, 0x1017bc8
lea edi, [ebp - 0x21c]
movsd dword es:[edi], dword [esi]
add esp, 0xc
movsd dword es:[edi], dword [esi]
push 2
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
lea eax, [ebp - 0x22c]
push eax
xor esi, esi
lea eax, [ebp - 0x224]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x1023c9c
push ebx
mov dword [ebp - 0x230], 0x208
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x22c], edi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x103ec43
mov ebx, 0x104a138
cmp dword [ebp - 0x22c], edi
jne 0x103ebb2
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x234]
push eax
push esi
push 0x103ec84
push dword [ebp - 0x224]
mov dword [ebp - 0x230], 0x208
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x103ebb2
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov dword [ebp - 0x220], eax
test eax, eax
jl 0x103ebb2
push ebx
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
push 4
xor eax, eax
pop ecx
lea edi, [ebp - 0x21c]
mov esi, 0x10492a8
repe cmpsd dword [esi], dword es:[edi]
setne al
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
test esi, esi
je 0x103ec2c
push ebx
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lea eax, [ebp - 0x228]
push eax
push 0x10492a8
call dword [sym.imp.ole32.dll_StringFromCLSID]
push ebx
mov dword [ebp - 0x220], eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
cmp dword [ebp - 0x220], 0
jl 0x103ec2c
mov eax, dword [ebp - 0x228]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x103ebea
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x228]
push 1
push 0
push 0x103ec84
push dword [ebp - 0x224]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
test eax, eax
jle 0x103ec26
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x228], 0
je 0x103ec55
push dword [ebp - 0x228]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x103ec55
jle 0x103ec4f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x224], 0
pop edi
pop esi
pop ebx
je 0x103ec6d
push dword [ebp - 0x224]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
xor ecx, ebp
call fcn.0100327d
leave
ret 4