joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459624
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x45974c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
dec eax
sub eax, 2
jb 0x45966e
mov ecx, 0x7d
mov edx, 0x459764
mov eax, 0x45979c
call fcn.00404270
mov eax, dword [0x45ce5c]
cmp byte [eax], 0
jne 0x4596cc
cmp esi, 1
jne 0x4596a6
lea eax, [ebp - 8]
mov edx, edi
call fcn.00404520
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404520
mov edx, dword [ebp - 0xc]
mov eax, ebx
pop ecx
call fcn.0042baf4
jmp 0x459729
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00404520
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00404520
mov edx, dword [ebp - 0x14]
mov eax, ebx
pop ecx
call fcn.0042bb20
jmp 0x459729
mov eax, edi
call fcn.00404bb4
inc eax
add eax, eax
push eax
mov eax, edi
call fcn.00404ba4
push eax
push esi
push 0
mov eax, dword [ebp - 4]
call fcn.00404ba4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x459729
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xf
lea eax, [ebp - 0x1c]
push eax
push 0
lea edx, [ebp - 0x20]
mov eax, dword [0x45d004]
call fcn.00406438
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x42b5dc]
call fcn.0040c6f8
call fcn.00403c68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459753
lea eax, [ebp - 0x20]
call fcn.00404298
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.004042bc
ret

Function at 0x4597f8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, edx
push esp
push eax
mov eax, dword [0x45d080]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov edx, ebx
lea eax, [esp + 4]
call fcn.00409370
add esp, 0x104
pop ebx
ret
Function at 0x401060
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push str.FILES
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401081
pop edi
pop esi
pop ebx
ret 8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x40109d
pop edi
pop esi
pop ebx
ret 8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4010d4
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
lea edx, [esp + 0x10]
push 0
push edx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, dword [esp + 0x10]
je 0x4010f2
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
ret 8

Function at 0x401110
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
lea ebx, [esi + 0x1c]
mov ecx, ebx
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov edx, dword [0x410308]
push edx
push 0x40d064
mov ecx, esi
call fcn.00401060
mov eax, dword [0x410308]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
jne 0x40115e
mov ecx, dword [0x410308]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
push str.SX_GetVersion
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40118a
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [0x410308]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
push ebx
call eax
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov edx, dword [ebx]
add esp, 4
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push str._d._d._04d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [0x410308]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
Function at 0x4011d0
Capabilities:
Copy file
Delete file

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ebp, dword [esp + 0x14]
lea edi, [esi + 0x10]
xor eax, eax
mov ecx, edi
push 0x14
push ebp
push 0x22
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [0x410308]
mov ecx, dword [0x41031c]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x401220
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
mov edx, dword [0x410308]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x401248
mov eax, dword [0x410308]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
push str.SX_GetVersion
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x401275
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [0x410308]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
push edi
call eax
mov eax, ebp
xor edx, edx
add esp, 4
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
mov eax, dword [edi]
push ecx
push edx
push eax
push str._d._d._04d
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [0x410308]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4

Function at 0x401310
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 8]
test eax, eax
jne 0x401332
push str.FileInstall__error_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, esi
call fcn.00401390
xor eax, eax
pop esi
ret
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
jne 0x401353
push str.DevInstall__error_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, esi
call fcn.00401390
xor eax, eax
pop esi
ret
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
test eax, eax
jne 0x401374
push str.RegInstall__error_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, esi
call fcn.00401390
xor eax, eax
pop esi
ret
mov ecx, esi
call fcn.00401530
mov eax, 1
pop esi
ret
Function at 0x401a70
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x20
lea eax, [esp + 0x24]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401a9b
xor eax, eax
add esp, 0x20
ret 0xc
mov edx, dword [esp + 0x2c]
push esi
push edi
mov ecx, 6
mov esi, 0x40d104
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 8]
mov dword [esp + 8], edx
push eax
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x34]
push edx
lea eax, [esp + 0x1c]
push 0
push eax
push ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop edi
pop esi
test eax, eax
je 0x401aec
xor eax, eax
add esp, 0x20
ret 0xc
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
add esp, 0x20
ret 0xc
Function at 0x401bd0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x344
mov eax, dword [0x40b220]
mov edx, dword [0x40b228]
mov dword [esp + 4], ecx
push ebx
mov ecx, dword [0x40b224]
push 2
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov eax, dword [0x40b22c]
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebx, eax
test ebx, ebx
jne 0x401c22
pop ebx
add esp, 0x344
ret 0xc
lea edx, [esp + 0x20]
push edi
xor eax, eax
mov ecx, 6
lea edi, [esp + 0x28]
push edx
mov dword [esp + 0x28], 0x1c
push eax
rep stosd dword es:[edi], eax
push ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x401dc7
push ebp
mov ebp, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
push esi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x48]
push eax
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x254]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4c]
push 0x104
push eax
push 0
lea ecx, [esp + 0x3c]
push 0
push ecx
push ebx
call ebp
push 0
lea edx, [esp + 0x254]
push 0x104
push edx
push 0
lea eax, [esp + 0x3c]
push 0x16
push eax
push ebx
call ebp
test eax, eax
je 0x401da7
lea ecx, [esp + 0x250]
push 3
push ecx
push 0x40d174
call fcn.004055b0
add esp, 0xc
test eax, eax
jne 0x401da7
push 0xf003f
push 2
push eax
lea edx, [esp + 0x38]
push 1
push edx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
cmp esi, 0xffffffff
je 0x401da7
lea eax, [esp + 0x18]
push eax
push 0xf003f
push 0
push str.Settings
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x401da7
mov ecx, dword [esp + 0x358]
test ecx, ecx
je 0x401d65
mov ecx, dword [esp + 0x360]
mov edx, dword [esp + 0x35c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.00401de0
test eax, eax
je 0x401da0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x48]
push eax
push ecx
lea edx, [esp + 0x154]
push str.Install_to_display_device:_s__04d_
push edx
call fcn.00405556
add esp, 0x10
lea eax, [esp + 0x14c]
push eax
jmp 0x401d9a
mov ecx, dword [esp + 0x14]
push eax
call fcn.00402020
test eax, eax
je 0x401da0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x48]
push ecx
push edx
lea eax, [esp + 0x154]
push str.UnInstall_from_display_device:_s__04d_
push eax
call fcn.00405556
add esp, 0x10
lea ecx, [esp + 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
inc eax
push edx
push eax
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x401c59
pop esi
pop ebp
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop edi
mov eax, 1
pop ebx
add esp, 0x344
ret 0xc
Function at 0x402020
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x118]
mov ebp, dword [esp + 0x220]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
push edx
push 0
push 0x40d104
push ebp
mov dword [esp + 0x24], 0x104
mov dword [esp + 0x28], 7
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40208a
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x210
ret 4
push ebx
mov esi, str.DXVideo
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4020bc
test cl, cl
je 0x4020b8
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4020bc
add eax, 2
add esi, 2
test cl, cl
jne 0x402094
xor eax, eax
jmp 0x4020c1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop ebx
je 0x4020d7
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x210
ret 4
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x14]
sub edx, ecx
or ecx, 0xffffffff
dec edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x118]
push edx
lea esi, [esp + ecx + 0x19]
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x11c]
push ecx
push 7
push 0
push 0x40d104
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebp
add esp, 0x210
ret 4
Function at 0x402310
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x20c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
mov esi, ecx
push ebp
call ebx
push ebp
push 0x80000002
mov ecx, esi
call fcn.00403f60
test eax, eax
jne 0x402344
push str.SetRegSecurity_lpDriver0_
call ebx
lea eax, [esp + 0x10]
push eax
push 0x2001b
push 0
push ebp
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
je 0x402392
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.RegOpenKeyEx__d__d___r_n
lea ecx, [esp + 0x20]
push ecx
call fcn.00405556
add esp, 0x10
lea edx, [esp + 0x14]
push edx
call ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret 0xc
mov eax, dword [esp + 0x228]
mov ecx, dword [esp + 0x224]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00401de0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
test edi, edi
je 0x4023ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.RegCloseKey__d__d___r_n
jmp 0x40236f
push str.OK__r_n
call ebx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x118]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x11c]
mov ecx, esi
push eax
push ebp
call fcn.00402140
test eax, eax
jne 0x402410
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20c
ret 0xc
lea ecx, [esp + 0x118]
push ecx
call ebx
lea edx, [esp + 0x118]
mov ecx, esi
push edx
push 0x80000002
call fcn.00403f60
test eax, eax
jne 0x402439
push str.SetRegSecurity_szCurrentDriver_
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x118]
push eax
push 0x2001b
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
je 0x40246d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.RegOpenKeyEx__d__d___r_n
jmp 0x4024a9
mov ecx, dword [esp + 0x228]
mov edx, dword [esp + 0x224]
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00401de0
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
je 0x4024cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.RegCloseKey__d__d___r_n
lea edx, [esp + 0x20]
push edx
call fcn.00405556
add esp, 0x10
lea eax, [esp + 0x14]
push eax
call ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret 0xc
push str.OK__r_n
call ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret 0xc
Function at 0x402ce0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
xor eax, eax
lea edx, [esp + 4]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ebp, dword [esp + 0x224]
mov ecx, 0x41
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x220]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push edx
push esi
call edi
cmp eax, 5
jne 0x402d64
push ebp
push esi
mov ecx, ebx
call fcn.00403f60
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push 0xf003f
push 0
push ecx
push esi
call edi
test eax, eax
je 0x402d77
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret 8
lea edx, [esp + 0x118]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x118]
push 0x104
push edx
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
test eax, eax
jne 0x402dd8
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x118]
push ecx
push edx
mov ecx, ebx
call fcn.00402ce0
test eax, eax
je 0x402dfe
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x118]
push 0x104
push eax
push 0
push ecx
call edi
test eax, eax
je 0x402da6
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x402e18
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret 8
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20c
ret 8
Function at 0x402e30
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x31c
xor eax, eax
lea edx, [esp + 0x114]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ebp, dword [esp + 0x334]
mov ecx, 0x41
lea edi, [esp + 0x124]
rep stosd dword es:[edi], eax
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x124]
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, dword [esp + 0x330]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push edx
push edi
call esi
cmp eax, 5
jne 0x402ec0
push ebp
push edi
mov ecx, ebx
call fcn.00403f60
lea eax, [esp + 0x10]
lea ecx, [esp + 0x124]
push eax
push 0xf003f
push 0
push ecx
push edi
call esi
test eax, eax
je 0x402ed3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret 8
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x228]
push 0x104
push edx
rep stosd dword es:[edi], eax
push eax
mov eax, dword [esp + 0x1c]
push eax
xor ebp, ebp
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x402fe1
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
lea edx, [esp + 0x28]
push 0
push edx
push eax
inc ebp
call esi
cmp eax, 5
jne 0x402f5d
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
push edx
mov ecx, ebx
call fcn.00403f60
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0x20019
lea ecx, [esp + 0x28]
push 0
push ecx
push edx
call esi
test eax, eax
jne 0x403019
lea eax, [esp + 0x18]
lea ecx, [esp + 0x228]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push 0x40d104
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, str.JPVideo
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x22c]
push str.JPVideo
push ecx
call fcn.0040aa10
add esp, 0xc
test eax, eax
je 0x402ff3
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
push eax
mov ecx, ebx
call fcn.00402e30
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push 0x104
push ecx
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x402f16
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x31c
ret 8
mov eax, dword [esp + 0x334]
mov ecx, dword [esp + 0x330]
push eax
push ecx
mov ecx, ebx
call fcn.00402ce0
test eax, eax
jne 0x402fe1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret 8
Function at 0x4050f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40514d
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x405127
cmp dword [esp + 4], 5
sbb eax, eax
and eax, 2
add esp, 0x94
ret
cmp eax, 1
jne 0x40514d
cmp dword [esp + 4], 4
jne 0x40514d
mov eax, dword [esp + 8]
cmp eax, 0xa
je 0x405141
cmp eax, 0x5a
jne 0x40514d
mov eax, 1
add esp, 0x94
ret
or eax, 0xffffffff
add esp, 0x94
ret
Function at 0x402b20
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040468c
test esi, esi
jne 0x402b56
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040477c
jmp 0x402b74
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a34
mov edi, eax
test esi, esi
je 0x402b74
cmp dword [ebx], 0
je 0x402b74
dec esi
jmp 0x402b5d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4036b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4b100c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403748
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403728
xor eax, eax
push ebp
push 0x403721
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403764
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403728
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4b100c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4b100c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404510
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b304c], 0
je 0x404571
cmp word [0x4b3220], 0xd7b2
jne 0x404539
cmp dword [0x4b3228], 0
jbe 0x404539
mov eax, 0x4b321c
call dword [0x4b3238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4b1054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404598
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b101c], 0
jne 0x40458d
push 0
push 0x4b1074
push 0x4b1054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret