joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4585d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1fc
push ebx
push ebp
mov ebx, ecx
push esi
push edi
push str.CNXT_XYZ_UIU
lea edi, [ebx + 4]
mov dword [esp + 0x18], 0
push edi
call fcn.00473380
mov ebp, dword [esp + 0x218]
add esp, 8
test eax, eax
je 0x458687
push ebp
push edi
call fcn.00473380
add esp, 8
test eax, eax
je 0x458687
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4a919c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
jmp 0x4586a5
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, dword [ebx]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45871f
mov edi, dword [esp + 0x220]
mov ecx, dword [esp + 0x21c]
mov edx, dword [esp + 0x218]
push edi
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x224]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov esi, 1
je 0x458701
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x45871f
mov eax, dword [edi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1fc
ret 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1fc
ret 0x14
Function at 0x458730
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x1fc
push ebx
push ebp
mov ebx, ecx
push esi
push edi
push str.CNXT_XYZ_UIU
lea edi, [ebx + 4]
mov dword [esp + 0x14], 0
push edi
call fcn.00473380
mov ebp, dword [esp + 0x218]
add esp, 8
test eax, eax
je 0x4587e7
push ebp
push edi
call fcn.00473380
add esp, 8
test eax, eax
je 0x4587e7
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4a919c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
jmp 0x458805
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, dword [ebx]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0xf003f
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x458862
mov ecx, dword [esp + 0x214]
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
mov esi, 1
je 0x458848
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1fc
ret 8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1fc
ret 8
Function at 0x458880
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push eax
mov eax, dword [ecx]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4589ab
push ebx
push ebp
lea ecx, [esp + 0x10]
push edi
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0x130]
push ecx
push edx
mov edi, 0x104
push 0
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebx, dword [esp + 0x22c]
test eax, eax
jne 0x458992
push esi
mov esi, dword [ebx]
cmp esi, 0x1f4
jae 0x458954
lea ecx, [esi + 1]
cmp esi, 0xffffffff
mov dword [ebx], ecx
je 0x458954
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 4
push ecx
call fcn.0048621c
mov edx, eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebx + esi*4 + 0x1f8], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x104
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
push edx
push ecx
lea edx, [esp + 0x20]
push 0
lea ecx, [esp + 0x134]
mov eax, ebp
push edx
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
inc ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x4588f8
pop esi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx]
pop edi
pop ebp
pop ebx
add esp, 0x218
ret 8
mov ecx, dword [esp + 0x220]
mov eax, dword [ecx]
add esp, 0x218
ret 8
Function at 0x4589c0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x493ebb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebp
push esi
xor esi, esi
mov dword [esp + 8], esi
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x130]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx]
push 0x20019
push esi
push edx
push eax
mov dword [esp + 0x13c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, dword [esp + 0x134]
test eax, eax
jne 0x458b83
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push esi
push edx
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x458b78
push ebx
push edi
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x458a87
lea edi, [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x14]
call fcn.004052d0
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x458ab1
push 1
lea ecx, [esp + 0x14]
call fcn.004052d0
mov edi, 0x4b9200
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
push eax
call fcn.004759f0
push eax
call fcn.00472ac0
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00472550
mov esi, dword [ebp]
mov edi, dword [esp + 0x1c]
add esp, 0xc
cmp esi, 0x1f4
mov ebx, edi
jae 0x458b4b
lea ecx, [esi + 1]
cmp esi, 0xffffffff
mov dword [ebp], ecx
je 0x458b4b
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 4
push ecx
call fcn.0048621c
mov edx, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebp + esi*4 + 0x1f8], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, ecx
inc ecx
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x24]
push 0x104
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x458a41
pop edi
xor esi, esi
pop ebx
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
mov ebp, dword [ebp]
cmp eax, esi
mov dword [esp + 0x128], 0xffffffff
je 0x458bb0
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00486245
mov edx, dword [esp + 0xc]
push edx
call fcn.00486245
add esp, 8
mov ecx, dword [esp + 0x120]
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x124
ret 8
Function at 0x460910
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4950b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x4b538c]
push esi
push edi
mov esi, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 8]
push eax
mov byte [esp + 0x1c], 1
call fcn.004823c5
lea ecx, [esp + 8]
call fcn.0048273e
mov edi, 1
lea ecx, [esp + 0xc]
push edi
push ecx
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4b3918
call fcn.004822f6
lea edx, [esp + 0x18]
mov ecx, esi
push edx
call fcn.0045b810
test eax, eax
je 0x46098b
lea eax, [esp + 0xc]
push 1
push eax
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4b3ae8
call fcn.004822f6
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0045b810
test eax, eax
je 0x4609b7
xor edi, edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 0
call fcn.00482288
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.00482288
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 4
Function at 0x462ac0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x304
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0044bde0
test eax, eax
je 0x462b64
push ebp
push 0
lea eax, [esp + 0x114]
push str.CSetupApp::CloseMMSYSWindow_n
push eax
call fcn.00471c30
mov edi, str.ENTRY:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x110]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0044bd70
mov ecx, eax
call fcn.0044be10
lea eax, [esp + 0x10]
push eax
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
pop ebp
lea ecx, [esp + 0x20c]
push ecx
mov ecx, ebx
call fcn.004628f0
lea edx, [esp + 0x20c]
push edx
push 0x4627b0
call dword [sym.imp.USER32.dll_EnumWindows]
call fcn.0044bde0
test eax, eax
je 0x462c1d
push 0
lea eax, [esp + 0x110]
push str.CSetupApp::CloseMMSYSWindow_n
push eax
call fcn.00471c30
mov edi, str.EXIT:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
call fcn.0044bd70
mov ecx, eax
call fcn.0044be20
pop edi
pop esi
pop ebx
add esp, 0x304
ret
Function at 0x46ab50
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4963bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x4b538c]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [esp + 0x14], 1
call esi
test eax, 0x80000000
jne 0x46abba
call esi
and eax, 0xff
cmp eax, 5
jb 0x46abba
mov eax, dword [esp + 0x20]
test eax, eax
je 0x46abac
push str.Global_
jmp 0x46abb1
push str.Local_
lea ecx, [esp + 8]
call fcn.004823c5
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00481ffd
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00482288
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x46c380
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x49661b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [0x4b538c]
push ebx
mov dword [esp + 4], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [esp + 0x130], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46c4ab
mov ecx, dword [esp + 0xc]
lea edx, [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push ebx
push 0x4ac97c
push ecx
mov dword [esp + 0x24], 0x104
call esi
test eax, eax
jne 0x46c439
lea edx, [esp + 0x14]
lea ecx, [esp + 8]
push edx
call fcn.004823c5
lea ecx, [esp + 8]
call fcn.0048273e
push str.MILLENNIUM
lea ecx, [esp + 0xc]
call fcn.00481260
cmp eax, 0xffffffff
jne 0x46c49a
push 0x4ad7d0
lea ecx, [esp + 0xc]
call fcn.00481260
cmp eax, 0xffffffff
jne 0x46c49a
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
push ebx
push 0x4aaa28
push edx
mov dword [esp + 0x24], 0x104
call esi
test eax, eax
jne 0x46c49f
lea eax, [esp + 0x14]
lea ecx, [esp + 8]
push eax
call fcn.004823c5
lea ecx, [esp + 8]
call fcn.0048273e
push str.MILLENNIUM
lea ecx, [esp + 0xc]
call fcn.00481260
cmp eax, 0xffffffff
jne 0x46c49a
push 0x4ad7d0
lea ecx, [esp + 0xc]
call fcn.00481260
cmp eax, 0xffffffff
je 0x46c49f
mov ebx, 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
lea ecx, [esp + 4]
mov dword [esp + 0x11c], 0xffffffff
call fcn.00482288
mov ecx, dword [esp + 0x114]
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x46c4e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x4b538c]
lea ecx, [esp]
push esi
xor esi, esi
push ecx
push 0x20019
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionSetupUpdates
push 0x80000002
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46c549
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push esi
push esi
push str.Windows_98_Second_Edition
push ecx
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46c53e
mov esi, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
call fcn.00482288
mov eax, esi
pop esi
add esp, 0x110
ret

Function at 0x46c5f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push ebx
push esi
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0xc]
push eax
xor esi, esi
mov dword [esp + 0x10], 0x9c
call edi
mov ebx, eax
test ebx, ebx
jne 0x46c640
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call edi
test eax, eax
jne 0x46c640
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
mov eax, dword [esp + 0x1c]
dec eax
je 0x46c710
dec eax
jne 0x46c741
call fcn.0046c560
mov ecx, dword [esp + 0x10]
cmp ecx, 4
ja 0x46c671
mov esi, 5
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x9c
ret
cmp ecx, 5
jne 0x46c6eb
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x46c68f
mov esi, 6
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x9c
ret
cmp ecx, 1
jne 0x46c6a5
mov esi, 7
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x9c
ret
cmp ecx, 2
jne 0x46c741
test eax, eax
je 0x46c6da
test ebx, ebx
mov esi, 0xa
je 0x46c741
cmp byte [esp + 0xa6], 1
jne 0x46c741
mov esi, 8
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x9c
ret
mov esi, 9
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x9c
ret
cmp ecx, 6
jne 0x46c741
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x46c741
xor edx, edx
pop edi
test eax, eax
setne dl
add edx, 0xb
mov esi, edx
mov eax, esi
pop esi
pop ebx
add esp, 0x9c
ret
cmp dword [esp + 0x10], 4
jne 0x46c741
call fcn.0046c380
test eax, eax
je 0x46c731
mov esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x9c
ret
call fcn.0046c4e0
mov esi, eax
neg esi
sbb esi, esi
neg esi
add esi, 2
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x9c
ret

Function at 0x46c750
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
xor esi, esi
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call edi
test eax, eax
jne 0x46c79c
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call edi
test eax, eax
jne 0x46c79c
pop edi
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0x18], 2
jne 0x46c7b7
cmp dword [esp + 0xc], 6
jne 0x46c7b7
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x46c7b7
mov esi, 1
mov eax, esi
pop edi
pop esi
add esp, 0x9c
ret
Function at 0x46c860
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.TEMP
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x18]
mov ecx, edx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x46c8ae
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, 0x4a919c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x46d330
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x20c
push ebx
push esi
push edi
call fcn.0044bde0
test eax, eax
je 0x46d3d0
push 0
lea eax, [esp + 0x11c]
push str.SendExitMsgToApp_n
push eax
call fcn.00471c30
mov edi, str.ENTRY:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x118]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0044bd70
mov ecx, eax
call fcn.0044be10
lea eax, [esp + 0x18]
push eax
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
call fcn.0044bde0
mov edi, dword [esp + 0x220]
mov esi, dword [esp + 0x21c]
test eax, eax
je 0x46d414
mov ecx, dword [esi]
push edi
push ecx
lea edx, [esp + 0x120]
push str.csAppName___s__uExitMsg___d_n
push edx
call fcn.00471c30
add esp, 0x10
lea eax, [esp + 0x118]
push eax
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
lea ecx, [esp + 0xc]
push ecx
push esi
call fcn.0046d070
add esp, 8
test eax, eax
je 0x46d44d
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0x46d2d0
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edi
call dword [sym.imp.USER32.dll_EnumWindows]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0044bde0
test eax, eax
je 0x46d4e4
push 0
lea ecx, [esp + 0x11c]
push str.SendExitMsgToApp_n
push ecx
call fcn.00471c30
mov edi, str.EXIT:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x118]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
call fcn.0044bd70
mov ecx, eax
call fcn.0044be20
pop edi
pop esi
pop ebx
add esp, 0x20c
ret