joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401912
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x83c
push ebx
push esi
push edi
push 0xa
push str.LIEBAOSETUP
push 0
mov byte [esp + 0x1b], dl
mov byte [esp + 0x1a], cl
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x401acf
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x401acf
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x401acf
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [esp + 0x638]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x401acf
lea edx, [esp + 0x428]
lea ecx, [esp + 0x638]
call fcn.00401334
mov esi, eax
cmp esi, 0xffffffff
je 0x401acf
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
test ecx, ecx
jg 0x4019c7
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4019be
sub ecx, edx
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ecx
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esi, 0x206
push esi
mov word [esp + 0x1c], ax
xor ebx, ebx
lea eax, [esp + 0x1e]
push ebx
push eax
call fcn.00401bf5
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00401283
test al, al
je 0x401ac1
push str.lbmini.exe
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0x18]
call fcn.0040181a
xor eax, eax
mov byte [esp + 0xd], bl
push esi
mov word [esp + 0x224], ax
lea eax, [esp + 0x226]
push ebx
push eax
call fcn.00401bf5
add esp, 0xc
lea eax, [esp + 0x18]
mov edx, 0x104
lea ecx, [esp + 0x220]
push eax
call fcn.004011c9
lea eax, [esp + 0xd]
push eax
lea edx, [esp + 0x224]
lea ecx, [esp + 0x42c]
call fcn.00401463
pop ecx
test eax, eax
jne 0x401ab6
xor edx, edx
lea ecx, [esp + 0x220]
call fcn.0040168e
cmp byte [esp + 0xd], bl
jne 0x401a9b
mov byte [esp + 0x10], 1
cmp byte [esp + 0xe], bl
je 0x401a9f
mov byte [esp + 0x10], bl
push dword [esp + 0x10]
mov dl, byte [esp + 0x13]
lea ecx, [esp + 0x224]
call fcn.0040137d
pop ecx
jmp 0x401ac1
mov edx, eax
lea ecx, [esp + 0x18]
call fcn.0040168e
lea eax, [esp + 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ad8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, eax
xor esi, esi
xor al, al
mov dword [ebp - 8], ecx
mov bl, 1
mov byte [ebp + 0x13], al
cmp dword [ebp - 4], esi
jle 0x401b93
push edi
mov edx, dword [ecx + esi*4]
mov ecx, str.__upgrade
mov eax, edx
mov di, word [eax]
cmp di, word [ecx]
jne 0x401b38
test di, di
je 0x401b34
mov di, word [eax + 2]
cmp di, word [ecx + 2]
jne 0x401b38
add eax, 4
add ecx, 4
test di, di
jne 0x401b12
xor eax, eax
jmp 0x401b3d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401b48
mov al, 1
mov byte [ebp + 0x13], al
jmp 0x401b85
mov eax, str.__disable_shortcut
mov cx, word [edx]
cmp cx, word [eax]
jne 0x401b73
test cx, cx
je 0x401b6f
mov cx, word [edx + 2]
cmp cx, word [eax + 2]
jne 0x401b73
add edx, 4
add eax, 4
test cx, cx
jne 0x401b4d
xor eax, eax
jmp 0x401b78
sbb eax, eax
or eax, 1
xor ecx, ecx
movzx ebx, bl
test eax, eax
mov al, byte [ebp + 0x13]
cmove ebx, ecx
mov ecx, dword [ebp - 8]
inc esi
cmp esi, dword [ebp - 4]
jl 0x401b08
pop edi
mov dl, bl
mov cl, al
call fcn.00401912
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401450
Capabilities:
Create thread

Disassembly:
sub esp, 0x10c
mov eax, dword [0x509690]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x114]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x11c]
push 0x104
mov ebx, ecx
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x18], eax
call fcn.0043db40
add esp, 0xc
cmp dword [esi + 0x18], 8
lea ebp, [esi + 4]
jb 0x40149d
mov eax, dword [ebp]
jmp 0x40149f
mov eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 1
call edi
cmp dword [esi + 0x18], 8
jb 0x4014c2
mov ecx, dword [ebp]
jmp 0x4014c4
mov ecx, ebp
xor ebp, ebp
push ebp
push ebp
push eax
lea edx, [esp + 0x20]
push edx
push 0xffffffffffffffff
push ecx
push ebp
push 1
call edi
mov eax, dword [esp + 0x10]
mov edi, dword [ebx + 4]
push eax
lea edx, [esp + 0x18]
call fcn.00401270
mov esi, dword [ebx + 4]
lea ecx, [esp + 0x10]
push ecx
push ebp
push esi
push 0x4011f0
push ebp
push ebp
mov dword [esp + 0x28], ebp
call fcn.00445b14
add esp, 0x18
cmp eax, ebp
mov dword [esi + 0xc], eax
pop edi
je 0x401536
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40152e
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], ebp
mov eax, dword [ebx + 4]
mov al, byte [eax + 4]
jmp 0x40153c
mov ecx, dword [ebx + 4]
mov al, byte [ecx + 4]
jmp 0x40153c
mov edx, dword [ebx + 4]
mov al, byte [edx + 4]
mov ecx, dword [esp + 0x114]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043db25
add esp, 0x10c
ret 8
Function at 0x402270
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4c7c98
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [0x509690]
xor eax, esp
mov dword [esp + 0x624], eax
push ebx
push ebp
push edi
mov eax, dword [0x509690]
xor eax, esp
push eax
lea eax, [esp + 0x638]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esi], ebx
mov eax, 7
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x10], esi
mov word [esi + 0xc], bx
lea edi, [esi + 0x24]
mov dword [esp + 0x640], ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov word [edi + 4], bx
mov dword [esi + 0x58], eax
mov dword [esi + 0x54], ebx
mov word [esi + 0x44], bx
lea ecx, [esi + 0x5c]
mov byte [esp + 0x640], 2
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x4e3170
mov byte [ecx + 4], bl
call fcn.00401800
push ebx
mov byte [esp + 0x644], 3
call fcn.0043eaf6
push eax
call fcn.00441d99
push 0x20a
lea eax, [esp + 0x22]
push ebx
push eax
mov word [esp + 0x28], bx
call fcn.0043db40
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x4023d1
push 0x410
lea edx, [esp + 0x226]
push ebx
push edx
mov word [esp + 0x22a], bx
mov word [esp + 0x22c], bx
call fcn.0043db40
add esp, 0xc
push 0x208
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x4023ae
cmp eax, ebx
je 0x4023ae
lea edx, [esp + 0x220]
push edx
mov ecx, edi
mov word [esp + eax*2 + 0x224], bx
call fcn.00403360
jmp 0x4023d1
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4023b5
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.00401a40
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x402408
lea ebp, [eax - 1]
cmp ebp, dword [edi + 0x14]
jbe 0x4023e5
call fcn.0043e002
cmp dword [edi + 0x18], 8
jb 0x4023f0
mov eax, dword [edi + 4]
jmp 0x4023f3
lea eax, [edi + 4]
cmp word [eax + ebp*2], 0x5c
je 0x402408
push 1
push 0x4e3174
mov ecx, edi
call fcn.004037c0
cmp dword [esi + 0x38], ebx
jne 0x40241b
push 3
push 0x4e3178
mov ecx, edi
call fcn.00401a40
mov eax, esi
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x638]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.0043db25
add esp, 0x634
ret
Function at 0x403ab0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4c7d38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x509690]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.00401d10
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403b10
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.004037c0
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], di
call fcn.00401d10
cmp dword [esp + 0x28], 8
jb 0x403b5b
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004ba1f0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret

Function at 0x404860
Capabilities:
Get http content length

Disassembly:
mov eax, dword [eax + 4]
sub esp, 8
test eax, eax
je 0x40489f
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push 0x20000005
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40489f
mov eax, dword [esp]
xor edx, edx
add esp, 8
ret
xor eax, eax
xor edx, edx
add esp, 8
ret

Function at 0x404c05
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esi]
test edi, edi
jne 0x404c15
xor eax, eax
jmp 0x404c3e
push ebx
mov ebx, dword [esp + 0x10]
push dword [ebx]
push edi
push 1
push dword [esp + 0x20]
call fcn.0043d426
add esp, 0x10
cmp eax, edi
mov dword [esi], eax
jne 0x404c35
xor eax, eax
jmp 0x404c3d
push dword [ebx]
call fcn.0043cfe1
pop ecx
pop ebx
pop edi
pop esi
ret
Function at 0x40996c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call fcn.0043dd2a
xor ebx, ebx
cmp eax, ebx
pop ecx
je 0x4099d5
cmp eax, 3
jle 0x4099d5
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call fcn.0043db40
push 3
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0043de9b
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4099f9
lea eax, [esi + 0x658]
cmp dword [eax], ebx
je 0x4099ec
mov eax, dword [eax]
mov edx, dword [eax]
push ebx
mov ecx, eax
call dword [edx + 0xd8]
lea eax, [esi + 0x660]
cmp dword [eax], ebx
je 0x409a29
push ebx
jmp 0x409a1d
lea eax, [esi + 0x658]
cmp dword [eax], ebx
je 0x409a11
mov eax, dword [eax]
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xd8]
lea eax, [esi + 0x660]
cmp dword [eax], ebx
je 0x409a29
push 1
mov eax, dword [eax]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xd8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db25
leave
ret 4

Function at 0x40a5fd
Capabilities:
Set registry value

Disassembly:
push 0x34
mov eax, 0x4c27d7
call fcn.0043e6b2
lea ecx, [ebp - 0x40]
call fcn.0040df13
xor esi, esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], esi
call fcn.0040decb
test eax, eax
je 0x40a696
lea eax, [ebp - 0x10]
push eax
mov edi, 0xf013f
push edi
push esi
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40a6fd
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push esi
push esi
push esi
push str.Clover
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x40a66f
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a6fd
push 0x104
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
jmp 0x40a6fb
lea eax, [ebp - 0x14]
push eax
mov edi, 0xf003f
push edi
push esi
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40a6fd
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push esi
push esi
push esi
push str.Clover
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x40a6d6
push dword [ebp - 0x14]
jmp 0x40a664
push 0x104
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x14]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040ddee
call fcn.0043e78a
ret 8
Function at 0x40a74c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0043db40
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 0x40a7a7
xor eax, eax
inc eax
cmp dword [ebp - 0x78], 0
je 0x40a79f
cmp dword [ebp - 0x78], eax
jne 0x40a7a7
cmp byte [ebp + 0x9a], al
je 0x40a7a9
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.0043db25
add ebp, 0xa0
leave
ret

Function at 0x40ab41
Capabilities:
Get common file path
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5a4]
sub esp, 0x624
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x5a0], eax
push ebx
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x39a]
mov ebx, ecx
push edi
push eax
mov dword [ebp - 0x80], ebx
mov word [ebp + 0x398], di
call fcn.0043db40
push esi
lea eax, [ebp + 0x192]
push edi
push eax
mov word [ebp + 0x190], di
call fcn.0043db40
add esp, 0x18
push edi
push 0x2b
lea eax, [ebp + 0x398]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebx + 0xa0]
cmp dword [eax + 0x18], 8
jb 0x40abba
mov eax, dword [eax + 4]
jmp 0x40abbd
add eax, 4
push eax
lea eax, [ebp + 0x190]
push eax
call fcn.0043dd0e
mov ebx, 0x4e3174
lea eax, [ebp + 0x398]
push ebx
push eax
call fcn.0043dce4
mov esi, str.Clover
lea eax, [ebp + 0x398]
push esi
push eax
call fcn.0043dce4
lea eax, [ebp + 0x398]
push ebx
push eax
call fcn.0043dce4
lea eax, [ebp + 0x398]
push eax
call fcn.0041d3b6
lea eax, [ebp + 0x398]
push esi
push eax
call fcn.0043dce4
lea eax, [ebp + 0x398]
push str..ini
push eax
call fcn.0043dce4
add esp, 0x34
lea eax, [ebp + 0x398]
push eax
lea eax, [ebp + 0x190]
push eax
mov ebx, str.InstallPath
push ebx
push str.Globals
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 0x80]
lea eax, [ebp + 0x190]
push eax
push ebx
call fcn.0040a5fd
push 0x206
lea eax, [ebp - 0x76]
push edi
push eax
mov word [ebp - 0x78], di
call fcn.0043db40
lea eax, [ebp - 0x78]
push 0x4ca120
push eax
call fcn.0043dd0e
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0043dce4
add esp, 0x1c
push edi
lea eax, [ebp - 0x7c]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
lea eax, [ebp - 0x78]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40acbf
push 0x104
lea eax, [ebp + 0x190]
push eax
push 1
push edi
push ebx
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x5a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db25
add ebp, 0x5a4
leave
ret
Function at 0x40bc7e
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x509690]
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.0043db40
add esp, 0xc
push 0x104
lea eax, [ebp - 0x80]
push eax
mov ecx, edi
call fcn.0040a884
test al, al
jne 0x40bce5
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.0043dd2a
test eax, eax
pop ecx
je 0x40bd36
mov esi, 0x4e3174
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0043dce4
lea eax, [ebp - 0x80]
push str.Clover
push eax
call fcn.0043dce4
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0043dce4
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40bd27
lea eax, [ebp - 0x80]
push eax
call fcn.0041d3b6
pop ecx
lea eax, [ebp - 0x80]
push eax
lea ecx, [edi + 0x180]
call fcn.00403360
mov ecx, dword [ebp + 0x188]
pop edi
xor ecx, ebp
pop esi
call fcn.0043db25
add ebp, 0x18c
leave
ret
Function at 0x40bf51
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xbc0]
sub esp, 0xc40
mov eax, dword [0x509690]
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.0043db40
push esi
lea eax, [ebp + 0x39e]
push edi
push eax
mov word [ebp + 0x39c], di
call fcn.0043db40
push esi
lea eax, [ebp + 0x7ae]
push edi
push eax
mov word [ebp + 0x7ac], di
call fcn.0043db40
push esi
lea eax, [ebp + 0x196]
push edi
push eax
mov word [ebp + 0x194], di
call fcn.0043db40
push esi
lea eax, [ebp + 0x9b6]
push edi
push eax
mov word [ebp + 0x9b4], di
call fcn.0043db40
push esi
lea eax, [ebp + 0x5a6]
push edi
push eax
mov word [ebp + 0x5a4], di
call fcn.0043db40
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.0043dd0e
lea eax, [ebp + 0x9b4]
push eax
call fcn.0043dd2a
lea eax, [ebp + 0x9b4]
push 0x5c
push eax
call fcn.0043eac6
add esp, 0x14
cmp eax, edi
je 0x40c15d
mov word [eax], di
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x39c]
push eax
call fcn.0043dd0e
lea eax, [ebp + 0x39c]
push str.Local
push eax
call fcn.0043dce4
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x39c]
push eax
call esi
test eax, eax
je 0x40c07d
inc ebx
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x7ac]
push eax
call fcn.0043dd0e
lea eax, [ebp + 0x7ac]
push str.LocalLow
push eax
call fcn.0043dce4
add esp, 0x10
lea eax, [ebp + 0x7ac]
push eax
call esi
test eax, eax
je 0x40c0b8
mov dword [ebp - 0x80], 1
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x194]
push eax
call fcn.0043dd0e
lea eax, [ebp + 0x194]
push str.Roaming
push eax
call fcn.0043dce4
add esp, 0x10
lea eax, [ebp + 0x194]
push eax
call esi
test eax, eax
je 0x40c0f3
mov dword [ebp - 0x7c], 1
cmp ebx, edi
je 0x40c15d
cmp dword [ebp - 0x80], edi
je 0x40c15d
cmp dword [ebp - 0x7c], edi
je 0x40c15d
mov edi, dword [ebp - 0x78]
mov ecx, edi
call fcn.0040a74c
test eax, eax
je 0x40c15d
push str.Clover
lea eax, [ebp + 0x7ac]
push eax
lea eax, [ebp + 0x5a4]
push str._s_s_
push eax
call fcn.0043ec44
add esp, 0x10
lea eax, [ebp + 0x5a4]
push eax
call esi
test eax, eax
jne 0x40c149
lea eax, [ebp + 0x5a4]
push eax
call fcn.0041d3b6
pop ecx
lea eax, [ebp + 0x5a4]
push eax
lea ecx, [edi + 0x180]
call fcn.00403360
jmp 0x40c165
mov ecx, dword [ebp - 0x78]
call fcn.0040bc7e
mov ecx, dword [ebp + 0xbbc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db25
add ebp, 0xbc0
leave
ret
Function at 0x40c211
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x42c
lea ebp, [esp - 4]
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x42c], eax
push 0xc
mov eax, 0x4c2953
call fcn.0043e6b2
mov eax, dword [ebp + 0x438]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ebx
call fcn.0040b07f
push eax
lea ecx, [ebp]
call fcn.004015d0
push str.CloverInfo.ini
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.00403470
mov esi, 0x206
push esi
lea eax, [ebp + 0x1e]
push ebx
push eax
mov word [ebp + 0x1c], bx
call fcn.0043db40
mov eax, dword [ebp + 4]
add esp, 0xc
cmp dword [ebp + 0x18], 8
jae 0x40c287
lea eax, [ebp + 4]
push eax
push 0x104
lea eax, [ebp + 0x1c]
push eax
mov edi, 0x4e3194
push edi
push str.CfgRootPath
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea eax, [ebp + 0x226]
push ebx
push eax
mov word [ebp + 0x224], bx
call fcn.0043db40
lea eax, [ebp + 0x1c]
push edi
push eax
call fcn.0043ecda
add esp, 0x14
test eax, eax
je 0x40c2d2
lea eax, [ebp + 0x1c]
jmp 0x40c2f0
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.0040bf51
lea eax, [esi + 0x180]
cmp dword [eax + 0x18], 8
jb 0x40c2ed
mov eax, dword [eax + 4]
jmp 0x40c2f0
add eax, 4
push str.UseVestige.ini
push str.Config
push eax
lea eax, [ebp + 0x224]
push 0x4ca2b8
push eax
call fcn.0043ec44
mov ecx, dword [ebp - 0x10]
add esp, 0x14
lea eax, [ebp + 0x224]
push eax
call fcn.004015d0
push ebx
push 1
lea ecx, [ebp]
call fcn.004017a0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x42c]
xor ecx, ebp
call fcn.0043db25
add ebp, 0x430
leave
ret 4
Function at 0x40c351
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
sub esp, 0x2ac
lea ebp, [esp - 4]
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x2ac], eax
push 0x28
mov eax, 0x4c2996
call fcn.0043e6b2
xor esi, esi
push 0x206
lea eax, [ebp + 0xa6]
push esi
push eax
mov dword [ebp - 0x14], ecx
mov word [ebp + 0xa4], si
call fcn.0043db40
add esp, 0xc
push 0x104
lea eax, [ebp + 0xa4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0xa4]
push 0x4ca330
push eax
call fcn.0043edd2
cmp eax, esi
pop ecx
pop ecx
je 0x40c514
lea ecx, [ebp]
call fcn.0041fc13
lea eax, [ebp + 0xa4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c514
push esi
push 0x80
push 4
push esi
push 1
push SysReAllocString
lea eax, [ebp + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x40c514
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.00433c36
mov edi, eax
cmp edi, esi
pop ecx
je 0x40c514
lea eax, [ebx + 1]
push eax
push esi
push edi
call fcn.0043db40
add esp, 0xc
push esi
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
lea ecx, [ebp]
call fcn.00420452
push edi
call fcn.004ba1f0
pop ecx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp]
call fcn.0042057e
push eax
lea eax, [ebp + 0x6c]
push eax
mov dword [ebp - 4], esi
call fcn.0041f360
pop ecx
pop ecx
push esi
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00401750
cmp dword [ebp + 0x80], esi
jbe 0x40c509
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0x88]
push eax
call fcn.0040c211
cmp dword [ebp + 0xa0], 8
mov eax, dword [ebp + 0x8c]
mov byte [ebp - 4], 3
jae 0x40c4ba
lea eax, [ebp + 0x8c]
push eax
call fcn.0041d3b6
test eax, eax
pop ecx
je 0x40c4fb
cmp dword [ebp + 0xa0], 8
mov ecx, dword [ebp + 0x8c]
jae 0x40c4da
lea ecx, [ebp + 0x8c]
cmp dword [ebp + 0x84], 8
mov eax, dword [ebp + 0x70]
jae 0x40c4e9
lea eax, [ebp + 0x70]
push ecx
push eax
push str.SoftMD5
push str.Setting
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
push 1
lea ecx, [ebp + 0x88]
call fcn.004017a0
push esi
push 1
lea ecx, [ebp + 0x6c]
call fcn.004017a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2ac]
xor ecx, ebp
call fcn.0043db25
add ebp, 0x2b0
leave
ret