joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440ebd
Capabilities:
Encode data using xor

Disassembly:
mov esp, edi
std
invalid
mov al, 0x56
rcl byte [eax]
clc
xlatb
xor byte [edi], ch
mov fs, word [esi + 0x60]
test byte [edi - 0x47], 0x6a
jnp 0x440eb5
out 0xb9, al
insb byte es:[edi], dx
sub al, 0x46
inc ebx
mov bh, 0x21
inc eax
loop 0x440eec
invalid
jns 0x440f1e
out 0x39, eax
mov dh, 0xd1
pop ecx
mov dword [0xa0c271d7], eax
lds eax, [eax]
test dword [ebp + 0x54], esi
popal
cmp al, byte [eax - 0x79]
inc ebx
xchg esi, esp
push 0x8b4e025a
jne 0x440f07
outsb dx, byte [esi]
xor al, 0xe2
mov cl, 0x85
xor dword [edi - 0x4f], 0x917de866
int3
inc edx
lodsd eax, dword [esi]
push esi
pop eax
shl dword [ecx], 0x35
jno 0x440f54
and esi, edx
fild dword [esi + 0x15]
out 0xe1, al
dec edx
loope 0x440f29
mov eax, 0x377cd185
mov al, byte [0xc6a8eadd]
or byte [eax - 0x6c7bb36f], dh
xor al, 0xfb
wait
pop esp
cmp al, 0x35
mov eax, dword [0x97290a12]
out 0x33, al
wait
dec esi
lcall 0x5604, 0xbf1f56b6
adc byte [ecx + 0x2c5e294b], bh
mov edi, 0xb9105604
dec ebx
sub dword [esi + 0x2c], ebx
in eax, dx
cmp dword [ebx + 0x4a], edi
mov gs, ecx
popfd
jmp 0xb9d22a07

Function at 0x4dfd42
Capabilities:
Encode data using xor

Disassembly:
arpl word [ebp + 0x55], cx
leave
push ecx
jo 0x4dfcca
mov dh, 0xab
jb 0x4dfd08
pop esp
pop ds
xlatb
mov dword [0x43a66e], eax
jnp 0x4dfc8e
dec edx
pushfd
jbe 0x4dfcf3
shl byte [eax - 0x70], cl
invalid
xor dword [edi - 0x29], edx
jnp 0x4dfcb8
cmp eax, 0x60a5c4ee
push eax
adc byte [esi], 0x8c
sal byte [edx], 1
invalid
add al, byte [ebp + 0x1e2e365]
adc byte [edi + 0x25702ba3], 0x5b
sub esi, dword [ebx + 0x48]
jae 0x4dfd60
mov dword [0xaea1298c], eax
xchg esp, eax
loope 0x4dfd66
invalid
jno 0x4dfcf6
cmp esi, dword [esi - 0xf]
add al, byte [esi + ebp]
push ebp
into
std
cmc
push ebp
mov edx, 0x915d449d
loope 0x4dfd16
iretd
and al, 0x82
sub al, 0xd9
push esp
push es
invalid

Function at 0x605466
Capabilities:
Encode data using xor

Disassembly:
fdivr dword [edi + 0x77]
stosd dword es:[edi], eax
cmp byte [ebp + 0x572b629f], cl
mov esi, 0x7c0ef974
sub ecx, dword [eax - 0x15]
jmp 0x6054aa
push es
fcom dword [eax]
pop ss
adc al, al
call 0x4a61a992
jge 0x6054d8
sbb dword [esi + 0x2c108bbe], edx
and esi, dword [ebx - 0x21]
arpl word [edx], di
js 0x605490
pop edx
adc esp, esi
or dword [ebx - 0x1bdf7322], edi
in al, 0x43
inc ebx
outsd dx, dword [esi]
out dx, al
fst dword [eax + 0x69]
out dx, al
stosd dword es:[edi], eax
pop ebx
xor byte [ebx - 0x3e5f0681], bh
cwde
jnp 0x60548c
inc ebx
mov byte [0x42f73116], al
invalid
xchg byte [eax - 0xf585947], bh
sub byte [ebp - 0x1a], ah
Function at 0x65a89c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6634a0
cmp edx, dword [eax]
je 0x65a8be
add eax, 8
inc ecx
cmp eax, 0x663530
jl 0x65a8af
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6634a0]
jne 0x65a9ec
mov eax, dword [0xa5bd18]
cmp eax, 1
je 0x65a9c6
test eax, eax
jne 0x65a8ef
cmp dword [0x6612e4], 1
je 0x65a9c6
cmp edx, 0xfc
je 0x65a9ec
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x65a926
lea eax, [ebp - 0x1a4]
push 0x65e9a0
push eax
call fcn.0065ba00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0065baf0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x65a969
lea eax, [ebp - 0x1a4]
push eax
call fcn.0065baf0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65e99c
push edi
call fcn.0065c4b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65e980
push eax
call fcn.0065ba00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0065ba10
lea eax, [ebp - 0xa0]
push 0x65e97c
push eax
call fcn.0065ba10
push dword [esi + 0x6634a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0065ba10
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65e954
push eax
call fcn.0065c422
add esp, 0x2c
pop edi
jmp 0x65a9ec
lea eax, [ebp + 8]
lea esi, [esi + 0x6634a4]
push 0
push eax
push dword [esi]
call fcn.0065baf0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40d7ba
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
lea eax, [ebp - 4]
push ecx
push eax
push ecx
push 3
push ecx
push ecx
push ecx
push 0x4017c0
push SysReAllocStringLen
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d7fb
push 0x4018e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x40d7ff
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, ecx
test eax, eax
je 0x40d8ba
test ebx, ebx
je 0x40d8ba
test edi, edi
je 0x40d8ba
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], esi
push ecx
push 0x20019
push esi
push eax
push SysReAllocStringLen
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d8ba
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d8a1
cmp dword [ebp - 0x214], 1
jne 0x40d8a1
inc esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40d8ba
lea eax, [ebp - 0x20c]
push eax
jmp 0x40d8bf
push 0x4019f0
mov edx, 0x104
mov ecx, edi
call fcn.0040c010
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fb3c
mov esp, ebp
pop ebp
ret 8

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

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 esi, ecx
xor edi, edi
mov ebx, edx
test esi, esi
jne 0x40d904
xor eax, eax
jmp 0x40d980
push 0x104
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40d97e
test ebx, ebx
je 0x40d92a
mov eax, 0x401a00
mov ecx, 0x40333c
jmp 0x40d934
mov eax, 0x401a24
mov ecx, 0x403290
push ecx
lea ecx, [ebp - 0x418]
push ecx
push eax
lea eax, [ebp - 0x210]
push 0x208
push eax
call fcn.0040c0f9
add esp, 0x14
test eax, eax
js 0x40d97e
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d97e
test al, 0x10
jne 0x40d97e
xor edi, edi
lea ecx, [ebp - 0x210]
inc edi
call fcn.004205d3
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret
Function at 0x40e81b
Capabilities:
Find taskbar

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 0x401be8
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x40e884
push edi
push 0x401c04
push edi
push eax
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
je 0x40e884
push edi
push 0x401c20
push edi
push esi
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x40e872
xor eax, eax
inc eax
jmp 0x40e947
push edi
push 0x401c38
push edi
push esi
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
jne 0x40e86a
xor edx, edx
lea ecx, [ebp - 0x20c]
call fcn.0041fda0
mov esi, 0x104
test eax, eax
je 0x40e8e5
push ecx
lea eax, [ebp - 0x210]
mov edx, esi
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040c131
test eax, eax
js 0x40e8e5
mov eax, dword [ebp - 0x210]
mov edx, esi
push ecx
push 0x401c54
push ecx
lea ecx, [ebp - 0x20c]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.0041fb3c
test eax, eax
js 0x40e8e5
lea ecx, [ebp - 0x20c]
call fcn.0040e6d8
test eax, eax
jne 0x40e86a
xor edx, edx
lea ecx, [ebp - 0x20c]
call fcn.0041fda0
test eax, eax
je 0x40e945
push ecx
lea eax, [ebp - 0x210]
mov edx, esi
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040c131
test eax, eax
js 0x40e945
mov eax, dword [ebp - 0x210]
sub esi, eax
push ecx
push 0x401c70
push ecx
lea ecx, [ebp - 0x20c]
mov edx, esi
lea ecx, [ecx + eax*2]
call fcn.0040c197
test eax, eax
js 0x40e945
lea ecx, [ebp - 0x20c]
call fcn.0040e6d8
test eax, eax
jne 0x40e86a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00441b90
mov esp, ebp
pop ebp
ret

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

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 esi
push edi
lea eax, [ebp - 0x210]
mov edi, 0x105
push eax
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40eb4c
push 0x401ce8
lea eax, [ebp - 0x210]
push eax
push 0x401d00
lea eax, [ebp - 0x41c]
push edi
push eax
call fcn.0040c0b5
add esp, 0x14
test eax, eax
js 0x40eb4c
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40eb49
test al, 0x10
je 0x40eb4c
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00441b90
mov esp, ebp
pop ebp
ret
Function at 0x41073c
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x443abc]
mov dword [ebp - 0x41c], ecx
test edx, edx
je 0x410771
push ecx
mov ecx, edx
call fcn.0040fe6e
xor edx, edx
mov dword [0x443abc], edx
cmp dword [0x444f3c], 0
je 0x410967
call fcn.0041c967
test eax, eax
je 0x410967
push ebx
push esi
call fcn.0041c967
mov ebx, 0x4015c0
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x4107a0
mov esi, ebx
push edi
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x41095e
push ecx
lea eax, [ebp - 0x418]
mov edx, edi
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040c131
test eax, eax
js 0x41085c
mov eax, dword [ebp - 0x418]
mov edx, edi
push ecx
push 0x40258c
push ecx
lea ecx, [ebp - 0x20c]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.0040c197
test eax, eax
js 0x41085c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410812
test al, 0x10
je 0x41085c
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41085c
push ecx
lea eax, [ebp - 0x418]
mov edx, edi
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040c131
test eax, eax
js 0x41085c
mov eax, dword [ebp - 0x418]
sub edi, eax
push ecx
push 0x40258c
push ecx
lea ecx, [ebp - 0x20c]
mov edx, edi
lea ecx, [ecx + eax*2]
call fcn.0040c197
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41095e
test al, 0x10
jne 0x41095e
test esi, esi
je 0x41095e
push ebx
push esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x41095e
mov ecx, esi
call fcn.0041f47f
test eax, eax
je 0x41095e
push 0xff
lea eax, [ebp - 0x414]
push eax
push 0xaa
push dword [0x443af0]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x41095e
imul ecx, dword [0x443aa8], 0x2c
mov eax, dword [str.6ij]
mov edi, dword [ebp - 0x41c]
mov ebx, dword [ecx + eax + 0x28]
push ebx
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x402
push edi
mov dword [ebp - 0x418], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
jne 0x41091f
push 0x402
push dword [ebp - 0x41c]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push 0x28
call fcn.0044180c
pop ecx
test eax, eax
je 0x410954
push ecx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x20c]
push ebx
push esi
push ecx
lea ecx, [ebp - 0x414]
push ecx
push edi
push 0x402
push ecx
mov ecx, eax
call fcn.0041bff8
mov edx, eax
jmp 0x410956
xor edx, edx
mov dword [0x443abc], edx
jmp 0x410964
mov edx, dword [0x443abc]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
neg edx
sbb edx, edx
xor ecx, ebp
and edx, 1
mov eax, edx
call fcn.00441b90
mov esp, ebp
pop ebp
ret
Function at 0x418466
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [str.6ij]
push esi
push edi
cmp ecx, 0x4430b0
jne 0x4184bd
cmp dword [0x443ae8], 0xd2af9
je 0x4185b3
call fcn.004183ca
test eax, eax
je 0x4184ae
call fcn.00418413
jmp 0x4185b3
mov dword [0x443a84], 1
jmp 0x4185b3
xor esi, esi
inc esi
cmp ecx, str.K
jne 0x418509
cmp dword [0x443ae8], 0xd2af9
je 0x4184da
mov dword [0x443a84], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x401cd4
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x4185b3
and dword [0x443a84], 0
mov ecx, esi
call fcn.0041a4bf
jmp 0x4185b3
mov eax, dword [0x443ae8]
cmp eax, 0xd2af8
jne 0x418560
mov edi, 0x104
lea eax, [ebp - 0x210]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x418555
push 0x40429c
mov edx, edi
lea ecx, [ebp - 0x210]
call fcn.0040c045
test eax, eax
js 0x418555
push 0xffff
push esi
lea edx, [ebp - 0x210]
xor ecx, ecx
call fcn.00421804
mov eax, dword [0x443ae8]
mov ecx, dword [str.6ij]
test eax, eax
js 0x41858b
cmp ecx, str.6ij
jne 0x41858b
cmp dword [0x443ab0], 0
jne 0x418581
call fcn.0040f1f9
call fcn.0040f120
jmp 0x418586
call fcn.0040f1f9
mov eax, dword [0x443ae8]
cmp eax, 0xd2af9
je 0x4185ae
cmp eax, 0xc00d2afb
je 0x4185ae
test eax, eax
js 0x4185b3
cmp dword [0x443a4c], 0
jne 0x4185b3
mov dword [0x443a84], esi
jmp 0x4185b3
call fcn.004197fe
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041fb3c
mov esp, ebp
pop ebp
ret
Function at 0x41f49a
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea edx, [ecx + 2]
push 2
mov dword [ebp - 0x10], edi
xor ebx, ebx
pop esi
mov ax, word [ecx]
add ecx, esi
cmp ax, bx
jne 0x41f4bc
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 0x14]
xor ecx, ecx
mov dword [ebp - 8], eax
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044183a
mov esi, eax
pop ecx
test esi, esi
je 0x41f5bf
mov edx, dword [ebp - 8]
mov ecx, esi
push edi
call fcn.0040c010
push 0x4043d8
push esi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x41f5b8
add eax, 4
mov dword [ebp - 0xc], ebx
push 0x4043e0
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x41f5b0
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.0041f3f3
test eax, eax
jne 0x41f57d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x41f558
push 0x57
pop edi
test edi, edi
jle 0x41f563
movzx edi, di
or edi, 0x80070000
mov ecx, esi
call fcn.0041f3f3
test eax, eax
je 0x41f59c
push ebx
push esi
push 5
push 8
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov ecx, esi
push edi
call fcn.0040c010
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 0xa
jge 0x41f5b0
mov eax, dword [ebp - 0x14]
jmp 0x41f513
push edi
push esi
push 0x4043e4
push 2
call fcn.0041fb3c
mov edi, dword [ebp - 0x10]
add esp, 0x10
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call fcn.00441807
pop ecx
test edi, edi
je 0x41f5cc
mov ecx, edi
call fcn.0041f3f3
mov ebx, eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret
Function at 0x420056
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 [0x4434f4]
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 0x4200df
push ecx
lea eax, [ebp - 0x210]
mov edx, esi
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040c131
test eax, eax
js 0x4200df
mov eax, dword [ebp - 0x210]
mov edx, esi
push ecx
push 0x401668
push ecx
lea ecx, [ebp - 0x20c]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.0040c197
test eax, eax
js 0x4200df
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4200df
test al, 0x10
je 0x420145
push esi
lea eax, [ebp - 0x20c]
xor ebx, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x420166
push ecx
lea eax, [ebp - 0x210]
mov edx, esi
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040c131
test eax, eax
js 0x420166
mov eax, dword [ebp - 0x210]
sub esi, eax
push ecx
push 0x40473c
push ecx
lea ecx, [ebp - 0x20c]
mov edx, esi
lea ecx, [ecx + eax*2]
call fcn.0040c197
test eax, eax
js 0x420166
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x420164
test al, 0x10
jne 0x420164
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
shr edi, 1
push eax
mov edx, edi
call fcn.0040c010
xor ebx, ebx
test eax, eax
setns bl
jmp 0x420166
xor ebx, ebx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret

Function at 0x420179
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 [0x4434f4]
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 0x4201fc
push ecx
lea eax, [ebp - 0x210]
mov edx, edi
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040c131
test eax, eax
js 0x4201fc
mov eax, dword [ebp - 0x210]
sub edi, eax
push ecx
push 0x401668
push ecx
lea ecx, [ebp - 0x20c]
mov edx, edi
lea ecx, [ecx + eax*2]
call fcn.0040c197
test eax, eax
js 0x4201fc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4201fc
test al, 0x10
jne 0x4201fc
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00441b90
mov esp, ebp
pop ebp
ret
Function at 0x42089d
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x444f8c]
lea eax, [ebp - 4]
push edi
xor edi, edi
push edi
push eax
push edi
push 2
push edi
push edi
push edi
push 0x404760
push SysReAllocStringLen
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x420914
mov edx, 0x402e68
test esi, esi
jne 0x4208dd
mov edx, 0x4047c4
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4208e2
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push edi
push 0x403798
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
mov esp, ebp
pop ebp
ret

Function at 0x420a97
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 0x4047d0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x420aef
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 4
push esi
push 0x404834
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 0x420aff
push esi
push 0x404860
push 2
call fcn.0041ea5f
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x421652
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.0044183a
mov edi, eax
pop ecx
test edi, edi
jne 0x42167f
mov eax, 0x8007000e
jmp 0x4217fd
lea eax, [ebp - 4]
push eax
push 2
push esi
push 0x401848
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42170f
push 0x208
call fcn.0044183a
mov esi, eax
pop ecx
test esi, esi
je 0x421704
mov edx, 0x104
mov ecx, esi
call fcn.0041eb9c
test eax, eax
je 0x4216fd
push 0x404edc
mov edx, 0x104
mov ecx, esi
call fcn.0040c045
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 8]
jne 0x4216d1
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
xor eax, eax
push eax
push 0x404ef0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call fcn.00441807
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 0x404f10
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x4217d8
push dword [0x444fa0]
push 0x4043d0
push 0x14
push edi
call fcn.0040c0b5
jmp 0x421769
mov eax, dword [0x444fa0]
cmp eax, 0x3e8
jge 0x42177e
inc eax
push eax
push 0x4043d0
push 0x14
push edi
mov dword [0x444fa0], eax
call fcn.0040c0b5
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 0x421749
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x421783
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 0x4217b4
inc dword [0x444fa0]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4217d8
push ebx
push 0x404fc4
push 4
call fcn.0041ea5f
add esp, 0xc
mov esi, 0xd2af9
jmp 0x4217f4
jle 0x4217e3
movzx esi, si
or esi, 0x80070000
push esi
push ebx
push 0x404f84
push 2
call fcn.0041ea5f
add esp, 0x10
push edi
call fcn.00441807
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret