joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405c50
Capabilities:
Check if file exists
Get common file path
Get program files directory
Get startup folder
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x453b7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x440
mov eax, dword [0x46c3ac]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x440], eax
mov eax, dword [esi + 0x270]
push edi
push eax
lea ecx, [esp + 0x23c]
push str._swnsoft.ini
push ecx
mov dword [esp + 0x1c], esi
call fcn.004322a4
xor ebx, ebx
mov word [esp + 0x3c], bx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x3e]
rep stosd dword es:[edi], eax
add esp, 0xc
lea edx, [esp + 0x238]
stosw word es:[edi], ax
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edx
call edi
test eax, eax
je 0x405d44
lea eax, [esp + 0x238]
push eax
push 0x5dc
lea ecx, [esp + 0x38]
push ecx
push 0x457084
push str.StartInstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x30]
push edx
call fcn.00432636
add esp, 4
cmp eax, 4
jb 0x405d44
xor eax, eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
push 3
lea ecx, [esp + 0x34]
mov dword [esp + 0x22], eax
push ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x2a], eax
push edx
mov word [esp + 0x20], bx
mov word [esp + 0x32], ax
call fcn.00432be6
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x405e0d
push ebx
push 0x26
lea ecx, [esp + 0x38]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 7
push str.DefAppPath
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.00432636
add esp, 4
push eax
push str.DefAppPath
lea ecx, [esp + 0x1c]
call fcn.00404f80
mov ecx, dword [esi + 0x288]
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x458], ebx
call dword [edx + 0x10]
mov esi, eax
cmp dword [esp + 0x2c], 8
mov dword [esp + 0x454], 0xffffffff
jb 0x405db9
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0044b775
add esp, 4
cmp esi, ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
je 0x405e09
lea edx, [esp + 0x30]
push 0x4570f8
push edx
call fcn.004323d1
mov eax, dword [esi + 0x18]
add esp, 8
cmp eax, 8
jb 0x405de9
mov esi, dword [esi + 4]
jmp 0x405dec
add esi, 4
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004323d1
lea ecx, [esp + 0x38]
push 0x4570f8
push ecx
call fcn.004323d1
add esp, 0x10
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push 0x456f48
add esi, 0x278
push esi
call fcn.00403960
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x450]
add esp, 0xc
mov eax, 1
call fcn.00431d98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407110
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x453cb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x34]
mov esi, dword [edi - 0xc]
lea eax, [esi + esi + 2]
xor ebp, ebp
push eax
mov dword [esp + 0x30], ebp
call fcn.0044b77a
mov ebx, eax
push edi
push ebx
call fcn.004323fb
add esp, 0xc
cmp esi, ebp
jl 0x407241
mov dword [esp + 0x14], ebp
mov ebp, 2
sub ebp, ebx
inc esi
mov edi, ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], esi
mov ax, word [edi]
cmp ax, 0x7c
je 0x407183
test ax, ax
jne 0x40722b
mov ecx, dword [esp + 0x14]
add ecx, ebx
push ecx
lea ecx, [esp + 0x14]
mov word [edi], 0
call fcn.00403a80
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x298]
add esi, 0x294
test eax, eax
lea edx, [edi + ebp]
mov byte [esp + 0x2c], 1
mov dword [esp + 0x14], edx
jne 0x4071bc
xor edx, edx
jmp 0x4071c4
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x4071f6
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x4071f6
mov eax, dword [esp + 0x34]
mov ebp, dword [esi + 8]
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
push 1
push ebp
call fcn.00405290
add ebp, 4
mov dword [esi + 8], ebp
mov ebp, dword [esp + 0x20]
jmp 0x407208
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, esi
call fcn.00406280
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40722b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add edi, 2
dec eax
mov dword [esp + 0x18], eax
jne 0x407171
mov edi, dword [esp + 0x34]
lea eax, [edi - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
pop ebx
jg 0x407267
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x40b790
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40b7ba
xor eax, eax
add esp, 0xc
ret 4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push 0x4578f8
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xc
ret 4

Function at 0x40b800
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x828
mov eax, dword [0x46c3ac]
mov dword [esp + 0x824], eax
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x830]
mov dword [esp + 4], eax
push ecx
mov dword [esp + 0xc], eax
lea edx, [esp + 0x5c]
mov dword [esp + 0x10], eax
push 0x456f48
push edx
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x1c], eax
call fcn.004322a4
add esp, 0xc
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [esp + 0x78]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
jne 0x40b88f
mov ecx, dword [esp + 0x824]
call fcn.00431d98
add esp, 0x828
ret 4
mov eax, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov ecx, dword [esp + 0x828]
mov eax, 1
pop esi
call fcn.00431d98
add esp, 0x828
ret 4

Function at 0x40b8c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x82c
mov eax, dword [0x46c3ac]
mov dword [esp + 0x828], eax
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x834]
mov dword [esp + 4], eax
push ecx
mov dword [esp + 0xc], eax
lea edx, [esp + 0x60]
mov dword [esp + 0x10], eax
push 0x456f48
push edx
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x1c], eax
call fcn.004322a4
add esp, 0xc
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [esp + 0x7c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
jne 0x40b94f
mov ecx, dword [esp + 0x828]
call fcn.00431d98
add esp, 0x82c
ret 4
mov eax, dword [esp]
push esi
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov ecx, dword [esp + 0x82c]
mov eax, 1
pop esi
call fcn.00431d98
add esp, 0x82c
ret 4
Function at 0x40b9a0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
call fcn.00432636
mov ebp, eax
lea eax, [ebp + ebp + 2]
push eax
call fcn.0044b77a
mov esi, eax
push edi
push esi
call fcn.004323fb
add esp, 0x10
xor edi, edi
test ebp, ebp
mov byte [esp + 0x10], 1
jl 0x40ba1d
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp word [esi + edi*2], 0x5c
jne 0x40b9fd
push esi
mov word [esi + edi*2], 0
call ebx
test eax, eax
jne 0x40b9f7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40ba17
mov word [esi + edi*2], 0x5c
inc edi
cmp edi, ebp
jle 0x40b9d7
pop ebx
push esi
call fcn.0044b775
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret 4
mov byte [esp + 0x14], 0
pop ebx
push esi
call fcn.0044b775
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret 4

Function at 0x40ba40
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ecx
push esi
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x40bb29
lea eax, [esp + 4]
push eax
push 0x4619d8
push 1
push esi
push 0x4619e8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40bb23
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40ba95
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40baa8
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x3c]
mov ecx, dword [esp + 0x1c]
test cx, cx
je 0x40babc
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x34]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x40bacf
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x40bae2
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x2c]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x461a28
push eax
call dword [ecx]
test eax, eax
jl 0x40bb19
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, 1
mov eax, dword [esp + 4]
mov edx, dword [eax]
push eax
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
pop ecx
ret 0x1c
Function at 0x40bb30
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x46c3ac]
push esi
mov esi, dword [esp + 0x214]
push edi
push esi
mov dword [esp + 0x214], eax
mov edi, ecx
call fcn.00432636
add esp, 4
test eax, eax
jne 0x40bb71
pop edi
pop esi
mov ecx, dword [esp + 0x208]
call fcn.00431d98
add esp, 0x20c
ret 4
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0x14]
push str.Program_FilesInternet_Exploreriexplore.exe
push ecx
call fcn.004323fb
lea edx, [esp + 0x10]
push esi
push edx
call fcn.004323d1
add esp, 0x10
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x40bbc3
lea eax, [esp + 8]
push eax
mov ecx, edi
call fcn.0040b800
mov ecx, dword [esp + 0x210]
pop edi
mov eax, 1
pop esi
call fcn.00431d98
add esp, 0x20c
ret 4

Function at 0x40bbe0
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
mov edi, ecx
call fcn.00432636
add esp, 4
test eax, eax
jne 0x40bbfa
pop edi
pop esi
ret 4
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x40bc1b
push esi
mov ecx, edi
call fcn.0040b800
pop edi
mov eax, 1
pop esi
ret 4

Function at 0x40bcc0
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bd15
push 0
push 0x80
push 3
push 0
push 0
push 0x10000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40bd0e
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bd08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
pop esi
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bd2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
pop esi
ret 4
Function at 0x40bdb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x454048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.004037a0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00403450
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40be42
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x40d540
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [ecx + 0x284], 2
jne 0x40d54e
jmp fcn.0040d230
jmp fcn.0040cf50

Function at 0x40d560
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x30
mov eax, dword [0x46c3ac]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push esi
push 0
push 0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], 0
call ebx
mov esi, eax
test esi, esi
jne 0x40d599
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
call fcn.00431d98
add esp, 0x30
ret 4
push edi
lea eax, [esi*4]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x40d5c4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
call fcn.00431d98
add esp, 0x30
ret 4
push edi
push esi
call ebx
mov esi, eax
test esi, esi
je 0x40d5b0
jbe 0x40d610
mov ebx, dword [esp + 0x40]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x40d5e0
mov edx, dword [edi + esi*4 - 4]
push 0x28
lea ecx, [esp + 0x18]
dec esi
push ecx
push edx
call sub.IMM32.dll_ImmGetIMEFileNameW
test eax, eax
je 0x40d602
lea eax, [esp + 0x14]
push eax
push ebx
call ebp
test eax, eax
je 0x40d608
test esi, esi
ja 0x40d5e0
jmp 0x40d60f
mov ecx, dword [edi + esi*4]
mov dword [esp + 0x10], ecx
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
call fcn.00431d98
add esp, 0x30
ret 4
Function at 0x40e270
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x70]
lea eax, [esp + 4]
push eax
push ecx
mov dword [esi], method.CDialog.virtual_0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edx, dword [esp + 4]
mov eax, dword [esi + 0x70]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call fcn.00446c7b
pop esi
pop ecx
ret

Function at 0x40e580
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x46d488]
push esi
mov esi, ecx
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx]
call dword [edx + 0x168]
push 0
mov ecx, esi
call fcn.0044ac7c
lea eax, [esi + 0x74]
push eax
push 0
push esi
push 0x40e340
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x70], eax
pop esi
ret

Function at 0x40e740
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x46d488]
mov ecx, dword [ecx + 0x10]
lea eax, [esp + 8]
push eax
call fcn.00410730
mov eax, dword [eax]
push str.finish
push eax
call fcn.00432272
mov ebx, eax
mov eax, dword [esp + 0x10]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e78e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x40e7cb
mov eax, dword [0x46d488]
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx]
call dword [edx + 0x168]
push 0
mov ecx, esi
call fcn.0044ac7c
lea eax, [esi + 0x74]
push eax
push 0
push esi
push 0x40e340
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x70], eax
pop esi
pop ebx
pop ecx
ret
mov ecx, dword [0x46d488]
mov ecx, dword [ecx + 0x10]
call fcn.00410060
pop esi
pop ebx
pop ecx
ret
Function at 0x40f8f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45435e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x46c3ac]
push ebp
mov dword [esp + 0x210], eax
push edi
lea eax, [esp + 0xc]
push eax
push 0x104
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0xc]
push str.Language.xml
push ecx
call fcn.004323d1
lea edx, [esp + 0x14]
push edx
push 0x456f48
push ebp
call fcn.004322a4
push 0x10
call fcn.0044b74a
mov edi, eax
add esp, 0x18
mov dword [esp + 8], edi
test edi, edi
mov dword [esp + 0x220], 0
je 0x40f99c
push esi
lea esi, [edi + 4]
mov ecx, esi
mov dword [edi], 0x4582b8
call fcn.0040e880
mov dword [esi + 4], eax
mov byte [eax + 0x2d], 1
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov dword [esi + 8], 0
pop esi
jmp 0x40f99e
xor edi, edi
mov ecx, ebp
mov dword [esp + 0x220], 0xffffffff
mov dword [ebp + 0x208], edi
call fcn.0040f450
mov ecx, dword [esp + 0x218]
neg eax
sbb eax, eax
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x210]
neg eax
pop ebp
call fcn.00431d98
add esp, 0x21c
ret

Function at 0x40fdc0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push 0x4585a8
mov esi, ecx
call ebx
test eax, eax
mov dword [esi], eax
jne 0x40fdda
pop esi
pop ebx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi]
push str.IsWow64Process
push eax
call edi
mov ecx, dword [esi]
push str.Wow64DisableWow64FsRedirection
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi]
push str.Wow64RevertWow64FsRedirection
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi]
push str.GetSystemWow64DirectoryW
push eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
test eax, eax
mov dword [esi + 4], eax
jne 0x40fe32
pop edi
pop esi
pop ebx
ret
push str.Wow64RevertWow64FsRedirection
push eax
call edi
mov ecx, dword [esi + 4]
push str.Wow64RevertWow64FsRedirection
push ecx
mov dword [esi + 0x20], eax
call edi
pop edi
mov dword [esi + 0x1c], eax
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4147f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x46c3ac]
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [esp + 0x218], eax
push edi
je 0x4148b8
push str.ItemSelect
mov ecx, esi
call fcn.0041e570
push str.true
push eax
call fcn.00432272
add esp, 8
test eax, eax
jne 0x4148b8
push str.ItemOldInstallPath
mov ecx, esi
call fcn.0041e570
push str.ItemMbToolExe
mov ecx, esi
mov ebx, eax
call fcn.0041e570
test ebx, ebx
mov dword [esp + 0xc], eax
je 0x4148b8
test eax, eax
je 0x4148b8
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.004323fb
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004323d1
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, esi
je 0x4148a9
push str.true
jmp 0x4148ae
push str.false
push 0x458eec
call fcn.0041e950
mov ecx, dword [esp + 0x21c]
call fcn.00431d98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x414ce0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x46c3ac]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x420], eax
push edi
je 0x414e48
push str.ItemSelect
mov ecx, esi
call fcn.0041e570
push str.true
push eax
call fcn.00432272
add esp, 8
test eax, eax
jne 0x414e48
mov word [esp + 0x10], bx
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [esp + 0x218], bx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x21a]
rep stosd dword es:[edi], eax
push str.ItemSoft
mov ecx, esi
stosw word es:[edi], ax
call fcn.0041e570
push str.ItemUserMbVer
mov ecx, esi
mov ebx, eax
call fcn.0041e570
mov edi, eax
push str.wnwg
push ebx
mov dword [esp + 0x14], edi
call fcn.00432272
mov ecx, dword [0x46d488]
add esp, 8
test eax, eax
jne 0x414dd0
call fcn.0040c720
mov edi, eax
mov eax, dword [edi + 0x278]
mov ecx, dword [eax - 4]
add edi, 0x278
sub eax, 0x10
cmp ecx, 1
jle 0x414db7
mov eax, dword [eax + 4]
push eax
mov ecx, edi
call fcn.004032c0
mov ecx, dword [edi]
push ebx
push ecx
lea edx, [esp + 0x18]
push str._s_susr_mbUserMB.ini
push edx
call fcn.004322a4
mov edi, dword [esp + 0x1c]
jmp 0x414ded
push ebx
call fcn.0040c720
mov ecx, eax
call fcn.00403f60
push eax
lea eax, [esp + 0x18]
push str._s_smbUserMB.ini
push eax
call fcn.004322a4
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push 0x104
lea edx, [esp + 0x220]
push edx
push 0x457084
push str.UserMbVer
push str.Struct
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test edi, edi
je 0x414e48
lea eax, [esp + 0x218]
push edi
push eax
call fcn.00432272
add esp, 8
test eax, eax
mov ecx, esi
jne 0x414e39
push str.false
jmp 0x414e3e
push str.true
push str.ItemModifyUserMbVer
call fcn.0041e950
mov ecx, dword [esp + 0x424]
call fcn.00431d98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4