joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fdd5
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
mov dword [ebp - 0x214], ecx
push esi
lea eax, [ebp - 0x20c]
mov edi, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41fe5e
push ecx
lea eax, [ebp - 0x210]
mov edx, esi
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040c15d
ret
invalid
invalid
test eax, eax
js 0x41fe5e
mov eax, dword [ebp - 0x210]
mov edx, esi
push ecx
push 0x401678
push ecx
lea ecx, [ebp - 0x20c]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.0040c1c3
test eax, eax
js 0x41fe5e
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41fe5e
test al, 0x10
je 0x41fec4
push esi
lea eax, [ebp - 0x20c]
xor ebx, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41fee5
push ecx
lea eax, [ebp - 0x210]
mov edx, esi
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040c15d
test eax, eax
js 0x41fee5
mov eax, dword [ebp - 0x210]
sub esi, eax
push ecx
push 0x40474c
push ecx
lea ecx, [ebp - 0x20c]
mov edx, esi
lea ecx, [ecx + eax*2]
call fcn.0040c1c3
test eax, eax
js 0x41fee5
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41fee3
test al, 0x10
jne 0x41fee3
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
shr edi, 1
push eax
mov edx, edi
call fcn.0040c040
xor ebx, ebx
test eax, eax
setns bl
jmp 0x41fee5
xor ebx, ebx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441130
leave
ret

Function at 0x41fef6
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41ff79
push ecx
lea eax, [ebp - 0x210]
mov edx, edi
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040c15d
test eax, eax
js 0x41ff79
mov eax, dword [ebp - 0x210]
sub edi, eax
push ecx
push 0x401678
push ecx
lea ecx, [ebp - 0x20c]
mov edx, edi
lea ecx, [ecx + eax*2]
call fcn.0040c1c3
test eax, eax
js 0x41ff79
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41ff79
test al, 0x10
jne 0x41ff79
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00441130
leave
ret
Function at 0x41ff89
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
mov esi, ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x420023
push ecx
lea eax, [ebp - 0x210]
mov edx, edi
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040c15d
test eax, eax
js 0x420023
mov eax, dword [ebp - 0x210]
mov edx, edi
push ecx
push 0x401c9c
push ecx
lea ecx, [ebp - 0x20c]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.0040c1c3
test eax, eax
js 0x420023
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x420023
test al, 0x10
jne 0x420023
lea eax, [ebp - 0x20c]
mov edx, edi
push eax
mov ecx, esi
call fcn.0040c040
test eax, eax
setns bl
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441130
leave
ret
Function at 0x420610
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x443f8c]
lea eax, [ebp - 4]
push edi
xor edi, edi
push edi
push eax
push edi
push 2
push edi
push edi
push edi
push 0x404770
push SysReAllocStringLen
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x420687
mov edx, 0x402e78
test esi, esi
jne 0x420650
mov edx, 0x4047d4
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x420655
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push edi
push 0x4037a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret

Function at 0x420804
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push 2
push 0
push 0x4047e0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x42085c
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 4
push esi
push 0x404844
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x42086c
push esi
push 0x404870
push 2
call fcn.0041e83a
add esp, 0xc
pop esi
leave
ret
Function at 0x420c22
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push esi
push edi
mov edi, ecx
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x420c86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x420c44
push 0x57
pop esi
cmp esi, 5
jne 0x420c86
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x420c86
test al, 1
je 0x420c86
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x420c86
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x420c77
xor esi, esi
jmp 0x420c86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x420c86
push 0x57
pop esi
pop edi
mov eax, esi
pop esi
ret
Function at 0x4211c4
Capabilities:
Copy file
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
test eax, 0x4000
je 0x42122c
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.0041e928
test eax, eax
je 0x42121e
mov ecx, dword [ebp - 8]
push ebx
push edi
call dword [0x445628]
call dword [ebp - 8]
test eax, eax
jne 0x42121e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x404ae8
push 2
call fcn.0041e83a
add esp, 0x10
cmp dword [ebp - 4], ebx
je 0x42122c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x4000
je 0x42128e
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.0041e928
test eax, eax
je 0x421280
mov ecx, dword [ebp - 8]
push ebx
push esi
call dword [0x445628]
call dword [ebp - 8]
test eax, eax
jne 0x421280
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x404ae8
push 2
call fcn.0041e83a
add esp, 0x10
cmp dword [ebp - 4], ebx
je 0x42128e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x421295
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x104
lea eax, [ebp - 0x210]
push edi
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x421372
push esi
mov edx, edi
lea ecx, [ebp - 0x418]
call fcn.0040c040
push ecx
lea eax, [ebp - 0x41c]
mov edx, edi
push eax
lea ecx, [ebp - 0x210]
call fcn.0040c15d
test eax, eax
js 0x42130f
mov eax, dword [ebp - 0x41c]
mov edx, edi
push ecx
push 0x404b28
push ecx
lea ecx, [ebp - 0x210]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.0040c1c3
lea eax, [ebp - 0x418]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x421372
push eax
mov edx, edi
lea ecx, [ebp - 0x210]
call fcn.0040c075
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x421372
test al, 0x10
jne 0x421372
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x418]
call fcn.004211c4
test eax, eax
jne 0x421372
push eax
push eax
push 1
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x418]
call fcn.0042086f
push esi
push 0x404b3c
push 4
call fcn.0041e83a
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
call fcn.00441130
leave
ret
Function at 0x421390
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push 0x28
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.00440dea
mov edi, eax
pop ecx
test edi, edi
jne 0x4213bd
mov eax, 0x8007000e
jmp 0x42153b
lea eax, [ebp - 4]
push eax
push 2
push esi
push 0x401858
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42144d
push 0x208
call fcn.00440dea
mov esi, eax
pop ecx
test esi, esi
je 0x421442
mov edx, 0x104
mov ecx, esi
call fcn.0041e973
test eax, eax
je 0x42143b
push 0x404eec
mov edx, 0x104
mov ecx, esi
call fcn.0040c075
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 8]
jne 0x42140f
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
xor eax, eax
push eax
push 0x404f00
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call fcn.00440db7
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x404f20
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x421516
push dword [0x443fa0]
push 0x4043e0
push 0x14
push edi
call fcn.0040c0e1
jmp 0x4214a7
mov eax, dword [0x443fa0]
cmp eax, 0x3e8
jge 0x4214bc
inc eax
push eax
push 0x4043e0
push 0x14
push edi
mov dword [0x443fa0], eax
call fcn.0040c0e1
add esp, 0x10
push esi
push esi
push esi
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x421487
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4214c1
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 2
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x4214f2
inc dword [0x443fa0]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x421516
push ebx
push 0x404fd4
push 4
call fcn.0041e83a
add esp, 0xc
mov esi, 0xd2af9
jmp 0x421532
jle 0x421521
movzx esi, si
or esi, 0x80070000
push esi
push ebx
push 0x404f94
push 2
call fcn.0041e83a
add esp, 0x10
push edi
call fcn.00440db7
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421eb6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 8]
push edi
push edi
push edi
push edi
push edi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x20], edi
push eax
push edi
push edi
mov esi, ecx
mov dword [ebp - 0xc], edi
push edi
mov ebx, edx
mov dword [ebp - 0x18], esi
push esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x421efc
xor eax, eax
jmp 0x422044
mov ecx, ebx
push 2
pop ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, ebx
cmp ax, di
jne 0x421f04
mov eax, dword [ebp - 8]
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x10], ecx
cmp ecx, eax
jbe 0x421f1e
mov eax, ecx
inc dword [ebp - 0xc]
add eax, 5
xor ecx, ecx
mov dword [ebp - 8], eax
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00440dea
mov edi, eax
pop ecx
test edi, edi
jne 0x421f49
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x421ef5
xor eax, eax
mov dword [ebp - 4], eax
mov ebx, eax
push ebx
push dword [ebp - 0x1c]
push 0x405484
push dword [ebp - 8]
push edi
call fcn.0040c0e1
add esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x2001f
xor eax, eax
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422019
cmp dword [ebp + 8], eax
je 0x421ff6
push 0x208
call fcn.00440dea
mov esi, eax
pop ecx
test esi, esi
je 0x421ff3
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x104
push eax
xor eax, eax
push eax
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x421fec
cmp dword [ebp - 0x14], 1
jne 0x421fec
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x20]
jne 0x421fca
sub ecx, edx
sar ecx, 1
je 0x421fec
push dword [ebp + 8]
push esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x422010
push esi
call fcn.00440db7
pop ecx
mov esi, dword [ebp - 0x18]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc ebx
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 0xc]
jbe 0x421f50
jmp 0x42203a
push esi
call fcn.00440db7
pop ecx
jmp 0x42203a
xor ecx, ecx
lea eax, [ebp - 4]
push ecx
push eax
push ecx
push 0x2001f
push ecx
push ecx
push ecx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
neg eax
sbb eax, eax
not eax
and dword [ebp - 4], eax
push edi
call fcn.00440db7
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42204b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
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 - 0xc]
mov dword [ebp - 0x18], ebx
push eax
push ebx
push ebx
mov edi, ecx
mov dword [ebp - 0xc], ebx
push ebx
push edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x422195
mov eax, dword [ebp - 4]
push 0xa
pop ecx
mov dword [ebp - 0x10], ecx
cmp eax, ecx
jae 0x422095
mov eax, ecx
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.00440dea
mov esi, eax
pop ecx
test esi, esi
je 0x422195
mov dword [ebp - 8], ebx
cmp dword [ebp - 0xc], ebx
jbe 0x422175
push ebx
push 0x406cdc
push 0x405484
push dword [ebp - 4]
push esi
call fcn.0040c0e1
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 0x42216b
push 0x208
call fcn.00440dea
mov edi, eax
pop ecx
test edi, edi
je 0x42215f
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 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 0x422158
cmp dword [ebp - 0x14], 1
jne 0x422158
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x18]
jne 0x422136
sub ecx, edx
sar ecx, 1
je 0x422158
push dword [ebp + 8]
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x422184
push edi
call fcn.00440db7
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x1c]
inc ebx
cmp ebx, dword [ebp - 0xc]
jb 0x4220c6
push esi
call fcn.00440db7
xor eax, eax
mov esi, eax
pop ecx
mov eax, esi
jmp 0x422197
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00440db7
jmp 0x42217f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4223c1
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4424f4]
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 0x42246e
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 0x42246d
jmp 0x422429
test eax, eax
jne 0x422459
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
call fcn.004223c1
test eax, eax
jne 0x422459
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 0x422410
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.00441130
leave

Function at 0x42247c
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 0x422494
push 6
pop eax
jmp 0x4224d2
test ecx, ecx
jne 0x4224bf
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 0x4224bf
cmp dword [ebp + 8], ebx
jne 0x4224b8
cmp dword [ebp - 4], 2
jbe 0x4224bf
mov eax, 0xb7
jmp 0x4224d2
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
leave
ret 0x14

Function at 0x42259c
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 0x405490
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422613
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 0x405500
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42260a
cmp dword [ebp - 4], 4
je 0x422601
cmp dword [ebp - 4], 3
jne 0x42260a
xor ebx, ebx
cmp dword [ebp - 0xc], 1
setne bl
ret
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
leave
ret
Function at 0x422722
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 [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x420], 0
lea eax, [ebp - 0x420]
push eax
push 0x20019
push 0
push 0x405570
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42280b
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 0x4055c8
push dword [ebp - 0x420]
mov ebx, 0x105
mov dword [ebp - 0x428], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4227fd
cmp dword [ebp - 0x424], esi
jne 0x4227fd
push esi
push 0x405604
lea eax, [ebp - 0x41c]
push eax
push 0x405614
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0040c0e1
add esp, 0x18
test eax, eax
js 0x4227f7
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4227f7
test al, 0x10
jne 0x4227f7
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, 0x10
jl 0x4227ae
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.00441130
leave

Function at 0x422885
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov edi, ecx
push 0x140
push 0
lea eax, [edi + 4]
push eax
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 0x422964
push 0x30
pop ecx
cmp cx, ax
je 0x422964
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 0x42292e
pop edi
pop esi
pop ebx
Function at 0x422de4
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 [0x4424f4]
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 0x422f00
push 0x40583c
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x422e34
push 0x405858
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x422e34
inc esi
jmp 0x422f00
mov edi, 0x104
lea eax, [ebp - 0x418]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x422f00
lea eax, [ebp - 0x418]
push eax
push 0x40587c
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.0040c0e1
add esp, 0x10
test eax, eax
js 0x422f00
cmp ebx, 0xd2af9
jne 0x422eeb
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], esi
push eax
push 2
push esi
push 0x401858
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422f00
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x422ea8
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push esi
push 0x40589c
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 0x422f00
push 0xffff
push esi
lea edx, [ebp - 0x210]
xor ecx, ecx
call fcn.00421540
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441130
leave
ret