joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4412a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4412d3
push esi
call fcn.00444390
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4412cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x441359
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x441342
mov eax, dword [esi + 8]
test eax, eax
je 0x4412f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44133e
cmp eax, 2
je 0x441342
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4412ea
cmp eax, 3
je 0x44131d
cmp eax, 1
jne 0x4412ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4412ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4412ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00441380
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x441368
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00441380
add esp, 4
pop esi
ret

Function at 0x45f998
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45f9d0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045da4c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045da24
jmp 0x45f9dc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x461086
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4610c8
call fcn.00466b82
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4610c8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4610bf
xor eax, eax
jmp 0x4610d0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004610d6
pop edi
pop esi
pop ebx
ret 4

Function at 0x4670b2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4670e0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4670fe
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00467018
jmp 0x4670fe
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4670fe
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00467018
test edi, edi
mov eax, edi
jne 0x4670e8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401c00
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x521ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push esi
mov eax, dword [0x574674]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
add ecx, 4
push ecx
lea eax, [esp + 0x38]
push eax
call fcn.0040a680
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x28], esp
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0x80], ebx
push ebx
lea edx, [esp + 0x58]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00404df0
lea esi, [esp + 0x34]
call fcn.0040a8e0
add esp, 0x1c
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x401c8b
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x60], 2
jne 0x401d09
cmp esi, ebx
je 0x401ccc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x30], 8
jb 0x401ce0
mov edx, dword [esp + 0x1c]
push edx
call fcn.00418473
add esp, 4
cmp dword [esp + 0x4c], 0x10
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
jb 0x401d05
mov eax, dword [esp + 0x38]
push eax
call fcn.00418473
add esp, 4
xor eax, eax
jmp 0x401d81
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x28], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x58]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00404df0
call fcn.0040e030
cmp esi, ebx
je 0x401d43
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x30], 8
jb 0x401d57
mov eax, dword [esp + 0x1c]
push eax
call fcn.00418473
add esp, 4
cmp dword [esp + 0x4c], 0x10
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
jb 0x401d7c
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00418473
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004338df
mov esp, ebp
pop ebp
ret

Function at 0x405700
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405719
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405754
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x405750
lea ebx, [ebx]
cmp esi, eax
jae 0x405754
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405740
cmp esi, eax
jb 0x40575a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x407dd0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x21c
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov edi, 0x1a
lea esi, [esp + 0x10]
call fcn.00408210
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407e00
sub eax, edx
sar eax, 1
je 0x407eac
lea edi, [esp + 0x10]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407e20
mov edx, dword [0x566fd4]
mov dword [edi], edx
lea edi, [esp + 0x10]
add edi, 0xfffffffe
jmp 0x407e40
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407e40
mov ecx, 7
mov esi, str.SmartCloudIME
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x10]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407e60
lea eax, [esp + 0x10]
push eax
mov dword [edi], edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407e86
lea eax, [esp + 0x10]
call fcn.00409610
lea eax, [esp + 0x10]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407e90
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.00402110
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor ecx, esp
call fcn.004338df
add esp, 0x21c
ret

Function at 0x407ed0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x21c
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov edi, 0x1a
lea esi, [esp + 0x10]
call fcn.00408210
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407f00
sub eax, edx
sar eax, 1
je 0x407fac
lea edi, [esp + 0x10]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407f20
mov edx, dword [0x566fd4]
mov dword [edi], edx
lea edi, [esp + 0x10]
add edi, 0xfffffffe
jmp 0x407f40
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407f40
mov ecx, 0xa
mov esi, str.SmartCloudIME.users
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x10]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407f60
lea eax, [esp + 0x10]
push eax
mov dword [edi], edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407f86
lea eax, [esp + 0x10]
call fcn.00409610
lea eax, [esp + 0x10]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407f90
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.00402110
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor ecx, esp
call fcn.004338df
add esp, 0x21c
ret
Function at 0x408090
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x206
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.00437ec0
add esp, 0xc
push 1
push 0x1a
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x408124
lea edx, [esp]
push edx
call fcn.004342a7
lea eax, [esp + 4]
push str.config_systemprofile
push eax
call fcn.00434310
add esp, 0xc
test eax, eax
jne 0x408108
lea ecx, [esp]
push str.cocuments_and_settingslocalService
push ecx
call fcn.00434310
add esp, 8
test eax, eax
je 0x408124
mov al, 1
mov byte [0x586a64], al
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004338df
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
mov al, byte [0x586a64]
xor ecx, esp
call fcn.004338df
add esp, 0x20c
ret

Function at 0x408210
Capabilities:
Get common file path

Disassembly:
mov al, byte [0x586a64]
sub esp, 8
push ebx
xor bl, bl
test al, al
jne 0x408228
call fcn.00408090
test al, al
je 0x40826a
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0
call fcn.00408140
test al, al
je 0x40826a
mov ecx, dword [esp + 8]
push esi
push 1
push ecx
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x408255
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x40827c
push 0
push edi
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
mov al, 1
jne 0x40827e
mov al, bl
pop ebx
add esp, 8
ret

Function at 0x408290
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x1c
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push esi
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x4082c9
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004338df
add esp, 0x1c
ret 4
lea eax, [esp + 0xc]
push eax
push str.A520A1A4_1780_4FF6_BD18_167343C5AF16
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea ecx, [esp + 8]
push ecx
push 0
push 0x400
lea edx, [esp + 0x18]
push edx
call esi
test eax, eax
jl 0x4082b5
mov eax, dword [esp + 8]
mov edx, edi
sub edx, eax
jmp 0x408300
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x408300
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esp + 0x1c]
test eax, eax
setne al
pop esi
xor ecx, esp
call fcn.004338df
add esp, 0x1c
ret 4
Function at 0x408330
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ecx
push esi
push edi
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x408354
push eax
mov edi, ebx
call fcn.00408290
test al, al
je 0x408354
mov al, 1
pop edi
pop esi
pop ecx
ret
push 0x104
push ebx
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x408393
mov edi, ebx
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x408370
mov ecx, 9
mov esi, str.AppDataLocalLow
push ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40834e
pop edi
xor al, al
pop esi
pop ecx
ret

Function at 0x4083a0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0x208], eax
cmp dword [esi + 0x40], 8
jb 0x4083bf
mov eax, dword [esi + 0x2c]
jmp 0x4083c2
lea eax, [esi + 0x2c]
push str.Config
push eax
lea eax, [esp + 8]
push str._s_s_
push eax
call fcn.004338ee
add esp, 0x10
lea ecx, [esp]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4083f0
lea eax, [esp]
call fcn.00409610
lea eax, [esp]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4083f6
mov edx, dword [str.Related.ini]
mov ecx, dword [0x567084]
mov dword [eax], edx
mov edx, dword [0x567088]
mov dword [eax + 4], ecx
mov ecx, dword [0x56708c]
mov dword [eax + 8], edx
mov edx, dword [0x567090]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x567094]
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
lea eax, [esp]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408440
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 4]
push edx
lea ecx, [esi + 0xd0]
call fcn.00402110
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004338df
add esp, 0x20c
ret

Function at 0x408580
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0x208], eax
cmp dword [esi + 0x40], 8
jb 0x40859f
mov eax, dword [esi + 0x2c]
jmp 0x4085a2
lea eax, [esi + 0x2c]
push str.UseData
push eax
lea eax, [esp + 8]
push str._s_s_
push eax
call fcn.004338ee
add esp, 0x10
lea ecx, [esp]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4085d0
lea eax, [esp]
call fcn.00409610
lea eax, [esp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4085d6
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 4]
push edx
lea ecx, [esi + 0x108]
call fcn.00402110
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004338df
add esp, 0x20c
ret
Function at 0x4086e0
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
push 0xffffffffffffffff
lea esi, [eax + 0x60]
push 0
add eax, 0x28
push eax
mov ecx, esi
call fcn.00401e80
push 5
push str.Skin_
mov ecx, esi
call fcn.00402010
cmp dword [esi + 0x18], 8
jb 0x40870c
mov eax, dword [esi + 4]
jmp 0x40870f
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408732
cmp dword [esi + 0x18], 8
jb 0x408729
mov eax, dword [esi + 4]
pop esi
jmp fcn.00409610
lea eax, [esi + 4]
pop esi
jmp fcn.00409610
pop esi
ret

Function at 0x408740
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push 0x206
lea eax, [esp + 0xa]
push 0
push eax
mov esi, ecx
mov word [esp + 0x10], 0
call fcn.00437ec0
add esp, 0xc
cmp dword [esi + 0x40], 8
jb 0x40877d
mov esi, dword [esi + 0x2c]
jmp 0x408780
add esi, 0x2c
push str.AllSkin
push esi
lea ecx, [esp + 0xc]
push str._s_s_
push ecx
call fcn.004338ee
add esp, 0x10
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop esi
jne 0x4087b0
lea eax, [esp]
call fcn.00409610
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004338df
add esp, 0x20c
ret

Function at 0x4087d0
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push 0x206
lea eax, [esp + 0xa]
push 0
push eax
mov esi, ecx
mov word [esp + 0x10], 0
call fcn.00437ec0
add esp, 0xc
push 0
push 0x26
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 4]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408820
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 8]
add esi, 0x178
push edx
mov ecx, esi
call fcn.00402110
push 1
push 0x566fd4
mov ecx, esi
call fcn.00402010
cmp dword [esi + 0x18], 8
jb 0x40885b
mov eax, dword [esi + 4]
jmp 0x40885e
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408877
push 0x11
push str.C:Program_Files_
mov ecx, esi
call fcn.00402110
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.004338df
add esp, 0x20c
ret

Function at 0x408890
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov esi, ecx
mov word [esp + 0x14], 0
call fcn.00437ec0
add esp, 0xc
lea ebx, [esp + 8]
call fcn.00408330
test al, al
jne 0x4088df
push 0
push 0x1a
mov ecx, ebx
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4088e6
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xc]
add esi, 0x194
push edx
mov ecx, esi
call fcn.00402110
push 1
push 0x566fd4
mov ecx, esi
call fcn.00402010
mov ecx, dword [esp + 0x214]
pop esi
pop ebx
xor ecx, esp
call fcn.004338df
add esp, 0x214
ret
Function at 0x409330
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x52149b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
push edi
mov eax, dword [0x574674]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xcc], 8
jb 0x40937c
mov edx, dword [edi + 0xb8]
jmp 0x409382
lea edx, [edi + 0xb8]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409387
sub eax, esi
sar eax, 1
push eax
lea esi, [edi + 0x124]
push edx
mov ecx, esi
call fcn.00402110
push 0x12
push str.SmartCloudInfo.ini
mov ecx, esi
call fcn.00402010
lea eax, [esp + 0xc]
call fcn.004094d0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x14]
add edi, 0x140
push eax
mov ecx, edi
mov dword [esp + 0x248], 0
call fcn.00401e80
mov ecx, dword [edi + 0x14]
push 2
push 0x5671b0
push ecx
push 0
mov ecx, edi
call fcn.00404a10
test eax, eax
jne 0x40945e
push 0x206
push eax
lea edx, [esp + 0x32]
push edx
mov word [esp + 0x34], ax
call fcn.00437ec0
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x409418
mov esi, dword [esi + 4]
jmp 0x40941b
add esi, 4
push esi
push 0x104
lea eax, [esp + 0x30]
push eax
push 0x5671b0
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409442
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.00402110
cmp dword [esp + 0x24], 8
jb 0x409472
mov edx, dword [esp + 0x10]
push edx
call fcn.00418473
add esp, 4
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004338df
add esp, 0x234
ret

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

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, eax
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409620
sub eax, edx
sar eax, 1
mov ebp, eax
xor ecx, ecx
lea eax, [ebp + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041846e
mov esi, eax
mov edx, esi
add esp, 4
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x409655
xor edi, edi
test ebp, ebp
mov byte [esp + 0xf], 1
jl 0x4096bd
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp word [esi + edi*2], 0x5c
jne 0x40969c
push esi
mov word [esi + edi*2], 0
call ebx
test eax, eax
jne 0x409696
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4096b7
mov word [esi + edi*2], 0x5c
add edi, 1
cmp edi, ebp
jle 0x409676
pop ebx
push esi
call fcn.00418473
movzx eax, byte [esp + 0x13]
add esp, 4
pop edi
pop esi
pop ebp
pop ecx
ret
mov byte [esp + 0x13], 0
pop ebx
push esi
call fcn.00418473
movzx eax, byte [esp + 0x13]
add esp, 4
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x4096d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x521460
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x574674]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
push 0x44
xor esi, esi
lea eax, [esp + 0x28]
push esi
push eax
mov edi, ecx
call fcn.00437ec0
add esp, 0xc
xor eax, eax
mov ebp, 7
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x98], esi
mov word [esp + 0x88], si
mov dword [esp + 0xac], esi
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], esi
mov word [esp + 0x6c], si
mov eax, edi
mov byte [esp + 0xac], 1
lea edx, [eax + 2]
jmp 0x409780
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x409780
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x8c]
call fcn.00402110
mov eax, dword [esp + 0x88]
mov edi, 8
cmp dword [esp + 0x9c], edi
jae 0x4097b9
lea eax, [esp + 0x88]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
push esi
push esi
push 1
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x409819
cmp dword [esp + 0x80], edi
jb 0x4097ec
mov eax, dword [esp + 0x6c]
push eax
call fcn.00418473
add esp, 4
cmp dword [esp + 0x9c], edi
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], esi
mov word [esp + 0x6c], si
jb 0x409815
mov ecx, dword [esp + 0x88]
push ecx
call fcn.00418473
add esp, 4
xor eax, eax
jmp 0x409871
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [esp + 0x18]
push eax
call ebx
cmp dword [esp + 0x80], edi
jb 0x409843
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00418473
add esp, 4
cmp dword [esp + 0x9c], edi
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], esi
mov word [esp + 0x6c], si
jb 0x40986c
mov edx, dword [esp + 0x88]
push edx
call fcn.00418473
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.004338df
add esp, 0x9c
ret