joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401300
Capabilities:
Get common file path

Disassembly:
sub esp, 0x234
push esi
mov esi, dword [esp + 0x23c]
mov dword [esp + 4], 0
mov dword [0x41255c], esi
call fcn.004016a0
lea eax, [esp + 8]
mov dword [esp + 8], 0x30
push eax
push 0x8002
push 0
call dword [sym.imp.USER32.dll_GetClassInfoExA]
test eax, eax
jne 0x401349
pop esi
add esp, 0x234
ret 0x10
push 0x77
push esi
mov dword [esp + 0x24], esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 8]
mov dword [esp + 0x30], str.GPINSClass_JH
push ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x40137e
xor eax, eax
pop esi
add esp, 0x234
ret 0x10
mov eax, dword [0x40f268]
mov ecx, dword [0x41255c]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x138]
push 0x100
push edx
push eax
push ecx
call esi
mov dword [0x412564], 0
mov edx, dword [esp + 0x30]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
mov dword [0x412564], eax
jne 0x401404
mov eax, dword [esp + 0x30]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x412564], eax
push 0x412568
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 4]
push edx
call fcn.00401480
add esp, 4
test eax, eax
jne 0x40143d
pop esi
add esp, 0x234
ret 0x10
mov edx, dword [0x40f24c]
mov eax, dword [0x41255c]
lea ecx, [esp + 0x38]
push 0x100
push ecx
push edx
push eax
call esi
lea ecx, [esp + 0x38]
push ecx
push 0x40f288
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4013d9
xor eax, eax
pop esi
add esp, 0x234
ret 0x10
mov ecx, dword [0x40f270]
mov edx, dword [0x41255c]
lea eax, [esp + 0x38]
push 0x100
push eax
push ecx
push edx
call esi
mov eax, dword [0x40f27c]
mov ecx, dword [0x41255c]
push 0
push 0x4010b0
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
pop esi
add esp, 0x234
ret 0x10
Function at 0x401480
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x30c
mov dl, byte [0x412674]
push ebx
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x219]
mov byte [esp + 0x218], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], 0x100
push ecx
push 1
stosb byte es:[edi], al
mov eax, dword [esp + 0x324]
push 0
push 0x40f2c4
push 0x80000002
mov dword [esp + 0x24], 0
mov dword [eax], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40151e
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov edi, 0x40f2b8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x218]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push 0
push ecx
push edx
call ebx
test eax, eax
je 0x401586
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov edi, str.CSP_Version
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x118]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push 0
push ecx
push edx
call ebx
test eax, eax
je 0x4015eb
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x30c
ret
Function at 0x4018a0
Capabilities:
Create process on windows
Start service

Disassembly:
sub esp, 0x3c
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 4]
mov dword [esp + 4], 0x3c
push ecx
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x14], 0x40f35c
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x40f350
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov edx, dword [esp + 0x3c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x401927
pop edi
add esp, 0x3c
ret
push ebx
push esi
push 0xf01ff
push 0x40f330
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x401954
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x3c
ret

Function at 0x401970
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x40f35c
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0x40f364
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
pop edi
add esp, 0x3c
ret

Function at 0x4019e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x40f35c
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0x40f368
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
pop edi
add esp, 0x3c
ret
Function at 0x401ef0
Capabilities:
Delete registry key

Disassembly:
push ecx
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0xf003f
push esi
push str.SOFTWAREMicrosoftCryptographyCalaisSmartCardsHSIC_MiniCard
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401f3e
mov ecx, dword [esp + 4]
push 0x412674
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401f3e
mov eax, dword [esp + 4]
test eax, eax
je 0x401f36
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x401f4d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret

Function at 0x401f60
Capabilities:
Set registry value

Disassembly:
sub esp, 0x28
mov al, byte [0x412674]
push ebx
push edi
mov byte [esp + 0x10], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x11]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
push edx
push ebx
push 0xf003f
push ebx
push 0x412674
stosw word es:[edi], ax
push ebx
push 0x40f230
push 0x80000002
mov dword [esp + 0x2c], ebx
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402019
mov edi, str.2.0.0.14
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov edx, dword [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x18]
push ecx
push 1
push ebx
push 0x40f4a4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
jne 0x402019
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x40200e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x402028
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00402b20
mov eax, ebx
pop edi
pop ebx
add esp, 0x28
ret
Function at 0x402040
Capabilities:
Persist via app paths registry key
Set registry value

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x10
mov esi, 0x40f4c0
lea edi, [esp + 0x18]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x2f
lea edi, [esp + 0x59]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
xor ebp, ebp
push eax
push ecx
push ebp
push 0xf003f
push ebp
push 0x412674
lea edx, [esp + 0x30]
push ebp
push edx
push 0x80000002
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402104
mov esi, dword [esp + 0x11c]
or ecx, 0xffffffff
mov edi, esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
push ecx
push esi
push 1
push ebp
push 0x40f4b8
push eax
call ebx
test eax, eax
jne 0x402104
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push esi
push 1
push ebp
push 0x412674
push ecx
call ebx
test eax, eax
jne 0x402104
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4020f4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x402113
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x402a50
Capabilities:
Set registry value

Disassembly:
sub esp, 0x28
mov al, byte [0x412674]
push ebx
push edi
mov byte [esp + 0x10], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x11]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
push edx
push ebx
push 0xf003f
push ebx
push 0x412674
stosw word es:[edi], ax
push ebx
push 0x40f230
push 0x80000001
mov dword [esp + 0x2c], ebx
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402b09
mov edi, str.2.0.0.14
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov edx, dword [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x18]
push ecx
push 1
push ebx
push 0x40f4a4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
jne 0x402b09
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x402afe
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x402b18
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop ebx
add esp, 0x28
ret

Function at 0x402b20
Capabilities:
Delete registry key

Disassembly:
push ecx
lea eax, [esp]
push esi
xor esi, esi
push eax
push 1
push esi
push 0x40f230
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402b6b
mov ecx, dword [esp + 4]
push 0x412674
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402b6b
mov eax, dword [esp + 4]
test eax, eax
je 0x402b63
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x402b7a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret

Function at 0x402b80
Capabilities:
Delete registry key

Disassembly:
push ecx
lea eax, [esp]
push esi
xor esi, esi
push eax
push 1
push esi
push 0x40f2c4
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402bcb
mov ecx, dword [esp + 4]
push 0x412674
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402bcb
mov eax, dword [esp + 4]
test eax, eax
je 0x402bc3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x402bda
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x402be0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp]
push eax
push 0x40d1fc
push 1
push 0
push 0x40d20c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x402c14
xor eax, eax
add esp, 0x210
ret
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
mov edx, dword [esp + 0x21c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x40d21c
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x402c58
xor eax, eax
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
add esp, 0x210
ret

Function at 0x402cb0
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x108
mov al, byte [0x412674]
push edi
mov byte [esp + 8], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
lea ecx, [esp + 4]
mov dword [esp + 4], 0
stosw word es:[edi], ax
push ecx
push 0x17
push 0
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
pop edi
jne 0x402d68
mov eax, dword [esp]
test eax, eax
je 0x402d68
lea edx, [esp + 4]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x402d68
mov al, byte [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push 0x40f0ec
mov byte [0x40f0a0], al
mov byte [0x40f0c8], al
mov byte [0x40f0ec], al
call esi
push 0
push 0x40f0c8
call esi
push 0
push 0x40f0a0
call esi
mov al, byte [esp + 8]
push 0
push 0x40f1f4
mov byte [0x40f1f4], al
mov byte [str.C:ProgramDataMicrosoftWindowsDeviceMetadataStorezh_cn], al
mov byte [str.C:ProgramDataMicrosoftWindowsDeviceMetadataStorezh_tw], al
call esi
push 0
push str.C:ProgramDataMicrosoftWindowsDeviceMetadataStorezh_cn
call esi
push 0
push str.C:ProgramDataMicrosoftWindowsDeviceMetadataStorezh_tw
call esi
pop esi
add esp, 0x108
ret
Function at 0x402d70
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x108
mov al, byte [0x412674]
push edi
mov byte [esp + 8], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
lea ecx, [esp + 4]
mov dword [esp + 4], 0
stosw word es:[edi], ax
push ecx
push 0x17
push 0
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
pop edi
jne 0x402e28
mov eax, dword [esp]
test eax, eax
je 0x402e28
lea edx, [esp + 4]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x402e28
mov al, byte [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push 0x40f15c
mov byte [0x40f104], al
mov byte [0x40f134], al
mov byte [0x40f15c], al
call esi
push 0
push 0x40f134
call esi
push 0
push 0x40f104
call esi
mov al, byte [esp + 8]
push 0
push 0x40f1f4
mov byte [0x40f1f4], al
mov byte [str.C:ProgramDataMicrosoftWindowsDeviceMetadataStorezh_cn], al
mov byte [str.C:ProgramDataMicrosoftWindowsDeviceMetadataStorezh_tw], al
call esi
push 0
push str.C:ProgramDataMicrosoftWindowsDeviceMetadataStorezh_cn
call esi
push 0
push str.C:ProgramDataMicrosoftWindowsDeviceMetadataStorezh_tw
call esi
pop esi
add esp, 0x108
ret
Function at 0x404d60
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
push esi
push eax
xor esi, esi
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x404d88
pop esi
add esp, 0x94
ret
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x404dd4
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x404da8
mov esi, 2
mov eax, esi
pop esi
add esp, 0x94
ret
cmp eax, 0xa
jne 0x404dbc
mov esi, 3
mov eax, esi
pop esi
add esp, 0x94
ret
cmp eax, 0x5a
jne 0x404e53
mov esi, 4
mov eax, esi
pop esi
add esp, 0x94
ret
cmp eax, 2
jne 0x404e53
mov eax, dword [esp + 8]
cmp eax, 3
jne 0x404df1
mov esi, 1
mov eax, esi
pop esi
add esp, 0x94
ret
cmp eax, 4
jne 0x404e05
mov esi, 5
mov eax, esi
pop esi
add esp, 0x94
ret
cmp eax, 5
jne 0x404e49
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x404e21
mov esi, 6
mov eax, esi
pop esi
add esp, 0x94
ret
cmp eax, 1
jne 0x404e35
mov esi, 7
mov eax, esi
pop esi
add esp, 0x94
ret
cmp eax, 2
jne 0x404e53
mov esi, 8
mov eax, esi
pop esi
add esp, 0x94
ret
cmp eax, 6
jne 0x404e53
mov esi, 9
mov eax, esi
pop esi
add esp, 0x94
ret

Function at 0x404f30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x40f35c
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0x40f350
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
xor eax, eax
pop edi
add esp, 0x3c
ret
Function at 0x404f90
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20c
mov al, byte [0x412674]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x18], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov edx, dword [0x40f26c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x11c]
push 0x100
stosb byte es:[edi], al
mov eax, dword [0x41255c]
push ecx
xor ebp, ebp
push edx
push eax
mov dword [esp + 0x20], ebp
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push ebp
push 0xf003f
push ebp
push 0x412674
push ebp
push 0x40f5ac
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40500f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x405153
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x220]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [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 + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 1
push ebp
push str.DisplayIcon
push edx
call ebx
test eax, eax
jne 0x405153
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x11c]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push 1
push 0
push str.DisplayName
push ecx
call ebx
test eax, eax
jne 0x405153
mov edi, str.2.0.0.14
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
not ecx
push ecx
push str.2.0.0.14
push 1
push eax
push str.DisplayVersion
push edx
call ebx
test eax, eax
jne 0x405153
mov ecx, 0x41
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x224]
or ecx, 0xffffffff
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, 0x412674
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push 1
push 0
push str.UninstallString
push ecx
call ebx
test eax, eax
jne 0x405153
mov ebp, 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x405162
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret