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

Disassembly:
push 0x230
mov eax, 0x446bac
call fcn.0042800c
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x224], eax
call fcn.0040e19e
push eax
lea ecx, [ebp - 0x220]
call fcn.00401339
xor edi, edi
lea eax, [esi + 8]
push edi
push 0x44b39c
mov ecx, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x22c], eax
call fcn.0040436e
push edi
push edi
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x238], edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ecx, ecx
mov esi, eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040e7a2
mov ebx, eax
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x238], ebx
pop ecx
test ebx, ebx
je 0x403d0b
lea ecx, [esi + esi]
push ecx
push edi
push ebx
call fcn.00428c30
add esp, 0xc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x403d0b
push 0x208
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.00428c30
push 0x44b3b4
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.0042f41c
push ebx
call fcn.0042c48c
mov esi, eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0042c48c
add eax, 2
xor ecx, ecx
add esi, eax
push 2
pop edx
mov eax, esi
mov dword [ebp - 0x230], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040e7a2
mov ebx, eax
add esp, 0x24
mov dword [ebp - 0x234], ebx
test ebx, ebx
je 0x403c33
lea ecx, [esi + esi]
push ecx
push edi
push ebx
call fcn.00428c30
mov esi, dword [ebp - 0x228]
push esi
push dword [ebp - 0x230]
push ebx
call fcn.0042f41c
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x230]
push ebx
call fcn.0042f3a7
add esp, 0x24
jmp 0x403c39
mov esi, dword [ebp - 0x228]
mov eax, dword [ebp - 0x23c]
cmp eax, 0xffffffff
jne 0x403c73
mov ecx, dword [ebp - 0x224]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x403c6a
lea eax, [ebp - 0x220]
push str.TRANSFORMS__
push eax
call fcn.00401600
pop ecx
pop ecx
jmp 0x403cf6
push eax
push ebx
push str.TRANSFORMS__s_s_
jmp 0x403ce7
mov ecx, dword [ebp - 0x22c]
add eax, 0xa
push eax
push 0x22
call fcn.004043a8
lea edi, [eax + 1]
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
jne 0x403cac
push ecx
lea eax, [ebp - 0x220]
push 0x44b418
push eax
call fcn.00401600
add esp, 0xc
jmp 0x403cf6
mov ecx, dword [ebp - 0x22c]
push edi
push 0x5c
call fcn.004043a8
mov ecx, dword [ebp - 0x224]
cmp eax, 0xffffffff
jne 0x403cdf
push esi
push dword [ecx]
lea eax, [ebp - 0x220]
push ebx
push str._s_s__s_
push eax
call fcn.00401600
add esp, 0x14
jmp 0x403cf6
push dword [ecx]
push ebx
push str._s_s_
lea eax, [ebp - 0x220]
push eax
call fcn.00401600
add esp, 0x10
mov esi, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x22c]
push esi
push edi
call fcn.00404d52
jmp 0x403d3b
push ebx
call fcn.0040e79d
pop ecx
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
jmp 0x403d51
push ebx
call fcn.0040e79d
push dword [ebp - 0x228]
call fcn.0040e79d
pop ecx
pop ecx
lea ecx, [esi - 0x10]
call fcn.004017a5
call fcn.00427f59
ret 4
Function at 0x404de2
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x446e07
call fcn.00427f6a
cmp dword [0x461d34], 0
je 0x404e01
call fcn.00404f08
jmp 0x404f02
lea eax, [ebp - 0x14]
xor edi, edi
push eax
mov dword [ebp - 0x10], edi
call fcn.00403dec
push 0x44
lea eax, [ebp - 0x68]
mov dword [ebp - 4], edi
push edi
push eax
call fcn.00428c30
push 0x10
lea eax, [ebp - 0x24]
mov dword [ebp - 0x68], 0x44
push edi
push eax
call fcn.00428c30
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
add esp, 0x18
push dword [eax - 0xc]
call fcn.00401723
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x404e98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push str.InstallProduct:_CreateProcess_failed__Cmdline_s_Error_d_._n
push 0x461d14
call fcn.00401600
add esp, 0x10
mov ecx, 0x461c48
call fcn.0040c3c8
mov eax, dword [ebp - 0x10]
add eax, dword [0x461d74]
mov dword [ebp - 0x10], eax
mov dword [0x461dd4], eax
jmp 0x404ef7
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x10]
mov ecx, 0xbc2
cmp eax, ecx
jne 0x404ecf
cmp dword [0x461d28], 0
jne 0x404ee0
mov dword [0x461d28], 1
test eax, eax
je 0x404ee0
cmp eax, ecx
je 0x404ee0
add eax, dword [0x461d74]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x24]
mov dword [0x461dd4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004017a5
call fcn.00427f33
ret
Function at 0x405aaf
Capabilities:
Reference sql statements

Disassembly:
push 0x18
mov eax, 0x446f68
call fcn.00427f6a
push str.SELECT_Value_FROM_Property_WHERE_Property.Property
lea ecx, [ebp - 0x1c]
call fcn.004018b9
mov esi, 0x44b7c0
xor edi, edi
push esi
mov dword [ebp - 4], edi
call fcn.0042c48c
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00403d5e
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x1c]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00403d5e
push esi
call fcn.0042c48c
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00403d5e
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], edi
push dword [ebp + 0xc]
call sub.msi.dll_MsiEnumClientsA
test eax, eax
je 0x405b5f
call fcn.0040e19e
mov ecx, dword [ebp + 8]
push eax
call fcn.00401339
cmp dword [ebp - 0x14], 0
je 0x405b3e
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x18], 0
je 0x405b4c
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004017a5
mov eax, dword [ebp + 8]
jmp 0x405c30
push edi
push dword [ebp - 0x18]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x405b22
cmp dword [ebp - 0x14], eax
je 0x405b79
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push dword [ebp - 0x18]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x405b22
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], edi
push eax
push 1
push dword [ebp - 0x14]
call sub.msi.dll_MsiRecordSetStreamA
cmp dword [ebp - 0x20], 0
je 0x405b22
call fcn.0040e19e
push eax
lea ecx, [ebp - 0x24]
call fcn.00401339
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
inc eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], eax
inc eax
push eax
call fcn.00401723
lea ecx, [ebp - 0x20]
push ecx
push eax
push 1
push dword [ebp - 0x14]
call sub.msi.dll_MsiRecordSetStreamA
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call fcn.004017cb
mov esi, dword [ebp - 0x24]
add esi, 0xfffffff0
push esi
call fcn.004013f4
mov edi, dword [ebp + 8]
add eax, 0x10
pop ecx
mov ecx, esi
mov dword [edi], eax
call fcn.004017a5
cmp dword [ebp - 0x14], 0
je 0x405c15
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x18], 0
je 0x405c23
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004017a5
mov eax, edi
call fcn.00427f33
ret 0xc
Function at 0x406a07
Capabilities:
Copy file

Disassembly:
push 0xa3c
mov eax, 0x4470cb
call fcn.00427f9e
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xa3c]
mov esi, dword [ebp + 8]
push 0x44a2e8
mov dword [ebp - 0xa48], esi
mov dword [ebp - 0xa44], eax
call fcn.004018b9
mov edi, 0x208
lea eax, [ebp - 0xa38]
xor ebx, ebx
push edi
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00428c30
push edi
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.00428c30
push edi
lea eax, [ebp - 0x830]
push ebx
push eax
call fcn.00428c30
lea ebx, [edi + 2]
push ebx
call fcn.0040e7a2
push ebx
mov dword [ebp - 0xa40], eax
call fcn.0040e7a2
push ebx
mov edi, eax
call fcn.0040e7a2
push 0x20a
push 0
push edi
mov ebx, eax
call fcn.00428c30
push 0x20a
push 0
push ebx
call fcn.00428c30
add esp, 0x48
push 0x20a
push 0
push dword [ebp - 0xa40]
call fcn.00428c30
mov eax, 0x104
push eax
push ebx
push eax
push edi
push eax
push dword [ebp - 0xa40]
push eax
lea eax, [ebp - 0xa38]
push eax
push dword [ebp - 0xa44]
call fcn.0042f9ae
add esp, 0x30
test eax, eax
jne 0x406c2d
push edi
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0042f41c
push ebx
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0042f3a7
lea eax, [ebp - 0xa48]
push eax
call fcn.00406c6b
add esp, 0x1c
push eax
lea ecx, [ebp - 0xa3c]
mov byte [ebp - 4], 1
call fcn.0040138a
mov ecx, dword [ebp - 0xa48]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.004017a5
push dword [ebp - 0xa3c]
call fcn.0042c48c
pop ecx
test eax, eax
je 0x406c2d
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00428c30
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00428c30
push dword [ebp - 0xa3c]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0042f41c
push 0x44a904
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0042f3a7
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0042f3a7
push dword [ebp - 0xa44]
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.0042f41c
add esp, 0x48
lea eax, [ebp - 0x218]
push eax
call fcn.00404341
pop ecx
test eax, eax
jne 0x406c2d
lea eax, [ebp - 0x628]
push eax
call fcn.00404341
pop ecx
test eax, eax
je 0x406c2d
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x406c2d
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.0042f41c
add esp, 0xc
push dword [ebp - 0xa40]
call fcn.0040e79d
push edi
call fcn.0040e79d
push ebx
call fcn.0040e79d
add esp, 0xc
lea eax, [ebp - 0x830]
mov ecx, esi
push eax
call fcn.004018b9
mov ecx, dword [ebp - 0xa3c]
add ecx, 0xfffffff0
call fcn.004017a5
mov eax, esi
call fcn.00427f48
ret
Function at 0x406c6b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ecx, ecx
mov edi, eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040e7a2
mov esi, eax
pop ecx
test esi, esi
je 0x406cb5
lea ecx, [edi + edi]
push ecx
push ebx
push esi
call fcn.00428c30
add esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x406cb5
push esi
jmp 0x406cbd
push esi
call fcn.0040e79d
pop ecx
push ebx
mov ecx, dword [ebp + 8]
call fcn.004018b9
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40768a
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
push ebx
push ebx
push 0x44a754
call fcn.004166b0
mov dword [esi + 0x20], eax
mov dword [eax + 0x44], 0x3f1
mov eax, dword [esi + 0x20]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, ebx
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4076d4
cmp dword [ecx + 0x20], ebx
je 0x4076d6
mov eax, dword [ecx + 0x20]
mov dword [esi + 0x24], eax
mov eax, dword [ecx + 0x2c]
pop edi
mov dword [esi + 0x28], eax
pop esi
pop ebx
ret
mov ecx, ebx
cmp edi, 2
jge 0x4076c4
push 0x64
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4076b8

Function at 0x4087e5
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x3ff
and ax, cx
movzx eax, ax
cmp eax, 1
je 0x408808
cmp eax, 0xd
je 0x408808
mov eax, dword [ebp + 0xc]
jmp 0x408810
mov eax, dword [ebp + 0xc]
or eax, 0x100000
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push 0x461c48
call fcn.0041cdfe
add esp, 0x10
pop ebp
ret
Function at 0x408b1c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x40
mov eax, 0x4474af
call fcn.00427f9e
mov esi, ecx
mov dword [ebp - 0x4c], esi
xor eax, eax
mov dword [ebp - 0x3c], 0x104
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x48]
push str.RequireIE
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004018b9
xor edi, edi
lea ecx, [ebp - 0x44]
push str.Startup
mov dword [ebp - 4], edi
call fcn.004018b9
lea eax, [esi + 0xd0]
xor ebx, ebx
push eax
lea eax, [ebp - 0x48]
inc ebx
push eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], bl
push eax
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0040a491
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx - 0x10]
call fcn.004017a5
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.004017a5
mov eax, dword [ebp - 0x40]
cmp dword [eax - 0xc], edi
je 0x408c37
lea ecx, [ebp - 0x14]
mov esi, str._d._d._d._d
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push esi
push eax
call fcn.0040d240
add esp, 0x18
call fcn.0040e19e
push eax
lea ecx, [ebp - 0x34]
call fcn.00401339
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 5
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408c27
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x34]
call fcn.00401723
lea ecx, [ebp - 0x3c]
push ecx
push eax
push edi
push edi
push str.Version
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x38]
test eax, eax
je 0x408c47
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x34]
mov ebx, edi
lea ecx, [esi - 0x10]
call fcn.004017a5
mov eax, dword [ebp - 0x40]
lea ecx, [eax - 0x10]
call fcn.004017a5
mov eax, ebx
call fcn.00427f48
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [ebp - 0x34]
call fcn.004017cb
cmp dword [ebp - 0x3c], 0
jbe 0x408c27
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
mov esi, dword [ebp - 0x34]
push esi
call fcn.0040d240
add esp, 0x18
mov eax, edi
mov ecx, dword [ebp + eax - 0x30]
cmp dword [ebp + eax - 0x20], ecx
jb 0x408c2c
ja 0x408c92
add eax, 4
cmp eax, 0x10
jl 0x408c7c
jmp 0x408c2c
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x40]
push eax
call fcn.0040ae2a
jmp 0x408c2a
Function at 0x40976d
Capabilities:
Check if file exists
Copy file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc90
mov eax, dword [0x46053c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xa40]
push edi
mov edi, dword [ebp + 0xc]
mov bl, 1
push 0x20a
push 0
push eax
call fcn.00428c30
push esi
lea eax, [ebp - 0xa40]
push 0x105
push eax
call fcn.0042f41c
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.00428c30
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00428c30
push esi
lea eax, [ebp - 0x41c]
push 0x105
push eax
call fcn.0042f41c
push edi
mov edi, 0x105
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.0042f41c
add esp, 0x48
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4099b2
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4099b2
lea eax, [ebp - 0x210]
push eax
call fcn.0042c48c
pop ecx
push 0x5c
pop ecx
mov esi, 0x44a904
cmp word [ebp + eax*2 - 0x212], cx
je 0x409858
push esi
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.0042f3a7
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
call fcn.0042c48c
pop ecx
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x41e], cx
je 0x409883
push esi
lea eax, [ebp - 0x41c]
push edi
push eax
call fcn.0042f3a7
add esp, 0xc
push 0x44cb54
lea eax, [ebp - 0xa40]
push edi
push eax
call fcn.0042f3a7
add esp, 0xc
lea eax, [ebp - 0xc90]
push eax
lea eax, [ebp - 0xa40]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
test esi, esi
je 0x4099b2
test byte [ebp - 0xc90], 0x10
jne 0x40998d
push 0x20a
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00428c30
push 0x20a
lea eax, [ebp - 0x834]
push 0
push eax
call fcn.00428c30
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x834]
push edi
push eax
call fcn.0042f41c
lea eax, [ebp - 0xc64]
push eax
lea eax, [ebp - 0x834]
push edi
push eax
call fcn.0042f3a7
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x628]
push edi
push eax
call fcn.0042f41c
lea eax, [ebp - 0xc64]
push eax
lea eax, [ebp - 0x628]
push edi
push eax
call fcn.0042f3a7
add esp, 0x48
lea eax, [ebp - 0x628]
push edi
push eax
call fcn.0042f736
lea eax, [ebp - 0x628]
push str..cab
push eax
call fcn.00429831
add esp, 0x10
test eax, eax
je 0x40998d
lea eax, [ebp - 0x834]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40998d
push 1
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne bl
lea eax, [ebp - 0xc90]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4099a7
test bl, bl
jne 0x4098b6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
jmp 0x4099b4
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427b1a
leave
ret
Function at 0x409c56
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push 0x2c
mov eax, 0x447635
call fcn.00427f6a
lea esi, [ecx + 0x140]
mov ebx, 0x104
push ebx
mov ecx, esi
call fcn.00401723
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x409d6e
or edi, 0xffffffff
mov ecx, esi
push edi
call fcn.004017cb
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.004013f4
add eax, 0x10
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [esp], 0x104
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00401723
push eax
push ebx
push 0x44e174
lea ecx, [ebp - 0x10]
call fcn.0040a29c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], edi
lea ecx, [ecx - 0x10]
call fcn.004017a5
push edi
mov ecx, esi
call fcn.004017cb
lea ecx, [ebp - 0x38]
call fcn.00418cd1
push ebx
push edi
push ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.0040831e
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
push 0x1001
push dword [esi]
lea ecx, [ebp - 0x38]
call fcn.00419220
test eax, eax
jne 0x409d1e
mov ecx, esi
call fcn.00401534
jmp 0x409d54
push 0x44e17c
push 0x87
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x38]
call fcn.00419620
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], vtable.CFileException.0
lea ecx, [ecx - 0x10]
call fcn.004017a5
lea ecx, [ebp - 0x38]
call fcn.00418cfa
call fcn.00427f33
ret

Function at 0x409d97
Capabilities:
Query environment variable

Disassembly:
push 0x24
mov eax, 0x44766f
call fcn.00427f6a
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.004013f4
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
mov ebx, 0x104
push ebx
mov ecx, edi
call fcn.00401723
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.004017a5
push 0xffffffffffffffff
mov ecx, edi
call fcn.004017cb
lea ecx, [ebp - 0x30]
call fcn.0041a213
mov eax, dword [edi]
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], 0
je 0x409e44
push 0
push eax
lea ecx, [ebp - 0x30]
call fcn.0041a4f0
test eax, eax
je 0x409e44
lea ecx, [ebp - 0x30]
call fcn.0041a6a0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x30]
call fcn.0041a7c0
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0040138a
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.004017a5
lea ecx, [ebp - 0x30]
call fcn.0041a490
jmp 0x409e46
xor ebx, ebx
lea ecx, [ebp - 0x30]
call fcn.0041a3b9
mov eax, ebx
call fcn.00427f33
ret 4
Function at 0x409f41
Capabilities:
Identify system language via api

Disassembly:
push edi
mov edi, ecx
movzx eax, word [edi + 0x168]
test ax, ax
jne 0x40a18e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ax, cx
and ecx, 0x3ff
shr ax, 0xa
dec ecx
movzx eax, ax
cmp ecx, 0x2c
ja case.0x409f79.9
jmp dword [ecx*4 + 0x40a191]
mov ebx, 0x401
mov esi, str.Arabic
push esi
jmp 0x40a16f
mov ebx, 0x42d
mov esi, 0x44e1d0
jmp 0x409f8a
mov ebx, 0x402
mov esi, str.Bulgarian
jmp 0x409f8a
mov ebx, 0x403
mov esi, str.Catalan
jmp 0x409f8a
cmp eax, 2
je 0x409fca
cmp eax, 4
je 0x409fca
mov eax, 0x404
mov esi, str.ChineseTraditional
jmp 0x409fd4
mov eax, 0x804
mov esi, str.ChineseSimplified
movzx ebx, ax
jmp 0x409f8a
mov ebx, 0x41a
mov esi, str.Croatian
jmp 0x409f8a
mov ebx, 0x405
mov esi, str.Czech
jmp 0x409f8a
mov ebx, 0x406
mov esi, str.Danish
jmp 0x409f8a
mov ebx, 0x413
mov esi, str.Dutch
jmp 0x409f8a
mov ebx, 0x425
mov esi, str.Estonian
jmp 0x409f8a
mov ebx, 0x40b
mov esi, str.Finnish
jmp 0x409f8a
mov ebx, 0x40c
mov esi, str.French
jmp 0x409f8a
mov ebx, 0x407
mov esi, str.German
jmp 0x409f8a
mov ebx, 0x408
mov esi, str.Greek
jmp 0x409f8a
mov ebx, 0x40d
mov esi, str.Hebrew
jmp 0x409f8a
mov ebx, 0x40e
mov esi, str.Hungarian
jmp 0x409f8a
mov ebx, 0x410
mov esi, str.Italian
jmp 0x409f8a
mov ebx, 0x411
mov esi, str.Japanese
jmp 0x409f8a
mov ebx, 0x412
mov esi, str.Korean
jmp 0x409f8a
mov ebx, 0x426
mov esi, str.Latvian
jmp 0x409f8a
mov ebx, 0x427
mov esi, str.Lithuanian
jmp 0x409f8a
mov ebx, 0x414
mov esi, str.Norwegian
jmp 0x409f8a
mov ebx, 0x415
mov esi, str.Polish
jmp 0x409f8a
mov ebx, 0x416
mov esi, str.Portuguese
jmp 0x409f8a
mov ebx, 0x418
mov esi, str.Romanian
jmp 0x409f8a
mov ebx, 0x419
mov esi, str.Russian
jmp 0x409f8a
mov ebx, 0x41b
mov esi, str.Slovak
jmp 0x409f8a
mov ebx, 0x424
mov esi, str.Slovenian
jmp 0x409f8a
mov ebx, 0x40a
mov esi, str.Spanish
jmp 0x409f8a
mov ebx, 0x41d
mov esi, str.Swedish
jmp 0x409f8a
mov ebx, 0x41f
mov esi, str.Turkish
jmp 0x409f8a
mov ebx, 0x422
mov esi, str.Ukrainian
jmp 0x409f8a
mov eax, str.English
mov ebx, 0x409
push eax
mov esi, eax
call fcn.0042c48c
pop ecx
push eax
push esi
lea ecx, [edi + 0x16c]
call fcn.00401822
movzx eax, bx
pop esi
mov word [edi + 0x168], ax
pop ebx
pop edi
ret