joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40288e
pop dword [ebp - 0x4c]
mov eax, 0xd6a3b798
add eax, 0x299c70f6
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x2df1100d
sub dword [ebp - 0x5c], 0xdf9ecac2
mov dword [ebp - 0x58], 0x251e680
add dword [ebp - 0x58], 0x2fe165c5
mov dword [ebp - 0x54], 0xf868dfb7
sub dword [ebp - 0x54], 0xac1c9b89
mov dword [ebp - 0x50], 0x496ca3f8
sub dword [ebp - 0x50], 0x496ca3f8
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x8dc6d6cb
add eax, 0x72799999
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xe2d04ca6
sub dword [ebp - 0x5c], 0x6e5de350
mov dword [ebp - 0x58], 0xf63896f
add dword [ebp - 0x58], 0x3208d806
mov dword [ebp - 0x54], 0x89a64e53
sub dword [ebp - 0x54], 0x2636e1e7
mov dword [ebp - 0x50], 0x78dcbe07
sub dword [ebp - 0x50], 0x78dcbe07
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xc2b8694b
add eax, 0x3d88075d
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3872e
push 0
call eax
mov ecx, 0xe762efaf
sub ecx, 0xe762a046
xor esi, esi
add esi, eax
mov edi, 0x96d5e44a
add edi, 0x696b1bb6
add edi, dword [ebp - 0x4c]
mov edx, 0x286f69df
add edx, 0xa10299bd
mov dword [ebp - 0xc], 0x8b2ca38a
mov ebx, dword [edi]
sub dword [ebp - 0x24], ebx
sub ebx, edx
xor dword [ebp - 0x14], ecx
mov dword [esi], ebx
sub dword [ebp - 0xc], eax
add esi, 4
add edi, 4
loop 0x4029b2
add eax, 0x3690f8c8
sub eax, 0x368fc851
mov ebx, eax
add eax, 0x44089029
sub eax, 0x44089024
mov ecx, 0x8c2f79f0
sub ecx, 0x8bef79f0
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x1000b197
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
test si, si
jne 0x1000b24c
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1000b24c
mov edx, dword [esi + 0x3c]
test dl, 3
jne 0x1000b24c
cmp dword [edx + esi], 0x4550
jne 0x1000b24c
cmp dword [edx + esi + 0x74], 6
jb 0x1000b24c
push ebx
mov ebx, dword [edx + esi + 0x50]
push edi
mov edi, dword [edx + esi + 0xa8]
lea eax, [ebx - 1]
lea ecx, [edi - 1]
cmp ecx, eax
jae 0x1000b24a
mov eax, dword [edx + esi + 0xac]
mov ecx, ebx
sub ecx, edi
cmp eax, ecx
ja 0x1000b24a
xor edx, edx
add edi, esi
push 0x1c
pop ecx
div ecx
mov edx, eax
test edx, edx
je 0x1000b24a
imul ecx, edx, 0x1c
add ecx, 0x14
add ecx, edi
lea ecx, [ecx - 0x1c]
dec edx
cmp dword [ecx - 8], 2
lea edi, [ecx - 0x14]
jne 0x1000b228
cmp dword [ecx], ebx
jae 0x1000b228
mov eax, ebx
sub eax, dword [ecx]
cmp dword [ecx - 4], eax
jbe 0x1000b22e
test edx, edx
jne 0x1000b20e
jmp 0x1000b24a
push 0x1c
push edi
call dword [sym.imp.kernel32.dll_VirtualLock]
test eax, eax
je 0x1000b24a
mov eax, dword [edi + 0x14]
push dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.kernel32.dll_VirtualLock]
pop edi
pop ebx
pop esi
ret

Function at 0x1000c446
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x1000c455
pop dword [ebp - 0x38]
mov eax, 0xf95f2b5f
add eax, 0x16a198f6
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x3375d
push 0
mov eax, 0xf2525dbe
add eax, 0x1daee2a6
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0xdc9fa1ca
add ecx, 0x23609026
mov edi, eax
mov edx, 0x10018600
add edx, dword [ebp - 0x38]
mov esi, 0x3faac00f
add dword [ebp - 0xc], ecx
mov ebx, dword [edx]
sub dword [ebp - 0x14], ecx
sub ebx, esi
sub dword [ebp - 4], ecx
mov dword [edi], ebx
xor dword [ebp - 0x30], 0xaf88e554
add edi, 0x59f76842
add edi, 0xa60897c2
add edx, 4
loop 0x1000c4a8
add eax, 0xbab124e1
add eax, 0x454f95b2
xor ebx, ebx
add ebx, eax
add eax, 0x7b2e22ba
sub eax, 0x7b2e22b5
mov ecx, 0xfb10e3af
sub ecx, 0xeb10e3af
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x402d90
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4407e7
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, 7
xor ebx, ebx
xor edx, edx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x10], ebx
mov dword [ebp - 0x21c], edi
mov word [edi], dx
mov dword [ebp - 4], ebx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x2c], ebx
mov word [edi + 0x1c], dx
lea esi, [edi + 0x38]
mov dword [esi + 0x14], ecx
xor ecx, ecx
mov dword [esi + 0x10], ebx
mov word [esi], cx
mov edx, dword [ebp + 0xc]
push edx
push eax
lea eax, [ebp - 0x218]
push str._S___d_
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x218]
add esp, 0x10
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402e20
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
call fcn.00402c70
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b939
mov esp, ebp
pop ebp
ret 8
Function at 0x403ad0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441980
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
push str.Name
lea ecx, [ebp - 0x2c]
mov ebx, edx
push ecx
push ebx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], eax
call fcn.00419590
mov edi, eax
mov dword [ebp - 4], 0
call fcn.00405650
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x403b3e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0042b948
add esp, 4
push str.Value
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.00419590
mov esi, dword [ebp - 0x4c]
add esi, 0x1c
mov edi, eax
mov dword [ebp - 4], 1
call fcn.00405650
or ebx, 0xffffffff
mov edi, 8
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], edi
jb 0x403b7d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042b948
add esp, 4
cmp dword [esi + 0x14], edi
jb 0x403b86
mov eax, dword [esi]
jmp 0x403b88
mov eax, esi
mov edx, dword [ebp - 0x50]
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.00404790
mov edi, eax
mov dword [ebp - 4], 2
call fcn.00405650
mov dword [ebp - 4], ebx
mov ebx, 8
cmp dword [ebp - 0x18], ebx
jb 0x403bbc
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042b948
add esp, 4
cmp dword [esi + 0x14], ebx
jb 0x403bc5
mov eax, dword [esi]
jmp 0x403bc7
mov eax, esi
push 6
push str.REG:
push eax
call fcn.0042c55e
add esp, 0xc
test eax, eax
jne 0x403c16
cmp dword [esi + 0x14], ebx
jb 0x403be4
mov eax, dword [esi]
jmp 0x403be6
mov eax, esi
lea edx, [ebp - 0x48]
lea ecx, [eax + 0xc]
push edx
call fcn.00403ca0
add esp, 4
mov edi, eax
mov dword [ebp - 4], 3
call fcn.00405650
cmp dword [ebp - 0x34], ebx
jb 0x403c75
mov eax, dword [ebp - 0x48]
push eax
call fcn.0042b948
add esp, 4
jmp 0x403c75
cmp dword [esi + 0x14], ebx
jb 0x403c1f
mov eax, dword [esi]
jmp 0x403c21
mov eax, esi
push 6
push str.FIL:
push eax
call fcn.0042c55e
add esp, 0xc
test eax, eax
jne 0x403c75
cmp dword [esi + 0x14], ebx
jb 0x403c3e
mov eax, dword [esi]
jmp 0x403c40
mov eax, esi
add eax, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, 0x4462c0
jne 0x403c58
mov eax, 0x446828
mov ecx, eax
lea edi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x403c60
sub ecx, edi
sar ecx, 1
push ecx
call fcn.00402c70
mov ecx, dword [ebp - 0x4c]
xor eax, eax
cmp dword [ecx + 0x2c], eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b939
mov esp, ebp
pop ebp
ret 4
Function at 0x4062e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x446c4c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40633f
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push ebx
push ebx
push eax
push ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 1
pop ebx
sete al
mov esp, ebp
pop ebp
ret
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406350
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, eax
push esi
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x406370
sub ecx, esi
sar ecx, 1
push ecx
mov esi, 0x4549c0
call fcn.00402c70
cmp dword [0x4549d4], 8
mov eax, dword [0x4549c0]
jae 0x40639a
mov eax, esi
push eax
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0042c4dd
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0
lea edx, [ebp - 0x214]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x446828
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
mov ecx, dword [ebp - 8]
add esp, 8
xor ecx, ebp
pop esi
call fcn.0042b939
mov esp, ebp
pop ebp
ret 4
Function at 0x406400
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push str.2.5.41
push str.Core_version:__s
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
mov edi, dword [0x455c88]
add esp, 0xc
push str.IIF_SETUPVERSION
add edi, 4
call fcn.00404030
push eax
push str.Setup_version:__s
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.Command_line:__s
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
add esp, 0xc
push 0x11c
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00430500
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
mov dword [ebp - 0x128], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [ebp - 0x12c]
push edx
mov dword [ebp - 0x12c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x12c], 1
mov eax, str.64_bit
je 0x4064d7
mov eax, str.32_bit
movzx ecx, byte [ebp - 0xe]
mov edx, dword [ebp - 0x120]
push eax
movzx eax, word [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x124]
push ecx
push edx
push eax
push str.OS_data:__d__d__d__d__s
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
push edx
push str.System_up_time:__d_sec
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
mov eax, dword [0x455c88]
add eax, 0x30
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x406541
mov eax, dword [eax]
push eax
call fcn.004062e0
add esp, 4
test al, al
mov eax, 0x446858
jne 0x406558
mov eax, 0x446860
push eax
push str.Reboot_pending:__s
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
call fcn.0042b939
mov esp, ebp
pop ebp
ret
Function at 0x406580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push ebx
push esi
push edi
mov esi, ecx
jb 0x4065a0
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4066c0
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x4a]
movzx edx, word [ebp - 0x4c]
movzx eax, word [ebp - 0x4e]
push esi
push ecx
movzx ecx, word [ebp - 0x50]
push edx
movzx edx, word [ebp - 0x52]
push eax
movzx eax, word [ebp - 0x56]
push ecx
movzx ecx, word [ebp - 0x58]
push edx
push eax
push ecx
lea edx, [ebp - 0x48]
push str._d:_02d:_02d__02d:_02d:_02d:_03d:__s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x48]
add esp, 0x28
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406617
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x48]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
push ecx
push edx
call fcn.0042c787
lea esi, [eax + 3]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042abb9
mov ecx, dword [ebp + 0xc]
mov edi, eax
lea eax, [ebp + 0x10]
push eax
push ecx
push esi
push edi
call fcn.0042c912
push 0x446e0c
push esi
push edi
call fcn.0042c92f
mov eax, edi
add esp, 0x28
lea edx, [eax + 2]
jmp 0x406690
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406690
sub eax, edx
push 0
sar eax, 1
lea edx, [ebp - 0x5c]
push edx
add eax, eax
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.0042b948
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b939
mov esp, ebp
pop ebp
ret

Function at 0x4066e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 1
push 0
push 0
push 0x446c4c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406735
mov edx, dword [ebp + 8]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push eax
mov eax, dword [ebp - 4]
push edx
push eax
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x407820
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 8], eax
push edi
mov edi, dword [ebp + 8]
push str.IIF_CACHELOC
lea edi, [edi + 4]
call fcn.00404030
push eax
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0042c4dd
add esp, 0xc
push str.Prop.data
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Deleting_private_properties_file
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
add esp, 8
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop edi
call fcn.0042b939
mov esp, ebp
pop ebp
ret 4
Function at 0x40ea90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f43b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4533e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0042acc1
push 4
mov dword [ebp - 4], 0
call fcn.0042b953
mov edi, eax
add esp, 4
test edi, edi
je 0x40eb0c
call fcn.0042b113
mov dword [edi], eax
call fcn.0042aed2
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0042ae07
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40eb02
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0042ae2f
jmp 0x40eb0e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412890
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440349
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x28], eax
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
mov dword [ebp - 0x2c], esi
mov word [esi], cx
push 9
mov dword [ebp - 4], eax
movzx eax, word [edi + 2]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea edx, [ebp - 0x24]
push edx
push 0x59
push eax
mov dword [ebp - 0x28], 1
call ebx
lea eax, [ebp - 0x24]
lea edx, [eax + 2]
jmp 0x412900
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412900
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x24]
call fcn.00402c70
push 1
mov eax, 0x4494b4
mov ecx, esi
call fcn.00405a00
movzx edx, word [edi + 2]
push 9
lea ecx, [ebp - 0x24]
push ecx
push 0x5a
push edx
call ebx
lea eax, [ebp - 0x24]
lea edx, [eax + 2]
jmp 0x412940
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412940
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x24]
mov ecx, esi
call fcn.00405a00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b939
mov esp, ebp
pop ebp
ret
Function at 0x412b60
Capabilities:
Delete file
Get common file path
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x428
mov eax, dword [0x4533e4]
xor eax, esp
mov dword [esp + 0x424], eax
push esi
push edi
mov edi, ecx
mov esi, edx
mov byte [esp + 0x10], 1
test di, di
jne 0x412bd3
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, ax
mov ecx, 0x105
cmp ax, cx
je 0x412baf
mov edx, 0x205
cmp ax, dx
je 0x412baf
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
jmp 0x412bb5
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edi, ax
movzx eax, di
push eax
push str.Current_UI_language:__04X
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
add esp, 0xc
mov eax, edi
and eax, 0x3ff
cmp ax, 3
je 0x412bec
cmp ax, 0x2d
je 0x412bec
cmp ax, 0x56
jne 0x412bf1
mov edi, 0xc0a
lea ecx, [esp + 0x220]
push ecx
push 0x104
mov word [esp + 0x10], di
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edi, [esi + 4]
push edi
push 0
push 0x449518
lea edx, [esp + 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
push str.Language_folder:__s
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push 0xa
lea edx, [esp + 0x10]
mov ecx, 0x412670
call fcn.004187a0
add esp, 8
test eax, eax
jne 0x412c8c
movzx eax, word [esp + 0x12]
push eax
push str.Loading_language__04X
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
mov eax, dword [esp + 0x1e]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call fcn.00412ca0
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
xor ecx, esp
call fcn.0042b939
mov esp, ebp
pop ebp
ret

Function at 0x412ca0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
lea ecx, [esi + 0x61c]
push 0x104
push ecx
mov word [esi + 2], ax
call fcn.0042c4dd
add esp, 0xc
push edi
lea ebx, [esi + 0x20c]
push 0x104
push ebx
call fcn.0042c4dd
add esp, 0xc
push str.IntelCommon.dll
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp + 8]
push edx
lea edi, [esi + 0x414]
push 0x104
push edi
call fcn.0042c4dd
add esp, 0xc
push str.resource.dll.mui
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412d19
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
cmp byte [esi], 0
je 0x412d36
push ebx
push str.Loading_common_language_resource___s_
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
add esp, 0xc
push 2
push 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov dword [esi + 0x824], eax
test eax, eax
jne 0x412d5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
pop ecx
pop ebp
ret 4
cmp byte [esi], 0
je 0x412d77
push edi
push str.Loading_language_resource___s_
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
add esp, 0xc
push 2
push 0
push edi
call ebx
mov dword [esi + 0x828], eax
test eax, eax
je 0x412d4d
pop edi
xor eax, eax
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x414110
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4409fe
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4533e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, 7
xor esi, esi
xor edx, edx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x10], esi
mov word [edi], dx
mov dword [ebp - 4], esi
mov dword [edi + 0x30], ecx
mov dword [edi + 0x2c], esi
mov word [edi + 0x1c], dx
mov dword [edi + 0x50], ecx
xor ecx, ecx
mov dword [edi + 0x4c], esi
mov word [edi + 0x3c], cx
mov ecx, eax
lea edx, [ecx + 2]
mov byte [ebp - 4], 2
mov dword [ebp + 0xc], edx
mov dx, word [ecx]
add ecx, 2
cmp dx, si
jne 0x414172
sub ecx, dword [ebp + 0xc]
mov esi, edi
sar ecx, 1
push ecx
call fcn.00402c70
mov edx, dword [ebp + 0x10]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414192
sub eax, esi
sar eax, 1
push eax
mov eax, edx
lea esi, [edi + 0x1c]
call fcn.00402c70
push 0
mov eax, 0x446828
lea esi, [edi + 0x3c]
mov dword [edi + 0x38], 0
call fcn.00402c70
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4147d0
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 4], eax
push str.____Caching_MSI
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
add esp, 8
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push esi
call dword [sym.imp.msi.dll_MsiSourceListClearAllW]
test eax, eax
jne 0x4148a2
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x414825
push eax
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ebx
lea ecx, [ebp - 0x260]
push 0x104
push ecx
call fcn.0042c4dd
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea edx, [ebp - 0x260]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.______Copying_to_cache
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
add esp, 8
push 1
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push str.______Adding_to_source_list
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
add esp, 8
lea ecx, [ebp - 0x260]
push ecx
push 0
push 0
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.msi.dll_MsiIsProductElevatedW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b939
mov esp, ebp
pop ebp
ret