joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57a6d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dffc4
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x676580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.004092b0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x57a73c
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403270
mov eax, dword [ebp - 0x18]
jmp 0x57a82a
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x57a811
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x57a811
lea eax, [ebp - 0x14]
push eax
call fcn.00579ec0
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.0040ee60
movzx ecx, al
test ecx, ecx
je 0x57a79f
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403270
mov eax, dword [ebp - 0x1c]
jmp 0x57a82a
lea ecx, [ebp - 0x14]
call fcn.00493020
push eax
call fcn.0057a6d0
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x57a7d4
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403270
mov eax, dword [ebp - 0x20]
jmp 0x57a82a
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x57a811
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x57a811
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403270
mov eax, dword [ebp - 0x24]
jmp 0x57a82a
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403270
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x57b000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 4
mov eax, dword [ebp - 0x18]
cmp dword [eax + 4], 0
jne 0x57b024
jmp 0x57b069
cmp dword [ebp + 8], 0
jne 0x57b02e
jmp 0x57b069
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x57b05a
jmp 0x57b069
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8

Function at 0x57b080
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
jne 0x57b09d
jmp 0x57b0d6
cmp dword [ebp + 8], 0
jne 0x57b0a7
jmp 0x57b0d6
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x57b0cf
jmp 0x57b0d6
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8

Function at 0x57b6f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x57b714
xor eax, eax
jmp 0x57b730
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x57d0f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dcd14
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x676580]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x1c], 0xa
mov ecx, dword [ebp - 0x40]
add ecx, 0x34
call fcn.00493020
push eax
call fcn.00524890
add esp, 4
mov dword [ebp - 0x14], eax
mov word [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x36], eax
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x28
call fcn.00493020
push eax
push 0xa
lea ecx, [ebp - 0x38]
push ecx
push 0x61a590
mov ecx, dword [ebp - 0x40]
add ecx, 0x30
call fcn.00493020
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x2c
call fcn.00493020
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x57d1aa
push 0xa
push 0
lea edx, [ebp - 0x38]
push edx
call fcn.0052aee3
add esp, 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
call fcn.00403290
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
push ecx
push 0x61a594
lea edx, [ebp - 0x18]
push edx
call fcn.00403240
add esp, 0xc
mov ecx, dword [ebp - 0x40]
add ecx, 0x28
call fcn.00493020
push eax
lea ecx, [ebp - 0x18]
call fcn.00493020
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x30
call fcn.00493020
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x2c
call fcn.00493020
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00403270
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.005236f2
mov esp, ebp
pop ebp
ret
Function at 0x57ea50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e1745
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x676580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x28]
call fcn.004c6920
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x40]
add edx, 0x2c
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.005c2e90
add esp, 0xc
mov byte [ebp - 4], 1
push 0x5c
push 0x2f
lea ecx, [ebp - 0x30]
call fcn.0044c930
push 0x5c
push 0x5c
lea ecx, [ebp - 0x30]
call fcn.0044c930
lea ecx, [ebp - 0x30]
push ecx
call fcn.00579f50
add esp, 4
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0040ca60
mov eax, dword [ebp - 0x40]
add eax, 0x38
push eax
lea ecx, [ebp - 0x18]
call fcn.0040ca60
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x30]
push ecx
call fcn.0057a000
add esp, 4
mov edx, dword [ebp - 0x40]
add edx, 0x30
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.0040b990
add esp, 0xc
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x48], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040ca60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00403270
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x40]
add eax, 0x34
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.005c2e90
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040ca60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00403270
mov ecx, dword [ebp - 0x40]
add ecx, 0x3c
push ecx
lea ecx, [ebp - 0x24]
call fcn.0040ca60
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x28
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.005c2e90
add esp, 0xc
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.005c5db0
add esp, 8
mov dword [ebp - 0x3c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00403270
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004c6550
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x57fa50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e1847
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x676580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x30]
add ecx, 0x28
call fcn.0040ee60
movzx eax, al
test eax, eax
je 0x57facb
push 0x400000
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0057a250
add esp, 8
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x28
call fcn.0040ca60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00403270
jmp 0x57fae1
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x30]
add eax, 0x28
push eax
call fcn.005c3040
add esp, 8
lea ecx, [ebp - 0x14]
call fcn.00403290
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x28]
push ecx
push 0x61a88c
lea edx, [ebp - 0x14]
push edx
call fcn.00403240
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.00493020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x57fb40
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403270
mov eax, dword [ebp - 0x20]
jmp 0x57fbe9
lea ecx, [ebp - 0x14]
call fcn.00493020
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x57fb8b
lea ecx, [ebp - 0x14]
call fcn.00493020
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x57fb8b
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403270
mov eax, dword [ebp - 0x24]
jmp 0x57fbe9
mov ecx, dword [ebp - 0x30]
add ecx, 0x30
call fcn.00493020
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x57fbc5
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403270
mov eax, dword [ebp - 0x28]
jmp 0x57fbe9
mov ecx, dword [ebp - 0x30]
add ecx, 0x34
call fcn.00493020
push eax
call dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403270
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x57ff70
Capabilities:
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e18aa
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x676580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x28
call fcn.0040ee60
movzx eax, al
test eax, eax
je 0x57ffb1
xor eax, eax
jmp 0x580065
mov ecx, dword [ebp - 0x1c]
add ecx, 0x28
push ecx
lea ecx, [ebp - 0x10]
call fcn.00402050
mov dword [ebp - 4], 0
push 0
push 0x25
mov ecx, dword [ebp - 0x1c]
add ecx, 0x28
call fcn.0040e7b0
cmp eax, 0xffffffff
je 0x57ffee
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.005c3040
add esp, 8
lea ecx, [ebp - 0x10]
call fcn.00493020
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
je 0x580030
push 0
push 1
lea ecx, [ebp - 0x10]
call fcn.00493020
push eax
call fcn.0057a2e0
add esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403270
mov eax, dword [ebp - 0x14]
jmp 0x580065
lea ecx, [ebp - 0x10]
call fcn.00493020
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403270
mov eax, dword [ebp - 0x18]
jmp 0x580065
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x5804b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e1956
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x676580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x3c]
add ecx, 0x28
call fcn.0040ee60
movzx eax, al
test eax, eax
je 0x5804f1
xor eax, eax
jmp 0x5806b9
push 0
lea ecx, [ebp - 0x18]
push ecx
call fcn.00579de0
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00403290
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x28]
push eax
push 0x61a41c
lea ecx, [ebp - 0x14]
push ecx
call fcn.00403240
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00493020
push eax
lea ecx, [ebp - 0x18]
call fcn.00493020
push eax
call fcn.005767c0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x580677
push 1
push 0
push 0
mov ecx, dword [ebp - 0x3c]
add ecx, 0x28
call fcn.00493020
push eax
push 0x61a430
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cdq
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
cmp dword [0x67e1c8], 0
je 0x580631
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x20], 0
jl 0x58059f
jg 0x580599
cmp dword [ebp - 0x24], 0x20
jbe 0x58059f
mov byte [ebp - 0x3d], 1
jmp 0x5805a3
mov byte [ebp - 0x3d], 0
mov dl, byte [ebp - 0x3d]
mov byte [ebp - 0x29], dl
mov dword [ebp - 0x28], 0x19b
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x29]
push ecx
push 0x61a490
mov ecx, dword [ebp - 0x3c]
add ecx, 0x28
call fcn.00493020
push eax
push 0x61a474
push 0x61a46c
push str.OpenUrl2Task::Run
push 0x61a440
lea edx, [ebp - 0x28]
push edx
push 0x61a43c
call fcn.00447600
mov ecx, eax
call fcn.00447680
mov ecx, eax
call fcn.004476c0
mov ecx, eax
call fcn.00447680
mov ecx, eax
call fcn.00447680
mov ecx, eax
call fcn.00447680
mov ecx, eax
call fcn.00447680
mov ecx, eax
call fcn.00447680
mov ecx, eax
call fcn.00447680
mov ecx, eax
call fcn.004540b0
mov ecx, eax
call fcn.00447700
cmp dword [ebp - 0x20], 0
jl 0x580648
jg 0x58063f
cmp dword [ebp - 0x24], 0x20
jbe 0x580648
mov dword [ebp - 0x44], 1
jmp 0x58064f
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00403270
mov eax, dword [ebp - 0x34]
jmp 0x5806b9
mov dword [ebp - 0x38], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00403270
mov eax, dword [ebp - 0x38]
jmp 0x5806b9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x581d90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e4c25
mov eax, dword fs:[0]
push eax
sub esp, 0x3fc
mov eax, dword [0x676580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x404], ecx
lea ecx, [ebp - 0x3dc]
call fcn.005cbc50
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x404]
add eax, 0x28
push eax
lea ecx, [ebp - 0x3d8]
call fcn.0040ca60
mov ecx, dword [ebp - 0x404]
add ecx, 0x30
push ecx
lea ecx, [ebp - 0x3d4]
call fcn.0040ca60
mov edx, dword [ebp - 0x404]
add edx, 0x34
push edx
lea ecx, [ebp - 0x3d0]
call fcn.0040ca60
mov eax, dword [ebp - 0x404]
add eax, 0x38
push eax
lea ecx, [ebp - 0x3cc]
call fcn.0040ca60
mov ecx, dword [ebp - 0x404]
add ecx, 0x3c
push ecx
lea ecx, [ebp - 0x3c8]
call fcn.0040ca60
mov edx, dword [ebp - 0x404]
add edx, 0x40
push edx
lea ecx, [ebp - 0x3c4]
call fcn.0040ca60
push 0x61a7bc
mov ecx, dword [ebp - 0x404]
add ecx, 0x2c
call fcn.004031c0
test eax, eax
jne 0x581e71
mov dword [ebp - 0x3dc], 1
jmp 0x581e9e
push 0x61a7cc
mov ecx, dword [ebp - 0x404]
add ecx, 0x2c
call fcn.004031c0
test eax, eax
jne 0x581e94
mov dword [ebp - 0x3dc], 2
jmp 0x581e9e
mov dword [ebp - 0x3dc], 3
lea ecx, [ebp - 0x3dc]
call fcn.005cbbb0
lea ecx, [ebp - 0x3f4]
call fcn.0047edc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.005cc030
mov byte [ebp - 4], 2
lea eax, [ebp - 0x3f4]
push eax
lea ecx, [ebp - 0x3dc]
push ecx
lea ecx, [ebp - 0x30]
call fcn.005cd1b0
mov dword [ebp - 0x3e0], eax
cmp dword [ebp - 0x3e0], 0
jne 0x581f2b
mov dword [ebp - 0x3fc], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004b0a70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3f4]
call fcn.0047edf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3dc]
call fcn.004b0990
mov eax, dword [ebp - 0x3fc]
jmp 0x581ff6
mov dword [ebp - 0x3e4], 1
mov dword [ebp - 0x3f8], 0
jmp 0x581f50
mov edx, dword [ebp - 0x3f8]
add edx, 1
mov dword [ebp - 0x3f8], edx
lea ecx, [ebp - 0x3f4]
call fcn.00504860
cmp dword [ebp - 0x3f8], eax
jae 0x581fb7
mov eax, dword [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x3f4]
call fcn.004c8010
add eax, 0xc
mov ecx, eax
call fcn.00493020
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x581f9f
cmp dword [ebp - 0x3e4], 0
je 0x581f9f
mov dword [ebp - 0x408], 1
jmp 0x581fa9
mov dword [ebp - 0x408], 0
mov ecx, dword [ebp - 0x408]
mov dword [ebp - 0x3e4], ecx
jmp 0x581f41
mov edx, dword [ebp - 0x3e4]
mov dword [ebp - 0x400], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004b0a70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3f4]
call fcn.0047edf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3dc]
call fcn.004b0990
mov eax, dword [ebp - 0x400]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x589650
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e1df3
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x676580]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x254], ecx
mov eax, dword [ebp - 0x254]
cmp dword [eax + 0xc], 0
je 0x589699
mov ecx, dword [ebp - 0x254]
cmp dword [ecx + 8], 0
jne 0x5896a0
xor eax, eax
jmp 0x5898b5
mov edx, dword [ebp - 0x254]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x254]
add ecx, 0x14
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.005c2e90
add esp, 0xc
mov dword [ebp - 4], 0
mov word [ebp - 0x214], 0
push 0x1fe
push 0
lea eax, [ebp - 0x212]
push eax
call fcn.00524800
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.00493020
push eax
push pe_nt_image_headers32
lea ecx, [ebp - 0x214]
push ecx
push 0x61d778
mov ecx, dword [ebp - 0x254]
add ecx, 0x1c
call fcn.00493020
push eax
mov ecx, dword [ebp - 0x254]
add ecx, 0x18
call fcn.00493020
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x58975a
mov dword [ebp - 0x228], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x218]
call fcn.00403270
mov eax, dword [ebp - 0x228]
jmp 0x5898b5
lea edx, [ebp - 0x214]
push edx
lea ecx, [ebp - 0x224]
call fcn.004092b0
mov byte [ebp - 4], 1
push 0x5c
lea ecx, [ebp - 0x218]
call fcn.00455390
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x220]
add eax, 1
push eax
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x218]
call fcn.0040ede0
mov dword [ebp - 0x258], eax
mov edx, dword [ebp - 0x258]
mov dword [ebp - 0x25c], edx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x25c]
push ecx
lea edx, [ebp - 0x21c]
push edx
call fcn.0040b990
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x22c]
call fcn.00403270
push ecx
mov ecx, esp
mov dword [ebp - 0x238], esp
lea eax, [ebp - 0x21c]
push eax
call fcn.00402050
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx + 0x10]
push edx
lea eax, [ebp - 0x240]
push eax
call fcn.004b8330
add esp, 0xc
mov dword [ebp - 0x264], eax
mov ecx, dword [ebp - 0x264]
mov dword [ebp - 0x268], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x268]
push edx
lea ecx, [ebp - 0x234]
call fcn.004b83a0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x24c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004b6c20
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x234]
call fcn.004b68b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x240]
call fcn.004b6990
mov dword [ebp - 0x250], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x21c]
call fcn.00403270
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x218]
call fcn.00403270
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005236f2
mov esp, ebp
pop ebp
ret 4
Function at 0x5898d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e3c81
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x676580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
je 0x589908
xor eax, eax
jmp 0x589a61
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], 1
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.0040ee60
movzx edx, al
test edx, edx
jne 0x589948
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.0040ee60
movzx eax, al
test eax, eax
jne 0x589948
mov ecx, dword [ebp + 8]
add ecx, 0x20
call fcn.004b6a30
movzx ecx, al
test ecx, ecx
je 0x58994f
xor eax, eax
jmp 0x589a61
mov ecx, dword [ebp + 8]
call fcn.0040ee60
movzx edx, al
test edx, edx
jne 0x589971
mov ecx, dword [ebp + 8]
call fcn.00493020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x589978
xor eax, eax
jmp 0x589a61
mov dword [ebp - 0x18], 0
jmp 0x58998a
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
add ecx, 0x20
call fcn.004b6f90
cmp dword [ebp - 0x18], eax
jge 0x5899ed
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x20
call fcn.004b6a50
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 4
call fcn.0040ee60
movzx edx, al
test edx, edx
je 0x5899c5
xor eax, eax
jmp 0x589a61
mov ecx, dword [ebp - 0x1c]
call fcn.0040ee60
movzx eax, al
test eax, eax
jne 0x5899e7
mov ecx, dword [ebp - 0x1c]
call fcn.00493020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5899eb
xor eax, eax
jmp 0x589a61
jmp 0x589981
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], 2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.00587920
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
call fcn.00493020
push eax
call fcn.00560a00
mov ecx, eax
call fcn.00560550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00403270
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.005876c0
test eax, eax
jne 0x589a5c
xor eax, eax
jmp 0x589a61
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4