joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467aeb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20006
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x467b2c
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x467b51
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x50f8e0
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4680ab
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.00420bd2
push eax
lea ecx, [ebp - 4]
call fcn.00423e41
mov edi, 0x104
lea ecx, [ebp - 4]
push edi
call fcn.00423e74
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.00425bfa
lea eax, [ebp - 4]
push eax
call fcn.0049dfdb
mov edi, str.Licence_ksbrowser
push edi
call fcn.004241d7
pop ecx
pop ecx
push eax
push edi
lea ecx, [ebp - 4]
call fcn.0043be5f
lea eax, [ebp - 4]
push eax
call fcn.0049dfdb
push 1
push 0
push dword [ebp - 4]
call fcn.0049bbe6
mov ebx, 0x4f8ec0
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 8]
push eax
call fcn.00442e1f
add esp, 0x1c
push dword [eax]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004206ab
mov edi, str.BINDATA
mov ecx, esi
push edi
push str.business1.html
push 0xdf
push dword [ebp - 4]
call fcn.00468259
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00442e1f
add esp, 0xc
mov ecx, esi
push edi
push str.css1.css
push 0xe0
push dword [eax]
call fcn.00468259
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004206ab
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00442e1f
add esp, 0xc
push edi
push str.Scrollbar.js
push 0xe1
push dword [eax]
mov ecx, esi
call fcn.00468259
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004206ab
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00442e1f
add esp, 0xc
mov ecx, esi
push 0x4f8f18
push str.Scrollbar.png
push 0xe2
push dword [eax]
call fcn.00468259
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004206ab
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00442e1f
add esp, 0xc
mov ecx, esi
push edi
push str.Scroller.js
push 0xe3
push dword [eax]
call fcn.00468259
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004206ab
mov esi, str.business1.html
push esi
call fcn.004241d7
pop ecx
push eax
push esi
lea ecx, [ebp - 4]
call fcn.0043be5f
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.00425c4a
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004206ab
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x468259
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 0x46827f
call fcn.00424a9b
jmp 0x46830c
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.00420bd2
push eax
lea ecx, [ebp + 0x14]
call fcn.00423e41
push dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push dword [ebp + 8]
push str._s_s
push eax
call fcn.00424501
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 0x4682e8
call fcn.00424a9b
mov edi, eax
jmp 0x468301
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.004206ab
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x469d9e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x52fe80]
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 0x469e07
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x469e07
call fcn.00424a9b
mov esi, eax
jmp 0x469ea8
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x469e27
call fcn.00424a9b
jmp 0x469e9b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x469e20
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x469e4d
mov esi, 0x8007000e
jmp 0x469e9d
push eax
lea ecx, [ebp - 0x408]
call fcn.004691dd
cmp dword [ebp - 0x408], 0
je 0x469e46
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 0x469e20
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.00469c63
mov esi, eax
test edi, edi
je 0x469ea8
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x469ec1
lea ecx, [ebp - 0x408]
call fcn.00469543
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46a5c0
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 0x46a5d3
push 0xd
pop eax
jmp 0x46a617
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 0x46a5e6
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x46a5de
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 0x46cd81
Capabilities:
Delete file
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.00420bd2
push eax
lea ecx, [ebp - 0x4c]
call fcn.00424003
mov ebx, 0x104
lea ecx, [ebp - 0x4c]
push ebx
call fcn.004246f5
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.0046d370
push 0x3c
push 0x4f96dc
lea ecx, [ebp - 0x4c]
call fcn.0043bf8a
mov esi, dword [ebp - 0x4c]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.00420bd2
push eax
lea ecx, [ebp - 0x48]
call fcn.00424003
push ebx
lea ecx, [ebp - 0x48]
call fcn.004246f5
push eax
xor ebx, ebx
push ebx
push ebx
push 0x10
push ebx
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x48]
call fcn.0046d370
push 0x13
push 0x4f971c
lea ecx, [ebp - 0x48]
call fcn.0043bf8a
lea ecx, [ebp - 0x78]
call fcn.0046d8df
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x78]
call fcn.0046d906
lea ecx, [ebp - 0x78]
call fcn.0046d90f
lea ecx, [ebp - 0x78]
call fcn.0046d9c0
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0x78]
mov edi, eax
call fcn.0046d9c0
push eax
lea ecx, [ebp - 0x78]
call fcn.0046d9c4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.004bebf0
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.0046d5ae
lea eax, [ebp - 0x50]
push eax
call fcn.0046db9a
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 [0x55ad38], 1
push dword [ebp - 0x54]
call dword [sym.imp.ole32.dll_DoDragDrop]
mov byte [0x55ad38], 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.004c027b
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.0046d8f2
mov ecx, dword [ebp - 0x48]
lea ecx, [ecx - 0x10]
call fcn.004206ab
lea ecx, [esi - 0x10]
call fcn.004206ab
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
Function at 0x46d276
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push eax
push 0x46cf6c
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 0x477aed
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 4]
cmp dword [ebx], 0
jne 0x477b04
push ebx
call fcn.004810d1
pop ecx
test eax, eax
jne 0x477b46
push edi
lea edi, [esi + 8]
cmp dword [edi], 0
jne 0x477b18
push edi
call fcn.004810d1
pop ecx
test eax, eax
jne 0x477b45
push ebx
call fcn.0048114f
push edi
call fcn.0048114f
lea eax, [esi + 0xc]
mov byte [esi + 0x10], 0
cmp dword [eax], 0
pop ecx
pop ecx
je 0x477b36
xor eax, eax
jmp 0x477b45
push esi
push 0x477aaf
push eax
call fcn.00481243
add esp, 0xc
pop edi
pop esi
pop ebx
ret

Function at 0x47b750
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 0x47b783
mov dword [esi], edx
inc ecx
add esi, 4
cmp ecx, 0x100
jb 0x47b77e
pop edi
pop esi
pop ebp
ret

Function at 0x47c943
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
je 0x47c956
xor eax, eax
jmp 0x47c9e7
lea eax, [esi + 0x30]
push eax
call fcn.004810e5
pop ecx
test eax, eax
je 0x47c969
push 0xc
pop eax
jmp 0x47c9e7
push edi
xor edi, edi
lea eax, [esi + 0x14]
inc edi
push eax
mov dword [esi + 0x28], edi
call fcn.004810d1
pop ecx
test eax, eax
jne 0x47c9dd
lea eax, [esi + 0x18]
push eax
call fcn.004810d1
pop ecx
test eax, eax
jne 0x47c9dd
lea eax, [esi + 0x1c]
push eax
call fcn.004810d1
pop ecx
test eax, eax
jne 0x47c9dd
push dword [ebp + 0x14]
lea eax, [esi + 0x20]
push dword [ebp + 0x14]
push eax
call fcn.004811e4
add esp, 0xc
test eax, eax
jne 0x47c9dd
push dword [ebp + 0x14]
push eax
lea eax, [esi + 0x24]
push eax
call fcn.004811e4
add esp, 0xc
test eax, eax
jne 0x47c9dd
push dword [ebp + 0x10]
lea eax, [esi + 0x10]
mov dword [esi + 4], edi
push dword [ebp + 0xc]
push eax
call fcn.00481243
add esp, 0xc
test eax, eax
je 0x47c9e2
push 0xc
pop eax
jmp 0x47c9e6
mov dword [esi], edi
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x47fda0
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.00480d68
add esi, esi
add esp, 0xc
mov eax, esi
xor eax, ebx
not eax
and edi, eax
cmp esi, 0x10000
jb 0x47fdb3
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x47fdf4
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 0x47fe08
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x47fe3d
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 0x47fe52
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x480eab
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 0x480eee
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 0x480ecb
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x480f33
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 0x480f75
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 0x480f45
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x481243
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.004bf54c
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x48126f
call fcn.00481187
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x490536
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, ecx
cmp dword [edi + 0x18], 0xffffffff
je 0x49061e
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.00490336
lea eax, [ebp - 8]
push eax
call fcn.00490d3a
mov esi, dword [ebp - 8]
add esp, 0x10
test eax, eax
je 0x490615
call fcn.00420bd2
push eax
lea ecx, [ebp - 8]
call fcn.00423e41
call fcn.00420bd2
push eax
lea ecx, [ebp - 4]
call fcn.00423e41
lea eax, [ebp - 0xc]
push eax
call fcn.00490bb4
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.00425c4a
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.004206ab
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.00490e08
pop ecx
pop ecx
push eax
lea ecx, [ebp - 8]
call fcn.00425c4a
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.004206ab
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00490336
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.004206ab
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004206ab
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004206ab
lea ecx, [esi - 0x10]
call fcn.004206ab
pop esi
or dword [edi + 0x18], 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x490627
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.00425b88
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, 0xffffffff
je 0x49064d
mov esi, dword [ebp - 4]
jmp 0x4906a7
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4906a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4906a2
lea eax, [ebp - 4]
push eax
call fcn.00490e55
mov esi, dword [ebp - 4]
pop ecx
cmp dword [esi - 0xc], edi
je 0x4906a8
push esi
call fcn.00490627
pop ecx
test eax, eax
je 0x4906a8
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4906a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4906a5
jmp 0x4906a8
mov esi, dword [ebp - 4]
xor edi, edi
inc edi
lea ecx, [esi - 0x10]
call fcn.004206ab
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4907fa
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.00425b88
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.00490799
test eax, eax
jne 0x490927
push ebx
push esi
call fcn.004c0aa8
pop ecx
pop ecx
test eax, eax
jne 0x49092a
call fcn.00420bd2
push eax
lea ecx, [ebp - 4]
call fcn.00423e41
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
lea eax, [ebp - 4]
push 0x4fb360
push eax
call fcn.00424501
mov edi, dword [ebp - 4]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push esi
call fcn.004c0b5c
pop ecx
pop ecx
test eax, eax
je 0x4908ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x5122d0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00442e1f
mov ecx, dword [ebp - 8]
add esp, 0xc
push dword [eax]
call fcn.00490799
mov ecx, dword [ebp - 4]
jmp 0x4908e6
lea ecx, [edi - 0x10]
call fcn.004206ab
xor ebx, ebx
jmp 0x49092a
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.00490799
test eax, eax
jne 0x49091f
push 0x5122d0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00442e1f
add esp, 0xc
mov ecx, ebx
push dword [eax]
call fcn.00490799
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
mov ebx, eax
call fcn.004206ab
test ebx, ebx
je 0x4908a0
push 0x5122d0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00442e1f
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.004206ab
lea ecx, [edi - 0x10]
call fcn.004206ab
xor ebx, ebx
inc ebx
lea ecx, [esi - 0x10]
call fcn.004206ab
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x490bb4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x55b150]
push ebx
mov ebx, 0x55b14c
push esi
mov esi, dword [ebp + 8]
test al, 1
jne 0x490bfa
or eax, 1
mov dword [0x55b150], eax
call fcn.00420bd2
push eax
mov ecx, ebx
call fcn.00423e41
push 0x4f6242
call fcn.004bbc59
pop ecx
mov ecx, dword [0x55b14c]
cmp dword [ecx - 0xc], 0
je 0x490c0c
add ecx, 0xfffffff0
push ecx
jmp 0x490c65
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x490c5c
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004241d7
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0042415e
push ebx
call fcn.00490dc8
mov edi, str.drivers_
push edi
call fcn.004241d7
pop ecx
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.0043be5f
pop edi
mov eax, dword [0x55b14c]
add eax, 0xfffffff0
push eax
call fcn.00425cc0
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.004bc1bd
mov esp, ebp
pop ebp
ret