Function at 0x50e770
Capabilities:
Create directory
Move file
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x596318
push eax
mov eax, 0x1834
mov dword fs:[0], esp
call fcn.00555ae0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
lea ecx, [ebp - 0x14]
call fcn.0040bfb0
mov dword [ebp - 4], 0
mov eax, dword [0x5f5774]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f5774
call edx
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
mov eax, dword [0x5f5774]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f5774
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0050b270
push pe_nt_image_headers32
lea ecx, [ebp - 0x840]
push ecx
push pe_nt_image_headers32
lea edx, [ebp - 0x238]
push edx
push pe_nt_image_headers32
lea eax, [ebp - 0x640]
push eax
push 3
lea ecx, [ebp - 0x38]
push ecx
push edi
call fcn.00556ea6
add esp, 0x24
cmp byte [ebp + 0xc], 0
je 0x50e963
lea edx, [ebp - 0x238]
push edx
lea ecx, [ebp - 0x18]
call fcn.0040bfb0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 0x2b10]
call fcn.0050ac00
mov edi, dword [esi + 0x2b14]
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x50e8a9
mov eax, dword [eax + 0xc]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x50e86a
push 0x80004005
call fcn.00401150
mov ecx, eax
mov eax, dword [ebp - 0x18]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x50e896
test dx, dx
je 0x50e892
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x50e896
add eax, 4
add ecx, 4
test dx, dx
jne 0x50e870
xor eax, eax
jmp 0x50e89b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sets al
test al, al
jne 0x50e8a9
lea eax, [ebp - 0x24]
jmp 0x50e8af
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x20]
mov edi, dword [eax]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50e8d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, dword [esi + 0x2b14]
je 0x50ea6a
mov edi, dword [edi + 0x10]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50e906
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x50e929
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 - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50e94f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040bfb0
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x18]
push edx
lea ecx, [esi + 0x2b00]
call fcn.0050ac00
mov edi, dword [esi + 0x2b04]
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x50e9e9
mov eax, dword [eax + 0xc]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x50e9aa
push 0x80004005
call fcn.00401150
mov ecx, eax
mov eax, dword [ebp - 0x18]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x50e9d6
test dx, dx
je 0x50e9d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x50e9d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x50e9b0
xor eax, eax
jmp 0x50e9db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sets al
test al, al
jne 0x50e9e9
lea eax, [ebp - 0x20]
jmp 0x50e9ef
mov dword [ebp - 0x24], edi
lea eax, [ebp - 0x24]
mov edi, dword [eax]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50ea14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, dword [esi + 0x2b04]
je 0x50ea6a
mov edi, dword [edi + 0x10]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50ea42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x50ea65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x50e929
mov edx, dword [ebp - 0x10]
push ebx
push 0x5a972c
lea ecx, [ebp - 0x238]
push ecx
push edx
push str.AppIconCache
lea ebx, [esi + 0x16a8]
push ebx
lea eax, [ebp + 8]
push 0x5a9920
push eax
call fcn.004060d0
mov ecx, dword [ebp + 8]
add esp, 0x1c
push 0
push 0
push 3
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x50eacf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
push edx
push 0x104
lea eax, [ebp - 0x440]
push eax
jmp 0x50ed34
mov ecx, esi
call fcn.0050aad0
test eax, eax
jne 0x50eb5f
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50eb01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x50eb24
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 - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50eb4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
cmp byte [esi + 0x2afa], 0
je 0x50eb6f
mov ecx, esi
call fcn.0050b540
mov dword [ebp - 0x2a], 0
mov ax, word [ebp - 0x28]
mov dword [ebp - 0x2e], 0x20059201
mov edx, dword [ebp - 0x2c]
mov word [ebp - 0x1838], ax
mov eax, dword [ebp - 0x14]
mov word [ebp - 0x30], 0x124
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1840], ecx
mov dword [ebp - 0x183c], edx
mov edi, dword [eax - 0xc]
mov dword [ebp - 0x1836], edi
cmp dword [eax - 4], 1
jle 0x50ebc1
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00403bd0
mov eax, dword [ebp - 0x14]
lea edx, [edi + edi]
push edx
push eax
lea eax, [ebp - 0x1832]
push eax
call fcn.00554470
mov edx, dword [esi + 0x3c]
add esp, 0xc
push 0
lea edi, [edi + edi + 0xe]
push edi
lea ecx, [ebp - 0x1840]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
or edi, 0xffffffff
cmp eax, edi
je 0x50ec68
mov ecx, dword [esi + 0x3c]
push 0
lea eax, [ebp - 0x440]
push eax
push ecx
mov ecx, esi
call fcn.0050dac0
test eax, eax
jne 0x50eca0
cmp byte [ebp + 0xc], al
je 0x50ec34
lea edx, [ebp - 0x238]
push edx
lea ecx, [ebp + 0xc]
call fcn.0040bfb0
mov byte [ebp - 4], 0x12
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 0x2b10]
jmp 0x50ec51
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0040bfb0
mov byte [ebp - 4], 0x13
lea edx, [ebp + 0xc]
push edx
lea ecx, [esi + 0x2b00]
call fcn.0050e690
mov dword [eax], 0
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xc]
call fcn.00404d60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00404d60
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404d60
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x14]
call fcn.00404d60
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x840]
push eax
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x640]
push edx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x440]
push ecx
call fcn.0042c3e0
mov edx, dword [ebp - 0x10]
push edx
push str.AppIconCache
push ebx
lea eax, [ebp + 8]
push str._s_s_s
push eax
call fcn.004060d0
mov ecx, dword [ebp + 8]
add esp, 0x28
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x10]
push 0x5a972c
lea edx, [ebp - 0x238]
push edx
push eax
push str.AppIconCache
push ebx
lea ecx, [ebp + 8]
push 0x5a9920
push ecx
call fcn.004060d0
mov edx, dword [ebp + 8]
add esp, 0x1c
push edx
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x440]
push edx
call fcn.00554e48
add esp, 0xc
push pe_nt_image_headers32
lea eax, [ebp - 0x840]
push eax
push pe_nt_image_headers32
lea ecx, [ebp - 0x238]
push ecx
push pe_nt_image_headers32
lea edx, [ebp - 0x640]
push edx
push 3
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x440]
push ecx
call fcn.00556ea6
add esp, 0x24
cmp byte [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
je 0x50ee45
lea edx, [ebp - 0x238]
push edx
call fcn.0040bfb0
mov byte [ebp - 4], 0x14
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20]
lea edi, [esi + 0x2b10]
push ecx
mov ecx, edi
call fcn.0050b2d0
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x50edca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esi + 0x2b14]
mov eax, dword [ebp - 0x20]
cmp eax, esi
jne 0x50ee3a
mov esi, dword [sym.imp.SHELL32.dll_ExtractIconExW]
push 1
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
lea edx, [ebp - 0x440]
push edx
call esi
test eax, eax
jne 0x50ee06
push 1
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea ecx, [ebp - 0x440]
push ecx
call esi
lea edx, [ebp - 0x238]
push edx
lea ecx, [ebp + 0xc]
call fcn.0040bfb0
mov byte [ebp - 4], 0x16
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
call fcn.0050e690
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xc]
call fcn.00404d60
jmp 0x50eee8
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x1c], edx
jmp 0x50eee8
lea eax, [ebp - 0x238]
push eax
call fcn.0040bfb0
mov byte [ebp - 4], 0x17
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20]
lea edi, [esi + 0x2b00]
push edx
mov ecx, edi
call fcn.0050b2d0
mov byte [ebp - 4], 4
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 0x50ee8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esi + 0x2b04]
mov eax, dword [ebp - 0x20]
cmp eax, esi
jne 0x50eee2
push 1
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
lea edx, [ebp - 0x440]
push edx
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040bfb0
mov byte [ebp - 4], 0x19
lea ecx, [ebp + 0xc]
push ecx
mov ecx, edi
call fcn.0050e690
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xc]
call fcn.00404d60
jmp 0x50eee8
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50ef0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x50ef31
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 - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50ef57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
pop ebx
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8