Function at 0x10042600
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013532d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x1026a5dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 0
xor ecx, ecx
movaps xmm0, xmmword [0x1025bb00]
movups xmmword [ebp - 0x30], xmm0
mov word [ebp - 0x10], 0x100
movaps xmm0, xmmword [0x1025bcd0]
movups xmmword [ebp - 0x20], xmm0
mov al, cl
add al, 0x58
xor byte [ebp + ecx - 0x30], al
inc ecx
cmp ecx, 0x20
jb 0x10042655
lea edx, [ebp - 0x30]
mov byte [ebp - 0xf], 0
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x10042670
mov ebx, dword [ebp + 0x1c]
lea eax, [ebp - 0x30]
mov edi, dword [ebp + 8]
sub edx, ecx
push edx
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 8]
cmp ebx, 0x10
push eax
cmovae ecx, edi
call fcn.100183c0
add esp, 8
test al, al
je 0x10042709
push 0xe
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push str.Medicine_Chest
mov ecx, esi
call fcn.10016340
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x100426f5
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100426eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100428ea
push edx
push ecx
call fcn.100e876a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movaps xmm0, xmmword [0x1025bb00]
xor ecx, ecx
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x41e0a29
mov dword [ebp - 0x18], 0x29321e
mov dword [ebp - 0x14], 0x302d151c
mov word [ebp - 0x10], 0x100
mov al, cl
add al, 0x58
xor byte [ebp + ecx - 0x2c], al
inc ecx
cmp ecx, 0x1c
jb 0x10042731
lea edx, [ebp - 0x2c]
mov byte [ebp - 0xf], 0
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x10042750
sub edx, ecx
lea eax, [ebp - 0x2c]
push edx
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 8]
cmp ebx, 0x10
push eax
cmovae ecx, edi
call fcn.100183c0
add esp, 8
test al, al
je 0x10042799
push 0xa
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push str.Gold_Chest
jmp 0x100426ba
movaps xmm0, xmmword [0x1025bb00]
xor ecx, ecx
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x41e0a29
mov dword [ebp - 0x1c], 0xa39321e
mov dword [ebp - 0x18], 0x1d1d0111
mov dword [ebp - 0x14], 0x100362b
mov al, cl
add al, 0x58
xor byte [ebp + ecx - 0x30], al
inc ecx
cmp ecx, 0x1e
jb 0x100427c2
lea edx, [ebp - 0x30]
mov byte [ebp - 0x11], 0
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x100427e0
sub edx, ecx
lea eax, [ebp - 0x30]
push edx
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 8]
cmp ebx, 0x10
push eax
cmovae ecx, edi
call fcn.100183c0
add esp, 8
test al, al
je 0x10042829
push 0xc
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push str.Weapon_Chest
jmp 0x100426ba
movaps xmm0, xmmword [0x1025bb20]
xor ecx, ecx
movups xmmword [ebp - 0x30], xmm0
mov word [ebp - 0x10], 0x100
movaps xmm0, xmmword [0x1025bce0]
movups xmmword [ebp - 0x20], xmm0
mov al, cl
add al, 0x58
xor byte [ebp + ecx - 0x30], al
inc ecx
cmp ecx, 0x20
jb 0x10042847
lea edi, [ebp - 0x30]
mov byte [ebp - 0xf], 0
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x10042860
mov edx, dword [ebp + 0x18]
lea eax, [ebp - 0x30]
sub edi, ecx
cmp ebx, 0x10
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
push edi
push eax
call fcn.100183c0
add esp, 8
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
test al, al
je 0x100428ac
push 7
push str.MainPoi
jmp 0x100426bc
push 0xc
push str.Unknow_Chest
call fcn.10016340
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x100426f5
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100426eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100426eb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3