joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408207
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x840
mov eax, 0x5a96ce
call fcn.00553ddb
lea ebx, [ecx + 0x110]
mov esi, 0x206
mov eax, dword [ebx]
mov dword [ebx + 4], eax
xor eax, eax
push esi
mov word [ebp - 0x628], ax
xor edi, edi
lea eax, [ebp - 0x626]
push edi
push eax
call fcn.005534a0
xor eax, eax
push esi
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push edi
push eax
call fcn.005534a0
add esp, 0x18
call fcn.004340c6
push eax
lea ecx, [ebp - 0x84c]
call fcn.0040274a
mov dword [ebp - 4], edi
call fcn.004340c6
push eax
lea ecx, [ebp - 0x844]
call fcn.0040274a
push str.Keyboard_LayoutPreload
mov esi, 0x5bf428
lea eax, [ebp - 0x628]
push esi
push eax
mov byte [ebp - 4], 1
call fcn.00554d64
push str.SystemCurrentControlSetControlKeyboard_Layouts_
lea eax, [ebp - 0x830]
push esi
push eax
call fcn.00554d64
add esp, 0x18
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x628]
push eax
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40840d
push 0x206
mov word [ebp - 0x420], ax
xor esi, esi
lea eax, [ebp - 0x41e]
push esi
push eax
call fcn.005534a0
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
mov dword [ebp - 0x838], 1
mov dword [ebp - 0x83c], 0x104
call fcn.005534a0
add esp, 0x18
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x838]
push eax
push esi
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x420]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x4083e7
push 0x10
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00555255
add esp, 0xc
mov dword [ebp - 0x848], eax
lea eax, [ebp - 0x848]
push eax
mov ecx, ebx
call fcn.004265a8
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
inc edi
call fcn.005534a0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x838], 1
mov dword [ebp - 0x83c], 0x104
call fcn.005534a0
add esp, 0x18
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x838]
push eax
push 0
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x420]
push eax
push edi
push dword [ebp - 0x834]
mov dword [ebp - 0x840], 0x104
call esi
test eax, eax
je 0x40834c
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x844]
lea ecx, [ecx - 0x10]
call fcn.004033f4
mov ecx, dword [ebp - 0x84c]
lea ecx, [ecx - 0x10]
call fcn.004033f4
call fcn.00553d8a
ret
Function at 0x40842f
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x240
mov eax, 0x5a9701
call fcn.00553ddb
mov edi, ecx
mov ecx, 0x6328bc
call fcn.00409d1e
lea eax, [ebp - 0x248]
push eax
push 9
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftCTFSortOrderAssemblyItem
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408581
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.005534a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push ebx
push dword [ebp - 0x248]
mov esi, ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408552
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x408538
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00554537
pop ecx
pop ecx
push dword [ebp - 0x24c]
lea eax, [ebp - 0x244]
push eax
mov ecx, edi
call fcn.00407d23
test eax, eax
je 0x408521
lea eax, [ebp - 0x244]
push eax
mov ecx, 0x6328bc
call fcn.00409dc9
push dword [ebp - 0x24c]
call ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.0040204a
push 0x104
lea eax, [ebp - 0x218]
push eax
inc esi
push esi
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4084b0
push dword [ebp - 0x248]
call ebx
mov eax, dword [0x6328c0]
sub eax, dword [0x6328bc]
push 0x2c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x408581
mov dword [edi + 0x5fc], 1
call fcn.00553d8a
ret
Function at 0x408587
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x554
mov eax, dword [0x630f50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x632898]
push ebx
push edi
mov dword [0x63289c], eax
lea eax, [ebp - 0x544]
push eax
push 9
xor edi, edi
push edi
push str.Control_PanelInternationalUser_Profile
push reloc.WSOCK32.dll_accept
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4087b4
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x54c]
push eax
push edi
push edi
push edi
push dword [ebp - 0x544]
mov dword [ebp - 0x54c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x408604
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4087b4
push esi
mov esi, edi
mov dword [ebp - 0x540], 0x208
cmp dword [ebp - 0x54c], esi
jbe 0x408786
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x544]
mov dword [ebp - 0x540], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x548]
push eax
push 0xf003f
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408779
lea eax, [ebp - 0x20c]
push eax
push 0x6327d0
call fcn.00554537
pop ecx
pop ecx
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
jmp 0x408736
lea ecx, [ebp - 0x53c]
call fcn.00406cbe
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x53c]
push eax
mov dword [ebp - 0x554], 4
call fcn.00554537
pop ecx
pop ecx
lea eax, [ebp - 0x550]
push eax
lea eax, [ebp - 0x3ac]
push eax
lea eax, [ebp - 0x554]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x548]
mov dword [ebp - 0x550], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408720
lea eax, [ebp - 0x53c]
push eax
mov ecx, ebx
call fcn.00408b4d
test eax, eax
je 0x408720
lea eax, [ebp - 0x53c]
push eax
mov ecx, 0x632898
call fcn.0040a0a6
inc edi
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x548]
mov dword [ebp - 0x540], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40869b
push dword [ebp - 0x548]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x63289c]
sub eax, dword [0x632898]
mov ecx, 0x330
cdq
idiv ecx
test eax, eax
jne 0x408786
xor edi, edi
inc esi
cmp esi, dword [ebp - 0x54c]
jb 0x40861d
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x63289c]
sub eax, dword [0x632898]
mov ecx, 0x330
cdq
idiv ecx
pop esi
test eax, eax
je 0x4087b4
mov dword [ebx + 0x5f8], 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00553d0c
leave
ret
Function at 0x4087c2
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x630f50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor esi, esi
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x214], ecx
call fcn.005534a0
add esp, 0xc
jmp 0x40885f
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40885e
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebx + 0x64]
push eax
call fcn.00554537
pop ecx
pop ecx
mov ecx, dword [ebp - 0x214]
push ebx
push dword [ebp - 0x210]
call fcn.0040888a
test eax, eax
je 0x408852
push ebx
mov ecx, 0x6328a4
call fcn.00409f49
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x408806
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00553d0c
leave
ret 8

Function at 0x40888a
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x630f50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, 0xc8
push eax
lea esi, [edi + 0xc8]
push 0
push esi
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x210], eax
call fcn.005534a0
push esi
push str.Description
push str.Display_Description
push ebx
call fcn.004077e3
push 0x28
pop eax
push eax
lea esi, [edi + 0x190]
push 0
push esi
mov dword [ebp - 0x210], eax
call fcn.005534a0
add esp, 0x28
lea eax, [ebp - 0x210]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x214]
push eax
push 0
push str.SubstituteLayout
push ebx
call esi
push 4
pop eax
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x210]
push eax
lea eax, [edi + 0x3e4]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push str.IconIndex
push ebx
call esi
mov eax, 0x208
push eax
add edi, 0x1b8
push 0
push edi
mov dword [ebp - 0x210], eax
call fcn.005534a0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push edi
lea eax, [ebp - 0x214]
push eax
push 0
push str.IconFile
push ebx
call esi
test eax, eax
je 0x408981
xor eax, eax
jmp 0x4089a9
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4089a6
lea ecx, [ebp - 0x20c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00553d0c
leave
ret 8
Function at 0x4089ba
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x630f50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x218], ecx
lea ecx, [ebp - 0x210]
push ecx
push 9
xor edi, edi
push edi
push str.LanguageProfile
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408ae1
push ebx
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.005534a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
push dword [ebp - 0x210]
mov ebx, edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x408ad8
lea eax, [esi + 0x3c0]
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.00554537
push 0x10
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00555255
mov ecx, 0xffff
add esp, 0x14
mov word [esi + 0x3de], ax
cmp ax, cx
je 0x408ab0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x408ab0
mov ecx, dword [ebp - 0x218]
push esi
push dword [ebp - 0x214]
call fcn.004087c2
push dword [ebp - 0x214]
call edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
inc ebx
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
lea eax, [esi + 0x3c0]
je 0x408a47
push dword [ebp - 0x210]
call edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00553d0c
leave
ret 8
Function at 0x40a1e9
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 4]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [esi + 0x18], 0
push 0
push 1
mov ecx, esi
call fcn.00402004
pop esi
leave
ret

Function at 0x40c9ac
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x630f50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
mov esi, ecx
call fcn.00553cf3
pop ecx
test eax, eax
jne 0x40c9dd
mov dword [esi], 1
jmp 0x40c9f1
push 0x5bfdec
push edi
call fcn.00553cb5
neg eax
sbb eax, eax
pop ecx
inc eax
pop ecx
mov dword [esi], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.005534a0
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x20c]
push str._sSkinSkin.xml
push eax
call fcn.00554d64
add esp, 0x18
cmp dword [esi], 0
jne 0x40ca40
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ca40
mov dword [esi], 1
cmp dword [esi + 8], 0
jne 0x40caea
cmp dword [esi], 0
je 0x40ca9c
call fcn.00404669
mov edx, dword [eax]
push 0
push 0x57
mov ecx, eax
call dword [edx + 0xc]
call fcn.00404669
mov edx, dword [eax]
push 0
push 0x57
mov ecx, eax
call dword [edx + 0x2c]
call fcn.00404669
mov edx, dword [eax]
push 0x5bfdec
mov edi, 0x9f
push edi
mov ecx, eax
call dword [edx + 8]
call fcn.00404669
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0x14]
call fcn.00404669
push 0x57
jmp 0x40cae3
call fcn.00404669
mov edx, dword [eax]
push 1
push 0x57
mov ecx, eax
call dword [edx + 0xc]
call fcn.00404669
mov edx, dword [eax]
push 1
push 0x57
mov ecx, eax
call dword [edx + 0x2c]
call fcn.00404669
mov edx, dword [eax]
push edi
mov edi, 0x9f
push edi
mov ecx, eax
call dword [edx + 8]
call fcn.00404669
mov edx, dword [eax]
push 0x57
mov ecx, eax
call dword [edx + 0x14]
call fcn.00404669
push edi
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x14]
and dword [esi + 8], 0
mov ecx, esi
call fcn.0040c5da
push ebx
mov ecx, esi
call fcn.0040cba2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00553d0c
leave
ret 8
Function at 0x40e068
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x630f50]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor esi, esi
lea eax, [ebp - 0x20a]
push esi
push eax
mov edi, ecx
call fcn.005534a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov ecx, edi
call fcn.0040e328
test al, al
jne 0x40e0d8
push esi
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00553cf3
pop ecx
test eax, eax
je 0x40e153
push ebx
mov ebx, 0x5bfc6c
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00554508
lea eax, [ebp - 0x20c]
push str.DongFangIME
push eax
call fcn.00554508
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00554508
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
jne 0x40e12b
lea eax, [ebp - 0x20c]
push eax
call fcn.0040fdbc
pop ecx
cmp word [ebp - 0x20c], si
je 0x40e143
lea eax, [ebp - 0x20c]
push eax
call fcn.00553cf3
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi + 0x3c]
call fcn.00402120
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00553d0c
leave
ret

Function at 0x40e161
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x630f50]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor esi, esi
lea eax, [ebp - 0x20a]
push esi
push eax
mov edi, ecx
call fcn.005534a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov ecx, edi
call fcn.0040e328
test al, al
jne 0x40e1d1
push esi
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00553cf3
pop ecx
test eax, eax
je 0x40e24c
push ebx
mov ebx, 0x5bfc6c
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00554508
lea eax, [ebp - 0x20c]
push str.DongFangIME.users
push eax
call fcn.00554508
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00554508
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
jne 0x40e224
lea eax, [ebp - 0x20c]
push eax
call fcn.0040fdbc
pop ecx
cmp word [ebp - 0x20c], si
je 0x40e23c
lea eax, [ebp - 0x20c]
push eax
call fcn.00553cf3
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi + 0x24]
call fcn.00402120
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00553d0c
leave
ret
Function at 0x40e3e9
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x630f50]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call fcn.005534a0
add esi, 0x3c
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40e428
mov esi, dword [esi]
push str.AllSkin
push esi
lea eax, [ebp - 0x20c]
push 0x5bf410
push eax
call fcn.00554d64
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop esi
test eax, eax
jne 0x40e461
lea eax, [ebp - 0x20c]
push eax
call fcn.0040fdbc
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553d0c
leave
ret

Function at 0x40e46d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x630f50]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [esi + 0x3c]
cmp dword [eax + 0x14], 8
jb 0x40e48e
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push 0x5bf410
push eax
call fcn.00554d64
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e4c6
lea eax, [ebp - 0x20c]
push eax
call fcn.0040fdbc
pop ecx
lea eax, [ebp - 0x20c]
push str.Related.ini
push eax
call fcn.00554508
cmp word [ebp - 0x20c], 0
pop ecx
pop ecx
jne 0x40e4e7
xor eax, eax
jmp 0x40e4f4
lea eax, [ebp - 0x20c]
push eax
call fcn.00553cf3
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0xcc]
call fcn.00402120
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00553d0c
leave
ret
Function at 0x40e514
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc38
mov eax, dword [0x630f50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
xor edi, edi
mov word [ebp - 0xc34], ax
lea eax, [ebp - 0xc32]
push edi
push eax
mov ebx, ecx
call fcn.005534a0
xor eax, eax
push esi
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push edi
push eax
call fcn.005534a0
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
call fcn.005534a0
xor eax, eax
push esi
mov word [ebp - 0xa2c], ax
lea eax, [ebp - 0xa2a]
push edi
push eax
call fcn.005534a0
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.005534a0
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.005534a0
add esp, 0x48
lea eax, [ebp - 0xc34]
push edi
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00554537
lea eax, [ebp - 0x414]
push eax
call fcn.00553cf3
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.00554fbb
add esp, 0x14
test eax, eax
je 0x40e751
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.00554537
lea eax, [ebp - 0x824]
push str.Local
push eax
call fcn.00554508
add esp, 0x10
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
inc ecx
test eax, eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
mov esi, edi
push eax
cmovne esi, ecx
call fcn.00554537
lea eax, [ebp - 0x61c]
push str.LocalLow
push eax
call fcn.00554508
add esp, 0x10
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
push 1
pop eax
mov ecx, edi
cmovne ecx, eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xa2c]
push eax
mov dword [ebp - 0xc38], ecx
call fcn.00554537
lea eax, [ebp - 0xa2c]
push str.Roaming
push eax
call fcn.00554508
add esp, 0x10
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
push 1
mov ecx, edi
pop eax
cmovne ecx, eax
test esi, esi
je 0x40e751
cmp dword [ebp - 0xc38], edi
je 0x40e751
test ecx, ecx
je 0x40e751
mov ecx, ebx
call fcn.0040f9b2
test eax, eax
je 0x40e751
push str.DongFangIME
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.00554d64
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e727
lea eax, [ebp - 0x20c]
push eax
call fcn.0040fdbc
pop ecx
cmp word [ebp - 0x20c], di
je 0x40e73f
lea eax, [ebp - 0x20c]
push eax
call fcn.00553cf3
pop ecx
mov edi, eax
push edi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebx + 0x3c]
call fcn.00402120
jmp 0x40e758
mov ecx, ebx
call fcn.0040e068
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00553d0c
leave
ret
Function at 0x40e767
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc38
mov eax, dword [0x630f50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
xor edi, edi
mov word [ebp - 0xc34], ax
lea eax, [ebp - 0xc32]
push edi
push eax
mov ebx, ecx
call fcn.005534a0
xor eax, eax
push esi
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push edi
push eax
call fcn.005534a0
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
call fcn.005534a0
xor eax, eax
push esi
mov word [ebp - 0xa2c], ax
lea eax, [ebp - 0xa2a]
push edi
push eax
call fcn.005534a0
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.005534a0
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.005534a0
add esp, 0x48
lea eax, [ebp - 0xc34]
push edi
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00554537
lea eax, [ebp - 0x414]
push eax
call fcn.00553cf3
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.00554fbb
add esp, 0x14
test eax, eax
je 0x40e9a4
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.00554537
lea eax, [ebp - 0x824]
push str.Local
push eax
call fcn.00554508
add esp, 0x10
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
inc ecx
test eax, eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
mov esi, edi
push eax
cmovne esi, ecx
call fcn.00554537
lea eax, [ebp - 0x61c]
push str.LocalLow
push eax
call fcn.00554508
add esp, 0x10
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
push 1
pop eax
mov ecx, edi
cmovne ecx, eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xa2c]
push eax
mov dword [ebp - 0xc38], ecx
call fcn.00554537
lea eax, [ebp - 0xa2c]
push str.Roaming
push eax
call fcn.00554508
add esp, 0x10
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
push 1
mov ecx, edi
pop eax
cmovne ecx, eax
test esi, esi
je 0x40e9a4
cmp dword [ebp - 0xc38], edi
je 0x40e9a4
test ecx, ecx
je 0x40e9a4
mov ecx, ebx
call fcn.0040f9b2
test eax, eax
je 0x40e9a4
push str.DongFangIME.users
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.00554d64
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e97a
lea eax, [ebp - 0x20c]
push eax
call fcn.0040fdbc
pop ecx
cmp word [ebp - 0x20c], di
je 0x40e992
lea eax, [ebp - 0x20c]
push eax
call fcn.00553cf3
pop ecx
mov edi, eax
push edi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebx + 0x24]
call fcn.00402120
jmp 0x40e9ab
mov ecx, ebx
call fcn.0040e161
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00553d0c
leave
ret