joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404a58
Capabilities:
Get hostname
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x592bb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x114]
push eax
xor ebx, ebx
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x114], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x404c0a
push esi
push edi
push ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x110], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
lea eax, [ebp - 0x10c]
push eax
push ebx
lea eax, [ebp - 0x108]
push eax
push ebx
call esi
cmp dword [ebp - 0x10c], ebx
jne 0x404b55
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x108]
dec ecx
add eax, ecx
push eax
mov edi, 0x56c67c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x404b55
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
lea eax, [ebp - 0x10c]
push eax
push ebx
lea eax, [ebp - 0x108]
push eax
push ebx
call esi
cmp dword [ebp - 0x10c], ebx
je 0x404c02
push dword [ebp - 0x10c]
call fcn.00518d5b
push dword [ebp - 0x110]
mov edi, eax
call fcn.00518d5b
pop ecx
pop ecx
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x110]
push ecx
push eax
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x10c]
push eax
push edi
lea eax, [ebp - 0x108]
push eax
push ebx
call esi
test eax, eax
je 0x404be3
mov esi, dword [ebp - 0x124]
push esi
push edi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0xff
call fcn.00404c19
pop ecx
pop ecx
test eax, eax
je 0x404be3
xor ecx, ecx
mov eax, esi
cmp byte [esi], bl
je 0x404bd9
cmp byte [eax], 0x2d
jne 0x404bd0
inc ecx
cmp ecx, 7
je 0x404bd7
inc eax
cmp byte [eax], bl
jne 0x404bc5
jmp 0x404bd9
mov byte [eax], bl
mov dword [ebp - 0x120], 1
cmp edi, ebx
je 0x404bee
push edi
call fcn.00518def
pop ecx
cmp dword [ebp - 0x11c], ebx
je 0x404c02
push dword [ebp - 0x11c]
call fcn.00518def
pop ecx
mov eax, dword [ebp - 0x120]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005182a2
leave
ret 4
Function at 0x404f99
Capabilities:
Get common file path
Get hostname
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov eax, dword [0x592bb0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x334], eax
lea eax, [ebp - 0x330]
push eax
mov ebx, 0x59ad38
push ebx
mov dword [ebp - 0x330], 0x400
mov byte [0x59ad38], 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov eax, ebx
xor edi, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404fe3
sub eax, esi
je 0x405018
mov cl, byte [edi + 0x59ad38]
cmp cl, 0x7a
ja 0x404ffe
cmp cl, 0x2c
jae 0x405005
mov byte [edi + 0x59ad38], 0x20
mov eax, ebx
inc edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40500b
sub eax, esi
cmp edi, eax
jb 0x404fee
push 0
call fcn.00518d0a
push 0xa
lea ecx, [ebp - 0x214]
push ecx
push eax
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x328], edx
call fcn.005319e0
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
xor eax, eax
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea edi, [ebp - 0x114]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405058
push 6
pop ecx
lea eax, [ebp - 0x114]
mov esi, str.StardockRegistrations
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.005319fa
lea edi, [ebp - 0x114]
pop ecx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40507e
mov esi, str._start8Trial2.bin
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x114]
push 0x56c748
push eax
movsw word es:[edi], word [esi]
call fcn.00518ee5
mov esi, eax
pop ecx
lea eax, [ebp - 0x214]
pop ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4050af
push esi
sub eax, edi
push 1
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00519053
push esi
call fcn.0051913a
add esp, 0x14
lea eax, [ebp - 0x314]
push eax
call fcn.00404a58
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp - 0x328]
push 0
add eax, 0xb6109100
push 0x989680
adc ecx, 2
push ecx
push eax
call fcn.0051d660
mov dword [ebp - 0x33c], eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x33c]
push eax
mov dword [ebp - 0x338], edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x31e]
push eax
movzx eax, word [ebp - 0x322]
push eax
movzx eax, word [ebp - 0x324]
push eax
push ebx
lea eax, [ebp - 0x314]
push eax
push 0x8db
push str.AppId_dMachineSID_sCPUName_sTrialBeginDate_d__02d__02dformattext
push dword [ebp - 0x334]
call fcn.00518c5f
mov ecx, dword [ebp - 8]
add esp, 0x20
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005182a2
leave
ret
Function at 0x405166
Capabilities:
Get common file path
Get hostname
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x592bb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x324]
push eax
mov ebx, 0x59ad38
push ebx
mov dword [ebp - 0x324], 0x400
mov byte [0x59ad38], 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov eax, ebx
xor edi, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4051b0
sub eax, esi
je 0x4051e5
mov cl, byte [edi + 0x59ad38]
cmp cl, 0x7a
ja 0x4051cb
cmp cl, 0x2c
jae 0x4051d2
mov byte [edi + 0x59ad38], 0x20
mov eax, ebx
inc edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4051d8
sub eax, esi
cmp edi, eax
jb 0x4051bb
push 0
call fcn.00518d0a
push 0xa
lea ecx, [ebp - 0x208]
push ecx
push eax
mov dword [ebp - 0x320], eax
mov dword [ebp - 0x31c], edx
call fcn.005319e0
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
xor eax, eax
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405225
push 6
pop ecx
lea eax, [ebp - 0x108]
mov esi, str.StardockRegistrations
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.005319fa
lea edi, [ebp - 0x108]
pop ecx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40524b
mov esi, str._start8Trial2.bin
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x108]
push 0x56c748
push eax
movsw word es:[edi], word [esi]
call fcn.00518ee5
mov esi, eax
pop ecx
lea eax, [ebp - 0x208]
pop ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40527c
push esi
sub eax, edi
push 1
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00519053
push esi
call fcn.0051913a
add esp, 0x14
lea eax, [ebp - 0x308]
push eax
call fcn.00404a58
mov eax, dword [ebp - 0x320]
mov ecx, dword [ebp - 0x31c]
push 0
add eax, 0xb6109100
push 0x989680
adc ecx, 2
push ecx
push eax
call fcn.0051d660
mov dword [ebp - 0x330], eax
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x330]
push eax
mov dword [ebp - 0x32c], edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x312]
push eax
movzx eax, word [ebp - 0x316]
push eax
movzx eax, word [ebp - 0x318]
push eax
push ebx
lea eax, [ebp - 0x308]
push eax
push 0x8db
push str.AppId_dMachineSID_sCPUName_sTrialBeginDate_d__02d__02dformathtml
push dword [ebp - 0x328]
call fcn.00518c5f
mov ecx, dword [ebp - 4]
add esp, 0x20
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005182a2
leave
ret
Function at 0x40885f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x592bb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 6
pop ecx
mov esi, 0x56d748
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x130], eax
movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov dl, byte [ebp + ecx - 0x20]
mov byte [ebp + ecx - 0x120], dl
inc ecx
test dl, dl
jne 0x40889f
lea edi, [ebp - 0x120]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4088b6
mov edx, 0x56d764
mov esi, edx
mov ecx, ebx
movsw word es:[edi], word [esi]
mov esi, ecx
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4088cb
sub ecx, esi
lea edi, [ebp - 0x120]
mov eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4088dd
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x120]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4088fa
mov eax, dword [ebp - 0x124]
mov esi, edx
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40890e
lea edi, [ebp - 0x120]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40891e
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x120]
push eax
and ecx, 3
push reloc.OLEAUT32.dll_SysReAllocString
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [ebp - 0x130]
lea eax, [ebp + 0x18]
push eax
push esi
lea eax, [ebp - 0x12c]
push eax
push 0
push dword [ebp - 0x128]
mov dword [ebp - 0x12c], 1
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408994
mov eax, dword [ebp + 0x10]
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40898a
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408999
sub eax, edx
jne 0x4089b5
mov eax, dword [ebp + 0x10]
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4089ab
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.005182a2
leave
ret
Function at 0x4089d1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x592bb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x124], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0x14]
mov ebx, ecx
push 0
mov ecx, 0x56bc50
mov edi, str.ForceGlobal
mov esi, 0x56bc6c
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], 0xff
call fcn.00408808
pop ecx
cmp eax, 1
jne 0x408a5e
push dword [ebp - 0x134]
push dword [ebp - 0x130]
push dword [ebp - 0x128]
push dword [ebp - 0x124]
push dword [ebp - 0x138]
call fcn.0040885f
add esp, 0x14
jmp 0x408b99
push 6
pop ecx
mov esi, 0x56d748
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
mov cl, byte [ebp + eax - 0x20]
mov byte [ebp + eax - 0x120], cl
inc eax
test cl, cl
jne 0x408a6e
lea edi, [ebp - 0x120]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408a85
mov edx, 0x56d764
mov esi, edx
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408a9a
lea edi, [ebp - 0x120]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408aaa
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x120]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408ac7
mov eax, dword [ebp - 0x138]
mov esi, edx
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408adb
lea edi, [ebp - 0x120]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408aeb
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x120]
push eax
and ecx, 3
push SysReAllocStringLen
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [ebp - 0x130]
lea eax, [ebp - 0x134]
push eax
push esi
lea eax, [ebp - 0x13c]
push eax
push 0
push dword [ebp - 0x124]
mov dword [ebp - 0x13c], 1
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408b67
mov eax, dword [ebp - 0x128]
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408b5d
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408b6c
sub eax, edx
jne 0x408b8b
mov eax, dword [ebp - 0x128]
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408b81
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005182a2
leave
ret
Function at 0x408ba8
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x592bb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, edx
mov dword [ebp - 0x210], eax
xor edx, edx
mov al, byte [edx + 0x594494]
mov byte [ebp + edx - 0x104], al
inc edx
test al, al
jne 0x408bc9
push esi
push edi
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408be4
mov eax, 0x56d764
mov esi, eax
movsw word es:[edi], word [esi]
mov esi, ecx
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x408bf7
sub ecx, esi
lea edi, [ebp - 0x104]
mov edx, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408c09
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x104]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408c26
mov esi, eax
mov eax, ebx
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408c36
lea edi, [ebp - 0x104]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408c46
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ebx, ebx
push ebx
mov ecx, 0x56bc50
mov edi, str.ForceGlobal
mov esi, 0x56bc6c
call fcn.00408808
pop ecx
pop edi
pop esi
cmp eax, 1
jne 0x408ce6
call fcn.00414153
cmp eax, 2
jne 0x408ce6
cmp dword [ebp - 0x210], ebx
jne 0x408c9d
lea eax, [ebp - 0x104]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
jmp 0x408cfa
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x104]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x2d
je 0x408d69
lea edx, [ebp - 0x208]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408cca
lea eax, [ebp - 0x208]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408cdd
jmp 0x408d48
cmp dword [ebp - 0x210], ebx
jne 0x408d05
lea eax, [ebp - 0x104]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x408d87
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x104]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x2d
je 0x408d69
lea edx, [ebp - 0x208]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408d2e
lea eax, [ebp - 0x208]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408d41
sub eax, edx
push eax
lea eax, [ebp - 0x208]
push eax
push 1
push ebx
push dword [ebp - 0x210]
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x408d7b
push dword [ebp - 0x210]
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005182a2
leave
ret
Function at 0x408d96
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1600
call fcn.0051cee0
mov eax, dword [0x592bb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 2
mov dword [ebp - 0x1600], ecx
xor ecx, ecx
pop ebx
movzx edx, word [ecx + 0x5944b0]
mov word [ebp + ecx - 0x15f8], dx
add ecx, ebx
test dx, dx
jne 0x408dbc
push esi
push edi
lea edi, [ebp - 0x15f8]
sub edi, 2
mov cx, word [edi + 2]
add edi, ebx
test cx, cx
jne 0x408ddd
mov edx, 0x56c3fc
mov esi, edx
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x15f8]
sub edi, 2
mov cx, word [edi + 2]
add edi, ebx
test cx, cx
jne 0x408df9
push 5
pop ecx
mov esi, str.Start8.ini
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x15f8]
sub edi, 2
mov cx, word [edi + 2]
add edi, ebx
test cx, cx
jne 0x408e19
mov esi, edx
movsd dword es:[edi], dword [esi]
mov edx, eax
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x408e29
lea edi, [ebp - 0x15f8]
sub eax, edx
sub edi, 2
mov cx, word [edi + 2]
add edi, ebx
test cx, cx
jne 0x408e3e
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp dword [ebp - 0x1600], 0
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
jne 0x408e7b
lea eax, [ebp - 0x15f8]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x408f0a
lea eax, [ebp - 0x15fc]
push eax
lea eax, [ebp - 0x15f8]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov eax, dword [ebp + 0xc]
cmp word [eax], 0x2d
je 0x408eec
lea edx, [ebp - 0x20c]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, ebx
test cx, cx
jne 0x408ea5
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x408ebc
sub eax, edx
sar eax, 1
add eax, eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push dword [ebp - 0x1600]
push dword [ebp - 0x15fc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x408efe
push dword [ebp - 0x1600]
push dword [ebp - 0x15fc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x15fc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005182a2
leave
ret
Function at 0x408f19
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x592bb0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5ab1e8], 0
jne 0x408fc5
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
push str.GetLanguage
call esi
mov eax, 0x100000
push eax
mov dword [0x5ab1e8], 1
mov dword [ebp - 0x20c], eax
call fcn.00518d5b
mov edi, eax
pop ecx
test edi, edi
je 0x408fc3
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x208]
push eax
push 4
call dword [sym.imp.KERNEL32.dll_GetUserPreferredUILanguages]
test eax, eax
je 0x408fbc
push str.GetLanguage_2
call esi
push 0xa
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
call fcn.00519c10
push 0x56d7a8
push edi
call fcn.0051d4b4
add esp, 0x14
test eax, eax
jne 0x408fbc
mov dword [0x5ab1e8], 0xf4
push edi
call fcn.00518def
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005182a2
leave
ret

Function at 0x409305
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x592bb0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov cl, byte [eax + 0x5944e4]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x40931a
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40934f
xor eax, eax
mov cl, byte [eax + 0x5944e4]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x40933b
jmp 0x409363
xor eax, eax
mov cl, byte [eax + 0x594514]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x409351
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x104]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x208]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x409387
lea eax, [ebp - 0x208]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40939a
sub eax, edx
push eax
lea eax, [ebp - 0x208]
push eax
push 1
push 0
push str.Tiles
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.005182a2
leave
ret
Function at 0x4093da
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x592bb0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov cl, byte [eax + 0x594544]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x4093ef
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x409424
xor eax, eax
mov cl, byte [eax + 0x594544]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x409410
jmp 0x409438
xor eax, eax
mov cl, byte [eax + str.SOFTWAREMicrosoftWindowsCurrentVersionRun]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x409426
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x104]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
xor eax, eax
mov cl, byte [eax + 0x56c6b5]
inc eax
test cl, cl
jne 0x409453
push str.Tiles
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.005182a2
leave
ret