joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10924b6
Capabilities:
Enumerate network shares

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
and dword [ebp - 8], 0
test edi, edi
jne 0x10924ca
xor ecx, ecx
jmp 0x10924ff
mov eax, dword [edi + 0x5c]
mov edx, dword [eax]
mov dword [ebp - 0x3c], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x38], edx
mov edx, dword [eax + 8]
mov dword [ebp - 0x34], edx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x30], edx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x2c], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x28], edx
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x24], edx
mov eax, dword [eax + 0x1c]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push ecx
push 0
push 1
push 2
call fcn.010cb106
test eax, eax
jne 0x109260b
push esi
push 0x4000
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 0x1c], esi
jne 0x1092536
or dword [ebp - 8], 0xffffffff
jmp 0x1092600
or dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x4000
call fcn.010cb0fa
test eax, eax
jne 0x10925ea
and dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], eax
jbe 0x1092536
add esi, 0x18
and dword [ebp - 4], 0
cmp dword [esi - 0x10], 3
lea eax, [ebp - 4]
push eax
jne 0x1092592
push dword [esi]
push dword [esi + 4]
push 4
push dword [esi - 4]
push dword [ebp + 8]
call fcn.0109f44c
mov eax, dword [ebp - 4]
test eax, eax
je 0x10925d4
mov byte [eax + 0x31], 1
jmp 0x109259f
lea eax, [esi - 0x18]
push eax
push edi
push dword [ebp + 8]
call fcn.01092364
mov eax, dword [ebp - 4]
test eax, eax
je 0x10925d4
test edi, edi
jne 0x10925b5
push eax
push dword [ebp + 8]
call fcn.0109eeb2
jmp 0x10925c6
push 0
mov dword [eax + 0x18], edi
push dword [ebp - 4]
lea eax, [edi + 0x1c]
push eax
call fcn.0108e53d
test byte [esi - 0xc], 1
je 0x10925d4
mov eax, dword [ebp - 4]
call fcn.01091fe8
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add esi, 0x20
cmp eax, dword [ebp - 0x10]
jb 0x1092565
mov esi, dword [ebp - 0x1c]
jmp 0x1092536
cmp eax, 0x103
je 0x10925f8
mov dword [ebp - 8], 1
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x14]
call fcn.010cb0ee
pop esi
jmp 0x1092622
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x4c6
neg eax
sbb eax, eax
and eax, 0xfffffe28
mov dword [ebp - 8], eax
mov ax, word [ebp - 8]
leave
ret 4
Function at 0x109262f
Capabilities:
List domain servers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x10de03c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x24c], eax
mov eax, dword [esi + 0x34]
push 8
xor ebx, ebx
mov dword [ebp - 0x244], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x274]
rep stosd dword es:[edi], eax
push 2
pop eax
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x250], ebx
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x270], ebx
mov dword [ebp - reloc.KERNEL32.dll_GetTapeParameters], eax
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x244]
lea eax, [ebp - 0x248]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x23c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x234]
push eax
push 0x65
push ebx
call fcn.010cb15a
cmp eax, ebx
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x238], ebx
jne 0x109276a
mov edi, dword [ebp - 0x234]
add edi, 0x14
mov eax, dword [ebp - 0x238]
cmp eax, dword [ebp - 0x23c]
jae 0x109276a
lea eax, [ebp - 0x230]
push 0x1004528
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
push dword [edi - 0x10]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x230]
mov dword [ebp - 0x260], eax
mov eax, dword [edi]
add esp, 0x10
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x274]
push eax
push esi
push dword [ebp - 0x24c]
call fcn.01092364
mov eax, dword [ebp - 0x254]
cmp eax, ebx
je 0x109275c
push ebx
push eax
mov dword [eax + 0x18], esi
lea eax, [esi + 0x1c]
push eax
call fcn.0108e53d
inc dword [ebp - 0x238]
add edi, 0x18
jmp 0x10926e3
mov eax, dword [ebp - 0x23c]
cmp eax, dword [ebp - 0x248]
jae 0x1092784
cmp dword [ebp - 0x240], ebx
je 0x1092698
cmp dword [ebp - 0x234], ebx
pop edi
pop ebx
je 0x1092799
push dword [ebp - 0x234]
call fcn.010cb136
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
and ax, 0xfe05
call fcn.01075aef
leave
ret 4
Function at 0x1094569
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10de03c]
push esi
xor esi, esi
cmp dword [0x10ec238], esi
mov dword [ebp - 4], eax
jne 0x10945e9
lea eax, [ebp - 0x34]
push eax
push 1
push esi
push 0x100b610
push WaitForSingleObject
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10945e9
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push 0x1010984
push dword [ebp - 0x34]
mov dword [ebp - 0x30], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10945d1
mov dword [0x10ec238], 1
jmp 0x10945e0
lea eax, [ebp - 0x2c]
push eax
call fcn.01082763
pop ecx
mov dword [0x10ec238], eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x10ec238]
mov esi, 0x200
cmp eax, esi
jae 0x1094634
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
push 1
push dword [0x10dedc0]
mov dword [ebp - 0x30], CloseServiceHandle
call fcn.0108842f
test eax, eax
pop edi
jne 0x109462b
mov eax, dword [ebp - 0x20]
mov dword [0x10ec238], eax
mov eax, dword [0x10ec238]
cmp eax, esi
jb 0x1094648
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push 0
push dword [0x10dedc0]
call fcn.01087bbd
mov ecx, dword [ebp - 4]
pop esi
call fcn.01075aef
leave
ret

Function at 0x1094dbb
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push 0x1094658
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
leave
ret

Function at 0x1094ddd
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 0x10eb834
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push 0x1093fe2
push eax
push eax
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], ax
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], 1
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], ax
call dword [sym.imp.KERNEL32.dll_CreateThread]
leave
ret
Function at 0x10956e8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10de03c]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
xor esi, esi
lea eax, [ebp - 0x210]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x10109d0
push reloc.KERNEL32.dll_WaitForSingleObject
mov dword [ebp - 0x210], esi
mov word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], si
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 0x210], esi
je 0x1095777
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push edi
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], si
jne 0x10957a3
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x20c]
push 0x10109c4
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wcsdup]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01075aef
leave
ret 4
Function at 0x1097f5e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x4028
call fcn.01077950
mov eax, dword [0x10de03c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x4020], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push 0x5c
push eax
mov dword [ebp - 0x4014], eax
mov dword [ebp - 0x4024], ecx
mov dword [ebp - 0x4010], edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
pop ecx
mov dword [ebp - 0x4008], eax
lea eax, [ebp - 0x4010]
push eax
push 1
push edi
push 0x1005dd8
push dword [ebp - 0x4020]
xor ebx, ebx
mov dword [ebp - 0x400c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10980d9
mov eax, reloc.KERNEL32.dll_GetVolumeNameForVolumeMountPointW
mov dword [ebp - 0x4028], eax
mov dword [ebp - 0x4018], eax
lea eax, [ebp - 0x4018]
push eax
lea eax, [ebp - 0x2004]
push eax
push edi
push edi
lea eax, [ebp - 0x4028]
push eax
lea eax, [ebp - 0x4004]
push eax
push ebx
push dword [ebp - 0x4010]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, edi
mov dword [ebp - 0x401c], eax
jne 0x1098094
push dword [ebp - 0x4008]
call esi
mov edi, eax
lea eax, [ebp - 0x2004]
push eax
call esi
cmp eax, edi
pop ecx
pop ecx
jbe 0x1098094
push dword [ebp - 0x4008]
call esi
mov edi, eax
lea eax, [ebp - 0x2004]
push eax
call esi
sub eax, edi
lea edi, [ebp + eax*2 - 0x2004]
lea eax, [ebp - 0x4004]
push eax
call esi
add esp, 0xc
cmp dword [ebp + 0x10], eax
jbe 0x1098094
push dword [ebp - 0x4008]
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1098094
lea eax, [ebp - 0x4004]
push eax
push dword [ebp - 0x4024]
call dword [sym.imp.msvcrt.dll_wcscpy]
inc dword [ebp - 0x400c]
pop ecx
pop ecx
xor edi, edi
inc ebx
cmp dword [ebp - 0x401c], edi
je 0x1097fda
push dword [ebp - 0x4010]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x400c], 1
jle 0x10980e4
mov eax, dword [ebp - 0x4008]
jmp 0x10980cc
dec eax
dec eax
cmp word [eax], 0x5c
je 0x1097fa9
cmp eax, dword [ebp - 0x4014]
jne 0x10980c0
jmp 0x1097faf
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
inc eax
jmp 0x10980f0
xor eax, eax
cmp dword [ebp - 0x400c], 1
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 0xc
Function at 0x1098104
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x601c
call fcn.01077950
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
mov ebx, edx
lea edx, [ebp - 0x6008]
push edx
xor edi, edi
inc edi
push edi
xor esi, esi
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x6018], esi
mov dword [ebp - 0x600c], edi
mov dword [ebp - 0x6008], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x109815c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
jmp 0x1098263
lea eax, [ebp - 0x6010]
push eax
lea eax, [ebp - 0x4004]
push eax
push esi
push esi
lea eax, [ebp - 0x601c]
push eax
lea eax, [ebp - 0x6004]
push eax
push dword [ebp - 0x6018]
mov dword [ebp - 0x601c], reloc.KERNEL32.dll_GetVolumeNameForVolumeMountPointW
push dword [ebp - 0x6008]
mov dword [ebp - 0x6010], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
mov dword [ebp - 0x6014], eax
jne 0x109823d
push 4
lea eax, [ebp - 0x6004]
push 0x10112e0
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x109823d
mov eax, dword [ebp - 0x6010]
mov word [ebp + eax*2 - reloc.ADVAPI32.dll_RegDeleteValueW], si
cmp eax, esi
je 0x10981f8
dec eax
cmp word [ebp + eax*2 - reloc.ADVAPI32.dll_RegDeleteValueW], 0x25
mov dword [ebp - 0x6010], eax
jne 0x10981d7
cmp eax, esi
lea edi, [ebp + eax*2 - 0x4000]
jne 0x10981fe
lea edi, [ebp - 0x4004]
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
push ebx
mov esi, eax
call dword [sym.imp.msvcrt.dll_wcslen]
cmp esi, eax
pop ecx
pop ecx
jl 0x109821d
sub esi, eax
push ebx
lea eax, [edi + esi*2]
push eax
jmp 0x1098224
sub eax, esi
lea ebx, [ebx + eax*2]
push ebx
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x109823d
and dword [ebp - 0x600c], eax
or dword [ebp - 0x6014], 0xffffffff
inc dword [ebp - 0x6018]
xor esi, esi
cmp dword [ebp - 0x6014], esi
je 0x109815c
push dword [ebp - 0x6008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x600c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 4
Function at 0x10983fe
Capabilities:
Delete registry value
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10de03c]
and dword [ebp - 0x2c], 0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov ebx, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
push 9
pop ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov esi, 0x10112ec
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push ebx
mov dword [ebp - 0x34], eax
call esi
pop ecx
lea edi, [ebx + eax*2]
jmp 0x1098447
dec edi
dec edi
cmp word [edi], 0x5c
jne 0x1098445
lea eax, [ebp - 0x28]
inc edi
push eax
inc edi
call esi
push eax
lea eax, [ebp - 0x28]
push ebx
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
mov esi, eax
neg esi
sbb esi, esi
push 0x10113dc
neg esi
push edi
add esi, reloc.KERNEL32.dll_WaitForSingleObject
call dword [sym.imp.msvcrt.dll__wcsicmp]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
add esp, 0x18
test eax, eax
jne 0x10984e5
push dword [ebp - 0x30]
push 0x10113c0
push esi
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x10984e5
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
xor eax, eax
push eax
push 0x2000000
push 4
push eax
push eax
push 0x1011348
push esi
call ebx
test eax, eax
jne 0x10984d2
push reloc.MFC42u.DLL_CView::OnEndPrintPreview
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push 0x10113c0
push esi
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
xor eax, eax
push eax
push 0x2000000
push 4
push eax
push eax
push edi
push esi
call ebx
test eax, eax
je 0x109850c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
inc eax
jmp 0x1098578
cmp dword [ebp - 0x34], 0
je 0x1098545
cmp esi, 0x80000003
jne 0x1098545
push 0x1011310
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1098545
push 5
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1098564
mov esi, 0xfffffeb4
jmp 0x109856d
push dword [ebp - 0x38]
push dword [ebp - 0x30]
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegReplaceKeyW]
mov esi, eax
cmp esi, 0xfffffeb4
je 0x109856d
test esi, esi
je 0x109856d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
inc esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 0xc
Function at 0x109858c
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2430
call fcn.01077950
mov eax, dword [0x10de03c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 0x2428], eax
mov eax, dword [eax + 4]
push edi
xor edi, edi
mov dword [ebp - 0x241c], ecx
mov ecx, dword [eax + 0x5c]
mov dword [ebp - 0x2418], edi
mov dword [ebp - 0x2420], edi
test byte [eax + 0x60], 0x80
jne 0x109878f
push esi
push dword [ecx + 0x3c]
mov esi, reloc.KERNEL32.dll_WaitForSingleObject
push 0x10113c0
push esi
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
cmp eax, edi
jne 0x1098767
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x2424]
push eax
lea eax, [ebp - 0x2418]
push eax
push edi
push 0x2000000
push 4
push edi
push edi
push 0x1011518
push esi
call ebx
cmp eax, edi
jne 0x1098766
lea eax, [ebp - 0x242c]
push eax
lea eax, [ebp - 0x2420]
push eax
push edi
push edi
push 0x1011508
push dword [ebp - 0x2418]
mov dword [ebp - 0x242c], reloc.KERNEL32.dll_GetVolumeNameForVolumeMountPointW
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x2418]
mov dword [ebp - 0x2430], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2430], edi
jne 0x1098766
push 0x10114b8
push dword [ebp - 0x2420]
lea eax, [ebp - 0x2414]
push 0x1011440
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [ebp - 0x2424]
push eax
lea eax, [ebp - 0x2418]
push eax
push edi
push 0x2000000
push 4
push edi
push edi
lea eax, [ebp - 0x2414]
push eax
push esi
call ebx
cmp eax, edi
jne 0x1098766
mov eax, dword [ebp - 0x2428]
mov eax, dword [eax + 0x14]
test byte [eax + 0x9e], 0x80
je 0x1098766
mov eax, dword [ebp - 0x241c]
cmp word [eax + 0x8e], di
je 0x1098766
push 0x104
lea eax, [ebp - 0x20c]
xor ebx, ebx
push eax
inc ebx
push 0x1005d9c
mov dword [ebp - 0x241c], ebx
mov word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], di
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x10108ac
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 0x10
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
push 0x101141c
push dword [ebp - 0x2418]
call ebx
push 4
lea eax, [ebp - 0x241c]
push eax
push 4
push edi
push 0x10113f0
push dword [ebp - 0x2418]
call ebx
pop ebx
cmp dword [ebp - 0x2418], edi
je 0x109877b
push dword [ebp - 0x2418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push 0x10113c0
push esi
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.01075aef
leave
ret 4
Function at 0x1098c6f
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, reloc.KERNEL32.dll_FindClose
call fcn.01077950
mov eax, dword [0x10de03c]
push esi
mov dword [ebp - 0x2014], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2018], ecx
lea ecx, [ebp - 0x2008]
push ecx
push 0x20019
xor esi, esi
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x1011550
push eax
mov dword [ebp - 0x2010], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1098d58
push ebx
push edi
xor ebx, ebx
lea eax, reloc.KERNEL32.dll_FindClose
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x200c]
push eax
lea eax, [ebp - 0x2004]
push eax
push ebx
push dword [ebp - 0x2008]
mov dword [ebp - 0x200c], reloc.KERNEL32.dll_GetVolumeNameForVolumeMountPointW
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
cmp edi, esi
jne 0x1098d2e
mov eax, dword [ebp - 0x200c]
push dword [ebp - 0x2008]
mov edx, dword [ebp - 0x2014]
lea ecx, [ebp - 0x2004]
mov word [ebp + eax*2 - reloc.ADVAPI32.dll_RegDeleteValueW], si
call fcn.01098104
cmp eax, esi
mov dword [ebp - 0x2010], eax
je 0x1098d35
inc ebx
cmp edi, esi
je 0x1098cca
jmp 0x1098d4a
lea eax, [ebp - 0x2004]
push eax
push dword [ebp - 0x2018]
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2010]
pop esi
call fcn.01075aef
leave
ret 8

Function at 0x1098d70
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x401c
call fcn.01077950
mov eax, dword [0x10de03c]
push ebx
mov dword [ebp - 0x4018], ecx
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x401c], ecx
lea ecx, [ebp - 0x4008]
push ecx
push 1
xor ebx, ebx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x1005dd8
push eax
mov dword [ebp - 0x4008], eax
mov dword [ebp - 0x4010], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x1098e5f
lea eax, [ebp - 0x400c]
push eax
lea eax, [ebp - 0x2004]
push eax
push ebx
push ebx
lea eax, [ebp - 0x4014]
push eax
lea eax, [ebp - 0x4004]
push eax
push dword [ebp - 0x4010]
mov dword [ebp - 0x4014], reloc.KERNEL32.dll_GetVolumeNameForVolumeMountPointW
push dword [ebp - 0x4008]
mov dword [ebp - 0x400c], reloc.KERNEL32.dll_GetVolumeNameForVolumeMountPointW
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
cmp esi, ebx
jne 0x1098e2c
mov eax, dword [ebp - 0x400c]
shr eax, 1
cmp dword [ebp - 0x400c], 2
mov word [ebp + eax*2 - reloc.ADVAPI32.dll_RegDeleteValueW], bx
ja 0x1098e38
inc dword [ebp - 0x4010]
cmp esi, ebx
je 0x1098dc9
jmp 0x1098e51
push dword [ebp - 0x4018]
mov ebx, dword [ebp - 0x401c]
lea eax, [ebp - 0x2004]
call fcn.01098277
mov esi, eax
push dword [ebp - 0x4008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1098e65
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
call fcn.01075aef
leave
ret 8
Function at 0x1098f4a
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcsrchr]
xor esi, esi
push 0x5c
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call edi
cmp eax, esi
pop ecx
pop ecx
je 0x10990bd
push 0x5c
push dword [ebp + 0x10]
mov word [eax], si
call edi
cmp eax, esi
pop ecx
pop ecx
je 0x10990bd
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
mov word [eax], si
inc eax
inc eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2000000
push 4
push esi
push esi
push dword [ebp + 0xc]
mov ebx, reloc.KERNEL32.dll_WaitForSingleObject
push ebx
call edi
cmp eax, esi
mov dword [ebp + 0xc], eax
jne 0x109901a
cmp dword [ebp - 0xc], 1
jne 0x1098fd1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10990bc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x2000000
push 4
push 0x100205c
push esi
push dword [ebp + 0x10]
push ebx
call edi
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x109901a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x2000000
push esi
push 0x100205c
push esi
push dword [ebp + 0x10]
push ebx
call edi
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x10990bc
mov ebx, dword [ebp - 0x14]
cmp word [ebx], si
je 0x109908c
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push esi
push ebx
push dword [ebp - 4]
mov dword [ebp + 0x10], esi
call edi
cmp eax, esi
jne 0x10990a2
push 1
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp + 0x14], eax
je 0x10990a2
lea ecx, [ebp + 0x10]
push ecx
push eax
lea eax, [ebp + 0xc]
push eax
push esi
push ebx
push dword [ebp - 4]
call edi
cmp eax, esi
jne 0x1099080
cmp dword [ebp - 0x10], esi
jne 0x1099080
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x14]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x10990a2
cmp dword [ebp + 0xc], esi
jne 0x10990a2
push dword [ebp + 0x14]
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.010987e3
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x10990b2
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], esi
je 0x10990bc
push dword [ebp - 8]
call edi
pop ebx
pop edi
pop esi
leave
ret 0x10