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

Disassembly:
push ebp
lea ebp, [esp - 0x1730]
mov eax, 0x17b0
call fcn.00448bd0
mov eax, dword [0x4f5a90]
xor eax, ebp
mov dword [ebp + 0x172c], eax
mov eax, dword [ebp + 0x173c]
push ebx
push esi
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x1740]
mov esi, 0x206
xor ebx, ebx
push esi
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x1526]
push ebx
push eax
mov word [ebp + 0x1524], bx
call fcn.00448590
push esi
lea eax, [ebp + 0x131e]
push ebx
push eax
mov word [ebp + 0x131c], bx
call fcn.00448590
add esp, 0x18
push str.Dict
call fcn.004037ad
mov ecx, eax
call fcn.00409e7a
push eax
lea eax, [ebp + 0x1524]
push 0x4bade0
push eax
call fcn.00448afe
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x1524]
push eax
call esi
test eax, eax
jne 0x403aea
push ebx
lea eax, [ebp + 0x1524]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str..wncl
push dword [ebp + 0x1738]
lea eax, [ebp + 0x1524]
push eax
lea eax, [ebp + 0x131c]
push str._s_d_s
push eax
call fcn.00448afe
add esp, 0x14
lea eax, [ebp + 0x131c]
push eax
call esi
test eax, eax
jne 0x403bdf
push edi
push ebx
push 0x80
push 2
push ebx
push 3
push 0x10000000
lea eax, [ebp + 0x131c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x403bde
push 0x1387
lea eax, [ebp - 0x6b]
push ebx
push eax
mov byte [ebp - 0x6c], bl
call fcn.00448590
push ebx
call fcn.00448669
add esp, 0x10
push eax
push ebx
mov dword [ebp - 0x7c], edx
call fcn.00448669
pop ecx
push eax
push ebx
push ebx
push 1
push 1
push dword [ebp + 0x1738]
lea ecx, [ebp - 0x6c]
push 0x4e20
push str.__Dict__
push str.__GS__
call fcn.004038dd
push dword [ebp - 0x78]
lea ecx, [ebp - 0x6c]
call fcn.00403937
push dword [ebp - 0x74]
lea ecx, [ebp - 0x6c]
call fcn.00403937
mov esi, 0x4badac
push esi
lea ecx, [ebp - 0x6c]
call fcn.00403937
push esi
lea ecx, [ebp - 0x6c]
call fcn.00403937
push ebx
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x6c]
push eax
push edi
mov dword [ebp - 0x70], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp + 0x172c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004482ff
add ebp, 0x1730
leave
ret 0xc
Function at 0x4049f4
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 8]
mov dword [ebp - 0xc], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404afd
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push 3
push 0x10000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x404afc
push ebx
push 0x34
pop ebx
push edi
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
jae 0x404a52
mov dword [ebp - 4], edi
mov ebx, eax
push esi
push ebx
call fcn.0042d4e7
mov esi, eax
cmp esi, edi
pop ecx
je 0x404afa
push ebx
push edi
push esi
call fcn.00448590
add esp, 0xc
push edi
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [ebp + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], edi
je 0x404af3
push str.__GS__
push esi
call fcn.00448c00
test eax, eax
pop ecx
pop ecx
jne 0x404ab1
lea eax, [esi + 0xa]
push str.__Dict__
push eax
call fcn.00448c00
pop ecx
pop ecx
cmp dword [esi + 0x18], edi
je 0x404afa
push 0x28
call fcn.0042d4b7
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x404ad0
lea ecx, [ebx + 0xc]
call fcn.00403db7
mov eax, ebx
jmp 0x404ad2
xor eax, eax
cmp eax, edi
mov dword [ebp + 8], eax
je 0x404afa
mov ecx, dword [esi + 0x18]
mov dword [eax], ecx
movzx ecx, byte [esi + 0x1c]
mov dword [eax + 8], ecx
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call fcn.0040490c
push esi
call fcn.0042d4e2
pop ecx
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x405d78
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 + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 4]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [esi + 0x1c], 0
push 0
push 1
mov ecx, esi
call fcn.00401b9c
pop esi
leave
ret
Function at 0x4097df
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4f5a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ebx
mov edi, ecx
mov dword [ebp - 0x210], eax
call fcn.00447c90
test eax, eax
pop ecx
mov esi, 0x4bb84c
jne 0x40981b
mov dword [edi], 1
jmp 0x40982b
push esi
push ebx
call fcn.00448418
neg eax
sbb eax, eax
pop ecx
inc eax
pop ecx
mov dword [edi], eax
and word [ebp - 0x20c], 0
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.00448590
lea eax, [edi + 0x14]
push eax
lea eax, [ebp - 0x20c]
push str._sSkinSkin.xml
push eax
call fcn.00448afe
add esp, 0x18
cmp dword [edi], 0
jne 0x40987a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40987a
mov dword [edi], 1
cmp dword [edi + 8], 0
jne 0x409920
cmp dword [edi], 0
je 0x4098d2
call fcn.00405a97
mov edx, dword [eax]
push 0
push 0x51
mov ecx, eax
call dword [edx + 0xc]
call fcn.00405a97
mov edx, dword [eax]
push 0
push 0x51
mov ecx, eax
call dword [edx + 0x2c]
call fcn.00405a97
mov edx, dword [eax]
push esi
mov esi, 0x94
push esi
mov ecx, eax
call dword [edx + 8]
call fcn.00405a97
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x14]
call fcn.00405a97
push 0x51
jmp 0x409919
call fcn.00405a97
mov edx, dword [eax]
push 1
push 0x51
mov ecx, eax
call dword [edx + 0xc]
call fcn.00405a97
mov edx, dword [eax]
push 1
push 0x51
mov ecx, eax
call dword [edx + 0x2c]
call fcn.00405a97
mov edx, dword [eax]
push ebx
mov esi, 0x94
push esi
mov ecx, eax
call dword [edx + 8]
call fcn.00405a97
mov edx, dword [eax]
push 0x51
mov ecx, eax
call dword [edx + 0x14]
call fcn.00405a97
push esi
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x14]
and dword [edi + 8], 0
mov ecx, edi
call fcn.004095ba
push dword [ebp - 0x210]
mov ecx, edi
call fcn.00408ea9
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004482ff
leave
ret 8

Function at 0x409b20
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00412acb
mov dword [esi], eax
call fcn.00412c04
mov dword [esi + 8], eax
call fcn.00412a41
mov dword [esi + 0xc], eax
call fcn.00412bba
mov dword [esi + 0x10], eax
call fcn.00412b26
mov dword [esi + 0x18], eax
call fcn.00412b70
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 [0x4f7898]
pop edi
mov dword [esi + 0x190], eax
pop esi
ret
Function at 0x409ba2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x4f5a90]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00448590
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 0x409bfd
xor eax, eax
inc eax
cmp dword [ebp - 0x78], 0
je 0x409bf5
cmp dword [ebp - 0x78], eax
jne 0x409bfd
cmp byte [ebp + 0x9a], al
je 0x409bff
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.004482ff
add ebp, 0xa0
leave
ret

Function at 0x409d0a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f5a90]
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.00448590
add esp, 0xc
cmp dword [esi + 0x58], 8
jb 0x409d49
mov esi, dword [esi + 0x44]
jmp 0x409d4c
add esi, 0x44
push str.AllSkin
push esi
lea eax, [ebp - 0x20c]
push 0x4bade0
push eax
call fcn.00448afe
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop esi
jne 0x409d85
lea eax, [ebp - 0x20c]
push eax
call fcn.0040b70a
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004482ff
leave
ret

Function at 0x409d91
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x4f5a90]
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.00448590
add esp, 0xc
cmp dword [esi + 0x3c], 8
jb 0x409dd4
mov eax, dword [esi + 0x28]
jmp 0x409dd7
lea eax, [esi + 0x28]
push 0x4bba50
push eax
mov ebx, 0x4bade0
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00448afe
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
call edi
test eax, eax
jne 0x409e0a
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x3c], 8
jb 0x409e15
mov esi, dword [esi + 0x28]
jmp 0x409e18
add esi, 0x28
push str.Dict
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00448afe
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
call edi
test eax, eax
pop edi
pop esi
pop ebx
jne 0x409e43
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.004482ff
add ebp, 0x18c
leave
ret
Function at 0x409ead
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5a0]
sub esp, 0x620
mov eax, dword [0x4f5a90]
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.00448590
lea eax, [ebp + 0x394]
push str.SOFTWARE_
push eax
call fcn.00448ae2
lea eax, [ebp + 0x394]
push str.WanNengWBInput
push eax
call fcn.00448ab8
add esp, 0x1c
cmp dword [esi + 0x58], 8
jb 0x409f17
mov eax, dword [esi + 0x44]
jmp 0x409f1a
lea eax, [esi + 0x44]
push eax
lea eax, [ebp + 0x18c]
push eax
call fcn.00448ae2
cmp dword [esi + 0x3c], 8
pop ecx
pop ecx
jb 0x409f34
mov esi, dword [esi + 0x28]
jmp 0x409f37
add esi, 0x28
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00448ae2
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 0x409f94
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.004482ff
add ebp, 0x5a0
leave
ret
Function at 0x40a7f7
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f5a90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x58], 8
jb 0x40a818
mov eax, dword [esi + 0x44]
jmp 0x40a81b
lea eax, [esi + 0x44]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push 0x4bade0
push eax
call fcn.00448afe
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40a853
lea eax, [ebp - 0x20c]
push eax
call fcn.0040b70a
pop ecx
lea eax, [ebp - 0x20c]
push str.Config.ini
push eax
call fcn.00448ab8
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x5c]
call fcn.0040228b
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004482ff
leave
ret

Function at 0x40a882
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f5a90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x58], 8
jb 0x40a8a3
mov eax, dword [esi + 0x44]
jmp 0x40a8a6
lea eax, [esi + 0x44]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push 0x4bade0
push eax
call fcn.00448afe
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40a8de
lea eax, [ebp - 0x20c]
push eax
call fcn.0040b70a
pop ecx
lea eax, [ebp - 0x20c]
push str.Related.ini
push eax
call fcn.00448ab8
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0xe8]
call fcn.0040228b
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004482ff
leave
ret

Function at 0x40a9d4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f5a90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x58], 8
jb 0x40a9f5
mov eax, dword [esi + 0x44]
jmp 0x40a9f8
lea eax, [esi + 0x44]
push str.UseData
push eax
lea eax, [ebp - 0x20c]
push 0x4bade0
push eax
call fcn.00448afe
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40aa30
lea eax, [ebp - 0x20c]
push eax
call fcn.0040b70a
pop ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x158]
call fcn.0040228b
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004482ff
leave
ret
Function at 0x40af2f
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x3b8]
sub esp, 0x438
mov eax, dword [0x4f5a90]
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.00448590
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.00448590
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40aff3
lea eax, [ebp - 0x80]
push eax
push esi
mov dword [ebp - 0x80], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40afbb
cmp dword [ebp - 0x78], ebx
je 0x40afc1
lea eax, [ebp - 0x80]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40afac
jmp 0x40afd3
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x1ac]
push eax
call fcn.00448ae2
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x1ac]
push eax
call fcn.00448ef5
pop ecx
push eax
lea ecx, [edi + 0x174]
call fcn.0040228b
mov ecx, dword [ebp + 0x3b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004482ff
add ebp, 0x3b8
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x4f5a90]
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.00448590
add esp, 0xc
push 0x104
lea eax, [ebp - 0x80]
push eax
mov ecx, edi
call fcn.00409cda
test al, al
jne 0x40b072
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.00447c90
test eax, eax
pop ecx
je 0x40b0c0
mov esi, 0x4bb09c
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.00448ab8
lea eax, [ebp - 0x80]
push str.WanNengWBIME
push eax
call fcn.00448ab8
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.00448ab8
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b0b4
lea eax, [ebp - 0x80]
push eax
call fcn.0040b70a
pop ecx
lea eax, [ebp - 0x80]
push eax
lea ecx, [edi + 0x40]
call fcn.0040228b
mov ecx, dword [ebp + 0x188]
pop edi
xor ecx, ebp
pop esi
call fcn.004482ff
add ebp, 0x18c
leave
ret
Function at 0x40b0d7
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x4f5a90]
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.00448590
add esp, 0xc
push 0x104
lea eax, [ebp - 0x80]
push eax
mov ecx, edi
call fcn.00409cda
test al, al
jne 0x40b13e
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.00447c90
test eax, eax
pop ecx
je 0x40b18c
mov esi, 0x4bb09c
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.00448ab8
lea eax, [ebp - 0x80]
push str.WanNengWBIME.users
push eax
call fcn.00448ab8
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.00448ab8
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b180
lea eax, [ebp - 0x80]
push eax
call fcn.0040b70a
pop ecx
lea eax, [ebp - 0x80]
push eax
lea ecx, [edi + 0x24]
call fcn.0040228b
mov ecx, dword [ebp + 0x188]
pop edi
xor ecx, ebp
pop esi
call fcn.004482ff
add ebp, 0x18c
leave
ret
Function at 0x40b1a3
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xbc0]
sub esp, 0xc40
mov eax, dword [0x4f5a90]
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.00448590
push esi
lea eax, [ebp + 0x39e]
push edi
push eax
mov word [ebp + 0x39c], di
call fcn.00448590
push esi
lea eax, [ebp + 0x7ae]
push edi
push eax
mov word [ebp + 0x7ac], di
call fcn.00448590
push esi
lea eax, [ebp + 0x196]
push edi
push eax
mov word [ebp + 0x194], di
call fcn.00448590
push esi
lea eax, [ebp + 0x9b6]
push edi
push eax
mov word [ebp + 0x9b4], di
call fcn.00448590
push esi
lea eax, [ebp + 0x5a6]
push edi
push eax
mov word [ebp + 0x5a4], di
call fcn.00448590
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.00448ae2
lea eax, [ebp + 0x9b4]
push eax
call fcn.00447c90
lea eax, [ebp + 0x9b4]
push 0x5c
push eax
call fcn.00448f5e
add esp, 0x14
cmp eax, edi
je 0x40b3ac
mov word [eax], di
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x39c]
push eax
call fcn.00448ae2
lea eax, [ebp + 0x39c]
push str.Local
push eax
call fcn.00448ab8
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x39c]
push eax
call esi
test eax, eax
je 0x40b2cf
inc ebx
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x7ac]
push eax
call fcn.00448ae2
lea eax, [ebp + 0x7ac]
push str.LocalLow
push eax
call fcn.00448ab8
add esp, 0x10
lea eax, [ebp + 0x7ac]
push eax
call esi
test eax, eax
je 0x40b30a
mov dword [ebp - 0x80], 1
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x194]
push eax
call fcn.00448ae2
lea eax, [ebp + 0x194]
push str.Roaming
push eax
call fcn.00448ab8
add esp, 0x10
lea eax, [ebp + 0x194]
push eax
call esi
test eax, eax
je 0x40b345
mov dword [ebp - 0x7c], 1
cmp ebx, edi
je 0x40b3ac
cmp dword [ebp - 0x80], edi
je 0x40b3ac
cmp dword [ebp - 0x7c], edi
je 0x40b3ac
mov edi, dword [ebp - 0x78]
mov ecx, edi
call fcn.00409ba2
test eax, eax
je 0x40b3ac
push str.WanNengWBIME
lea eax, [ebp + 0x7ac]
push eax
lea eax, [ebp + 0x5a4]
push str._s_s_
push eax
call fcn.00448afe
add esp, 0x10
lea eax, [ebp + 0x5a4]
push eax
call esi
test eax, eax
jne 0x40b39b
lea eax, [ebp + 0x5a4]
push eax
call fcn.0040b70a
pop ecx
lea eax, [ebp + 0x5a4]
push eax
lea ecx, [edi + 0x40]
call fcn.0040228b
jmp 0x40b3b4
mov ecx, dword [ebp - 0x78]
call fcn.0040b00b
mov ecx, dword [ebp + 0xbbc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004482ff
add ebp, 0xbc0
leave
ret
Function at 0x40b3cc
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xbc0]
sub esp, 0xc40
mov eax, dword [0x4f5a90]
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.00448590
push esi
lea eax, [ebp + 0x39e]
push edi
push eax
mov word [ebp + 0x39c], di
call fcn.00448590
push esi
lea eax, [ebp + 0x7ae]
push edi
push eax
mov word [ebp + 0x7ac], di
call fcn.00448590
push esi
lea eax, [ebp + 0x196]
push edi
push eax
mov word [ebp + 0x194], di
call fcn.00448590
push esi
lea eax, [ebp + 0x9b6]
push edi
push eax
mov word [ebp + 0x9b4], di
call fcn.00448590
push esi
lea eax, [ebp + 0x5a6]
push edi
push eax
mov word [ebp + 0x5a4], di
call fcn.00448590
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.00448ae2
lea eax, [ebp + 0x9b4]
push eax
call fcn.00447c90
lea eax, [ebp + 0x9b4]
push 0x5c
push eax
call fcn.00448f5e
add esp, 0x14
cmp eax, edi
je 0x40b5d5
mov word [eax], di
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x39c]
push eax
call fcn.00448ae2
lea eax, [ebp + 0x39c]
push str.Local
push eax
call fcn.00448ab8
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x39c]
push eax
call esi
test eax, eax
je 0x40b4f8
inc ebx
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x7ac]
push eax
call fcn.00448ae2
lea eax, [ebp + 0x7ac]
push str.LocalLow
push eax
call fcn.00448ab8
add esp, 0x10
lea eax, [ebp + 0x7ac]
push eax
call esi
test eax, eax
je 0x40b533
mov dword [ebp - 0x80], 1
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x194]
push eax
call fcn.00448ae2
lea eax, [ebp + 0x194]
push str.Roaming
push eax
call fcn.00448ab8
add esp, 0x10
lea eax, [ebp + 0x194]
push eax
call esi
test eax, eax
je 0x40b56e
mov dword [ebp - 0x7c], 1
cmp ebx, edi
je 0x40b5d5
cmp dword [ebp - 0x80], edi
je 0x40b5d5
cmp dword [ebp - 0x7c], edi
je 0x40b5d5
mov edi, dword [ebp - 0x78]
mov ecx, edi
call fcn.00409ba2
test eax, eax
je 0x40b5d5
push str.WanNengWBIME.users
lea eax, [ebp + 0x7ac]
push eax
lea eax, [ebp + 0x5a4]
push str._s_s_
push eax
call fcn.00448afe
add esp, 0x10
lea eax, [ebp + 0x5a4]
push eax
call esi
test eax, eax
jne 0x40b5c4
lea eax, [ebp + 0x5a4]
push eax
call fcn.0040b70a
pop ecx
lea eax, [ebp + 0x5a4]
push eax
lea ecx, [edi + 0x24]
call fcn.0040228b
jmp 0x40b5dd
mov ecx, dword [ebp - 0x78]
call fcn.0040b0d7
mov ecx, dword [ebp + 0xbbc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004482ff
add ebp, 0xbc0
leave
ret
Function at 0x40b5f5
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.00402122
push str.Skin_
mov ecx, esi
call fcn.004041bf
cmp dword [esi + 0x18], 8
jb 0x40b61f
mov eax, dword [esi + 4]
jmp 0x40b622
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b642
cmp dword [esi + 0x18], 8
jb 0x40b638
mov esi, dword [esi + 4]
jmp 0x40b63b
add esi, 4
push esi
call fcn.0040b70a
pop ecx
pop esi
ret

Function at 0x40b70a
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
call fcn.00447c90
mov edi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042d4e7
push dword [esp + 0x1c]
mov esi, eax
push esi
call fcn.00448ae2
add esp, 0x10
xor ebp, ebp
test edi, edi
mov bl, 1
jl 0x40b779
cmp word [esi + ebp*2], 0x5c
jne 0x40b770
and word [esi + ebp*2], 0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b76a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b777
mov word [esi + ebp*2], 0x5c
inc ebp
cmp ebp, edi
jle 0x40b747
jmp 0x40b779
xor bl, bl
push esi
call fcn.0042d4e2
pop ecx
pop edi
pop esi
pop ebp
movzx eax, bl
pop ebx
ret