joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4029a4
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.004046c0
test esi, esi
jne 0x4029da
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.004047b0
jmp 0x4029f8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402858
mov edi, eax
test esi, esi
je 0x4029f8
cmp dword [ebx], 0
je 0x4029f8
dec esi
jmp 0x4029e1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402f80
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x437008], 0x8088405
inc edx
mov dword [ebx + 0x437008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403908
Capabilities:
Query or enumerate registry value

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

Function at 0x404544
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x43a044], 0
je 0x4045a5
cmp word [0x43a218], 0xd7b2
jne 0x40456d
cmp dword [0x43a220], 0
jbe 0x40456d
mov eax, 0x43a214
call dword [0x43a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x43729c
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 0x4045cc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x437030], 0
jne 0x4045c1
push 0
push 0x437294
push 0x43729c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405df4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406024
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e77
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406024
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e77
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406040
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405f00
xor eax, eax
push ebp
push 0x405ef9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405c3c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405ede
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406060
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405ede
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f00
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40601a
cmp byte [ebp - 0xd], 0
jne 0x405f47
cmp byte [ebp - 0x12], 0
je 0x40601a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405f60
dec ebx
cmp byte [ebx], 0x2e
je 0x405f6f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405f5f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40601a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405fac
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40601a
cmp byte [ebp - 0xd], 0
je 0x40601a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40601a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4066b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406716
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404930
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ffc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406700
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40671d
lea eax, [ebp - 0x10]
call fcn.004046c0
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b80
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4086d9
test al, 0x10
jne 0x4086dd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x409240
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x40926d
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00408f7f
scasb al, byte es:[edi]
adc ebx, dword [edi - 0x80]
lea eax, [ebp - 0x40]
push eax
call fcn.00408f8f
push eax
push esi
push dword [ebp + 8]
call fcn.00408f44
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.00408f7f
jp 0x40935a
div byte [esi - 0x7717ba73]
pop ebp
call 0xe99e1b40
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00408f8f
push eax
push esi
push dword [ebp + 8]
call fcn.00408f44
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00408f8f
push eax
push esi
push dword [ebp + 8]
call fcn.00408f44
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00408f8f
push eax
push esi
push dword [ebp + 8]
call fcn.00408f44
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00408f7f
mov gs, ebp
push edx
and dword [eax - 0x8363], ecx
dec dword [eax - 0x8263]
inc esi
test dword [esi - 1], edi
invalid
Function at 0x409ce4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [edi]
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.00408f8f
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00408f44
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
mov byte [ebp - 0x69d], 0x8b
mov byte [ebp - 0x69c], 0xec
lea eax, [ebp - 0x694]
push eax
push 5
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x33c]
push 0xffffffffffffffff
invalid

Function at 0x409e44
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00408f5d
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.00408f8f
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00408f44
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.00408f7f
mov esi, 0x689e2d17
add al, 1
add byte [eax], al
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.00408f7f
xor al, 0xd2
dec ebp
mov dword [eax - 0x7fff1f9b], 0xc600e165
inc ebp
loop 0x409fc2
and byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0xa5
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0x96
mov byte [ebp - 0x19], 0xb6
mov byte [ebp - 0x18], 0x87
mov byte [ebp - 0x17], 0x8f
pop esi
inc ebp
ljmp 0xc6b2
inc ebp
in al, dx
add esi, 0x45
in eax, dx
xchg esi, eax
mov byte [ebp - 0x12], 0x8a
mov byte [ebp - 0x11], 0xa3
mov byte [ebp - 0x10], 0xe2
lea eax, [ebp - 0x20]
inc ebp
ljmp 0xc6b2
Function at 0x40b5dc
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 0x40b615
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047b0
jmp 0x40b61e
mov eax, ebx
mov edx, esi
call fcn.00404714
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b628
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 0x40b649
mov al, byte [esp]
jmp 0x40b64b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cc2c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40cc90
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404930
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040830c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc97
lea eax, [ebp - 0xc]
call fcn.004046c0
ret

Function at 0x415538
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b70
mov eax, dword [ebp - 8]
call fcn.00404b70
xor eax, eax
push ebp
push 0x4155aa
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push 0
mov eax, dword [ebp - 8]
call fcn.00404b80
push eax
mov eax, dword [ebp - 4]
call fcn.00404b80
push eax
push 0
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4155b1
lea eax, [ebp - 8]
mov edx, 2
call fcn.004046e4
ret
Function at 0x417de8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404b70
xor eax, eax
push ebp
push 0x417f76
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x417f2e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
call fcn.004046c0
cmp dword [ebp - 4], 0
jne 0x417e40
lea edx, [ebp - 4]
xor eax, eax
call fcn.00418f0c
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b80
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
push 0
push 0x4000
call fcn.004157a8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00404d0c
lea eax, [ebp - 0x10]
call fcn.00404bd8
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
push esi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x417f88
lea eax, [ebp - 0x10]
call fcn.00404bd8
push eax
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x14]
mov esi, dword [eax + 8]
mov eax, dword [ebp - 0x14]
mov edi, dword [eax + 0xc]
push ebx
mov eax, esi
call fcn.00406e8c
movzx eax, ax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
movzx eax, si
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov eax, edi
call fcn.00406e8c
movzx eax, ax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
movzx eax, di
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x3c]
mov ecx, 3
mov eax, 0x417f94
call fcn.00409240
cmp dword [ebp - 8], 1
jg 0x417f09
cmp dword [ebp - 0xc], 4
jge 0x417f24
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebx]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00417c64
mov edx, dword [ebp - 0x40]
mov eax, ebx
call fcn.00404714
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x417f50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417f7d
lea eax, [ebp - 0x40]
call fcn.004046c0
lea eax, [ebp - 0x10]
call fcn.004046c0
lea eax, [ebp - 4]
call fcn.004046c0
ret
Function at 0x417fc0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b70
xor eax, eax
push ebp
push 0x4181a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004046c0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
jne 0x41801c
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00418f0c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
call fcn.00404758
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00404b80
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x418171
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404d0c
mov eax, dword [ebp - 0x10]
call fcn.00404b80
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00404b80
push eax
call sub.version.dll_GetFileVersionInfoA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x418171
lea eax, [ebp - 0x14]
mov edx, 0x4181c0
call fcn.00404758
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404b80
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404b80
push eax
call sub.version.dll_VerQueryValueA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x418171
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
lea eax, [ebp - 0x14]
push eax
movzx eax, bx
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov eax, ebx
call fcn.00406e8c
movzx eax, ax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x34]
mov ecx, 2
mov eax, 0x4181e4
call fcn.00409240
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404b80
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404b80
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x418171
mov edx, esi
mov eax, dword [ebp - 0x18]
call fcn.00408dac
push 0
push 0
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [esi]
mov ecx, 0x418208
mov edx, 0x418214
call fcn.004179fc
mov edx, dword [ebp - 0x38]
mov eax, esi
call fcn.00404714
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 1
jg 0x418150
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 4
jge 0x418171
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov eax, dword [esi]
call fcn.00417c64
mov edx, dword [ebp - 0x3c]
mov eax, esi
call fcn.00404714
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4181b0
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004046e4
lea eax, [ebp - 0x1c]
call fcn.004046c0
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004046e4
lea eax, [ebp - 4]
call fcn.004046c0
ret
Function at 0x418380
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x418466
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4376e0], 0
jne 0x41843d
mov dword [0x4376e0], 0x94
push 0x4376e0
call sub.kernel32.dll_GetVersionExA
cmp dword [0x4376e4], 6
jb 0x41843d
cmp dword [0x4376e8], 3
jb 0x41843d
push 0x41847c
lea eax, [ebp - 8]
call fcn.00418304
push dword [ebp - 8]
push 0x41847c
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404a40
push 0
push 0
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x41fc4c]
call fcn.00420140
mov dword [0x4376e4], eax
push 0
push 0
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [0x41fc4c]
call fcn.00420140
mov dword [0x4376e8], eax
push 0
push 0
mov ecx, 2
mov edx, dword [ebp - 4]
mov eax, dword [0x41fc4c]
call fcn.00420140
mov dword [0x4376ec], eax
mov edi, ebx
mov esi, 0x4376e0
mov ecx, 0x25
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41846d
lea eax, [ebp - 8]
mov edx, 2
call fcn.004046e4
ret

Function at 0x418fdc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x419050
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404930
mov eax, dword [ebp - 0x10c]
mov ecx, esi
mov edx, ebx
call fcn.00418e68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419057
lea eax, [ebp - 0x10c]
call fcn.004046c0
ret

Function at 0x419060
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4190d4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404930
mov eax, dword [ebp - 0x10c]
mov ecx, esi
mov edx, ebx
call fcn.00418e68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4190db
lea eax, [ebp - 0x10c]
call fcn.004046c0
ret

Function at 0x4190e4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x419158
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404930
mov eax, dword [ebp - 0x10c]
mov ecx, esi
mov edx, ebx
call fcn.00418e68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41915f
lea eax, [ebp - 0x10c]
call fcn.004046c0
ret