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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0c
mov eax, dword [0x44a750]
push ebx
mov dword [ebp - 4], eax
xor ebx, ebx
cmp dword [ebp + 8], 2
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
jne 0x40de5b
push 0x1c
jmp 0x40de5d
push 0x23
push ebx
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
push 0x100
lea eax, [ebp - 0x60c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ole32.dll_StringFromGUID2]
cmp eax, ebx
jl 0x40df1f
cmp dword [ebp + 0x10], ebx
mov eax, str.SupportTasks
jne 0x40de90
mov eax, str.PlayTasks
push esi
push dword [ebp + 0x14]
mov esi, 0x200
push eax
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0x20c]
push eax
push str._sMicrosoftWindowsGameExplorer_s_s_d
lea eax, [ebp - 0xa0c]
push esi
push eax
call fcn.0040d9ac
add esp, 0x1c
push ebx
push ebx
push esi
lea eax, [ebp - 0x40c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xa0c]
push eax
push ebx
push ebx
mov byte [ebp - 0x40c], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x40c]
push ebx
push eax
call fcn.004137a4
push dword [ebp + 0x18]
lea eax, [ebp - 0xa0c]
push eax
push 0x43dbb4
lea eax, [ebp - 0xe0c]
push esi
push eax
call fcn.0040d9ac
lea eax, [ebp - 0xe0c]
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call fcn.0040d85a
add esp, 0x28
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0042954e
leave
ret 0x1c
Function at 0x40df2c
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov eax, 0x3234
lea ebp, [esp - 0x31b4]
call fcn.004294e0
mov eax, dword [0x44a750]
push ebx
push esi
mov esi, dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
push edi
mov dword [ebp + 0x31b0], eax
xor ebx, ebx
xor eax, eax
mov word [ebp + 0x2db0], bx
mov ecx, 0xff
lea edi, [ebp + 0x2db2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0x29a8]
push eax
push ebx
push ebx
push 0x1c
push ebx
call esi
cmp eax, ebx
jl 0x40e0a6
lea eax, [ebp + 0x27a0]
push eax
push ebx
push ebx
push 0x23
push ebx
call esi
cmp eax, ebx
jl 0x40e0a6
push 0x100
lea eax, [ebp + 0x2bb0]
push eax
push dword [ebp + 0x31bc]
call dword [sym.imp.ole32.dll_StringFromGUID2]
cmp eax, ebx
jl 0x40e0a6
lea eax, [ebp + 0x2bb0]
push eax
lea eax, [ebp + 0x29a8]
push eax
push str._sMicrosoftWindowsGameExplorer_s
lea eax, [ebp + 0x2db0]
push 0x200
push eax
call fcn.0040d9ac
add esp, 0x14
cmp eax, ebx
jl 0x40e0a6
push 0x1e
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00428c80
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0xc
push ebx
push ebx
push 0x2800
lea eax, [ebp - 0x60]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x2db0]
push eax
push ebx
push ebx
mov dword [ebp - 0x7c], 3
mov byte [ebp - 0x60], bl
call esi
mov edi, dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
mov word [ebp - 0x70], 0x414
call edi
lea eax, [ebp + 0x2bb0]
push eax
lea eax, [ebp + 0x27a0]
push eax
push str._sMicrosoftWindowsGameExplorer_s
lea eax, [ebp + 0x2db0]
push 0x200
push eax
call fcn.0040d9ac
add esp, 0x14
cmp eax, ebx
jl 0x40e0a6
push 0x1e
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00428c80
add esp, 0xc
push ebx
push ebx
push 0x2800
lea eax, [ebp - 0x60]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x2db0]
push eax
push ebx
push ebx
mov dword [ebp - 0x7c], 3
mov byte [ebp - 0x60], bl
call esi
lea eax, [ebp - 0x60]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
mov word [ebp - 0x70], 0x414
call edi
xor eax, eax
mov ecx, dword [ebp + 0x31b0]
pop edi
pop esi
pop ebx
call fcn.0042954e
add ebp, 0x31b4
leave
ret 4
Function at 0x410606
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x44a750]
push ebx
push esi
push edi
mov dword [ebp + 0x8c], eax
mov byte [ebp - 0x7d], 0
call fcn.00429210
test eax, eax
pop ecx
jbe 0x41063c
cmp byte [eax + edi - 1], 0x5c
mov ebx, 0x43dffc
jne 0x410641
mov ebx, 0x43ccac
xor eax, eax
xor esi, esi
test eax, eax
je 0x410650
push eax
call fcn.00429744
pop ecx
push esi
push ebx
push edi
lea eax, [ebp - 0x7c]
push str._s_stemp._d.dat
push eax
call fcn.0042aa3d
lea eax, [ebp - 0x7c]
push 0x43dfe8
push eax
inc esi
call fcn.00429ac1
add esp, 0x1c
test eax, eax
je 0x41067e
cmp esi, 0x64
jl 0x410645
jmp 0x4106a7
lea eax, [ebp - 0x7c]
push 0x43dfe4
push eax
call fcn.00429ac1
test eax, eax
pop ecx
pop ecx
je 0x4106a7
push eax
call fcn.00429744
pop ecx
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 0x7d], 1
mov ecx, dword [ebp + 0x8c]
mov al, byte [ebp - 0x7d]
pop esi
pop ebx
call fcn.0042954e
add ebp, 0x90
leave
ret

Function at 0x4106bf
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [ebx + 0x94], edi
mov dword [ebp - 4], edi
jne 0x4106dd
mov eax, 0x400
jmp 0x41074f
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push str.SoftwareMicrosoftInternet_ExplorerNew_WindowsAllow
push SysReAllocString
mov dword [ebp + 8], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x410745
mov eax, dword [ebx + 0x94]
cmp dword [eax], edi
je 0x41073a
push esi
xor esi, esi
push edi
push edi
push 3
push edi
push dword [esi + eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x41072b
or dword [ebp - 4], 0x20
mov eax, dword [ebx + 0x94]
add esi, 4
cmp dword [esi + eax], edi
jne 0x410712
pop esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41074c
mov dword [ebp - 4], 0x40
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x410753
Capabilities:
Copy file
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1bc]
sub esp, 0x23c
mov eax, dword [0x44a750]
push esi
mov dword [ebp + 0x1b8], eax
xor esi, esi
lea eax, [ebp - 0x64]
push eax
push 8
push esi
push str.SoftwareMozilla
push dword [ebp + 0x1c8]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x70], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41092c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, 0x104
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x68]
mov dword [ebp - 0x60], edi
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, esi
mov dword [ebp - 0x78], eax
jne 0x410919
lea eax, [ebp - 0x58]
push str.Extensions
push eax
call fcn.00429610
pop ecx
pop ecx
lea eax, [ebp - 0x70]
push eax
push 1
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410919
inc dword [ebp - 0x74]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0xb0]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push str.Plugins
push dword [ebp - 0x70]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x6c], 1
call ebx
test eax, eax
jne 0x41088e
lea eax, [ebp + 0xb0]
push eax
call fcn.00429210
pop ecx
lea ecx, [ebp + 0xb0]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x410858
lea eax, [ebp + 0xb0]
push 0x43c9e4
push eax
call fcn.00429610
pop ecx
pop ecx
mov eax, dword [ebp + 0x1c4]
push dword [eax + 0x84]
lea eax, [ebp + 0xb0]
push eax
call fcn.00429610
pop ecx
pop ecx
push esi
lea eax, [ebp + 0xb0]
push eax
push dword [ebp + 0x1cc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x41088e
or dword [ebp - 0x5c], 8
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0xb0]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push str.Components
push dword [ebp - 0x70]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x6c], 1
call ebx
test eax, eax
jne 0x410919
lea eax, [ebp + 0xb0]
push eax
call fcn.00429210
pop ecx
lea ecx, [ebp + 0xb0]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x4108e3
lea eax, [ebp + 0xb0]
push 0x43c9e4
push eax
call fcn.00429610
pop ecx
pop ecx
mov eax, dword [ebp + 0x1c4]
push dword [eax + 0x88]
lea eax, [ebp + 0xb0]
push eax
call fcn.00429610
pop ecx
pop ecx
push esi
lea eax, [ebp + 0xb0]
push eax
push dword [ebp + 0x1d0]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x410919
or dword [ebp - 0x5c], 0x10
inc dword [ebp - 0x68]
cmp dword [ebp - 0x78], esi
je 0x4107ab
cmp dword [ebp - 0x74], esi
pop edi
pop ebx
jne 0x410930
or byte [ebp - 0x5c], 0x80
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x1b8]
mov eax, dword [ebp - 0x5c]
pop esi
call fcn.0042954e
add ebp, 0x1bc
leave
ret
Function at 0x410970
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push esi
push edi
je 0x410a07
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x410a07
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
jbe 0x410a00
push eax
call fcn.00426e44
mov esi, eax
test esi, esi
pop ecx
jne 0x4109af
mov eax, 0x8007000e
jmp 0x410a0c
push esi
push dword [ebp - 4]
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4109f9
and dword [ebp + 8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x43c9e4
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4109f9
mov eax, dword [ebp + 8]
test eax, eax
je 0x4109f9
mov ecx, dword [eax + 8]
mov dword [edi + 4], ecx
mov eax, dword [eax + 0xc]
push esi
mov dword [edi], eax
call fcn.00429f46
pop ecx
xor eax, eax
jmp 0x410a0c
push esi
call fcn.00429f46
pop ecx
mov eax, 0x80004005
jmp 0x410a0c
mov eax, 0x80070057
pop edi
pop esi
leave
ret
Function at 0x410c37
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x44a750]
push ebx
push edi
push str.advapi32.dll
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x410c61
xor al, al
jmp 0x410dce
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43e0ec
push edi
call esi
push str.SetEntriesInAclA
push edi
mov dword [ebp - 0x10], eax
call esi
push str.InitializeSecurityDescriptor
push edi
mov dword [ebp - 0x24], eax
call esi
push str.SetSecurityDescriptorDacl
push edi
mov dword [ebp - 0x20], eax
call esi
push str.SetFileSecurityA
push edi
mov dword [ebp - 0x18], eax
call esi
push str.RegSetKeySecurity
push edi
mov dword [ebp - 0x1c], eax
call esi
push 0x43e06c
push edi
mov dword [ebp - 0x28], eax
call esi
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], eax
je 0x410dcb
cmp dword [ebp - 0x24], ebx
je 0x410dcb
cmp dword [ebp - 0x20], ebx
je 0x410dcb
cmp dword [ebp - 0x18], ebx
je 0x410dcb
cmp dword [ebp - 0x1c], ebx
je 0x410dcb
cmp dword [ebp - 0x28], ebx
je 0x410dcb
cmp eax, ebx
je 0x410dcb
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 1
call dword [ebp - 0x10]
test eax, eax
je 0x410dc7
push 0x20
lea eax, [ebp - 0x4c]
push ebx
push eax
call fcn.00428c80
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push esi
mov dword [ebp - 0x4c], 0x1fffff
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 5
mov dword [ebp - 0x10], ebx
call dword [ebp - 0x24]
test eax, eax
jne 0x410dc1
push 0x14
call fcn.00426e44
pop ecx
mov edi, eax
push esi
push edi
call dword [ebp - 0x20]
test eax, eax
je 0x410db1
push ebx
push dword [ebp - 0x10]
push esi
push edi
call dword [ebp - 0x18]
test eax, eax
je 0x410db1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x410d9e
mov eax, dword [eax + 4]
jmp 0x410da1
add eax, 4
push edi
push 4
push eax
call dword [ebp - 0x1c]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call fcn.004291cb
pop ecx
push dword [ebp - 0x14]
call dword [ebp - 0x2c]
mov al, bl
jmp 0x410dcd
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0042954e
leave
ret
Function at 0x411284
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x44a750]
mov ecx, dword [ebp + 0xa8]
push 0x43c9d1
mov dword [ebp + 0x94], eax
call fcn.0041116d
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x78]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push dword [ebp + 0xa0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41132b
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push dword [ebp + 0xa4]
mov dword [ebp - 0x7c], 0x104
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x411322
mov eax, dword [ebp - 0x7c]
test eax, eax
mov byte [ebp + eax - 0x74], 0
jbe 0x411322
push edi
lea edi, [ebp - 0x74]
call fcn.00410606
test al, al
pop edi
je 0x411322
mov ecx, dword [ebp + 0xa8]
lea eax, [ebp - 0x74]
push eax
call fcn.0041116d
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x94]
call fcn.0042954e
add ebp, 0x98
leave
ret

Function at 0x41133e
Capabilities:
Get common file path

Disassembly:
mov eax, 0x43ad3b
call fcn.004291ac
sub esp, 0x12c
mov eax, dword [0x44a750]
push ebx
xor ebx, ebx
push 0x43c9d1
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x138], ebx
call fcn.0041118a
lea eax, [ebp - 0x2c]
push eax
push str.Common_AppData
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call fcn.00411284
add esp, 0xc
cmp dword [ebp - 0x18], ebx
je 0x41139c
call fcn.0040d667
test al, al
je 0x4113b2
call fcn.0040d5c4
test al, al
jne 0x4113b2
lea eax, [ebp - 0x2c]
push eax
push str.AppData
push SysReAllocString
call fcn.00411284
add esp, 0xc
cmp dword [ebp - 0x18], ebx
jne 0x4113f9
push esi
lea eax, [ebp - 0x134]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, ebx
jbe 0x4113d3
cmp eax, esi
jbe 0x4113f3
push edi
lea edi, [ebp - 0x134]
call fcn.00410606
test al, al
pop edi
je 0x4113f3
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041116d
cmp dword [ebp - 0x18], ebx
pop esi
je 0x41143d
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x411405
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmp byte [eax + ecx - 1], 0x5c
je 0x41141b
push 0x5c
push 1
lea ecx, [ebp - 0x2c]
call fcn.00410f2a
push 0xffffffffffffffff
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.00411019
lea eax, [ebp - 0x2c]
push eax
call fcn.004111ca
lea eax, [ebp - 0x2c]
push eax
call fcn.00410c37
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.0041111d
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00410b82
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0042954e
leave
ret
Function at 0x412612
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0xc0]
sub esp, 0x140
mov eax, dword [0x44a750]
push edi
mov dword [ebp + 0xbc], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
xor edi, edi
push edi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0xc8]
mov dword [ebp - 0x5c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x412769
mov eax, dword [ebp - 0x58]
push ebx
inc eax
push esi
push eax
mov dword [ebp - 0x4c], eax
call fcn.00426e49
mov ebx, eax
mov eax, dword [ebp - 0x58]
inc eax
push eax
push edi
push ebx
mov dword [ebp - 0x4c], eax
call fcn.00428c80
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x10
lea eax, [ebp - 0x4c]
push eax
push ebx
lea eax, [ebp - 0x54]
push eax
push edi
push str.Publisher
push dword [ebp + 0xc8]
call esi
test eax, eax
jne 0x412760
cmp dword [ebp - 0x54], 1
jne 0x412760
push str.Zylom_Games
push ebx
call fcn.00429edd
test eax, eax
pop ecx
pop ecx
jne 0x412760
mov eax, dword [ebp - 0x58]
inc eax
push eax
push edi
push ebx
mov dword [ebp - 0x4c], eax
call fcn.00428c80
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
push ebx
lea eax, [ebp - 0x54]
push eax
push edi
push str.GameID
push dword [ebp + 0xc8]
call esi
test eax, eax
jne 0x412760
cmp dword [ebp - 0x54], 4
jne 0x412760
push 4
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0x50], edi
call fcn.00429ae0
add esp, 0xc
cmp dword [ebp - 0x50], edi
jbe 0x412760
mov esi, dword [ebp + 0xd0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
cmp eax, dword [ebp - 0x50]
jne 0x412760
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
push 4
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
push 4
push edi
push str.BuildType
push dword [ebp + 0xc8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
call fcn.004291cb
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0xbc]
pop edi
call fcn.0042954e
add ebp, 0xc0
leave
ret
Function at 0x412d86
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0x14c
mov eax, dword [0x44a750]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp + 0xc8], eax
lea eax, [ebp - 0x40]
push eax
xor esi, esi
mov ebx, 0x20019
push ebx
push esi
push dword [ebp + 0xd8]
mov dword [ebp - 0x5c], 0x104
push dword [ebp + 0xd4]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x48], esi
call edi
test eax, eax
jne 0x412f09
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x412f00
mov eax, dword [ebp - 0x44]
inc eax
push eax
mov dword [ebp - 0x50], eax
call fcn.00426e49
push dword [ebp + 0xd8]
mov dword [ebp - 0x54], eax
call fcn.00429210
add eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x58]
lea eax, [eax + ecx + 0xa]
push eax
call fcn.00426e49
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x60], esi
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x60]
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, esi
mov dword [ebp - 0x78], eax
jne 0x412eda
push dword [ebp - 0x54]
push dword [ebp + 0xd8]
push str._s_s
push dword [ebp - 0x4c]
call fcn.0042aa3d
add esp, 0x10
lea eax, [ebp - 0x48]
push eax
push ebx
push esi
push dword [ebp - 0x4c]
push dword [ebp + 0xd4]
call edi
test eax, eax
jne 0x412ee2
push dword [ebp - 0x4c]
push dword [ebp + 0xe0]
push dword [ebp - 0x48]
call fcn.0041277d
add esp, 0xc
cmp eax, esi
je 0x412ecf
mov edx, dword [ebp + 0xdc]
mov ecx, dword [edx]
cmp ecx, esi
jne 0x412ec7
mov dword [edx], eax
jmp 0x412ecf
mov ecx, dword [ecx + 0x34]
cmp dword [ecx + 0x34], esi
jne 0x412ec4
mov dword [ecx + 0x34], eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x412ee2
cmp eax, 0x103
je 0x412ee2
nop
inc dword [ebp - 0x60]
cmp dword [ebp - 0x78], esi
je 0x412e46
push dword [ebp - 0x4c]
call fcn.004291cb
push dword [ebp - 0x54]
call fcn.004291cb
pop ecx
pop ecx
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc8]
pop edi
pop esi
pop ebx
call fcn.0042954e
add ebp, 0xcc
leave
ret
Function at 0x4137a4
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0x43c9e4
lea eax, [ebp + 1]
xor ebx, ebx
xor edi, edi
push eax
jmp 0x4137da
mov al, byte [esi]
push ebx
push ebp
mov byte [esp + 0x1c], al
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [esp + 0x14]
mov byte [esi], al
mov edi, esi
push 0x43c9e4
inc esi
push esi
call fcn.0042afa0
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
jne 0x4137bb
cmp byte [esp + 0x18], bl
jne 0x413800
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push ebp
call fcn.0042a3cd
mov ebx, eax
jmp 0x41381b
cmp edi, ebx
je 0x413823
mov al, byte [edi]
push ebx
push ebp
mov byte [esp + 0x1c], al
mov byte [edi], bl
call fcn.0042a3cd
mov ebx, eax
mov al, byte [esp + 0x1c]
mov byte [edi], al
neg ebx
pop ecx
sbb bl, bl
pop ecx
inc bl
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret

Function at 0x41382a
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x44a750]
push esi
push edi
push dword [ebp + 0x198]
mov dword [ebp + 0x18c], eax
lea eax, [ebp + 0x88]
push eax
mov byte [ebp - 0x7d], 0
call fcn.00429600
mov esi, 0x43c9e4
lea eax, [ebp + 0x88]
push esi
push eax
call fcn.0041bd67
add esp, 0x10
test al, al
jne 0x413883
lea eax, [ebp + 0x88]
push esi
push eax
call fcn.00429610
pop ecx
pop ecx
xor edi, edi
lea eax, [ebp + 0x88]
push edi
push eax
call fcn.0042a3cd
test eax, eax
pop ecx
pop ecx
jne 0x41390b
lea eax, [ebp - 0x7c]
push eax
push edi
push str..ztfp
lea eax, [ebp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x41390b
push ebx
push edi
mov esi, 0x80
push esi
push 2
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, 0xc0000000
push ebx
lea eax, [ebp - 0x7c]
push eax
call edi
cmp eax, 0xffffffff
jne 0x4138f5
push esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
push eax
push esi
push 2
push eax
push eax
push ebx
lea eax, [ebp - 0x7c]
push eax
call edi
cmp eax, 0xffffffff
je 0x413900
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x7d], 1
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebx
mov ecx, dword [ebp + 0x18c]
mov al, byte [ebp - 0x7d]
pop edi
pop esi
call fcn.0042954e
add ebp, 0x190
leave
ret
Function at 0x413a2c
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0xdc]
sub esp, 0x15c
mov eax, dword [0x44a750]
push ebx
push esi
push 0x44
pop esi
push esi
mov dword [ebp + 0xd8], eax
xor ebx, ebx
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00428c80
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ebp - 0x80], esi
call fcn.00428c80
push dword [ebp + 0xe4]
lea eax, [ebp - 0x2c]
push eax
call fcn.00429600
lea eax, [ebp - 0x2c]
push 0x5c
push eax
call fcn.00429eb0
add esp, 0x28
cmp eax, ebx
je 0x413a94
mov byte [eax + 1], bl
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xe4]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x413ad0
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov bl, 1
mov ecx, dword [ebp + 0xd8]
pop esi
mov al, bl
pop ebx
call fcn.0042954e
add ebp, 0xdc
leave
ret
Function at 0x414309
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
test esi, esi
je 0x41433c
push esi
call fcn.00429210
pop ecx
xor ecx, ecx
test eax, eax
jbe 0x41432b
xor byte [ecx + esi], 0x2f
inc ecx
cmp ecx, eax
jb 0x414322
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
leave
ret