Function at 0x407970
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44037a
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x4557ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x264], edi
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x2a8]
call fcn.0041b3c4
mov byte [ebp - 4], 2
call fcn.00410c36
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4079e1
push 0x80004005
call fcn.00401bd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x268], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x268]
push str._s_.
push edx
call fcn.00403eb0
mov eax, dword [ebp - 0x268]
add esp, 0xc
push edi
push eax
lea ecx, [ebp - 0x2a8]
call fcn.0041b468
cmp eax, edi
je 0x407d6c
lea ecx, [ebp - 0x2a8]
call fcn.0041b037
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x274], eax
call fcn.0041b389
test eax, eax
jne 0x407d60
mov edx, dword [ebp - 0x2a8]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x2a8]
call eax
test eax, eax
je 0x407b09
lea ecx, [ebp - 0x288]
push ecx
lea ecx, [ebp - 0x2a8]
call fcn.0041b6f9
mov esi, eax
push 0x449fa8
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x280]
push eax
mov byte [ebp - 4], 4
call fcn.004093c0
add esp, 8
mov ecx, esp
mov byte [ebp - 4], 5
mov dword [ebp - 0x2ac], esp
push esi
push eax
push ecx
call fcn.004092b0
add esp, 8
mov edx, esp
mov dword [ebp - 0x2b0], esp
push edx
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 6
call fcn.0041b65f
mov byte [ebp - 4], 5
call fcn.00407970
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x280]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407afa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x288]
jmp 0x407d44
lea ecx, [ebp - 0x278]
push ecx
lea ecx, [ebp - 0x2a8]
call fcn.0041b6f9
mov esi, eax
push 0x449fa8
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x27c]
push eax
mov byte [ebp - 4], 7
call fcn.004093c0
push esi
push eax
lea ecx, [ebp - 0x26c]
push ecx
mov byte [ebp - 4], 8
call fcn.004092b0
add esp, 0x18
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x27c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407b71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x278]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x270]
push ecx
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x260], edi
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x124], edi
call fcn.0041b65f
push edi
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
or dword [ebp - 0x264], 1
lea edx, [ebp - 0x260]
push edx
push eax
call fcn.0041b866
test eax, eax
je 0x407c2c
mov ecx, dword [ebp - 0x26c]
push edi
lea eax, [ebp - 0x138]
push eax
push ecx
call fcn.0041b866
test eax, eax
je 0x407c2c
mov bl, 1
jmp 0x407c2e
xor bl, bl
mov dword [ebp - 4], 0xb
test byte [ebp - 0x264], 1
je 0x407c67
mov eax, dword [ebp - 0x270]
and dword [ebp - 0x264], 0xfffffffe
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407c67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x407c87
mov ecx, dword [ebp - 0x258]
cmp ecx, dword [ebp - 0x130]
jne 0x407c87
mov edx, dword [ebp - 0x254]
cmp edx, dword [ebp - 0x12c]
je 0x407cbd
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.0041b6f9
mov eax, dword [eax]
or dword [ebp - 0x264], 2
push str.log2.txt
push eax
call fcn.0042d2d7
add esp, 8
cmp eax, edi
setne al
test al, al
je 0x407cbd
mov bl, 1
jmp 0x407cbf
xor bl, bl
test byte [ebp - 0x264], 2
je 0x407cf1
mov eax, dword [ebp - 0x28c]
and dword [ebp - 0x264], 0xfffffffd
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407cf1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x407d3a
lea ecx, [ebp - 0x284]
push ecx
lea ecx, [ebp - 0x2a8]
call fcn.0041b65f
mov edx, dword [ebp - 0x26c]
mov eax, dword [eax]
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp - 0x284]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x274], edi
jne 0x407a2a
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 1
call fcn.0041b3f3
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407dc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407dea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c37c
mov esp, ebp
pop ebp
ret