joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46773e
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 0x46777f
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 0x4677a4
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x50c86c
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 0x467cfe
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.00420e4a
push eax
lea ecx, [ebp - 4]
call fcn.00423e50
mov edi, 0x104
lea ecx, [ebp - 4]
push edi
call fcn.00423e83
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.00425b33
lea eax, [ebp - 4]
push eax
call fcn.0049dc09
mov edi, str.Licence_ksbrowser
push edi
call fcn.004241e6
pop ecx
pop ecx
push eax
push edi
lea ecx, [ebp - 4]
call fcn.0043ae55
lea eax, [ebp - 4]
push eax
call fcn.0049dc09
push 1
push 0
push dword [ebp - 4]
call fcn.0049b814
mov ebx, 0x4f7eb8
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 8]
push eax
call fcn.00442988
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.0042095b
mov edi, str.BINDATA
mov ecx, esi
push edi
push str.business1.html
push 0xdf
push dword [ebp - 4]
call fcn.00467eac
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00442988
add esp, 0xc
mov ecx, esi
push edi
push str.css1.css
push 0xe0
push dword [eax]
call fcn.00467eac
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0042095b
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00442988
add esp, 0xc
push edi
push str.Scrollbar.js
push 0xe1
push dword [eax]
mov ecx, esi
call fcn.00467eac
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0042095b
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00442988
add esp, 0xc
mov ecx, esi
push 0x4f7f10
push str.Scrollbar.png
push 0xe2
push dword [eax]
call fcn.00467eac
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0042095b
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00442988
add esp, 0xc
mov ecx, esi
push edi
push str.Scroller.js
push 0xe3
push dword [eax]
call fcn.00467eac
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0042095b
mov esi, str.business1.html
push esi
call fcn.004241e6
pop ecx
push eax
push esi
lea ecx, [ebp - 4]
call fcn.0043ae55
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.00425b83
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.0042095b
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x467eac
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 0x467ed2
call fcn.004249d4
jmp 0x467f5f
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.00420e4a
push eax
lea ecx, [ebp + 0x14]
call fcn.00423e50
push dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push dword [ebp + 8]
push str._s_s
push eax
call fcn.0042443a
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 0x467f3b
call fcn.004249d4
mov edi, eax
jmp 0x467f54
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.0042095b
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4699f1
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 0x469a5a
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x469a5a
call fcn.004249d4
mov esi, eax
jmp 0x469afb
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x469a7a
call fcn.004249d4
jmp 0x469aee
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x469a73
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x469aa0
mov esi, 0x8007000e
jmp 0x469af0
push eax
lea ecx, [ebp - 0x408]
call fcn.00468e30
cmp dword [ebp - 0x408], 0
je 0x469a99
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 0x469a73
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.004698b6
mov esi, eax
test edi, edi
je 0x469afb
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x469b14
lea ecx, [ebp - 0x408]
call fcn.00469196
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc45f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46a213
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 0x46a226
push 0xd
pop eax
jmp 0x46a26a
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 0x46a239
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x46a231
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 0x46c9d4
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.00420e4a
push eax
lea ecx, [ebp - 0x4c]
call fcn.00424012
mov ebx, 0x104
lea ecx, [ebp - 0x4c]
push ebx
call fcn.0042462e
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.0046cfc3
push 0x3c
push 0x4f86d0
lea ecx, [ebp - 0x4c]
call fcn.0043af80
mov esi, dword [ebp - 0x4c]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.00420e4a
push eax
lea ecx, [ebp - 0x48]
call fcn.00424012
push ebx
lea ecx, [ebp - 0x48]
call fcn.0042462e
push eax
xor ebx, ebx
push ebx
push ebx
push 0x10
push ebx
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x48]
call fcn.0046cfc3
push 0x13
push 0x4f8710
lea ecx, [ebp - 0x48]
call fcn.0043af80
lea ecx, [ebp - 0x78]
call fcn.0046d532
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x78]
call fcn.0046d559
lea ecx, [ebp - 0x78]
call fcn.0046d562
lea ecx, [ebp - 0x78]
call fcn.0046d613
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0x78]
mov edi, eax
call fcn.0046d613
push eax
lea ecx, [ebp - 0x78]
call fcn.0046d617
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.004beea0
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.0046d201
lea eax, [ebp - 0x50]
push eax
call fcn.0046d7ed
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.004c052b
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.0046d545
mov ecx, dword [ebp - 0x48]
lea ecx, [ecx - 0x10]
call fcn.0042095b
lea ecx, [esi - 0x10]
call fcn.0042095b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
Function at 0x46cec9
Capabilities:
Create thread

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

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 4]
cmp dword [ebx], 0
jne 0x47775f
push ebx
call fcn.00480d2c
pop ecx
test eax, eax
jne 0x4777a1
push edi
lea edi, [esi + 8]
cmp dword [edi], 0
jne 0x477773
push edi
call fcn.00480d2c
pop ecx
test eax, eax
jne 0x4777a0
push ebx
call fcn.00480daa
push edi
call fcn.00480daa
lea eax, [esi + 0xc]
mov byte [esi + 0x10], 0
cmp dword [eax], 0
pop ecx
pop ecx
je 0x477791
xor eax, eax
jmp 0x4777a0
push esi
push 0x47770a
push eax
call fcn.00480e9e
add esp, 0xc
pop edi
pop esi
pop ebx
ret

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

Function at 0x47c59e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
je 0x47c5b1
xor eax, eax
jmp 0x47c642
lea eax, [esi + 0x30]
push eax
call fcn.00480d40
pop ecx
test eax, eax
je 0x47c5c4
push 0xc
pop eax
jmp 0x47c642
push edi
xor edi, edi
lea eax, [esi + 0x14]
inc edi
push eax
mov dword [esi + 0x28], edi
call fcn.00480d2c
pop ecx
test eax, eax
jne 0x47c638
lea eax, [esi + 0x18]
push eax
call fcn.00480d2c
pop ecx
test eax, eax
jne 0x47c638
lea eax, [esi + 0x1c]
push eax
call fcn.00480d2c
pop ecx
test eax, eax
jne 0x47c638
push dword [ebp + 0x14]
lea eax, [esi + 0x20]
push dword [ebp + 0x14]
push eax
call fcn.00480e3f
add esp, 0xc
test eax, eax
jne 0x47c638
push dword [ebp + 0x14]
push eax
lea eax, [esi + 0x24]
push eax
call fcn.00480e3f
add esp, 0xc
test eax, eax
jne 0x47c638
push dword [ebp + 0x10]
lea eax, [esi + 0x10]
mov dword [esi + 4], edi
push dword [ebp + 0xc]
push eax
call fcn.00480e9e
add esp, 0xc
test eax, eax
je 0x47c63d
push 0xc
pop eax
jmp 0x47c641
mov dword [esi], edi
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x47f9fb
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.004809c3
add esi, esi
add esp, 0xc
mov eax, esi
xor eax, ebx
not eax
and edi, eax
cmp esi, 0x10000
jb 0x47fa0e
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x47fa4f
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 0x47fa63
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

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

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

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

Function at 0x480e9e
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.004bf7fc
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x480eca
call fcn.00480de2
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x490191
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, ecx
cmp dword [edi + 0x18], 0xffffffff
je 0x490279
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.0048ff91
lea eax, [ebp - 8]
push eax
call fcn.00490995
mov esi, dword [ebp - 8]
add esp, 0x10
test eax, eax
je 0x490270
call fcn.00420e4a
push eax
lea ecx, [ebp - 8]
call fcn.00423e50
call fcn.00420e4a
push eax
lea ecx, [ebp - 4]
call fcn.00423e50
lea eax, [ebp - 0xc]
push eax
call fcn.0049080f
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.00425b83
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.0042095b
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.00490a63
pop ecx
pop ecx
push eax
lea ecx, [ebp - 8]
call fcn.00425b83
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.0042095b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0048ff91
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.0042095b
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.0042095b
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0042095b
lea ecx, [esi - 0x10]
call fcn.0042095b
pop esi
or dword [edi + 0x18], 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x490282
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.00425ac1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, 0xffffffff
je 0x4902a8
mov esi, dword [ebp - 4]
jmp 0x490302
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4902fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4902fd
lea eax, [ebp - 4]
push eax
call fcn.00490ab0
mov esi, dword [ebp - 4]
pop ecx
cmp dword [esi - 0xc], edi
je 0x490303
push esi
call fcn.00490282
pop ecx
test eax, eax
je 0x490303
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x490300
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x490300
jmp 0x490303
mov esi, dword [ebp - 4]
xor edi, edi
inc edi
lea ecx, [esi - 0x10]
call fcn.0042095b
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x490455
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.00425ac1
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.004903f4
test eax, eax
jne 0x490582
push ebx
push esi
call fcn.004c0d58
pop ecx
pop ecx
test eax, eax
jne 0x490585
call fcn.00420e4a
push eax
lea ecx, [ebp - 4]
call fcn.00423e50
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
lea eax, [ebp - 4]
push 0x4fa350
push eax
call fcn.0042443a
mov edi, dword [ebp - 4]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push esi
call fcn.004c0e0c
pop ecx
pop ecx
test eax, eax
je 0x490507
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x5101f8
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00442988
mov ecx, dword [ebp - 8]
add esp, 0xc
push dword [eax]
call fcn.004903f4
mov ecx, dword [ebp - 4]
jmp 0x490541
lea ecx, [edi - 0x10]
call fcn.0042095b
xor ebx, ebx
jmp 0x490585
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.004903f4
test eax, eax
jne 0x49057a
push 0x5101f8
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00442988
add esp, 0xc
mov ecx, ebx
push dword [eax]
call fcn.004903f4
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
mov ebx, eax
call fcn.0042095b
test ebx, ebx
je 0x4904fb
push 0x5101f8
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00442988
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.0042095b
lea ecx, [edi - 0x10]
call fcn.0042095b
xor ebx, ebx
inc ebx
lea ecx, [esi - 0x10]
call fcn.0042095b
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x49080f
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 0x490855
or eax, 1
mov dword [0x558f70], eax
call fcn.00420e4a
push eax
mov ecx, ebx
call fcn.00423e50
push 0x4f5c32
call fcn.004bbefb
pop ecx
mov ecx, dword [0x558f6c]
cmp dword [ecx - 0xc], 0
je 0x490867
add ecx, 0xfffffff0
push ecx
jmp 0x4908c0
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4908b7
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004241e6
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0042416d
push ebx
call fcn.00490a23
mov edi, str.drivers_
push edi
call fcn.004241e6
pop ecx
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.0043ae55
pop edi
mov eax, dword [0x558f6c]
add eax, 0xfffffff0
push eax
call fcn.00425bf9
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.004bc45f
mov esp, ebp
pop ebp
ret