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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
xor ebx, ebx
lea eax, [ebp - 4]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
push eax
push ebx
push ebx
mov edi, ecx
mov dword [ebp - 0x10], ebx
push ebx
push edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x422353
xor eax, eax
jmp 0x422451
mov eax, dword [ebp - 4]
push 0xa
pop ecx
mov dword [ebp - 0xc], ecx
cmp eax, ecx
jae 0x422362
mov eax, ecx
push esi
add eax, 5
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 4], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044183a
mov esi, eax
pop ecx
test esi, esi
je 0x422450
mov dword [ebp - 8], ebx
cmp dword [ebp - 0x10], ebx
jbe 0x422443
push ebx
push 0x406ccc
push 0x405474
push dword [ebp - 4]
push esi
call fcn.0040c0b5
add esp, 0x14
lea eax, [ebp - 8]
push eax
push 3
xor eax, eax
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422439
push 0x208
call fcn.0044183a
mov edi, eax
pop ecx
test edi, edi
je 0x42242d
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], 1
push eax
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0x104
push eax
xor eax, eax
push eax
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422426
cmp dword [ebp - 0x14], 1
jne 0x422426
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x18]
jne 0x422404
sub ecx, edx
sar ecx, 1
je 0x422426
push dword [ebp + 8]
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x422459
push edi
call fcn.00441807
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x1c]
inc ebx
cmp ebx, dword [ebp - 0x10]
jb 0x422394
push esi
call fcn.00441807
xor eax, eax
mov esi, eax
pop ecx
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00441807
jmp 0x42244d
Function at 0x42268c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x422739
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x2001f
push ebx
push edi
push esi
mov dword [ebp - 0x210], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422738
jmp 0x4226f4
test eax, eax
jne 0x422724
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
call fcn.0042268c
test eax, eax
jne 0x422724
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x4226db
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00441b90
mov esp, ebp
pop ebp
ret

Function at 0x422749
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, edx
xor ebx, ebx
mov dword [ebp - 4], ebx
test edi, edi
jne 0x422761
push 6
pop eax
jmp 0x42279f
test ecx, ecx
jne 0x42278c
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42278c
cmp dword [ebp + 8], ebx
jne 0x422785
cmp dword [ebp - 4], 2
jbe 0x42278c
mov eax, 0xb7
jmp 0x42279f
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 1
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x422882
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 1
push ebx
push 0x405480
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4228f9
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x10], 4
push eax
push ebx
push 0x4054f0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4228f0
cmp dword [ebp - 4], 4
je 0x4228e7
cmp dword [ebp - 4], 3
jne 0x4228f0
xor ebx, ebx
cmp dword [ebp - 0xc], 1
setne bl
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422a0e
Capabilities:
Check if file exists
Delete file
Get file attributes
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x420], 0
lea eax, [ebp - 0x420]
push eax
push 0x20019
push 0
push 0x405560
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422af7
push ebx
push esi
lea eax, [ebp - 0x428]
xor esi, esi
push eax
lea eax, [ebp - 0x41c]
inc esi
push eax
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], esi
push eax
push 0
push 0x4055b8
push dword [ebp - 0x420]
mov ebx, 0x105
mov dword [ebp - 0x428], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422ae9
cmp dword [ebp - 0x424], esi
jne 0x422ae9
push esi
push 0x4055f4
lea eax, [ebp - 0x41c]
push eax
push 0x405604
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0040c0b5
add esp, 0x18
test eax, eax
js 0x422ae3
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x422ae3
test al, 0x10
jne 0x422ae3
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, 0x10
jl 0x422a9a
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441b90
mov esp, ebp
pop ebp
ret

Function at 0x422b73
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x144
mov edi, ecx
push 0
push edi
call sub.msvcrt.dll_memset
and dword [edi], 0
lea ebx, [edi + 0xe0]
add esp, 0xc
mov esi, 0x400
push 0x32
push ebx
push 0x1010
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push ebx
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
push 0x32
push ebx
mov dword [edi + 0x14], eax
xor eax, eax
push 0x12
push esi
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push ebx
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
push 0x32
lea esi, [edi + 0x18]
mov dword [edi + 4], eax
push esi
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x32
mov dword [edi + 0xc], esi
lea esi, [edi + 0x7c]
push esi
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x32
push ebx
push 0x10
xor eax, eax
mov dword [edi + 0x10], esi
push 0x400
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx eax, word [ebx]
xor ecx, ecx
cmp cx, ax
je 0x422c4f
push 0x30
pop ecx
cmp cx, ax
je 0x422c4f
imul eax, dword [edi + 8], 0xa
push ebx
mov dword [edi + 8], eax
call dword [sym.imp.msvcrt.dll__wtoi]
add dword [edi + 8], eax
pop ecx
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
xor edx, edx
movzx ecx, word [ebx]
mov eax, ecx
cmp dx, cx
jne 0x422c19
pop edi
pop esi
pop ebx
ret
Function at 0x423154
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 [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov ebx, edx
test edi, edi
je 0x423270
push 0x40582c
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x4231a4
push 0x405848
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x4231a4
inc esi
jmp 0x423270
mov edi, 0x104
lea eax, [ebp - 0x418]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x423270
lea eax, [ebp - 0x418]
push eax
push 0x40586c
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.0040c0b5
add esp, 0x10
test eax, eax
js 0x423270
cmp ebx, 0xd2af9
jne 0x42325b
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], esi
push eax
push 2
push esi
push 0x401848
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x423270
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x423218
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push esi
push 0x40588c
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x41c]
xor esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x423270
push 0xffff
push esi
lea edx, [ebp - 0x210]
xor ecx, ecx
call fcn.00421804
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret
Function at 0x423d0d
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 0x423e4b
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x423d3e
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.0044183a
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x423d9b
cmp dword [0x443534], 0xffffffff
jne 0x423d82
push ecx
push 2
pop eax
mov edx, eax
call fcn.0041e530
push 2
pop eax
mov edx, 0x405978
mov ecx, eax
call fcn.0041e988
mov eax, 0x8007000e
jmp 0x423e9b
mov eax, dword [0x44353c]
cmp eax, 0xff
jne 0x423db1
call fcn.0041f929
mov dword [0x44353c], eax
test eax, eax
je 0x423e39
push eax
push edi
push 0x405990
push dword [ebp - 0x10]
push ebx
call fcn.0040c0b5
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 0x423dfc
inc eax
cmp dword [ebp - 8], eax
jne 0x423dfc
xor esi, esi
mov dword [ebp - 0xc], eax
jmp 0x423e39
push edi
push 0x4059a4
push dword [ebp - 0x10]
push ebx
call fcn.0040c0b5
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 0x423e34
inc eax
cmp dword [ebp - 8], eax
je 0x423df5
mov esi, 0x80004005
push ebx
call fcn.00441807
cmp dword [ebp - 0xc], 0
pop ecx
jne 0x423e79
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 0x423e74
cmp dword [ebp - 8], 1
jne 0x423e74
mov esi, ebx
jmp 0x423e7d
mov esi, 0x80004005
test esi, esi
js 0x423e99
test edi, edi
jne 0x423e86
mov edi, 0x4045c8
push edi
push dword [ebp + 8]
push 0x4059b0
push 4
call fcn.0041ea5f
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x423ea4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x4434f4]
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 0x4240fe
push esi
mov esi, dword [ecx + 0xc]
test esi, esi
je 0x4240fd
mov ecx, esi
call fcn.0041f47f
test eax, eax
je 0x4240fd
push edi
mov ecx, esi
push 2
pop edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, bx
jne 0x423eff
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.0044183a
mov edi, eax
mov dword [ebp - 0x430], edi
pop ecx
test edi, edi
je 0x4240fc
push esi
mov edx, ebx
mov ecx, edi
call fcn.0040c010
push 0x4059e8
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4240f5
xor eax, eax
push 0x405770
push edi
mov word [esi], ax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x423f74
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x423f82
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov ecx, edi
call fcn.004227a7
mov ebx, eax
add esi, 2
push 0x4059e8
push esi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x423f9c
xor ecx, ecx
mov word [eax], cx
test esi, esi
je 0x4240f5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x418]
jne 0x423fa9
sub ecx, edx
sar ecx, 1
je 0x4240f5
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 0x4240f5
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 0x4240e9
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 0x4240aa
cmp ax, word [ebp - 0x414]
je 0x4240aa
cmp dword [ebp - 0x41c], 1
je 0x424080
cmp dword [ebp - 0x41c], 2
jne 0x42409a
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x424089
sub ecx, edx
sar ecx, 1
je 0x4240aa
mov dword [ebp - 0x428], 1
test edi, edi
je 0x4240e3
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 0x424045
mov edi, dword [ebp - 0x430]
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00441807
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x428]
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret 4
Function at 0x425984
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4434f4]
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 0x4259e7
sub eax, 1
je 0x4259e0
sub eax, 1
je 0x4259d9
sub eax, 1
je 0x4259d2
mov esi, 0x40737c
jmp 0x4259ec
mov esi, 0x40716c
jmp 0x4259ec
mov esi, 0x407154
jmp 0x4259ec
mov esi, 0x4071b8
jmp 0x4259ec
mov esi, 0x407274
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 0x425acf
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 0x425ac3
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 0x425ac3
lea eax, [ebp - 0x10c]
push eax
push 0x405d84
push 4
call fcn.0041ea5f
mov ecx, dword [ebp - 0x120]
add esp, 0xc
push esi
push dword [ebp - 0x110]
call fcn.0042565f
push dword [ebp - 0x110]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
js 0x425ac3
mov eax, dword [ebp - 0x118]
xor ecx, ecx
jmp 0x425a24
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
js 0x425ae3
mov ecx, dword [ebp - 0x124]
inc edi
cmp edi, 5
jl 0x4259b5
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret 4
Function at 0x425af8
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x4434f4]
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 0x425b27
mov eax, 0x80004003
jmp 0x425d37
mov esi, dword [ecx]
test esi, esi
je 0x425d35
xor edi, edi
mov dword [ebp - 0xd8], edi
mov ecx, dword [esi]
test ecx, ecx
je 0x425d2a
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd4], edi
push eax
call fcn.004250aa
test eax, eax
jne 0x425d2a
lea eax, [ebp - 0xd0]
push eax
push 0x4072e8
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x425d2a
lea eax, [ebp - 0xd0]
push eax
push 0x405dac
push 4
call fcn.0041ea5f
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 0x425d2a
mov ecx, dword [esi]
lea eax, [ebp - 0xd0]
push 0xc8
push eax
call fcn.00424b1c
test eax, eax
je 0x425d1e
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x425be2
cmp dword [eax], 4
je 0x425d1e
mov edi, dword [eax + 0xc]
test edi, edi
je 0x425d1c
mov ecx, dword [ebp - 0xd4]
lea edx, [ebp - 0xd0]
push edi
call fcn.0042217c
mov ebx, eax
test ebx, ebx
je 0x425d16
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xd8]
jne 0x425c0e
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.00424b1c
test eax, eax
je 0x425c82
lea ecx, [ebp - 0xd0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x425c54
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 0x407548
xor ecx, ecx
call fcn.00422749
mov ecx, dword [esi]
lea eax, [ebp - 0xd0]
push eax
call fcn.004250aa
test eax, eax
js 0x425ccb
lea ecx, [ebp - 0xd0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x425c9d
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 0x4070c0
xor ecx, ecx
call fcn.00422749
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
test edx, edx
je 0x425d07
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xd8]
jne 0x425cd9
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push ecx
push ecx
push 0x407104
mov edx, ebx
xor ecx, ecx
call fcn.00422749
xor edi, edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0xdc]
jmp 0x425d1e
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 0x425b39
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret 8
Function at 0x425ea0
Capabilities:
Delete directory
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4434f4]
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 0x425fa6
mov edx, dword [esi + 0x18]
test edx, edx
je 0x425fa6
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x425ed5
sub ecx, edi
sar ecx, 1
cmp ecx, 6
jbe 0x425fa6
push 0x5c
push edx
call dword [sym.imp.msvcrt.dll_wcsrchr]
push dword [esi + 0x18]
mov edi, eax
mov dword [ebp - 0x420], 1
push 0x405dd8
push 4
call fcn.0041ea5f
add esp, 0x14
test edi, edi
je 0x425f1d
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 0x425fa6
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.0040c010
lea eax, [ebp - 0x214]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x425f6c
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 0x425f99
mov ecx, dword [esi + 0x18]
lea edx, [ebp - 0x420]
call fcn.00420f22
push dword [esi + 0x18]
jmp 0x425fa0
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [esi + 0x4c], ebx
je 0x425fbe
cmp dword [ebp + 8], ebx
je 0x425fbe
cmp dword [esi + 0x1c], ebx
je 0x425fbe
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x50], ebx
je 0x425fdc
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x425fdc
call fcn.0041f3f3
test eax, eax
je 0x425fdc
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.00441b90
mov esp, ebp
pop ebp
ret 4
Function at 0x426117
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 [0x4434f4]
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.0041ede1
mov edi, eax
test edi, edi
js 0x4262a5
mov ecx, esi
call fcn.00425fef
xor eax, eax
cmp dword [esi + 0x84], eax
je 0x4262a5
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4262a5
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.0040c045
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4262a5
test al, 0x10
jne 0x4262a5
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 0x4262a5
and dword [ebp - 0x218], 0
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x42629e
mov edx, dword [ebp - 0x218]
xor ecx, ecx
or ecx, eax
cmp ecx, dword [esi + 0x70]
jne 0x42629e
cmp edx, dword [esi + 0x74]
jne 0x42629e
add esi, 0x1c
je 0x426299
cmp dword [esi], 0
je 0x42622f
push dword [esi]
call fcn.00441807
xor edi, edi
pop ecx
mov dword [esi], edi
jmp 0x426231
xor edi, edi
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x42623a
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.0044183a
mov dword [esi], eax
pop ecx
test eax, eax
jne 0x426270
mov edi, 0x8007000e
jmp 0x42629e
lea ecx, [ebp - 0x214]
mov edx, edi
push ecx
mov ecx, eax
call fcn.0040c010
mov edi, eax
test edi, edi
jns 0x42629e
cmp dword [esi], 0
je 0x42629e
push dword [esi]
call fcn.00441807
xor eax, eax
pop ecx
mov dword [esi], eax
jmp 0x42629e
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.00441b90
mov esp, ebp
pop ebp
ret 4