joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a438e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x51aa8f
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x20], eax
xor edx, edx
push edx
push 0x80
push 3
push edx
push 3
push 0x80000000
push ecx
mov byte [eax], dl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x28], 0x533e68
mov dword [ebp - 0x24], ebx
and dword [ebp - 4], 0
cmp ebx, 0xffffffff
je 0x4a44ba
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a44ba
cmp edi, dword [ebp + 0x78]
jbe 0x4a44ba
sub edi, dword [ebp + 0x78]
and dword [ebp - 0x1c], 0
push 0x10000
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004950b5
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 0xd], 0
test esi, esi
je 0x4a44a9
and dword [ebp - 0x18], 0
lea ecx, [ebp]
and dword [ebp - 0x14], 0
call fcn.004d6200
push 0
lea eax, [ebp - 0x14]
push eax
push 0x10000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a4493
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4a4493
mov edx, dword [ebp - 0x18]
lea eax, [ecx + edx]
cmp eax, edi
jbe 0x4a447a
mov ecx, edi
mov byte [ebp - 0xd], 1
sub ecx, edx
mov dword [ebp - 0x14], ecx
push ecx
push esi
lea ecx, [ebp]
call fcn.004d6000
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
cmp byte [ebp - 0xd], 0
mov dword [ebp - 0x18], eax
je 0x4a4447
lea ecx, [ebp]
call fcn.004d60d0
push dword [ebp - 0x20]
lea ecx, [ebp]
call fcn.004d61a0
mov byte [ebp - 0xd], al
push esi
mov byte [ebp - 4], 0
call fcn.004db27c
and dword [ebp - 0x1c], 0
pop ecx
jmp 0x4a44be
mov byte [ebp - 0xd], 0
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x28], 0x533e68
test ebx, ebx
je 0x4a44d8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x24], 0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6c]
xor ecx, ebp
call fcn.004dab24
add ebp, 0x70
leave
ret

Function at 0x4a46bd
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x51810e
call fcn.004db733
mov edi, ecx
lea ecx, [ebp - 0x10]
call fcn.0040ce82
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
xor esi, esi
mov ecx, edi
push ebx
mov dword [ebp - 4], esi
call fcn.004a4842
test eax, eax
jne 0x4a46f0
push 3
pop esi
jmp 0x4a4719
lea eax, [ebp - 0x14]
push eax
push dword [edi + 4]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
push 1
push esi
push dword [ebx]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d148
mov eax, esi
call fcn.004db6fc
ret 8
Function at 0x4a4842
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x51aae9
call fcn.004db733
lea eax, [ebp - 0x14]
push eax
push dword [ecx + 4]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4a4925
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov esi, 0x104
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x10], esi
call fcn.004db281
mov ebx, dword [ebp + 8]
mov edi, eax
pop ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], esi
push eax
push 0
push dword [ebx]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x4a48e9
push edi
call fcn.004db27c
mov esi, dword [ebp - 0x10]
and dword [ebp - 0x1c], 0
and dword [ebp - 0x20], 0
push esi
call fcn.004db281
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], edi
push eax
push 0
push dword [ebx]
mov dword [ebp - 0x20], esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, edi
test edx, edx
jne 0x4a48f4
xor ecx, ecx
jmp 0x4a4902
mov edx, edi
test eax, eax
je 0x4a48e1
xor esi, esi
inc esi
jmp 0x4a490e
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a48f9
sub ecx, esi
push ecx
mov ecx, dword [ebp + 0xc]
push edx
call fcn.0047bd80
xor esi, esi
or dword [ebp - 4], 0xffffffff
push edi
call fcn.004db27c
and dword [ebp - 0x1c], 0
mov eax, esi
and dword [ebp - 0x20], 0
pop ecx
jmp 0x4a4928
xor eax, eax
inc eax
call fcn.004db6fc
ret 8
Function at 0x4a5705
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x498]
sub esp, 0x498
push 0xffffffffffffffff
push 0x51ad18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp + 0x494], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov ebx, dword [ebp + 0x4a0]
lea eax, [ebp + 0x84]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4a5905
lea eax, [ebp + 0x28c]
push eax
push 0
push 0x544648
lea eax, [ebp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4a5905
lea eax, [ebp + 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0x28c]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d92c
and dword [ebp - 4], 0
mov esi, str..url
push esi
call fcn.004e0c26
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00410f3f
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], 0x533e68
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
je 0x4a58df
lea ecx, [ebp - 0x14]
call fcn.0040ce82
mov byte [ebp - 4], 2
lea eax, [ebp + 4]
push 3
push dword [ebx]
lea ecx, [ebp]
mov dword [ebp], eax
call fcn.00491470
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
push dword [ebp]
call fcn.0047b860
lea eax, [ebp + 4]
mov byte [ebp - 4], 5
cmp dword [ebp], eax
je 0x4a5831
push dword [ebp]
call fcn.004e0c4c
pop ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push str._InternetShortcut__r_nURL_s_r_n
push eax
call fcn.00456bb8
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
add esp, 0xc
push 0
push ecx
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test esi, esi
je 0x4a586a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x1c], 0
xor esi, esi
test ebx, ebx
je 0x4a5883
push 5
push esi
push esi
push dword [ebp - 0x10]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x5c
push dword [ebp - 0x10]
call fcn.004dee27
pop ecx
pop ecx
test eax, eax
jne 0x4a5898
or eax, 0xffffffff
jmp 0x4a589d
sub eax, dword [ebp - 0x10]
sar eax, 1
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00406d83
mov edx, dword [ebp - 0x28]
mov ecx, eax
add edx, 0x1c
mov byte [ebp - 4], 6
call fcn.00479c90
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.0040d148
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040d148
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040d148
mov byte [ebp - 4], 0
mov dword [ebp - 0x20], 0x533e68
test esi, esi
je 0x4a58f9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x1c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d148
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0x494]
xor ecx, ebp
call fcn.004dab24
add ebp, 0x498
leave
ret 4
Function at 0x4a65b6
Capabilities:
Read file on windows

Disassembly:
push 0x24
mov eax, 0x51ae3c
call fcn.004db733
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x10], edi
push 0x400
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.004950b5
test al, al
jne 0x4a65f5
push 3
pop esi
mov edi, esi
push dword [ebp - 0x10]
call fcn.004db27c
pop ecx
mov eax, edi
call fcn.004db6fc
ret 4
push 2
mov ecx, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov eax, edi
mov edx, edi
pop esi
add eax, 0xa
sub edx, 0x400
mov dword [ebp - 0x18], eax
inc ecx
mov eax, edx
mov dword [ebp - 0x24], edx
cdq
mov dword [ebp - 0x1c], ecx
mov ecx, eax
cmp dword [ebp - 0x1c], 1
mov eax, edx
mov dword [ebp - 0x20], eax
jle 0x4a6632
mov eax, dword [ebp - 0x18]
cdq
add ecx, eax
adc edx, dword [ebp - 0x20]
mov eax, edx
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x4a6656
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a65e0
push edi
lea eax, [ebp - 0x14]
push eax
push 0x400
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a65e0
mov eax, 0x400
cmp dword [ebp - 0x14], eax
jne 0x4a65e0
push ecx
push ecx
mov ecx, dword [ebp - 0x10]
mov edx, eax
call fcn.004769b0
pop ecx
pop ecx
test eax, eax
jns 0x4a66a2
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
jmp 0x4a6604
mov ecx, dword [ebp - 0x28]
add ecx, 0xffffffc0
mov dword [ebp - 0x2c], edi
add eax, ecx
lea ecx, [ebp - 0x2c]
push edi
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4a65e0
push edi
lea eax, [ebp - 0x14]
push eax
push 0x4a
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a65e0
cmp dword [ebp - 0x14], 0
je 0x4a65e0
push 0xa
lea eax, [ebx + 0x40]
push str.ADVINSTSFX
push eax
call fcn.004dcd5d
add esp, 0xc
test eax, eax
jne 0x4a6708
cmp dword [ebx + 0xc], 0x64
je 0x4a670f
push 5
jmp 0x4a65df
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebx + 0x10]
mov eax, dword [ebp - 0x2c]
sbb eax, edi
mov dword [ebx + 0x50], ecx
mov dword [ebx + 0x54], eax
jmp 0x4a65e2
Function at 0x4a679f
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x515a68
call fcn.004db733
mov edi, ecx
cmp dword [edi + 4], 0
mov esi, dword [ebp + 8]
mov dword [edi + 0x10], esi
jne 0x4a67c0
xor eax, eax
jmp 0x4a6848
xor ebx, ebx
test esi, esi
je 0x4a67e3
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
lea ecx, [edi + 0x14]
call fcn.0040e086
mov eax, dword [esi]
mov ecx, esi
push dword [edi + 0x18]
call dword [eax + 0x20]
lea eax, [ebp + 8]
push eax
push ebx
push edi
push 0x4a6850
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
mov dword [ebp - 0x14], 0x533e68
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], ebx
test esi, esi
je 0x4a6810
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0x533e68
test edi, edi
je 0x4a6846
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
mov eax, esi
call fcn.004db6fc
ret 4
Function at 0x4a6e08
Capabilities:
Delete file

Disassembly:
push 0x18
mov eax, 0x51af65
call fcn.004db733
mov edi, ecx
mov esi, dword [ebp + 8]
push 0x2e
push dword [esi]
call fcn.004dee27
pop ecx
pop ecx
test eax, eax
je 0x4a6fa2
sub eax, dword [esi]
sar eax, 1
test eax, eax
jle 0x4a6fa2
push eax
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00406d83
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040ce82
mov byte [ebp - 4], 1
lea eax, [ebp - 0x18]
push dword [ebp - 0x10]
mov ebx, dword [ebp + 0xc]
push dword [esi]
push dword [ebx]
push str.__verbose___log_file__s____remove_pack_file___s____s_
push eax
call fcn.00411724
mov ecx, dword [edi + 0x10]
add esp, 0x14
test ecx, ecx
je 0x4a6e7c
mov eax, dword [ecx]
push esi
call dword [eax + 0x14]
push 0
lea eax, [ebp - 0x24]
push 0x8000008
push eax
lea ecx, [edi + 0xc]
lea edx, [ebp - 0x18]
call fcn.0049c347
add esp, 0xc
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x10]
call fcn.0047a2b0
test al, al
je 0x4a6eb2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4a6f70
lea ecx, [ebp - 0x14]
call fcn.0040ce82
push ecx
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 2
mov ecx, ebx
call fcn.0049cd54
pop ecx
lea ecx, [ebp + 0xc]
call fcn.0040ce82
mov edx, 0xca
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.0049b1b7
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
push 0x5c
push eax
mov ecx, dword [eax - 0xc]
mov dword [ebp + 8], ecx
call fcn.004dee27
pop ecx
pop ecx
test eax, eax
jne 0x4a6f03
or eax, 0xffffffff
jmp 0x4a6f08
sub eax, dword [ebp - 0x10]
sar eax, 1
mov ecx, dword [ebp + 8]
sub ecx, eax
lea eax, [ebp - 0x20]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00406de8
mov byte [ebp - 4], 5
push dword [ebp - 0x14]
push dword [eax]
lea eax, [ebp + 0xc]
push dword [ebp - 0x1c]
push eax
call fcn.00411724
add esp, 0x10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.0040d148
xor dl, dl
lea ecx, [ebp + 0xc]
call fcn.0048914a
lea ecx, [ebp - 0x1c]
mov byte [ebp + 0xb], 0
mov byte [ebp - 4], 3
call fcn.0040d148
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0040d148
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040d148
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4a6f85
mov edx, dword [ecx]
push esi
call dword [edx + 0x18]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0040d148
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d148
mov al, byte [ebp + 0xb]
jmp 0x4a6fa4
mov al, 1
call fcn.004db6fc
ret 8
Function at 0x4a7336
Capabilities:
Create thread

Disassembly:
push 0x10
mov eax, 0x51afcb
call fcn.004db733
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [esi + 0x10], eax
cmp dword [eax], edi
je 0x4a7373
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
lea ecx, [esi + 0x14]
call fcn.0040e086
mov eax, dword [esi + 0x10]
push dword [esi + 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x4a75d1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
mov dword [ebp - 0x1c], 0x533e68
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x10]
cmp dword [ecx], edi
je 0x4a73d5
mov ecx, esi
call fcn.004a7415
push dword [esi + 4]
mov ecx, dword [esi]
mov ebx, eax
mov edi, edx
call fcn.004933ee
mov ecx, dword [esi + 0x10]
add ebx, eax
adc edi, edx
push edi
mov ecx, dword [ecx]
push ebx
mov esi, dword [ecx]
call dword [esi]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov ebx, dword [ebp - 0x14]
xor edi, edi
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0x533e68
test ebx, ebx
je 0x4a740b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], edi
mov eax, esi
call fcn.004db6fc
ret 4
Function at 0x4a75dd
Capabilities:
Copy file
Get common file path

Disassembly:
push 0x420
mov eax, 0x51b014
call fcn.004db767
mov esi, ecx
mov edi, dword [ebp + 8]
and dword [esi], 0
push ecx
push ecx
call fcn.00473c80
pop ecx
mov ecx, eax
call fcn.00474130
test al, al
je 0x4a76fa
push edi
call fcn.004a7759
test al, al
je 0x4a76fa
mov ebx, 0x208
lea eax, [ebp - 0x21c]
push ebx
push 0
push eax
call fcn.004de980
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
xor ebx, ebx
lea eax, [ebp - 0x424]
push ebx
push eax
call fcn.004de980
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push ebx
push str.shim_clone
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x424]
mov ecx, esi
push eax
call fcn.004a77fc
mov dword [ebp - 0x42c], ebx
mov byte [ebp - 0x428], bl
mov dword [ebp - 4], ebx
call fcn.004a4573
mov eax, dword [0x57f328]
test eax, eax
je 0x4a76aa
lea ecx, [ebp - 0x42c]
push ecx
call eax
mov byte [ebp - 0x428], 1
push ebx
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete al
mov byte [esi + 4], al
je 0x4a76c7
push edi
mov ecx, esi
call fcn.004a77fc
mov dword [ebp - 4], 1
cmp byte [ebp - 0x428], 0
je 0x4a76f4
call fcn.004a4573
mov eax, dword [0x57f324]
test eax, eax
je 0x4a76f4
lea ecx, [ebp - 0x42c]
push ecx
call eax
mov byte [ebp - 0x428], bl
or dword [ebp - 4], 0xffffffff
jmp 0x4a7706
push edi
mov ecx, esi
call fcn.004a77fc
mov byte [esi + 4], 0
mov eax, esi
call fcn.004db711
ret 4

Function at 0x4a7759
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x24
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, esi
mov ecx, ebx
cmp word [esi], bx
je 0x4a7797
lea eax, [eax + 2]
inc ecx
cmp word [eax], bx
jne 0x4a778e
mov eax, ebx
lea edx, [ebp - 0x20c]
cmp word [ebp - 0x20c], ax
je 0x4a77b5
lea edx, [edx + 2]
inc eax
cmp word [edx], bx
jne 0x4a77a8
cmp ecx, eax
jb 0x4a77e6
mov ecx, ebx
mov eax, ebx
lea edx, [ebp - 0x20c]
cmp word [ebp - 0x20c], ax
je 0x4a77ea
lea edx, [edx + 2]
inc eax
cmp word [edx], bx
jne 0x4a77c8
cmp ecx, eax
jae 0x4a77ea
mov ax, word [esi + ecx*2]
cmp ax, word [ebp + ecx*2 - 0x20c]
jne 0x4a77e6
inc ecx
jmp 0x4a77b7
xor al, al
jmp 0x4a77ec
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004dab24
leave
ret 4
Function at 0x4a78f6
Capabilities:
Delete file
Get file version info

Disassembly:
push 0x20
mov eax, 0x51b04c
call fcn.004db733
mov dword [ebp - 0x24], edx
xor edi, edi
mov esi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.004a75dd
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4a7997
push eax
lea ecx, [ebp - 0x10]
call fcn.004950b5
mov esi, dword [ebp - 0x10]
test al, al
jne 0x4a7948
push 8
pop edi
jmp 0x4a799f
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4a7997
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x539998
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4a799f
cmp dword [ebp - 0x20], 0
je 0x4a799f
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
test ecx, ecx
je 0x4a7989
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4a799f
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x4a799f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 3
cmp byte [ebp - 0x28], 0
je 0x4a79b2
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x2c]
call fcn.004db27c
pop ecx
push esi
call fcn.004db27c
pop ecx
mov eax, edi
call fcn.004db6fc
ret
Function at 0x4a79ca
Capabilities:
Get file version info

Disassembly:
push 0x24
mov eax, 0x51b07f
call fcn.004db733
mov eax, ecx
mov dword [ebp - 0x30], eax
xor esi, esi
mov dword [ebp - 0x18], esi
and dword [ebp - 4], esi
lea ecx, [ebp - 0x10]
push eax
call fcn.0040713a
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], ebx
jle 0x4a7a08
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040d65d
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x4a7b19
push edi
lea ecx, [ebp - 0x18]
call fcn.004950b5
test al, al
jne 0x4a7a32
mov esi, dword [ebp - 0x18]
jmp 0x4a7b19
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], ebx
jle 0x4a7a48
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040d65d
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
push esi
push edi
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4a7b19
lea ecx, [ebp - 0x14]
call fcn.0040ce82
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push eax
lea eax, [ebp - 0x24]
push eax
push str.VarFileInfoTranslation
push esi
call edi
test eax, eax
je 0x4a7a97
cmp dword [ebp - 0x20], 0
je 0x4a7a97
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax]
movzx eax, word [eax + 2]
jmp 0x4a7aa1
mov ecx, 0x409
mov eax, 0x4e2
push 0x5380ac
push eax
push ecx
lea eax, [ebp - 0x14]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00411724
mov eax, dword [ebp - 0x14]
add esp, 0x14
cmp dword [eax - 4], ebx
jle 0x4a7acf
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.0040d65d
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
push esi
call edi
test eax, eax
je 0x4a7b0e
cmp dword [ebp - 0x28], 0
je 0x4a7b0e
mov edi, dword [ebp - 0x2c]
test edi, edi
jne 0x4a7af0
xor eax, eax
jmp 0x4a7af7
push edi
call fcn.004e0c26
pop ecx
mov ecx, dword [ebp - 0x30]
push eax
push edi
call fcn.0040d8ae
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0040d148
jmp 0x4a7b1b
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0040d148
xor bl, bl
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.0040d148
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004db27c
and dword [ebp - 0x18], 0
mov al, bl
pop ecx
call fcn.004db6fc
ret

Function at 0x4a7bc2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push esi
push 0x4a7c99
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x4a7bf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4a7c1b
cmp byte [ebp + 0x10], 0
je 0x4a7c19
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp + 0x10]
jmp 0x4a7c1b
xor eax, eax
pop esi
pop ebp
ret 0xc