Function at 0x43c370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585631
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x5e6990]
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
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], edx
call fcn.0046e2ee
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov edi, eax
mov dword [ebp - 0x13c], edi
call fcn.0045c778
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43c3f2
push 0x80004005
call fcn.00402e90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x11c], eax
mov dword [ebp - 4], 0
call fcn.0045c778
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43c425
push 0x80004005
call fcn.00402e90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 1
call fcn.0045c778
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43c455
push 0x80004005
call fcn.00402e90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x128], eax
push 0xff
lea ecx, [ebp - 0x10f]
push 0
mov byte [ebp - 4], 2
push ecx
mov byte [ebp - 0x110], 0
call fcn.0055e260
mov eax, dword [edi + 0xa0]
mov edx, dword [edi + 0xa4]
add esp, 0xc
mov word [ebp - 0x12c], 0x55aa
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x114], edx
test eax, eax
jne 0x43c529
mov al, byte [ebx]
cmp al, 0x7f
je 0x43c511
cmp esi, 1
je 0x43c511
mov ax, word [ebp - 0x12c]
push esi
lea ecx, [ebp - 0x10e]
push ebx
push ecx
mov word [ebp - 0x110], ax
call fcn.00560e30
movzx edx, byte [ebp - 0x110]
mov eax, 1
lea ecx, [esi + 2]
add esp, 0xc
cmp ecx, eax
jle 0x43c4ff
lea ebx, [ebx]
movzx ebx, byte [ebp + eax - 0x110]
inc eax
xor edx, ebx
cmp eax, ecx
jl 0x43c4f0
mov byte [ebp + esi - 0x10e], dl
add esi, 3
mov dword [ebp - 0x130], esi
jmp 0x43c53a
mov dword [ebp - 0x130], 1
mov esi, dword [ebp - 0x130]
mov byte [ebp - 0x110], al
jmp 0x43c53a
push esi
lea edx, [ebp - 0x110]
push ebx
push edx
call fcn.00560e30
add esp, 0xc
mov eax, dword [edi + 0x98]
cmp eax, 2
je 0x43c54f
cmp eax, 3
je 0x43c54f
cmp eax, 4
jne 0x43c557
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x14], 0
jne 0x43c602
lea eax, [esi + esi + 1]
push eax
call fcn.0045c711
add esp, 4
mov ebx, esi
mov edx, eax
lea edi, [ebp - 0x110]
mov dword [ebp - 0x12c], eax
call fcn.00405180
mov edi, dword [ebp - 0x12c]
push edi
lea ecx, [ebp - 0x11c]
push 0x5b7070
push ecx
mov byte [edi + esi*2], 0
call fcn.00403be0
add esp, 0xc
push edi
call fcn.0045c706
add esp, 4
push 0
push ecx
mov edx, esp
mov dword [ebp - 0x12c], esp
lea eax, [ebp - 0x11c]
push eax
push str.Send:
push edx
call fcn.00402850
add esp, 0xc
call fcn.0043f950
cmp dword [0x5f00c0], 0
je 0x43c5fc
push ecx
mov ecx, esp
mov dword [ebp - 0x12c], esp
lea edx, [ebp - 0x11c]
push edx
push str.Send:
push ecx
call fcn.00402850
add esp, 0xc
call fcn.0043fce0
mov edi, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x138]
test eax, eax
jne 0x43c95c
mov eax, dword [ebp - 0x124]
mov ebx, dword [edi + 0x350]
mov ecx, dword [ebp - 0x120]
push eax
push esi
lea edx, [ebp - 0x110]
call fcn.00442a50
test eax, eax
jne 0x43c6f2
cmp dword [ebp + 0x14], eax
jne 0x43c676
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x114], esp
push str.Recv:Null
call fcn.004026e0
call fcn.0043f950
cmp dword [0x5f00c0], 0
je 0x43c676
push ecx
mov ecx, esp
mov dword [ebp - 0x114], esp
push str.Recv:Null
call fcn.004026e0
call fcn.0043fce0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x128]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43c69c
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 - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43c6c2
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 - 0x11c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43c6eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x43cd8e
cmp byte [ebp - 0x110], 0x7f
jne 0x43c79c
mov ecx, dword [ebp - 0x124]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x128]
add eax, 0xfffffff0
cmp byte [ecx], 0x7f
jne 0x43c729
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x43cd31
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43c742
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 - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43c768
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 - 0x11c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43c6eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x43cd8e
mov ecx, dword [ebp - 0x120]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x124]
movzx ebx, byte [eax + edx - 3]
movzx ecx, byte [eax + edx - 2]
shl ebx, 8
add ebx, ecx
cmp ebx, 0xa000
je 0x43cc0d
lea edx, [ebp - 0x11c]
push edx
mov eax, esi
lea edi, [ebp - 0x110]
call fcn.00405270
mov ecx, dword [ebp - 0x120]
mov edi, dword [ebp - 0x124]
lea eax, [ebp - 0x118]
add esp, 4
push eax
mov eax, dword [ecx]
dec eax
call fcn.00405270
mov edx, dword [ebp - 0x11c]
add esp, 4
push str.1000000000000000
push edx
call fcn.0055a9c8
add esp, 8
test eax, eax
setne al
test al, al
je 0x43c885
push 0
push ecx
mov eax, esp
mov dword [ebp - 0x114], esp
lea ecx, [ebp - 0x11c]
push ecx
push str.Send:
push eax
call fcn.00402850
mov esi, dword [ebp - 0x134]
add esp, 0xc
call fcn.0043f7c0
push 0
push ecx
mov edx, esp
mov dword [ebp - 0x114], esp
lea eax, [ebp - 0x118]
push eax
push str.Recv:
push edx
call fcn.00402850
add esp, 0xc
mov edi, esi
call fcn.0043f7c0
push 0xdc
push ecx
mov eax, ebx
mov esi, esp
mov dword [ebp - 0x114], esp
call fcn.0043f480
mov esi, edi
call fcn.0043f7c0
cmp dword [ebp + 0x14], 0
jne 0x43c8dc
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x114], esp
lea edx, [ebp - 0x118]
push edx
push str.Recv:
push ecx
call fcn.00402850
add esp, 0xc
call fcn.0043f950
cmp dword [0x5f00c0], 0
je 0x43c8dc
push ecx
mov eax, esp
mov dword [ebp - 0x114], esp
lea ecx, [ebp - 0x118]
push ecx
push str.Recv:
push eax
call fcn.00402850
add esp, 0xc
call fcn.0043fce0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x128]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43c902
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 - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43c928
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 - 0x11c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43c6eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x43cd8e
cmp eax, 1
jne 0x43cc0d
mov ecx, dword [ebp - 0x114]
mov edi, dword [ebp - 0x124]
push esi
push ecx
mov ecx, dword [ebp - 0x120]
lea esi, [ebp - 0x110]
call fcn.004474c0
add esp, 8
test eax, eax
jne 0x43ca4e
cmp dword [ebp + 0x14], eax
jne 0x43c9ce
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x114], esp
push str.Recv:Null
call fcn.004026e0
call fcn.0043f950
cmp dword [0x5f00c0], 0
je 0x43c9ce
push ecx
mov ecx, esp
mov dword [ebp - 0x114], esp
push str.Recv:Null
call fcn.004026e0
call fcn.0043fce0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x128]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43c9f4
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 - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43ca1a
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 - 0x11c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43c6eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x43cd8e
mov ecx, dword [ebp - 0x120]
mov edx, dword [ecx]
mov eax, edi
movzx ebx, byte [eax + edx - 2]
movzx ecx, byte [eax + edx - 1]
shl ebx, 8
add ebx, ecx
cmp ebx, 0xa000
je 0x43cc0d
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x11c]
push edx
lea edi, [ebp - 0x110]
call fcn.00405270
mov ecx, dword [ebp - 0x120]
mov edi, dword [ebp - 0x124]
lea eax, [ebp - 0x118]
add esp, 4
push eax
mov eax, dword [ecx]
call fcn.00405270
mov edx, dword [ebp - 0x11c]
add esp, 4
push str.1000000000000000
push edx
call fcn.0055a9c8
add esp, 8
test eax, eax
setne al
test al, al
je 0x43cb36
push 0
push ecx
mov eax, esp
mov dword [ebp - 0x114], esp
lea ecx, [ebp - 0x11c]
push ecx
push str.Send:
push eax
call fcn.00402850
mov edi, dword [ebp - 0x134]
add esp, 0xc
mov esi, edi
call fcn.0043f7c0
push 0
push ecx
mov edx, esp
mov dword [ebp - 0x114], esp
lea eax, [ebp - 0x118]
push eax
push str.Recv:
push edx
call fcn.00402850
add esp, 0xc
call fcn.0043f7c0
push 0xdc
push ecx
mov eax, ebx
mov esi, esp
mov dword [ebp - 0x114], esp
call fcn.0043f480
mov esi, edi
call fcn.0043f7c0
cmp dword [ebp + 0x14], 0
jne 0x43cb8d
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x114], esp
lea edx, [ebp - 0x118]
push edx
push str.Recv:
push ecx
call fcn.00402850
add esp, 0xc
call fcn.0043f950
cmp dword [0x5f00c0], 0
je 0x43cb8d
push ecx
mov eax, esp
mov dword [ebp - 0x114], esp
lea ecx, [ebp - 0x118]
push ecx
push str.Recv:
push eax
call fcn.00402850
add esp, 0xc
call fcn.0043fce0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x128]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43cbb3
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 - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43cbd9
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 - 0x11c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43c6eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x43cd8e
mov ecx, dword [ebp - 0x120]
mov ebx, dword [ecx]
test ebx, ebx
je 0x43ccd6
lea edx, [ebx + ebx + 1]
push edx
call fcn.0045c711
mov edi, dword [ebp - 0x124]
mov esi, eax
add esp, 4
mov edx, esi
call fcn.00405180
push esi
lea eax, [ebp - 0x118]
push 0x5b7070
push eax
mov byte [esi + ebx*2], 0
call fcn.00403be0
add esp, 0xc
push esi
call fcn.0045c706
add esp, 4
cmp dword [ebp + 0x14], 0
jne 0x43ccb2
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x114], esp
lea edx, [ebp - 0x118]
push edx
push str.Recv:
push ecx
call fcn.00402850
add esp, 0xc
call fcn.0043f950
cmp dword [0x5f00c0], 0
je 0x43ccb2
push ecx
mov eax, esp
mov dword [ebp - 0x114], esp
lea ecx, [ebp - 0x118]
push ecx
push str.Recv:
push eax
call fcn.00402850
add esp, 0xc
call fcn.0043fce0
cmp dword [ebp - 0x138], 0
jne 0x43cd17
mov eax, dword [ebp - 0x120]
add dword [eax], 0xfffffffe
mov eax, dword [eax]
push eax
lea edx, [edi + 2]
push edx
push edi
call fcn.00560e30
add esp, 0xc
jmp 0x43cd17
cmp dword [ebp + 0x14], 0
jne 0x43cd17
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x114], esp
push str.Recv:Null
call fcn.004026e0
call fcn.0043f950
cmp dword [0x5f00c0], 0
je 0x43cd17
push ecx
mov ecx, esp
mov dword [ebp - 0x114], esp
push str.Recv:Null
call fcn.004026e0
call fcn.0043fce0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x128]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43cd3d
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 - 0x118]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43cd63
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 - 0x11c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43cd8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
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.0055a74e
mov esp, ebp
pop ebp
ret 0x10