joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1089154
Capabilities:
Enumerate disk volumes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10de03c]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20c], eax
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0x204]
push eax
call edi
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp - 0x204]
push eax
call esi
mov ecx, 0xff
sub ecx, eax
add esp, 0xc
shl ecx, 1
push ecx
lea eax, [ebp - 0x204]
push eax
call esi
pop ecx
lea eax, [ebp + eax*2 - 0x204]
push eax
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
test eax, eax
mov dword [ebp - 0x208], eax
je 0x1089244
cmp eax, 0xffffffff
je 0x1089244
push dword [ebp - 0x20c]
mov ecx, ebx
lea edx, [ebp - 0x204]
call fcn.01088fe3
test eax, eax
je 0x10891f3
push dword [ebp - 0x20c]
push eax
call fcn.01089154
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0x204]
push eax
call edi
lea eax, [ebp - 0x204]
push eax
call esi
mov ecx, 0xff
sub ecx, eax
add esp, 0xc
shl ecx, 1
push ecx
lea eax, [ebp - 0x204]
push eax
call esi
pop ecx
lea eax, [ebp + eax*2 - 0x204]
push eax
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
test eax, eax
jne 0x10891d0
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 8
Function at 0x108ab1c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 4]
xor ebx, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x418], ebx
call fcn.01088e3f
push 0x430
push 1
call dword [sym.imp.msvcrt.dll_calloc]
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x108ab6e
push esi
push edi
call fcn.010a6f11
test ax, ax
je 0x108ab5a
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push edi
call fcn.010a45e7
mov esi, dword [edi + 0x34]
cmp esi, ebx
je 0x108ad27
push edi
call fcn.010a6484
push dword [esi + 0x20]
jmp 0x108ab91
mov ecx, dword [eax + 0xc]
mov dword [esi + 0x78], ecx
push eax
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [esi + 0x78]
cmp eax, ebx
pop ecx
jne 0x108ab8a
jmp 0x108abc1
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x20c]
push eax
mov dword [ebp - 0x41c], ecx
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 0x41c]
pop ecx
mov dword [esi + 0x5c], eax
cmp dword [esi + 0x5c], ebx
jne 0x108aba1
push edi
call fcn.01088bef
cmp word [esi + 0x96], bx
je 0x108abdb
push edi
call fcn.0108a6c9
cmp word [esi + 0x92], bx
je 0x108abf7
cmp dword [0x10eb28c], ebx
jne 0x108abf1
call fcn.010892bb
mov dword [ebp - 0x418], ebx
cmp word [esi + 0x90], bx
je 0x108ac05
call fcn.01078057
mov eax, dword [edi + 0x14]
test byte [eax + 0x9e], 0x80
je 0x108ac82
cmp word [esi + 0x8e], bx
je 0x108ac82
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1005d9c
mov word [ebp - 0x20c], bx
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]
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 0x414]
push eax
call sub.CLUSAPI.dll_RestoreClusterDatabase
cmp eax, 0x13c0
jne 0x108ac78
push ebx
push 1
lea eax, [ebp - 0x414]
push eax
call sub.CLUSAPI.dll_RestoreClusterDatabase
cmp eax, ebx
je 0x108ac82
push edi
call fcn.0109858c
push dword [esi + 0x14f0]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push edi
call fcn.010a59d1
push dword [esi + 0x14f4]
call fcn.010a4e74
mov ecx, dword [esi + 0x14f8]
cmp ecx, ebx
je 0x108acda
lea eax, [esi + 0x14fc]
cmp word [eax], bx
je 0x108acda
lea edx, [ebp - 0x41c]
push edx
push ecx
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 0x54]
add ecx, 4
push ecx
push eax
call sub.query.dll_SetCatalogState
mov dword [esi + 0x14f8], ebx
mov word [esi + 0x14fc], bx
cmp word [esi + 0x88], bx
je 0x108acfb
push ebx
push 0x23f
push ebx
push ebx
push edi
call fcn.010892e6
mov dword [ebp - 0x418], 0xfffffe40
cmp word [esi + 0x8a], bx
je 0x108ad27
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x5c]
cmp dword [eax + 0x38], ebx
jne 0x108ad27
push ebx
push 0x240
push ebx
push ebx
push edi
call fcn.010892e6
mov dword [ebp - 0x418], 0xfffffe40
push edi
call fcn.010a47a7
push dword [edi + 0x3c]
mov esi, dword [sym.imp.msvcrt.dll_free]
call esi
push dword [edi + 0x34]
call esi
mov ax, word [ebp - 0x418]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 4
Function at 0x108b623
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x10de03c]
push esi
push edi
push dword [0x10e85c8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x404]
push 0x10108e0
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x404]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x108b670
lea esi, [ebp - 0x404]
jmp 0x108b672
inc esi
inc esi
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x108b6c3
lea eax, [ebp - 0x628]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x654]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x108b68d
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01075aef
leave
ret

Function at 0x108c183
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x10de03c]
push esi
push 0x10108fc
push dword [0x10e85c8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x404]
push 0x100fb38
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x108c1f9
push 0
lea eax, [ebp - 0x628]
push eax
call fcn.0108bd65
lea eax, [ebp - 0x654]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x108c1d2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop esi
call fcn.01075aef
leave
ret
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 sub.MPR.dll_WNetOpenEnumW
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 sub.MPR.dll_WNetEnumResourceW
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 sub.MPR.dll_WNetCloseEnum
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 - 0x258], 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 sub.NETAPI32.dll_NetServerEnum
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 sub.NETAPI32.dll_NetApiBufferFree
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 0x80000001
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], 0x20
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 [0x10eb6d4], ax
mov word [0x10eb6d0], 1
mov word [0x10eb77c], 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 0x80000002
mov dword [ebp - 0x210], esi
mov word [ebp - 0x20c], 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 - 0x20c], 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, 0x1000
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], 0x1000
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 - 0x4004], si
cmp eax, esi
je 0x10981f8
dec eax
cmp word [ebp + eax*2 - 0x4004], 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, 0x80000002
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 0x1011324
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, 0x80000002
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], 0x1000
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 - 0x20c], 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