joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401400
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4064
call fcn.00458e00
mov eax, dword [0x4a2a04]
xor eax, esp
mov dword [esp + 0x405c], eax
push esi
push edi
xor eax, eax
push 0x3ffe
mov esi, ecx
push eax
lea ecx, [esp + 0x6a]
push ecx
mov edi, edx
mov word [esp + 0x6c], ax
call fcn.00456530
push esi
push 0x47e32c
lea edx, [esp + 0x74]
push 0x2000
push edx
call fcn.0045176d
lea esi, [edi + 0x1402]
add esp, 0x1c
cmp word [esi], 0
je 0x40147e
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x47e334
lea ecx, [esp + 0x64]
push ecx
call edi
push esi
lea edx, [esp + 0x64]
push edx
call edi
push 0x40
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00456530
add esp, 0xc
xor eax, eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x80]
push eax
push 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4014f2
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
mov ecx, dword [esp + 0x4064]
pop edi
pop esi
xor ecx, esp
call fcn.004516c6
add esp, 0x4064
ret
Function at 0x401630
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46feee
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x4a2a04]
xor eax, esp
mov dword [esp + 0x294], eax
push ebx
push ebp
push esi
mov eax, dword [0x4a2a04]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
mov ecx, edi
mov dword [esp + 0x14], edi
call dword [0x47f8a4]
xor ebx, ebx
mov dword [esp + 0x2b0], ebx
lea ebp, [edi + 0x274]
mov ecx, ebp
mov dword [edi], vtable.CMainFrame.0
mov dword [edi + 0x10], vtable.CMainFrame.1.0
mov dword [edi + 0x20], vtable.CMainFrame.2.0
mov dword [edi + 0x24], vtable.CMainFrame.3.0
mov dword [edi + 0x28], vtable.CMainFrame.4.0
call dword [0x47f88c]
mov eax, 7
xor ecx, ecx
mov dword [edi + 0x338], eax
mov dword [edi + 0x334], ebx
mov word [edi + 0x324], cx
xor edx, edx
mov dword [edi + 0x354], eax
mov dword [edi + 0x350], ebx
mov word [edi + 0x340], dx
mov dword [edi + 0x370], eax
mov dword [edi + 0x36c], ebx
mov word [edi + 0x35c], cx
lea esi, [edi + 0x374]
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
mov word [esi + 4], dx
mov dword [edi + 0x3a8], eax
mov dword [edi + 0x3a4], ebx
mov word [edi + 0x394], cx
mov dword [edi + 0x3c4], eax
mov dword [edi + 0x3c0], ebx
mov word [edi + 0x3b0], dx
mov byte [esp + 0x2b0], al
push 0x104
lea eax, [esp + 0xa0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x9c]
push ecx
mov ecx, ebp
call dword [0x47f894]
push 0x5c
mov ecx, ebp
call dword [0x47f8a0]
inc eax
push eax
push ebx
lea edx, [esp + 0x20]
push edx
mov ecx, ebp
call dword [0x47f89c]
push eax
mov ecx, ebp
mov byte [esp + 0x2b4], 8
call dword [0x47f890]
lea ecx, [esp + 0x18]
mov byte [esp + 0x2b0], 7
call dword [0x47fb84]
push str.SoftApp.ini
mov ecx, ebp
call dword [0x47f898]
lea eax, [esp + 0x9c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x9c]
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4017c0
sub eax, ecx
sar eax, 1
push eax
lea eax, [esp + 0xa0]
call fcn.00404400
push 8
mov dword [edi + 0x2f8], ebx
mov dword [edi + 0x2fc], ebx
mov dword [edi + 0x300], ebx
mov dword [edi + 0x304], ebx
mov dword [edi + 0x308], ebx
mov dword [edi + 0x30c], ebx
mov dword [edi + 0x310], ebx
mov dword [edi + 0x314], ebx
mov dword [edi + 0x318], ebx
mov dword [edi + 0x31c], ebx
call fcn.00444c01
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x2b0], 9
cmp eax, ebx
je 0x40183b
mov esi, eax
call fcn.00404780
jmp 0x40183d
xor eax, eax
mov byte [esp + 0x2b0], 7
push 0x4206
mov dword [edi + 0x31c], eax
mov dword [edi + 0x3c8], ebx
call fcn.00444c30
push 0x4206
push ebx
push eax
mov dword [edi + 0x3c8], eax
call fcn.00456530
mov cl, byte [esp + 0x2c8]
add esp, 0x10
mov byte [edi + 0x3cc], 1
mov dword [edi + 0x3d0], ebx
mov byte [edi + 0x3d4], bl
mov dword [edi + 0x3dc], ebx
mov byte [edi + 0x3d5], cl
mov eax, edi
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.004516c6
add esp, 0x2a4
ret 4
Function at 0x401b40
Capabilities:
Create thread
Hide graphical window
Read .ini file

Disassembly:
sub esp, 0x414
mov eax, dword [0x4a2a04]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [sym.SoftUpd.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x2c]
push str.label_0
mov ecx, edi
call ebx
push str.label_1
mov ecx, edi
mov dword [esi + 0x2f8], eax
call ebx
push str.label_2
mov ecx, edi
mov dword [esi + 0x2fc], eax
call ebx
push str.label_3
mov ecx, edi
mov dword [esi + 0x300], eax
call ebx
push str.label_4
mov ecx, edi
mov dword [esi + 0x304], eax
call ebx
push str.guangsu_website4
mov ecx, edi
mov dword [esi + 0x308], eax
call ebx
mov dword [esi + 0x30c], eax
test eax, eax
je 0x401bce
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x2c]
push str.www.wannianli365.com
call eax
push str.guangsu_website
mov ecx, edi
call ebx
mov dword [esi + 0x310], eax
test eax, eax
je 0x401bef
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x2c]
push str.www.wannianli365.com
call eax
push str.close_ex
mov ecx, edi
call ebx
push str.progress
mov ecx, edi
mov dword [esi + 0x314], eax
call ebx
push str.ieLock_check_box
mov ecx, edi
mov dword [esi + 0x318], eax
call ebx
push str.ieLock_Label
mov ecx, edi
mov dword [esi + 0x3e0], eax
call ebx
cmp byte [esi + 0x3d5], 0
mov dword [esi + 0x3e4], eax
je 0x401c3c
mov ecx, dword [esi + 4]
push 0
push ecx
jmp 0x401c42
mov edx, dword [esi + 4]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00403db0
push 0x104
lea eax, [esp + 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x214]
push 0x5c
push ecx
call fcn.00451ab5
xor edx, edx
mov word [eax + 2], dx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
push ecx
mov word [esp + 0x20], ax
call fcn.00456530
lea edx, [esp + 0x228]
push edx
lea eax, [esp + 0x24]
push str._sSoftApp.ini
push eax
call fcn.004516d5
add esp, 0x20
lea ecx, [esp + 0xc]
push ecx
push 1
push str.bShowMoreBtn
push str.ControlConf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push esi
push 0x401d00
push 0
push 0
mov dword [esi + 0x3d8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004516c6
add esp, 0x414
ret
Function at 0x402a10
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x46fd86
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x4a2a04]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a2a04]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
push 0x204
lea eax, [esp + 0x6c]
push 0
push eax
mov edi, ecx
mov dword [esp + 0x70], 0
call fcn.00456530
mov ebp, dword [sym.SoftUpd.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
lea ebx, [edi + 0x274]
add esp, 0xc
mov ecx, ebx
call ebp
push eax
push 0x104
lea ecx, [esp + 0x6c]
push ecx
push 0x47f0c0
push 0x47e70c
push 0x47e714
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x64]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x402aa0
sub eax, ecx
sar eax, 1
push eax
lea esi, [edi + 0x390]
lea eax, [esp + 0x68]
call fcn.00404400
lea edx, [esp + 0x64]
push edx
call fcn.00451d2c
fstp qword [esp + 0x18]
add esp, 4
mov ecx, ebx
call ebp
push eax
push 0x104
lea eax, [esp + 0x6c]
push eax
push 0x47f0c0
push str.MinVer
push 0x47e714
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x64]
lea edx, [eax + 2]
jmp 0x402b00
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402b00
sub eax, edx
sar eax, 1
push eax
lea esi, [edi + 0x3ac]
lea eax, [esp + 0x68]
call fcn.00404400
lea ecx, [esp + 0x64]
push ecx
call fcn.00451d2c
fstp qword [esp + 0x40]
add esp, 4
call fcn.00402c90
cmp dword [edi + 0x36c], 0
jne 0x402c66
mov ebp, 8
cmp dword [edi + 0x338], ebp
jb 0x402b57
mov eax, dword [edi + 0x324]
jmp 0x402b5d
lea eax, [edi + 0x324]
push eax
call fcn.00451d2c
fcomp qword [esp + 0x18]
add esp, 4
fnstsw ax
test ah, 0x41
je 0x402bcd
cmp dword [edi + 0x338], ebp
jb 0x402b81
mov eax, dword [edi + 0x324]
jmp 0x402b87
lea eax, [edi + 0x324]
push eax
call fcn.00451d2c
fcomp qword [esp + 0x18]
add esp, 4
fnstsw ax
test ah, 0x44
jp 0x402c66
cmp dword [edi + 0x354], ebp
jb 0x402baf
mov eax, dword [edi + 0x340]
jmp 0x402bb5
lea eax, [edi + 0x340]
push eax
call fcn.00451d2c
fcomp qword [esp + 0x40]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x402c66
mov ebx, 7
xor edx, edx
push ebx
mov eax, str.Default
lea esi, [esp + 0x24]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], 0
mov word [esp + 0x28], dx
call fcn.00404400
xor esi, esi
mov dword [esp + 0x278], esi
mov ecx, dword [edi + 0x31c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x4c]
push edx
call eax
push 0xffffffffffffffff
push esi
lea ecx, [edi + 0x358]
mov byte [esp + 0x280], 1
call fcn.00404350
cmp dword [esp + 0x60], ebp
jb 0x402c3d
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00444c3b
add esp, 4
xor edx, edx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], esi
mov word [esp + 0x4c], dx
cmp dword [esp + 0x38], ebp
jb 0x402c5f
mov eax, dword [esp + 0x24]
push eax
call fcn.00444c3b
add esp, 4
mov eax, 1
jmp 0x402c68
xor eax, eax
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.004516c6
add esp, 0x268
ret
Function at 0x403250
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46fc94
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x4a2a04]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a2a04]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov esi, dword [esp + 0x130]
mov edi, ecx
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
lea edx, [esp + 0x14]
push edx
call eax
mov dword [esp + 0x128], 0
mov ebp, dword [sym.SoftUpd.exe_public:_bool___thiscall_DuiLib::CDuiString::operator_wchar_t_const__const]
push str.close
lea ecx, [esp + 0x18]
call ebp
test al, al
je 0x403329
mov ecx, dword [edi + 0x3e0]
call dword [0x47f934]
test al, al
je 0x403307
mov eax, dword [edi + 0x3dc]
test eax, eax
je 0x403307
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SaveStartupPage
push eax
call esi
push str.http:__www.hao123.com__tn99636721_hao_pg
call eax
mov ecx, dword [edi + 0x3dc]
push str.EnableLock
push ecx
call esi
push 1
call eax
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], 0xffffffff
call dword [0x47fb84]
jmp 0x403490
push str.close_ex
lea ecx, [esp + 0x18]
call ebp
test al, al
je 0x403362
mov ecx, dword [edi + 0x3e0]
call dword [0x47f934]
test al, al
je 0x40334d
call fcn.00403e60
push 0
push 0
mov ecx, edi
call dword [0x47f92c]
mov ecx, edi
call fcn.00403b10
jmp 0x403307
push str.minmize
lea ecx, [esp + 0x18]
call ebp
mov ebx, dword [sym.SoftUpd.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
test al, al
je 0x403390
push 0
push 0xf020
push 0x112
mov ecx, edi
call dword [0x47f930]
jmp 0x40347f
push str.guangsu_website
lea ecx, [esp + 0x18]
call ebp
test al, al
je 0x4033dd
mov ecx, dword [esi + 0x108]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x98]
push eax
call edx
push 5
push 0
push 0
mov ecx, eax
mov byte [esp + 0x134], 1
call dword [0x47f920]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40346e
push 0
push str.show_more_btn
lea ecx, [esp + 0x1c]
call dword [0x47f928]
cmp eax, 0xffffffff
je 0x4033ff
mov ecx, edi
call fcn.00403ea0
jmp 0x40347f
push str.bind_data_checkbox
lea ecx, [esp + 0x18]
call ebp
test al, al
je 0x40347f
mov esi, dword [esi + 0x108]
mov eax, dword [esi]
mov edx, dword [eax + 0xb8]
mov ecx, esi
call edx
push eax
lea ecx, [esp + 0x9c]
call dword [0x47f91c]
lea ecx, [esp + 0x98]
mov byte [esp + 0x128], 2
call dword [0x47f920]
push eax
call fcn.00451d55
add esp, 4
mov ecx, esi
mov ebp, eax
call dword [0x47f934]
mov edi, dword [edi + 0x3c8]
test al, al
sete al
test edi, edi
je 0x40346e
imul ebp, ebp, 0x1602
mov byte [edi + ebp], al
lea ecx, [esp + 0x98]
mov byte [esp + 0x128], 0
call ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], 0xffffffff
call ebx
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004516c6
add esp, 0x118
ret 4
Function at 0x404ea0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x46f868
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4a2a04]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00404350
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404ef6
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.00405b70
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00404350
cmp dword [esp + 0x24], 8
jb 0x404f3f
mov edx, dword [esp + 0x10]
push edx
call fcn.00444c3b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x406a90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406aa9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406ae4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x406ae0
lea ebx, [ebx]
cmp esi, eax
jae 0x406ae4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406ad0
cmp esi, eax
jb 0x406aea
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x408aa0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x408ab0
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x408ac0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x409030
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x4a2a04]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x4090aa
xor eax, eax
cmp ecx, ebp
je 0x409092
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x4090b8
cmp ecx, ebp
je 0x40914b
push ecx
jmp 0x409145
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x40911a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00409030
mov ebx, eax
cmp ebx, ebp
jne 0x409168
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x4090e0
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40912d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.004091e0
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40914b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004516c6
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x409177
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40914d
Function at 0x409cc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x46f8a0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a2a04]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x20], edi
cmp edi, ebx
jne 0x409d3f
call fcn.00408400
mov esi, eax
jmp 0x409e29
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x409d5b
call fcn.00408400
jmp 0x409e20
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x409d74
call fcn.00408400
jmp 0x409e20
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x409da8
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x409d96
lea eax, [ebp]
call fcn.00408b10
lea ecx, [ebp - 0x1c]
call fcn.00408af0
mov eax, 0x8007000e
jmp 0x409e42
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.004083c0
mov dword [ebp - 4], 1
jmp 0x409dd9
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x409de7
mov esi, 0x8007000e
jmp 0x409e22
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x409e05
call fcn.00408400
jmp 0x409e20
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00409b70
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x409e40
lea eax, [ebp]
call fcn.00408b10
lea esp, [esp]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.004516c6
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a170
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46f74d
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4a2a04]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
mov eax, dword [0x4a2a04]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov ecx, edi
mov dword [esp + 0xc], edi
call dword [0x47f8a4]
xor ebx, ebx
mov dword [esp + 0x224], ebx
lea esi, [edi + 0x278]
mov dword [edi], vtable.CUIBindFrame.0
mov dword [edi + 0x10], vtable.CUIBindFrame.1.0
mov dword [edi + 0x20], vtable.CUIBindFrame.2.0
mov dword [edi + 0x24], vtable.CUIBindFrame.3.0
mov dword [edi + 0x28], vtable.CUIBindFrame.4.0
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov word [esi + 4], ax
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + 0x228], 1
push 0x104
mov dword [edi + 0x298], 3
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x10]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40a220
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x14]
call fcn.00404400
mov eax, dword [edi + 0x298]
xor ecx, ecx
mov edx, 0x1602
mul edx
seto cl
mov dword [edi + 0x294], ebx
neg ecx
or ecx, eax
push ecx
call fcn.00444c30
mov ecx, dword [edi + 0x298]
imul ecx, ecx, 0x1602
push ecx
push ebx
push eax
mov dword [edi + 0x294], eax
call fcn.00456530
add esp, 0x10
mov byte [edi + 0x274], bl
mov eax, edi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004516c6
add esp, 0x21c
ret

Function at 0x40a3d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x824
mov eax, dword [0x4a2a04]
xor eax, esp
mov dword [esp + 0x820], eax
push esi
push 0x104
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 4]
push 0x5c
push ecx
call fcn.00451ab5
xor edx, edx
mov word [eax + 2], dx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x426]
push ecx
mov word [esp + 0x428], ax
call fcn.00456530
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x42c]
push str._sConfig.ini
push eax
call fcn.004516d5
add esp, 0x20
lea ecx, [esp + 0x414]
push ecx
push 0x47f67c
push 0x47f680
push str.Setting
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x216]
push eax
mov word [esp + 0x218], dx
call fcn.00456530
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x21c]
push str._sSoftApp.ini
push edx
call fcn.004516d5
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x63e]
push ecx
mov word [esp + 0x640], ax
call fcn.00456530
add esp, 0x24
lea edx, [esp + 0x20c]
push edx
push 0x104
lea eax, [esp + 0x624]
push eax
push 0x47f6ac
push str.BindOfBottomOnFirstUseTime
push str.ControlConf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x61c]
push ecx
call fcn.00451d55
imul eax, eax, 0xea60
mov edx, dword [esi + 4]
add esp, 4
push 0
push eax
push 4
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [esp + 0x824]
pop esi
xor ecx, esp
call fcn.004516c6
add esp, 0x824
ret