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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
mov dword [ebp - 8], 1
mov eax, ecx
mov dword [ebp - 0xc], ebx
push esi
mov esi, ebx
mov dword [ebp - 0x14], eax
push edi
mov edi, edx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], ebx
je 0x423a93
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
ret
jne 0x423986
sub ecx, edx
sar ecx, 1
push 2
pop edx
lea eax, [ecx + 0x15]
xor ecx, ecx
mov dword [ebp - 0x10], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00440dea
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4239e3
cmp dword [0x442534], 0xffffffff
jne 0x4239ca
push ecx
push 2
pop eax
mov edx, eax
call fcn.0041e30f
push 2
pop eax
mov edx, 0x405988
mov ecx, eax
call fcn.0041e767
mov eax, 0x8007000e
jmp 0x423ae3
mov eax, dword [0x44253c]
cmp eax, 0xff
jne 0x4239f9
call fcn.0041f6b4
mov dword [0x44253c], eax
test eax, eax
je 0x423a81
push eax
push edi
push 0x4059a0
push dword [ebp - 0x10]
push ebx
call fcn.0040c0e1
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 4]
add esp, 0x14
mov dword [ebp - 4], 0x208
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x423a44
inc eax
cmp dword [ebp - 8], eax
jne 0x423a44
xor esi, esi
mov dword [ebp - 0xc], eax
jmp 0x423a81
push edi
push 0x4059b4
push dword [ebp - 0x10]
push ebx
call fcn.0040c0e1
add esp, 0x10
mov dword [ebp - 4], 0x208
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x423a7c
inc eax
cmp dword [ebp - 8], eax
je 0x423a3d
mov esi, 0x80004005
push ebx
call fcn.00440db7
cmp dword [ebp - 0xc], 0
pop ecx
jne 0x423ac1
mov eax, dword [ebp - 0x14]
xor ebx, ebx
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0x208
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x423abc
cmp dword [ebp - 8], 1
jne 0x423abc
mov esi, ebx
jmp 0x423ac5
mov esi, 0x80004005
test esi, esi
js 0x423ae1
test edi, edi
jne 0x423ace
mov edi, 0x4045d8
push edi
push dword [ebp + 8]
push 0x4059c0
push 4
call fcn.0041e83a
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x423aea
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x42c], eax
cmp dword [ecx + 4], 3
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x428], ebx
jne 0x423d44
push esi
mov esi, dword [ecx + 0xc]
test esi, esi
je 0x423d43
mov ecx, esi
call fcn.0041f21e
test eax, eax
je 0x423d43
push edi
mov ecx, esi
push 2
pop edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, bx
jne 0x423b45
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
xor ecx, ecx
mov eax, ebx
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00440dea
mov edi, eax
mov dword [ebp - 0x430], edi
pop ecx
test edi, edi
je 0x423d42
push esi
mov edx, ebx
mov ecx, edi
call fcn.0040c040
push 0x4059f8
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x423d3b
xor eax, eax
push 0x405780
push edi
mov word [esi], ax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x423bba
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x423bc8
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov ecx, edi
call fcn.004224d8
mov ebx, eax
add esi, 2
push 0x4059f8
push esi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x423be2
xor ecx, ecx
mov word [eax], cx
test esi, esi
je 0x423d3b
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x418]
jne 0x423bef
sub ecx, edx
sar ecx, 1
je 0x423d3b
lea eax, [ebp - 0x420]
xor ecx, ecx
push eax
push 0x20019
push ecx
push esi
push ebx
mov dword [ebp - 0x420], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x423d3b
mov eax, 0x104
mov dword [ebp - 0x41c], 1
mov dword [ebp - 0x418], eax
xor ebx, ebx
mov dword [ebp - 0x424], eax
mov esi, ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x41c]
push eax
push ebx
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x423d2f
mov edi, dword [ebp - 0x42c]
xor eax, eax
mov dword [ebp - 0x418], 0x104
inc esi
mov dword [ebp - 0x424], 0x208
cmp ax, word [ebp - 0x20c]
je 0x423cf0
cmp ax, word [ebp - 0x414]
je 0x423cf0
cmp dword [ebp - 0x41c], 1
je 0x423cc6
cmp dword [ebp - 0x41c], 2
jne 0x423ce0
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
ret
jne 0x423ccf
sub ecx, edx
sar ecx, 1
je 0x423cf0
mov dword [ebp - 0x428], 1
test edi, edi
je 0x423d29
inc dword [edi]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x41c]
push eax
push ebx
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x423c8b
mov edi, dword [ebp - 0x430]
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00440db7
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x428]
xor ecx, ebp
pop ebx
call fcn.00441130
leave
ret 4
Function at 0x4255a4
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x120], ecx
mov ecx, dword [ebp + 8]
and dword [ebp - 0x114], ebx
push esi
push edi
mov dword [ebp - 0x124], ecx
xor edi, edi
mov eax, edi
sub eax, 0
je 0x425607
sub eax, 1
je 0x425600
sub eax, 1
je 0x4255f9
sub eax, 1
je 0x4255f2
mov esi, 0x40738c
jmp 0x42560c
mov esi, 0x40717c
jmp 0x42560c
mov esi, 0x407164
jmp 0x42560c
mov esi, 0x4071c8
jmp 0x42560c
mov esi, 0x407284
lea eax, [ebp - 0x114]
push eax
push 0x2001f
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4256ef
xor ecx, ecx
mov dword [ebp - 0x11c], 0x80
mov eax, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x118], eax
push ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x10c]
push ecx
push eax
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4256e3
inc dword [ebp - 0x118]
lea eax, [ebp - 0x110]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x11c], 0x80
push eax
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4256e3
lea eax, [ebp - 0x10c]
push eax
push 0x405d94
push 4
call fcn.0041e83a
mov ecx, dword [ebp - 0x120]
add esp, 0xc
push esi
push dword [ebp - 0x110]
call fcn.00425281
push dword [ebp - 0x110]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
js 0x4256e3
mov eax, dword [ebp - 0x118]
xor ecx, ecx
jmp 0x425644
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
js 0x425703
mov ecx, dword [ebp - 0x124]
inc edi
cmp edi, 5
jl 0x4255d5
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441130
leave
ret 4
Function at 0x425716
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xdc], ebx
push esi
push edi
test ebx, ebx
jne 0x425745
mov eax, 0x80004003
jmp 0x425955
mov esi, dword [ecx]
test esi, esi
je 0x425953
xor edi, edi
mov dword [ebp - 0xd8], edi
mov ecx, dword [esi]
test ecx, ecx
je 0x425948
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd4], edi
push eax
call fcn.00424cce
test eax, eax
jne 0x425948
lea eax, [ebp - 0xd0]
push eax
push 0x4072f8
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x425948
lea eax, [ebp - 0xd0]
push eax
push 0x405dbc
push 4
call fcn.0041e83a
add esp, 0xc
lea eax, [ebp - 0xd4]
push edi
push eax
push edi
push 0x2001f
push edi
push edi
push edi
lea eax, [ebp - 0xd0]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x425948
mov ecx, dword [esi]
lea eax, [ebp - 0xd0]
push 0xc8
push eax
call fcn.00424758
test eax, eax
je 0x42593c
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x425800
cmp dword [eax], 4
je 0x42593c
mov edi, dword [eax + 0xc]
test edi, edi
je 0x42593a
mov ecx, dword [ebp - 0xd4]
lea edx, [ebp - 0xd0]
push edi
call fcn.00421eb6
mov ebx, eax
test ebx, ebx
je 0x425934
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xd8]
jne 0x42582c
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
xor edi, edi
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esi]
lea eax, [ebp - 0xd0]
push 0x64
push eax
call fcn.00424758
test eax, eax
je 0x4258a0
lea ecx, [ebp - 0xd0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x425872
sub ecx, edx
mov edx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0xd0]
push eax
push ecx
push ecx
push 0x407558
xor ecx, ecx
call fcn.0042247c
mov ecx, dword [esi]
lea eax, [ebp - 0xd0]
push eax
call fcn.00424cce
test eax, eax
js 0x4258e9
lea ecx, [ebp - 0xd0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4258bb
sub ecx, edx
mov edx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0xd0]
push eax
push ecx
push ecx
push 0x4070d0
xor ecx, ecx
call fcn.0042247c
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
test edx, edx
je 0x425925
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xd8]
jne 0x4258f7
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push ecx
push ecx
push 0x407114
mov edx, ebx
xor ecx, ecx
call fcn.0042247c
xor edi, edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0xdc]
jmp 0x42593c
mov ebx, dword [ebp - 0xdc]
xor edi, edi
push dword [ebp - 0xd4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esi + 4]
test esi, esi
jne 0x425757
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441130
leave
ret 8
Function at 0x425abc
Capabilities:
Delete directory
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x48], ebx
je 0x425bc2
mov edx, dword [esi + 0x18]
test edx, edx
je 0x425bc2
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x425af1
sub ecx, edi
sar ecx, 1
cmp ecx, 6
jbe 0x425bc2
push 0x5c
push edx
call dword [sym.imp.msvcrt.dll_wcsrchr]
push dword [esi + 0x18]
mov edi, eax
mov dword [ebp - 0x420], 1
push 0x405de8
push 4
call fcn.0041e83a
add esp, 0x14
test edi, edi
je 0x425b39
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x41c]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x425bc2
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push dword [esi + 0x18]
mov edx, edi
lea ecx, [ebp - 0x214]
call fcn.0040c040
lea eax, [ebp - 0x214]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x425b88
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x425bb5
mov ecx, dword [esi + 0x18]
lea edx, [ebp - 0x420]
call fcn.00420c8b
push dword [esi + 0x18]
jmp 0x425bbc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [esi + 0x4c], ebx
je 0x425bda
cmp dword [ebp + 8], ebx
je 0x425bda
cmp dword [esi + 0x1c], ebx
je 0x425bda
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x50], ebx
je 0x425bf8
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x425bf8
call fcn.0041f198
test eax, eax
je 0x425bf8
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441130
leave
ret 4
Function at 0x425d2f
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
call fcn.0041eb99
mov edi, eax
test edi, edi
js 0x425ebd
mov ecx, esi
call fcn.00425c09
xor eax, eax
cmp dword [esi + 0x84], eax
je 0x425ebd
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x425ebd
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push dword [esi + 4]
mov edx, 0x104
lea ecx, [ebp - 0x214]
call fcn.0040c075
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x425ebd
test al, 0x10
jne 0x425ebd
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x425ebd
and dword [ebp - 0x218], 0
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x425eb6
mov edx, dword [ebp - 0x218]
xor ecx, ecx
or ecx, eax
cmp ecx, dword [esi + 0x70]
jne 0x425eb6
cmp edx, dword [esi + 0x74]
jne 0x425eb6
add esi, 0x1c
je 0x425eb1
cmp dword [esi], 0
je 0x425e47
push dword [esi]
call fcn.00440db7
xor edi, edi
pop ecx
mov dword [esi], edi
jmp 0x425e49
xor edi, edi
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x425e52
sub ecx, edx
sar ecx, 1
push 2
pop edx
lea edi, [ecx + 1]
xor ecx, ecx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00440dea
mov dword [esi], eax
pop ecx
test eax, eax
jne 0x425e88
mov edi, 0x8007000e
jmp 0x425eb6
lea ecx, [ebp - 0x214]
mov edx, edi
push ecx
mov ecx, eax
call fcn.0040c040
mov edi, eax
test edi, edi
jns 0x425eb6
cmp dword [esi], 0
je 0x425eb6
push dword [esi]
call fcn.00440db7
xor eax, eax
pop ecx
mov dword [esi], eax
jmp 0x425eb6
mov edi, 0x80004003
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441130
leave
ret 4
Function at 0x4262fe
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x68], ebx
jne 0x4263c8
cmp dword [esi + 0x6c], ebx
jne 0x4263c8
mov eax, dword [esi + 0x2c]
cmp eax, 1
je 0x426373
jle 0x4263c8
cmp eax, 4
jle 0x42633a
cmp eax, 6
jne 0x4263c8
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x426352
mov edx, dword [esi + 0x14]
push ecx
call fcn.0043a6c2
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], edx
jmp 0x4263c8
cmp dword [0x442534], 0xffffffff
jne 0x426364
push ecx
push 2
pop edx
call fcn.0041e30f
push 2
mov edx, 0x405e84
pop ecx
call fcn.0041e767
jmp 0x4263c8
mov ecx, dword [esi + 0x18]
mov dword [ebp - 4], ebx
call fcn.0041f21e
test eax, eax
je 0x4263c8
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4263c8
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4263c1
mov edx, dword [ebp - 4]
xor ecx, ecx
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]
cmp dword [esi + 0x54], ebx
jne 0x426408
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x426408
call fcn.0041f21e
test eax, eax
jne 0x426408
mov ecx, dword [esi + 0x1c]
call fcn.0041f21e
test eax, eax
jne 0x426408
cmp dword [0x442534], 0xffffffff
jne 0x4263fb
push ecx
push 4
pop edx
call fcn.0041e30f
push 4
mov edx, 0x405ec0
pop ecx
call fcn.0041e767
mov edx, dword [esi + 0x68]
mov edi, dword [esi + 0x6c]
cmp dword [ebp + 8], ebx
jne 0x426419
add edx, dword [esi + 0x78]
adc edi, dword [esi + 0x7c]
mov eax, edx
mov edx, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x427e65
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x23c], 0
jne 0x427f0c
push 0x208
call fcn.00440dea
mov esi, eax
pop ecx
test esi, esi
jne 0x427ea3
mov eax, 0x80004005
jmp 0x427f0e
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x427efa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x186a0
div ecx
lea eax, [ebp - 0x20c]
push edx
push eax
push 0x4065d0
push 0x104
push esi
call fcn.0040c125
add esp, 0x14
test eax, eax
js 0x427efa
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x427efa
mov dword [edi + 0x23c], esi
cmp dword [edi + 0x23c], 0
jne 0x427f0c
push esi
call fcn.00440db7
pop ecx
jmp 0x427e9c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00441130
leave
ret
Function at 0x42d593
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x414]
xor ebx, ebx
push eax
push 0x104
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x42d669
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x186a0
div ecx
push 0x408978
push edx
lea eax, [ebp - 0x414]
push eax
push 0x40767c
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.0040c125
add esp, 0x18
test eax, eax
js 0x42d669
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42d669
lea ecx, [ebp - 0x20c]
push 2
lea edx, [ecx + 2]
pop esi
mov ax, word [ecx]
add ecx, esi
cmp ax, bx
jne 0x42d61f
sub ecx, edx
sar ecx, 1
push edi
lea edi, [ecx + 1]
xor ecx, ecx
mov eax, edi
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00440dea
mov esi, eax
pop ecx
test esi, esi
je 0x42d668
lea eax, [ebp - 0x20c]
mov edx, edi
push eax
mov ecx, esi
call fcn.0040c040
test eax, eax
jns 0x42d668
push esi
call fcn.00440db7
pop ecx
mov esi, ebx
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441130
leave
ret

Function at 0x42d679
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x42d6bb
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
lea ebx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, word [ebp - 4]
jne 0x42d691
sub esi, ebx
sar esi, 1
lea eax, [esi*2 + 2]
push eax
push dword [ebp + 8]
xor eax, eax
push 1
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
pop ebx
leave
ret 4
Function at 0x42d9d6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi], esi
je 0x42daf1
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
push eax
mov ebx, 0x20019
push ebx
push esi
push 0x407698
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42da4f
lea eax, [ebp - 0x214]
push eax
push ebx
push esi
push 0x407698
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x214]
mov dword [ebp - 0x214], eax
jmp 0x42da55
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x42dad5
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], esi
push ecx
xor ebx, ebx
inc ebx
push ebx
push esi
push dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42dac9
lea eax, [ebp - 0x220]
mov dword [ebp - 0x21c], ebx
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x220], 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push 0x4076f4
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42dabd
cmp dword [ebp - 0x21c], ebx
jne 0x42dabd
mov esi, ebx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [edi]
test esi, esi
je 0x42dae2
push 0x407724
jmp 0x42dae7
push 0x407750
push 4
call fcn.0041e83a
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441130
leave
ret

Function at 0x42db12
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
inc esi
xor ebx, ebx
push esi
push ebx
push 0x407798
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42dba3
push 4
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 0x10]
pop ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ebx
push eax
push 0
push 0x40780c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42db9a
cmp dword [ebp - 8], ebx
jne 0x42db9a
cmp dword [ebp - 0xc], eax
jne 0x42db9a
cmp dword [0x442534], 0xffffffff
jne 0x42db88
push ecx
mov edx, ebx
call fcn.0041e30f
mov edx, 0x407840
mov ecx, ebx
call fcn.0041e767
mov esi, dword [edi + 0x98]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret