joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a8ea
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004baeb0
mov eax, dword [0x568598]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x4000
push ebx
push eax
call fcn.004fb180
add esp, 0xc
mov dword [ebp - 0x4008], ebx
test esi, esi
je 0x41a9c4
test edi, edi
je 0x41a9c4
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x41a9c4
cmp eax, 0x3fff
ja 0x41a9c4
lea ecx, [ebp - 0x4004]
push ecx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41a9c4
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x52ea80
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41a9c4
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push ebx
push edi
call fcn.004fb180
mov ecx, dword [ebp - 0x400c]
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, [esi - 1]
push eax
push edi
call fcn.0040ad89
xor eax, eax
add esp, 0x28
inc eax
jmp 0x41a9c6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bad30
leave
ret

Function at 0x41aada
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x41ab45
cmp dword [ebp + 0xc], 0
je 0x41ab45
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x41ab45
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x41ab45
and dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41ab3f
push esi
push dword [ebp + 0xc]
push edi
call fcn.004fa680
and dword [ebp - 4], 0
lea eax, [ebp - 4]
add esp, 0xc
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41ab3f
mov al, 1
jmp 0x41ab47
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop esi
leave
ret
Function at 0x420046
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x524815
call fcn.004bae1a
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4200c3
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4200c3
call fcn.00406510
mov esi, eax
jmp 0x42019a
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4200e6
call fcn.00406510
jmp 0x42018d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x4200dc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x420116
mov esi, 0x8007000e
jmp 0x42018f
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0041f150
jmp 0x42013c
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x42010f
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x4200dc
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0041ff0d
mov esi, eax
test edi, edi
je 0x42019a
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4201b3
lea ecx, [ebp - 0x418]
call fcn.0041f67d
mov eax, esi
call fcn.004bad67
ret 0x10
Function at 0x420afa
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x420b0d
push 0xd
pop eax
jmp 0x420b51
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x420b20
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x420b18
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x420b56
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x420b68
push 0xd
pop eax
jmp 0x420b9a
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x420b71
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x422301
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 0x422349
mov byte [esi + 0x2c], 0
mov dword [esi + 0x4038], 1
mov ecx, dword [edi + 0x80ec]
test ecx, ecx
je 0x422349
mov eax, dword [ecx]
push 0
push ebx
push edi
call dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x422367
cmp eax, 0x3e5
je 0x422361
xor al, al
jmp 0x422376
mov byte [esi + 0x2c], 1
jmp 0x422370
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 0x42237d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, ecx
call fcn.00422566
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 0x4223b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x42242b
push dword [ebp + 8]
lea ecx, [esi + 0x10]
call fcn.0041568c
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 0x4223e5
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 0x422429
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x4229e2
push edi
push edi
call fcn.005045e3
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x422429
cmp dword [esi + 4], 0xffffffff
je 0x4223b3
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 4], 0xffffffff
jmp 0x4223b3
mov al, 1
pop edi
pop esi
leave
ret 4
Function at 0x422431
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 0x42244a
xor al, al
jmp 0x422561
mov eax, dword [0x56d648]
push ebx
xor ebx, ebx
push edi
mov edi, ebx
test eax, eax
je 0x422461
push 1
lea ecx, [ebp - 0x2c]
push ecx
call eax
mov eax, dword [0x56d644]
test eax, eax
je 0x422474
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 0x422550
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 0x422497
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 0x42297b
push ebx
push ebx
call fcn.005045e3
add esp, 0x18
mov dword [esi + 0x80c8], eax
test eax, eax
je 0x422550
mov al, 1
jmp 0x42255f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.004225b3
xor al, al
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x422b41
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.004fb180
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 0x422b80
mov byte [edi + 0x2c], 0
mov al, 1
jmp 0x422b95
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x422b93
mov byte [edi + 0x2c], 1
jmp 0x422b7c
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x422b9c
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 0x422bc4
xor al, al
jmp 0x422bd5
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x422bd3
mov eax, dword [ecx]
push 0
push esi
call dword [eax + 0xc]
mov al, 1
pop esi
leave
ret 8
Function at 0x422c5d
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 0x422c97
mov byte [edi + esi + 0x2d], 0
mov al, 1
jmp 0x422cad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x422cab
mov byte [edi + esi + 0x2d], 1
jmp 0x422c93
xor al, al
pop edi
pop esi
leave
ret 0xc

Function at 0x423dfd
Capabilities:
Create thread

Disassembly:
push 0x18
mov eax, 0x524ace
call fcn.004bad78
mov esi, ecx
mov dword [ebp - 0x10], esi
test esi, esi
je 0x423e19
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 0x423e41
lea eax, [esi + 0x1c]
push eax
push ebx
push esi
push 0x424f38
push ebx
push ebx
call fcn.005045e3
add esp, 0x18
mov dword [esi + 0x18], eax
test eax, eax
je 0x423e9a
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.00424466
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.00424016
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x20]
call fcn.00424404
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x423e8c
call fcn.004250a0
mov ecx, dword [ebp - 0x20]
mov bl, 1
test ecx, ecx
je 0x423e9a
call fcn.004250a0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
call fcn.004bad41
ret 4

Function at 0x4249ba
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x568598]
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 0x424a8a
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004fb180
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 0x424a8a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x424a8a
push dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x424a8a
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], ebx
push ecx
push 1
call eax
mov dword [ebp - 0x214], eax
test eax, eax
je 0x424a8a
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.0042483e
xor eax, eax
inc eax
jmp 0x424a8c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bad30
leave
ret 4
Function at 0x42591e
Capabilities:
Enumerate processes

Disassembly:
push 0x268
mov eax, 0x524cd8
call fcn.004badac
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 0x42594e
xor eax, eax
jmp 0x425a9e
push 0x228
lea eax, [ebp - 0x238]
push esi
push eax
call fcn.004fb180
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 0x425987
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x425947
push str.explorer.exe
lea ecx, [ebp - 0x240]
call fcn.0040840e
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], esi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], esi
call fcn.00425d04
mov dword [ebp - 0x248], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x240]
call fcn.005046f0
pop ecx
pop ecx
test eax, eax
jne 0x425a48
push dword [ebp - 0x234]
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x425a48
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 0x425a41
lea eax, [ebp - 0x254]
push eax
call fcn.004257e3
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.0042552c
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 0x4259bb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x244], 0
jbe 0x425a83
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.00425616
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.00406160
mov eax, esi
call fcn.004bad56
ret
Function at 0x425aa4
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x568598]
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 0x425ade
xor eax, eax
jmp 0x425ba3
push 0x228
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.004fb180
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
jmp 0x425b2d
lea eax, [ebp - 0x20c]
push eax
push dword [edi]
call fcn.005046f0
pop ecx
pop ecx
test eax, eax
je 0x425b33
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x425b0c
jmp 0x425b9a
push dword [ebp - 0x228]
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x425b9a
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 0x425b7b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x425b9a
lea eax, [ebp - 0x23c]
push eax
call fcn.004257e3
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.004bad30
leave
ret

Function at 0x425bb2
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x568598]
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.004fb180
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x104
push eax
push 0x52f738
push 0x52f73c
push str.arctrl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0050415e
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004bad30
leave
ret

Function at 0x42b054
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x568598]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi], edi
je 0x42b0d3
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], edi
je 0x42b0d3
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], edi
je 0x42b0d3
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42b0d3
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004fb180
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, esi
push 0x104
push eax
push dword [esi + 4]
call fcn.0042b165
test eax, eax
je 0x42b0d3
push dword [esi + 0xc]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0042b0ee
neg eax
sbb eax, eax
inc eax
jmp 0x42b0d5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004bad30
leave
ret
Function at 0x42b165
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004baeb0
mov eax, dword [0x568598]
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 0x42b243
test edi, edi
je 0x42b243
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x104
jl 0x42b243
push 0x4000
lea eax, [ebp - 0x4004]
push 0
push eax
call fcn.004fb180
add esp, 0xc
lea eax, [ebp - 0x400c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x42b243
cmp eax, 0x3fff
ja 0x42b243
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42b243
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4008]
push eax
push 0x52ea80
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42b243
push ebx
push 0
push edi
call fcn.004fb180
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.0042b2f6
xor eax, eax
add esp, 0x28
inc eax
jmp 0x42b245
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bad30
leave
ret 0xc
Function at 0x42f2a7
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push 0x30
mov eax, 0x524ed3
call fcn.004badac
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.0042ea37
lea ecx, [ebp - 0x1d]
mov dword [ebp - 0x1c], eax
call fcn.0042de9c
lea ecx, [ebp - 0x1d]
mov dword [ebp - 0x18], eax
call fcn.0042dd97
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.0042ec44
push eax
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.0041a196
mov esi, dword [ebp + ebx*4 - 0x1c]
and dword [ebp - 4], 0
push esi
call fcn.00405bb0
add esp, 0x10
lea ecx, [ebp - 0x24]
push eax
push esi
call fcn.0040aa59
push esi
push dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push eax
call fcn.0041a196
add esp, 0xc
push dword [ebp - 0x24]
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42f3e2
push esi
push dword [ebp - 0x2c]
lea eax, [ebp - 0x34]
push eax
call fcn.0041a196
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0040a9e5
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00406160
push dword [ebp - 0x24]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42f3e2
lea ecx, [ebp - 0x1d]
call fcn.0042e03e
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x38]
push eax
call fcn.0041a196
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0040a9e5
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00406160
push esi
call fcn.00405bb0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.0040aa59
push dword [ebp - 0x24]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42f3ec
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call edi
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00406160
mov ecx, dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00406160
mov esi, dword [ebp - 0x2c]
inc ebx
cmp ebx, 3
jb 0x42f304
mov ecx, dword [ebp - 0x3c]
call fcn.0042f571
xor eax, eax
call fcn.004bad56
ret 4