Function at 0x55c780
Capabilities:
Get file size
Read file on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c3078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, ecx
cmp edi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], esi
je 0x55cd4a
call fcn.0055c6b0
cmp dword [0x67b1dc], esi
jne 0x55c7f4
mov eax, dword [0x67b1d8]
cmp eax, esi
jne 0x55c7e3
push 0x66e46c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
mov dword [0x67b1d8], eax
je 0x55c7f4
push 0x66e458
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x67b1dc], eax
mov eax, dword [0x67b1dc]
mov byte [ebp - 0x11], 1
cmp eax, esi
mov byte [ebp - 0x12], 0
jne 0x55c811
cmp dword [0x67b1d0], esi
je 0x55cd06
push esi
push esi
push 3
push esi
push 3
push closesocket
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, eax
cmp edx, 0xffffffff
mov dword [ebp - 0x24], edx
je 0x55cd06
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x130]
push esi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x130]
push eax
push 0x100
push ecx
push edx
mov dword [ebp - 0x28], 0x100
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x55ccf5
mov ecx, dword [ebp - 0x20]
cmp ecx, esi
jbe 0x55ccf5
mov eax, dword [0x67b1dc]
cmp eax, esi
je 0x55c9aa
lea edx, [ebp - 0x18]
push esi
push edx
push esi
push esi
push ecx
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 1
push ecx
push esi
push esi
mov dword [ebp - 0x18], esi
call eax
cmp eax, esi
jne 0x55c9a1
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x55c9a1
add ebx, 0xcc
push eax
mov ecx, ebx
mov byte [ebp - 0x11], 0
call fcn.0059aeed
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebx]
push 0x651e94
push eax
mov dword [ebp - 4], 1
call fcn.00587e70
add esp, 8
test eax, eax
je 0x55c910
mov eax, dword [ebx]
push 0x651eb4
push eax
call fcn.00587e70
add esp, 8
test eax, eax
je 0x55c910
mov eax, dword [ebx]
push 0x651ed8
push eax
call fcn.00587e70
add esp, 8
test eax, eax
jne 0x55c91c
cmp dword [0x67b1d0], esi
je 0x55c91c
mov byte [ebp - 0x11], 1
mov eax, dword [ebx]
push 0x651e94
push eax
call fcn.00587e70
add esp, 8
test eax, eax
jne 0x55c9a1
cmp dword [ebp - 0x20], 7
jb 0x55c9a1
mov ecx, 3
mov edi, 0x652638
lea esi, [ebp - 0x130]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x55c9a1
mov cl, byte [ebp - 0x12c]
mov al, 1
test cl, 0x80
je 0x55c95b
xor al, al
test cl, 0x40
je 0x55c962
xor al, al
test cl, 0x20
je 0x55c969
xor al, al
test cl, 0x10
je 0x55c970
xor al, al
test cl, 2
je 0x55c977
xor al, al
mov cl, byte [ebp - 0x12d]
test cl, cl
je 0x55c9a1
cmp cl, 2
ja 0x55c9a1
test al, al
je 0x55c9a1
push 0x651b34
push 0x64efb0
push ebx
call fcn.00593b08
add esp, 0xc
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], 0
xor esi, esi
cmp dword [0x67b1d0], esi
je 0x55ccf5
mov al, byte [ebp - 0x11]
test al, al
je 0x55ccf5
mov ebx, dword [ebp - 0x24]
mov ecx, 0xa8
xor eax, eax
lea edi, [ebp - 0x3d0]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x2c]
xor edi, edi
push ecx
push ebx
mov byte [ebp - 0x3d0], 1
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x55c9ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x55caaa
mov edx, dword [ebp - 0x2c]
push 1
push 0
push 0
push edx
call fcn.00581190
xor ecx, ecx
add eax, esi
adc edx, ecx
js 0x55caaa
jg 0x55ca27
cmp eax, 0x100
jbe 0x55caaa
test edx, edx
jg 0x55ca3f
jl 0x55ca34
cmp eax, 0x1388
jae 0x55ca3f
mov dword [ebp - 0x28], eax
jmp 0x55ca46
mov dword [ebp - 0x28], 0x1388
mov edx, dword [ebp - 0x28]
push edx
call fcn.005970d9
mov esi, eax
add esp, 4
test esi, esi
je 0x55caaa
push 0
push 0
push 0
push ebx
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push 0
push eax
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x55ca9f
mov eax, dword [ebp - 0x20]
test eax, eax
jbe 0x55ca9f
lea edx, [ebp - 0x3d0]
push edx
push 0
push eax
push esi
call dword [0x67b1d0]
mov edi, eax
mov dword [ebp - 0x18], edi
push esi
call fcn.00597102
add esp, 4
jmp 0x55cac9
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x3d0]
push eax
push 0
lea edx, [ebp - 0x130]
push ecx
push edx
call dword [0x67b1d0]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x55cad6
cmp edi, 0xffffffff
je 0x55cad6
mov byte [ebp - 0x11], 0
cmp edi, 3
jne 0x55cb13
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
xor esi, esi
mov eax, dword [ebx + 0x120]
mov edx, dword [ebx + 0x124]
cmp eax, ecx
jne 0x55cb01
cmp edx, esi
jne 0x55cb01
test edx, edx
jg 0x55cb0a
jl 0x55cb01
test eax, eax
ja 0x55cb0a
cmp dword [ebp - 0x28], 0x1388
jb 0x55cb22
mov dword [ebp - 0x18], 1
jmp 0x55cb3e
cmp edi, 1
je 0x55cb3b
cmp edi, 2
je 0x55cb3b
jmp 0x55ccf5
push 0x679a28
lea ecx, [ebx + 0xcc]
mov byte [ebp - 0x12], 1
call fcn.0059aec6
jmp 0x55ccf5
mov ebx, dword [ebp - 0x1c]
lea edi, [ebp - 0x2a3]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x55cc7d
lea eax, [ebp - 0x2a3]
push 0x66e454
push eax
call fcn.00587e70
add esp, 8
test eax, eax
jne 0x55cb7d
lea ecx, [ebx + 0xcc]
push 0x651eb4
push ecx
jmp 0x55cc2f
lea edx, [ebp - 0x2a3]
push 0x651ed4
push edx
call fcn.00587e70
add esp, 8
test eax, eax
je 0x55cc23
lea eax, [ebp - 0x2a3]
push 0x66e44c
push eax
call fcn.00587e70
add esp, 8
test eax, eax
je 0x55cc23
mov esi, dword [ebx + 0xa4]
cmp byte [esi], 0x2e
jne 0x55cbbd
inc esi
mov eax, dword [0x67b1d4]
test eax, eax
je 0x55cc06
lea ecx, [ebp - 0x2a3]
push ecx
push esi
call fcn.00587e70
add esp, 8
test eax, eax
je 0x55cc06
push 0
lea edx, [ebp - 0x307]
push esi
push edx
call dword [0x67b1d4]
cmp eax, 1
jne 0x55cc06
push esi
lea eax, [ebx + 0xcc]
push 0x66e438
push eax
call fcn.00593b08
add esp, 0xc
jmp 0x55cc37
lea ecx, [ebp - 0x2a3]
lea edx, [ebx + 0xcc]
push ecx
push 0x66e438
push edx
call fcn.00593b08
add esp, 0xc
jmp 0x55cc37
lea eax, [ebx + 0xcc]
push 0x651ed8
push eax
call fcn.00593b08
add esp, 8
cmp dword [ebp - 0x18], 2
jne 0x55ccf5
mov eax, dword [ebx + 0x144]
test ah, 1
je 0x55ccf5
mov edx, dword [ebx + 0x3a0]
mov eax, dword [ebp - 0x270]
lea ecx, [ebp - 0x18]
push 4
push ecx
push 4
push 0
push 0x66e244
push edx
mov dword [ebx + 0x2c8], eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x55ccf5
lea edi, [ebp - 0x307]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x55ccf5
lea eax, [ebp - 0x307]
push 0x651e94
push eax
call fcn.00587e70
add esp, 8
test eax, eax
je 0x55ccf5
lea ecx, [ebp - 0x307]
push 0x651eb4
push ecx
call fcn.00587e70
add esp, 8
test eax, eax
je 0x55ccf5
lea edx, [ebp - 0x307]
push 0x651ed8
push edx
call fcn.00587e70
add esp, 8
test eax, eax
je 0x55ccf5
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x307]
push eax
add ecx, 0xcc
push 0x64efb0
push ecx
call fcn.00593b08
add esp, 0xc
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x11]
test al, al
je 0x55cd63
lea ecx, [ebp - 0x24]
call fcn.0055f9a0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x24]
push eax
mov byte [ebp - 4], 5
call fcn.0055fb10
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 0
mov dword [ecx], eax
lea ecx, [ebp - 0x24]
call fcn.0055f9d0
mov al, byte [ebp - 0x12]
test al, al
jne 0x55cd4a
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x2aa], 1
mov dword [eax + 0xb0], 3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, byte [ebp - 0x12]
test al, al
jne 0x55cd4a
mov esi, dword [ebp - 0x1c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi + 0xcc]
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x55cd36
push 0x651ed8
push edx
call fcn.00587e70
mov edx, dword [ebp + 0xc]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [edx], eax
jne 0x55cd36
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x55cdab
test byte [esi + 0x144], 8
je 0x55cd36
mov eax, dword [ebp - 0x1c]
or ecx, 0xffffffff
mov ebx, dword [eax + 0xa4]
xor eax, eax
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x55cd36
cmp byte [ebx], 0x2e
jne 0x55cdcc
inc ebx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x4d0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x4d0]
push ecx
call fcn.00581768
push 0x66e454
push ebx
call fcn.00587e70
add esp, 0xc
test eax, eax
je 0x55cd36
lea edx, [ebp - 0x4d0]
push edx
push 0x6673c8
call fcn.0057ea00
add esp, 8
test eax, eax
je 0x55cd36
mov eax, dword [ebp - 0x1c]
push 0x651eb4
mov eax, dword [eax + 0xcc]
push eax
call fcn.00587e70
mov ecx, dword [ebp + 0xc]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
jmp 0x55cd36