joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a620
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push 0
mov eax, dword [ebp + 8]
push eax
push 0x41422c
call fcn.00412fb0
add esp, 0xc
test eax, eax
jne 0x40a678
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0x4141fc
call fcn.00412f10
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40a676
mov edx, dword [ebp - 0xc]
push edx
call fcn.00409770
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.00412e70
add esp, 4
jmp 0x40a640
jmp 0x40a629
push 0x10000
call fcn.00412e40
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40a80f
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 0x403bcc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
lea ecx, [ebp - 0x26c]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40a774
mov eax, dword [ebp - 0x26c]
and eax, 0x10
je 0x40a74c
mov dword [ebp - 8], 0
jmp 0x40a6ea
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x22
jae 0x40a712
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x414130]
push eax
lea ecx, [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x40a710
jmp 0x40a74c
jmp 0x40a6e1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 0x403bd4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040a620
add esp, 4
lea edx, [ebp - 0x26c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40a6cd
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindClose]
jmp 0x40a803
cmp dword [0x41425c], 0
je 0x40a803
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00412e40
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push eax
mov edx, dword [ebp + 8]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0x403bd8
call fcn.00404d20
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00412e70
add esp, 4
mov edx, dword [ebp - 4]
push edx
call fcn.00412e70
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x40a910
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], 0x4000
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x13
push 0
push 2
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x40a9dc
mov edx, dword [ebp - 8]
push edx
call fcn.00412e40
add esp, 4
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x40a9d3
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
jne 0x40a9c7
mov dword [ebp - 4], 0
jmp 0x40a97f
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0xc]
jae 0x40a9c5
mov eax, dword [ebp - 4]
shl eax, 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax + 0xc]
and edx, 2
je 0x40a9ad
mov eax, dword [ebp - 4]
shl eax, 5
add eax, dword [ebp + 8]
push eax
call fcn.0040a910
add esp, 4
jmp 0x40a9c3
mov ecx, dword [ebp - 4]
shl ecx, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx + 0x14]
push eax
call fcn.0040a620
add esp, 4
jmp 0x40a976
jmp 0x40a954
mov ecx, dword [ebp + 8]
push ecx
call fcn.00412e70
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call sub.MPR.dll_WNetCloseEnum
mov esp, ebp
pop ebp
ret

Function at 0x40a9e0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
call sub.NETAPI32.dll_NetShareEnum
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40aa31
cmp dword [ebp - 0xc], 0xea
jne 0x40aafe
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
mov dword [ebp - 8], 1
jmp 0x40aa49
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x10]
ja 0x40aaf5
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
je 0x40aa6a
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0x80000000
jne 0x40aae7
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, 2
jle 0x40aae7
push 0x403bf0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x40aae7
push 0x403c00
lea edx, [ebp - 0xe4]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xe4]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push 0x403c08
lea edx, [ebp - 0xe4]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0xe4]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
lea eax, [ebp - 0xe4]
push eax
call fcn.0040a620
add esp, 4
mov ecx, dword [ebp - 4]
add ecx, 0xc
mov dword [ebp - 4], ecx
jmp 0x40aa40
mov edx, dword [ebp - 0x14]
push edx
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp - 0xc], 0xea
je 0x40a9fe
mov esp, ebp
pop ebp
ret
Function at 0x40ab10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0xe
call fcn.00412e40
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40abed
push 0x403c0c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 0x403c18
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov edx, 2
shl edx, 2
mov eax, dword [ebp - 4]
mov cx, word [ebp + 8]
mov word [eax + edx], cx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40abe1
cmp dword [ebp - 0xc], 5
je 0x40abe1
cmp dword [ebp - 0xc], 4
je 0x40ab8e
mov eax, dword [ebp - 4]
push eax
call fcn.0040a620
add esp, 4
jmp 0x40abe1
mov dword [ebp - 0x10], 0x104
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
call fcn.00412e40
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40abe1
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, 2
shl ecx, 2
add ecx, dword [ebp - 4]
push ecx
call sub.MPR.dll_WNetGetConnectionW
test eax, eax
jne 0x40abd5
mov edx, dword [ebp - 8]
push edx
call fcn.0040a620
add esp, 4
mov eax, dword [ebp - 8]
push eax
call fcn.00412e70
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.00412e70
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4013b2
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5b9460]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor esi, esi
lea eax, [ebp - 0x20a]
push esi
push eax
mov edi, ecx
call fcn.00531ed0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov ecx, edi
call fcn.004015ff
test al, al
jne 0x401422
push esi
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call fcn.005325f3
pop ecx
test eax, eax
je 0x40149d
push ebx
mov ebx, 0x55fd68
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.005325a4
lea eax, [ebp - 0x20c]
push str.SmartCloudWBIME
push eax
call fcn.005325a4
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.005325a4
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
jne 0x401475
lea eax, [ebp - 0x20c]
push eax
call fcn.004034ab
pop ecx
cmp word [ebp - 0x20c], si
je 0x40148d
lea eax, [ebp - 0x20c]
push eax
call fcn.005325f3
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi + 0x3c]
call fcn.00403288
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00532a3d
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5b9460]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor esi, esi
lea eax, [ebp - 0x20a]
push esi
push eax
mov edi, ecx
call fcn.00531ed0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov ecx, edi
call fcn.004015ff
test al, al
jne 0x40151b
push esi
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call fcn.005325f3
pop ecx
test eax, eax
je 0x401596
push ebx
mov ebx, 0x55fd68
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.005325a4
lea eax, [ebp - 0x20c]
push str.SmartCloudWBIME.users
push eax
call fcn.005325a4
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.005325a4
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
jne 0x40156e
lea eax, [ebp - 0x20c]
push eax
call fcn.004034ab
pop ecx
cmp word [ebp - 0x20c], si
je 0x401586
lea eax, [ebp - 0x20c]
push eax
call fcn.005325f3
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi + 0x24]
call fcn.00403288
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00532a3d
leave
ret
Function at 0x4016c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5b9460]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call fcn.00531ed0
add esi, 0x3c
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4016ff
mov esi, dword [esi]
push str.AllSkin
push esi
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.00532980
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop esi
test eax, eax
jne 0x401738
lea eax, [ebp - 0x20c]
push eax
call fcn.004034ab
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00532a3d
leave
ret

Function at 0x401744
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5b9460]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [esi + 0x3c]
cmp dword [eax + 0x14], 8
jb 0x401765
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.00532980
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40179d
lea eax, [ebp - 0x20c]
push eax
call fcn.004034ab
pop ecx
lea eax, [ebp - 0x20c]
push str.Related.ini
push eax
call fcn.005325a4
cmp word [ebp - 0x20c], 0
pop ecx
pop ecx
jne 0x4017be
xor eax, eax
jmp 0x4017cb
lea eax, [ebp - 0x20c]
push eax
call fcn.005325f3
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0xcc]
call fcn.00403288
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00532a3d
leave
ret
Function at 0x4017eb
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc38
mov eax, dword [0x5b9460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
xor edi, edi
mov word [ebp - 0xc34], ax
lea eax, [ebp - 0xc32]
push edi
push eax
mov ebx, ecx
call fcn.00531ed0
xor eax, eax
push esi
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push edi
push eax
call fcn.00531ed0
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
call fcn.00531ed0
xor eax, eax
push esi
mov word [ebp - 0xa2c], ax
lea eax, [ebp - 0xa2a]
push edi
push eax
call fcn.00531ed0
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.00531ed0
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00531ed0
add esp, 0x48
lea eax, [ebp - 0xc34]
push edi
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.005325d3
lea eax, [ebp - 0x414]
push eax
call fcn.005325f3
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.0053260c
add esp, 0x14
test eax, eax
je 0x401a28
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.005325d3
lea eax, [ebp - 0x824]
push str.Local
push eax
call fcn.005325a4
add esp, 0x10
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
inc ecx
test eax, eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
mov esi, edi
push eax
cmovne esi, ecx
call fcn.005325d3
lea eax, [ebp - 0x61c]
push str.LocalLow
push eax
call fcn.005325a4
add esp, 0x10
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
push 1
pop eax
mov ecx, edi
cmovne ecx, eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xa2c]
push eax
mov dword [ebp - 0xc38], ecx
call fcn.005325d3
lea eax, [ebp - 0xa2c]
push str.Roaming
push eax
call fcn.005325a4
add esp, 0x10
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
push 1
mov ecx, edi
pop eax
cmovne ecx, eax
test esi, esi
je 0x401a28
cmp dword [ebp - 0xc38], edi
je 0x401a28
test ecx, ecx
je 0x401a28
mov ecx, ebx
call fcn.00402c89
test eax, eax
je 0x401a28
push str.SmartCloudWBIME
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push 0x55fdf0
push eax
call fcn.00532980
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4019fe
lea eax, [ebp - 0x20c]
push eax
call fcn.004034ab
pop ecx
cmp word [ebp - 0x20c], di
je 0x401a16
lea eax, [ebp - 0x20c]
push eax
call fcn.005325f3
pop ecx
mov edi, eax
push edi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebx + 0x3c]
call fcn.00403288
jmp 0x401a2f
mov ecx, ebx
call fcn.004013b2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00532a3d
leave
ret
Function at 0x401a3e
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc38
mov eax, dword [0x5b9460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
xor edi, edi
mov word [ebp - 0xc34], ax
lea eax, [ebp - 0xc32]
push edi
push eax
mov ebx, ecx
call fcn.00531ed0
xor eax, eax
push esi
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push edi
push eax
call fcn.00531ed0
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
call fcn.00531ed0
xor eax, eax
push esi
mov word [ebp - 0xa2c], ax
lea eax, [ebp - 0xa2a]
push edi
push eax
call fcn.00531ed0
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.00531ed0
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00531ed0
add esp, 0x48
lea eax, [ebp - 0xc34]
push edi
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.005325d3
lea eax, [ebp - 0x414]
push eax
call fcn.005325f3
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.0053260c
add esp, 0x14
test eax, eax
je 0x401c7b
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.005325d3
lea eax, [ebp - 0x824]
push str.Local
push eax
call fcn.005325a4
add esp, 0x10
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
inc ecx
test eax, eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
mov esi, edi
push eax
cmovne esi, ecx
call fcn.005325d3
lea eax, [ebp - 0x61c]
push str.LocalLow
push eax
call fcn.005325a4
add esp, 0x10
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
push 1
pop eax
mov ecx, edi
cmovne ecx, eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xa2c]
push eax
mov dword [ebp - 0xc38], ecx
call fcn.005325d3
lea eax, [ebp - 0xa2c]
push str.Roaming
push eax
call fcn.005325a4
add esp, 0x10
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
push 1
mov ecx, edi
pop eax
cmovne ecx, eax
test esi, esi
je 0x401c7b
cmp dword [ebp - 0xc38], edi
je 0x401c7b
test ecx, ecx
je 0x401c7b
mov ecx, ebx
call fcn.00402c89
test eax, eax
je 0x401c7b
push str.SmartCloudWBIME.users
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push 0x55fdf0
push eax
call fcn.00532980
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401c51
lea eax, [ebp - 0x20c]
push eax
call fcn.004034ab
pop ecx
cmp word [ebp - 0x20c], di
je 0x401c69
lea eax, [ebp - 0x20c]
push eax
call fcn.005325f3
pop ecx
mov edi, eax
push edi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebx + 0x24]
call fcn.00403288
jmp 0x401c82
mov ecx, ebx
call fcn.004014ab
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00532a3d
leave
ret
Function at 0x401c91
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5b9460]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [esi + 0x3c]
cmp dword [eax + 0x14], 8
jb 0x401cb2
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.00532980
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401cea
lea eax, [ebp - 0x20c]
push eax
call fcn.004034ab
pop ecx
lea eax, [ebp - 0x20c]
push str.Config.ini
push eax
call fcn.005325a4
cmp word [ebp - 0x20c], 0
pop ecx
pop ecx
jne 0x401d0b
xor eax, eax
jmp 0x401d18
lea eax, [ebp - 0x20c]
push eax
call fcn.005325f3
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x54]
call fcn.00403288
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00532a3d
leave
ret
Function at 0x402321
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x5b9460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor esi, esi
lea eax, [ebp - 0x20a]
push esi
push eax
mov ebx, ecx
call fcn.00531ed0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x228
mov edi, eax
lea eax, [ebp - 0x434]
push esi
push eax
mov dword [ebp - 0x438], esi
call fcn.00531ed0
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4023f4
lea eax, [ebp - 0x438]
push eax
push esi
mov dword [ebp - 0x438], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4023b9
cmp dword [ebp - 0x430], edi
je 0x4023bf
lea eax, [ebp - 0x438]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4023a4
jmp 0x4023d4
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.005325d3
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call fcn.005328b2
pop ecx
push eax
lea ecx, [ebx + 0x15c]
call fcn.00403261
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00532a3d
leave
ret
Function at 0x402a2e
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5b9460]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [esi + 0x3c]
cmp dword [eax + 0x14], 8
jb 0x402a4f
mov eax, dword [eax]
push str.UseData
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.00532980
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402a87
lea eax, [ebp - 0x20c]
push eax
call fcn.004034ab
pop ecx
cmp word [ebp - 0x20c], 0
jne 0x402a95
xor eax, eax
jmp 0x402aa2
lea eax, [ebp - 0x20c]
push eax
call fcn.005325f3
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x144]
call fcn.00403288
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00532a3d
leave
ret

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

Disassembly:
push esi
push edi
mov edi, ecx
call fcn.00403d8d
mov dword [edi], eax
call fcn.00403df9
mov dword [edi + 8], eax
call fcn.00403e28
mov dword [edi + 0xc], eax
call fcn.00403d2f
mov dword [edi + 0x10], eax
call fcn.00403cd1
mov dword [edi + 0x18], eax
call fcn.00403c73
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [edi + 0x1c], eax
mov eax, dword [edi]
mov dword [edi + 4], eax
lea eax, [edi + 0x188]
push eax
call esi
lea eax, [edi + 0x1a0]
push eax
call esi
lea eax, [edi + 0x190]
push eax
call esi
lea eax, [edi + 0x1d0]
push eax
call esi
lea eax, [edi + 0x1b0]
push eax
call esi
lea eax, [edi + 0x1c0]
push eax
call esi
mov eax, dword [0x5ba980]
mov dword [edi + 0x174], eax
pop edi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5b9460]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call fcn.00531ed0
add esi, 0x24
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x402c00
mov eax, dword [esi]
jmp 0x402c02
mov eax, esi
push 0x55ff38
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.00532980
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402c3b
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x14], 8
jb 0x402c43
mov esi, dword [esi]
push str.Dict
push esi
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.00532980
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop esi
test eax, eax
jne 0x402c7d
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00532a3d
leave
ret