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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x100059b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea eax, [ebp - 0x40]
push eax
call fcn.1000567e
push eax
push esi
push dword [ebp + 8]
invalid
invalid

Function at 0x10005aa0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
fld dword [esi + eax*8 + 0x45]
fimul dword [edx - 0x3a]
inc ebp
fisttp dword [edi - 0x3a]
inc ebp
fsub qword [edi - 0x3a]

Function at 0x10005ab0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x10005b09
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
invalid

Function at 0x10005ac0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x10005b09
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
invalid

Function at 0x10006af0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
invalid
invalid
Function at 0x403188
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.00404bf4
test esi, esi
jne 0x4031be
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.00404ce4
jmp 0x4031dc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040308c
mov edi, eax
test esi, esi
je 0x4031dc
cmp dword [ebx], 0
je 0x4031dc
dec esi
jmp 0x4031c5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403c98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41a020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403d30
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403d10
xor eax, eax
push ebp
push 0x403d09
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 0x403d4c
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 0x403d10
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x41a020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41a020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404a74
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41b044], 0
je 0x404ad5
cmp word [0x41b218], 0xd7b2
jne 0x404a9d
cmp dword [0x41b220], 0
jbe 0x404a9d
mov eax, 0x41b214
call dword [0x41b230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404afc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41a02c], 0
jne 0x404af1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x407eb8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405060
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x407ed1
test al, 0x10
je 0x407ed5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x407edc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405060
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x407ef5
test al, 0x10
jne 0x407ef9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a9b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a9f1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404ce4
jmp 0x40a9fa
mov eax, ebx
mov edx, esi
call fcn.00404c48
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40aa04
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40aa26
movzx eax, byte [esp]
jmp 0x40aa28
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b0b8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40af30
mov eax, dword [0x41acd4]
cmp byte [eax], 0
je 0x40b134
mov eax, dword [0x41abe0]
call fcn.0040357c
call fcn.00402eec
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408220
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b17c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b16a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41abc0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41d7f0]
call fcn.00405c1c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x41204c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4121b6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404c8c
mov eax, dword [ebp - 4]
call fcn.00411be4
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x41209e
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00405100
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0041239c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x412173
xor eax, eax
push ebp
push 0x41216c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00411d54
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004121e4
test al, al
je 0x41214a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00404ce4
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x41214a
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00405060
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x412144
mov eax, dword [ebp - 8]
call fcn.00405060
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404dec
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0041204c
dec ebx
cmp ebx, 0xffffffff
jne 0x4120fd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412173
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00411d54
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.00405060
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00411d40
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4121bd
lea eax, [ebp - 0x3c]
call fcn.00404bf4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404c18
ret

Function at 0x4121e4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.004036a8
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x41ad54]
cmp byte [edx + 0xc], 0
je 0x412248
mov edx, dword [0x41ad4c]
cmp dword [edx], 2
jne 0x412248
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x4122c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.00411bf8
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00405060
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x41231f
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x41ac5c]
mov dl, 1
mov eax, dword [0x411af0]
call fcn.0040b278
call fcn.004045b4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x412328
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405060
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x412380
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x41ad60]
mov dl, 1
mov eax, dword [0x411af0]
call fcn.0040b278
call fcn.004045b4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00411c28
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x412b30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x412bee
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 5
jb 0x412b81
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0xf
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x412c04
call fcn.00408794
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.004054a8
jmp 0x412ba6
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0xf
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x412c1c
call fcn.00408794
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.004054a8
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.004054b8
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412bf5
lea eax, [ebp - 0x14]
call fcn.00404bf4
lea eax, [ebp - 8]
call fcn.00404bf4
lea eax, [ebp - 4]
call fcn.00405348
ret
Function at 0x41310c
Capabilities:
Print debug messages
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov dword [ebp - 4], edx
xor edx, edx
push ebp
push 0x4131df
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xf01ff
mov edx, dword [ebp - 4]
push edx
push eax
call sub.advapi32.dll_OpenServiceA
mov ebx, eax
test ebx, ebx
jne 0x413174
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x10]
call fcn.00412f78
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x4131f8
call fcn.00404ee8
mov eax, dword [ebp - 0xc]
call fcn.00405060
push eax
call sub.kernel32.dll_OutputDebugStringA
xor ebx, ebx
jmp 0x4131c4
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push ebx
call sub.advapi32.dll_StartServiceA
test eax, eax
jne 0x4131a5
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x420
je 0x4131a5
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x422
je 0x4131a5
xor eax, eax
jmp 0x4131a7
mov al, 1
neg al
sbb esi, esi
test esi, esi
jne 0x4131b8
call sub.kernel32.dll_GetLastError_1
mov dword [edi], eax
jmp 0x4131bc
xor eax, eax
mov dword [edi], eax
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov ebx, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4131e6
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404c18
ret

Function at 0x413214
Capabilities:
Stop service

Disassembly:
push ebx
push esi
add esp, 0xffffffe4
push 0xf01ff
push edx
push eax
call sub.advapi32.dll_OpenServiceA
mov ebx, eax
test ebx, ebx
jne 0x41322f
xor eax, eax
jmp 0x413242
push esp
push 1
push ebx
call sub.advapi32.dll_ControlService
mov esi, eax
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov eax, esi
add esp, 0x1c
pop esi
pop ebx
ret

Function at 0x41343c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4134ee
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, edi
mov edx, esi
mov eax, ebx
call fcn.00413034
push 0x64
call sub.kernel32.dll_Sleep_1
lea ecx, [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.0041310c
cmp dword [ebp - 8], 0
je 0x4134c3
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00412f78
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x413508
call fcn.00404ee8
mov eax, dword [ebp - 0xc]
call fcn.00405060
push eax
call sub.kernel32.dll_OutputDebugStringA
push 0x64
call sub.kernel32.dll_Sleep_1
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov ebx, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4134f5
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404c18
ret
Function at 0x413d1c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x208], ecx
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x204], ecx
mov dword [ebp - 0x200], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x413ff1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x413f7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
call fcn.0041377c
xor eax, eax
push ebp
push 0x413f6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
call fcn.00407edc
test al, al
jne 0x413db9
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
call fcn.00407f00
test al, al
jne 0x413db9
call fcn.00404660
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x413fc6
call fcn.004093e8
fstp qword [ebp - 0x18]
wait
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 0x414008
call fcn.00409fe8
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x1fc], eax
mov byte [ebp - 0x1f8], 0xb
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x1f4], eax
mov byte [ebp - 0x1f0], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1ec], eax
mov byte [ebp - 0x1e8], 0xb
lea edx, [ebp - 0x1fc]
mov ecx, 2
mov eax, 0x41401c
call fcn.00408794
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1e4]
call fcn.004034cc
call fcn.00402f6c
xor eax, eax
push ebp
push 0x413f4c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407eb8
test al, al
je 0x413e5e
lea eax, [ebp - 0x1e4]
call fcn.00403268
jmp 0x413e69
lea eax, [ebp - 0x1e4]
call fcn.0040325c
lea eax, [ebp - 0x1e4]
call fcn.0040365c
test eax, eax
jne 0x413ec7
lea ecx, [ebp - 0x200]
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00413a10
mov edx, dword [ebp - 0x200]
lea eax, [ebp - 0x1e4]
call fcn.004052f0
call fcn.0040392c
lea ecx, [ebp - 0x204]
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00413a10
mov edx, dword [ebp - 0x204]
lea eax, [ebp - 0x1e4]
call fcn.004052f0
call fcn.0040392c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x1e4]
call fcn.004052f0
call fcn.0040392c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413f53
lea eax, [ebp - 0x1e4]
call fcn.00403594
call fcn.00402f6c
mov ebx, eax
test ebx, ebx
je 0x413f4b
push 0x414030
push dword [ebp - 0x10]
push 0x414044
push dword [ebp - 4]
push 0x414054
lea edx, [ebp - 0x20c]
mov eax, ebx
call fcn.00407a48
push dword [ebp - 0x20c]
push 0x414068
lea eax, [ebp - 0x208]
mov edx, 7
call fcn.00404f64
mov eax, dword [ebp - 0x208]
call fcn.00405060
push eax
call sub.kernel32.dll_OutputDebugStringA
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413ff8
lea eax, [ebp - 0x210]
mov edx, 5
call fcn.00404c18
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404c18
ret
Function at 0x4146e8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405050
xor eax, eax
push ebp
push 0x41486e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404bf4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00405060
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x41484b
mov eax, ebx
call fcn.00402dc4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x414844
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push edi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x41482e
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x41487c
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x41482e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov ecx, 0xffff
xor edx, edx
div ecx
xor edx, edx
push edx
push eax
mov eax, esi
call fcn.00407b34
push dword [esi]
push 0x414888
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x18]
call fcn.00407b34
push dword [ebp - 0x18]
mov eax, esi
mov edx, 3
call fcn.00404f64
push dword [esi]
push 0x414888
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov ecx, 0xffff
xor edx, edx
div ecx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.00407b34
push dword [ebp - 0x1c]
mov eax, esi
mov edx, 3
call fcn.00404f64
push dword [esi]
push 0x414888
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00407b34
push dword [ebp - 0x20]
mov eax, esi
mov edx, 3
call fcn.00404f64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41484b
mov eax, dword [ebp - 0xc]
call fcn.00402de0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414875
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404c18
lea eax, [ebp - 4]
call fcn.00404bf4
ret

Function at 0x414988
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4149f7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404e64
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.004079a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4149fe
lea eax, [ebp - 0x10c]
call fcn.00404bf4
ret