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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x208
test eax, eax
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__snwprintf]
push esi
push edi
mov edx, ecx
jne 0x40a4f0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
add edx, 0x26c
push str.LoginEnrolLoginEnrol.dll
stosw word es:[edi], ax
push edx
push 0x528910
lea eax, [esp + 0x1c]
push 0x103
push eax
call ebp
add esp, 0x14
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, 0x559928
call fcn.0040ac90
test eax, eax
je 0x40a4f0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40a4f0
push str.GetProfilePath
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a4e9
mov ecx, dword [esp + 0x224]
dec ecx
push ecx
push ebx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp word [ebx], 0
jne 0x40a53d
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x1a
push 0
stosw word es:[edi], ax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, dword [esp + 0x224]
lea eax, [esp + 0x10]
push str.360SE
push eax
dec ecx
push 0x5288e4
push ecx
push ebx
call ebp
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 0xc
Function at 0x40a910
Capabilities:
Delete directory

Disassembly:
sub esp, 0x41c
push esi
mov esi, ecx
mov eax, dword [esi + 0x60]
test eax, eax
je 0x40a97f
mov ecx, dword [esi + 0x5c]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x29
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x3c]
test eax, eax
mov dword [esp + 0xc], ecx
jne 0x40a959
push str.PhoenixStudioTaiHang_Process_Message
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 1
push eax
mov dword [esi + 0x3c], eax
call fcn.004b9660
add esp, 8
mov esi, dword [esi + 0x3c]
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [0x5d7584]
push esi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
add esp, 0x41c
ret 8
mov eax, dword [esp + 0x428]
test eax, eax
je 0x40a995
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [esp + 0x42c]
push 0
lea ecx, [esp + 0x1c]
push 0x103
push ecx
push edi
mov ecx, esi
call fcn.0040a810
lea edx, [esp + 0x18]
push 1
push edx
call fcn.0043bc30
push 0
push 0
lea eax, [esp + 0x28]
push 0
push eax
call fcn.004b8340
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 0x18
cmp edi, 0xffffffff
je 0x40aa1a
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x18]
push eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
push 0x103
push ecx
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040a810
lea edx, [esp + 0x18]
push edx
call ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x222]
mov word [esp + 0x220], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea eax, [esp + 0x224]
push 0x103
push eax
mov ecx, esi
call fcn.0040a790
lea ecx, [esp + 0x220]
push ecx
call ebx
pop edi
pop ebx
pop esi
add esp, 0x41c
ret 8

Function at 0x40aa70
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x60277c]
sub esp, 0x208
test eax, eax
je 0x40aab4
push 0
push 0x5289ec
call fcn.0040a550
mov ecx, dword [esp + 0x20c]
push eax
mov eax, dword [esp + 0x214]
push 0x528430
dec eax
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
add esp, 0x208
ret 8
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
push edx
push 0x103
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x214]
mov edx, dword [esp + 0x210]
lea eax, [esp + 4]
push 0x5289ec
push eax
dec ecx
push 0x528910
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
pop edi
add esp, 0x208
ret 8
Function at 0x40ac90
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x208
push eax
call fcn.004a7c20
add esp, 4
test eax, eax
jne 0x40ad59
mov eax, dword [esp + 0x210]
test eax, eax
je 0x40ad4e
push esi
push edi
call fcn.00443aa0
mov eax, dword [eax + 0x298]
test eax, eax
je 0x40acd2
mov esi, dword [eax + 0x28]
test esi, esi
jne 0x40acda
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov edx, dword [0x5dc940]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push 0x103
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
push 0xc389
push edx
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x40044
push 0xc38b
call fcn.00496ed0
add esp, 4
push eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
cmp eax, 6
pop esi
jne 0x40ad3f
push str.http:__se.360.cn
call fcn.0044d0a0
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
add esp, 0x208
ret 8
mov eax, 1
add esp, 0x208
ret 8
Function at 0x40b790
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x824
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x426]
mov word [esp + 0x424], bx
rep stosd dword es:[edi], eax
push 0x559d9c
mov dword [esp + 0x14], ebx
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
sub eax, 4
push eax
lea eax, [esp + 0x42c]
push 0x559d9c
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
push 5
lea ecx, [esp + 0x438]
push str..ini
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncat]
add esp, 0x1c
lea edx, [esp + 0x21c]
mov ecx, esi
push 0x103
push edx
push 1
call fcn.0040a450
mov ebp, dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [esp + 0x424]
lea ecx, [esp + 0x21c]
push eax
push ecx
push 0x528910
lea edx, [esp + 0x20]
push 0x103
push edx
call ebp
add esp, 0x14
mov ecx, esi
call fcn.00408fc0
test eax, eax
je 0x40b884
lea ecx, [esp + 0x10]
push ecx
push 0x528bd8
push eax
call fcn.0044c140
add esp, 0xc
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40b8e4
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x62e]
mov word [esp + 0x62c], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x21c]
push str.ie6_mode
stosw word es:[edi], ax
push edx
push 0x528910
lea eax, [esp + 0x638]
push 0x103
push eax
call ebp
lea ecx, [esp + 0x640]
push 0
push ecx
call fcn.0043bab0
add esp, 0x1c
test eax, eax
je 0x40b8e4
mov ebx, 1
mov eax, ebx
sub eax, 0
je 0x40b948
dec eax
jne 0x40b948
mov eax, dword [esp + 0x83c]
mov edi, dword [esp + 0x838]
lea edx, [esp + 0x21c]
push str.360seie6.ini
push edx
dec eax
push 0x528910
push eax
push edi
call ebp
add esp, 0x14
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b968
push 1
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.0043c740
add esp, 0xc
mov ecx, esi
push edi
call fcn.0040b6b0
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x824
ret 8
mov eax, dword [esp + 0x83c]
mov ecx, dword [esp + 0x838]
lea edx, [esp + 0x14]
dec eax
push edx
push 0x528430
push eax
push ecx
call ebp
add esp, 0x10
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x824
ret 8
Function at 0x40bb60
Capabilities:
Delete file

Disassembly:
sub esp, 0x400
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
mov ecx, 0x559928
stosw word es:[edi], ax
call fcn.0040a420
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
push eax
push str._sdataFavouriteBar.dat
lea eax, [esp + 0x10]
push 0x1ff
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0x10
lea ecx, [esp + 8]
push ecx
call edi
mov ecx, 0x559928
call fcn.0040a420
push eax
push str._sdatapluginbar.dat
lea edx, [esp + 0x10]
push 0x1ff
push edx
call esi
add esp, 0x10
lea eax, [esp + 8]
push eax
call edi
mov ecx, 0x559928
call fcn.0040a420
push eax
push str._sdataStatusBar.dat
lea ecx, [esp + 0x10]
push 0x1ff
push ecx
call esi
add esp, 0x10
lea edx, [esp + 8]
push edx
call edi
pop edi
pop esi
add esp, 0x400
ret

Function at 0x40be20
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x424
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
mov word [esp + 0x220], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x222]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x220]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.GuardConfig.ini
lea ecx, [esp + 0x224]
push str.360SE
push ecx
push str._s_sdata_s
lea edx, [esp + 0x28]
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [esp + 0x30]
push 0
push eax
call fcn.0043bab0
add esp, 0x20
test eax, eax
pop edi
je 0x40bed1
lea ecx, [esp + 0x14]
push ecx
push 0
push str.Debug
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x40bed1
mov eax, 1
add esp, 0x424
ret
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xe]
and eax, 0xffff
and ecx, 0xffff
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*8]
push edx
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x64
idiv ecx
xor eax, eax
cmp edx, 5
setl al
add esp, 0x424
ret
Function at 0x40c090
Capabilities:
Read .ini file

Disassembly:
mov al, byte [esp + 4]
sub esp, 0x618
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__snwprintf]
cmp al, bl
push edi
je 0x40c1c2
push ebx
mov ecx, 0x559928
call fcn.0040a360
push eax
push 0x55dac4
call fcn.00491690
mov edx, dword [0x55dac4]
add esp, 0xc
cmp edx, ebx
je 0x40c125
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push 0x103
push eax
push str.auto_login
push 0x52861c
push edx
call fcn.00491ed0
add esp, 0x14
test eax, eax
je 0x40c125
lea ecx, [esp + 0xc]
push 0x528bd4
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x40c26e
jmp 0x40c1c2
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], bx
rep stosd dword es:[edi], eax
push esi
lea edx, [esp + 0x10]
push 0x103
push edx
push 1
mov ecx, 0x559928
stosw word es:[edi], ax
call fcn.0040a450
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x422]
mov word [esp + 0x420], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push str.login.ini
push eax
push 0x528910
lea ecx, [esp + 0x42c]
push 0x103
push ecx
call ebp
add esp, 0x14
lea edx, [esp + 0x420]
push edx
push ebx
push str.IsAuto
push str.NowLogin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
push esi
push str.auto_login
push 0x52861c
call fcn.0040cae0
add esp, 0xc
cmp esi, ebx
pop esi
je 0x40c26e
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x216]
mov word [esp + 0x214], bx
rep stosd dword es:[edi], eax
push str.FavoritesFavorites.dll
push 0x559b94
stosw word es:[edi], ax
push 0x528910
lea eax, [esp + 0x220]
push 0x103
push eax
call ebp
add esp, 0x14
lea ecx, [esp + 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
mov dword [0x55dac0], eax
jne 0x40c249
lea edx, [esp + 0x214]
push ebx
push edx
mov ecx, 0x559928
call fcn.0040ac90
test eax, eax
je 0x40c240
lea eax, [esp + 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x55dac0], eax
jmp 0x40c245
mov eax, dword [0x55dac0]
cmp eax, ebx
je 0x40c26e
mov ecx, dword [0x55dac8]
cmp ecx, ebx
jne 0x40c26b
push str.InitSettinsProfileHandle
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
cmp ecx, ebx
mov dword [0x55dac8], ecx
je 0x40c26e
push ebx
call ecx
pop edi
pop ebp
pop ebx
add esp, 0x618
ret
Function at 0x40c4e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x9298
call fcn.0050c9c0
push esi
push edi
mov ecx, 0x186c
xor eax, eax
lea edi, [ebp - 0x9296]
mov word [ebp - 0x9298], 0
rep stosd dword es:[edi], eax
mov ecx, 0xc36
lea edi, [ebp - 0x30e3]
mov byte [ebp - 0x30e4], al
lea edx, [ebp - 4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 0x9298]
push eax
push ecx
push edx
push str.homepage
push str.Software360360se3
push SysReAllocStringLen
mov dword [ebp - 8], 0x30d8
mov dword [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40c616
cmp word [ebp - 0x9298], ax
je 0x40c616
lea eax, [ebp - 0x9298]
test eax, eax
jne 0x40c56f
xor esi, esi
jmp 0x40c5aa
lea ecx, [ebp - 0x9298]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0050c9c0
mov esi, esp
push 0
push 0
push edi
push esi
lea edx, [ebp - 0x9298]
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x30e4]
push esi
push eax
call fcn.0047cd50
lea ecx, [ebp - 0x30e4]
add esp, 8
test ecx, ecx
jne 0x40c5c8
xor edi, edi
jmp 0x40c601
lea edx, [ebp - 0x30e4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0050c9c0
mov edi, esp
push esi
push edi
lea eax, [ebp - 0x30e4]
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
dec ecx
push edi
push ecx
push esi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0xc
jmp 0x40c619
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x40c633
mov edx, dword [ebp + 0xc]
push str.se:blank
dec edx
push edx
push esi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0xc
lea esp, [ebp - 0x92a0]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c650
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
lea edi, [eax + eax + 1]
mov dword [ebp - 4], eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 8
xor eax, eax
test ebx, ebx
mov dword [ebp - 8], eax
je 0x40c74a
mov ecx, edi
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test esi, esi
rep stosb byte es:[edi], al
jne 0x40c69c
xor edi, edi
jmp 0x40c6cf
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp + 8], eax
add eax, 3
and al, 0xfc
call fcn.0050c9c0
mov eax, dword [ebp + 8]
mov edi, esp
push 0
push 0
push eax
push edi
push 0xffffffffffffffff
push esi
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 4]
push ecx
push edi
push ebx
call fcn.0047cc70
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0050c9c0
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test edi, edi
je 0x40c73c
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
shl eax, 1
push eax
push edi
push 1
push str.homepage
push str.Software360360se3
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
mov esi, 1
je 0x40c73f
mov esi, dword [ebp - 8]
push ebx
call fcn.0050c98e
add esp, 4
mov eax, esi
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c7a0
Capabilities:
Read .ini file

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
mov dword [esp + 4], 0
jne 0x40c7b7
mov ebp, str.Main
mov eax, dword [0x55dac0]
test eax, eax
jne 0x40c7e7
mov eax, dword [esp + 0x10]
push eax
push ebp
call fcn.0040c760
add esp, 8
test eax, eax
je 0x40c7e7
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.0040c4e0
add esp, 8
pop ebp
pop ecx
ret
push ebx
push esi
mov esi, dword [esp + 0x20]
push edi
lea edi, [esi + esi + 2]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40c8ff
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x24], 0
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [0x55dac0]
test ecx, ecx
je 0x40c864
mov eax, dword [0x55dadc]
test eax, eax
jne 0x40c849
push str.GetAppValue
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x55dadc], eax
je 0x40c85c
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push esi
push ebx
push edx
push ebp
call eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40c8aa
mov eax, dword [0x55dac4]
test eax, eax
je 0x40c880
mov ecx, dword [esp + 0x1c]
push esi
push ebx
push ecx
push ebp
push eax
call fcn.00491ed0
add esp, 0x14
jmp 0x40c8a6
mov ecx, 0x559928
call fcn.0040a360
mov edx, dword [esp + 0x1c]
push eax
push esi
push ebx
push 0x559900
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40c8f6
test esi, esi
je 0x40c8f6
cmp esi, 0x7fffffff
ja 0x40c8f6
mov eax, dword [esp + 0x20]
mov edi, SysReAllocString
mov edx, esi
sub edi, esi
mov esi, ebx
sub esi, eax
lea ecx, [edi + edx]
test ecx, ecx
je 0x40c8ea
mov cx, word [esi + eax]
test cx, cx
je 0x40c8ea
mov word [eax], cx
add eax, 2
dec edx
jne 0x40c8cf
jmp 0x40c8ee
test edx, edx
jne 0x40c8f1
sub eax, 2
mov word [eax], 0
push ebx
call fcn.0050c98e
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x40c9c0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x20c
test eax, eax
je 0x40cacb
push ebx
mov ebx, dword [esp + 0x214]
push esi
push edi
test ebx, ebx
jne 0x40c9e5
mov ebx, str.Main
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x55dac0]
xor esi, esi
stosw word es:[edi], ax
mov edi, dword [esp + 0x220]
mov dword [esp + 0xc], esi
test ecx, ecx
je 0x40ca4d
mov eax, dword [0x55dae4]
test eax, eax
jne 0x40ca30
push str.GetAppValue
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x55dae4], eax
je 0x40ca45
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push 0x103
push edx
push edi
push ebx
call eax
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40ca99
mov eax, dword [0x55dac4]
test eax, eax
je 0x40ca6f
lea ecx, [esp + 0x10]
push 0x103
push ecx
push edi
push ebx
push eax
call fcn.00491ed0
add esp, 0x14
mov esi, eax
jmp 0x40ca99
mov ecx, 0x559928
call fcn.0040a360
push eax
lea edx, [esp + 0x14]
push 0x103
push edx
push 0x559900
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
neg esi
pop edi
test esi, esi
pop esi
pop ebx
je 0x40cacb
cmp word [esp + 4], 0
je 0x40cacb
lea edx, [esp + 4]
push edx
call dword [sym.imp.MSVCRT.dll__wtoi]
mov ecx, dword [esp + 0x21c]
add esp, 4
mov dword [ecx], eax
mov eax, 1
add esp, 0x20c
ret
xor eax, eax
add esp, 0x20c
ret

Function at 0x40cbb0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x20004
call fcn.0050c9c0
mov ecx, dword [0x55dac0]
push ebx
xor ebx, ebx
push esi
mov esi, dword [esp + 0x20010]
push edi
test ecx, ecx
mov dword [esp + 0xc], ebx
je 0x40cc04
mov eax, dword [0x55daec]
test eax, eax
jne 0x40cbf2
push str.GetAppValueCount
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x55daec], eax
je 0x40cbfc
lea ecx, [esp + 0xc]
push ecx
push esi
call eax
mov ebx, eax
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40cc7f
mov eax, dword [0x55dac4]
test eax, eax
je 0x40cc21
push esi
push eax
call fcn.00492ad0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x20004
ret
mov ecx, 0x7fff
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov ecx, 0x559928
stosw word es:[edi], ax
call fcn.0040a360
push eax
lea edx, [esp + 0x14]
push 0x10000
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
jbe 0x40cc7f
cmp word [esp + 0x10], 0
lea esi, [esp + 0x10]
je 0x40cc7f
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
inc ebx
lea esi, [esi + eax*2 + 2]
cmp ebx, 0xbb8
jge 0x40cc7f
cmp word [esi], 0
jne 0x40cc69
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x20004
ret
Function at 0x40ccd0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x20004
call fcn.0050c9c0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20014]
test esi, esi
push edi
jne 0x40ccee
mov esi, str.Main
mov ebp, dword [esp + 0x2002c]
mov ebx, 1
test ebp, ebp
je 0x40cee6
mov edi, dword [esp + 0x20030]
test edi, edi
je 0x40cee6
cmp dword [edi], 0
jbe 0x40cee6
mov eax, dword [esp + 0x20028]
mov dword [esp + 0x10], 0
mov dword [eax], ebx
mov ecx, dword [0x55dac0]
test ecx, ecx
je 0x40cd88
mov eax, dword [0x55daf0]
test eax, eax
jne 0x40cd53
push str.EnumAppValue
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x55daf0], eax
je 0x40cd7c
mov edx, dword [esp + 0x20024]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x20024]
push edi
push ebp
push edx
mov edx, dword [esp + 0x2002c]
push ecx
push edx
push esi
call eax
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40ced9
mov ecx, 0x7fff
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x559928
xor edi, edi
call fcn.0040a360
push eax
lea eax, [esp + 0x18]
push 0x10000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
jbe 0x40ced9
cmp word [esp + 0x14], di
lea esi, [esp + 0x14]
je 0x40ced9
mov ebp, dword [sym.imp.MSVCRT.dll_wcschr]
push 0x3d
push esi
call ebp
add esp, 8
test eax, eax
je 0x40cdfa
mov ecx, dword [esp + 0x2001c]
mov word [eax], 0
cmp edi, ecx
je 0x40ce25
mov word [eax], 0x3d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc edi
lea esi, [esi + eax*2 + 2]
cmp edi, 0xbb8
jae 0x40ced9
cmp word [esi], 0
jne 0x40cdd9
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x20004
ret
mov ecx, dword [esp + 0x20024]
mov edx, dword [ecx]
test edx, edx
je 0x40ce73
cmp edx, 0x7fffffff
ja 0x40ce73
mov ecx, dword [esp + 0x20020]
mov ebx, SysReAllocString
sub ebx, edx
mov edi, edx
sub esi, ecx
lea edx, [ebx + edi]
test edx, edx
je 0x40ce67
mov dx, word [esi + ecx]
test dx, dx
je 0x40ce67
mov word [ecx], dx
add ecx, 2
dec edi
jne 0x40ce4c
jmp 0x40ce6b
test edi, edi
jne 0x40ce6e
sub ecx, 2
mov word [ecx], 0
mov ecx, dword [esp + 0x20030]
mov edx, dword [ecx]
shr edx, 1
je 0x40ced7
cmp edx, 0x7fffffff
ja 0x40ced7
mov ecx, dword [esp + 0x2002c]
mov esi, SysReAllocString
sub esi, edx
sub eax, ecx
lea edi, [eax + 2]
lea eax, [esi + edx]
test eax, eax
je 0x40cecb
mov ax, word [edi + ecx]
test ax, ax
je 0x40cecb
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x40ce9b
sub ecx, 2
xor ebx, ebx
pop edi
pop esi
mov eax, ebx
pop ebp
mov word [ecx], 0
pop ebx
add esp, 0x20004
ret
test edx, edx
jne 0x40ced2
sub ecx, 2
mov word [ecx], 0
xor ebx, ebx
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x20004
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20004
ret