joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dee8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push 6
call fcn.0041dc67
add esp, 0xc
test eax, eax
pop edi
je 0x41df7d
lea eax, [ebp - 0x208]
push str.Update
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41df5c
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0040df01
pop ecx
test eax, eax
pop ecx
je 0x41df7d
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp + 8]
call fcn.0040d815
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x41e59a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and word [ebp - 0x210], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
cmp dword [ebp + 0x10], 0
rep stosd dword es:[edi], eax
push 4
stosw word es:[edi], ax
pop eax
pop edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
je 0x41e60f
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0041e4a3
add esp, 0xc
test eax, eax
je 0x41e60f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x210]
push dword [ebp + 0xc]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
sbb eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x41e613
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.0041e4a3
add esp, 0xc
test eax, eax
pop edi
jne 0x41e654
leave
ret
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
leave
ret

Function at 0x41e678
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and word [ebp - 0x210], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
cmp dword [ebp + 0x14], 0
rep stosd dword es:[edi], eax
push 4
stosw word es:[edi], ax
pop eax
pop edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
je 0x41e6f0
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push 0x104
push eax
push dword [ebp + 8]
call fcn.0041e512
add esp, 0x10
test eax, eax
je 0x41e6f0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x210]
push dword [ebp + 0x10]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
sbb eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x41e6f4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push dword [ebp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x104
push eax
push dword [ebp + 8]
call fcn.0041e512
add esp, 0x10
test eax, eax
pop edi
jne 0x41e738
leave
ret
lea eax, [ebp + 0x14]
push 4
push eax
push 4
push dword [ebp + 0x10]
lea eax, [ebp - 0x208]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
leave
ret

Function at 0x41e75c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and word [ebp - 0x20c], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
cmp dword [ebp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], 1
pop edi
lea ecx, [eax + eax]
mov dword [ebp + 0x14], ecx
je 0x41e7dc
test eax, eax
je 0x41e7dc
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041e4a3
add esp, 0xc
test eax, eax
je 0x41e7dc
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x20c]
push dword [ebp + 0xc]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
sbb eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x41e7e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.0041e4a3
add esp, 0xc
test eax, eax
pop edi
jne 0x41e821
leave
ret
cmp dword [ebp + 0x10], 0
jne 0x41e82b
xor eax, eax
jmp 0x41e838
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x208]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
leave
ret
Function at 0x41f243
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push esi
je 0x41f332
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 8], 3
mov dword [ebp + 0xc], eax
je 0x41f285
cmp dword [ebp + 0x18], ebx
je 0x41f285
push eax
push 0xb20000
push 0x4c8
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x41f285
mov dword [ebp + 0xc], ebx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x286]
mov word [ebp - 0x288], bx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x288]
push eax
push 6
call fcn.0041dc67
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
lea eax, [ebp - 0x288]
push str.users
push eax
call esi
push 0x1f
xor eax, eax
pop ecx
lea edi, [ebp - 0x7e]
push dword [ebp + 0xc]
mov word [ebp - 0x80], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x45afd0
lea eax, [ebp - 0x80]
push 0x3f
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x288]
push eax
call esi
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop edi
jne 0x41f322
cmp dword [ebp + 0x1c], ebx
je 0x41f322
lea eax, [ebp - 0x288]
push ebx
push eax
call fcn.0040df01
pop ecx
pop ecx
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x41f344
dec eax
je 0x41f33d
dec eax
je 0x41f336
dec eax
je 0x41f344
xor eax, eax
jmp 0x41f368
push str.up.ini
jmp 0x41f349
push str.inc.ini
jmp 0x41f349
push 0x45afa0
lea eax, [ebp - 0x288]
push eax
call esi
push dword [ebp + 0x14]
lea eax, [ebp - 0x288]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 1
pop eax
pop esi
pop ebx
leave
ret
Function at 0x41f4db
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x446758
call sub.MSVCRT.dll__EH_prolog
mov eax, 0x1460
call fcn.0042d380
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00408dc7
xor ebx, ebx
mov ecx, 0x513
xor eax, eax
lea edi, [ebp - 0x146a]
push dword [ebp + 8]
mov word [ebp - 0x146c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x146c]
push 0xa27
push eax
push 0x45d0f4
push str.order
push 0x45b008
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x41f5e8
lea eax, [ebp - 0x146c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x41f65c
lea eax, [ebp - 0x146c]
push 0x45b004
push eax
call dword [sym.imp.MSVCRT.dll_wcstok]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp + 8], eax
je 0x41f5ec
mov dword [ebp + 0xc], ebx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edi, eax
mov dword [ebp - 4], ebx
sub edi, ecx
lea ecx, [ebp + 0xc]
push ecx
push 1
push eax
mov ecx, esi
sar edi, 2
call fcn.00408e20
mov eax, dword [esi + 4]
push dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
lea edi, [eax + edi*4]
call fcn.0042c9ee
cmp edi, ebx
pop ecx
je 0x41f5db
push dword [ebp + 8]
mov ecx, edi
call fcn.00408d5c
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x41f5d3
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 2
cmp ecx, 0xc8
jae 0x41f5ec
push 0x45b004
push ebx
jmp 0x41f56b
push dword [esi + 8]
mov ecx, esi
push dword [esi + 4]
call fcn.00408dc7
xor eax, eax
jmp 0x41f65f
mov al, byte [ebp + 0xf]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x1c], al
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x1c]
mov ecx, 0x45dda0
push eax
mov dword [ebp - 4], 1
call fcn.00421a75
push eax
call fcn.004203ab
mov ebx, dword [ebp - 0x18]
pop ecx
pop ecx
cmp ebx, dword [ebp - 0x14]
je 0x41f650
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
je 0x41f64b
mov eax, dword [ebx]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
jne 0x41f646
push edi
mov ecx, esi
call fcn.00408d06
mov edi, eax
jmp 0x41f623
add edi, 4
jmp 0x41f623
add ebx, 4
jmp 0x41f61b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00408cc1
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41f707
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x446780
call sub.MSVCRT.dll__EH_prolog
mov eax, 0x1450
call fcn.0042d380
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00408dc7
and word [ebp - 0x145c], 0
mov ecx, 0x513
xor eax, eax
lea edi, [ebp - 0x145a]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x145c]
push 0xa27
push eax
push 0x45d0f4
push 0x45b01c
push 0x457e70
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x41f815
lea eax, [ebp - 0x145c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x41f819
lea eax, [ebp - 0x145c]
push 0x45b004
push eax
call dword [sym.imp.MSVCRT.dll_wcstok]
pop ecx
mov dword [ebp + 8], eax
test eax, eax
pop ecx
je 0x41f819
and dword [ebp + 0xc], 0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
and dword [ebp - 4], 0
mov edi, eax
sub edi, ecx
lea ecx, [ebp + 0xc]
push ecx
push 1
push eax
mov ecx, esi
sar edi, 2
call fcn.00408e20
mov eax, dword [esi + 4]
push dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
lea edi, [eax + edi*4]
call fcn.0042c9ee
test edi, edi
pop ecx
je 0x41f808
push dword [ebp + 8]
mov ecx, edi
call fcn.00408d5c
mov eax, dword [esi + 4]
test eax, eax
je 0x41f7ff
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 2
cmp ecx, 0xc8
jae 0x41f819
push 0x45b004
push 0
jmp 0x41f795
push dword [esi + 8]
mov ecx, esi
push dword [esi + 4]
call fcn.00408dc7
xor eax, eax
jmp 0x41f81c
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x41fea3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push dword [ebp + 8]
mov esi, str.youxi
push dword [ebp + 0xc]
push str.record
push esi
call ebx
push dword [ebp + 8]
push 0
push str.infocnt
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
and word [ebp - 0x210], 0
mov dword [ebp - 8], eax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [eax + 4]
cmp ecx, edi
jne 0x41ff06
mov dword [ebp + 0xc], edi
jmp 0x41ff11
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x210]
push 0xa
push eax
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__itow]
add esp, 0xc
lea eax, [ebp - 0x210]
push dword [ebp + 8]
push eax
push str.infocnt
push esi
call ebx
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], edi
mov edi, dword [sym.imp.MSVCRT.dll__snwprintf]
jle 0x41ff88
push dword [ebp - 4]
lea eax, [ebp - 0x210]
push str.info
push str._s_d
push 0x104
push eax
call edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, dword [eax + 4]
push dword [ebp + 8]
push dword [eax + ecx*4]
lea eax, [ebp - 0x210]
push eax
push esi
call ebx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jl 0x41ff46
mov eax, dword [ebp + 0x14]
xor edx, edx
mov ecx, dword [eax + 4]
cmp ecx, edx
jne 0x41ff99
mov dword [ebp - 4], edx
jmp 0x41ffa4
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], eax
jl 0x41ffaf
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edx
mov dword [ebp + 0x10], edx
jle 0x41fffc
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push str.operate
push str._s_d
push 0x104
push eax
call edi
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
add esp, 0x14
mov eax, dword [eax + 4]
push dword [ebp + 8]
push dword [eax + ecx*4]
lea eax, [ebp - 0x210]
push eax
push esi
call ebx
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 4]
jl 0x41ffb7
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
jge 0x420069
mov dword [ebp + 0x10], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push str.info
push str._s_d
push 0x104
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x210]
push dword [ebp + 8]
push 0
push eax
push esi
call ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push str.operate
push str._s_d
push 0x104
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x210]
push dword [ebp + 8]
push 0
push eax
push esi
call ebx
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jl 0x420004
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420071
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4467fc
call sub.MSVCRT.dll__EH_prolog
sub esp, 0xa0c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
push eax
push ecx
mov ecx, ebx
call fcn.00408dc7
and word [ebp - 0xa18], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xa16]
push dword [ebp + 8]
mov esi, str.youxi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xa18]
push 0x400
push eax
push 0x45d0f4
push str.record
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0xa18]
push eax
call fcn.00408d5c
push dword [ebp + 8]
xor edi, edi
push edi
push str.infocnt
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x420224
mov dword [ebp + 0x10], edi
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], edi
push ecx
push eax
mov ecx, ebx
call fcn.00420902
push dword [ebp + 0x10]
call fcn.0042c9ee
pop ecx
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], 1
push dword [ebp + 0xc]
call fcn.00420902
push dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
call fcn.0042c9ee
pop ecx
mov word [ebp - 0x218], di
and dword [ebp + 0x10], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x216]
cmp dword [ebp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jle 0x420224
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x218]
push edi
push str.info
push str._s_d
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, dword [ebx + 4]
add esp, 0x14
shl edi, 2
push 0x800
add ecx, edi
call fcn.00420236
push dword [ebp + 8]
mov eax, dword [ebx + 4]
push 0x800
push dword [eax + edi]
lea eax, [ebp - 0x218]
push 0x45d0f4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [ebp + 0x10]
lea eax, [ebp - 0x218]
push str.operate
push str._s_d
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [ebp + 0x14]
add esp, 0x14
mov ecx, edi
add ecx, dword [eax + 4]
push 0xc00
call fcn.00420236
mov eax, dword [ebp + 0x14]
push dword [ebp + 8]
mov eax, dword [eax + 4]
push 0xc00
push dword [edi + eax]
lea eax, [ebp - 0x218]
push 0x45d0f4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0xc]
jl 0x420167
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x420dc2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push edi
push 0x44
pop ecx
xor eax, eax
lea edi, [ebp - 0x110]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x420e4f
cmp dword [ebp - 0x104], 1
jne 0x420e0b
cmp dword [ebp - 0x110], 4
jne 0x420e4f
mov al, 1
leave
ret
cmp dword [ebp - 0x104], 2
jne 0x420e4f
push 5
pop eax
cmp dword [ebp - 0x110], eax
jne 0x420e46
cmp dword [ebp - 0x10c], 0
jne 0x420e2c
mov al, 2
leave
ret
cmp dword [ebp - 0x10c], 1
jne 0x420e39
mov al, 3
leave
ret
cmp dword [ebp - 0x10c], 2
jne 0x420e4f
mov al, 4
leave
ret
cmp dword [ebp - 0x110], 6
je 0x420e51
xor al, al
leave
ret

Function at 0x4211a7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and byte [ebp - 0x10], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x10
pop esi
stosb byte es:[edi], al
push esi
lea eax, [ebp - 0x10]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00422b89
mov ebx, eax
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0x20]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x20
call fcn.00439b88
test eax, eax
je 0x421210
lea eax, [ebp - 0x20]
push esi
push eax
push 3
push str.Custom_ID2
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edi, dword [ebp + 8]
test edi, edi
je 0x42121e
lea esi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 4

Function at 0x421227
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.Owner_ID2
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 2
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ax, word [ebp - 4]
leave
ret
Function at 0x42132a
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
lea eax, [ebx + 0x40]
push eax
mov dword [ebp - 4], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
xor edi, edi
cmp esi, edi
pop ecx
jne 0x421350
xor eax, eax
jmp 0x421414
push ebx
lea eax, [esi + 0x30]
push dword [ebp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
call fcn.00421419
xor eax, dword [ebp + 0x1c]
push edi
mov dword [ebp + 0x14], eax
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 0x14
call dword [sym.imp.MSVCRT.dll_rand]
mov byte [edi + esi + 0x21], al
inc edi
cmp edi, 0xf
jl 0x421379
and dword [ebp + 0x18], 0
lea edi, [esi + ebx + 0x30]
call dword [sym.imp.MSVCRT.dll_rand]
mov ecx, dword [ebp + 0x18]
inc dword [ebp + 0x18]
cmp dword [ebp + 0x18], 0x10
mov byte [edi + ecx], al
jl 0x421391
push esi
lea eax, [esi + 0x30]
push ebx
push eax
call fcn.00413c6d
add esp, 0xc
xor edi, edi
mov eax, edi
push 4
cdq
pop ecx
idiv ecx
mov eax, dword [ebp + 0x14]
mov ecx, edx
shr eax, cl
xor byte [edi + esi], al
inc edi
cmp edi, 0x21
jl 0x4213b6
xor edi, edi
test ebx, ebx
jle 0x4213ef
mov eax, edi
push 4
cdq
pop ecx
idiv ecx
mov eax, dword [ebp + 0x14]
push 3
pop ecx
sub ecx, edx
shr eax, cl
xor byte [edi + esi + 0x30], al
inc edi
cmp edi, ebx
jl 0x4213d4
push dword [ebp - 4]
push esi
push 3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push esi
mov edi, eax
call fcn.0042c9ee
xor eax, eax
pop ecx
test edi, edi
sete al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x421419
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
and word [ebp - 0x208], 0
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x421477
mov esi, dword [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x42147c
mov esi, 0x13240ce
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x421482
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor edi, edi
push eax
lea eax, [ebp - 0xc]
push edi
push eax
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x4214ba
cmp eax, 0x7a
jne 0x4215c7
cmp dword [ebp - 0xc], 3
jne 0x4215c7
push dword [ebp - 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
cmp ebx, edi
mov dword [ebp - 8], ebx
je 0x4215c7
push dword [ebp - 4]
push edi
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4215be
mov eax, dword [ebp - 4]
lea ebx, [eax - 0x40]
cmp ebx, edi
jle 0x4215be
call fcn.00421419
mov esi, eax
xor esi, dword [ebp + 0x1c]
test ebx, ebx
jle 0x42153e
mov eax, edi
push 4
cdq
pop ecx
idiv ecx
mov eax, dword [ebp - 8]
push 3
pop ecx
add eax, 0x30
sub ecx, edx
mov edx, esi
shr edx, cl
xor byte [edi + eax], dl
inc edi
cmp edi, ebx
jl 0x42151f
xor edi, edi
mov eax, dword [ebp - 8]
push 4
add eax, edi
pop ecx
mov dword [ebp + 0x10], eax
mov eax, edi
cdq
idiv ecx
mov eax, esi
mov ecx, edx
shr eax, cl
mov ecx, eax
mov eax, dword [ebp + 0x10]
xor byte [eax], cl
inc edi
cmp edi, 0x21
jl 0x421540
and byte [ebp - 0x34], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x33]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 8]
push ebx
lea esi, [eax + 0x30]
push esi
call fcn.00413c6d
push 0x21
lea eax, [ebp - 0x34]
push dword [ebp - 8]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0x18
test eax, eax
jne 0x4215be
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp + 0x14]
test eax, eax
mov dword [ecx], eax
je 0x4215be
push ebx
push esi
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov dword [ebp - 0x10], 1
mov dword [eax], ebx
push dword [ebp - 8]
call fcn.0042c9ee
pop ecx
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret