joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5603d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.00450fe0
mov eax, dword [0x67a374]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
push ebx
push ebp
movzx ebx, byte [eax]
lea ebp, [eax + 1]
mov edx, ebp
shl ebx, 0x18
push esi
push edi
mov edi, dword [esp + 0x50]
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 0x10
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
mov esi, dword [edi]
movzx eax, byte [edx + 2]
or ebx, eax
mov dword [esp + 0x14], edi
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x24], ebp
movzx eax, byte [edx + 6]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [esp + 0x2c]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x18], ebx
mov eax, ebx
mov byte [esp + 0x2f], bl
shr eax, 0x18
or edx, ecx
mov byte [esp + 0x2c], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x32], al
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x33], dl
test eax, eax
je 0x560595
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x3c]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
nop dword [eax]
dec eax
mov dword [esp + 0x44], eax
test esi, esi
jne 0x560525
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
call fcn.0055fe00
mov ebx, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
inc ebp
mov byte [esp + 0x2f], bl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x5604c0
test ebp, ebp
mov ebp, dword [esp + 0x24]
je 0x56057c
mov ecx, dword [esp + 0x28]
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp], al
mov eax, ebx
shr eax, 8
mov byte [ebp + 1], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 2], bl
mov byte [ebp + 3], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 4], al
mov eax, edx
shr eax, 8
mov byte [ebp + 5], al
mov byte [ebp + 6], dl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004503a3
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004503a3
add esp, 0x28
ret
Function at 0x5641d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.00450fe0
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x34]
mov edi, dword [edi]
mov dword [esp + 0x14], edi
test edi, edi
je 0x564219
mov ecx, dword [esp + 0x30]
nop dword [eax]
test esi, esi
je 0x564219
mov al, byte [edi + ecx]
dec esi
xor al, byte [ebp]
inc edi
mov byte [ebx], al
inc ebp
inc ebx
and edi, 0xf
mov dword [esp + 0x14], edi
jne 0x564200
mov ecx, dword [esp + 0x2c]
movzx edx, byte [ecx + 0xc]
movzx eax, byte [ecx + 0xd]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xe]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xf]
shl edx, 8
or edx, eax
mov dword [esp + 0x24], edx
cmp esi, 0x10
jb 0x5642e8
mov edi, ecx
nop dword [eax + eax]
mov ecx, esi
shr ecx, 4
push edi
push dword [esp + 0x2c]
lea eax, [ecx + edx]
neg edx
cmp eax, ecx
cmovae edx, ecx
mov dword [esp + 0x18], edx
xor edx, edx
push dword [esp + 0x18]
cmp eax, ecx
push ebx
cmovae edx, eax
push ebp
mov dword [esp + 0x38], edx
call dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
add esp, 0x14
mov eax, edx
mov byte [edi + 0xf], dl
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, edx
shr eax, 8
mov byte [edi + 0xe], al
test edx, edx
jne 0x5642c6
mov edx, 0xc
mov eax, 1
nop dword [eax]
movzx ecx, byte [edx + edi - 1]
dec edx
add eax, ecx
mov byte [edx + edi], al
shr eax, 8
test edx, edx
jne 0x5642b0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
shl eax, 4
sub esi, eax
add ebx, eax
add ebp, eax
cmp esi, 0x10
jae 0x564250
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
test esi, esi
je 0x564356
mov eax, dword [esp + 0x30]
xorps xmm0, xmm0
push ecx
push dword [esp + 0x2c]
push 1
push eax
push eax
movups xmmword [eax], xmm0
call dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
add esp, 0x14
mov edx, dword [esp + 0x2c]
inc ecx
mov eax, ecx
shr eax, 0x18
mov byte [edx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [edx + 0xe], al
mov byte [edx + 0xf], cl
test ecx, ecx
jne 0x564337
push edx
call fcn.005643a0
add esp, 4
mov eax, dword [esp + 0x30]
sub ebp, eax
sub ebx, eax
lea ecx, [edi + eax]
add edi, esi
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub esi, 1
jne 0x564344
mov eax, dword [esp + 0x34]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x564970
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00450fe0
push ebp
mov ebp, dword [esp + 0xc]
mov eax, dword [ebp + 0x38]
or eax, dword [ebp + 0x3c]
je 0x56498f
mov eax, 0xfffffffe
pop ebp
pop ecx
ret
push esi
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov eax, esi
add eax, dword [ebp + 0x30]
adc ecx, dword [ebp + 0x34]
cmp ecx, 0x20000000
ja 0x564a59
jb 0x5649b4
test eax, eax
jne 0x564a59
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, dword [ebp + 0x16c]
mov dword [ebp + 0x34], ecx
lea ecx, [ebp + 0x40]
mov dword [ebp + 0x30], eax
test edi, edi
je 0x564a05
nop dword [eax]
test esi, esi
je 0x5649ea
mov al, byte [ebx]
lea ecx, [ebp + 0x40]
xor byte [ecx + edi], al
inc ebx
inc edi
mov dword [esp + 0x18], ecx
dec esi
and edi, 0xf
jne 0x5649d0
jmp 0x5649f2
mov dword [esp + 0x18], ecx
test edi, edi
jne 0x564a4b
lea eax, [ebp + 0x60]
push eax
push ecx
call fcn.00565dd0
mov ecx, dword [esp + 0x20]
add esp, 8
jmp 0x564a09
mov dword [esp + 0x18], ecx
mov eax, esi
lea edx, [ebp + 0x60]
and eax, 0xfffffff0
mov dword [esp + 0x10], eax
je 0x564a2b
push eax
push ebx
push edx
push ecx
call fcn.00565ba0
add ebx, dword [esp + 0x20]
add esp, 0x10
sub esi, dword [esp + 0x10]
test esi, esi
je 0x564a4b
xor ecx, ecx
mov edi, esi
test esi, esi
je 0x564a4b
mov edx, dword [esp + 0x18]
nop dword [eax + eax]
mov al, byte [ecx + ebx]
xor byte [edx + ecx], al
inc ecx
cmp ecx, esi
jb 0x564a40
mov dword [ebp + 0x16c], edi
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret
pop esi
or eax, 0xffffffff
pop ebp
pop ecx
ret
Function at 0x5655b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.00450fe0
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x30]
mov esi, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
shld esi, eax, 3
shld edi, ecx, 3
shl eax, 3
shl ecx, 3
cmp dword [ebx + 0x168], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ecx
jne 0x5655fe
cmp dword [ebx + 0x16c], 0
je 0x565616
lea eax, [ebx + 0x60]
push eax
lea eax, [ebx + 0x40]
push eax
call fcn.00565dd0
mov eax, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x38], ecx
mov ecx, eax
mov dword [ebx + 0x34], esi
mov eax, esi
shrd ecx, eax, 8
mov dword [ebx + 0x3c], edi
movzx eax, cl
cdq
mov ebx, eax
mov ecx, dword [esp + 0x14]
mov ebp, edx
movzx eax, cl
cdq
shld edx, eax, 8
shl eax, 8
or ebp, edx
or ebx, eax
mov eax, esi
shrd ecx, eax, 0x10
shld ebp, ebx, 8
movzx eax, cl
mov ecx, dword [esp + 0x14]
cdq
shl ebx, 8
or ebp, edx
or ebx, eax
mov eax, esi
shrd ecx, eax, 0x18
shld ebp, ebx, 8
movzx eax, cl
mov ecx, dword [esp + 0x1c]
cdq
shl ebx, 8
or ebp, edx
or ebx, eax
movzx eax, cl
cdq
shld ebp, ebx, 8
shl ebx, 8
or ebp, edx
or ebx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
cdq
shld ebp, ebx, 8
shl ebx, 8
or ebp, edx
or ebx, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
cdq
shld ebp, ebx, 8
shr ecx, 0x18
shl ebx, 8
or ebp, edx
or ebx, eax
mov eax, edi
shld ebp, ebx, 8
shl ebx, 8
or ebx, ecx
mov ecx, dword [esp + 0x10]
shrd ecx, eax, 8
movzx eax, cl
mov ecx, dword [esp + 0x10]
cdq
mov esi, eax
mov edi, edx
movzx eax, cl
cdq
shld edx, eax, 8
shl eax, 8
or edi, edx
or esi, eax
mov eax, dword [esp + 0x18]
shld edi, esi, 8
shl esi, 8
shrd ecx, eax, 0x10
movzx eax, cl
mov ecx, dword [esp + 0x10]
cdq
or esi, eax
or edi, edx
mov eax, dword [esp + 0x18]
shrd ecx, eax, 0x18
shld edi, esi, 8
movzx eax, cl
mov ecx, dword [esp + 0x18]
cdq
shl esi, 8
or edi, edx
or esi, eax
movzx eax, cl
shld edi, esi, 8
cdq
shl esi, 8
or edi, edx
or esi, eax
mov eax, ecx
shld edi, esi, 8
shr eax, 8
movzx eax, al
cdq
shl esi, 8
or edi, edx
or esi, eax
mov eax, ecx
shld edi, esi, 8
shr eax, 0x10
movzx eax, al
shl esi, 8
cdq
or esi, eax
shr ecx, 0x18
or edi, edx
shld edi, esi, 8
shl esi, 8
or esi, ecx
mov ecx, dword [esp + 0x24]
add ecx, 0x40
xor dword [ecx], ebx
mov ebx, dword [esp + 0x24]
xor dword [ecx + 4], ebp
xor dword [ebx + 0x48], esi
lea eax, [ebx + 0x60]
xor dword [ebx + 0x4c], edi
push eax
push ecx
call fcn.00565dd0
mov eax, dword [ebx + 0x20]
lea ecx, [ebx + 0x40]
xor dword [ecx], eax
add esp, 8
mov eax, dword [ebx + 0x24]
xor dword [ecx + 4], eax
mov eax, dword [ebx + 0x28]
xor dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x2c]
xor dword [ebx + 0x4c], eax
mov edx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
test edx, edx
je 0x5657be
mov eax, dword [esp + 0x1c]
cmp eax, 0x10
ja 0x5657be
add esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
jmp fcn.004fdf00
or eax, 0xffffffff
add esp, 0x10
ret
Function at 0x569b40
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x569b54
mov dword [esp + 0x18], fcn.00568320
jmp fcn.00563f10
mov dword [esp + 0x18], fcn.005675c0
jmp fcn.00563c50
Function at 0x573280
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.00450fe0
mov eax, dword [0x67a374]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov dword [esp], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
test ebx, ebx
jle 0x573369
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
lea esi, [edx + 2]
lea edi, [ebp + 3]
sub ebp, edx
nop dword [eax]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call fcn.005736a0
mov al, byte [edi - 3]
lea edi, [edi + 8]
xor al, byte [esp + 0x28]
lea esi, [esi + 8]
mov byte [esi - 0xa], al
add esp, 0xc
mov byte [esp + 0x14], al
mov al, byte [edi - 0xa]
xor al, byte [esp + 0x1d]
mov byte [esi - 9], al
mov byte [esp + 0x15], al
mov al, byte [esi + ebp - 8]
xor al, byte [esp + 0x1e]
mov byte [esi - 8], al
mov byte [esp + 0x16], al
mov al, byte [edi - 8]
xor al, byte [esp + 0x1f]
mov byte [esi - 7], al
mov byte [esp + 0x17], al
mov al, byte [edi - 7]
xor al, byte [esp + 0x20]
mov byte [esi - 6], al
mov byte [esp + 0x18], al
mov al, byte [edi - 6]
xor al, byte [esp + 0x21]
mov byte [esi - 5], al
mov byte [esp + 0x19], al
mov al, byte [edi - 5]
xor al, byte [esp + 0x22]
mov byte [esi - 4], al
mov byte [esp + 0x1a], al
mov al, byte [edi - 4]
xor al, byte [esp + 0x23]
mov byte [esi - 3], al
mov byte [esp + 0x1b], al
sub ebx, 1
jne 0x5732d0
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
pop ebx
xor ecx, esp
call fcn.004503a3
add esp, 0x18
ret
Function at 0x581550
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ecx, dword [edx + 4]
mov ebp, edx
push edi
cmp ecx, dword [ebx + 4]
mov edi, dword [esp + 0x10]
cmovge ebp, ebx
cmovge ebx, edx
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 8]
jg 0x581579
mov eax, edi
jmp 0x581583
push eax
push edi
call fcn.004e9f00
add esp, 8
test eax, eax
jne 0x58158b
pop edi
pop ebp
pop ebx
ret
push esi
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x5815a9
mov eax, dword [ebp]
mov ecx, dword [ebx]
mov edx, dword [eax + esi*4]
mov eax, dword [edi]
xor edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
inc esi
cmp esi, dword [ebp + 4]
jl 0x581593
mov eax, dword [ebx + 4]
cmp esi, eax
jge 0x5815c2
mov eax, dword [ebx]
mov ecx, dword [edi]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [ebx + 4]
cmp esi, eax
jl 0x5815b0
mov dword [edi + 4], eax
pop esi
test eax, eax
jle 0x5815e5
mov edx, dword [edi]
add edx, 0xfffffffc
lea edx, [edx + eax*4]
mov ecx, dword [edx]
lea edx, [edx - 4]
test ecx, ecx
jne 0x5815e0
dec eax
test eax, eax
jg 0x5815d2
mov dword [edi + 4], eax
test eax, eax
jne 0x5815ee
mov dword [edi + 0xc], 0
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x5825e0
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, 4
call fcn.00450fe0
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
push ebp
xor edi, edi
call fcn.00509250
push ebp
call fcn.005090c0
mov esi, eax
add esp, 8
test esi, esi
je 0x5827f6
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 4]
add eax, eax
cmp eax, dword [esi + 8]
jg 0x58261f
mov eax, esi
jmp 0x582629
push eax
push esi
call fcn.004e9f00
add esp, 8
test eax, eax
je 0x5827f5
mov eax, dword [ebx + 4]
lea ecx, [eax - 1]
test ecx, ecx
js 0x5827b1
mov ebp, ecx
mov eax, dword [ebx]
mov edx, dword [eax + ebp*4]
mov ecx, edx
shr ecx, 1
mov eax, edx
and eax, 0x20000
and ecx, 0x8000
or ecx, eax
mov eax, edx
and eax, 0x40000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x80000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x100000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x200000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x400000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x800000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x1000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x2000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x4000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x8000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x10000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x20000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x40000000
shr ecx, 1
or ecx, eax
and edx, reloc.WS2_32.dll_accept
mov eax, dword [esi]
shr ecx, 1
or ecx, edx
shr ecx, 1
mov dword [eax + ebp*8 + 4], ecx
mov eax, dword [ebx]
mov ecx, dword [eax + ebp*4]
mov edx, ecx
and edx, 0x8000
mov eax, ecx
add edx, edx
and eax, 0x4000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x2000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x1000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x800
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x400
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x200
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x100
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x80
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x40
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x20
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x10
or edx, eax
mov eax, ecx
add edx, edx
and eax, 8
or edx, eax
mov eax, ecx
add edx, edx
and eax, 4
or edx, eax
mov eax, ecx
add edx, edx
and eax, 2
or edx, eax
and ecx, 1
mov eax, dword [esi]
add edx, edx
or edx, ecx
mov dword [eax + ebp*8], edx
sub ebp, 1
jns 0x582641
mov eax, dword [ebx + 4]
mov ebp, dword [esp + 0x24]
add eax, eax
mov dword [esi + 4], eax
test eax, eax
jle 0x5827d5
mov edx, dword [esi]
add edx, 0xfffffffc
lea edx, [edx + eax*4]
mov ecx, dword [edx]
lea edx, [edx - 4]
test ecx, ecx
jne 0x5827d0
dec eax
test eax, eax
jg 0x5827c2
mov dword [esi + 4], eax
test eax, eax
jne 0x5827da
mov dword [esi + 0xc], edi
push dword [esp + 0x20]
push esi
push dword [esp + 0x20]
call fcn.00581600
add esp, 0xc
mov ecx, 1
test eax, eax
cmovne edi, ecx
pop ebx
push ebp
call fcn.00508fe0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x5a2600
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa8
call fcn.00450fe0
mov eax, dword [0x67a374]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xac]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xbc]
xor ebp, ebp
push edi
mov edi, dword [esp + 0xc4]
mov dword [esp + 0x30], eax
mov esi, dword [esi + 4]
mov dword [esp + 0x1c], esi
sub esi, edi
mov dword [esp + 0x10], esi
cmp dword [esp + 0xc8], edi
jae 0x5a2664
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.004fe1d0
add esp, 0xc
cmp edi, 0x40
jbe 0x5a2680
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.004fe1d0
add esp, 0xc
mov ecx, dword [esp + 0xc8]
lea eax, [esp + 0x34]
neg eax
lea ebx, [esp + 0x34]
and eax, 0x3f
add ebx, eax
lea eax, [edi + 0x100]
mov dword [esp + 0x20], ebx
cmp ecx, eax
jbe 0x5a26ae
mov ebp, ecx
sub ebp, edi
sub ebp, 0x100
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, esi
div edi
push edi
mov esi, edx
push 0
push ebx
mov dword [esp + 0x38], esi
call fcn.005c7440
add esp, 0xc
mov dword [esp + 0x18], 0
cmp ebp, dword [esp + 0xc8]
jae 0x5a278b
mov ecx, dword [esp + 0x1c]
mov esi, ebx
mov edx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x1f
sub ebp, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc0]
shr edx, 0x1f
mov dword [esp + 0x10], edx
mov eax, dword [eax + 0xc]
add eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
lea ebx, [ecx + ebp]
shr ebx, 0x1f
lea ecx, [edi + ebp]
shr ecx, 0x1f
xor cl, dl
xor dl, bl
or cl, dl
mov edx, ebp
xor cl, bl
shr edx, 0x1f
xor dl, byte [esp + 0x14]
dec cl
mov dword [esp + 0x28], ecx
mov cl, byte [eax + ebp]
mov al, bl
xor al, byte [esp + 0x14]
inc ebp
or dl, al
xor dl, bl
mov ebx, dword [esp + 0x18]
neg dl
and dl, cl
and dl, byte [esp + 0x28]
or byte [ebx + esi], dl
inc ebx
mov edx, dword [esp + 0x10]
mov ecx, ebx
sub ecx, edi
mov eax, ebx
xor ecx, edi
xor eax, edi
or ecx, eax
xor ecx, ebx
shr ecx, 0x1f
neg ecx
and ebx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
lea eax, [ecx + ebp]
cmp eax, dword [esp + 0xc8]
jb 0x5a2711
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
xor edx, edx
test edi, edi
je 0x5a27bf
mov ebp, dword [esp + 0x30]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + ebx]
movzx eax, byte [esi + ebx]
inc esi
mov byte [edx + ebp], al
mov ecx, esi
sub ecx, edi
mov eax, esi
xor ecx, edi
xor eax, edi
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, edi
jb 0x5a2795
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004503a3
add esp, 0xa8
ret
Function at 0x5a32e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.00450fe0
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x14]
inc ebx
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
mov eax, dword [esi + 8]
mov ecx, dword [edi + 4]
mov eax, dword [eax + 0x64]
test byte [eax + 0x38], 1
je 0x5a33ac
mov edx, dword [esp + 0x20]
lea eax, [ebx + edx]
cmp eax, ecx
ja 0x5a33b4
add dword [edi + 0xc], edx
add dword [edi + 0x10], edx
sub ecx, edx
mov dword [edi + 4], ecx
test dword [esi + 0x100], 0x200
mov eax, dword [edi + 0xc]
movzx ebx, byte [eax + ecx - 1]
je 0x5a337a
cmp dword [esi + 0x88], 0
jne 0x5a337a
mov eax, dword [esi + 0x58]
push 8
add eax, 8
push 0x64c894
push eax
call fcn.004fdf00
add esp, 0xc
test eax, eax
jne 0x5a336d
test bl, 1
jne 0x5a336d
mov eax, dword [esi + 0x58]
or dword [eax], 8
mov eax, dword [esi + 0x58]
test byte [eax], 8
je 0x5a337a
test ebx, ebx
je 0x5a337a
dec ebx
mov eax, dword [esi + 0x80]
push ebp
push dword [eax]
call fcn.00501f50
mov ebp, dword [edi + 4]
add esp, 4
mov dword [esp + 0x14], ebp
and eax, 0x200000
je 0x5a33bd
sub ebp, ebx
mov eax, 1
dec ebp
mov dword [edi + 4], ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
cmp ebx, ecx
jbe 0x5a332b
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x28]
mov edx, ebp
add ecx, ebx
mov eax, ebp
sub edx, ecx
xor eax, ecx
xor edx, ecx
mov ecx, 0xff
or edx, eax
lea eax, [ebp - 1]
xor edx, ebp
shr edx, 0x1f
dec edx
cmp eax, ecx
mov dword [esp + 0x1c], edx
cmovb ecx, eax
xor esi, esi
test ecx, ecx
je 0x5a3443
mov eax, ebx
shr eax, 0x1f
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0xc]
lea edi, [ebp - 1]
add edi, eax
mov ebp, ecx
nop
mov al, byte [esp + 0x28]
lea edi, [edi - 1]
mov edx, ebx
mov ecx, esi
sub edx, esi
shr ecx, 0x1f
shr edx, 0x1f
xor al, cl
xor dl, cl
inc esi
or dl, al
movzx eax, byte [edi + 1]
xor dl, byte [esp + 0x28]
xor eax, ebx
dec dl
movzx ecx, dl
mov edx, dword [esp + 0x1c]
and ecx, eax
not ecx
and edx, ecx
mov dword [esp + 0x1c], edx
cmp esi, ebp
jb 0x5a3400
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
not edx
lea eax, [ebx + 1]
movzx ecx, dl
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub ebp, eax
shl eax, 8
or dword [edi], eax
mov dword [edi + 4], ebp
mov dword [esp + 0x28], ecx
not ecx
pop ebp
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
and ecx, 1
pop edi
pop esi
or eax, ecx
pop ebx
add esp, 8
ret
Function at 0x5b204a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x5e0a71
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005e08e7