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

Disassembly:
sub esp, 0xb4
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xc0]
push ebp
xor edx, edx
push esi
add ebx, 0xffffff88
push edi
add eax, 2
lea edi, [esp + 0x20]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edi
mov edi, edi
cmp edx, ebx
jge 0x446403
lea eax, [esp + 0x48]
sub eax, 2
lea ecx, [eax + 3]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x48]
sub ecx, eax
add ecx, 0xfffffffd
mov dword [esp + 0x3c], ecx
mov ecx, eax
neg ecx
lea esi, [esp + ecx + 0x48]
mov dword [esp + 0x44], esi
lea esi, [esp + ecx + 0x49]
mov dword [esp + 0x30], esi
lea esi, [esp + 0x48]
sub esi, eax
lea eax, [esp + ecx + 0x4a]
mov ecx, dword [esp + 0x14]
sub ebx, edx
mov dword [esp + 0x40], eax
dec ebx
mov eax, 0x88888889
mul ebx
dec esi
mov ebp, edx
shr ebp, 0xa
mov dword [esp + 0x2c], esi
mov esi, dword [edi]
mov dword [esp + 0x10], ecx
inc ebp
mov eax, dword [esp + 0x10]
xor edi, edi
lea ebx, [ebx]
movzx edx, byte [eax - 2]
mov cl, byte [eax - 1]
sub dl, cl
mov byte [esp + edi + 0x48], dl
movzx edx, byte [eax]
sub dl, cl
mov byte [esp + edi + 0x49], cl
mov byte [esp + edi + 0x4a], dl
add edi, 3
add eax, 3
cmp edi, 0x78
jl 0x446360
mov ecx, dword [esp + 0x34]
mov edi, 0x27
mov edi, edi
mov eax, dword [esp + 0x40]
movzx edx, byte [eax + ecx]
mov eax, dword [esp + 0x2c]
sub dl, byte [eax + ecx]
add ecx, 3
movsx eax, dl
cdq
mov ebx, eax
xor ebx, edx
sub ebx, edx
mov edx, dword [esp + 0x44]
mov al, byte [edx + ecx - 3]
mov edx, dword [esp + 0x3c]
sub al, byte [edx + ecx - 3]
movsx eax, al
cdq
xor eax, edx
sub eax, edx
add ebx, eax
mov eax, dword [esp + 0x30]
movzx edx, byte [eax + ecx - 3]
sub dl, byte [ecx - 3]
movsx eax, dl
cdq
xor eax, edx
sub eax, edx
add eax, esi
sub edi, 1
lea esi, [eax + ebx]
jne 0x446390
add dword [esp + 0x10], 0x780
sub ebp, 1
jne 0x446354
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov dword [edi], esi
inc dword [esp + 0x14]
inc edx
add edi, 4
cmp edx, 2
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edi
jle 0x4462f0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
cmp eax, ecx
ja 0x44644d
cmp eax, edx
ja 0x44644d
xor eax, eax
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0049dea6
add esp, 0xb4
ret 8
cmp edx, ecx
mov ecx, dword [esp + 0xb0]
sbb eax, eax
neg eax
xor ecx, esp
inc eax
call fcn.0049dea6
add esp, 0xb4
ret 8
Function at 0x448f10
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0
push 0
mov esi, ebp
push 1
mov edi, ecx
shl esi, 5
push 0
add esi, edi
call ebx
push 0
push 0
push 1
push 0
mov dword [esi + 8], eax
call ebx
mov dword [esi + 0xc], eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
push 0x4469b0
push 0x10000
push 0
mov dword [esi + 0x14], 0
mov byte [esi + 0x18], 0
mov byte [esi + 4], 1
mov dword [esi + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x448f98
push str.CreateThread_failed
mov ecx, 0x4c9364
call fcn.004280a0
mov ecx, 0x4c9364
call fcn.00427d40
push 2
mov ecx, 0x4c9364
call fcn.00428280
push 1
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov dword [esi], ebx
mov dword [esp + 0x1c], ebp
call fcn.00446b00
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x44a510
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
mov ebp, ecx
mov cl, byte [eax + 0x5771]
mov byte [ebp + 0x14a5], cl
mov dl, byte [eax + 0x5772]
mov byte [ebp + 0x14a4], dl
mov ecx, dword [eax + 0x55b8]
push esi
mov dword [ebp + 0x14a0], ecx
mov edx, dword [eax + 0x4c00]
push edi
add eax, 0x55c4
push eax
lea ecx, [ebp + 0x63c8]
mov dword [ebp + 0x60a8], edx
call fcn.0041a0d0
mov ecx, dword [ebp + 0x20]
cmp ecx, 0x400000
jae 0x44a5c3
mov edx, dword [ebp + 0x14a0]
cmp edx, ecx
jae 0x44a594
mov esi, 0x400000
mov eax, edx
sub esi, ecx
lea esp, [esp]
mov ecx, dword [ebp]
lea edx, [ecx + esi]
mov dl, byte [edx + eax]
mov byte [ecx + eax], dl
inc eax
cmp eax, dword [ebp + 0x20]
jb 0x44a580
jmp 0x44a5c3
sub edx, ecx
xor eax, eax
mov esi, edx
test ecx, ecx
jbe 0x44a5b2
mov edi, edi
mov ecx, dword [ebp]
lea edx, [ecx + esi]
mov dl, byte [edx + eax]
mov byte [ecx + eax], dl
inc eax
cmp eax, dword [ebp + 0x20]
jb 0x44a5a0
mov dword [ebp + 0x14a0], 0
mov byte [ebp + 0x14a5], 1
mov esi, dword [ebp]
mov edi, dword [ebp + 0x20]
add edi, esi
cmp dword [esp + 0x18], 0
mov ecx, 0x44
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ebx, dword [ebp + 0x14a0]
lea eax, [ebx + 1]
jne 0x44a639
mov esi, dword [ebp + 0x24]
and eax, esi
xor edx, edx
mov dword [ebp + 0x14a0], eax
cmp eax, ebx
je 0x44a662
mov ecx, dword [ebp]
movzx ecx, byte [eax + ecx + 2]
shl edx, 5
xor ecx, edx
mov edx, dword [ebp + 0x10]
and ecx, 0x7fff
lea edi, [edx + ecx*4]
mov edx, dword [edi]
mov dword [edi], eax
mov eax, dword [ebp + 0x14a0]
and edx, esi
mov esi, dword [ebp + 0x14]
mov dword [esi + eax*4], edx
mov eax, dword [ebp + 0x14a0]
mov esi, dword [ebp + 0x24]
inc eax
and eax, esi
mov edx, ecx
mov dword [ebp + 0x14a0], eax
cmp eax, ebx
jne 0x44a5f4
jmp 0x44a662
and eax, dword [ebp + 0x24]
mov dword [ebp + 0x14a0], eax
cmp eax, ebx
je 0x44a662
push eax
mov ecx, ebp
call fcn.00447aa0
mov eax, dword [ebp + 0x14a0]
inc eax
and eax, dword [ebp + 0x24]
mov dword [ebp + 0x14a0], eax
cmp eax, ebx
jne 0x44a646
mov esi, dword [esp + 0x14]
push 0x4bf0
add esi, 0x10
lea ecx, [ebp + 0x14b4]
push esi
push ecx
mov byte [ebp + 0x60a4], 0
call fcn.0049e4e0
add esp, 0xc
mov ecx, esi
call fcn.0046e890
lea ecx, [ebp + 0xda8]
call fcn.0044cd00
pop edi
xor eax, eax
pop esi
mov dword [ebp + 0x974], eax
mov dword [ebp + 0x978], eax
mov byte [ebp + 0x97c], 1
pop ebp
pop ebx
ret 8
Function at 0x44e0e0
Capabilities:
Get common file path

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
push 0x1a
push 0
mov byte [esi], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x44e167
mov edx, dword [esp + 4]
push esi
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x44e167
cmp byte [esi], 0
je 0x44e167
push esi
call fcn.0044dfb0
mov eax, esi
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x44e127
mov ecx, dword [0x4b2da4]
mov dword [eax], ecx
mov dx, word [0x4b2da8]
mov word [eax + 4], dx
mov cl, byte [0x4b2daa]
push 0
push esi
mov byte [eax + 6], cl
call fcn.0042f950
test al, al
jne 0x44e193
push 0
push 0
push 0
push esi
call fcn.004301e0
test eax, eax
je 0x44e193
push 0x400
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call fcn.0044db30
lea edx, [esi + 2]
cmp eax, edx
jb 0x44e190
cmp byte [esi + 1], 0x3a
jne 0x44e18f
add esi, 4
cmp eax, esi
jb 0x44e190
dec eax
mov byte [eax], 0
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
pop esi
add esp, 8
ret 4

Function at 0x44e1b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push 1
push 0
push str.SoftwareWinRARPaths
push 0x80000001
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44e207
lea ecx, [esp + 4]
push ecx
push esi
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x20]
push str.AppData
push eax
mov dword [esp + 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esi], 0
je 0x44e218
push 0
push esi
call fcn.0042f950
test al, al
jne 0x44e21e
push esi
call fcn.0044e0e0
pop esi
add esp, 8
ret 4
Function at 0x451a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esp + 0xc0]
push ecx
mov dword [esp + 0x20], eax
call fcn.004354b0
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0xc0]
push edx
push eax
push esi
call fcn.004354d0
mov edx, dword [ebp + 0x14]
mov ecx, 0x28
lea esi, [esp + 0xc0]
lea edi, [esp + 0x160]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x160]
push ecx
push edx
push ebx
call fcn.00435550
mov eax, dword [ebp + 0x20]
lea ecx, [eax - 1]
mov eax, 0xcccccccd
mul ecx
shr edx, 4
add edx, 1
mov dword [esp + 0x18], edx
je 0x451c5b
lea edx, [esp + 0x204]
mov dword [esp + 0x10], 0
mov ebx, 1
mov dword [esp + 0xc], edx
xor eax, eax
mov ecx, 0x28
lea esi, [esp + 0x160]
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x204], eax
mov dword [esp + 0x208], eax
mov dword [esp + 0x20c], eax
mov dword [esp + 0x210], eax
mov dword [esp + 0x214], eax
mov ecx, ebx
shr ecx, 0x10
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x219], cl
mov ecx, dword [ebp + 0x18]
mov edx, ebx
shr edx, 8
mov byte [esp + 0x218], al
mov byte [esp + 0x21a], dl
mov byte [esp + 0x21b], bl
mov eax, 4
test ecx, ecx
jbe 0x451c20
mov dword [esp + 0x14], ecx
jmp 0x451b80
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x220]
push edx
call fcn.00435550
lea eax, [esp + 0x20]
push eax
push 0x14
lea ecx, [esp + 0x220]
push ecx
call fcn.004355f0
xor eax, eax
lea esp, [esp]
movzx edx, byte [esp + eax + 0x218]
xor byte [esp + eax + 0x204], dl
movzx ecx, byte [esp + eax + 0x219]
movzx edx, byte [esp + eax + 0x21a]
xor byte [esp + eax + 0x205], cl
xor byte [esp + eax + 0x206], dl
movzx ecx, byte [esp + eax + 0x21b]
movzx edx, byte [esp + eax + 0x21c]
xor byte [esp + eax + 0x207], cl
xor byte [esp + eax + 0x208], dl
add eax, 5
cmp eax, 0x14
jb 0x451bb0
sub dword [esp + 0x14], 1
mov ecx, 0x28
lea esi, [esp + 0xc0]
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
jne 0x451b80
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, dword [ebp + 0x20]
jae 0x451c40
mov edx, dword [esp + 0xc]
mov dl, byte [edx + eax]
mov esi, dword [esp + 0x1c]
mov byte [eax + esi], dl
inc ecx
inc eax
cmp ecx, 0x14
jb 0x451c26
mov eax, 0x14
add dword [esp + 0x10], eax
sub dword [esp + 0xc], eax
inc ebx
lea eax, [ebx - 1]
cmp eax, dword [esp + 0x18]
jb 0x451b05
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049dea6
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x455f20
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x104
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push esi
mov esi, dword [esp + 0x10c]
push 0x100
push esi
lea edx, [esp + 0xc]
call fcn.00455e90
test al, al
je 0x455f62
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 0x104]
pop esi
xor ecx, esp
call fcn.0049dea6
add esp, 0x104
ret 8

Function at 0x455f80
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x108
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x104], eax
mov ecx, dword [esp + 0x110]
push esi
mov esi, dword [esp + 0x110]
push edi
mov edi, dword [esp + 0x11c]
push 0x100
push esi
lea edx, [esp + 0x14]
call fcn.00455e90
test al, al
je 0x455ff5
lea eax, [esp + 8]
push eax
push 0x20006
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x455ff5
mov edx, dword [esp + 8]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 8]
test eax, eax
je 0x455ff5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.0049dea6
add esp, 0x108
ret 0xc

Function at 0x456010
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x2dc
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebp
mov ebp, dword [esp + 0x2e4]
push edi
mov edi, dword [esp + 0x2ec]
cmp byte [edi], 0
je 0x456106
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x456106
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
xor esi, esi
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push ecx
mov dword [esp + 0x30], 0xc8
call ebx
test eax, eax
jne 0x4560e3
lea esp, [esp]
lea edx, [esp + 0x20]
push edx
push edi
lea eax, [esp + 0xf0]
push 0x4b3908
push eax
call fcn.0049deb5
add esp, 0x10
lea ecx, [esp + 0xe8]
push ecx
push ebp
call fcn.00456010
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
inc esi
push esi
push edx
mov dword [esp + 0x30], 0xc8
call ebx
test eax, eax
je 0x456090
mov eax, dword [esp + 0x14]
pop esi
pop ebx
test eax, eax
je 0x4560f4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x456106
inc dword [0x4ee15c]
mov ecx, dword [esp + 0x2e0]
pop edi
pop ebp
xor ecx, esp
call fcn.0049dea6
add esp, 0x2dc
ret 8
Function at 0x456330
Capabilities:
Set registry value

Disassembly:
sub esp, 0xac
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xc0]
push ebp
mov ebp, dword [esp + 0xbc]
push esi
mov esi, dword [esp + 0xbc]
push edi
mov dword [esp + 0x10], eax
call fcn.0043ca60
test eax, eax
je 0x4563bf
lea edi, [esp + 0x14]
mov ecx, ebp
call fcn.004561c0
mov esi, eax
test esi, esi
je 0x4563fc
mov edx, dword [esp + 0x10]
push 0x1000000
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.0046d7e0
push ebx
call fcn.0046dac0
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x456400
push ebx
call fcn.0046dac0
lea edx, [eax + eax + 2]
push edx
call fcn.0049e9f4
add esp, 4
push 0x1000000
mov edi, eax
push edi
push ebx
call fcn.0046d7a0
mov eax, dword [esp + 0x10]
push edi
push eax
push ebp
push esi
call fcn.004562d0
push edi
mov esi, eax
call fcn.0049e845
add esp, 4
mov eax, esi
jmp 0x456400
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049dea6
add esp, 0xac
ret 0x10

Function at 0x456420
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
lea edi, [esp + 0x10]
call fcn.004561c0
mov esi, eax
test esi, esi
je 0x456463
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
push ecx
push 3
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
ret 0x14
mov eax, dword [esp + 0x10]
pop edi
pop esi
ret 0x14

Function at 0x456470
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
call fcn.00456250
mov ebx, dword [esp + 0x18]
mov esi, eax
test esi, esi
je 0x4564bf
mov edx, dword [esp + 0x14]
push edi
lea eax, [esp + 0x24]
push eax
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x4564bf
cmp dword [esp + 0x20], 0
je 0x4564bf
pop esi
mov al, 1
pop ebx
ret 0x18
mov eax, dword [esp + 0x1c]
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4564c7
pop esi
xor al, al
pop ebx
ret 0x18
Function at 0x4564e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xac
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xc0]
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
mov ebp, dword [esp + 0xc0]
push esi
mov esi, dword [esp + 0xbc]
push edi
mov edi, dword [esp + 0xcc]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
call fcn.0043ca60
test eax, eax
je 0x456583
mov ecx, ebx
call fcn.00456250
push 0x1000000
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov esi, eax
call fcn.0046d7e0
test esi, esi
je 0x45657f
lea edx, [esp + 0xd4]
push edx
push edi
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x45657f
cmp dword [esp + 0xd4], ebx
jbe 0x45657f
mov al, 1
jmp 0x4565df
xor bl, bl
jmp 0x4565d2
mov edx, dword [esp + 0xd4]
inc edx
push edx
call fcn.0049e9f4
add esp, 4
mov edi, eax
mov eax, dword [esp + 0xd4]
push eax
push 0x4b1914
push edi
push ebp
push ebx
push esi
call fcn.00456470
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0x10]
push ecx
push edx
push edi
mov bl, al
call fcn.0046d7e0
push edi
call fcn.0049e845
add esp, 4
test bl, bl
jne 0x4565dd
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push eax
push edi
call fcn.0046dae0
mov al, bl
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049dea6
add esp, 0xac
ret 0x18

Function at 0x456600
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
call fcn.00456250
mov ebx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x10], 4
test esi, esi
je 0x456657
mov edx, dword [esp + 0x14]
push edi
lea eax, [esp + 0x14]
push eax
push ebx
lea ecx, [esp + 0x18]
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x456657
cmp dword [esp + 0x10], 0
je 0x456657
pop esi
mov al, 1
pop ebx
ret 0x14
mov eax, dword [esp + 0x1c]
mov dword [ebx], eax
pop esi
xor al, al
pop ebx
ret 0x14

Function at 0x4566a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
call fcn.00456250
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x14], ebp
test esi, esi
je 0x4566f2
mov edx, dword [esp + 0x18]
push edi
lea eax, [esp + 0x18]
push eax
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x4566f2
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x45671a
mov eax, dword [esp + 0x20]
push ebp
test eax, eax
je 0x45670d
push eax
push ebx
call fcn.0049e4e0
add esp, 0xc
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x18
push 0
push ebx
call fcn.0049e460
add esp, 0xc
xor eax, eax
pop esi
pop ebp
pop ebx
ret 0x18
Function at 0x456800
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push esi
push edi
lea edi, [esp + 0xc]
mov esi, 0x80000001
mov dword [esp + 0x14], eax
call fcn.004561c0
mov esi, eax
test esi, esi
je 0x456849
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
ret 0xc
mov eax, dword [esp + 0xc]
pop edi
pop esi
ret 0xc

Function at 0x456860
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
lea edi, [esp + 0xc]
mov esi, 0x80000001
call fcn.004561c0
mov esi, eax
test esi, esi
je 0x4568a4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
push ecx
push 3
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
ret 0x10
mov eax, dword [esp + 0xc]
pop edi
pop esi
ret 0x10

Function at 0x4568b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
mov esi, 0x80000001
call fcn.00456250
mov edi, eax
test edi, edi
jne 0x4568cb
pop edi
pop esi
ret 8
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg esi
sbb esi, esi
not esi
and esi, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
ret 8
Function at 0x45bca0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x810
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x80c], eax
push ebx
mov ebx, dword [esp + 0x81c]
push ebp
mov ebp, dword [esp + 0x824]
push esi
mov esi, dword [esp + 0x820]
cmp ebx, esi
je 0x45bcd8
push ebp
push esi
push ebx
call fcn.00465320
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SoftwareWinRARGeneral
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45bdc0
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45bd00
sub eax, edx
mov ecx, 0x3ff
sub ecx, eax
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x41c]
push eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.LanguageFolder
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45bdb5
mov byte [esp + 0x18], al
push 0x400
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edx, [esp + 0x18]
push edx
call fcn.0044dfb0
push esi
call fcn.0044db30
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45bd70
push edi
lea edi, [esp + 0x1c]
sub eax, edx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x45bd80
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0042f950
pop edi
test al, al
je 0x45bdb5
push ebp
lea ecx, [esp + 0x1c]
push ecx
push ebx
call fcn.00465320
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x818]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049dea6
add esp, 0x810
ret 0xc