joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467f86
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0x14]
xor edi, edi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x467fac
call fcn.00424a24
jmp 0x468039
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
call fcn.00420e9a
push eax
lea ecx, [ebp + 0x14]
call fcn.00423ea0
push dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push dword [ebp + 8]
push str._s_s
push eax
call fcn.0042448a
mov esi, dword [ebp + 0x14]
add esp, 0x10
mov dword [ebp + 0xc], edi
push edi
push 0x80
push 2
push edi
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x468015
call fcn.00424a24
mov edi, eax
jmp 0x46802e
push edi
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.004209ab
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x469acb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x410], eax
xor eax, eax
push 0x60
push eax
push esi
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x408], eax
call ebx
mov edi, eax
test edi, edi
jne 0x469b34
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x469b34
call fcn.00424a24
mov esi, eax
jmp 0x469bd5
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x469b54
call fcn.00424a24
jmp 0x469bc8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x469b4d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x469b7a
mov esi, 0x8007000e
jmp 0x469bca
push eax
lea ecx, [ebp - 0x408]
call fcn.00468f0a
cmp dword [ebp - 0x408], 0
je 0x469b73
push esi
push dword [ebp - 0x408]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x469b4d
mov eax, dword [ebp - 0x408]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x418]
push dword [ebp - 0x408]
call fcn.00469990
mov esi, eax
test edi, edi
je 0x469bd5
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x469bee
lea ecx, [ebp - 0x408]
call fcn.00469270
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc11d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46a2ed
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 0x46a300
push 0xd
pop eax
jmp 0x46a344
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 0x46a313
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x46a30b
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
mov esp, ebp
pop ebp
ret 8
Function at 0x46caae
Capabilities:
Delete file
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.00420e9a
push eax
lea ecx, [ebp - 0x4c]
call fcn.00424062
mov ebx, 0x104
lea ecx, [ebp - 0x4c]
push ebx
call fcn.0042467e
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push eax
xor eax, eax
push eax
push eax
push 0x1a
push eax
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x4c]
call fcn.0046d09d
push 0x3c
push 0x4f86d0
lea ecx, [ebp - 0x4c]
call fcn.0043b050
mov esi, dword [ebp - 0x4c]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.00420e9a
push eax
lea ecx, [ebp - 0x48]
call fcn.00424062
push ebx
lea ecx, [ebp - 0x48]
call fcn.0042467e
push eax
xor ebx, ebx
push ebx
push ebx
push 0x10
push ebx
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x48]
call fcn.0046d09d
push 0x13
push 0x4f8710
lea ecx, [ebp - 0x48]
call fcn.0043b050
lea ecx, [ebp - 0x78]
call fcn.0046d60c
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x78]
call fcn.0046d633
lea ecx, [ebp - 0x78]
call fcn.0046d63c
lea ecx, [ebp - 0x78]
call fcn.0046d6ed
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0x78]
mov edi, eax
call fcn.0046d6ed
push eax
lea ecx, [ebp - 0x78]
call fcn.0046d6f1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.004beb50
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0xf
pop eax
mov word [ebp - 0x8c], ax
mov dword [ebp - 0x88], ebx
or dword [ebp - 0x80], 0xffffffff
lea eax, [ebp - 0x54]
push eax
xor ecx, ecx
mov dword [ebp - 0x5c], ebx
inc ecx
mov dword [ebp - 0x60], edi
push ecx
lea eax, [ebp - 0x64]
mov dword [ebp - 0x84], ecx
push eax
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x7c], ecx
push eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
call fcn.0046d2db
lea eax, [ebp - 0x50]
push eax
call fcn.0046d8c7
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x14
push str.do_drag_drop_on_main
call ebx
and dword [ebp - 0x58], 0
lea eax, [ebp - 0x58]
push eax
push 5
push dword [ebp - 0x50]
mov byte [0x558b58], 1
push dword [ebp - 0x54]
call dword [sym.imp.ole32.dll_DoDragDrop]
mov byte [0x558b58], 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x44]
push str._x__x
push eax
call fcn.004c01db
add esp, 0x10
lea eax, [ebp - 0x44]
push eax
call ebx
push str.finish_drag_drop_on_main
call ebx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.ole32.dll_ReleaseStgMedium]
lea ecx, [ebp - 0x78]
call fcn.0046d61f
mov ecx, dword [ebp - 0x48]
lea ecx, [ecx - 0x10]
call fcn.004209ab
lea ecx, [esi - 0x10]
call fcn.004209ab
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc11d
mov esp, ebp
pop ebp
ret
Function at 0x46cfa3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push eax
push 0x46cc99
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
xor eax, eax
pop ebp
ret 0x10

Function at 0x477823
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 4]
cmp dword [ebx], 0
jne 0x47783a
push ebx
call fcn.00480e07
pop ecx
test eax, eax
jne 0x47787c
push edi
lea edi, [esi + 8]
cmp dword [edi], 0
jne 0x47784e
push edi
call fcn.00480e07
pop ecx
test eax, eax
jne 0x47787b
push ebx
call fcn.00480e85
push edi
call fcn.00480e85
lea eax, [esi + 0xc]
mov byte [esi + 0x10], 0
cmp dword [eax], 0
pop ecx
pop ecx
je 0x47786c
xor eax, eax
jmp 0x47787b
push esi
push 0x4777e5
push eax
call fcn.00480f79
add esp, 0xc
pop edi
pop esi
pop ebx
ret

Function at 0x47b486
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
push edi
mov dword [eax + 0x30], ecx
lea esi, [eax + 0x70]
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], 0x20
mov dword [eax + 0x54], 1
mov dword [eax + 0x48], 4
mov dword [eax + 0x58], ecx
push 8
mov edx, ecx
pop edi
mov eax, edx
shr edx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor edx, eax
dec edi
jne 0x47b4b9
mov dword [esi], edx
inc ecx
add esi, 4
cmp ecx, 0x100
jb 0x47b4b4
pop edi
pop esi
pop ebp
ret

Function at 0x47c679
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
je 0x47c68c
xor eax, eax
jmp 0x47c71d
lea eax, [esi + 0x30]
push eax
call fcn.00480e1b
pop ecx
test eax, eax
je 0x47c69f
push 0xc
pop eax
jmp 0x47c71d
push edi
xor edi, edi
lea eax, [esi + 0x14]
inc edi
push eax
mov dword [esi + 0x28], edi
call fcn.00480e07
pop ecx
test eax, eax
jne 0x47c713
lea eax, [esi + 0x18]
push eax
call fcn.00480e07
pop ecx
test eax, eax
jne 0x47c713
lea eax, [esi + 0x1c]
push eax
call fcn.00480e07
pop ecx
test eax, eax
jne 0x47c713
push dword [ebp + 0x14]
lea eax, [esi + 0x20]
push dword [ebp + 0x14]
push eax
call fcn.00480f1a
add esp, 0xc
test eax, eax
jne 0x47c713
push dword [ebp + 0x14]
push eax
lea eax, [esi + 0x24]
push eax
call fcn.00480f1a
add esp, 0xc
test eax, eax
jne 0x47c713
push dword [ebp + 0x10]
lea eax, [esi + 0x10]
mov dword [esi + 4], edi
push dword [ebp + 0xc]
push eax
call fcn.00480f79
add esp, 0xc
test eax, eax
je 0x47c718
push 0xc
pop eax
jmp 0x47c71c
mov dword [esi], edi
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x47fad6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, 0x100
or esi, edi
mov eax, esi
add ebx, ebx
shr eax, 7
mov ecx, edi
and eax, 1
and ecx, ebx
push eax
mov eax, esi
add ecx, edi
shr eax, 8
add eax, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + eax*2]
push eax
push dword [ebp + 8]
call fcn.00480a9e
add esi, esi
add esp, 0xc
mov eax, esi
xor eax, ebx
not eax
and edi, eax
cmp esi, 0x10000
jb 0x47fae9
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x47fb2a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
or esi, 0x100
mov ecx, dword [ebp + 8]
mov eax, esi
shr eax, 8
movzx edx, word [ecx + eax*2]
mov ecx, esi
shr ecx, 7
add esi, esi
and ecx, 1
shr edx, 4
neg ecx
sar ecx, 4
and ecx, 0x7f
xor edx, ecx
add edi, dword [ebx + edx*4]
cmp esi, 0x10000
jb 0x47fb3e
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x47fb73
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov esi, 0x100
xor edi, edi
or edx, esi
add ebx, ebx
mov ecx, esi
and ecx, ebx
mov eax, edx
add ecx, esi
shr eax, 8
add eax, ecx
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp + 0x14]
add edi, dword [eax + ecx*4]
mov ecx, edx
xor ecx, ebx
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x47fb88
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x480be1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, dword [ebp + 0x10]
inc eax
shl eax, cl
push edi
or esi, eax
xor edi, edi
cmp esi, 1
je 0x480c24
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
mov edx, esi
and esi, 1
shr edx, 1
neg esi
sar esi, 4
and esi, 0x7f
movzx ecx, word [ebx + edx*2]
shr ecx, 4
xor ecx, esi
mov esi, edx
add edi, dword [eax + ecx*4]
cmp esi, 1
jne 0x480c01
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x480c69
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
xor esi, esi
inc edi
test ebx, ebx
je 0x480cab
mov eax, dword [ebp + 0x10]
mov edx, eax
shr eax, 1
and edx, 1
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edi*2]
mov eax, edx
neg eax
shr ecx, 4
sar eax, 4
add edi, edi
and eax, 0x7f
or edi, edx
xor ecx, eax
mov eax, dword [ebp + 0x14]
add esi, dword [eax + ecx*4]
dec ebx
jne 0x480c7b
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x480f79
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.004bf4ac
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x480fa5
call fcn.00480ebd
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x49026b
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, ecx
cmp dword [edi + 0x18], 0xffffffff
je 0x490353
push esi
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 0xc]
push eax
lea eax, [edi + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0049006b
lea eax, [ebp - 8]
push eax
call fcn.00490a6f
mov esi, dword [ebp - 8]
add esp, 0x10
test eax, eax
je 0x49034a
call fcn.00420e9a
push eax
lea ecx, [ebp - 8]
call fcn.00423ea0
call fcn.00420e9a
push eax
lea ecx, [ebp - 4]
call fcn.00423ea0
lea eax, [ebp - 0xc]
push eax
call fcn.004908e9
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.00425bd3
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.004209ab
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.00490b3d
pop ecx
pop ecx
push eax
lea ecx, [ebp - 8]
call fcn.00425bd3
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.004209ab
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0049006b
add esp, 0xc
push 0
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.004209ab
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004209ab
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004209ab
lea ecx, [esi - 0x10]
call fcn.004209ab
pop esi
or dword [edi + 0x18], 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x49035c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.00425b11
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, 0xffffffff
je 0x490382
mov esi, dword [ebp - 4]
jmp 0x4903dc
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4903d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4903d7
lea eax, [ebp - 4]
push eax
call fcn.00490b8a
mov esi, dword [ebp - 4]
pop ecx
cmp dword [esi - 0xc], edi
je 0x4903dd
push esi
call fcn.0049035c
pop ecx
test eax, eax
je 0x4903dd
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4903da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4903da
jmp 0x4903dd
mov esi, dword [ebp - 4]
xor edi, edi
inc edi
lea ecx, [esi - 0x10]
call fcn.004209ab
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x49052f
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
lea ecx, [ebp + 8]
mov dword [ebp - 8], edi
call fcn.00425b11
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.004904ce
test eax, eax
jne 0x49065c
push ebx
push esi
call fcn.004c0a08
pop ecx
pop ecx
test eax, eax
jne 0x49065f
call fcn.00420e9a
push eax
lea ecx, [ebp - 4]
call fcn.00423ea0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
lea eax, [ebp - 4]
push 0x4fa350
push eax
call fcn.0042448a
mov edi, dword [ebp - 4]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push esi
call fcn.004c0abc
pop ecx
pop ecx
test eax, eax
je 0x4905e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x510188
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00442a58
mov ecx, dword [ebp - 8]
add esp, 0xc
push dword [eax]
call fcn.004904ce
mov ecx, dword [ebp - 4]
jmp 0x49061b
lea ecx, [edi - 0x10]
call fcn.004209ab
xor ebx, ebx
jmp 0x49065f
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, dword [ebp - 8]
mov ecx, ebx
push esi
call fcn.004904ce
test eax, eax
jne 0x490654
push 0x510188
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00442a58
add esp, 0xc
mov ecx, ebx
push dword [eax]
call fcn.004904ce
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
mov ebx, eax
call fcn.004209ab
test ebx, ebx
je 0x4905d5
push 0x510188
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00442a58
add esp, 0xc
push 5
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004209ab
lea ecx, [edi - 0x10]
call fcn.004209ab
xor ebx, ebx
inc ebx
lea ecx, [esi - 0x10]
call fcn.004209ab
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4908e9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x558f70]
push ebx
mov ebx, 0x558f6c
push esi
mov esi, dword [ebp + 8]
test al, 1
jne 0x49092f
or eax, 1
mov dword [0x558f70], eax
call fcn.00420e9a
push eax
mov ecx, ebx
call fcn.00423ea0
push 0x4f5902
call fcn.004bbbb9
pop ecx
mov ecx, dword [0x558f6c]
cmp dword [ecx - 0xc], 0
je 0x490941
add ecx, 0xfffffff0
push ecx
jmp 0x49099a
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x490991
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00424236
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.004241bd
push ebx
call fcn.00490afd
mov edi, str.drivers_
push edi
call fcn.00424236
pop ecx
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.0043af25
pop edi
mov eax, dword [0x558f6c]
add eax, 0xfffffff0
push eax
call fcn.00425c49
add eax, 0x10
pop ecx
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop esi
pop ebx
call fcn.004bc11d
mov esp, ebp
pop ebp
ret
Function at 0x490f7b
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 8], edi
call fcn.00420e9a
push eax
lea ecx, [ebp - 4]
call fcn.00423ea0
push dword [ebp + 8]
call fcn.00424236
pop ecx
push eax
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.004241bd
mov eax, dword [edi]
lea ecx, [ebp - 4]
push dword [eax - 0xc]
push eax
call fcn.0043af25
mov esi, dword [ebp - 4]
mov ecx, edi
push esi
call fcn.004903ed
test eax, eax
jne 0x4910c7
push ebx
push esi
call fcn.004c0a08
pop ecx
pop ecx
test eax, eax
jne 0x491174
call fcn.00420e9a
push eax
lea ecx, [ebp + 8]
call fcn.00423ea0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
lea eax, [ebp + 8]
push 0x4fa350
push eax
call fcn.0042448a
mov edi, dword [ebp + 8]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push esi
call fcn.004c0abc
pop ecx
pop ecx
test eax, eax
je 0x491049
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x510188
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00442a58
mov ecx, dword [ebp - 8]
jmp 0x491076
lea ecx, [edi - 0x10]
call fcn.004209ab
xor ebx, ebx
jmp 0x491174
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, dword [ebp - 8]
mov ecx, ebx
push esi
call fcn.004903ed
test eax, eax
jne 0x4910bc
push 0x510188
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00442a58
mov ecx, ebx
add esp, 0xc
push dword [eax]
call fcn.004903ed
mov ecx, dword [ebp + 8]
mov ebx, eax
add ecx, 0xfffffff0
call fcn.004209ab
test ebx, ebx
je 0x49103a
push 0x510188
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00442a58
add esp, 0xc
push 5
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004209ab
lea ecx, [edi - 0x10]
call fcn.004209ab
mov edi, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.00490a6f
pop ecx
test eax, eax
je 0x491171
call fcn.00420e9a
push eax
lea ecx, [ebp - 8]
call fcn.00423ea0
call fcn.00420e9a
push eax
lea ecx, [ebp + 8]
call fcn.00423ea0
lea eax, [ebp - 4]
push eax
call fcn.004908e9
pop ecx
push eax
lea ecx, [ebp + 8]
call fcn.00425bd3
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004209ab
lea eax, [ebp - 4]
push esi
push eax
call fcn.00490b3d
pop ecx
pop ecx
push eax
lea ecx, [ebp - 8]
call fcn.00425bd3
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004209ab
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0049006b
add esp, 0xc
mov ecx, edi
push dword [eax]
call fcn.004903ed
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004209ab
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004209ab
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004209ab
xor ebx, ebx
inc ebx
lea ecx, [esi - 0x10]
call fcn.004209ab
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x491187
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], esi
jmp 0x4911a3
add ebx, dword [ebp - 4]
sub edi, dword [ebp - 4]
je 0x4911b9
push esi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x49119b
jmp 0x4911bc
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4919aa
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x4922eb
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
call fcn.00431497
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x492398
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x492397
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 1]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp + 8], edi
call fcn.0042467e
mov edx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov eax, edi
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x492397
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x492397
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
sub eax, ecx
add edx, ecx
mov dword [ebp + 8], eax
mov dword [ebp - 8], edx
test eax, eax
jne 0x49234c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
mov byte [eax + edi], bl
call fcn.0046d09d
test esi, esi
je 0x492394
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8