Function at 0x542390
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x582f18
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x641030]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x80]
movzx eax, byte [esi + 0x122]
push eax
push str.gcm_process
push esi
lea ecx, [esp + 0x54]
call fcn.00437770
cmp dword [esp + 0x78], 0
mov dword [esp + 0x5c], 0
je 0x542428
cmp dword [esp + 0x74], 0
jne 0x542428
mov edx, dword [esi]
push str.NULL_input.
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x5c], 0xffffffff
call fcn.004377b0
xor al, al
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x20
mov ebp, dword [esp + 0x7c]
mov ecx, ebp
call fcn.0051d090
mov ecx, dword [esp + 0x78]
mov edi, eax
lea eax, [edi + ecx]
mov dword [esp + 0x34], eax
add eax, 0x20
push eax
mov ecx, ebp
call fcn.0044b660
test al, al
jne 0x542458
mov edx, dword [esi]
push str.Unable_to_allocate_GCM_output_buffer.
jmp 0x5423f8
cmp byte [esp + 0x64], 0
push edi
je 0x542477
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x18], ecx
mov ecx, ebp
call fcn.00446fb0
mov edi, eax
mov dword [esp + 0x18], eax
jmp 0x54248a
mov ecx, ebp
call fcn.00446fb0
mov edi, dword [esp + 0x74]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
mov ebp, dword [esp + 0x6c]
mov eax, dword [ebp + 0x530]
cmp eax, 0x10
mov cl, byte [0x643062]
mov byte [esp + 0x74], cl
jg 0x5423ff
xor esi, esi
cmp eax, esi
jl 0x5423ff
cmp dword [ebp + 0x52c], 1
jne 0x542528
cmp eax, esi
je 0x5424e2
push esi
cdq
push 8
push edx
push eax
call fcn.005565d0
add dword [ebp + 0x538], eax
lea eax, [ebp + 0x4e8]
adc dword [ebp + 0x53c], edx
mov edx, ebp
call fcn.0053ff60
mov ecx, 0xfffffb08
lea eax, [ebp + 0x507]
sub ecx, ebp
add byte [eax], 1
jne 0x5424fd
dec eax
lea edx, [ecx + eax]
cmp edx, 0xc
jge 0x5424ef
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
lea ecx, [ebp + 0x518]
push ecx
lea edx, [ebp + 0x4f8]
push edx
mov ecx, ebx
call eax
mov cl, byte [esp + 0x74]
mov dword [ebp + 0x530], esi
mov dword [ebp + 0x52c], 2
cmp dword [ebp + 0x52c], 2
jne 0x5423ff
cmp dword [ebp + 0x530], esi
jne 0x542d1e
mov eax, dword [esp + 0x78]
xor esi, esi
cmp byte [esp + 0x64], 0
je 0x542943
test cl, cl
je 0x542861
and eax, 0xfffffff0
jbe 0x542d1e
mov esi, dword [esp + 0x14]
dec eax
mov ecx, edi
sub ecx, esi
mov dword [esp + 0x2c], ecx
shr eax, 4
inc eax
mov ecx, 0xfffffb08
sub ecx, ebp
add esi, 6
mov dword [esp + 0x28], eax
shl eax, 4
mov dword [esp + 0x80], ecx
lea ecx, [edi + 5]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], ecx
lea ecx, [ebp + 0x51e]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 2
movzx eax, byte [esi + 1]
cdq
shld edx, eax, 8
shl eax, 8
mov edi, eax
movzx eax, byte [esi]
mov ebx, edx
cdq
or edi, eax
or ebx, edx
shld ebx, edi, 8
movzx eax, byte [esi - 1]
shl edi, 8
cdq
or edi, eax
or ebx, edx
shld ebx, edi, 8
movzx eax, byte [esi - 2]
shl edi, 8
cdq
or edi, eax
movzx eax, byte [esi - 3]
or ebx, edx
shld ebx, edi, 8
shl edi, 8
cdq
or edi, eax
movzx eax, byte [esi - 4]
or ebx, edx
shld ebx, edi, 8
shl edi, 8
cdq
or edi, eax
movzx eax, byte [esi - 5]
or ebx, edx
shld ebx, edi, 8
cdq
shl edi, 8
or edi, eax
movzx eax, byte [esi - 6]
or ebx, edx
shld ebx, edi, 8
cdq
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 1]
or ebx, edx
cdq
shld edx, eax, 8
mov dword [esp + 0x38], edi
shl eax, 8
mov edi, eax
movzx eax, byte [ecx]
mov dword [esp + 0x3c], ebx
mov ebx, edx
cdq
or edi, eax
movzx eax, byte [ecx - 1]
or ebx, edx
shld ebx, edi, 8
shl edi, 8
cdq
or edi, eax
movzx eax, byte [ecx - 2]
or ebx, edx
shld ebx, edi, 8
shl edi, 8
cdq
or edi, eax
movzx eax, byte [ecx - 3]
or ebx, edx
shld ebx, edi, 8
cdq
shl edi, 8
or edi, eax
movzx eax, byte [ecx - 4]
or ebx, edx
shld ebx, edi, 8
cdq
shl edi, 8
or edi, eax
movzx eax, byte [ecx - 5]
or ebx, edx
cdq
shld ebx, edi, 8
or ebx, edx
shl edi, 8
or edi, eax
movzx eax, byte [ecx - 6]
mov edx, edi
mov edi, ebx
shld edi, edx, 8
shl edx, 8
mov ebx, edx
cdq
or ebx, eax
xor ebx, dword [esp + 0x38]
or edi, edx
xor edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x74]
mov eax, edi
shr eax, 0x18
mov byte [edx + 2], al
mov edx, dword [esp + 0x2c]
mov eax, edi
shr eax, 0x10
mov byte [edx + esi], al
mov esi, dword [esp + 0x74]
mov eax, edi
shr eax, 8
mov byte [esi], al
mov eax, ebx
mov edx, edi
mov byte [esi - 1], dl
shrd eax, edx, 0x18
mov byte [esi - 2], al
shr edx, 0x18
mov eax, ebx
mov byte [esi - 5], bl
mov edx, edi
shrd eax, edx, 0x10
mov byte [esi - 3], al
shr edx, 0x10
mov eax, ebx
mov edx, edi
shrd eax, edx, 8
mov byte [esi - 4], al
movzx eax, byte [ecx - 0x2f]
shr edx, 8
cdq
shld edx, eax, 8
shl eax, 8
mov esi, eax
movzx eax, byte [ecx - 0x30]
mov dword [esp + 0x40], ebx
mov ebx, edx
cdq
or esi, eax
movzx eax, byte [ecx - 0x31]
or ebx, edx
shld ebx, esi, 8
shl esi, 8
cdq
or esi, eax
movzx eax, byte [ecx - 0x32]
or ebx, edx
shld ebx, esi, 8
shl esi, 8
cdq
or esi, eax
movzx eax, byte [ecx - 0x33]
or ebx, edx
shld ebx, esi, 8
cdq
shl esi, 8
or esi, eax
movzx eax, byte [ecx - 0x34]
or ebx, edx
shld ebx, esi, 8
cdq
shl esi, 8
or esi, eax
movzx eax, byte [ecx - 0x35]
or ebx, edx
shld ebx, esi, 8
cdq
or ebx, edx
shl esi, 8
or esi, eax
mov eax, esi
mov esi, ebx
shld esi, eax, 8
shl eax, 8
mov ebx, eax
movzx eax, byte [ecx - 0x36]
cdq
or esi, edx
xor esi, edi
or ebx, eax
xor ebx, dword [esp + 0x40]
mov edx, esi
shr edx, 0x18
mov byte [ecx - 0x2f], dl
mov eax, esi
shr eax, 0x10
mov byte [ecx - 0x30], al
mov edx, esi
shr edx, 8
add dword [esp + 0x74], 8
mov byte [ecx - 0x31], dl
mov eax, esi
mov byte [ecx - 0x32], al
mov edx, ebx
shrd edx, eax, 0x18
mov byte [ecx - 0x33], dl
shr eax, 0x18
mov eax, esi
mov edx, ebx
shrd edx, eax, 0x10
mov byte [ecx - 0x34], dl
mov edx, ebx
shrd edx, esi, 8
shr esi, 8
mov esi, dword [esp + 0x20]
mov byte [ecx - 0x35], dl
mov byte [ecx - 0x36], bl
add esi, 8
mov edi, 1
shr eax, 0x10
add ecx, 8
sub dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
jne 0x5425a9
add dword [ebp + 0x540], 0x80
lea eax, [ebp + 0x4e8]
mov edx, ebp
adc dword [ebp + 0x544], 0
call fcn.0053ff60
mov ecx, dword [esp + 0x80]
lea eax, [ebp + 0x507]
mov edi, edi
add byte [eax], 1
jne 0x54282f
sub eax, edi
lea edx, [eax + ecx]
cmp edx, 0xc
jge 0x542820
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebx]
lea eax, [ebp + 0x518]
push eax
lea eax, [ebp + 0x4f8]
push eax
mov eax, dword [edx + 0x10]
mov ecx, ebx
call eax
sub dword [esp + 0x28], edi
mov ecx, dword [esp + 0x74]
jne 0x542593
mov esi, dword [esp + 0x6c]
jmp 0x542d1a
and eax, 0xfffffff0
mov dword [esp + 0x6c], eax
jbe 0x542d1e
mov edx, dword [esp + 0x14]
sub edx, edi
mov eax, 0xfffffb08
sub eax, ebp
mov dword [esp + 0x74], edx
mov dword [esp + 0x80], eax
jmp 0x542894
mov edx, dword [esp + 0x74]
lea ecx, [ebp + 0x4e8]
lea eax, [esi + edi]
mov dword [esp + 0x28], 2
jmp 0x5428b4
mov edx, dword [esp + 0x74]
mov ebx, dword [edx + eax]
mov edx, dword [edx + eax + 4]
xor edx, dword [ecx + 0x34]
xor ebx, dword [ecx + 0x30]
mov dword [eax + 4], edx
mov dword [eax], ebx
mov edx, ebx
xor dword [ecx], edx
mov edx, dword [eax + 4]
xor dword [ecx + 4], edx
add eax, 8
add ecx, 8
sub dword [esp + 0x28], 1
jne 0x5428b0
add dword [ebp + 0x540], 0x80
lea eax, [ebp + 0x4e8]
mov edx, ebp
adc dword [ebp + 0x544], 0
call fcn.0053ff60
mov ecx, dword [esp + 0x80]
lea eax, [ebp + 0x507]
add byte [eax], 1
jne 0x542916
dec eax
lea edx, [eax + ecx]
cmp edx, 0xc
jge 0x542908
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebx]
lea eax, [ebp + 0x518]
push eax
lea eax, [ebp + 0x4f8]
push eax
mov eax, dword [edx + 0x10]
mov ecx, ebx
call eax
add esi, 0x10
cmp esi, dword [esp + 0x6c]
jb 0x542890
jmp 0x542d1e
test cl, cl
je 0x542c41
and eax, 0xfffffff0
jbe 0x542d1e
mov esi, dword [esp + 0x14]
mov ecx, esi
sub ecx, edi
dec eax
shr eax, 4
mov dword [esp + 0x74], ecx
inc eax
mov ecx, 0xfffffb08
sub ecx, ebp
add edi, 6
add esi, 5
mov dword [esp + 0x20], eax
shl eax, 4
mov dword [esp + 0x80], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x28], esi
lea ecx, [ebp + 0x4ee]
mov dword [esp + 0x24], 2
movzx eax, byte [edi + 1]
cdq
shld edx, eax, 8
shl eax, 8
mov esi, eax
movzx eax, byte [edi]
mov ebx, edx
cdq
or esi, eax
or ebx, edx
shld ebx, esi, 8
movzx eax, byte [edi - 1]
shl esi, 8
cdq
or esi, eax
or ebx, edx
shld ebx, esi, 8
movzx eax, byte [edi - 2]
shl esi, 8
cdq
or esi, eax
movzx eax, byte [edi - 3]
or ebx, edx
shld ebx, esi, 8
shl esi, 8
cdq
or esi, eax
movzx eax, byte [edi - 4]
or ebx, edx
shld ebx, esi, 8
shl esi, 8
cdq
or esi, eax
movzx eax, byte [edi - 5]
or ebx, edx
shld ebx, esi, 8
cdq
shl esi, 8
or esi, eax
movzx eax, byte [edi - 6]
or ebx, edx
shld ebx, esi, 8
cdq
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 1]
or ebx, edx
cdq
shld edx, eax, 8
mov dword [esp + 0x2c], esi
shl eax, 8
mov esi, eax
movzx eax, byte [ecx]
mov dword [esp + 0x30], ebx
mov ebx, edx
cdq
or esi, eax
movzx eax, byte [ecx - 1]
or ebx, edx
shld ebx, esi, 8
shl esi, 8
cdq
or esi, eax
movzx eax, byte [ecx - 2]
or ebx, edx
shld ebx, esi, 8
shl esi, 8
cdq
or esi, eax
movzx eax, byte [ecx - 3]
or ebx, edx
shld ebx, esi, 8
cdq
shl esi, 8
or esi, eax
movzx eax, byte [ecx - 4]
or ebx, edx
shld ebx, esi, 8
cdq
shl esi, 8
or esi, eax
or ebx, edx
movzx eax, byte [ecx - 5]
shld ebx, esi, 8
cdq
or ebx, edx
shl esi, 8
or esi, eax
movzx eax, byte [ecx - 6]
mov edx, esi
mov esi, ebx
shld esi, edx, 8
shl edx, 8
mov ebx, edx
cdq
or ebx, eax
xor ebx, dword [esp + 0x2c]
or esi, edx
xor esi, dword [esp + 0x30]
mov byte [ecx - 6], bl
mov eax, esi
shr eax, 0x18
mov byte [ecx + 1], al
mov edx, esi
mov eax, esi
shr eax, 8
mov byte [ecx - 1], al
shr edx, 0x10
mov byte [ecx], dl
mov edx, esi
mov byte [ecx - 2], dl
mov eax, ebx
shrd eax, edx, 0x18
mov byte [ecx - 3], al
shr edx, 0x18
mov edx, esi
mov eax, ebx
shrd eax, edx, 0x10
mov byte [ecx - 4], al
mov eax, ebx
shrd eax, esi, 8
mov byte [ecx - 5], al
movzx eax, byte [ecx + 0x31]
shr edx, 0x10
cdq
shld edx, eax, 8
shr esi, 8
shl eax, 8
mov esi, eax
movzx eax, byte [ecx + 0x30]
mov ebx, edx
cdq
or esi, eax
movzx eax, byte [ecx + 0x2f]
or ebx, edx
shld ebx, esi, 8
shl esi, 8
cdq
or esi, eax
movzx eax, byte [ecx + 0x2e]
or ebx, edx
shld ebx, esi, 8
shl esi, 8
cdq
or esi, eax
movzx eax, byte [ecx + 0x2d]
or ebx, edx
shld ebx, esi, 8
cdq
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0x2c]
or ebx, edx
shld ebx, esi, 8
cdq
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0x2b]
or ebx, edx
shld ebx, esi, 8
shl esi, 8
cdq
or ebx, edx
or esi, eax
movzx eax, byte [ecx + 0x2a]
shld ebx, esi, 8
cdq
or ebx, edx
mov edx, dword [esp + 0x2c]
shl esi, 8
or esi, eax
mov eax, dword [esp + 0x30]
xor edx, esi
mov esi, dword [esp + 0x28]
xor eax, ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x38], edx
mov edx, eax
shr edx, 0x18
mov byte [esi + 2], dl
mov edx, eax
shr edx, 0x10
mov byte [edi + ebx], dl
mov edx, eax
shr edx, 8
mov byte [esi], dl
mov edx, eax
mov byte [esi - 1], dl
mov edx, dword [esp + 0x38]
mov ebx, eax
shrd edx, ebx, 0x18
shr ebx, 0x18
mov byte [esi - 2], dl
mov edx, dword [esp + 0x38]
mov ebx, eax
shrd edx, ebx, 0x10
mov byte [esi - 3], dl
mov edx, dword [esp + 0x38]
shr ebx, 0x10
mov ebx, edx
shrd ebx, eax, 8
mov byte [esi - 4], bl
mov byte [esi - 5], dl
add esi, 8
shr eax, 8
add edi, 8
add ecx, 8
sub dword [esp + 0x24], 1
mov dword [esp + 0x28], esi
jne 0x542996
add dword [ebp + 0x540], 0x80
lea eax, [ebp + 0x4e8]
mov edx, ebp
adc dword [ebp + 0x544], 0
call fcn.0053ff60
mov ecx, dword [esp + 0x80]
lea eax, [ebp + 0x507]
add byte [eax], 1
jne 0x542c12
dec eax
lea edx, [eax + ecx]
cmp edx, 0xc
jge 0x542c04
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebx]
lea eax, [ebp + 0x518]
push eax
lea eax, [ebp + 0x4f8]
push eax
mov eax, dword [edx + 0x10]
mov ecx, ebx
call eax
sub dword [esp + 0x20], 1
jne 0x542984
mov esi, dword [esp + 0x6c]
jmp 0x542d1a
and eax, 0xfffffff0
mov dword [esp + 0x6c], eax
jbe 0x542d1e
mov edx, dword [esp + 0x14]
sub edx, edi
mov eax, 0xfffffb08
sub eax, ebp
mov dword [esp + 0x74], edx
mov dword [esp + 0x80], eax
jmp 0x542c78
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x74]
lea ecx, [esi + edi]
lea eax, [ebp + 0x4e8]
mov dword [esp + 0x28], 2
lea esp, [esp]
mov edi, dword [ecx]
xor dword [eax], edi
mov edi, dword [ecx + 4]
xor dword [eax + 4], edi
mov edi, dword [eax + 0x30]
mov ebx, dword [eax + 0x34]
xor edi, dword [ecx]
xor ebx, dword [ecx + 4]
mov dword [ecx + edx], edi
mov dword [ecx + edx + 4], ebx
add eax, 8
add ecx, 8
sub dword [esp + 0x28], 1
jne 0x542c90
add dword [ebp + 0x540], 0x80
lea eax, [ebp + 0x4e8]
mov edx, ebp
adc dword [ebp + 0x544], 0
call fcn.0053ff60
mov ecx, dword [esp + 0x80]
lea eax, [ebp + 0x507]
add byte [eax], 1
jne 0x542cf2
dec eax
lea edx, [eax + ecx]
cmp edx, 0xc
jge 0x542ce4
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebx]
lea eax, [ebp + 0x518]
push eax
lea eax, [ebp + 0x4f8]
push eax
mov eax, dword [edx + 0x10]
mov ecx, ebx
call eax
add esi, 0x10
cmp esi, dword [esp + 0x6c]
jb 0x542c70
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x78]
cmp esi, eax
jae 0x542dff
mov edx, dword [esp + 0x14]
sub edx, edi
lea ecx, [esi + edi]
sub eax, esi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], edx
mov esi, eax
cmp dword [ebp + 0x530], 0x10
jne 0x542da6
add dword [ebp + 0x540], 0x80
lea eax, [ebp + 0x4e8]
mov edx, ebp
adc dword [ebp + 0x544], 0
call fcn.0053ff60
mov ecx, 0xfffffb08
lea eax, [ebp + 0x507]
sub ecx, ebp
add byte [eax], 1
jne 0x542d81
dec eax
lea edx, [eax + ecx]
cmp edx, 0xc
jge 0x542d73
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
lea ecx, [ebp + 0x518]
push ecx
lea edx, [ebp + 0x4f8]
push edx
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x78]
mov dword [ebp + 0x530], 0
cmp byte [esp + 0x64], 0
mov edx, dword [ebp + 0x530]
je 0x542dc5
mov al, byte [edx + ebp + 0x518]
mov edx, dword [esp + 0x74]
xor al, byte [edx + ecx]
mov byte [ecx], al
jmp 0x542dd7
mov al, byte [ecx]
mov dl, byte [edx + ebp + 0x518]
mov edi, dword [esp + 0x74]
xor dl, al
mov byte [edi + ecx], dl
mov edx, dword [ebp + 0x530]
xor byte [edx + ebp + 0x4e8], al
inc dword [ebp + 0x530]
lea edx, [edx + ebp + 0x4e8]
inc ecx
sub esi, 1
mov dword [esp + 0x78], ecx
jne 0x542d3f
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x7c]
push eax
call fcn.004471d0
lea ecx, [esp + 0x48]
mov dword [esp + 0x5c], 0xffffffff
call fcn.004377b0
mov al, 1
jmp 0x542412