joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b1f6
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x44c750]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.0040b127
cmp eax, esi
jne 0x40b27e
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40b247
lea eax, [ebp - 0x70]
push eax
call fcn.0040b1f6
cmp eax, esi
jne 0x40b27d
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x40b23a
call fcn.0040b110
push dword [ebp + 0x9c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.0040b110
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.0042a8ce
add ebp, 0x94
leave
ret 4
Function at 0x40b68e
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40b699
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x40dcd9
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x43c029
call fcn.0042a52c
push ecx
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 0xa8]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x43e7a8
call fcn.00423f0f
xor ebx, ebx
lea ecx, [esi + 0xbc]
mov dword [ebp - 4], ebx
call fcn.00423f0f
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 4], ebx
mov byte [esi + 0xf4], bl
mov byte [esi + 8], bl
mov byte [esi + 9], bl
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd8], ebx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], ebx
mov byte [esi + 0xa], 1
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x410377
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x44c750]
push ebx
push esi
push edi
mov dword [ebp + 0x8c], eax
mov byte [ebp - 0x7d], 0
call fcn.0042a590
test eax, eax
pop ecx
jbe 0x4103ad
cmp byte [eax + edi - 1], 0x5c
mov ebx, 0x43eb54
jne 0x4103b2
mov ebx, 0x43eb50
xor eax, eax
xor esi, esi
test eax, eax
je 0x4103c1
push eax
call fcn.0042aac4
pop ecx
push esi
push ebx
push edi
lea eax, [ebp - 0x7c]
push str._s_stemp._d.dat
push eax
call fcn.0042bced
lea eax, [ebp - 0x7c]
push 0x43eb3c
push eax
inc esi
call fcn.0042ae41
add esp, 0x1c
test eax, eax
je 0x4103ef
cmp esi, 0x64
jl 0x4103b6
jmp 0x410418
lea eax, [ebp - 0x7c]
push 0x43eb38
push eax
call fcn.0042ae41
test eax, eax
pop ecx
pop ecx
je 0x410418
push eax
call fcn.0042aac4
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.0042a8ce
add ebp, 0x90
leave
ret
Function at 0x410430
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 + 0xe4], edi
mov dword [ebp - 4], edi
jne 0x41044e
mov eax, 0x400
jmp 0x4104c0
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 0x4104b6
mov eax, dword [ebx + 0xe4]
cmp dword [eax], edi
je 0x4104ab
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 0x41049c
or dword [ebp - 4], 0x20
mov eax, dword [ebx + 0xe4]
add esi, 4
cmp dword [esi + eax], edi
jne 0x410483
pop esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4104bd
mov dword [ebp - 4], 0x40
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x4104c4
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 [0x44c750]
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 0x41069d
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 0x41068a
lea eax, [ebp - 0x58]
push str.Extensions
push eax
call fcn.0042a990
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 0x41068a
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 0x4105ff
lea eax, [ebp + 0xb0]
push eax
call fcn.0042a590
pop ecx
lea ecx, [ebp + 0xb0]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x4105c9
lea eax, [ebp + 0xb0]
push 0x43da24
push eax
call fcn.0042a990
pop ecx
pop ecx
mov eax, dword [ebp + 0x1c4]
push dword [eax + 0xd4]
lea eax, [ebp + 0xb0]
push eax
call fcn.0042a990
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 0x4105ff
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 0x41068a
lea eax, [ebp + 0xb0]
push eax
call fcn.0042a590
pop ecx
lea ecx, [ebp + 0xb0]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x410654
lea eax, [ebp + 0xb0]
push 0x43da24
push eax
call fcn.0042a990
pop ecx
pop ecx
mov eax, dword [ebp + 0x1c4]
push dword [eax + 0xd8]
lea eax, [ebp + 0xb0]
push eax
call fcn.0042a990
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 0x41068a
or dword [ebp - 0x5c], 0x10
inc dword [ebp - 0x68]
cmp dword [ebp - 0x78], esi
je 0x41051c
cmp dword [ebp - 0x74], esi
pop edi
pop ebx
jne 0x4106a1
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.0042a8ce
add ebp, 0x1bc
leave
ret
Function at 0x4106e1
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 0x410778
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x410778
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
jbe 0x410771
push eax
call fcn.004281b4
mov esi, eax
test esi, esi
pop ecx
jne 0x410720
mov eax, 0x8007000e
jmp 0x41077d
push esi
push dword [ebp - 4]
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41076a
and dword [ebp + 8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x43da24
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41076a
mov eax, dword [ebp + 8]
test eax, eax
je 0x41076a
mov ecx, dword [eax + 8]
mov dword [edi + 4], ecx
mov eax, dword [eax + 0xc]
push esi
mov dword [edi], eax
call fcn.0042b2c6
pop ecx
xor eax, eax
jmp 0x41077d
push esi
call fcn.0042b2c6
pop ecx
mov eax, 0x80004005
jmp 0x41077d
mov eax, 0x80070057
pop edi
pop esi
leave
ret
Function at 0x4109a8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x44c750]
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 0x4109d2
xor al, al
jmp 0x410b3f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43ec44
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 0x43ebc4
push edi
mov dword [ebp - 0x28], eax
call esi
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], eax
je 0x410b3c
cmp dword [ebp - 0x24], ebx
je 0x410b3c
cmp dword [ebp - 0x20], ebx
je 0x410b3c
cmp dword [ebp - 0x18], ebx
je 0x410b3c
cmp dword [ebp - 0x1c], ebx
je 0x410b3c
cmp dword [ebp - 0x28], ebx
je 0x410b3c
cmp eax, ebx
je 0x410b3c
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 0x410b38
push 0x20
lea eax, [ebp - 0x4c]
push ebx
push eax
call fcn.0042a000
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 0x410b32
push 0x14
call fcn.004281b4
pop ecx
mov edi, eax
push esi
push edi
call dword [ebp - 0x20]
test eax, eax
je 0x410b22
push ebx
push dword [ebp - 0x10]
push esi
push edi
call dword [ebp - 0x18]
test eax, eax
je 0x410b22
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x410b0f
mov eax, dword [eax + 4]
jmp 0x410b12
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.0042a54b
pop ecx
push dword [ebp - 0x14]
call dword [ebp - 0x2c]
mov al, bl
jmp 0x410b3e
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0042a8ce
leave
ret
Function at 0x410ff5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x44c750]
mov ecx, dword [ebp + 0xa8]
push 0x43da11
mov dword [ebp + 0x94], eax
call fcn.00410ede
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 0x41109c
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 0x411093
mov eax, dword [ebp - 0x7c]
test eax, eax
mov byte [ebp + eax - 0x74], 0
jbe 0x411093
push edi
lea edi, [ebp - 0x74]
call fcn.00410377
test al, al
pop edi
je 0x411093
mov ecx, dword [ebp + 0xa8]
lea eax, [ebp - 0x74]
push eax
call fcn.00410ede
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x94]
call fcn.0042a8ce
add ebp, 0x98
leave
ret

Function at 0x4110af
Capabilities:
Get common file path

Disassembly:
mov eax, 0x43c3ab
call fcn.0042a52c
sub esp, 0x12c
mov eax, dword [0x44c750]
push ebx
xor ebx, ebx
push 0x43da11
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x138], ebx
call fcn.00410efb
lea eax, [ebp - 0x2c]
push eax
push str.Common_AppData
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call fcn.00410ff5
add esp, 0xc
cmp dword [ebp - 0x18], ebx
je 0x41110d
call fcn.00413e74
test al, al
je 0x411123
call fcn.00413dd1
test al, al
jne 0x411123
lea eax, [ebp - 0x2c]
push eax
push str.AppData
push SysReAllocString
call fcn.00410ff5
add esp, 0xc
cmp dword [ebp - 0x18], ebx
jne 0x41116a
push esi
lea eax, [ebp - 0x134]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, ebx
jbe 0x411144
cmp eax, esi
jbe 0x411164
push edi
lea edi, [ebp - 0x134]
call fcn.00410377
test al, al
pop edi
je 0x411164
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00410ede
cmp dword [ebp - 0x18], ebx
pop esi
je 0x4111ae
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x411176
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmp byte [eax + ecx - 1], 0x5c
je 0x41118c
push 0x5c
push 1
lea ecx, [ebp - 0x2c]
call fcn.00410c9b
push 0xffffffffffffffff
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.00410d8a
lea eax, [ebp - 0x2c]
push eax
call fcn.00410f3b
lea eax, [ebp - 0x2c]
push eax
call fcn.004109a8
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.00410e8e
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004108f3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0042a8ce
leave
ret
Function at 0x412383
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 [0x44c750]
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 0x4124da
mov eax, dword [ebp - 0x58]
push ebx
inc eax
push esi
push eax
mov dword [ebp - 0x4c], eax
call fcn.004281b9
mov ebx, eax
mov eax, dword [ebp - 0x58]
inc eax
push eax
push edi
push ebx
mov dword [ebp - 0x4c], eax
call fcn.0042a000
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 0x4124d1
cmp dword [ebp - 0x54], 1
jne 0x4124d1
push str.Zylom_Games
push ebx
call fcn.0042b25d
test eax, eax
pop ecx
pop ecx
jne 0x4124d1
mov eax, dword [ebp - 0x58]
inc eax
push eax
push edi
push ebx
mov dword [ebp - 0x4c], eax
call fcn.0042a000
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 0x4124d1
cmp dword [ebp - 0x54], 4
jne 0x4124d1
push 4
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0x50], edi
call fcn.0042ae60
add esp, 0xc
cmp dword [ebp - 0x50], edi
jbe 0x4124d1
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 0x4124d1
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.0042a54b
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0xbc]
pop edi
call fcn.0042a8ce
add ebp, 0xc0
leave
ret
Function at 0x412af7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0x14c
mov eax, dword [0x44c750]
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 0x412c7a
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 0x412c71
mov eax, dword [ebp - 0x44]
inc eax
push eax
mov dword [ebp - 0x50], eax
call fcn.004281b9
push dword [ebp + 0xd8]
mov dword [ebp - 0x54], eax
call fcn.0042a590
add eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x58]
lea eax, [eax + ecx + 0xa]
push eax
call fcn.004281b9
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 0x412c4b
push dword [ebp - 0x54]
push dword [ebp + 0xd8]
push str._s_s
push dword [ebp - 0x4c]
call fcn.0042bced
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 0x412c53
push dword [ebp - 0x4c]
push dword [ebp + 0xe0]
push dword [ebp - 0x48]
call fcn.004124ee
add esp, 0xc
cmp eax, esi
je 0x412c40
mov edx, dword [ebp + 0xdc]
mov ecx, dword [edx]
cmp ecx, esi
jne 0x412c38
mov dword [edx], eax
jmp 0x412c40
mov ecx, dword [ecx + 0x34]
cmp dword [ecx + 0x34], esi
jne 0x412c35
mov dword [ecx + 0x34], eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x412c53
cmp eax, 0x103
je 0x412c53
nop
inc dword [ebp - 0x60]
cmp dword [ebp - 0x78], esi
je 0x412bb7
push dword [ebp - 0x4c]
call fcn.0042a54b
push dword [ebp - 0x54]
call fcn.0042a54b
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.0042a8ce
add ebp, 0xcc
leave
ret
Function at 0x413511
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0x43da24
lea eax, [ebp + 1]
xor ebx, ebx
xor edi, edi
push eax
jmp 0x413547
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 0x43da24
inc esi
push esi
call fcn.0042c250
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
jne 0x413528
cmp byte [esp + 0x18], bl
jne 0x41356d
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push ebp
call fcn.0042b74d
mov ebx, eax
jmp 0x413588
cmp edi, ebx
je 0x413590
mov al, byte [edi]
push ebx
push ebp
mov byte [esp + 0x1c], al
mov byte [edi], bl
call fcn.0042b74d
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 0x413597
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x44c750]
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.0042a980
mov esi, 0x43da24
lea eax, [ebp + 0x88]
push esi
push eax
call fcn.0041d066
add esp, 0x10
test al, al
jne 0x4135f0
lea eax, [ebp + 0x88]
push esi
push eax
call fcn.0042a990
pop ecx
pop ecx
xor edi, edi
lea eax, [ebp + 0x88]
push edi
push eax
call fcn.0042b74d
test eax, eax
pop ecx
pop ecx
jne 0x413678
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 0x413678
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 0x413662
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 0x41366d
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.0042a8ce
add ebp, 0x190
leave
ret
Function at 0x413799
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0xdc]
sub esp, 0x15c
mov eax, dword [0x44c750]
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.0042a000
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ebp - 0x80], esi
call fcn.0042a000
push dword [ebp + 0xe4]
lea eax, [ebp - 0x2c]
push eax
call fcn.0042a980
lea eax, [ebp - 0x2c]
push 0x5c
push eax
call fcn.0042b230
add esp, 0x28
cmp eax, ebx
je 0x413801
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 0x41383d
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.0042a8ce
add ebp, 0xdc
leave
ret