joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3503bf2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x350a846]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.03502b49
and dword [ebp - 0x14], 0
cmp dword [0x350b972], 0
mov dword [ebp - 0x18], eax
jne 0x3503ca5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x3503d4d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x3503d4d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x350b972], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x350b976], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x350b97a], eax
call edi
push eax
call esi
mov dword [0x350b982], eax
test eax, eax
je 0x3503ca5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x350b97e], eax
mov eax, dword [0x350b97e]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x3503cfe
cmp dword [0x350b982], ecx
je 0x3503cfe
push eax
call esi
push dword [0x350b982]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x3503cfe
test ebx, ebx
je 0x3503cfe
call edi
test eax, eax
je 0x3503cf5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x3503cf5
test byte [ebp - 8], 1
jne 0x3503cfe
or dword [ebp + 0x10], 0x200000
jmp 0x3503d31
mov eax, dword [0x350b976]
cmp eax, dword [ebp - 0x18]
je 0x3503d31
push eax
call esi
test eax, eax
je 0x3503d31
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x3503d31
mov eax, dword [0x350b97a]
cmp eax, dword [ebp - 0x18]
je 0x3503d31
push eax
call esi
test eax, eax
je 0x3503d31
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x350b972]
call esi
test eax, eax
je 0x3503d4d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x3503d4f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.03503f5d
leave
ret

Function at 0x3503f5d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x350a846]
jne 0x3503f67
repz ret
jmp fcn.035051cd

Function at 0x430000
Capabilities:
Check for vm using instruction vpcext
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, reloc.kernel32.dll_GetThreadLocale
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
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.0043db10
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.00445ae4
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.0043daf5
add esp, 0x10c
ret 8
Function at 0x402270
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4c7c58
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 0x4e3070
mov byte [ecx + 4], bl
call fcn.00401800
push ebx
mov byte [esp + 0x644], 3
call fcn.0043eac6
push eax
call fcn.00441d69
push 0x20a
lea eax, [esp + 0x22]
push ebx
push eax
mov word [esp + 0x28], bx
call fcn.0043db10
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.0043db10
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.0043dfd2
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 0x4e3074
mov ecx, edi
call fcn.004037c0
cmp dword [esi + 0x38], ebx
jne 0x40241b
push 3
push 0x4e3078
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.0043daf5
add esp, 0x634
ret
Function at 0x403ab0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4c7d58
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.004ba1b0
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.0043d3f4
add esp, 0x10
cmp eax, edi
mov dword [esi], eax
jne 0x404c35
xor eax, eax
jmp 0x404c3d
push dword [ebx]
call fcn.0043cfaf
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.0043dcfa
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.0043db10
push 3
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0043de6b
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.0043daf5
leave
ret 4

Function at 0x40a5fe
Capabilities:
Set registry value

Disassembly:
push 0x34
mov eax, 0x4c2797
call fcn.0043e682
lea ecx, [ebp - 0x40]
call fcn.0040de7a
xor esi, esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], esi
call fcn.0040de32
test eax, eax
je 0x40a697
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 0x40a6fe
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 0x40a670
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a6fe
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 0x40a6fc
lea eax, [ebp - 0x14]
push eax
mov edi, GetMenuState
push edi
push esi
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40a6fe
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 0x40a6d7
push dword [ebp - 0x14]
jmp 0x40a665
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.0040dd55
call fcn.0043e75a
ret 8
Function at 0x40a74d
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.0043db10
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 0x40a7a8
xor eax, eax
inc eax
cmp dword [ebp - 0x78], 0
je 0x40a7a0
cmp dword [ebp - 0x78], eax
jne 0x40a7a8
cmp byte [ebp + 0x9a], al
je 0x40a7aa
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.0043daf5
add ebp, 0xa0
leave
ret

Function at 0x40ab42
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.0043db10
push esi
lea eax, [ebp + 0x192]
push edi
push eax
mov word [ebp + 0x190], di
call fcn.0043db10
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 0x40abbb
mov eax, dword [eax + 4]
jmp 0x40abbe
add eax, 4
push eax
lea eax, [ebp + 0x190]
push eax
call fcn.0043dcde
mov ebx, 0x4e3074
lea eax, [ebp + 0x398]
push ebx
push eax
call fcn.0043dcb4
mov esi, str.Clover
lea eax, [ebp + 0x398]
push esi
push eax
call fcn.0043dcb4
lea eax, [ebp + 0x398]
push ebx
push eax
call fcn.0043dcb4
lea eax, [ebp + 0x398]
push eax
call fcn.0041d322
lea eax, [ebp + 0x398]
push esi
push eax
call fcn.0043dcb4
lea eax, [ebp + 0x398]
push str..ini
push eax
call fcn.0043dcb4
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.0040a5fe
push 0x206
lea eax, [ebp - 0x76]
push edi
push eax
mov word [ebp - 0x78], di
call fcn.0043db10
lea eax, [ebp - 0x78]
push 0x4ca120
push eax
call fcn.0043dcde
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0043dcb4
add esp, 0x1c
push edi
lea eax, [ebp - 0x7c]
push eax
push edi
push GetMenuState
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 0x40acc0
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.0043daf5
add ebp, 0x5a4
leave
ret
Function at 0x40bc8b
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.0043db10
add esp, 0xc
push 0x104
lea eax, [ebp - 0x80]
push eax
mov ecx, edi
call fcn.0040a885
test al, al
jne 0x40bcf2
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.0043dcfa
test eax, eax
pop ecx
je 0x40bd43
mov esi, 0x4e3074
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0043dcb4
lea eax, [ebp - 0x80]
push str.Clover
push eax
call fcn.0043dcb4
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0043dcb4
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40bd34
lea eax, [ebp - 0x80]
push eax
call fcn.0041d322
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.0043daf5
add ebp, 0x18c
leave
ret
Function at 0x40bf5e
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.0043db10
push esi
lea eax, [ebp + 0x39e]
push edi
push eax
mov word [ebp + 0x39c], di
call fcn.0043db10
push esi
lea eax, [ebp + 0x7ae]
push edi
push eax
mov word [ebp + 0x7ac], di
call fcn.0043db10
push esi
lea eax, [ebp + 0x196]
push edi
push eax
mov word [ebp + 0x194], di
call fcn.0043db10
push esi
lea eax, [ebp + 0x9b6]
push edi
push eax
mov word [ebp + 0x9b4], di
call fcn.0043db10
push esi
lea eax, [ebp + 0x5a6]
push edi
push eax
mov word [ebp + 0x5a4], di
call fcn.0043db10
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.0043dcde
lea eax, [ebp + 0x9b4]
push eax
call fcn.0043dcfa
lea eax, [ebp + 0x9b4]
push 0x5c
push eax
call fcn.0043ea96
add esp, 0x14
cmp eax, edi
je 0x40c16a
mov word [eax], di
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x39c]
push eax
call fcn.0043dcde
lea eax, [ebp + 0x39c]
push str.Local
push eax
call fcn.0043dcb4
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x39c]
push eax
call esi
test eax, eax
je 0x40c08a
inc ebx
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x7ac]
push eax
call fcn.0043dcde
lea eax, [ebp + 0x7ac]
push str.LocalLow
push eax
call fcn.0043dcb4
add esp, 0x10
lea eax, [ebp + 0x7ac]
push eax
call esi
test eax, eax
je 0x40c0c5
mov dword [ebp - 0x80], 1
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x194]
push eax
call fcn.0043dcde
lea eax, [ebp + 0x194]
push str.Roaming
push eax
call fcn.0043dcb4
add esp, 0x10
lea eax, [ebp + 0x194]
push eax
call esi
test eax, eax
je 0x40c100
mov dword [ebp - 0x7c], 1
cmp ebx, edi
je 0x40c16a
cmp dword [ebp - 0x80], edi
je 0x40c16a
cmp dword [ebp - 0x7c], edi
je 0x40c16a
mov edi, dword [ebp - 0x78]
mov ecx, edi
call fcn.0040a74d
test eax, eax
je 0x40c16a
push str.Clover
lea eax, [ebp + 0x7ac]
push eax
lea eax, [ebp + 0x5a4]
push str._s_s_
push eax
call fcn.0043ec14
add esp, 0x10
lea eax, [ebp + 0x5a4]
push eax
call esi
test eax, eax
jne 0x40c156
lea eax, [ebp + 0x5a4]
push eax
call fcn.0041d322
pop ecx
lea eax, [ebp + 0x5a4]
push eax
lea ecx, [edi + 0x180]
call fcn.00403360
jmp 0x40c172
mov ecx, dword [ebp - 0x78]
call fcn.0040bc8b
mov ecx, dword [ebp + 0xbbc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043daf5
add ebp, 0xbc0
leave
ret
Function at 0x40c21e
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, 0x4c2936
call fcn.0043e682
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.0040b080
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.0043db10
mov eax, dword [ebp + 4]
add esp, 0xc
cmp dword [ebp + 0x18], 8
jae 0x40c294
lea eax, [ebp + 4]
push eax
push 0x104
lea eax, [ebp + 0x1c]
push eax
mov edi, 0x4e3094
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.0043db10
lea eax, [ebp + 0x1c]
push edi
push eax
call fcn.0043ecaa
add esp, 0x14
test eax, eax
je 0x40c2df
lea eax, [ebp + 0x1c]
jmp 0x40c2fd
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.0040bf5e
lea eax, [esi + 0x180]
cmp dword [eax + 0x18], 8
jb 0x40c2fa
mov eax, dword [eax + 4]
jmp 0x40c2fd
add eax, 4
push str.UseVestige.ini
push str.Config
push eax
lea eax, [ebp + 0x224]
push 0x4ca2d0
push eax
call fcn.0043ec14
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.0043daf5
add ebp, 0x430
leave
ret 4
Function at 0x40c35e
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, 0x4c2979
call fcn.0043e682
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.0043db10
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 0x4ca348
push eax
call fcn.0043eda2
cmp eax, esi
pop ecx
pop ecx
je 0x40c521
lea ecx, [ebp]
call fcn.0041fd6e
lea eax, [ebp + 0xa4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c521
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 0x40c521
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.00433c04
mov edi, eax
cmp edi, esi
pop ecx
je 0x40c521
lea eax, [ebx + 1]
push eax
push esi
push edi
call fcn.0043db10
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.004205ad
push edi
call fcn.004ba1b0
pop ecx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp]
call fcn.004206d9
push eax
lea eax, [ebp + 0x6c]
push eax
mov dword [ebp - 4], esi
call fcn.0041f4bb
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 0x40c516
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0x88]
push eax
call fcn.0040c21e
cmp dword [ebp + 0xa0], 8
mov eax, dword [ebp + 0x8c]
mov byte [ebp - 4], 3
jae 0x40c4c7
lea eax, [ebp + 0x8c]
push eax
call fcn.0041d322
test eax, eax
pop ecx
je 0x40c508
cmp dword [ebp + 0xa0], 8
mov ecx, dword [ebp + 0x8c]
jae 0x40c4e7
lea ecx, [ebp + 0x8c]
cmp dword [ebp + 0x84], 8
mov eax, dword [ebp + 0x70]
jae 0x40c4f6
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.0043daf5
add ebp, 0x2b0
leave
ret