joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4059a5
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
push ebp
sub esp, 0xc78
lea ebp, [esp - 4]
mov eax, dword [0x43c380]
xor eax, ebp
mov dword [ebp + 0xc78], eax
push 4
mov eax, 0x42f03e
call fcn.0040a793
mov ebx, dword [ebp + 0xc84]
xor edi, edi
push 0x3e6
lea eax, [ebp + 0x72]
push edi
push eax
mov word [ebp + 0x70], di
call fcn.0040aa00
mov esi, 0x206
push esi
lea eax, [ebp + 0x45a]
push edi
push eax
mov word [ebp + 0x458], di
call fcn.0040aa00
add esp, 0x18
cmp dword [ebx + 0x18], 8
jb 0x405a0c
mov ebx, dword [ebx + 4]
jmp 0x405a0f
add ebx, 4
push str._untie
call fcn.0040a2da
lea eax, [ebx + eax*2 + 2]
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.0040a8cd
mov ecx, dword [0x43e2bc]
add esp, 0xc
lea eax, [ebp + 0x458]
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.004018c8
mov ecx, eax
call fcn.004017ba
push esi
lea eax, [ebp + 0xa72]
push edi
push eax
mov word [ebp + 0xa70], di
call fcn.0040aa00
add esp, 0xc
lea eax, [ebp + 0xa70]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp + 0x458]
push eax
lea eax, [ebp + 0xa70]
push eax
call fcn.0040a8cd
push esi
lea eax, [ebp + 0x662]
push edi
push eax
mov word [ebp + 0x660], di
call fcn.0040aa00
push esi
lea eax, [ebp + 0x86a]
push edi
push eax
mov word [ebp + 0x868], di
call fcn.0040aa00
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x660]
push eax
call fcn.0040a8f7
lea eax, [ebp + 0x660]
push eax
call fcn.0040b471
lea eax, [ebp + 0xa70]
push eax
lea eax, [ebp + 0x868]
push eax
call fcn.0040a8f7
lea eax, [ebp + 0x868]
push eax
call fcn.0040b471
lea eax, [ebp + 0x868]
push eax
lea eax, [ebp + 0x660]
push eax
call fcn.0040c9a8
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0x40
test eax, eax
je 0x405b23
lea eax, [ebp + 0xa70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405b23
lea eax, [ebp + 0xa70]
push eax
call esi
push edi
lea eax, [ebp + 0xa70]
push eax
lea eax, [ebp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp]
call fcn.004021f5
lea eax, [ebp + 0xa70]
push eax
push edi
lea ecx, [ebp]
mov dword [ebp - 4], edi
call fcn.004042a2
lea eax, [ebp + 0xa70]
push eax
call esi
mov ecx, dword [0x43e2bc]
call fcn.004018c4
mov ecx, eax
call fcn.00406334
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
mov ebx, 0x430a20
push ebx
push str.IsModifyCellDict
mov edi, str.SetModify
push edi
mov dword [ebp - 0x10], eax
call esi
push dword [ebp - 0x10]
push ebx
push str.IsModifyCellDict64
push edi
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00402228
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc78]
xor ecx, ebp
call fcn.0040a784
add ebp, 0xc7c
leave
ret
Function at 0x405fee
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.0040808e
mov dword [esi], eax
call fcn.004081c7
mov dword [esi + 8], eax
call fcn.00408004
mov dword [esi + 0xc], eax
call fcn.0040817d
mov dword [esi + 0x10], eax
call fcn.004080e9
mov dword [esi + 0x18], eax
call fcn.00408133
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 [0x43e4d4]
pop edi
mov dword [esi + 0x1ac], eax
pop esi
ret

Function at 0x406070
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x43c380]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0040aa00
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 0x4060cb
xor eax, eax
inc eax
cmp dword [ebp - 0x78], 0
je 0x4060c3
cmp dword [ebp - 0x78], eax
jne 0x4060cb
cmp byte [ebp + 0x9a], al
je 0x4060cd
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.0040a784
add ebp, 0xa0
leave
ret

Function at 0x4061d8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43c380]
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.0040aa00
add esp, 0xc
cmp dword [esi + 0x58], 8
jb 0x406217
mov esi, dword [esi + 0x44]
jmp 0x40621a
add esi, 0x44
push str.AllSkin
push esi
lea eax, [ebp - 0x20c]
push 0x430b40
push eax
call fcn.0040a913
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop esi
jne 0x406253
lea eax, [ebp - 0x20c]
push eax
call fcn.00407b0d
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a784
leave
ret
Function at 0x40625f
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x43c380]
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.0040aa00
add esp, 0xc
cmp dword [esi + 0x3c], 8
jb 0x4062a2
mov eax, dword [esi + 0x28]
jmp 0x4062a5
lea eax, [esi + 0x28]
push 0x430b5c
push eax
mov ebx, 0x430b40
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.0040a913
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
call edi
test eax, eax
jne 0x4062d8
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x3c], 8
jb 0x4062e3
mov esi, dword [esi + 0x28]
jmp 0x4062e6
add esi, 0x28
push str.Dict
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.0040a913
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
call edi
test eax, eax
pop edi
pop esi
pop ebx
jne 0x406311
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.0040a784
add ebp, 0x18c
leave
ret

Function at 0x406348
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5a0]
sub esp, 0x620
mov eax, dword [0x43c380]
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.0040aa00
lea eax, [ebp + 0x394]
push str.SOFTWARE_
push eax
call fcn.0040a8f7
lea eax, [ebp + 0x394]
push str.SmartCloudWBInput
push eax
call fcn.0040a8cd
add esp, 0x1c
cmp dword [esi + 0x58], 8
jb 0x4063b2
mov eax, dword [esi + 0x44]
jmp 0x4063b5
lea eax, [esi + 0x44]
push eax
lea eax, [ebp + 0x18c]
push eax
call fcn.0040a8f7
cmp dword [esi + 0x3c], 8
pop ecx
pop ecx
jb 0x4063cf
mov esi, dword [esi + 0x28]
jmp 0x4063d2
add esi, 0x28
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.0040a8f7
pop ecx
pop ecx
lea eax, [ebp - 0x80]
push eax
push 2
push ebx
lea eax, [ebp + 0x394]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40642f
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.0040a784
add ebp, 0x5a0
leave
ret
Function at 0x406c04
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43c380]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x58], 8
jb 0x406c25
mov eax, dword [esi + 0x44]
jmp 0x406c28
lea eax, [esi + 0x44]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push 0x430b40
push eax
call fcn.0040a913
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406c60
lea eax, [ebp - 0x20c]
push eax
call fcn.00407b0d
pop ecx
lea eax, [ebp - 0x20c]
push str.Config.ini
push eax
call fcn.0040a8cd
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x5c]
call fcn.0040153c
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040a784
leave
ret

Function at 0x406c8f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43c380]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x58], 8
jb 0x406cb0
mov eax, dword [esi + 0x44]
jmp 0x406cb3
lea eax, [esi + 0x44]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push 0x430b40
push eax
call fcn.0040a913
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406ceb
lea eax, [ebp - 0x20c]
push eax
call fcn.00407b0d
pop ecx
lea eax, [ebp - 0x20c]
push str.Related.ini
push eax
call fcn.0040a8cd
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0xe8]
call fcn.0040153c
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040a784
leave
ret

Function at 0x406de1
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43c380]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x58], 8
jb 0x406e02
mov eax, dword [esi + 0x44]
jmp 0x406e05
lea eax, [esi + 0x44]
push str.UseData
push eax
lea eax, [ebp - 0x20c]
push 0x430b40
push eax
call fcn.0040a913
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406e3d
lea eax, [ebp - 0x20c]
push eax
call fcn.00407b0d
pop ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x174]
call fcn.0040153c
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040a784
leave
ret
Function at 0x40733c
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x3b8]
sub esp, 0x438
mov eax, dword [0x43c380]
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.0040aa00
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.0040aa00
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x407400
lea eax, [ebp - 0x80]
push eax
push esi
mov dword [ebp - 0x80], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4073c8
cmp dword [ebp - 0x78], ebx
je 0x4073ce
lea eax, [ebp - 0x80]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4073b9
jmp 0x4073e0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x1ac]
push eax
call fcn.0040a8f7
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x1ac]
push eax
call fcn.0040b471
pop ecx
push eax
lea ecx, [edi + 0x190]
call fcn.0040153c
mov ecx, dword [ebp + 0x3b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a784
add ebp, 0x3b8
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x43c380]
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.0040aa00
add esp, 0xc
push 0x104
lea eax, [ebp - 0x80]
push eax
mov ecx, edi
call fcn.004061a8
test al, al
jne 0x40747f
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.0040a2da
test eax, eax
pop ecx
je 0x4074cd
mov esi, 0x430744
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040a8cd
lea eax, [ebp - 0x80]
push str.SmartCloudWBIME
push eax
call fcn.0040a8cd
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040a8cd
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4074c1
lea eax, [ebp - 0x80]
push eax
call fcn.00407b0d
pop ecx
lea eax, [ebp - 0x80]
push eax
lea ecx, [edi + 0x40]
call fcn.0040153c
mov ecx, dword [ebp + 0x188]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a784
add ebp, 0x18c
leave
ret
Function at 0x4074e4
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x43c380]
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.0040aa00
add esp, 0xc
push 0x104
lea eax, [ebp - 0x80]
push eax
mov ecx, edi
call fcn.004061a8
test al, al
jne 0x40754b
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.0040a2da
test eax, eax
pop ecx
je 0x407599
mov esi, 0x430744
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040a8cd
lea eax, [ebp - 0x80]
push str.SmartCloudWBIME.users
push eax
call fcn.0040a8cd
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040a8cd
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40758d
lea eax, [ebp - 0x80]
push eax
call fcn.00407b0d
pop ecx
lea eax, [ebp - 0x80]
push eax
lea ecx, [edi + 0x24]
call fcn.0040153c
mov ecx, dword [ebp + 0x188]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a784
add ebp, 0x18c
leave
ret
Function at 0x4075b0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xbc0]
sub esp, 0xc40
mov eax, dword [0x43c380]
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.0040aa00
push esi
lea eax, [ebp + 0x39e]
push edi
push eax
mov word [ebp + 0x39c], di
call fcn.0040aa00
push esi
lea eax, [ebp + 0x7ae]
push edi
push eax
mov word [ebp + 0x7ac], di
call fcn.0040aa00
push esi
lea eax, [ebp + 0x196]
push edi
push eax
mov word [ebp + 0x194], di
call fcn.0040aa00
push esi
lea eax, [ebp + 0x9b6]
push edi
push eax
mov word [ebp + 0x9b4], di
call fcn.0040aa00
push esi
lea eax, [ebp + 0x5a6]
push edi
push eax
mov word [ebp + 0x5a4], di
call fcn.0040aa00
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.0040a8f7
lea eax, [ebp + 0x9b4]
push eax
call fcn.0040a2da
lea eax, [ebp + 0x9b4]
push 0x5c
push eax
call fcn.0040a89d
add esp, 0x14
cmp eax, edi
je 0x4077b9
mov word [eax], di
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x39c]
push eax
call fcn.0040a8f7
lea eax, [ebp + 0x39c]
push str.Local
push eax
call fcn.0040a8cd
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x39c]
push eax
call esi
test eax, eax
je 0x4076dc
inc ebx
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x7ac]
push eax
call fcn.0040a8f7
lea eax, [ebp + 0x7ac]
push str.LocalLow
push eax
call fcn.0040a8cd
add esp, 0x10
lea eax, [ebp + 0x7ac]
push eax
call esi
test eax, eax
je 0x407717
mov dword [ebp - 0x80], 1
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x194]
push eax
call fcn.0040a8f7
lea eax, [ebp + 0x194]
push str.Roaming
push eax
call fcn.0040a8cd
add esp, 0x10
lea eax, [ebp + 0x194]
push eax
call esi
test eax, eax
je 0x407752
mov dword [ebp - 0x7c], 1
cmp ebx, edi
je 0x4077b9
cmp dword [ebp - 0x80], edi
je 0x4077b9
cmp dword [ebp - 0x7c], edi
je 0x4077b9
mov edi, dword [ebp - 0x78]
mov ecx, edi
call fcn.00406070
test eax, eax
je 0x4077b9
push str.SmartCloudWBIME
lea eax, [ebp + 0x7ac]
push eax
lea eax, [ebp + 0x5a4]
push str._s_s_
push eax
call fcn.0040a913
add esp, 0x10
lea eax, [ebp + 0x5a4]
push eax
call esi
test eax, eax
jne 0x4077a8
lea eax, [ebp + 0x5a4]
push eax
call fcn.00407b0d
pop ecx
lea eax, [ebp + 0x5a4]
push eax
lea ecx, [edi + 0x40]
call fcn.0040153c
jmp 0x4077c1
mov ecx, dword [ebp - 0x78]
call fcn.00407418
mov ecx, dword [ebp + 0xbbc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a784
add ebp, 0xbc0
leave
ret
Function at 0x4077d9
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xbc0]
sub esp, 0xc40
mov eax, dword [0x43c380]
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.0040aa00
push esi
lea eax, [ebp + 0x39e]
push edi
push eax
mov word [ebp + 0x39c], di
call fcn.0040aa00
push esi
lea eax, [ebp + 0x7ae]
push edi
push eax
mov word [ebp + 0x7ac], di
call fcn.0040aa00
push esi
lea eax, [ebp + 0x196]
push edi
push eax
mov word [ebp + 0x194], di
call fcn.0040aa00
push esi
lea eax, [ebp + 0x9b6]
push edi
push eax
mov word [ebp + 0x9b4], di
call fcn.0040aa00
push esi
lea eax, [ebp + 0x5a6]
push edi
push eax
mov word [ebp + 0x5a4], di
call fcn.0040aa00
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.0040a8f7
lea eax, [ebp + 0x9b4]
push eax
call fcn.0040a2da
lea eax, [ebp + 0x9b4]
push 0x5c
push eax
call fcn.0040a89d
add esp, 0x14
cmp eax, edi
je 0x4079e2
mov word [eax], di
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x39c]
push eax
call fcn.0040a8f7
lea eax, [ebp + 0x39c]
push str.Local
push eax
call fcn.0040a8cd
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x39c]
push eax
call esi
test eax, eax
je 0x407905
inc ebx
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x7ac]
push eax
call fcn.0040a8f7
lea eax, [ebp + 0x7ac]
push str.LocalLow
push eax
call fcn.0040a8cd
add esp, 0x10
lea eax, [ebp + 0x7ac]
push eax
call esi
test eax, eax
je 0x407940
mov dword [ebp - 0x80], 1
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x194]
push eax
call fcn.0040a8f7
lea eax, [ebp + 0x194]
push str.Roaming
push eax
call fcn.0040a8cd
add esp, 0x10
lea eax, [ebp + 0x194]
push eax
call esi
test eax, eax
je 0x40797b
mov dword [ebp - 0x7c], 1
cmp ebx, edi
je 0x4079e2
cmp dword [ebp - 0x80], edi
je 0x4079e2
cmp dword [ebp - 0x7c], edi
je 0x4079e2
mov edi, dword [ebp - 0x78]
mov ecx, edi
call fcn.00406070
test eax, eax
je 0x4079e2
push str.SmartCloudWBIME.users
lea eax, [ebp + 0x7ac]
push eax
lea eax, [ebp + 0x5a4]
push str._s_s_
push eax
call fcn.0040a913
add esp, 0x10
lea eax, [ebp + 0x5a4]
push eax
call esi
test eax, eax
jne 0x4079d1
lea eax, [ebp + 0x5a4]
push eax
call fcn.00407b0d
pop ecx
lea eax, [ebp + 0x5a4]
push eax
lea ecx, [edi + 0x24]
call fcn.0040153c
jmp 0x4079ea
mov ecx, dword [ebp - 0x78]
call fcn.004074e4
mov ecx, dword [ebp + 0xbbc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a784
add ebp, 0xbc0
leave
ret
Function at 0x407a02
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.0040138c
push str.Skin_
mov ecx, esi
call fcn.0040161a
cmp dword [esi + 0x18], 8
jb 0x407a2c
mov eax, dword [esi + 4]
jmp 0x407a2f
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407a4f
cmp dword [esi + 0x18], 8
jb 0x407a45
mov esi, dword [esi + 4]
jmp 0x407a48
add esi, 4
push esi
call fcn.00407b0d
pop ecx
pop esi
ret

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

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
call fcn.0040a2da
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.00409ea8
push dword [esp + 0x1c]
mov esi, eax
push esi
call fcn.0040a8f7
add esp, 0x10
xor ebp, ebp
test edi, edi
mov bl, 1
jl 0x407b7c
cmp word [esi + ebp*2], 0x5c
jne 0x407b73
and word [esi + ebp*2], 0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407b6d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407b7a
mov word [esi + ebp*2], 0x5c
inc ebp
cmp ebp, edi
jle 0x407b4a
jmp 0x407b7c
xor bl, bl
push esi
call fcn.0040aa7a
pop ecx
pop edi
pop esi
pop ebp
movzx eax, bl
pop ebx
ret

Function at 0x407bc6
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7ac]
sub esp, 0x82c
mov eax, dword [0x43c380]
xor eax, ebp
mov dword [ebp + 0x7a8], eax
push esi
push edi
mov edi, dword [ebp + 0x7b4]
push 0x44
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040aa00
push 0x10
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp - 0x80], 0x44
call fcn.0040aa00
push edi
lea eax, [ebp - 0x28]
push 0x430478
push eax
call fcn.0040a913
add esp, 0x24
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407c62
push 0xffffffffffffffff
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x34]
call esi
mov ecx, dword [ebp + 0x7a8]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a784
add ebp, 0x7ac
leave
ret