Function at 0x403430
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], ecx
mov eax, dword [eax]
mov edi, dword [eax]
mov dword [ebp - 0x1c], eax
lea edx, [edi + 1]
cmp edx, 1
jbe 0x403455
lock add dword [eax], 1
setne dl
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x34]
mov dword [esp], eax
call fcn.00401d60
lea ecx, [ebp - 0x1c]
call fcn.00411340
mov eax, dword [ebp - 0x34]
mov edi, dword [0x42a534]
mov esi, dword [eax + 4]
mov dword [ebp - 0x30], edi
test esi, esi
jle 0x403828
add eax, dword [eax + 0xc]
mov ebx, 0xffffffff
add esi, eax
movzx edx, byte [eax]
movzx ebx, bx
add eax, 1
mov ecx, edx
xor ecx, ebx
and ecx, 0xf
sar ebx, 4
xor bx, word [ecx + ecx + 0x424780]
sar edx, 4
movzx ebx, bx
xor edx, ebx
and edx, 0xf
sar ebx, 4
xor bx, word [edx + edx + 0x424780]
cmp eax, esi
jne 0x403490
mov esi, ebx
mov eax, dword [ebp - 0x3c]
mov dword [eax], edi
mov eax, dword [edi + 4]
test eax, eax
jle 0x4037d3
mov edx, dword [edi]
cmp edx, 1
jbe 0x403810
xor edx, edx
mov ecx, edx
or ecx, 1
cmp byte [edi + 0xb], 0
lea edi, [ebp - 0x30]
mov dword [ebp - 0x40], edi
cmovs edx, ecx
add eax, 1
mov dword [esp + 4], edx
mov ecx, edi
mov dword [esp], eax
call dword [0x42a53c]
mov edi, dword [ebp - 0x30]
sub esp, 8
mov eax, dword [edi + 0xc]
mov ecx, esi
mov byte [edi + eax], cl
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [0x42a61c]
mov dword [ebp - 0x48], eax
call eax
mov esi, dword [ebp - 0x2c]
sub esp, 4
xor eax, eax
mov edx, dword [esi + 4]
add esi, dword [esi + 0xc]
je 0x403541
test edx, edx
jne 0x4036d5
lea edi, [ebp - 0x24]
mov dword [esp + 4], esi
mov esi, dword [0x42a5b0]
mov dword [esp + 8], eax
mov dword [esp], edi
call esi
mov eax, dword [0x42a5c4]
mov ecx, dword [ebp - 0x3c]
mov dword [esp], edi
mov dword [ebp - 0x44], eax
call eax
sub esp, 4
mov ecx, edi
call fcn.00411340
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
test edx, edx
jne 0x403735
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [0x42a530]
lea edi, [ebp - 0x20]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x423140
mov dword [esp], edi
call esi
mov ecx, dword [ebp - 0x3c]
mov dword [esp], edi
call dword [ebp - 0x44]
sub esp, 4
mov ecx, edi
call fcn.00411340
mov eax, dword [ebp - 0x30]
movzx ebx, bh
mov edx, dword [eax + 4]
test edx, edx
jle 0x4037b5
mov ecx, dword [eax]
cmp ecx, 1
jbe 0x4037f6
xor ecx, ecx
mov edi, ecx
or edi, 1
cmp byte [eax + 0xb], 0
cmovs ecx, edi
add edx, 1
mov dword [esp + 4], ecx
mov ecx, dword [ebp - 0x40]
mov dword [esp], edx
call dword [0x42a53c]
mov eax, dword [ebp - 0x30]
sub esp, 8
mov edx, dword [eax + 0xc]
mov byte [eax + edx], bl
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
mov dword [esp], eax
call dword [ebp - 0x48]
mov ebx, dword [ebp - 0x28]
sub esp, 4
xor eax, eax
mov edx, dword [ebx + 4]
add ebx, dword [ebx + 0xc]
je 0x40362f
test edx, edx
jne 0x403705
mov dword [esp + 8], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call esi
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [ebp - 0x44]
sub esp, 4
lea ecx, [ebp - 0x1c]
call fcn.00411340
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
test edx, edx
jne 0x403795
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [0x42a530]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
test edx, edx
jne 0x403775
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [0x42a530]
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
test edx, edx
jne 0x403755
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [0x42a530]
mov eax, dword [ebp - 0x3c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
cmp byte [esi], 0
je 0x403541
xor eax, eax
add eax, 1
cmp edx, eax
je 0x4036ed
cmp byte [esi + eax], 0
jne 0x4036e0
cmp eax, 0xffffffff
jne 0x403541
mov dword [esp], esi
call fcn.00410c88
nop
jmp 0x403541
cmp byte [ebx], 0
je 0x40362f
xor eax, eax
add eax, 1
cmp edx, eax
je 0x40371d
cmp byte [ebx + eax], 0
jne 0x403710
cmp eax, 0xffffffff
jne 0x40362f
mov dword [esp], ebx
call fcn.00410c88
nop
jmp 0x40362f
cmp edx, 0xffffffff
je 0x403597
lock sub dword [eax], 1
setne dl
test dl, dl
jne 0x403597
mov eax, dword [ebp - 0x2c]
jmp 0x40357e
cmp edx, 0xffffffff
je 0x4036c8
lock sub dword [eax], 1
setne dl
test dl, dl
jne 0x4036c8
mov eax, dword [ebp - 0x34]
jmp 0x4036af
cmp edx, 0xffffffff
je 0x4036a2
lock sub dword [eax], 1
setne dl
test dl, dl
jne 0x4036a2
mov eax, dword [ebp - 0x30]
jmp 0x403689
cmp edx, 0xffffffff
je 0x40367c
lock sub dword [eax], 1
setne dl
test dl, dl
jne 0x40367c
mov eax, dword [ebp - 0x28]
jmp 0x403663
mov ecx, dword [ebp - 0x40]
mov dword [esp], 0
call dword [0x42a544]
mov eax, dword [ebp - 0x30]
sub esp, 4
mov edx, dword [eax + 0xc]
jmp 0x403608
lea eax, [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov ecx, eax
mov dword [esp], 0
call dword [0x42a544]
mov edi, dword [ebp - 0x30]
sub esp, 4
mov eax, dword [edi + 0xc]
jmp 0x403511
cmp dword [eax + 0xc], 0x10
je 0x403837
test ecx, ecx
jne 0x4035de
mov ecx, 2
jmp 0x4035e0
cmp dword [edi + 0xc], 0x10
je 0x403841
test edx, edx
jne 0x4034e2
mov edx, 2
jmp 0x4034e4
mov esi, 0xffffffff
mov ebx, 0xffffffff
jmp 0x4034c7
mov edx, 0x10
jmp 0x403608
lea ecx, [ebp - 0x30]
mov eax, 0x10
mov dword [ebp - 0x40], ecx
jmp 0x403511