joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4030fb
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x403180
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
mov esi, dword [ebp + 0x14]
je 0x40316b
test si, 0x100
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
ja 0x40315d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 8]
push eax
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and esi, 0x27
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
pop edi
leave
ret 0x10

Function at 0x4033b5
Capabilities:
Create directory

Disassembly:
push 8
mov eax, 0x4591f9
call fcn.0040c5d5
push dword [ebp + 8]
call fcn.0040276c
test eax, eax
pop ecx
je 0x4033d6
xor eax, eax
call fcn.0040c674
ret
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.0040334e
mov edi, dword [ebp - 0x14]
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.004027b2
push 0x5c
push edi
call fcn.0040c697
add esp, 0xc
cmp eax, esi
jne 0x40340c
push 0xf
pop esi
push edi
call fcn.00403004
pop ecx
mov eax, esi
jmp 0x4033d0
push edi
mov word [eax], si
call fcn.004033b5
cmp eax, esi
pop ecx
je 0x40341e
mov esi, eax
jmp 0x403401
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403401
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40341a
jmp 0x403401

Function at 0x403d30
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
test word [ebp + 0xc], 0x100
je 0x403d49
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d250
add esp, 0xc
pop ebp
ret 0xc
Function at 0x403ee5
Capabilities:
Delete file

Disassembly:
push 0x24
mov eax, 0x459375
call fcn.0040c5d5
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, edi
cmp dword [esi + 0x1108], eax
je 0x403f1b
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], 0x3f3
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], edi
jmp 0x404100
cmp dword [esi + 0x10f0], edi
je 0x404100
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1104], eax
mov dword [esi + 0x10f4], edi
mov eax, dword [esi + 0xc]
mov dword [esi + 8], edi
mov word [eax], di
mov eax, dword [esi + 0x14]
mov word [eax], di
lea ecx, [esi + 0x10cc]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [ebp - 0x10], ecx
call fcn.00402834
push dword [ebp + 0xc]
lea ebx, [esi + 0x58]
mov ecx, ebx
mov dword [esi + 0x4c], edi
call fcn.004025de
push ebx
call fcn.00402789
mov dword [esp], 0x45a888
push dword [ebx]
call fcn.00410881
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
lea ecx, [ebp - 0x30]
mov dword [esi + 0x10f8], eax
call fcn.00403330
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.00403330
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004027d3
add esp, 0xc
mov ecx, ebx
call fcn.004024f5
cmp eax, 3
jb 0x4040de
lea ecx, [ebp - 0x30]
call fcn.004024f5
cmp eax, 2
jb 0x4040de
lea ecx, [ebp - 0x18]
call fcn.004024f5
cmp eax, 2
jb 0x4040de
lea ebx, [esi + 0x60]
mov eax, dword [ebx]
lea ecx, [ebp - 0x28]
mov word [eax], di
call fcn.00403313
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00403313
jmp 0x40404a
mov ecx, ebx
call fcn.004024f5
test eax, eax
je 0x404083
push ebx
lea ecx, [ebp - 0x18]
call fcn.004025de
push dword [ebp - 0x20]
call fcn.00403004
push dword [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00403004
mov eax, dword [ebx]
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
mov word [eax], di
call fcn.00403313
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00403313
push dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
push edi
push 0x403dd1
push edi
push dword [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.004024b1
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
call fcn.004024b1
push eax
push dword [esi + 0x10f0]
call dword [esi + 0x1114]
add esp, 0x1c
test eax, eax
jne 0x404007
push dword [ebp - 0x20]
call fcn.00403004
push dword [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00403004
pop ecx
pop ecx
push dword [esi + 8]
mov ecx, esi
call fcn.004036b8
cmp dword [esi + 0x10f4], edi
je 0x4040b9
cmp dword [esi + 8], edi
je 0x4040b9
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x10]
call fcn.0040284c
push dword [ebp - 0x18]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call fcn.00403004
push dword [ebp - 0x30]
call fcn.00403004
pop ecx
pop ecx
mov eax, esi
jmp 0x404102
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x18]
mov dword [eax + 0x18], 0x3ea
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], edi
call fcn.00403004
push dword [ebp - 0x30]
call fcn.00403004
pop ecx
pop ecx
xor eax, eax
call fcn.0040c674
ret 0xc
Function at 0x4041d5
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ebp, ebp
cmp dword [esi + 0x1108], eax
je 0x404203
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], 0x3f3
mov dword [eax + 0x1c], ebp
mov dword [eax + 0x20], ebp
xor eax, eax
jmp 0x40433f
mov eax, dword [0x46b64c]
cmp eax, 0xffffffff
je 0x404227
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebp
je 0x404227
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], 0x3f4
jmp 0x4041f6
push esi
push 1
call fcn.00402fd4
test eax, eax
pop ecx
pop ecx
jne 0x404247
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], ebp
mov dword [eax + 0x1c], 0xe
jmp 0x4041f9
push ebx
lea ebx, [esi + 0x10cc]
mov ecx, ebx
call fcn.00402834
cmp dword [esi + 0x10f0], ebp
jne 0x4042fc
cmp dword [esi + 0x110c], ebp
jne 0x404300
push edi
push str.Cabinet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
mov dword [esi + 0x110c], eax
call edi
push str.FDICopy
push dword [esi + 0x110c]
mov dword [esi + 0x1110], eax
call edi
push str.FDIIsCabinet
push dword [esi + 0x110c]
mov dword [esi + 0x1114], eax
call edi
push str.FDIDestroy
push dword [esi + 0x110c]
mov dword [esi + 0x1118], eax
call edi
cmp dword [esi + 0x1110], ebp
mov dword [esi + 0x111c], eax
pop edi
je 0x4042e9
cmp dword [esi + 0x1114], ebp
je 0x4042e9
cmp dword [esi + 0x1118], ebp
je 0x4042e9
cmp eax, ebp
jne 0x404300
mov dword [esi + 0x110c], ebp
mov dword [ebx + 0x18], 0x3e8
mov dword [ebx + 0x1c], ebp
mov dword [ebx + 0x20], ebp
xor eax, eax
jmp 0x40433e
push ebx
push 1
push 0x403da8
push fcn.00403d87
push 0x4034b1
push 0x403d5e
push 0x4041ab
push fcn.00403004
push fcn.0040bd92
call dword [esi + 0x1110]
xor ecx, ecx
add esp, 0x24
cmp eax, ebp
setne cl
mov dword [esi + 0x10f0], eax
mov eax, ecx
pop ebx
pop esi
pop ebp
ret
Function at 0x405725
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00407ce2
mov dword [esi], eax
call fcn.00407e1b
mov dword [esi + 8], eax
call fcn.00407c58
mov dword [esi + 0xc], eax
call fcn.00407dd1
mov dword [esi + 0x10], eax
call fcn.00407d3d
mov dword [esi + 0x18], eax
call fcn.00407d87
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [esi + 0x1c], eax
mov eax, dword [esi]
mov dword [esi + 4], eax
lea eax, [esi + 0x1c0]
push eax
call edi
lea eax, [esi + 0x1d8]
push eax
call edi
lea eax, [esi + 0x1c8]
push eax
call edi
lea eax, [esi + 0x208]
push eax
call edi
lea eax, [esi + 0x1e8]
push eax
call edi
lea eax, [esi + 0x1f8]
push eax
call edi
mov eax, dword [0x46b434]
pop edi
mov dword [esi + 0x1ac], eax
pop esi
ret

Function at 0x4057a7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x4693ac]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0040cc40
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
jne 0x405802
xor eax, eax
inc eax
cmp dword [ebp - 0x78], 0
je 0x4057fa
cmp dword [ebp - 0x78], eax
jne 0x405802
cmp byte [ebp + 0x9a], al
je 0x405804
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.0040c5c6
add ebp, 0xa0
leave
ret

Function at 0x40590f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4693ac]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x20c], 0
push esi
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
mov esi, ecx
call fcn.0040cc40
add esp, 0xc
cmp dword [esi + 0x58], 8
jb 0x40594e
mov esi, dword [esi + 0x44]
jmp 0x405951
add esi, 0x44
push str.AllSkin
push esi
lea eax, [ebp - 0x20c]
push 0x45abe8
push eax
call fcn.0040c70d
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop esi
jne 0x40598a
lea eax, [ebp - 0x20c]
push eax
call fcn.004072fb
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c5c6
leave
ret
Function at 0x405996
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x4693ac]
xor eax, ebp
mov dword [ebp + 0x188], eax
and word [ebp - 0x80], 0
push ebx
push esi
push edi
push 0x206
lea eax, [ebp - 0x7e]
push 0
push eax
mov esi, ecx
call fcn.0040cc40
add esp, 0xc
cmp dword [esi + 0x3c], 8
jb 0x4059d9
mov eax, dword [esi + 0x28]
jmp 0x4059dc
lea eax, [esi + 0x28]
push 0x45ac00
push eax
mov ebx, 0x45abe8
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.0040c70d
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
call edi
test eax, eax
jne 0x405a0f
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x3c], 8
jb 0x405a1a
mov esi, dword [esi + 0x28]
jmp 0x405a1d
add esi, 0x28
push str.Dict
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.0040c70d
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
call edi
test eax, eax
pop edi
pop esi
pop ebx
jne 0x405a48
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp + 0x188]
xor ecx, ebp
call fcn.0040c5c6
add ebp, 0x18c
leave
ret

Function at 0x405a90
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5a0]
sub esp, 0x620
mov eax, dword [0x4693ac]
xor eax, ebp
mov dword [ebp + 0x59c], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [ebp + 0x396]
push ebx
push eax
mov esi, ecx
mov word [ebp + 0x394], bx
call fcn.0040cc40
lea eax, [ebp + 0x394]
push str.SOFTWARE_
push eax
call fcn.0040c6f1
lea eax, [ebp + 0x394]
push str.DongFangInput
push eax
call fcn.0040c6c7
add esp, 0x1c
cmp dword [esi + 0x58], 8
jb 0x405afa
mov eax, dword [esi + 0x44]
jmp 0x405afd
lea eax, [esi + 0x44]
push eax
lea eax, [ebp + 0x18c]
push eax
call fcn.0040c6f1
cmp dword [esi + 0x3c], 8
pop ecx
pop ecx
jb 0x405b17
mov esi, dword [esi + 0x28]
jmp 0x405b1a
add esi, 0x28
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.0040c6f1
pop ecx
pop ecx
lea eax, [ebp - 0x80]
push eax
push 2
push ebx
lea eax, [ebp + 0x394]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405b77
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov edi, 0x104
push edi
lea eax, [ebp + 0x18c]
push eax
push 1
push ebx
push str.CfgRootPath
push dword [ebp - 0x80]
call esi
push edi
lea eax, [ebp - 0x7c]
push eax
push 1
push ebx
push str.CfgUserPath
push dword [ebp - 0x80]
call esi
pop edi
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x59c]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c5c6
add ebp, 0x5a0
leave
ret
Function at 0x406404
Capabilities:
Check if file exists

Disassembly:
push esi
push 0xffffffffffffffff
lea esi, [ecx + 0x78]
add ecx, 0x40
push 0
push ecx
mov ecx, esi
call fcn.00401435
push str.Skin_
mov ecx, esi
call fcn.004015db
cmp dword [esi + 0x18], 8
jb 0x40642e
mov eax, dword [esi + 4]
jmp 0x406431
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406451
cmp dword [esi + 0x18], 8
jb 0x406447
mov esi, dword [esi + 4]
jmp 0x40644a
add esi, 4
push esi
call fcn.004072fb
pop ecx
pop esi
ret

Function at 0x406453
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4693ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x58], 8
jb 0x406474
mov eax, dword [esi + 0x44]
jmp 0x406477
lea eax, [esi + 0x44]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push 0x45abe8
push eax
call fcn.0040c70d
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4064af
lea eax, [ebp - 0x20c]
push eax
call fcn.004072fb
pop ecx
lea eax, [ebp - 0x20c]
push str.Config.ini
push eax
call fcn.0040c6c7
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x5c]
call fcn.004015f8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040c5c6
leave
ret

Function at 0x4064de
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4693ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x58], 8
jb 0x4064ff
mov eax, dword [esi + 0x44]
jmp 0x406502
lea eax, [esi + 0x44]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push 0x45abe8
push eax
call fcn.0040c70d
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40653a
lea eax, [ebp - 0x20c]
push eax
call fcn.004072fb
pop ecx
lea eax, [ebp - 0x20c]
push str.Related.ini
push eax
call fcn.0040c6c7
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0xe8]
call fcn.004015f8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040c5c6
leave
ret

Function at 0x406630
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4693ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x58], 8
jb 0x406651
mov eax, dword [esi + 0x44]
jmp 0x406654
lea eax, [esi + 0x44]
push str.UseData
push eax
lea eax, [ebp - 0x20c]
push 0x45abe8
push eax
call fcn.0040c70d
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40668c
lea eax, [ebp - 0x20c]
push eax
call fcn.004072fb
pop ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x174]
call fcn.004015f8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040c5c6
leave
ret
Function at 0x406b8b
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x3b8]
sub esp, 0x438
mov eax, dword [0x4693ac]
xor eax, ebp
mov dword [ebp + 0x3b4], eax
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp + 0x1ae]
push esi
push eax
mov edi, ecx
mov word [ebp + 0x1ac], si
call fcn.0040cc40
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x228
mov ebx, eax
lea eax, [ebp - 0x7c]
push esi
push eax
mov dword [ebp - 0x80], esi
call fcn.0040cc40
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x406c4f
lea eax, [ebp - 0x80]
push eax
push esi
mov dword [ebp - 0x80], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x406c17
cmp dword [ebp - 0x78], ebx
je 0x406c1d
lea eax, [ebp - 0x80]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406c08
jmp 0x406c2f
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x1ac]
push eax
call fcn.0040c6f1
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x1ac]
push eax
call fcn.0040ebc3
pop ecx
push eax
lea ecx, [edi + 0x190]
call fcn.004015f8
mov ecx, dword [ebp + 0x3b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c5c6
add ebp, 0x3b8
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x4693ac]
xor eax, ebp
mov dword [ebp + 0x188], eax
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x7e]
push esi
push eax
mov edi, ecx
mov word [ebp - 0x80], si
call fcn.0040cc40
add esp, 0xc
push 0x104
lea eax, [ebp - 0x80]
push eax
mov ecx, edi
call fcn.004058df
test al, al
jne 0x406cce
push esi
push 0x1a
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x80]
push eax
call fcn.0040bfc4
test eax, eax
pop ecx
je 0x406d1c
mov esi, 0x45a5e4
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040c6c7
lea eax, [ebp - 0x80]
push str.DongFangIME
push eax
call fcn.0040c6c7
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040c6c7
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406d10
lea eax, [ebp - 0x80]
push eax
call fcn.004072fb
pop ecx
lea eax, [ebp - 0x80]
push eax
lea ecx, [edi + 0x40]
call fcn.004015f8
mov ecx, dword [ebp + 0x188]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c5c6
add ebp, 0x18c
leave
ret
Function at 0x406d33
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x4693ac]
xor eax, ebp
mov dword [ebp + 0x188], eax
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x7e]
push esi
push eax
mov edi, ecx
mov word [ebp - 0x80], si
call fcn.0040cc40
add esp, 0xc
push 0x104
lea eax, [ebp - 0x80]
push eax
mov ecx, edi
call fcn.004058df
test al, al
jne 0x406d9a
push esi
push 0x1a
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x80]
push eax
call fcn.0040bfc4
test eax, eax
pop ecx
je 0x406de8
mov esi, 0x45a5e4
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040c6c7
lea eax, [ebp - 0x80]
push str.DongFangIME.users
push eax
call fcn.0040c6c7
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040c6c7
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406ddc
lea eax, [ebp - 0x80]
push eax
call fcn.004072fb
pop ecx
lea eax, [ebp - 0x80]
push eax
lea ecx, [edi + 0x24]
call fcn.004015f8
mov ecx, dword [ebp + 0x188]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c5c6
add ebp, 0x18c
leave
ret
Function at 0x406dff
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xbc0]
sub esp, 0xc40
mov eax, dword [0x4693ac]
xor eax, ebp
mov dword [ebp + 0xbbc], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x206
push esi
lea eax, [ebp - 0x72]
push edi
push eax
mov dword [ebp - 0x78], ecx
xor ebx, ebx
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edi
mov word [ebp - 0x74], di
call fcn.0040cc40
push esi
lea eax, [ebp + 0x39e]
push edi
push eax
mov word [ebp + 0x39c], di
call fcn.0040cc40
push esi
lea eax, [ebp + 0x7ae]
push edi
push eax
mov word [ebp + 0x7ac], di
call fcn.0040cc40
push esi
lea eax, [ebp + 0x196]
push edi
push eax
mov word [ebp + 0x194], di
call fcn.0040cc40
push esi
lea eax, [ebp + 0x9b6]
push edi
push eax
mov word [ebp + 0x9b4], di
call fcn.0040cc40
push esi
lea eax, [ebp + 0x5a6]
push edi
push eax
mov word [ebp + 0x5a4], di
call fcn.0040cc40
add esp, 0x48
push edi
push 0x1a
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x9b4]
push eax
call fcn.0040c6f1
lea eax, [ebp + 0x9b4]
push eax
call fcn.0040bfc4
lea eax, [ebp + 0x9b4]
push 0x5c
push eax
call fcn.0040c697
add esp, 0x14
cmp eax, edi
je 0x407008
mov word [eax], di
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x39c]
push eax
call fcn.0040c6f1
lea eax, [ebp + 0x39c]
push str.Local
push eax
call fcn.0040c6c7
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x39c]
push eax
call esi
test eax, eax
je 0x406f2b
inc ebx
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x7ac]
push eax
call fcn.0040c6f1
lea eax, [ebp + 0x7ac]
push str.LocalLow
push eax
call fcn.0040c6c7
add esp, 0x10
lea eax, [ebp + 0x7ac]
push eax
call esi
test eax, eax
je 0x406f66
mov dword [ebp - 0x80], 1
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x194]
push eax
call fcn.0040c6f1
lea eax, [ebp + 0x194]
push str.Roaming
push eax
call fcn.0040c6c7
add esp, 0x10
lea eax, [ebp + 0x194]
push eax
call esi
test eax, eax
je 0x406fa1
mov dword [ebp - 0x7c], 1
cmp ebx, edi
je 0x407008
cmp dword [ebp - 0x80], edi
je 0x407008
cmp dword [ebp - 0x7c], edi
je 0x407008
mov edi, dword [ebp - 0x78]
mov ecx, edi
call fcn.004057a7
test eax, eax
je 0x407008
push str.DongFangIME
lea eax, [ebp + 0x7ac]
push eax
lea eax, [ebp + 0x5a4]
push str._s_s_
push eax
call fcn.0040c70d
add esp, 0x10
lea eax, [ebp + 0x5a4]
push eax
call esi
test eax, eax
jne 0x406ff7
lea eax, [ebp + 0x5a4]
push eax
call fcn.004072fb
pop ecx
lea eax, [ebp + 0x5a4]
push eax
lea ecx, [edi + 0x40]
call fcn.004015f8
jmp 0x407010
mov ecx, dword [ebp - 0x78]
call fcn.00406c67
mov ecx, dword [ebp + 0xbbc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c5c6
add ebp, 0xbc0
leave
ret
Function at 0x407028
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xbc0]
sub esp, 0xc40
mov eax, dword [0x4693ac]
xor eax, ebp
mov dword [ebp + 0xbbc], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x206
push esi
lea eax, [ebp - 0x72]
push edi
push eax
mov dword [ebp - 0x78], ecx
xor ebx, ebx
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edi
mov word [ebp - 0x74], di
call fcn.0040cc40
push esi
lea eax, [ebp + 0x39e]
push edi
push eax
mov word [ebp + 0x39c], di
call fcn.0040cc40
push esi
lea eax, [ebp + 0x7ae]
push edi
push eax
mov word [ebp + 0x7ac], di
call fcn.0040cc40
push esi
lea eax, [ebp + 0x196]
push edi
push eax
mov word [ebp + 0x194], di
call fcn.0040cc40
push esi
lea eax, [ebp + 0x9b6]
push edi
push eax
mov word [ebp + 0x9b4], di
call fcn.0040cc40
push esi
lea eax, [ebp + 0x5a6]
push edi
push eax
mov word [ebp + 0x5a4], di
call fcn.0040cc40
add esp, 0x48
push edi
push 0x1a
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x9b4]
push eax
call fcn.0040c6f1
lea eax, [ebp + 0x9b4]
push eax
call fcn.0040bfc4
lea eax, [ebp + 0x9b4]
push 0x5c
push eax
call fcn.0040c697
add esp, 0x14
cmp eax, edi
je 0x407231
mov word [eax], di
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x39c]
push eax
call fcn.0040c6f1
lea eax, [ebp + 0x39c]
push str.Local
push eax
call fcn.0040c6c7
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x39c]
push eax
call esi
test eax, eax
je 0x407154
inc ebx
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x7ac]
push eax
call fcn.0040c6f1
lea eax, [ebp + 0x7ac]
push str.LocalLow
push eax
call fcn.0040c6c7
add esp, 0x10
lea eax, [ebp + 0x7ac]
push eax
call esi
test eax, eax
je 0x40718f
mov dword [ebp - 0x80], 1
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x194]
push eax
call fcn.0040c6f1
lea eax, [ebp + 0x194]
push str.Roaming
push eax
call fcn.0040c6c7
add esp, 0x10
lea eax, [ebp + 0x194]
push eax
call esi
test eax, eax
je 0x4071ca
mov dword [ebp - 0x7c], 1
cmp ebx, edi
je 0x407231
cmp dword [ebp - 0x80], edi
je 0x407231
cmp dword [ebp - 0x7c], edi
je 0x407231
mov edi, dword [ebp - 0x78]
mov ecx, edi
call fcn.004057a7
test eax, eax
je 0x407231
push str.DongFangIME.users
lea eax, [ebp + 0x7ac]
push eax
lea eax, [ebp + 0x5a4]
push str._s_s_
push eax
call fcn.0040c70d
add esp, 0x10
lea eax, [ebp + 0x5a4]
push eax
call esi
test eax, eax
jne 0x407220
lea eax, [ebp + 0x5a4]
push eax
call fcn.004072fb
pop ecx
lea eax, [ebp + 0x5a4]
push eax
lea ecx, [edi + 0x24]
call fcn.004015f8
jmp 0x407239
mov ecx, dword [ebp - 0x78]
call fcn.00406d33
mov ecx, dword [ebp + 0xbbc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c5c6
add ebp, 0xbc0
leave
ret