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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
xor ecx, ecx
cmp dword [eax], ecx
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], ecx
je 0x10486db
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x210]
push eax
mov ebx, 0x20019
push ebx
push ecx
mov edi, 0x10062a0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x210], ecx
call esi
test eax, eax
je 0x1048620
lea eax, [ebp - 0x210]
push eax
push ebx
push 0
push edi
push SysReAllocString
call esi
test eax, eax
je 0x1048620
and dword [ebp - 0x210], 0
cmp dword [ebp - 0x210], 0
mov edi, dword [ebp - 0x214]
je 0x10486c7
and dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
push eax
xor ebx, ebx
inc ebx
push ebx
push 0
push dword [edi]
push dword [ebp - 0x210]
call esi
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x10486ad
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0x100626c
push dword [ebp - 0x21c]
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x220], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10486a5
cmp dword [ebp - 0x214], ebx
jne 0x10486a5
mov dword [ebp - 0x218], ebx
push dword [ebp - 0x21c]
call esi
push dword [ebp - 0x210]
call esi
cmp dword [ebp - 0x218], 0
je 0x10486c7
push dword [edi]
push 0x1006244
jmp 0x10486ce
push dword [edi]
push 0x1006200
push 4
call fcn.0105e5ad
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
xor ecx, ebp
call fcn.01047417
leave
ret

Function at 0x1048707
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor esi, esi
push esi
push esi
push esi
mov edi, ecx
push 6
mov dword [ebp - 0x14], edi
call fcn.0105989e
test eax, eax
je 0x104879e
push ebx
lea eax, [ebp - 4]
push eax
xor ebx, ebx
inc ebx
push ebx
push esi
push 0x1006358
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1048799
push 4
pop edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x1006320
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1048790
cmp dword [ebp - 8], edi
jne 0x1048790
cmp dword [ebp - 0xc], esi
jne 0x1048790
push 0x10062fc
push edi
call fcn.0105e573
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax + 0x98]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
jmp 0x10487a4
mov eax, dword [edi + 0x98]
pop edi
pop esi
leave
ret
Function at 0x1048c3c
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x418], 0
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1048ccd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x186a0
div ecx
push 0x1005ed8
lea eax, [ebp - 0x414]
push edx
push eax
push 0x100650c
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.01034db1
add esp, 0x18
test eax, eax
jl 0x1048ccd
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1048ccd
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.010593e7
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
xor ecx, ebp
call fcn.01047417
leave
ret
Function at 0x1048e2b
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi]
xor ebx, ebx
cmp ecx, ebx
mov eax, 0x80004005
mov dword [ebp - 0x214], eax
je 0x104900d
push ecx
push 0x1006678
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01034d76
add esp, 0x10
test eax, eax
jl 0x1049007
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x210], ebx
call edi
test eax, eax
je 0x1048ed6
push ebx
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call edi
test eax, eax
je 0x1048ed6
mov dword [ebp - 0x210], ebx
cmp dword [ebp - 0x210], ebx
je 0x1049006
push dword [esi + 0xc]
push 0x100665c
push dword [ebp - 0x210]
call fcn.01048258
push dword [esi + 0x64]
push 0x1006644
push dword [ebp - 0x210]
call fcn.01048258
push dword [esi + 0x68]
push 0x1006624
push dword [ebp - 0x210]
call fcn.01048258
push dword [esi + 0x5c]
push 0x1006608
push dword [ebp - 0x210]
call fcn.01048258
push dword [esi + 0x54]
push 0x10065ec
push dword [ebp - 0x210]
call fcn.01048258
push dword [esi + 0x50]
push 0x10065cc
push dword [ebp - 0x210]
call fcn.01048258
push dword [esi + 0x58]
push 0x10065b0
push dword [ebp - 0x210]
call fcn.01048258
push dword [esi + 0x6c]
mov edi, 0x1006590
push edi
push dword [ebp - 0x210]
call fcn.01048258
push dword [esi + 0x70]
push edi
push dword [ebp - 0x210]
call fcn.01048258
push dword [esi + 0x74]
push 0x1006570
push dword [ebp - 0x210]
call fcn.01048258
push dword [esi + 0x78]
mov edi, 0x1006550
push edi
push dword [ebp - 0x210]
call fcn.01048258
push dword [esi + 0x7c]
push edi
push dword [ebp - 0x210]
call fcn.01048258
push dword [esi + 0x80]
push 0x1006530
push dword [ebp - 0x210]
call fcn.01048258
lea eax, [esi + 0x4c]
cmp dword [eax], ebx
je 0x1048ff4
push 4
push eax
push 4
push ebx
push 0x1006524
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
mov dword [ebp - 0x214], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret
Function at 0x104a539
Capabilities:
Delete registry value
Set registry value

Disassembly:
cmp dword [ecx + 0x40], 0
je 0x104a54f
call fcn.0104947b
test eax, eax
je 0x104a54f
mov ecx, eax
jmp fcn.01049079
ret

Function at 0x104a555
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push esi
push edi
push 0x1006c14
mov esi, ecx
push 3
mov dword [ebp - 0x220], esi
call fcn.0105e573
mov eax, dword [esi + 0x10]
test eax, eax
je 0x104a596
push eax
mov ecx, esi
call fcn.0104a183
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
lea eax, [ebp - 0x210]
push eax
push 1
push 0
mov ebx, 0x1001bd0
push ebx
push SysReAllocString
call edi
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jne 0x104a6dc
and dword [ebp - 0x218], 0
push 4
pop eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0x1006bdc
push dword [ebp - 0x210]
call esi
test eax, eax
jne 0x104a66d
cmp dword [ebp - 0x218], 1
jne 0x104a66d
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0x1006ba8
push dword [ebp - 0x210]
mov dword [ebp - 0x21c], 0x208
call esi
test eax, eax
jne 0x104a66d
cmp dword [ebp - 0x214], 1
jne 0x104a66d
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
call fcn.0104a279
lea eax, [ebp - 0x20c]
push eax
push 0x1006b88
push 3
call fcn.0105e5ad
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0x1001f68
push dword [ebp - 0x210]
mov dword [ebp - 0x21c], 0x208
call esi
test eax, eax
jne 0x104a6d0
cmp dword [ebp - 0x214], 1
jne 0x104a6d0
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
call fcn.0104a35e
lea eax, [ebp - 0x20c]
push eax
push 0x1006b68
push 3
call fcn.0105e5ad
add esp, 0xc
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
pop ebx
jne 0x104a7a8
push 4
pop edi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0x1006b3c
push dword [ebp - 0x210]
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], 0x208
call esi
test eax, eax
jne 0x104a79c
cmp dword [ebp - 0x218], 1
jne 0x104a79c
mov ecx, 0x1001e8c
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x104a76b
test dx, dx
je 0x104a767
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x104a76b
add eax, edi
add ecx, edi
test dx, dx
jne 0x104a747
xor eax, eax
jmp 0x104a770
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x104a79c
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
call fcn.0104a454
lea eax, [ebp - 0x20c]
push eax
push 0x1006b18
push 3
call fcn.0105e5ad
add esp, 0xc
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01047417
leave
ret
Function at 0x104b199
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2e8
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x2d8]
push eax
push 3
xor esi, esi
push esi
push 0x1001bd0
mov ebx, ecx
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 0x2dc], ebx
mov dword [ebp - 0x2d8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x104b308
push dword [ebx + 0x10]
push 0x1001f68
push dword [ebp - 0x2d8]
call fcn.01048258
cmp dword [ebx + 0x18], esi
jne 0x104b257
mov eax, dword [ebx + 0x10]
cmp eax, esi
je 0x104b2fc
mov ecx, 0x1001e8c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x104b232
cmp dx, si
je 0x104b22e
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x104b232
add eax, 4
add ecx, 4
cmp dx, si
jne 0x104b20c
xor eax, eax
jmp 0x104b237
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x104b2fc
push dword [ebx + 0x10]
push 0x1006b3c
push dword [ebp - 0x2d8]
call fcn.01048258
jmp 0x104b2fc
lea eax, [ebp - 0x2e8]
push eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x2e4]
push eax
push esi
push 0x1006b3c
push dword [ebp - 0x2d8]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x2e4], ebx
mov dword [ebp - 0x2e8], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x104b2f6
cmp dword [ebp - 0x2e4], ebx
jne 0x104b2f6
lea eax, [ebp - 0xcc]
push eax
push 0x1006678
lea eax, [ebp - 0x2d4]
push 0x208
push eax
call fcn.01034db1
add esp, 0x10
test eax, eax
jl 0x104b2f6
push esi
lea eax, [ebp - 0x2e0]
push eax
push esi
push 0x20006
push esi
push esi
push esi
lea eax, [ebp - 0x2d4]
push eax
push edi
mov dword [ebp - 0x2e0], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x104b2f6
push dword [ebp - 0x2e0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x2dc]
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x2d8]
push eax
push esi
push 2
push esi
push esi
push esi
push 0x1002120
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x104b345
push dword [ebx + 0x20]
push 0x1002104
push dword [ebp - 0x2d8]
call fcn.01048258
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret
Function at 0x104cd7b
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x68], ebx
jne 0x104ce34
cmp dword [esi + 0x6c], ebx
jne 0x104ce34
mov eax, dword [esi + 0x2c]
push edi
xor edi, edi
inc edi
cmp eax, edi
je 0x104cddd
jle 0x104ce33
cmp eax, 4
jle 0x104cdb6
add eax, 0xfffffffa
cmp eax, edi
ja 0x104ce33
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x104cdcf
push ebx
push dword [esi + 0x14]
push eax
call fcn.01065f8d
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], edx
jmp 0x104ce33
push 0x1007a90
push 2
call fcn.0105e573
jmp 0x104ce33
push dword [esi + 0x18]
mov dword [ebp - 4], ebx
call fcn.01056f43
test eax, eax
je 0x104ce33
push ebx
push 0x80
push 3
push ebx
push edi
push SysReAllocString
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x104ce33
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x104ce2c
mov edx, dword [ebp - 4]
xor ecx, ecx
xor ebx, ebx
or ecx, eax
or edx, ebx
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
cmp dword [esi + 0x54], ebx
jne 0x104ce62
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x104ce62
push eax
call fcn.01056f43
test eax, eax
jne 0x104ce62
push dword [esi + 0x1c]
call fcn.01056f43
test eax, eax
jne 0x104ce62
push 0x1007a48
push 4
call fcn.0105e573
cmp dword [ebp + 8], ebx
je 0x104ce6f
mov eax, dword [esi + 0x68]
mov edx, dword [esi + 0x6c]
jmp 0x104ce7b
mov eax, dword [esi + 0x78]
add eax, dword [esi + 0x68]
mov edx, dword [esi + 0x7c]
adc edx, dword [esi + 0x6c]
pop esi
pop ebx
leave
ret 4
Function at 0x104d1ec
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
cmp ecx, esi
mov dword [ebp - 0x314], ecx
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x324], esi
je 0x104d339
cmp eax, esi
je 0x104d339
mov dword [ebp - 0x328], 0x80
mov dword [ebp - 0x318], esi
push ebx
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x318]
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x104d338
inc dword [ebp - 0x318]
lea eax, [ebp - 0x31c]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x314]
mov dword [ebp - 0x328], 0x80
mov dword [ebp - 0x31c], esi
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x104d338
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x320]
push eax
push esi
push 0x10078b4
push dword [ebp - 0x31c]
mov dword [ebp - 0x320], 1
mov dword [ebp - 0x330], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x104d311
cmp dword [ebp - 0x320], 1
jne 0x104d311
push dword [ebp - 0x32c]
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x104d311
inc ebx
mov dword [ebp - 0x324], ebx
push dword [ebp - 0x31c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x104d23d
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x314]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x324]
xor ecx, ebp
pop esi
call fcn.01047417
leave
ret 8
Function at 0x104d793
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x418], ebx
je 0x104d8c2
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcsstr]
push 0x1007c60
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x104d7ef
push 0x1007c3c
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x104d7ef
mov dword [ebp - 0x418], 1
jmp 0x104d8c1
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x104d8c1
lea eax, [ebp - 0x414]
push eax
push 0x1007c1c
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.01034d76
add esp, 0x10
test eax, eax
jl 0x104d8c1
cmp dword [ebp + 0xc], 0xd2af9
jne 0x104d8a8
lea eax, [ebp - 0x41c]
push eax
push 2
push ebx
push 0x10026d8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x41c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x104d8c1
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x104d864
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
inc esi
push esi
push ebx
push 0x1007bf4
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x41c]
mov dword [ebp - 0x418], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x104d8c1
push 0xffff
push ebx
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0105ab51
mov dword [ebp - 0x418], eax
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret 8
Function at 0x104ddb3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], 0x80004005
je 0x104df8f
cmp dword [ebp + 0x10], esi
je 0x104df8f
mov edi, dword [ebp + 0xc]
inc edi
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
cmp ebx, esi
pop ecx
mov dword [ebp - 0x10], ebx
je 0x104df8f
push dword [ebp + 8]
push edi
push ebx
call fcn.01034c79
mov edi, dword [sym.imp.msvcrt.dll_wcschr]
push 0x2c
push ebx
call edi
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
je 0x104df81
mov word [ebx], si
inc ebx
inc ebx
cmp word [ebx], 0x20
je 0x104de28
push 0x2c
push ebx
call edi
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x104de7e
and word [esi], 0
inc esi
inc esi
cmp word [esi], 0x20
je 0x104de40
push 0x2c
push esi
call edi
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x104de65
and word [edi], 0
inc edi
inc edi
cmp word [edi], 0x20
je 0x104de59
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x104de6a
sub eax, edx
sar eax, 1
jne 0x104de81
xor esi, esi
jmp 0x104de81
mov edi, dword [ebp - 0xc]
push SysReAllocString
push dword [ebp - 0x10]
call fcn.010587f2
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x104df81
xor ecx, ecx
push 2
pop edx
mov eax, 0x104
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
mov dword [ebp + 0xc], 0x208
je 0x104df78
lea eax, [ebp + 0xc]
push eax
push ebx
lea eax, [ebp + 8]
push eax
push 0
push esi
push dword [ebp - 4]
mov dword [ebp + 8], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x104df6d
cmp dword [ebp + 8], 1
je 0x104df4c
cmp dword [ebp + 8], 2
je 0x104df4c
push 4
pop eax
cmp dword [ebp + 8], eax
jne 0x104df6d
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
xor edi, edi
push edi
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x104df6d
push dword [ebp - 0xc]
push 0x1007d40
push 0x104
push ebx
call fcn.01034d76
add esp, 0x10
test eax, eax
jl 0x104df6d
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], edi
mov dword [eax], ebx
jmp 0x104df78
and dword [ebp - 8], 0
test edi, edi
je 0x104df66
push ebx
call fcn.01056bba
push edi
push 0x104
push ebx
call fcn.01034cee
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
xor ebx, ebx
test ebx, ebx
je 0x104df78
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp - 8]
pop ecx
jmp 0x104df94
mov eax, 0x8007000e
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x104e379
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
xor edi, edi
cmp dword [ebp + 0x18], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 1
je 0x104e489
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x104e3ab
sub eax, edx
sar eax, 1
lea edi, [eax + 0x15]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x104e3ef
push 0x1007db0
push 2
call fcn.0105e573
mov eax, 0x8007000e
jmp 0x104e4e9
mov eax, dword [0x107fda0]
cmp eax, 0xff
jne 0x104e405
call fcn.010571af
mov dword [0x107fda0], eax
test eax, eax
jbe 0x104e47b
push eax
push dword [ebp + 0xc]
push 0x1007d9c
push edi
push ebx
call fcn.01034d76
mov eax, dword [ebp + 0x14]
add esp, 0x14
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x104e43f
inc eax
cmp dword [ebp - 0xc], eax
je 0x104e474
push dword [ebp + 0xc]
push 0x1007d90
push edi
push ebx
call fcn.01034d76
mov eax, dword [ebp + 0x14]
add esp, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x104e4b2
inc eax
cmp dword [ebp - 0xc], eax
jne 0x104e4b2
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
xor edi, edi
cmp dword [ebp - 0x10], edi
pop ecx
jne 0x104e4c2
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x104e4bb
cmp dword [ebp - 0xc], 1
jne 0x104e4bb
mov dword [ebp - 4], edi
jmp 0x104e4c7
mov dword [ebp - 4], 0x80004005
jmp 0x104e47b
mov dword [ebp - 4], 0x80004005
cmp dword [ebp - 4], edi
jl 0x104e4e6
mov eax, dword [ebp + 0xc]
cmp eax, edi
jne 0x104e4d3
mov eax, 0x1007b50
push eax
push dword [ebp + 0x10]
push 0x1007dc8
push 4
call fcn.0105e5ad
add esp, 0x10
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14