joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x64002970
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6401c014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x6401cf28]
push edi
xor edi, edi
test esi, esi
jne 0x64002a70
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x20c]
push str._sdriversetchosts
push edx
call fcn.64004b03
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea esi, [ebp - 0x210]
call fcn.64002550
test eax, eax
jne 0x64002ab0
mov esi, dword [ebp - 0x210]
lea edx, [ebp - 0x210]
mov ecx, esi
call fcn.64001b20
test eax, eax
jne 0x64002a2b
mov edi, dword [ebp - 0x210]
call fcn.64001930
test eax, eax
je 0x64002a13
mov ecx, dword [0x6401cf28]
mov dword [edi + 0x10], ecx
mov dword [0x6401cf28], edi
jmp 0x64002a1a
mov eax, edi
call fcn.64001a60
lea edx, [ebp - 0x210]
mov ecx, esi
call fcn.64001b20
test eax, eax
je 0x640029f3
mov eax, dword [esi + 4]
test eax, eax
je 0x64002a42
push eax
call fcn.64003b3b
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x64002a59
push eax
call fcn.640041a3
add esp, 4
mov dword [esi + 8], 0
push esi
call fcn.64003b3b
mov esi, dword [0x6401cf28]
add esp, 4
test esi, esi
je 0x64002a85
lea esp, [esp]
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.64001990
test eax, eax
jne 0x64002a99
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x64002a70
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.64003b2c
mov esp, ebp
pop ebp
ret 4
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.64003b2c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.64003b2c
mov esp, ebp
pop ebp
ret 4

Function at 0x64003b2c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6401c014]
jne 0x64003b36
repz ret
jmp fcn.64006f23

Function at 0x64011211
Capabilities:
Enumerate pe sections

Disassembly:
or byte [esi + 0x57], dl
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x64011249
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x64011230
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x64011241
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x6401124b
inc edi
add eax, 0x28
cmp edi, esi
jb 0x64011226
xor eax, eax
pop edi
pop esi
ret
Function at 0x640118e1
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x640118a5
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x640118c3
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x64011921
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x64011908
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x64011911
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x6401191b
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x640118fd
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x64011887
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x6401196e
dec eax
je 0x64011965
sub eax, 3
je 0x6401195c
mov dword [ebp - 4], 0x40
jmp 0x6401198b
mov dword [ebp - 4], 4
jmp 0x64011971
mov dword [ebp - 4], 0x20
jmp 0x64011971
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x640119bd
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x6401193d
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.640111ce
movsb byte es:[edi], byte [esi]
stosb byte es:[edi], al
sub byte [esi], dh
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x640119c9
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x64011a8d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec dword [ecx - 0x6737b]
inc edi
test dword [esp + edi*8 - 1], edi
inc dword [eax + eax]
add byte [eax], al
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.640111de
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.64011193
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
invalid
test dword [esp + edi*8], ebx
invalid

Function at 0x64011ea7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
je fcn.64011ec2
cmp dword [ebp - 0x398], 0
je 0x6401208c
cmp dword [ebp + 0xc], 1
je 0x6401208c
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401e2e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x18]
push esi
mov ecx, 0x4403e0
call fcn.00406de0
test eax, eax
mov dword [ebp - 4], eax
je 0x401f62
mov eax, dword [edi + 0x1c]
cmp dword [eax - 0xc], 0
je 0x401f62
mov eax, dword [esi]
push ebx
lea ecx, [ebp - 0x10]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jne 0x401ea2
and dword [ebp - 4], eax
cmp dword [0x44048c], eax
je 0x401e93
push dword [esi]
push dword [edi + 4]
push str.CriteriaCheck:__s____s_does_not_have_Version_Info._Criteria_failed._n
push 0x440484
call fcn.004016b0
add esp, 0x10
mov ecx, 0x4403e0
call fcn.00407209
jmp 0x401f61
push ebx
call fcn.00408c1f
pop ecx
mov dword [ebp - 8], eax
push dword [ebp - 8]
mov eax, dword [esi]
push ebx
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
mov ebx, 0x440484
jne 0x401eeb
and dword [ebp - 4], eax
cmp dword [0x44048c], eax
je 0x401ee1
push dword [esi]
push dword [edi + 4]
push 0x4318f0
push ebx
call fcn.004016b0
add esp, 0x10
mov ecx, 0x4403e0
call fcn.00407209
cmp dword [ebp - 4], 0
je 0x401f16
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4318ec
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
cmp eax, 1
jne 0x401f16
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0xc]
mov ebx, dword [eax + 8]
jmp 0x401f46
and dword [ebp - 4], 0
cmp dword [0x44048c], 0
je 0x401f36
push dword [esi]
push dword [edi + 4]
push str.CriteriaCheck:__s___Unable_to_extract_numeric_Version_Info_from__s._Criteria_failed._n
push ebx
call fcn.004016b0
add esp, 0x10
mov ecx, 0x4403e0
call fcn.00407209
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 8]
call fcn.00408c1a
cmp dword [ebp - 4], 0
pop ecx
je 0x401f61
push esi
push ebx
mov ecx, edi
call fcn.00401b4b
mov dword [ebp - 4], eax
pop ebx
push dword [ebp - 4]
mov ecx, edi
call fcn.004016c3
pop edi
pop esi
leave
ret
Function at 0x40387f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.00419400
push 0xffffffffffffffff
push 0x42f014
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x43eff4]
xor eax, ebp
mov dword [ebp + 0x8000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x800c]
mov edi, dword [ebp + 0x8010]
mov ebx, dword [ebp + 0x8014]
call fcn.004090b0
push eax
lea ecx, [ebp - 0x10]
call fcn.0040123f
xor eax, eax
cmp dword [ebp + 0x8018], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 0x7fff
je 0x40395c
mov edi, dword [edi]
mov ebx, dword [ebx]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x403940
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040110f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8000]
xor ecx, ebp
call fcn.004191b7
add ebp, 0x8004
leave
ret 0x10
cmp dword [ebp - 0x18], 3
je 0x40394c
cmp dword [ebp - 0x18], 4
jne 0x40390e
movzx eax, byte [ebp]
cmp ebx, eax
jne 0x40390e
xor ebx, ebx
inc ebx
jmp 0x4039f0
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040163e
mov eax, dword [ebp - 0x10]
mov edi, dword [edi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
jne 0x403982
push ebx
push ebx
push ebx
push ebx
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jmp 0x403952
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40390e
mov eax, dword [ebp - 0x18]
cmp eax, 3
je 0x4039bb
cmp eax, 2
je 0x4039bb
cmp eax, 7
je 0x4039bb
cmp eax, 1
jne 0x40390e
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x20]
call fcn.00401778
push dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00402420
mov ecx, dword [ebp - 0x20]
test eax, eax
setne byte [ebp - 0x11]
add ecx, 0xfffffff0
call fcn.0040110f
cmp byte [ebp - 0x11], 0
je 0x403954
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040110f
mov eax, ebx
jmp 0x40391b
Function at 0x4042b9
Capabilities:
Identify system language via api

Disassembly:
push 0x10
mov eax, 0x42f0aa
call fcn.004191c6
mov dword [ebp - 0x18], ecx
lea edi, [ecx + 0x18]
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x4043ff
push ebx
push 0x432490
mov ecx, edi
call fcn.00401cd8
test eax, eax
je 0x4043ff
push ecx
mov dword [ebp - 0x14], esp
mov ecx, esp
push edi
call fcn.00401389
mov esi, 0x4403e0
mov ecx, esi
call fcn.0040730c
cmp eax, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 1
je 0x4043fa
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
test eax, eax
je 0x404330
mov ecx, edi
call fcn.00401264
jmp 0x4043f0
cmp dword [0x44048c], ebx
je 0x404352
mov eax, dword [ebp - 0x18]
push dword [eax + 4]
push dword [edi]
push str.CriteriaCheck:_Criteria__s_of__s___Failed._n
push 0x440484
call fcn.004016b0
add esp, 0x10
mov ecx, esi
call fcn.00407209
cmp dword [0x440494], ebx
jne 0x4043ed
mov ecx, dword [ebp - 0x10]
call fcn.004014ae
test eax, eax
jne 0x4043ed
call fcn.004090b0
push eax
lea ecx, [ebp - 0x14]
call fcn.0040123f
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], ebx
call fcn.00403df7
mov edi, eax
push 0x83
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00407765
push dword [edi]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.004016b0
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040110f
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.0040110f
mov esi, dword [ebp - 0x14]
push ebx
push 0x10
push esi
call fcn.004067ca
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [esi - 0x10]
call fcn.0040110f
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
jmp 0x404402
xor eax, eax
inc eax
call fcn.00419265
ret
Function at 0x404408
Capabilities:
Create process on windows

Disassembly:
push 0x60
mov eax, 0x42f0cd
call fcn.004191c6
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
jne 0x404559
call fcn.004042b9
test eax, eax
je 0x404559
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
lea ebx, [esi + 0x18]
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
je 0x40446e
push ecx
mov dword [ebp - 0x18], esp
mov ecx, esp
push ebx
call fcn.00401389
call fcn.00403f64
cmp eax, edi
pop ecx
je 0x40445c
mov ecx, eax
call fcn.00404408
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
jne 0x404559
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, esi
call dword [eax + 0x1c]
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0x6c]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.00419380
push 0x10
lea eax, [ebp - 0x28]
push edi
push eax
mov dword [ebp - 0x6c], ebx
call fcn.00419380
mov eax, dword [ebp - 0x10]
add esp, 0x18
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004013a7
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x6c]
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 0x4044f7
cmp dword [0x44048c], edi
je 0x4044eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10]
push dword [esi + 4]
push str.InstallProduct:__s___CreateProcess_failed__Cmdline_s_Error_d_._n
push 0x440484
call fcn.004016b0
add esp, 0x14
mov ecx, 0x4403e0
call fcn.00407209
jmp 0x40454e
push 0xffffffffffffffff
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x404537
cmp dword [ebp - 0x14], 0xbc2
jne 0x404537
mov ecx, 0x4403e0
mov dword [0x440490], 1
call fcn.004098f8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
push dword [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x24]
call edi
mov ecx, esi
call fcn.00403e2e
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040110f
call fcn.00419265
ret
Function at 0x405b2e
Capabilities:
Reference sql statements

Disassembly:
push 0x14
mov eax, 0x42f3dd
call fcn.004191c6
xor edi, edi
push 0x433008
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], edi
call fcn.00401778
mov esi, 0x433004
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.00404cd7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
call fcn.00402675
push esi
lea ecx, [ebp - 0x18]
call fcn.00404cd7
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004056a8
push eax
push esi
push dword [ebp + 0xc]
call sub.msi.dll_MsiEnumClientsA
test eax, eax
je 0x405ba1
mov ecx, dword [ebp + 8]
call fcn.0040136b
jmp 0x405c33
push edi
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x405b94
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.004056a8
push eax
push esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, edi
jne 0x405b94
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 1
push dword [ebp - 0x10]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call sub.msi.dll_MsiRecordSetStreamA
cmp dword [ebp - 0x1c], edi
je 0x405b94
call fcn.004090b0
push eax
lea ecx, [ebp + 0x10]
call fcn.0040123f
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
inc eax
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.004013a7
lea ecx, [ebp - 0x1c]
push ecx
push eax
push 1
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordSetStreamA
push 0xffffffffffffffff
lea ecx, [ebp + 0x10]
call fcn.00401c81
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
call fcn.00401389
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040110f
cmp dword [ebp - 0x10], edi
je 0x405c40
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], edi
je 0x405c4d
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040110f
mov eax, dword [ebp + 8]
call fcn.00419265
ret 0xc

Function at 0x4067ca
Capabilities:
Identify system language via api

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and ax, 0x3ff
movzx eax, ax
cmp ax, 1
je 0x4067e3
cmp ax, 0xd
jne 0x4067eb
or dword [esp + 8], 0x100000
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0x4403e0
call fcn.00411750
add esp, 0x10
ret

Function at 0x406bdf
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x430119
call fcn.004191c6
and dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.0040136b
and dword [ebp - 4], 0
push 0x7d
mov dword [ebp - 0x10], 1
pop esi
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
add esi, esi
push esi
mov ecx, ebx
call fcn.004013a7
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
push edi
push esi
push eax
push 0x4334c8
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, ebx
mov edi, eax
call fcn.00401c81
inc edi
cmp esi, edi
jbe 0x406c07
mov eax, ebx
call fcn.00419265
ret 0x10
Function at 0x406de0
Capabilities:
Query environment variable

Disassembly:
push 0x1c
mov eax, 0x42f695
call fcn.004191c6
mov edi, dword [ebp + 8]
push edi
lea ecx, [ebp + 8]
call fcn.00401389
and dword [ebp - 4], 0
mov esi, 0x104
push esi
mov ecx, edi
call fcn.004013a7
push esi
mov esi, dword [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.0040110f
push 0xffffffffffffffff
mov ecx, edi
call fcn.00401c81
lea ecx, [ebp - 0x28]
call fcn.00413df8
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
mov dword [ebp - 4], 1
je 0x406e98
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.00413e86
test eax, eax
je 0x406e98
lea ecx, [ebp - 0x28]
call fcn.00413b0d
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
call fcn.004140c9
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0040163e
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.0040110f
lea ecx, [ebp - 0x28]
call fcn.00413a3d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00413e1e
xor eax, eax
inc eax
jmp 0x406ea6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00413e1e
xor eax, eax
call fcn.00419265
ret 4

Function at 0x407209
Capabilities:
Get common file path

Disassembly:
push 0x18
mov eax, 0x42f76c
call fcn.004191c6
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xac], ebx
je 0x407306
mov eax, dword [esi + 0xd8]
cmp eax, dword [0x43593c]
jne 0x4072dd
call fcn.004090b0
push eax
lea ecx, [ebp - 0x10]
call fcn.0040123f
mov edi, 0x104
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.004013a7
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x407272
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040110f
jmp 0x407306
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00401c81
push 0x433594
lea ecx, [ebp - 0x10]
call fcn.00404cd7
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x24]
call fcn.00407174
mov edi, dword [ebp - 0x10]
lea edx, [ebp - 0x24]
push edx
lea ecx, [esi + 0xd4]
mov eax, dword [ecx]
push 0x1021
push edi
mov byte [ebp - 4], 1
call dword [eax + 0x20]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
test eax, eax
mov dword [ebp - 0x24], vtable.CFileException.0
jne 0x4072cc
call fcn.0040110f
lea ecx, [edi - 0x10]
jmp 0x407268
call fcn.0040110f
or dword [ebp - 4], 0xffffffff
lea ecx, [edi - 0x10]
call fcn.0040110f
lea edi, [esi + 0xa4]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x407306
add esi, 0xd4
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x54]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
mov ecx, edi
call fcn.00401264
call fcn.00419265
ret
Function at 0x407417
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push 0x28
mov eax, 0x42f7ca
call fcn.004191c6
lea esi, [ecx + 0xd0]
mov edi, 0x104
push edi
mov ecx, esi
call fcn.004013a7
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x407532
push 0xffffffffffffffff
mov ecx, esi
call fcn.00401c81
push esi
lea ecx, [ebp - 0x10]
call fcn.00401389
xor ebx, ebx
push edi
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004013a7
push eax
push ebx
push 0x433700
lea ecx, [ebp - 0x10]
call fcn.0040570d
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [ebp - 0x10]
or edi, 0xffffffff
add ecx, 0xfffffff0
mov dword [ebp - 4], edi
call fcn.0040110f
push edi
mov ecx, esi
call fcn.00401c81
lea ecx, [ebp - 0x20]
call fcn.00411cbe
push ebx
push edi
push ebx
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 1
call fcn.00407174
mov eax, dword [esi]
lea ecx, [ebp - 0x34]
push ecx
push 0x1001
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004120ba
test eax, eax
jne 0x4074d3
mov ecx, esi
call fcn.00401264
jmp 0x407515
push str.LOCALIZATION_INI
push 0x82
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 dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x20]
call fcn.00411a0c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov dword [ebp - 0x34], vtable.CFileException.0
call fcn.0040110f
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call fcn.00411d92
call fcn.00419265
ret