joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000627b
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xb94]
sub esp, 0xc14
mov eax, dword [0x100235a0]
xor eax, ebp
mov dword [ebp + 0xb90], eax
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x782]
push edi
push eax
mov word [ebp + 0x780], di
call fcn.10008800
lea eax, [ebp + 0x780]
push str.C:log_
push eax
call fcn.1000ac14
push 0x3e6
lea eax, [ebp - 0x76]
push edi
push eax
mov word [ebp - 0x78], di
call fcn.10008800
lea eax, [ebp + 0x780]
push eax
lea eax, [ebp + 0x578]
push str._sgswb.log
push eax
call fcn.1000ab54
push esi
lea eax, [ebp + 0x372]
push edi
push eax
mov word [ebp + 0x370], di
call fcn.10008800
push esi
lea eax, [ebp + 0x98a]
push edi
push eax
mov word [ebp + 0x988], di
call fcn.10008800
add esp, 0x44
push 0x104
lea eax, [ebp + 0x988]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x988]
push 0x5c
push eax
call fcn.1000b171
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
mov word [eax], di
pop ecx
lea eax, [ebp + 0x578]
push eax
call esi
test eax, eax
je 0x10006453
lea eax, [ebp + 0x988]
push ebx
push eax
call fcn.10008abb
lea eax, [ebp + eax*2 + 0x98a]
push eax
lea eax, [ebp + 0x370]
push eax
call fcn.1000ac14
lea eax, [ebp + 0x370]
push eax
lea eax, [ebp + 0x780]
push eax
lea eax, [ebp + 0x578]
push str._s_s.txt
push eax
call fcn.1000ab54
lea eax, [ebp + 0xba0]
push eax
push dword [ebp + 0xb9c]
lea eax, [ebp - 0x78]
push 0x1f3
push eax
call fcn.1000c3d3
add esp, 0x2c
lea eax, [ebp + 0x578]
push eax
mov word [ebp + 0x36e], di
mov dword [ebp - 0x7c], edi
call esi
xor ebx, ebx
inc ebx
test eax, eax
je 0x100063d5
mov dword [ebp - 0x7c], ebx
lea eax, [ebp + 0x578]
push 0x1001dbfc
push eax
call fcn.1000c2ee
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x10006452
cmp dword [ebp - 0x7c], edi
jne 0x1000640a
push esi
push 2
lea eax, [ebp - 0x80]
push ebx
push eax
mov dword [ebp - 0x80], 0xfeff
call fcn.1000c1a6
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
call fcn.10008abb
push esi
add eax, eax
push eax
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.1000c1a6
push esi
push 2
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x7c], 0xd
call fcn.1000c1a6
push esi
push 2
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x7c], 0xa
call fcn.1000c1a6
push esi
call fcn.1000bfcb
add esp, 0x38
pop ebx
mov ecx, dword [ebp + 0xb90]
pop edi
xor ecx, ebp
pop esi
call fcn.10008a76
add ebp, 0xb94
leave
ret
Function at 0x1000646a
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.10006127
mov dword [esi], eax
call fcn.10006260
mov dword [esi + 8], eax
call fcn.1000609d
mov dword [esi + 0xc], eax
call fcn.10006216
mov dword [esi + 0x10], eax
call fcn.10006182
mov dword [esi + 0x18], eax
call fcn.100061cc
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 + 0x1a0]
push eax
call edi
lea eax, [esi + 0x1b8]
push eax
call edi
lea eax, [esi + 0x1a8]
push eax
call edi
lea eax, [esi + 0x1e8]
push eax
call edi
lea eax, [esi + 0x1c8]
push eax
call edi
lea eax, [esi + 0x1d8]
push eax
call edi
mov eax, dword [0x10024b10]
pop edi
mov dword [esi + 0x190], eax
pop esi
ret

Function at 0x100064ec
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x100235a0]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.10008800
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 0x10006547
xor eax, eax
inc eax
cmp dword [ebp - 0x78], 0
je 0x1000653f
cmp dword [ebp - 0x78], eax
jne 0x10006547
cmp byte [ebp + 0x9a], al
je 0x10006549
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.10008a76
add ebp, 0xa0
leave
ret

Function at 0x10006654
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100235a0]
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.10008800
add esp, 0xc
cmp dword [esi + 0x58], 8
jb 0x10006693
mov esi, dword [esi + 0x44]
jmp 0x10006696
add esi, 0x44
push str.AllSkin
push esi
lea eax, [ebp - 0x20c]
push 0x1001dba0
push eax
call fcn.1000ab54
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop esi
jne 0x100066cf
lea eax, [ebp - 0x20c]
push eax
call fcn.10004f09
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008a76
leave
ret
Function at 0x100066db
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x100235a0]
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.10008800
add esp, 0xc
cmp dword [esi + 0x3c], 8
jb 0x1000671e
mov eax, dword [esi + 0x28]
jmp 0x10006721
lea eax, [esi + 0x28]
push 0x1001dd1c
push eax
mov ebx, 0x1001dba0
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.1000ab54
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
call edi
test eax, eax
jne 0x10006754
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x3c], 8
jb 0x1000675f
mov esi, dword [esi + 0x28]
jmp 0x10006762
add esi, 0x28
push str.Dict
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.1000ab54
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
call edi
test eax, eax
pop edi
pop esi
pop ebx
jne 0x1000678d
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.10008a76
add ebp, 0x18c
leave
ret

Function at 0x100067ca
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5a0]
sub esp, 0x620
mov eax, dword [0x100235a0]
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.10008800
lea eax, [ebp + 0x394]
push str.SOFTWARE_
push eax
call fcn.1000ac14
lea eax, [ebp + 0x394]
push str.DongFangInput
push eax
call fcn.1000abea
add esp, 0x1c
cmp dword [esi + 0x58], 8
jb 0x10006834
mov eax, dword [esi + 0x44]
jmp 0x10006837
lea eax, [esi + 0x44]
push eax
lea eax, [ebp + 0x18c]
push eax
call fcn.1000ac14
cmp dword [esi + 0x3c], 8
pop ecx
pop ecx
jb 0x10006851
mov esi, dword [esi + 0x28]
jmp 0x10006854
add esi, 0x28
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.1000ac14
pop ecx
pop ecx
lea eax, [ebp - 0x80]
push eax
push 2
push ebx
lea eax, [ebp + 0x394]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100068b1
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.10008a76
add ebp, 0x5a0
leave
ret
Function at 0x1000711a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100235a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x58], 8
jb 0x1000713b
mov eax, dword [esi + 0x44]
jmp 0x1000713e
lea eax, [esi + 0x44]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push 0x1001dba0
push eax
call fcn.1000ab54
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10007176
lea eax, [ebp - 0x20c]
push eax
call fcn.10004f09
pop ecx
lea eax, [ebp - 0x20c]
push str.Config.ini
push eax
call fcn.1000abea
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x5c]
call fcn.10003e16
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10008a76
leave
ret

Function at 0x100071a5
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100235a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x58], 8
jb 0x100071c6
mov eax, dword [esi + 0x44]
jmp 0x100071c9
lea eax, [esi + 0x44]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push 0x1001dba0
push eax
call fcn.1000ab54
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10007201
lea eax, [ebp - 0x20c]
push eax
call fcn.10004f09
pop ecx
lea eax, [ebp - 0x20c]
push str.Related.ini
push eax
call fcn.1000abea
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0xe8]
call fcn.10003e16
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10008a76
leave
ret

Function at 0x100072f7
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100235a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x58], 8
jb 0x10007318
mov eax, dword [esi + 0x44]
jmp 0x1000731b
lea eax, [esi + 0x44]
push str.UseData
push eax
lea eax, [ebp - 0x20c]
push 0x1001dba0
push eax
call fcn.1000ab54
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10007353
lea eax, [ebp - 0x20c]
push eax
call fcn.10004f09
pop ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x158]
call fcn.10003e16
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10008a76
leave
ret
Function at 0x10007852
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x3b8]
sub esp, 0x438
mov eax, dword [0x100235a0]
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.10008800
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.10008800
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x10007916
lea eax, [ebp - 0x80]
push eax
push esi
mov dword [ebp - 0x80], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x100078de
cmp dword [ebp - 0x78], ebx
je 0x100078e4
lea eax, [ebp - 0x80]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100078cf
jmp 0x100078f6
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x1ac]
push eax
call fcn.1000ac14
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x1ac]
push eax
call fcn.1000b675
pop ecx
push eax
lea ecx, [edi + 0x174]
call fcn.10003e16
mov ecx, dword [ebp + 0x3b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008a76
add ebp, 0x3b8
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x100235a0]
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.10008800
add esp, 0xc
push 0x104
lea eax, [ebp - 0x80]
push eax
mov ecx, edi
call fcn.10006624
test al, al
jne 0x10007995
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.10008abb
test eax, eax
pop ecx
je 0x100079e3
mov esi, 0x1001db90
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.1000abea
lea eax, [ebp - 0x80]
push str.DongFangIME
push eax
call fcn.1000abea
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.1000abea
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100079d7
lea eax, [ebp - 0x80]
push eax
call fcn.10004f09
pop ecx
lea eax, [ebp - 0x80]
push eax
lea ecx, [edi + 0x40]
call fcn.10003e16
mov ecx, dword [ebp + 0x188]
pop edi
xor ecx, ebp
pop esi
call fcn.10008a76
add ebp, 0x18c
leave
ret
Function at 0x100079fa
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x100235a0]
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.10008800
add esp, 0xc
push 0x104
lea eax, [ebp - 0x80]
push eax
mov ecx, edi
call fcn.10006624
test al, al
jne 0x10007a61
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.10008abb
test eax, eax
pop ecx
je 0x10007aaf
mov esi, 0x1001db90
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.1000abea
lea eax, [ebp - 0x80]
push str.DongFangIME.users
push eax
call fcn.1000abea
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.1000abea
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10007aa3
lea eax, [ebp - 0x80]
push eax
call fcn.10004f09
pop ecx
lea eax, [ebp - 0x80]
push eax
lea ecx, [edi + 0x24]
call fcn.10003e16
mov ecx, dword [ebp + 0x188]
pop edi
xor ecx, ebp
pop esi
call fcn.10008a76
add ebp, 0x18c
leave
ret
Function at 0x10007ac6
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xbc0]
sub esp, 0xc40
mov eax, dword [0x100235a0]
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.10008800
push esi
lea eax, [ebp + 0x39e]
push edi
push eax
mov word [ebp + 0x39c], di
call fcn.10008800
push esi
lea eax, [ebp + 0x7ae]
push edi
push eax
mov word [ebp + 0x7ac], di
call fcn.10008800
push esi
lea eax, [ebp + 0x196]
push edi
push eax
mov word [ebp + 0x194], di
call fcn.10008800
push esi
lea eax, [ebp + 0x9b6]
push edi
push eax
mov word [ebp + 0x9b4], di
call fcn.10008800
push esi
lea eax, [ebp + 0x5a6]
push edi
push eax
mov word [ebp + 0x5a4], di
call fcn.10008800
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.1000ac14
lea eax, [ebp + 0x9b4]
push eax
call fcn.10008abb
lea eax, [ebp + 0x9b4]
push 0x5c
push eax
call fcn.1000b171
add esp, 0x14
cmp eax, edi
je 0x10007ccf
mov word [eax], di
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x39c]
push eax
call fcn.1000ac14
lea eax, [ebp + 0x39c]
push str.Local
push eax
call fcn.1000abea
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x39c]
push eax
call esi
test eax, eax
je 0x10007bf2
inc ebx
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x7ac]
push eax
call fcn.1000ac14
lea eax, [ebp + 0x7ac]
push str.LocalLow
push eax
call fcn.1000abea
add esp, 0x10
lea eax, [ebp + 0x7ac]
push eax
call esi
test eax, eax
je 0x10007c2d
mov dword [ebp - 0x80], 1
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x194]
push eax
call fcn.1000ac14
lea eax, [ebp + 0x194]
push str.Roaming
push eax
call fcn.1000abea
add esp, 0x10
lea eax, [ebp + 0x194]
push eax
call esi
test eax, eax
je 0x10007c68
mov dword [ebp - 0x7c], 1
cmp ebx, edi
je 0x10007ccf
cmp dword [ebp - 0x80], edi
je 0x10007ccf
cmp dword [ebp - 0x7c], edi
je 0x10007ccf
mov edi, dword [ebp - 0x78]
mov ecx, edi
call fcn.100064ec
test eax, eax
je 0x10007ccf
push str.DongFangIME
lea eax, [ebp + 0x7ac]
push eax
lea eax, [ebp + 0x5a4]
push str._s_s_
push eax
call fcn.1000ab54
add esp, 0x10
lea eax, [ebp + 0x5a4]
push eax
call esi
test eax, eax
jne 0x10007cbe
lea eax, [ebp + 0x5a4]
push eax
call fcn.10004f09
pop ecx
lea eax, [ebp + 0x5a4]
push eax
lea ecx, [edi + 0x40]
call fcn.10003e16
jmp 0x10007cd7
mov ecx, dword [ebp - 0x78]
call fcn.1000792e
mov ecx, dword [ebp + 0xbbc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008a76
add ebp, 0xbc0
leave
ret
Function at 0x10007cef
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xbc0]
sub esp, 0xc40
mov eax, dword [0x100235a0]
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.10008800
push esi
lea eax, [ebp + 0x39e]
push edi
push eax
mov word [ebp + 0x39c], di
call fcn.10008800
push esi
lea eax, [ebp + 0x7ae]
push edi
push eax
mov word [ebp + 0x7ac], di
call fcn.10008800
push esi
lea eax, [ebp + 0x196]
push edi
push eax
mov word [ebp + 0x194], di
call fcn.10008800
push esi
lea eax, [ebp + 0x9b6]
push edi
push eax
mov word [ebp + 0x9b4], di
call fcn.10008800
push esi
lea eax, [ebp + 0x5a6]
push edi
push eax
mov word [ebp + 0x5a4], di
call fcn.10008800
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.1000ac14
lea eax, [ebp + 0x9b4]
push eax
call fcn.10008abb
lea eax, [ebp + 0x9b4]
push 0x5c
push eax
call fcn.1000b171
add esp, 0x14
cmp eax, edi
je 0x10007ef8
mov word [eax], di
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x39c]
push eax
call fcn.1000ac14
lea eax, [ebp + 0x39c]
push str.Local
push eax
call fcn.1000abea
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x39c]
push eax
call esi
test eax, eax
je 0x10007e1b
inc ebx
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x7ac]
push eax
call fcn.1000ac14
lea eax, [ebp + 0x7ac]
push str.LocalLow
push eax
call fcn.1000abea
add esp, 0x10
lea eax, [ebp + 0x7ac]
push eax
call esi
test eax, eax
je 0x10007e56
mov dword [ebp - 0x80], 1
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x194]
push eax
call fcn.1000ac14
lea eax, [ebp + 0x194]
push str.Roaming
push eax
call fcn.1000abea
add esp, 0x10
lea eax, [ebp + 0x194]
push eax
call esi
test eax, eax
je 0x10007e91
mov dword [ebp - 0x7c], 1
cmp ebx, edi
je 0x10007ef8
cmp dword [ebp - 0x80], edi
je 0x10007ef8
cmp dword [ebp - 0x7c], edi
je 0x10007ef8
mov edi, dword [ebp - 0x78]
mov ecx, edi
call fcn.100064ec
test eax, eax
je 0x10007ef8
push str.DongFangIME.users
lea eax, [ebp + 0x7ac]
push eax
lea eax, [ebp + 0x5a4]
push str._s_s_
push eax
call fcn.1000ab54
add esp, 0x10
lea eax, [ebp + 0x5a4]
push eax
call esi
test eax, eax
jne 0x10007ee7
lea eax, [ebp + 0x5a4]
push eax
call fcn.10004f09
pop ecx
lea eax, [ebp + 0x5a4]
push eax
lea ecx, [edi + 0x24]
call fcn.10003e16
jmp 0x10007f00
mov ecx, dword [ebp - 0x78]
call fcn.100079fa
mov ecx, dword [ebp + 0xbbc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008a76
add ebp, 0xbc0
leave
ret
Function at 0x10007f18
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.1000387a
push str.Skin_
mov ecx, esi
call fcn.10005ae3
cmp dword [esi + 0x18], 8
jb 0x10007f42
mov eax, dword [esi + 4]
jmp 0x10007f45
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10007f65
cmp dword [esi + 0x18], 8
jb 0x10007f5b
mov esi, dword [esi + 4]
jmp 0x10007f5e
add esi, 4
push esi
call fcn.10004f09
pop ecx
pop esi
ret

Function at 0x10008a76
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100235a0]
jne 0x10008a80
repz ret
jmp fcn.1000e70b

Function at 0x1000e070
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10023868]
je 0x1000e08b
inc edi
cmp edi, 0x17
jb 0x1000e07c
cmp edi, 0x17
jae 0x1000e20b
push ebp
push 3
call fcn.10016257
cmp eax, 1
pop ecx
je 0x1000e1d7
push 3
call fcn.10016257
test eax, eax
pop ecx
jne 0x1000e0bf
cmp dword [0x10024bd4], 1
je 0x1000e1d7
cmp ebx, 0xfc
je 0x1000e20a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10024d78
push ebp
call fcn.1000e80f
add esp, 0xc
test eax, eax
je 0x1000e0f5
push esi
push esi
push esi
push esi
push esi
call fcn.1000b8ba
add esp, 0x14
push 0x104
mov esi, 0x10024d91
push esi
push 0
mov byte [0x10024e95], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000e139
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1000e80f
add esp, 0xc
test eax, eax
je 0x1000e139
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1000b8ba
add esp, 0x14
push esi
call fcn.1000b280
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000e17e
push esi
call fcn.1000b280
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1002508c
push 0x1001e65c
sub ecx, eax
push ecx
push eax
call fcn.10013566
add esp, 0x14
test eax, eax
je 0x1000e17e
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1000b8ba
add esp, 0x14
jmp 0x1000e180
xor esi, esi
push 0x1001e658
push ebx
push ebp
call fcn.100134a1
add esp, 0xc
test eax, eax
je 0x1000e1a0
push esi
push esi
push esi
push esi
push esi
call fcn.1000b8ba
add esp, 0x14
push dword [edi*8 + 0x1002386c]
push ebx
push ebp
call fcn.100134a1
add esp, 0xc
test eax, eax
je 0x1000e1c2
push esi
push esi
push esi
push esi
push esi
call fcn.1000b8ba
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1001609a
add esp, 0xc
jmp 0x1000e20a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1000e20a
cmp ebp, 0xffffffff
je 0x1000e20a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1002386c]
push dword [esi]
call fcn.1000b280
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret