joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413135
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00426b00
mov eax, dword [0x49f068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
call fcn.0045ccd8
mov dword [ebp - 0x1014], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x1010], edx
call fcn.00466201
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi + 0x10]
push edi
push eax
push dword [esi]
mov eax, dword [esi + 0x14]
inc ecx
push dword [esi + 4]
add eax, 0x76c
push dword [esi + 8]
push dword [esi + 0xc]
push ecx
push eax
lea eax, [ebp - 0x1004]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.00412de3
add esp, 0x28
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
xor ecx, ecx
pop edi
inc ecx
test eax, eax
push 0x483498
push ebx
cmovne edi, ecx
call fcn.00464dd9
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x413251
test edi, edi
jne 0x4131f4
push esi
push 2
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x100c], 0xfeff
push 1
push eax
call fcn.00465b69
add esp, 0x10
lea eax, [ebp - 0x1004]
push eax
call fcn.00458389
push esi
add eax, eax
push eax
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.00465b69
push esi
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xd
push 1
push eax
call fcn.00465b69
push esi
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xa
push 1
push eax
call fcn.00465b69
push esi
call fcn.00465005
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042675a
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00458389
mov dword [ebp - 4], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00426af0
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.0046449c
mov eax, dword [ebp - 4]
xor edi, edi
add esp, 0x10
xor ebx, ebx
inc edi
test eax, eax
js 0x4136d2
push 0x5c
pop ecx
cmp word [esi + ebx*2], cx
jne 0x4136c9
xor eax, eax
push esi
mov word [esi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4136bf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4136d0
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [esi + ebx*2], cx
inc ebx
cmp ebx, eax
jle 0x41369c
jmp 0x4136d2
xor edi, edi
push esi
call fcn.00426af9
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4136e0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1608
call fcn.00426b00
mov eax, dword [0x49f068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
push 0
push eax
call fcn.004558f0
push esi
lea eax, [ebp - 0x20c]
push 0x481278
push eax
call fcn.0040a7e5
lea eax, [ebp - 0x20c]
push eax
call fcn.00458389
add esp, 0x1c
lea ecx, [eax - 1]
test ecx, ecx
jle 0x41374d
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x20e], cx
je 0x41374d
mov word [ebp + eax*2 - 0x20c], cx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xbe4]
push 0x4833d4
push eax
call fcn.0040a7e5
add esp, 0xc
lea eax, [ebp - 0x1604]
push eax
lea eax, [ebp - 0xbe4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41384c
push 0x2e
pop ebx
lea eax, [ebp - 0x1604]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41384c
cmp word [ebp - 0x15d8], bx
je 0x41378a
cmp word [ebp - 0x15d6], 0
je 0x41378a
cmp word [ebp - 0x15d6], bx
jne 0x4137c6
cmp word [ebp - 0x15d4], 0
je 0x41378a
test byte [ebp - 0x1604], 0x10
je 0x413810
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004558f0
lea eax, [ebp - 0x15d8]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._s_s_
push eax
call fcn.0040a7e5
lea eax, [ebp - 0x414]
push eax
call fcn.004136e0
add esp, 0x20
lea eax, [ebp - 0x15d8]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x13b4]
push 0x48128c
push eax
call fcn.0040a7e5
push ecx
push ecx
lea eax, [ebp - 0x13b4]
mov ecx, esp
push eax
call fcn.00407a3e
call fcn.00413dbe
add esp, 0x18
jmp 0x41378a
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042675a
leave
ret

Function at 0x413872
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x49f068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x1a
push eax
push 0
call fcn.00413d4d
lea eax, [ebp - 0x20c]
push eax
call fcn.00458389
add esp, 0x14
test eax, eax
je 0x41391d
push ebx
mov ebx, 0x48066c
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0046440b
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0046440b
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0046440b
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
jne 0x413901
lea eax, [ebp - 0x20c]
push eax
call fcn.00413658
pop ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.00458389
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0040790f
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042675a
leave
ret
Function at 0x413a4e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x49f068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [0x4a0590]
test bl, bl
jne 0x413ae5
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004558f0
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x413adf
lea eax, [ebp - 0x20c]
push eax
call fcn.00464647
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.00455f1d
pop ecx
pop ecx
test eax, eax
jne 0x413ad7
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.00455f1d
pop ecx
pop ecx
test eax, eax
je 0x413adf
mov byte [0x4a0590], bl
jmp 0x413ae5
mov bl, byte [0x4a0590]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0042675a
leave
ret
Function at 0x413af4
Capabilities:
Check if file exists

Disassembly:
push 0xc50
mov eax, 0x47d20c
call fcn.004267c5
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc40]
mov ebx, dword [ebp + 0xc]
mov esi, 0x208
push esi
push 0
push eax
mov dword [ebp - 0xc5c], edi
call fcn.004558f0
push esi
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004558f0
push esi
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004558f0
push esi
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.004558f0
push esi
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004558f0
push esi
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004558f0
xor ecx, ecx
mov dword [ebp - 0xc44], 7
xor eax, eax
mov dword [ebp - 0xc48], ecx
add esp, 0x48
mov word [ebp - 0xc58], ax
push ecx
push 0x1a
lea eax, [ebp - 0xc40]
mov dword [ebp - 4], ecx
push eax
push ecx
call fcn.00413d4d
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0046449c
lea eax, [ebp - 0x218]
push eax
call fcn.00458389
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.004565f3
add esp, 0x24
test eax, eax
je 0x413d09
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.0046449c
lea eax, [ebp - 0x830]
push str.Local
push eax
call fcn.0046440b
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
xor esi, esi
inc ecx
test eax, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
cmovne esi, ecx
push eax
call fcn.0046449c
lea eax, [ebp - 0x628]
push str.LocalLow
push eax
call fcn.0046440b
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xc5c], ecx
push eax
call fcn.0046449c
lea eax, [ebp - 0xa38]
push str.Roaming
push eax
call fcn.0046440b
add esp, 0x10
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x413d09
cmp dword [ebp - 0xc5c], 0
je 0x413d09
test ecx, ecx
je 0x413d09
push ebx
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push 0x4811fc
push eax
call fcn.0040a7e5
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x413ce7
lea eax, [ebp - 0x420]
push eax
call fcn.00413658
pop ecx
lea eax, [ebp - 0x420]
push eax
call fcn.00458389
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xc58]
call fcn.0040790f
jmp 0x413d18
lea eax, [ebp - 0xc58]
push ebx
push eax
call fcn.00413872
pop ecx
pop ecx
xor eax, eax
mov ecx, edi
mov byte [ebp - 0xc5c], al
push dword [ebp - 0xc5c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
lea eax, [ebp - 0xc58]
push eax
call fcn.0040878e
lea ecx, [ebp - 0xc58]
call fcn.0040782f
mov eax, edi
call fcn.00426780
ret
Function at 0x413e21
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
mov dword [esi + 4], eax
pop esi
pop ebp
ret 4
Function at 0x414579
Capabilities:
Set registry value

Disassembly:
push 0x2c
mov eax, 0x47d383
call fcn.00426791
xor esi, esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.0041f896
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], esi
call fcn.0041f8ca
test eax, eax
mov edi, 0xf013f
lea eax, [ebp - 0x10]
push eax
jne 0x4145b2
mov edi, 0xf003f
push edi
push esi
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414622
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push esi
push esi
push esi
push 0x480424
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4145ef
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x414622
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x38]
call fcn.0041f8a9
call fcn.0042676b
ret 8
Function at 0x414ae8
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x47d447
call fcn.00426791
xor esi, esi
mov dword [ebp - 0x18], 0x104
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.0041f896
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], esi
call fcn.0041f8ca
test eax, eax
mov edi, 0xf013f
lea eax, [ebp - 0x10]
push eax
jne 0x414b28
mov edi, 0xf003f
push edi
push esi
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414b8a
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push esi
push esi
push esi
push 0x480424
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x414b65
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x414b8a
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x3c]
call fcn.0041f8a9
call fcn.0042676b
ret 8

Function at 0x414ce3
Capabilities:
Read .ini file

Disassembly:
push 0x838
mov eax, 0x47d46d
call fcn.004267c5
mov edi, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 0x8c]
cmp dword [eax + 0x14], 8
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x844], ecx
jb 0x414d0e
mov eax, dword [eax]
push eax
push dword [ebp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp esi, dword [ebp + 0x10]
jne 0x414dcb
push 0x480574
lea ecx, [ebp - 0x828]
call fcn.00407a3e
and dword [ebp - 4], 0
lea eax, [ebp - 0x810]
push 0x800
push 0
push eax
call fcn.004558f0
push dword [ebp + 0x10]
lea eax, [ebp - 0x810]
push 0x48322c
push eax
call fcn.0040a7e5
add esp, 0x18
lea eax, [ebp - 0x810]
cmp byte [edi + 5], 0
mov ecx, edi
push eax
push dword [ebp - 0x844]
lea eax, [ebp - 0x840]
push ebx
push eax
je 0x414d87
call fcn.00414c14
jmp 0x414d8c
call fcn.00414cc0
push eax
lea ecx, [ebp - 0x828]
call fcn.00407010
lea ecx, [ebp - 0x840]
call fcn.0040782f
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.0045cc05
pop ecx
lea ecx, [ebp - 0x828]
mov esi, eax
call fcn.0040782f
mov eax, esi
call fcn.00426780
ret 0xc
Function at 0x414dd5
Capabilities:
Read .ini file

Disassembly:
push 0x82c
mov eax, 0x47d4b7
call fcn.004267c5
mov edi, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0x10]
push 0x800
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x810]
push ecx
mov dword [ebp - 0x838], esi
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x834], ecx
call fcn.004558f0
lea eax, [edi + 0x8c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x414e32
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push dword [ebp - 0x82c]
push dword [ebp - 0x830]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.00407a3e
and dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x834], 1
jb 0x414e78
mov eax, dword [esi]
push ebx
push eax
call fcn.0045b8db
pop ecx
pop ecx
test eax, eax
jne 0x414ec0
cmp byte [edi + 5], 0
lea eax, [ebp - 0x828]
push ebx
push dword [ebp - 0x82c]
mov ecx, edi
push dword [ebp - 0x830]
push eax
je 0x414ea8
call fcn.00414c14
jmp 0x414ead
call fcn.00414cc0
push eax
mov ecx, esi
call fcn.00407010
lea ecx, [ebp - 0x828]
call fcn.0040782f
mov eax, esi
call fcn.00426780
ret 0x10
Function at 0x415913
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
mov eax, dword [0x49f068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, 0x208
lea eax, [ebp - 0x20c]
push ebx
push 0
push eax
mov esi, ecx
call fcn.004558f0
lea eax, [esi + 0x2c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x41594c
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.0040a7e5
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415984
lea eax, [ebp - 0x20c]
push eax
call fcn.00413658
pop ecx
push ebx
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.004558f0
push str.userconfig.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push 0x48128c
push eax
call fcn.0040a7e5
lea eax, [ebp - 0x61c]
push eax
call fcn.00458389
add esp, 0x20
lea ecx, [esi + 0x8c]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.0040790f
push ebx
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.004558f0
push str.Config.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push 0x48128c
push eax
call fcn.0040a7e5
lea eax, [ebp - 0x824]
push eax
call fcn.00458389
add esp, 0x20
lea ecx, [esi + 0xa4]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.0040790f
push ebx
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004558f0
lea eax, [ebp - 0xa44]
push 0x480648
push eax
call fcn.00413af4
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x415a4b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x414]
push 0x481278
push eax
call fcn.0040a7e5
add esp, 0xc
lea ecx, [ebp - 0xa44]
call fcn.0040782f
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415a89
lea eax, [ebp - 0x414]
push eax
call fcn.00413658
pop ecx
push ebx
lea eax, [ebp - 0xa2c]
push 0
push eax
call fcn.004558f0
push str.Config.ini
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xa2c]
push 0x48128c
push eax
call fcn.0040a7e5
lea eax, [ebp - 0xa2c]
push eax
call fcn.00458389
add esp, 0x20
lea ecx, [esi + 0xbc]
push eax
lea eax, [ebp - 0xa2c]
push eax
call fcn.0040790f
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042675a
leave
ret
Function at 0x415b96
Capabilities:
Check if file exists

Disassembly:
push 0x90
mov eax, 0x47d5c4
call fcn.004267c5
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push eax
call fcn.00407a3e
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp - 0x30], edi
jne 0x415bd7
mov ecx, esi
call fcn.00414b9a
mov esi, eax
push esi
call fcn.00458389
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.0040790f
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
test eax, eax
je 0x415d7e
push str.HaoKanWallPaper.exe
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00410f01
add esp, 0xc
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x88]
push eax
call esi
test eax, eax
je 0x415c2f
xor edi, edi
inc edi
jmp 0x415d73
lea eax, [ebp - 0x70]
push str.9755104754656314543663180836632607635531116508026850084024582929
push eax
call fcn.00410ec1
pop ecx
pop ecx
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x8c], edi
push 0x480644
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00407a3e
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.00407a3e
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041001b
add esp, 0xc
lea ecx, [ebp - 0x58]
call fcn.0040782f
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0040782f
mov esi, dword [ebp - 0x94]
jmp 0x415d42
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x415cbe
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x58]
call fcn.00407a3e
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
push 1
push edi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 7
push eax
sub esp, 0x18
lea eax, [ebp - 0x58]
mov ecx, esp
mov dword [ebp - 0x98], esp
push eax
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
call fcn.0040778e
sub esp, 0x18
mov byte [ebp - 4], 8
mov ecx, esp
lea eax, [ebp - 0x40]
push eax
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
call fcn.0040778e
mov byte [ebp - 4], 7
call fcn.00411b93
mov eax, dword [ebp - 0x18]
add esp, 0x3c
sub eax, dword [ebp - 0x1c]
cdq
push 0x18
pop ecx
idiv ecx
lea ecx, [ebp - 0x1c]
test eax, eax
jne 0x415d50
call fcn.004089c5
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0040782f
push 0x18
pop eax
add esi, eax
cmp esi, dword [ebp - 0x90]
jne 0x415cb4
jmp 0x415d60
call fcn.004089c5
lea ecx, [ebp - 0x58]
call fcn.0040782f
xor edi, edi
inc edi
lea ecx, [ebp - 0x94]
call fcn.004089c5
lea ecx, [ebp - 0x70]
call fcn.0040782f
lea ecx, [ebp - 0x88]
call fcn.0040782f
lea ecx, [ebp - 0x40]
call fcn.0040782f
mov eax, edi
call fcn.00426780
ret 4
Function at 0x4160da
Capabilities:
Read .ini file

Disassembly:
push 0x23c
mov eax, 0x47d602
call fcn.004267c5
mov ebx, ecx
call fcn.00414b9a
mov esi, eax
push esi
call fcn.00458389
pop ecx
push eax
lea edi, [ebx + 0xd4]
push esi
mov ecx, edi
call fcn.0040790f
mov esi, str.HaoKanWallPaper.cfg
push esi
call fcn.00458389
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00407868
push str.hkbzgf
push 0x48104c
push str.AppInfo
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.00414c9d
and dword [ebp - 4], 0
lea eax, [ebp - 0x248]
lea esi, [ebx + 0xec]
push eax
mov ecx, esi
call fcn.00406ff0
push str.hkbzgf
mov ecx, esi
call fcn.0040ac63
test al, al
je 0x4161c1
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004558f0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x416180
mov edi, dword [edi]
push edi
push 0x104
lea eax, [ebp - 0x218]
mov edi, str.hkbzgf
push eax
push edi
push 0x48104c
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
call fcn.00458389
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0040790f
jmp 0x4161c6
mov edi, str.hkbzgf
push edi
mov ecx, esi
call fcn.0040ac63
test al, al
je 0x416286
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004558f0
and dword [ebp - 0x220], 0
lea eax, [ebx + 0x5c]
and dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x230]
add esp, 0xc
push eax
call fcn.0040778e
push str.HaoKanWallPaper.cfg
mov byte [ebp - 4], 1
call fcn.00458389
pop ecx
push eax
push str.HaoKanWallPaper.cfg
lea ecx, [ebp - 0x230]
call fcn.00407868
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
push 0x48104c
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
call fcn.00458389
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0040790f
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.0040782f
push edi
mov ecx, esi
call fcn.0040ac63
test al, al
je 0x4162be
push edi
push 0x48104c
push str.AppInfo
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.00414dd5
push eax
mov ecx, esi
call fcn.00407010
lea ecx, [ebp - 0x230]
call fcn.0040782f
lea ecx, [ebp - 0x248]
call fcn.0040782f
call fcn.00426780
ret