joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401420
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.0043db80
add esp, 0xc
cmp dword [esi + 0x18], 8
lea ebp, [esi + 4]
jb 0x40146d
mov eax, dword [ebp]
jmp 0x40146f
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 0x401492
mov ecx, dword [ebp]
jmp 0x401494
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.00401240
mov esi, dword [ebx + 4]
lea ecx, [esp + 0x10]
push ecx
push ebp
push esi
push 0x4011c0
push ebp
push ebp
mov dword [esp + 0x28], ebp
call fcn.00445b54
add esp, 0x18
cmp eax, ebp
mov dword [esi + 0xc], eax
pop edi
je 0x401506
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4014fe
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 0x40150c
mov ecx, dword [ebx + 4]
mov al, byte [ecx + 4]
jmp 0x40150c
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.0043db65
add esp, 0x10c
ret 8
Function at 0x402270
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4c7ca8
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 0x4e31b0
mov byte [ecx + 4], bl
call fcn.004017d0
push ebx
mov byte [esp + 0x644], 3
call fcn.0043eb36
push eax
call fcn.00441dd9
push 0x20a
lea eax, [esp + 0x22]
push ebx
push eax
mov word [esp + 0x28], bx
call fcn.0043db80
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.0043db80
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.00401a10
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x402408
lea ebp, [eax - 1]
cmp ebp, dword [edi + 0x14]
jbe 0x4023e5
call fcn.0043e042
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 0x4e31b4
mov ecx, edi
call fcn.004037c0
cmp dword [esi + 0x38], ebx
jne 0x40241b
push 3
push 0x4e31b8
mov ecx, edi
call fcn.00401a10
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.0043db65
add esp, 0x634
ret
Function at 0x403ab0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4c7da8
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.00401ce0
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.00401ce0
cmp dword [esp + 0x28], 8
jb 0x403b5b
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004ba1f5
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.0043d462
add esp, 0x10
cmp eax, edi
mov dword [esi], eax
jne 0x404c35
xor eax, eax
jmp 0x404c3d
push dword [ebx]
call fcn.0043d01d
pop ecx
pop ebx
pop edi
pop esi
ret
Function at 0x40517c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x405195
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x4051b8
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x4051bd
inc esi
cmp esi, dword [ebp - 4]
jb 0x4051af
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x4052b2
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x405211
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x4051e8
cmp cl, 0xff
jne 0x40523c
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x40524a
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x405251
dec ecx
shl edx, cl
and edx, 7
je 0x4051d9
movzx ecx, byte [edx + 0x4c9934]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x4c992c], 0
mov cl, byte [ebx + 4]
je 0x405239
test cl, cl
je 0x405239
cmp cl, 0xff
jne 0x4051d9
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4051aa
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x405285
movzx edi, byte [edx + 0x4c9934]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x405270
cmp al, 0xff
jne 0x405282
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x405203
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x4051aa
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x408899
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x4088a1
mov dword [ecx*4 + 0x50baa0], eax
inc ecx
cmp ecx, 0x100
jb 0x40889c
mov edx, 0x800
jmp 0x4088ee
mov eax, dword [ecx*4 + 0x50b6a0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x50baa0]
inc ecx
mov dword [ecx*4 + 0x50ba9c], eax
cmp ecx, edx
jb 0x4088cd
mov dword [0x50daa0], 0x40545f
call fcn.004053cc
test eax, eax
pop esi
jne 0x408910
mov dword [0x50daa0], 0x4054f5
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.0043dd6a
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.0043db80
push 3
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0043dedb
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.0043db65
leave
ret 4

Function at 0x40a5d9
Capabilities:
Set registry value

Disassembly:
push 0x34
mov eax, 0x4c2814
call fcn.0043e6f2
lea ecx, [ebp - 0x40]
call fcn.0040deaa
xor esi, esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], esi
call fcn.0040de62
test eax, eax
je 0x40a672
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 0x40a6d9
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push esi
push esi
push esi
push 0x4ca020
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x40a64b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a6d9
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 0x40a6d7
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 0x40a6d9
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push esi
push esi
push esi
push 0x4ca020
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x40a6b2
push dword [ebp - 0x14]
jmp 0x40a640
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.0040dd85
call fcn.0043e7ca
ret 8
Function at 0x40a732
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.0043db80
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 0x40a78d
xor eax, eax
inc eax
cmp dword [ebp - 0x78], 0
je 0x40a785
cmp dword [ebp - 0x78], eax
jne 0x40a78d
cmp byte [ebp + 0x9a], al
je 0x40a78f
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.0043db65
add ebp, 0xa0
leave
ret

Function at 0x40ab4e
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.0043db80
push esi
lea eax, [ebp + 0x192]
push edi
push eax
mov word [ebp + 0x190], di
call fcn.0043db80
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 0x40abc7
mov eax, dword [eax + 4]
jmp 0x40abca
add eax, 4
push eax
lea eax, [ebp + 0x190]
push eax
call fcn.0043dd4e
mov ebx, 0x4e31b4
lea eax, [ebp + 0x398]
push ebx
push eax
call fcn.0043dd24
mov esi, 0x4ca020
lea eax, [ebp + 0x398]
push esi
push eax
call fcn.0043dd24
lea eax, [ebp + 0x398]
push ebx
push eax
call fcn.0043dd24
lea eax, [ebp + 0x398]
push eax
call fcn.0041d32a
lea eax, [ebp + 0x398]
push esi
push eax
call fcn.0043dd24
lea eax, [ebp + 0x398]
push str..ini
push eax
call fcn.0043dd24
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.0040a5d9
push 0x206
lea eax, [ebp - 0x76]
push edi
push eax
mov word [ebp - 0x78], di
call fcn.0043db80
lea eax, [ebp - 0x78]
push 0x4ca120
push eax
call fcn.0043dd4e
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0043dd24
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 0x40accc
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.0043db65
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.0043db80
add esp, 0xc
push 0x104
lea eax, [ebp - 0x80]
push eax
mov ecx, edi
call fcn.0040a86a
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.0043dd6a
test eax, eax
pop ecx
je 0x40bd43
mov esi, 0x4e31b4
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0043dd24
lea eax, [ebp - 0x80]
push 0x4ca020
push eax
call fcn.0043dd24
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0043dd24
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.0041d32a
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.0043db65
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.0043db80
push esi
lea eax, [ebp + 0x39e]
push edi
push eax
mov word [ebp + 0x39c], di
call fcn.0043db80
push esi
lea eax, [ebp + 0x7ae]
push edi
push eax
mov word [ebp + 0x7ac], di
call fcn.0043db80
push esi
lea eax, [ebp + 0x196]
push edi
push eax
mov word [ebp + 0x194], di
call fcn.0043db80
push esi
lea eax, [ebp + 0x9b6]
push edi
push eax
mov word [ebp + 0x9b4], di
call fcn.0043db80
push esi
lea eax, [ebp + 0x5a6]
push edi
push eax
mov word [ebp + 0x5a4], di
call fcn.0043db80
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.0043dd4e
lea eax, [ebp + 0x9b4]
push eax
call fcn.0043dd6a
lea eax, [ebp + 0x9b4]
push 0x5c
push eax
call fcn.0043eb06
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.0043dd4e
lea eax, [ebp + 0x39c]
push str.Local
push eax
call fcn.0043dd24
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.0043dd4e
lea eax, [ebp + 0x7ac]
push str.LocalLow
push eax
call fcn.0043dd24
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.0043dd4e
lea eax, [ebp + 0x194]
push str.Roaming
push eax
call fcn.0043dd24
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.0040a732
test eax, eax
je 0x40c16a
push 0x4ca020
lea eax, [ebp + 0x7ac]
push eax
lea eax, [ebp + 0x5a4]
push str._s_s_
push eax
call fcn.0043ec84
add esp, 0x10
lea eax, [ebp + 0x5a4]
push eax
call esi
test eax, eax
jne 0x40c156
lea eax, [ebp + 0x5a4]
push eax
call fcn.0041d32a
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.0043db65
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, 0x4c2990
call fcn.0043e6f2
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.0040b08c
push eax
lea ecx, [ebp]
call fcn.004015a0
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.0043db80
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, 0x4e31d4
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.0043db80
lea eax, [ebp + 0x1c]
push edi
push eax
call fcn.0043ed1a
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 0x4ca2b8
push eax
call fcn.0043ec84
mov ecx, dword [ebp - 0x10]
add esp, 0x14
lea eax, [ebp + 0x224]
push eax
call fcn.004015a0
push ebx
push 1
lea ecx, [ebp]
call fcn.00401770
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.0043db65
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, 0x4c29d3
call fcn.0043e6f2
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.0043db80
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.0043ee12
cmp eax, esi
pop ecx
pop ecx
je 0x40c521
lea ecx, [ebp]
call fcn.0041fb87
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.00433c4c
mov edi, eax
cmp edi, esi
pop ecx
je 0x40c521
lea eax, [ebx + 1]
push eax
push esi
push edi
call fcn.0043db80
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.004203c6
push edi
call fcn.004ba1f5
pop ecx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp]
call fcn.004204f2
push eax
lea eax, [ebp + 0x6c]
push eax
mov dword [ebp - 4], esi
call fcn.0041f2d4
pop ecx
pop ecx
push esi
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00401720
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.0041d32a
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.00401770
push esi
push 1
lea ecx, [ebp + 0x6c]
call fcn.00401770
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.0043db65
add ebp, 0x2b0
leave
ret