joyce8/EMBER2024-capa huggingface dataset:
Function at 0x108900a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push edi
xor edi, edi
cmp dword [0x10de1c8], edi
je 0x1089155
cmp dword [0x10eb290], edi
mov dword [0x10de1c8], edi
jne 0x1089155
push ebx
push 0x101084c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x1089154
push 1
push 0x24
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, edi
pop ecx
pop ecx
mov dword [0x10eb290], eax
je 0x1089154
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1010830
push ebx
call esi
mov ecx, dword [0x10eb290]
push 0x1010814
push ebx
mov dword [ecx + 4], eax
call esi
mov ecx, dword [0x10eb290]
push 0x10107fc
push ebx
mov dword [ecx + 8], eax
call esi
mov ecx, dword [0x10eb290]
push 0x10107e0
push ebx
mov dword [ecx + 0xc], eax
call esi
mov ecx, dword [0x10eb290]
push 0x10107d0
push ebx
mov dword [ecx + 0x10], eax
call esi
mov ecx, dword [0x10eb290]
push 0x10107b4
push ebx
mov dword [ecx + 0x14], eax
call esi
mov ecx, dword [0x10eb290]
push 0x101079c
push ebx
mov dword [ecx + 0x18], eax
call esi
mov ecx, dword [0x10eb290]
push 0x1010784
push ebx
mov dword [ecx + 0x1c], eax
call esi
mov ecx, dword [0x10eb290]
mov dword [ecx + 0x20], eax
mov eax, dword [0x10eb290]
cmp dword [eax + 4], edi
pop esi
je 0x1089119
cmp dword [eax + 8], edi
je 0x1089119
cmp dword [eax + 0xc], edi
je 0x1089119
cmp dword [eax + 0x10], edi
je 0x1089119
cmp dword [eax + 0x14], edi
je 0x1089119
cmp dword [eax + 0x18], edi
je 0x1089119
cmp dword [eax + 0x1c], edi
je 0x1089119
cmp dword [eax + 0x20], edi
jne 0x1089154
mov dword [eax + 4], edi
mov eax, dword [0x10eb290]
mov dword [eax + 8], edi
mov eax, dword [0x10eb290]
mov dword [eax + 0xc], edi
mov eax, dword [0x10eb290]
mov dword [eax + 0x10], edi
mov eax, dword [0x10eb290]
mov dword [eax + 0x14], edi
mov eax, dword [0x10eb290]
mov dword [eax + 0x18], edi
mov eax, dword [0x10eb290]
mov dword [eax + 0x1c], edi
mov eax, dword [0x10eb290]
mov dword [eax + 0x20], edi
pop ebx
pop edi
ret
Function at 0x10892e2
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 0x10893d2
cmp eax, 0xffffffff
je 0x10893d2
push dword [ebp - 0x20c]
mov ecx, ebx
lea edx, [ebp - 0x204]
call fcn.01089171
test eax, eax
je 0x1089381
push dword [ebp - 0x20c]
push eax
call fcn.010892e2
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 0x108935e
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 8
Function at 0x108acaa
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.01088fcd
push 0x430
push 1
call dword [sym.imp.msvcrt.dll_calloc]
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x108acfc
push esi
push edi
call fcn.010a70cc
test ax, ax
je 0x108ace8
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push edi
call fcn.010a47a2
mov esi, dword [edi + 0x34]
cmp esi, ebx
je 0x108aeb5
push edi
call fcn.010a663f
push dword [esi + 0x20]
jmp 0x108ad1f
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 0x108ad18
jmp 0x108ad4f
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 0x108ad2f
push edi
call fcn.01088d7d
cmp word [esi + 0x96], bx
je 0x108ad69
push edi
call fcn.0108a857
cmp word [esi + 0x92], bx
je 0x108ad85
cmp dword [0x10eb294], ebx
jne 0x108ad7f
call fcn.01089449
mov dword [ebp - 0x418], ebx
cmp word [esi + 0x90], bx
je 0x108ad93
call fcn.01078127
mov eax, dword [edi + 0x14]
test byte [eax + 0x9e], 0x80
je 0x108ae10
cmp word [esi + 0x8e], bx
je 0x108ae10
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 0x10108c4
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 0x108ae06
push ebx
push 1
lea eax, [ebp - 0x414]
push eax
call sub.CLUSAPI.dll_RestoreClusterDatabase
cmp eax, ebx
je 0x108ae10
push edi
call fcn.0109871a
push dword [esi + 0x14f0]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push edi
call fcn.010a5b8c
push dword [esi + 0x14f4]
call fcn.010a502f
mov ecx, dword [esi + 0x14f8]
cmp ecx, ebx
je 0x108ae68
lea eax, [esi + 0x14fc]
cmp word [eax], bx
je 0x108ae68
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 0x108ae89
push ebx
push 0x23f
push ebx
push ebx
push edi
call fcn.01089474
mov dword [ebp - 0x418], 0xfffffe40
cmp word [esi + 0x8a], bx
je 0x108aeb5
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x5c]
cmp dword [eax + 0x38], ebx
jne 0x108aeb5
push ebx
push 0x240
push ebx
push ebx
push edi
call fcn.01089474
mov dword [ebp - 0x418], 0xfffffe40
push edi
call fcn.010a4962
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.01075bbb
leave
ret 4
Function at 0x1092644
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 0x1092658
xor ecx, ecx
jmp 0x109268d
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 0x1092799
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 0x10926c4
or dword [ebp - 8], 0xffffffff
jmp 0x109278e
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 0x1092778
and dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], eax
jbe 0x10926c4
add esi, 0x18
and dword [ebp - 4], 0
cmp dword [esi - 0x10], 3
lea eax, [ebp - 4]
push eax
jne 0x1092720
push dword [esi]
push dword [esi + 4]
push 4
push dword [esi - 4]
push dword [ebp + 8]
call fcn.0109f607
mov eax, dword [ebp - 4]
test eax, eax
je 0x1092762
mov byte [eax + 0x31], 1
jmp 0x109272d
lea eax, [esi - 0x18]
push eax
push edi
push dword [ebp + 8]
call fcn.010924f2
mov eax, dword [ebp - 4]
test eax, eax
je 0x1092762
test edi, edi
jne 0x1092743
push eax
push dword [ebp + 8]
call fcn.0109f06d
jmp 0x1092754
push 0
mov dword [eax + 0x18], edi
push dword [ebp - 4]
lea eax, [edi + 0x1c]
push eax
call fcn.0108e6cb
test byte [esi - 0xc], 1
je 0x1092762
mov eax, dword [ebp - 4]
call fcn.01092176
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add esi, 0x20
cmp eax, dword [ebp - 0x10]
jb 0x10926f3
mov esi, dword [ebp - 0x1c]
jmp 0x10926c4
cmp eax, 0x103
je 0x1092786
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 0x10927b0
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 0x10927bd
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 0x10928f8
mov edi, dword [ebp - 0x234]
add edi, 0x14
mov eax, dword [ebp - 0x238]
cmp eax, dword [ebp - 0x23c]
jae 0x10928f8
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.010924f2
mov eax, dword [ebp - 0x254]
cmp eax, ebx
je 0x10928ea
push ebx
push eax
mov dword [eax + 0x18], esi
lea eax, [esi + 0x1c]
push eax
call fcn.0108e6cb
inc dword [ebp - 0x238]
add edi, 0x18
jmp 0x1092871
mov eax, dword [ebp - 0x23c]
cmp eax, dword [ebp - 0x248]
jae 0x1092912
cmp dword [ebp - 0x240], ebx
je 0x1092826
cmp dword [ebp - 0x234], ebx
pop edi
pop ebx
je 0x1092927
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.01075bbb
leave
ret 4
Function at 0x10946f7
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 [0x10ec240], esi
mov dword [ebp - 4], eax
jne 0x1094777
lea eax, [ebp - 0x34]
push eax
push 1
push esi
push 0x100b618
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1094777
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push 0x101099c
push dword [ebp - 0x34]
mov dword [ebp - 0x30], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x109475f
mov dword [0x10ec240], 1
jmp 0x109476e
lea eax, [ebp - 0x2c]
push eax
call fcn.01082855
pop ecx
mov dword [0x10ec240], eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x10ec240]
mov esi, 0x200
cmp eax, esi
jae 0x10947c2
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.01088579
test eax, eax
pop edi
jne 0x10947b9
mov eax, dword [ebp - 0x20]
mov dword [0x10ec240], eax
mov eax, dword [0x10ec240]
cmp eax, esi
jb 0x10947d6
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push 0
push dword [0x10dedc0]
call fcn.01087d07
mov ecx, dword [ebp - 4]
pop esi
call fcn.01075bbb
leave
ret

Function at 0x1094f49
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 0x10947e6
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
leave
ret

Function at 0x1094f6b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 0x10eb83c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push 0x1094170
push eax
push eax
mov word [0x10eb6dc], ax
mov word [0x10eb6d8], 1
mov word [0x10eb784], ax
call dword [sym.imp.KERNEL32.dll_CreateThread]
leave
ret
Function at 0x1095876
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 0x10109e8
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 0x1095905
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 0x1095931
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x20c]
push 0x10109dc
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.01075bbb
leave
ret 4
Function at 0x10980ec
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x4028
call fcn.01077a20
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 0x1098267
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 0x1098222
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 0x1098222
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 0x1098222
push dword [ebp - 0x4008]
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1098222
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 0x1098168
push dword [ebp - 0x4010]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x400c], 1
jle 0x1098272
mov eax, dword [ebp - 0x4008]
jmp 0x109825a
dec eax
dec eax
cmp word [eax], 0x5c
je 0x1098137
cmp eax, dword [ebp - 0x4014]
jne 0x109824e
jmp 0x109813d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
inc eax
jmp 0x109827e
xor eax, eax
cmp dword [ebp - 0x400c], 1
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 0xc
Function at 0x1098292
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x601c
call fcn.01077a20
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 0x10982ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
jmp 0x10983f1
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 0x10983cb
push 4
lea eax, [ebp - 0x6004]
push 0x10112f8
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x10983cb
mov eax, dword [ebp - 0x6010]
mov word [ebp + eax*2 - 0x4004], si
cmp eax, esi
je 0x1098386
dec eax
cmp word [ebp + eax*2 - 0x4004], 0x25
mov dword [ebp - 0x6010], eax
jne 0x1098365
cmp eax, esi
lea edi, [ebp + eax*2 - 0x4000]
jne 0x109838c
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 0x10983ab
sub esi, eax
push ebx
lea eax, [edi + esi*2]
push eax
jmp 0x10983b2
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 0x10983cb
and dword [ebp - 0x600c], eax
or dword [ebp - 0x6014], 0xffffffff
inc dword [ebp - 0x6018]
xor esi, esi
cmp dword [ebp - 0x6014], esi
je 0x10982ea
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.01075bbb
leave
ret 4
Function at 0x109858c
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, 0x1011304
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 0x10985d5
dec edi
dec edi
cmp word [edi], 0x5c
jne 0x10985d3
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 0x10113f4
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 0x1098673
push dword [ebp - 0x30]
push 0x10113d8
push esi
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x1098673
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 0x1011360
push esi
call ebx
test eax, eax
jne 0x1098660
push 0x101133c
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 0x10113d8
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 0x109869a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
inc eax
jmp 0x1098706
cmp dword [ebp - 0x34], 0
je 0x10986d3
cmp esi, 0x80000003
jne 0x10986d3
push 0x1011328
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10986d3
push 5
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x10986f2
mov esi, 0xfffffeb4
jmp 0x10986fb
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 0x10986fb
test esi, esi
je 0x10986fb
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.01075bbb
leave
ret 0xc
Function at 0x109871a
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.01077a20
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 0x109891d
push esi
push dword [ecx + 0x3c]
mov esi, 0x80000002
push 0x10113d8
push esi
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
cmp eax, edi
jne 0x10988f5
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 0x1011530
push esi
call ebx
cmp eax, edi
jne 0x10988f4
lea eax, [ebp - 0x242c]
push eax
lea eax, [ebp - 0x2420]
push eax
push edi
push edi
push 0x1011520
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 0x10988f4
push 0x10114d0
push dword [ebp - 0x2420]
lea eax, [ebp - 0x2414]
push 0x1011458
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 0x10988f4
mov eax, dword [ebp - 0x2428]
mov eax, dword [eax + 0x14]
test byte [eax + 0x9e], 0x80
je 0x10988f4
mov eax, dword [ebp - 0x241c]
cmp word [eax + 0x8e], di
je 0x10988f4
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 0x10108c4
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 0x1011434
push dword [ebp - 0x2418]
call ebx
push 4
lea eax, [ebp - 0x241c]
push eax
push 4
push edi
push 0x1011408
push dword [ebp - 0x2418]
call ebx
pop ebx
cmp dword [ebp - 0x2418], edi
je 0x1098909
push dword [ebp - 0x2418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push 0x10113d8
push esi
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.01075bbb
leave
ret 4