joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b22f
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
imul esi, ebx, 0x4058
mov edi, ecx
add esi, edi
push esi
push dword [esi + 0x28]
and dword [esi + 0x4038], 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x41b277
mov byte [esi + 0x2c], 0
mov dword [esi + 0x4038], 1
mov ecx, dword [edi + 0x80ec]
test ecx, ecx
je 0x41b277
mov eax, dword [ecx]
push 0
push ebx
push edi
call dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x41b295
cmp eax, 0x3e5
je 0x41b28f
xor al, al
jmp 0x41b2a4
mov byte [esi + 0x2c], 1
jmp 0x41b29e
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [esi + 0x2d], 0
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x41b2ab
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, ecx
call fcn.0041b481
xor edi, edi
push edi
push 0x40000000
push 3
push edi
push edi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x41b2e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x41b359
push dword [ebp + 8]
lea ecx, [esi + 0x10]
call fcn.0040fbcc
push edi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 2
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41b313
mov eax, dword [ecx]
push edi
push esi
call dword [eax]
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp byte [esi + 0x28], 0
mov dword [esi + 8], eax
jne 0x41b357
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x41b8fd
push edi
push edi
call fcn.004f49cc
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x41b357
cmp dword [esi + 4], 0xffffffff
je 0x41b2e1
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 4], 0xffffffff
jmp 0x41b2e1
mov al, 1
pop edi
pop esi
leave
ret 4
Function at 0x41b35f
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, ecx
cmp dword [esi + 0x80c8], 0xffffffff
je 0x41b378
xor al, al
jmp 0x41b47c
push ebx
push edi
push 1
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
xor edi, edi
lea eax, [ebp - 0x2c]
push ebx
inc edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], ebx
lea edi, [esi + 0x10]
mov dword [ebp - 0x18], 0xc
lea ebx, [esi + 0x80b4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0x3e8
push 0x6000
push 0x6000
push 2
push 6
push 0x40000003
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [edi + 0x18], eax
cmp eax, 0xffffffff
je 0x41b46b
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx - 4], eax
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
add dword [ebp - 4], 2
mov dword [ebx], eax
mov eax, dword [ebx - 4]
mov dword [edi], eax
mov eax, dword [ebx]
add ebx, 8
mov dword [edi + 0x14], eax
add edi, 0x4058
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 2
jb 0x41b3b7
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov dword [esi + ecx*4 + 0x80b0], eax
mov dword [esi + 0x80c4], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x41b896
push ebx
push ebx
call fcn.004f49cc
add esp, 0x18
mov dword [esi + 0x80c8], eax
test eax, eax
je 0x41b46b
mov al, 1
jmp 0x41b47a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.0041b4ce
xor al, al
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x41ba5c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
imul edi, dword [ebp + 8], 0x4058
mov ebx, 0x2000
push ebx
push 0
add edi, ecx
lea esi, [edi + 0x38]
push esi
call fcn.004eb5d0
add esp, 0xc
lea eax, [edi + 0x30]
push edi
push eax
push ebx
push esi
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ba9b
mov byte [edi + 0x2c], 0
mov al, 1
jmp 0x41bab0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41baae
mov byte [edi + 0x2c], 1
jmp 0x41ba97
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x41bab7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push 0
push eax
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41badf
xor al, al
jmp 0x41baf0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41baee
mov eax, dword [ecx]
push 0
push esi
call dword [eax + 0xc]
mov al, 1
pop esi
leave
ret 8
Function at 0x41bb6d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
imul edi, dword [ebp + 8], 0x4058
mov esi, ecx
and dword [ebp - 4], 0
lea eax, [edi + 0x14]
add eax, esi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi + esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41bba7
mov byte [edi + esi + 0x2d], 0
mov al, 1
jmp 0x41bbbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41bbbb
mov byte [edi + esi + 0x2d], 1
jmp 0x41bba3
xor al, al
pop edi
pop esi
leave
ret 0xc

Function at 0x41d7e5
Capabilities:
Create thread

Disassembly:
push 0x18
mov eax, 0x50caee
call fcn.004aac38
mov esi, ecx
mov dword [ebp - 0x10], esi
test esi, esi
je 0x41d801
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x18]
xor ebx, ebx
mov dword [ebp - 4], ebx
test eax, eax
jne 0x41d829
lea eax, [esi + 0x1c]
push eax
push ebx
push esi
push 0x41ee73
push ebx
push ebx
call fcn.004f49cc
add esp, 0x18
mov dword [esi + 0x18], eax
test eax, eax
je 0x41d882
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0041e04f
pop ecx
pop ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], ebx
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
call fcn.0041da64
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x20]
call fcn.0041dfed
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x41d874
call fcn.0041efd5
mov ecx, dword [ebp - 0x20]
mov bl, 1
test ecx, ecx
je 0x41d882
call fcn.0041efd5
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
call fcn.004aac01
ret 4

Function at 0x41e8f5
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x54c548]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [esi], ebx
je 0x41e9c5
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004eb5d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41e9c5
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x41e9c5
push dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41e9c5
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], ebx
push ecx
push 1
call eax
mov dword [ebp - 0x214], eax
test eax, eax
je 0x41e9c5
push dword [edi + 0xc]
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
lea ecx, [ebp - 0x214]
push ecx
mov ecx, edi
call fcn.0041e792
xor eax, eax
inc eax
jmp 0x41e9c7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aabf0
leave
ret 4
Function at 0x41fd5c
Capabilities:
Enumerate processes

Disassembly:
push 0x268
mov eax, 0x50ccf8
call fcn.004aac6c
mov ebx, dword [ebp + 8]
xor esi, esi
push esi
push 2
mov dword [ebp - 0x24c], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x41fd8c
xor eax, eax
jmp 0x41fedc
push 0x228
lea eax, [ebp - 0x238]
push esi
push eax
call fcn.004eb5d0
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x41fdc5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41fd85
push str.explorer.exe
lea ecx, [ebp - 0x240]
call fcn.00405c86
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], esi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], esi
call fcn.00420142
mov dword [ebp - 0x248], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x240]
call fcn.004f4ad9
pop ecx
pop ecx
test eax, eax
jne 0x41fe86
push dword [ebp - 0x234]
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x41fe86
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x41fe7f
lea eax, [ebp - 0x254]
push eax
call fcn.0041fc21
pop ecx
mov ecx, dword [ebp - 0x24c]
push dword [ebp - 0x240]
push ecx
mov dword [ecx], eax
lea eax, [ebp - 0x274]
push esi
push eax
lea ecx, [ebp - 0x248]
call fcn.0041f449
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41fdf9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x244], 0
jbe 0x41fec1
mov eax, dword [ebp - 0x248]
xor esi, esi
mov ecx, dword [ebp - 0x24c]
inc esi
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ecx], eax
lea ecx, [ebp - 0x248]
call fcn.0041f6ce
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.00407c78
mov eax, esi
call fcn.004aac16
ret
Function at 0x41fee2
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x54c548]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 2
mov dword [ebp - 0x234], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41ff1c
xor eax, eax
jmp 0x41ffe1
push 0x228
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.004eb5d0
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
jmp 0x41ff6b
lea eax, [ebp - 0x20c]
push eax
push dword [edi]
call fcn.004f4ad9
pop ecx
pop ecx
test eax, eax
je 0x41ff71
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41ff4a
jmp 0x41ffd8
push dword [ebp - 0x228]
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x41ffd8
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
jne 0x41ffb9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41ffd8
lea eax, [ebp - 0x23c]
push eax
call fcn.0041fc21
pop ecx
mov ecx, dword [ebp - 0x234]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aabf0
leave
ret

Function at 0x41fff0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x54c548]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.004eb5d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x104
push eax
push 0x516278
push 0x51627c
push str.arctrl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
call fcn.004f45af
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004aabf0
leave
ret

Function at 0x421ec8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x54c548]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi], edi
je 0x421f47
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], edi
je 0x421f47
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], edi
je 0x421f47
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x421f47
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004eb5d0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, esi
push 0x104
push eax
push dword [esi + 4]
call fcn.00421fd9
test eax, eax
je 0x421f47
push dword [esi + 0xc]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00421f62
neg eax
sbb eax, eax
inc eax
jmp 0x421f49
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004aabf0
leave
ret
Function at 0x421fd9
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004aad70
mov eax, dword [0x54c548]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x4220b7
test edi, edi
je 0x4220b7
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x104
jl 0x4220b7
push 0x4000
lea eax, [ebp - 0x4004]
push 0
push eax
call fcn.004eb5d0
add esp, 0xc
lea eax, [ebp - 0x400c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4220b7
cmp eax, 0x3fff
ja 0x4220b7
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4220b7
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4008]
push eax
push 0x515a24
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4220b7
push ebx
push 0
push edi
call fcn.004eb5d0
mov ecx, dword [ebp - 0x4008]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
lea eax, [ebx - 1]
push eax
push edi
call fcn.0042216a
xor eax, eax
add esp, 0x28
inc eax
jmp 0x4220b9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aabf0
leave
ret 0xc
Function at 0x425259
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push 0x30
mov eax, 0x50ceba
call fcn.004aac6c
mov ebx, ecx
mov dword [ebp - 0x3c], ebx
xor esi, esi
mov dword [ebx + 0x28], 2
lea eax, [ebx + 0x40]
push esi
push dword [eax]
mov dword [ebp - 0x30], eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [ebp - 0x1d]
call fcn.004249fc
lea ecx, [ebp - 0x1d]
mov dword [ebp - 0x1c], eax
call fcn.00423f63
lea ecx, [ebp - 0x1d]
mov dword [ebp - 0x18], eax
call fcn.00424a33
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x28], esi
lea esi, [ebx + 0x34]
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], esi
lea ecx, [ebp - 0x1d]
call fcn.004246f0
push eax
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.00412f88
mov esi, dword [ebp + ebx*4 - 0x1c]
and dword [ebp - 4], 0
push esi
call fcn.004073a4
add esp, 0x10
lea ecx, [ebp - 0x24]
push eax
push esi
call fcn.00409a26
push esi
push dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push eax
call fcn.00412f88
add esp, 0xc
push dword [ebp - 0x24]
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x425394
push esi
push dword [ebp - 0x2c]
lea eax, [ebp - 0x34]
push eax
call fcn.00412f88
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0040962c
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00407c78
push dword [ebp - 0x24]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x425394
lea ecx, [ebp - 0x1d]
call fcn.00423f2c
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x38]
push eax
call fcn.00412f88
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0040962c
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00407c78
push esi
call fcn.004073a4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00409a26
push dword [ebp - 0x24]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42539e
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call edi
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00407c78
mov ecx, dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00407c78
mov esi, dword [ebp - 0x2c]
inc ebx
cmp ebx, 3
jb 0x4252b6
mov ecx, dword [ebp - 0x3c]
call fcn.00425523
xor eax, eax
call fcn.004aac16
ret 4
Function at 0x4253d7
Capabilities:
Read .ini file

Disassembly:
push 0x218
mov eax, 0x50cf00
call fcn.004aac6c
mov edi, ecx
lea esi, [edi + 0x44]
mov ecx, esi
call fcn.0041a4c0
test eax, eax
je 0x42551b
cmp dword [ebp + 0xc], 0
je 0x42551b
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004eb5d0
add esp, 0xc
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x219]
push dword [edi + 0x38]
push 0x103
push eax
push 0x516278
push 0x5164c0
call fcn.00424d26
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.00405c86
and dword [ebp - 4], 0
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
call fcn.0042215e
mov ecx, dword [ebp - 0x220]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00407c78
mov ecx, esi
call fcn.0041f07a
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x4254fe
lea ecx, [ebp - 0x219]
call fcn.00424aa1
push eax
lea eax, [edi + 0x34]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00412f88
add esp, 0xc
lea ecx, [ebp - 0x219]
mov dword [ebp - 4], 1
call fcn.00424fad
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00412f88
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00422152
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.00407c78
mov ecx, dword [ebp - 0x220]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00407c78
mov ecx, esi
call fcn.00421ec8
test eax, eax
je 0x42551b
lea ecx, [ebp - 0x219]
call fcn.004248c4
mov dword [edi + 0x28], 3
call fcn.004aac16
ret 0xc

Function at 0x425523
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54c548]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.004eb5d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push dword [esi + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x20d]
call fcn.0042488d
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.004aabf0
leave
ret
Function at 0x42848e
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
mov eax, dword [0x54c548]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x208
mov dword [ebp - 0x878], ecx
push edi
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004eb5d0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x86d]
call fcn.00427e8b
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004eb5d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.00407d78
push 0x5164e8
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.00428acd
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42855c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x428686
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x428638
mov esi, dword [ebp - 0x86c]
and esi, 0x10
je 0x4285ea
mov ecx, 0x5164f0
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4285a3
test dx, dx
je 0x42859f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4285a3
add eax, 4
add ecx, 4
test dx, dx
jne 0x42857d
xor eax, eax
jmp 0x4285a8
sbb eax, eax
or eax, 1
test eax, eax
je 0x428638
mov ecx, 0x5164f4
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4285e1
test dx, dx
je 0x4285dd
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4285e1
add eax, 4
add ecx, 4
test dx, dx
jne 0x4285bb
xor eax, eax
jmp 0x4285e6
sbb eax, eax
or eax, 1
test eax, eax
je 0x428638
test esi, esi
jne 0x428638
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.004eb5d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x86c]
push eax
push edi
call ebx
test eax, eax
jne 0x428567
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x874]
call fcn.00405c86
lea ecx, [ebp - 0x874]
push ecx
mov ecx, dword [ebp - 0x878]
call fcn.004286d8
mov ecx, dword [ebp - 0x874]
add ecx, 0xfffffff0
call fcn.00407c78
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aabf0
leave
ret
Function at 0x4286d8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.004aad70
mov eax, dword [0x54c548]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
xor eax, eax
cmp dword [esi - 0xc], eax
je 0x428765
push edi
push 7
pop ecx
lea edi, [ebp - 0x2024]
rep stosd dword es:[edi], eax
push 0x2000
push 0
stosw word es:[edi], ax
lea eax, [ebp - 0x2004]
push eax
mov dword [ebp - 0x2020], 3
call fcn.004eb5d0
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.004f3804
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004aabf0
leave
ret 4

Function at 0x428840
Capabilities:
Read .ini file

Disassembly:
push 0x24
mov eax, 0x50d077
call fcn.004aac6c
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0x515b84
call fcn.0040ce35
mov ecx, esi
call fcn.00428376
push eax
lea ecx, [ebp - 0x28]
call fcn.0040ce35
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0040776a
push eax
lea ecx, [ebp - 0x30]
call fcn.00405c5d
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
push 0x104
cmovae edi, dword [ebp - 0x28]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00407b51
push 0x104
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.00407cd9
push edi
push 0x104
push esi
push 0x515abc
lea ecx, [ebp - 0x29]
call fcn.00427f30
push eax
lea ecx, [ebp - 0x29]
call fcn.00427c41
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x30]
call fcn.00407c90
lea ecx, [ebp - 0x29]
call fcn.00427d8f
push eax
lea ecx, [ebp - 0x30]
call fcn.004286b4
mov esi, dword [ebp - 0x30]
test eax, eax
je 0x428902
push 0x5164d4
push esi
call fcn.00428b0c
pop ecx
pop ecx
test eax, eax
jne 0x428905
xor ebx, ebx
inc ebx
lea ecx, [esi - 0x10]
call fcn.00407c78
lea ecx, [ebp - 0x28]
call fcn.0040fb7f
mov eax, ebx
call fcn.004aac16
ret