joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e28f
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 0x41e2d7
mov byte [esi + 0x2c], 0
mov dword [esi + 0x4038], 1
mov ecx, dword [edi + 0x80ec]
test ecx, ecx
je 0x41e2d7
mov eax, dword [ecx]
push 0
push ebx
push edi
call dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x41e2f5
cmp eax, 0x3e5
je 0x41e2ef
xor al, al
jmp 0x41e304
mov byte [esi + 0x2c], 1
jmp 0x41e2fe
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 0x41e30b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, ecx
call fcn.0041e4f4
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 0x41e345
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x41e3b9
push dword [ebp + 8]
lea ecx, [esi + 0x10]
call fcn.0041273c
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 0x41e373
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 0x41e3b7
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x41e970
push edi
push edi
call fcn.004f804c
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x41e3b7
cmp dword [esi + 4], 0xffffffff
je 0x41e341
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 4], 0xffffffff
jmp 0x41e341
mov al, 1
pop edi
pop esi
leave
ret 4
Function at 0x41e3bf
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 0x41e3d8
xor al, al
jmp 0x41e4ef
mov eax, dword [0x555704]
push ebx
xor ebx, ebx
push edi
mov edi, ebx
test eax, eax
je 0x41e3ef
push 1
lea ecx, [ebp - 0x2c]
push ecx
call eax
mov eax, dword [0x555700]
test eax, eax
je 0x41e402
push ebx
push ebx
push 1
lea ecx, [ebp - 0x2c]
push ecx
call eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], eax
lea ebx, [esi + 0x10]
lea eax, [esi + 0x80b4]
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 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 [ebx + 0x18], eax
cmp eax, 0xffffffff
je 0x41e4de
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov dword [ecx - 4], eax
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
add edi, 2
mov dword [ecx], eax
mov eax, dword [ecx - 4]
mov dword [ebx], eax
mov eax, dword [ecx]
add ecx, 8
mov dword [ebx + 0x14], eax
add ebx, 0x4058
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp eax, 2
jb 0x41e425
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + edi*4 + 0x80b0], eax
mov dword [esi + 0x80c4], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x41e909
push ebx
push ebx
call fcn.004f804c
add esp, 0x18
mov dword [esi + 0x80c8], eax
test eax, eax
je 0x41e4de
mov al, 1
jmp 0x41e4ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.0041e541
xor al, al
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x41eacf
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.004eec50
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 0x41eb0e
mov byte [edi + 0x2c], 0
mov al, 1
jmp 0x41eb23
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41eb21
mov byte [edi + 0x2c], 1
jmp 0x41eb0a
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x41eb2a
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 0x41eb52
xor al, al
jmp 0x41eb63
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41eb61
mov eax, dword [ecx]
push 0
push esi
call dword [eax + 0xc]
mov al, 1
pop esi
leave
ret 8
Function at 0x41ebed
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 0x41ec27
mov byte [edi + esi + 0x2d], 0
mov al, 1
jmp 0x41ec3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41ec3b
mov byte [edi + esi + 0x2d], 1
jmp 0x41ec23
xor al, al
pop edi
pop esi
leave
ret 0xc

Function at 0x420865
Capabilities:
Create thread

Disassembly:
push 0x18
mov eax, 0x51027e
call fcn.004ae298
mov esi, ecx
mov dword [ebp - 0x10], esi
test esi, esi
je 0x420881
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 0x4208a9
lea eax, [esi + 0x1c]
push eax
push ebx
push esi
push 0x421f0f
push ebx
push ebx
call fcn.004f804c
add esp, 0x18
mov dword [esi + 0x18], eax
test eax, eax
je 0x420902
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.004210cf
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.00420ae4
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x20]
call fcn.0042106d
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4208f4
call fcn.00422077
mov ecx, dword [ebp - 0x20]
mov bl, 1
test ecx, ecx
je 0x420902
call fcn.00422077
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
call fcn.004ae261
ret 4

Function at 0x421991
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x550548]
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 0x421a61
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004eec50
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 0x421a61
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x421a61
push dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x421a61
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], ebx
push ecx
push 1
call eax
mov dword [ebp - 0x214], eax
test eax, eax
je 0x421a61
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.00421815
xor eax, eax
inc eax
jmp 0x421a63
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ae250
leave
ret 4
Function at 0x422dfc
Capabilities:
Enumerate processes

Disassembly:
push 0x268
mov eax, 0x510488
call fcn.004ae2cc
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 0x422e2c
xor eax, eax
jmp 0x422f7c
push 0x228
lea eax, [ebp - 0x238]
push esi
push eax
call fcn.004eec50
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 0x422e65
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x422e25
push str.explorer.exe
lea ecx, [ebp - 0x240]
call fcn.00405cd4
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], esi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], esi
call fcn.004231e2
mov dword [ebp - 0x248], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x240]
call fcn.004f8159
pop ecx
pop ecx
test eax, eax
jne 0x422f26
push dword [ebp - 0x234]
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x422f26
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 0x422f1f
lea eax, [ebp - 0x254]
push eax
call fcn.00422cc1
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.004224e9
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 0x422e99
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x244], 0
jbe 0x422f61
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.0042276e
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.00407cc8
mov eax, esi
call fcn.004ae276
ret
Function at 0x422f82
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x550548]
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 0x422fbc
xor eax, eax
jmp 0x423081
push 0x228
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.004eec50
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
jmp 0x42300b
lea eax, [ebp - 0x20c]
push eax
push dword [edi]
call fcn.004f8159
pop ecx
pop ecx
test eax, eax
je 0x423011
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x422fea
jmp 0x423078
push dword [ebp - 0x228]
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x423078
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 0x423059
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x423078
lea eax, [ebp - 0x23c]
push eax
call fcn.00422cc1
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.004ae250
leave
ret

Function at 0x423090
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x550548]
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.004eec50
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x104
push eax
push 0x51a2f8
push 0x51a2fc
push str.arctrl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
call fcn.004f7c2f
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ae250
leave
ret

Function at 0x424f65
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x550548]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi], edi
je 0x424fe4
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], edi
je 0x424fe4
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], edi
je 0x424fe4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x424fe4
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004eec50
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, esi
push 0x104
push eax
push dword [esi + 4]
call fcn.00425076
test eax, eax
je 0x424fe4
push dword [esi + 0xc]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00424fff
neg eax
sbb eax, eax
inc eax
jmp 0x424fe6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ae250
leave
ret
Function at 0x425076
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004ae3d0
mov eax, dword [0x550548]
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 0x425154
test edi, edi
je 0x425154
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x104
jl 0x425154
push 0x4000
lea eax, [ebp - 0x4004]
push 0
push eax
call fcn.004eec50
add esp, 0xc
lea eax, [ebp - 0x400c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x425154
cmp eax, 0x3fff
ja 0x425154
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x425154
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4008]
push eax
push 0x519a04
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x425154
push ebx
push 0
push edi
call fcn.004eec50
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.00425207
xor eax, eax
add esp, 0x28
inc eax
jmp 0x425156
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ae250
leave
ret 0xc
Function at 0x4282f6
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push 0x30
mov eax, 0x51064a
call fcn.004ae2cc
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.00427a99
lea ecx, [ebp - 0x1d]
mov dword [ebp - 0x1c], eax
call fcn.00427000
lea ecx, [ebp - 0x1d]
mov dword [ebp - 0x18], eax
call fcn.00427ad0
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.0042778d
push eax
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.00415af8
mov esi, dword [ebp + ebx*4 - 0x1c]
and dword [ebp - 4], 0
push esi
call fcn.004073f2
add esp, 0x10
lea ecx, [ebp - 0x24]
push eax
push esi
call fcn.00409a76
push esi
push dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push eax
call fcn.00415af8
add esp, 0xc
push dword [ebp - 0x24]
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x428431
push esi
push dword [ebp - 0x2c]
lea eax, [ebp - 0x34]
push eax
call fcn.00415af8
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0040967c
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00407cc8
push dword [ebp - 0x24]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x428431
lea ecx, [ebp - 0x1d]
call fcn.00426fc9
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x38]
push eax
call fcn.00415af8
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0040967c
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00407cc8
push esi
call fcn.004073f2
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00409a76
push dword [ebp - 0x24]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42843b
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call edi
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00407cc8
mov ecx, dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00407cc8
mov esi, dword [ebp - 0x2c]
inc ebx
cmp ebx, 3
jb 0x428353
mov ecx, dword [ebp - 0x3c]
call fcn.004285c0
xor eax, eax
call fcn.004ae276
ret 4
Function at 0x428474
Capabilities:
Read .ini file

Disassembly:
push 0x218
mov eax, 0x510690
call fcn.004ae2cc
mov edi, ecx
lea esi, [edi + 0x44]
mov ecx, esi
call fcn.0041d520
test eax, eax
je 0x4285b8
cmp dword [ebp + 0xc], 0
je 0x4285b8
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004eec50
add esp, 0xc
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x219]
push dword [edi + 0x38]
push 0x103
push eax
push 0x51a2f8
push 0x51a540
call fcn.00427dc3
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.00405cd4
and dword [ebp - 4], 0
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
call fcn.004251fb
mov ecx, dword [ebp - 0x220]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00407cc8
mov ecx, esi
call fcn.0042211a
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x42859b
lea ecx, [ebp - 0x219]
call fcn.00427b3e
push eax
lea eax, [edi + 0x34]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00415af8
add esp, 0xc
lea ecx, [ebp - 0x219]
mov dword [ebp - 4], 1
call fcn.0042804a
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00415af8
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004251ef
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.00407cc8
mov ecx, dword [ebp - 0x220]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00407cc8
mov ecx, esi
call fcn.00424f65
test eax, eax
je 0x4285b8
lea ecx, [ebp - 0x219]
call fcn.00427961
mov dword [edi + 0x28], 3
call fcn.004ae276
ret 0xc

Function at 0x4285c0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x550548]
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.004eec50
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.0042792a
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.004ae250
leave
ret
Function at 0x42b4bf
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
mov eax, dword [0x550548]
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.004eec50
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.0042aebb
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.004eec50
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.00407dc8
push 0x51a568
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.0042bafe
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 0x42b58d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42b6b7
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x42b669
mov esi, dword [ebp - 0x86c]
and esi, 0x10
je 0x42b61b
mov ecx, 0x51a570
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42b5d4
test dx, dx
je 0x42b5d0
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42b5d4
add eax, 4
add ecx, 4
test dx, dx
jne 0x42b5ae
xor eax, eax
jmp 0x42b5d9
sbb eax, eax
or eax, 1
test eax, eax
je 0x42b669
mov ecx, 0x51a574
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42b612
test dx, dx
je 0x42b60e
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42b612
add eax, 4
add ecx, 4
test dx, dx
jne 0x42b5ec
xor eax, eax
jmp 0x42b617
sbb eax, eax
or eax, 1
test eax, eax
je 0x42b669
test esi, esi
jne 0x42b669
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.004eec50
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 0x42b598
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x874]
call fcn.00405cd4
lea ecx, [ebp - 0x874]
push ecx
mov ecx, dword [ebp - 0x878]
call fcn.0042b709
mov ecx, dword [ebp - 0x874]
add ecx, 0xfffffff0
call fcn.00407cc8
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ae250
leave
ret
Function at 0x42b709
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.004ae3d0
mov eax, dword [0x550548]
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 0x42b796
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.004eec50
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.004f6e84
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.004ae250
leave
ret 4

Function at 0x42b871
Capabilities:
Read .ini file

Disassembly:
push 0x24
mov eax, 0x510805
call fcn.004ae2cc
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0x519c0c
call fcn.0040f9a4
mov ecx, esi
call fcn.0042b3a7
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f9a4
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.004077b8
push eax
lea ecx, [ebp - 0x30]
call fcn.00405cab
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.00407b9f
push 0x104
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.00407d29
push edi
push 0x104
push esi
push 0x519b44
lea ecx, [ebp - 0x29]
call fcn.0042af60
push eax
lea ecx, [ebp - 0x29]
call fcn.0042ac71
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x30]
call fcn.00407ce0
lea ecx, [ebp - 0x29]
call fcn.0042adbf
push eax
lea ecx, [ebp - 0x30]
call fcn.0042b6e5
mov esi, dword [ebp - 0x30]
test eax, eax
je 0x42b933
push str.bigupdate
push esi
call fcn.0042bb3d
pop ecx
pop ecx
test eax, eax
jne 0x42b936
xor ebx, ebx
inc ebx
lea ecx, [esi - 0x10]
call fcn.00407cc8
lea ecx, [ebp - 0x28]
call fcn.004126ef
mov eax, ebx
call fcn.004ae276
ret