joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4602fc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea esi, [eax + 2]
mov dword [ebp - 4], eax
sub dword [ebp - 4], esi
lea edi, [ebp + 0xa]
mov ecx, 0xbaadf00d
sub edi, esi
mov dword [ebp - 8], 2
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
movzx ebx, byte [esi]
mov dl, al
xor eax, ecx
xor dl, bl
push 5
push eax
mov byte [edi + esi], dl
call fcn.005fcf53
add eax, ebx
pop ecx
inc esi
dec dword [ebp - 8]
pop ecx
mov ecx, eax
jne 0x460321
cmp ecx, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
je 0x460365
push 0x63d9e8
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 5
call fcn.005fcb0b
mov ax, word [ebp + 0xa]
leave
ret
Function at 0x463627
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
mov edi, ecx
mov ecx, dword [0x67f178]
push eax
call fcn.0042a1cb
mov esi, dword [eax + 4]
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
je 0x463654
push ebx
lea ecx, [ebp - 0x10]
call fcn.004fd6ba
mov eax, dword [edi + 0x10]
cmp eax, 2
je 0x463665
cmp eax, 4
jne 0x4636fa
push dword [edi + 0x14]
mov ecx, esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0042e2dd
cmp dword [ebp - 0xc], ebx
mov esi, dword [eax + 4]
je 0x463688
push ebx
lea ecx, [ebp - 0x10]
call fcn.004d7506
mov dword [ebp - 0xc], ebx
cmp esi, ebx
je 0x4636fa
mov eax, dword [esi + 0xc]
mov ecx, dword [edi + 0x10]
cmp ecx, 2
mov dword [ebp - 4], eax
mov esi, 0x2710
jne 0x4636c9
cdq
mov ebx, esi
idiv ebx
cmp eax, 0xc8
je 0x4636c7
cmp eax, 0xc9
je 0x4636c7
cmp eax, 0xca
je 0x4636c7
cmp eax, 0xcd
je 0x4636c7
cmp eax, 0xd4
jne 0x4636fa
xor ebx, ebx
cmp ecx, 4
jne 0x463703
mov eax, dword [ebp - 4]
cdq
idiv esi
sub eax, 0x194
je 0x463703
dec eax
jne 0x4636f6
mov eax, dword [ebp - 4]
cdq
mov ecx, 0x3e8
idiv ecx
sub eax, 0xfd2
je 0x4636fa
dec eax
je 0x4636fa
dec eax
je 0x4636fa
dec eax
je 0x4636fa
dec eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [ebp + 0x10], ebx
mov ecx, dword [0x67f93c]
mov dword [ebp - 0xc], ecx
je 0x463719
cmp dword [ecx + 0x6dc], ebx
je 0x4636fa
mov eax, dword [0x67f968]
cmp eax, ebx
mov dword [ebp - 8], ebx
je 0x463728
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
mov ebx, dword [0x67f06c]
push dword [ebp + 8]
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x463742
call fcn.0056dcdf
jmp 0x46374a
mov ecx, dword [ebp - 8]
call fcn.005380c8
mov ecx, dword [edi + 0x10]
cmp ecx, 4
jne 0x463770
cmp eax, 0x42
je 0x46376b
cmp eax, 0x43
je 0x46376b
cmp eax, 0x44
je 0x46376b
cmp eax, 0x57
je 0x46376b
cmp eax, 0x58
jne 0x4636fa
cmp ecx, 4
je 0x463795
cmp eax, 0x42
je 0x4636fa
cmp eax, 0x43
je 0x4636fa
cmp eax, 0x44
je 0x4636fa
cmp eax, 0x57
je 0x4636fa
cmp eax, 0x58
je 0x4636fa
cmp eax, 0xffffffff
je 0x4636fa
cmp esi, 0x36
jne 0x4637a8
push 0x2a
pop ecx
jmp 0x4637aa
mov ecx, esi
mov edx, dword [ebx + ecx*8 + 0x104]
cmp edx, 2
lea ecx, [ebx + ecx*8 + 0x104]
je 0x4637c2
cmp edx, 3
jne 0x4637cd
mov edx, dword [ebp - 4]
cmp dword [ecx + 4], edx
jne 0x4637cd
and dword [ecx], 0
inc esi
cmp esi, 0x59
jl 0x46379e
cmp dword [ebp + 0x10], 0
je 0x4637e5
push eax
mov ecx, ebx
call fcn.004407a4
mov esi, eax
jmp 0x4637f4
cmp eax, 0x36
jne 0x4637ed
push 0x2a
pop eax
lea esi, [ebx + eax*8 + 0x104]
cmp dword [ebp + 0x10], 0
jne 0x463812
mov eax, dword [esi]
cmp eax, 4
je 0x463806
cmp eax, 5
jne 0x463812
push dword [esi + 4]
mov ecx, dword [ebp - 8]
push eax
call fcn.0053a23a
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp dword [edi + 0x10], 2
push 0
setne al
inc eax
inc eax
mov dword [esi], eax
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
call fcn.005ce496
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x46383d
push 0
call fcn.005ce496
push 1
pop eax
jmp 0x4636fc
Function at 0x463845
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 8]
mov esi, ecx
mov ecx, dword [0x67f178]
push eax
call fcn.0042a1cb
mov edi, dword [eax + 4]
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x463871
push ebx
lea ecx, [ebp - 8]
call fcn.004fd6ba
mov eax, dword [esi + 0x10]
cmp eax, 2
je 0x463882
cmp eax, 4
jne 0x463917
push dword [esi + 0x14]
mov ecx, edi
push eax
lea eax, [ebp - 8]
push eax
call fcn.0042e2dd
cmp dword [ebp - 4], ebx
mov edi, dword [eax + 4]
je 0x4638a5
push ebx
lea ecx, [ebp - 8]
call fcn.004d7506
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x463917
mov esi, dword [esi + 0x10]
cmp esi, 2
mov edi, dword [edi + 0xc]
mov dword [ebp - 4], edi
mov ecx, 0x2710
jne 0x4638e8
mov eax, edi
cdq
mov ebx, ecx
idiv ebx
cmp eax, 0xc8
je 0x4638e6
cmp eax, 0xc9
je 0x4638e6
cmp eax, 0xca
je 0x4638e6
cmp eax, 0xcd
je 0x4638e6
cmp eax, 0xd4
jne 0x463917
xor ebx, ebx
cmp esi, 4
jne 0x46391b
mov eax, edi
cdq
idiv ecx
sub eax, 0x194
je 0x46391b
dec eax
jne 0x463913
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
sub eax, 0xfd2
je 0x463917
dec eax
je 0x463917
dec eax
je 0x463917
dec eax
je 0x463917
dec eax
xor eax, eax
jmp 0x463992
mov esi, dword [ebp + 8]
mov edi, dword [0x67f06c]
neg esi
sbb esi, esi
and esi, 0xffffffaf
add esi, 0x59
test esi, esi
jle 0x463971
cmp dword [ebp + 8], 0
je 0x463942
push ebx
mov ecx, edi
call fcn.004407a4
jmp 0x463955
cmp ebx, 0x36
jne 0x46394c
push 0x2a
pop eax
jmp 0x46394e
mov eax, ebx
lea eax, [edi + eax*8 + 0x104]
mov ecx, dword [eax]
cmp ecx, 2
je 0x463961
cmp ecx, 3
jne 0x46396c
mov ecx, dword [ebp - 4]
cmp dword [eax + 4], ecx
jne 0x46396c
and dword [eax], 0
inc ebx
cmp ebx, esi
jl 0x463932
mov ecx, dword [0x67f93c]
push 0
call fcn.005ce496
mov ecx, dword [0x67f968]
test ecx, ecx
je 0x46398f
push 0
call fcn.005ce496
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x47813a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ecx + 8]
push ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
push esi
lea ecx, [ebp + 8]
sub dword [ebp - 4], ecx
lea eax, [ebp + 8]
sub dword [ebp - 8], eax
push edi
mov dword [ebp - 0xc], 0xbaadf00d
lea esi, [ebp + 8]
mov dword [ebp - 0x10], 2
mov ecx, 0x67faf0
call fcn.0040dd28
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [eax + esi], edi
mov eax, edi
xor eax, dword [esi]
push 5
push eax
call fcn.005fcf53
xor edi, dword [ebp - 0xc]
mov ebx, eax
mov eax, dword [ebp - 8]
push 5
push edi
mov dword [eax + esi], ebx
call fcn.005fcf53
add eax, ebx
add esp, 0x10
add esi, 4
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
jne 0x478169
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4c6cd7
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x61afce
call fcn.005fcaec
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 0xc
push 0
push esi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x6352e4
call fcn.005fcf80
add esp, 0xc
and dword [ebp - 4], 0
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.004ce3a6
lea ebx, [esi + 0x18]
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.004ce3a6
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.004ce3a6
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.004ce3a6
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 4
call fcn.004ce3a6
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 5
call fcn.004ce3a6
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 6
call fcn.004ce3a6
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 7
call fcn.004ce3a6
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 8
call fcn.004ce3a6
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 9
call fcn.004ce3a6
fld qword [0x637750]
push ecx
push ecx
mov ecx, edi
fstp qword [esp]
mov byte [ebp - 4], 0xa
mov dword [esi], 0x637748
call fcn.004ce593
fld1
push ecx
push ecx
mov ecx, ebx
fstp qword [esp]
call fcn.004ce593
fld1
push ecx
push ecx
lea ecx, [esi + 0x24]
fstp qword [esp]
call fcn.004ce593
fld1
push ecx
push ecx
lea ecx, [esi + 0x30]
fstp qword [esp]
call fcn.004ce593
fld qword [0x637740]
push ecx
push ecx
lea ecx, [esi + 0x3c]
fstp qword [esp]
call fcn.004ce593
fld1
push ecx
push ecx
lea ecx, [esi + 0x48]
fstp qword [esp]
call fcn.004ce593
fld1
push ecx
push ecx
lea ecx, [esi + 0x54]
fstp qword [esp]
call fcn.004ce593
fld1
push ecx
push ecx
lea ecx, [esi + 0x60]
fstp qword [esp]
call fcn.004ce593
fldz
push ecx
push ecx
lea ecx, [esi + 0x6c]
fstp qword [esp]
call fcn.004ce593
fldz
push ecx
push ecx
lea ecx, [esi + 0x78]
fstp qword [esp]
call fcn.004ce593
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4d9a06
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + 8]
mov dword [ebp + 8], eax
sub dword [ebp + 8], edi
lea ebx, [ebp - 0x14]
mov dword [ebp - 4], 0xbaadf00d
sub ebx, edi
mov dword [ebp - 8], 2
mov eax, dword [ebp + 8]
mov esi, dword [eax + edi]
mov eax, dword [edi]
push 5
push eax
mov dword [ebp - 0xc], eax
call fcn.005fd048
xor eax, esi
xor esi, dword [ebp - 4]
push 5
push esi
mov dword [ebx + edi], eax
call fcn.005fcf53
add eax, dword [ebp - 0xc]
add esp, 0x10
add edi, 4
dec dword [ebp - 8]
mov dword [ebp - 4], eax
jne 0x4d9a2e
cmp eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
je 0x4d9a7f
push 0x63d9e8
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 5
call fcn.005fcb0b
fld qword [ebp - 0x14]
leave
ret

Function at 0x4daccc
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x61c2bc
call fcn.005fcaec
push ecx
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 4]
mov eax, ecx
neg eax
lea edx, [ecx - 4]
sbb eax, eax
and eax, edx
push edi
mov dword [ebp - 0x10], esi
mov dword [0x67fa88], eax
push 0xffffffffffffffff
xor ebx, ebx
mov edi, 0x67f140
push edi
mov dword [ebp - 4], ebx
mov dword [ecx], ebx
call fcn.00411754
push 0xffffffffffffffff
lea ecx, [esi + 8]
push edi
mov byte [ebp - 4], 1
mov dword [ecx], ebx
call fcn.00411754
mov dword [esi + 0xc], ebx
push 0x7f89
push ebx
mov byte [ebp - 4], 3
mov dword [esi + 0x30], ebx
mov dword [esi], 0x63786c
call dword [fcn.00680130]
push 0x7f00
push ebx
mov dword [esi + 0x34], eax
call dword [fcn.00680130]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x38], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x510f46
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, 0x62129c
call fcn.005fcaec
push ecx
push ebx
push ebp
push esi
push edi
mov ebp, fcn.004b04ce
push ebp
mov ebx, 0x5e1ba7
push ebx
mov esi, ecx
push 0x11
push 8
lea eax, [esi + 0xbe]
push eax
mov dword [esp + 0x24], esi
call fcn.005fda2e
push ebp
push ebx
push 0x11
push 8
lea eax, [esi + 0x146]
xor edi, edi
push eax
mov dword [esp + 0x30], edi
call fcn.005fda2e
push 0x5111de
push fcn.00519d95
push 6
push 4
lea eax, [esi + 0x1ce]
push eax
mov byte [esp + 0x30], 1
call fcn.005fda2e
mov dword [esi + 0x1ea], edi
mov dword [esi + 0x1f2], edi
push 0x1f
pop ebx
mov dword [esi + 0x1ee], ebx
mov dword [esi + 0x1e6], 0x637cc4
push 0x64
pop edx
mov dword [esi + 0x1f6], edx
lea eax, [esi + 0x1e6]
push 0x18
pop ecx
mov dword [eax + 0x14], ecx
mov dword [esi + 0x202], edi
mov dword [esi + 0x206], ebx
mov dword [esi + 0x20a], edi
mov dword [esi + 0x212], ecx
mov dword [esi + 0x1fe], 0x6353c8
mov dword [esi + 0x20e], edx
lea eax, [esi + 0x1fe]
lea eax, [esi + 0x216]
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edi
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax], 0x637cc0
mov dword [eax + 0x10], edx
lea eax, [esi + 0x232]
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
pop edi
mov dword [eax], 0x637cbc
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x5180ca
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, edx
shr eax, 4
mov esi, ebx
mov ecx, 0xf0f0f0f
and eax, ecx
and esi, ecx
xor eax, esi
xor ebx, eax
shl eax, 4
xor edx, eax
mov eax, ebx
shr eax, 4
mov esi, edx
mov ecx, 0x1010101
and esi, ecx
and eax, ecx
xor eax, esi
xor edx, eax
shl eax, 4
xor ebx, eax
mov ecx, ebx
shr ecx, 9
mov eax, 0x550055
and ecx, eax
mov esi, ebx
and esi, eax
xor ecx, esi
mov esi, ecx
shl esi, 9
xor esi, ecx
xor ebx, esi
mov ecx, edx
shr ecx, 9
and ecx, eax
mov esi, edx
and esi, eax
xor ecx, esi
mov eax, ecx
shl eax, 9
xor eax, ecx
xor edx, eax
mov eax, 0x3333
mov ecx, ebx
shr ecx, 0x12
and ecx, eax
mov esi, ebx
and esi, eax
xor ecx, esi
mov esi, ecx
shl esi, 0x12
xor esi, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, eax
xor ebx, esi
mov esi, edx
and esi, eax
xor ecx, esi
mov eax, ecx
shl eax, 0x12
xor eax, ecx
xor edx, eax
xor eax, eax
mov dword [ebp + 0xc], edx
mov al, byte [ebp + 0xe]
mov ecx, edx
and ecx, 0xff
mov dword [ebp - 4], 0x10
xor eax, ecx
mov ecx, eax
shl ecx, 0x10
xor ecx, eax
mov eax, dword [ebp + 0x10]
xor edx, ecx
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], 1
mov eax, 0xfffffff
and ebx, eax
and edx, eax
test word [ebp + 0x10], 0x7efc
mov eax, ebx
je 0x5181c1
shl eax, 0x1a
shr ebx, 2
or ebx, eax
mov eax, edx
shl eax, 0x1a
shr edx, 2
jmp 0x5181cf
shl eax, 0x1b
shr ebx, 1
or ebx, eax
mov eax, edx
shl eax, 0x1b
shr edx, 1
or edx, eax
xor ecx, ecx
mov eax, ebx
shr eax, 0x10
movzx esi, al
mov cl, bl
mov eax, ebx
shr eax, 8
movzx eax, al
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], ecx
mov edi, ecx
and edi, 0xc0
mov ecx, eax
shr ecx, 5
or edi, ecx
shr edi, 2
mov ecx, ebx
shr ecx, 0x18
and ecx, 0xe
or edi, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], edi
mov edi, esi
and esi, 0x40
shr edi, 5
and edi, 4
or edi, esi
shr edi, 1
shr eax, 1
and ecx, 0x1d
or edi, ecx
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x638148]
or ecx, dword [edi*4 + 0x638048]
and eax, 0x3f
or ecx, dword [eax*4 + 0x637f48]
mov eax, dword [ebp - 0x10]
and eax, 0x3f
or ecx, dword [eax*4 + 0x637e48]
mov eax, edx
shr eax, 0x10
movzx esi, al
mov dword [ebp - 0xc], esi
and esi, 0xc0
movzx edi, dl
mov dword [ebp - 0x10], edi
shr edi, 4
and edi, 8
or edi, esi
mov eax, edx
shr eax, 8
movzx eax, al
shr edi, 2
mov esi, edx
shr esi, 0x18
and esi, 0xd
or edi, esi
mov esi, eax
shr esi, 6
and esi, 2
and eax, 0x3d
or esi, eax
mov eax, dword [edi*4 + 0x638548]
or eax, dword [esi*4 + 0x638348]
mov esi, dword [ebp - 0x10]
and esi, 0x3f
or eax, dword [esi*4 + 0x638248]
mov esi, dword [ebp - 0xc]
and esi, 0x3f
or eax, dword [esi*4 + 0x638448]
mov esi, ecx
mov edi, eax
and esi, 0xffff
shl edi, 0x10
or edi, esi
mov esi, dword [ebp + 0xc]
mov dword [esi], edi
add esi, 4
and eax, 0xffff0000
shr ecx, 0x10
shl dword [ebp + 0x10], 1
or eax, ecx
mov dword [esi], eax
add esi, 4
dec dword [ebp - 4]
mov dword [ebp + 0xc], esi
jne 0x51819c
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x518343
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0xb0]
test ecx, ecx
lea edx, [edi + 0xa8]
lea esi, [edi + 0xa0]
je 0x5183d7
push 8
pop ebx
sub ebx, ecx
cmp ebx, dword [ebp + 0x10]
jbe 0x518371
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jbe 0x5183a5
lea eax, [ecx + esi]
sub edx, esi
add ecx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
mov cl, byte [ecx]
inc dword [ebp + 0xc]
mov byte [edx + eax], cl
mov bl, byte [eax]
xor bl, cl
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
dec dword [ebp + 0x10]
inc eax
dec dword [ebp - 4]
mov byte [ecx], bl
jne 0x518382
mov ecx, dword [ebp - 8]
cmp ecx, 8
jne 0x5183c7
mov ecx, dword [edi + 0xa8]
and dword [edi + 0xb0], 0
lea eax, [edi + 0xa8]
mov eax, dword [eax + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
jmp 0x5183cd
mov dword [edi + 0xb0], ecx
cmp dword [ebp + 0x10], 0
je 0x5184e2
mov ecx, dword [edi + 0xb4]
mov ebx, dword [esi]
mov eax, dword [edi + 0xb8]
mov dword [ebp - 4], ecx
xor edx, edx
xor ecx, ecx
cmp dword [ebp + 0x10], edx
mov dword [ebp - 0x20], ebx
mov ebx, dword [esi + 4]
mov dword [ebp - 8], eax
je 0x51848c
jmp 0x518403
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x518410
dec dword [ebp - 4]
jne 0x518427
mov dword [ebp - 4], eax
lea eax, [edi + 0x20]
push eax
push ebx
push dword [ebp - 0x20]
mov ecx, edi
call fcn.005184e9
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x51844f
mov eax, dword [ebp - 0x20]
and dword [ebp - 0x14], 0
push 7
mov dword [ebp - 0x18], ebx
shr dword [ebp - 0x18], 0x19
pop ecx
mov edx, ebx
call fcn.005fe830
mov ecx, dword [ebp - 0x18]
or ecx, eax
mov eax, dword [ebp - 0x14]
or eax, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], 8
jb 0x518486
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
add eax, 8
mov dword [ebp - 0x20], ecx
xor ecx, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov edx, ebx
xor edx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
add eax, 8
sub dword [ebp + 0x10], 8
mov dword [ebp + 8], eax
jne 0x518400
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov dword [edi + 0xb4], eax
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x5184a6
mov eax, dword [ebp - 0x20]
mov dword [esi], eax
mov dword [esi + 4], ebx
jmp 0x5184e2
mov dword [esi], ecx
xor ecx, ecx
test eax, eax
mov dword [esi + 4], edx
jbe 0x5184dc
lea ecx, [edi + 0xa8]
sub ecx, esi
mov edx, eax
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
inc dword [ebp + 0xc]
mov byte [esi + ecx], al
mov bl, byte [esi]
xor bl, al
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
inc esi
dec edx
mov byte [eax], bl
jne 0x5184be
mov ecx, dword [ebp + 0x10]
mov dword [edi + 0xb0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x5184e9
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 4
push dword [esp + 0x1c]
call fcn.005fcf43
mov edi, dword [esp + 0x1c]
mov ecx, edi
xor ecx, eax
and ecx, 0xf0f0f0f
xor edi, ecx
xor ecx, eax
push 0xc
push ecx
call fcn.005fcf43
mov ecx, edi
xor ecx, eax
and ecx, 0xffff0000
xor edi, ecx
xor ecx, eax
push 0x12
push ecx
call fcn.005fcf43
mov ecx, edi
xor ecx, eax
and ecx, 0x33333333
xor edi, ecx
xor ecx, eax
push 0x16
push ecx
call fcn.005fcf43
mov ecx, edi
xor ecx, eax
and ecx, 0xff00ff00
xor edi, ecx
xor ecx, eax
push 9
push ecx
call fcn.005fcf43
mov esi, edi
xor esi, eax
and esi, 0x55555555
mov ecx, esi
xor ecx, eax
push 2
push ecx
call fcn.005fd038
push 1
xor esi, edi
push esi
mov dword [esp + 0x54], eax
call fcn.005fd038
add esp, 0x38
mov esi, eax
mov dword [esp + 0x14], 8
mov edi, 0x3f3f3f3f
mov ebx, dword [ebp]
push 4
xor ebx, esi
push esi
and ebx, edi
add ebp, 4
call fcn.005fcf43
xor eax, dword [ebp]
add ebp, 4
and eax, edi
mov edx, eax
shr edx, 0x10
movzx edx, dl
mov ecx, eax
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x638d48]
or ecx, dword [edx*4 + 0x638b48]
mov edx, eax
shr edx, 8
movzx edx, dl
or ecx, dword [edx*4 + 0x638948]
mov edx, ebx
shr edx, 0x18
or ecx, dword [edx*4 + 0x638c48]
mov edx, ebx
shr edx, 0x10
movzx edx, dl
or ecx, dword [edx*4 + 0x638a48]
mov edx, ebx
shr edx, 8
movzx edx, dl
or ecx, dword [edx*4 + 0x638848]
movzx eax, al
or ecx, dword [eax*4 + 0x638748]
xor eax, eax
mov al, bl
mov ebx, dword [ebp]
push 4
add ebp, 4
or ecx, dword [eax*4 + 0x638648]
xor dword [esp + 0x28], ecx
xor ebx, dword [esp + 0x28]
push dword [esp + 0x28]
and ebx, edi
call fcn.005fcf43
xor eax, dword [ebp]
add esp, 0x10
and eax, edi
mov edx, eax
shr edx, 0x10
movzx edx, dl
mov ecx, eax
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x638d48]
or ecx, dword [edx*4 + 0x638b48]
mov edx, eax
shr edx, 8
movzx edx, dl
or ecx, dword [edx*4 + 0x638948]
mov edx, ebx
shr edx, 0x18
or ecx, dword [edx*4 + 0x638c48]
mov edx, ebx
shr edx, 0x10
movzx edx, dl
or ecx, dword [edx*4 + 0x638a48]
mov edx, ebx
shr edx, 8
movzx edx, dl
or ecx, dword [edx*4 + 0x638848]
movzx eax, al
or ecx, dword [eax*4 + 0x638748]
xor eax, eax
mov al, bl
add ebp, 4
or ecx, dword [eax*4 + 0x638648]
xor esi, ecx
dec dword [esp + 0x14]
jne 0x51858e
push 1
push dword [esp + 0x20]
call fcn.005fcf43
push 2
push esi
mov edi, eax
call fcn.005fcf43
mov ecx, eax
xor ecx, edi
and ecx, 0x55555555
xor edi, ecx
xor ecx, eax
push 9
push ecx
call fcn.005fd038
mov ecx, eax
xor ecx, edi
and ecx, 0xff00ff00
xor edi, ecx
xor ecx, eax
push 0x16
push ecx
call fcn.005fd038
mov ecx, eax
xor ecx, edi
and ecx, 0x33333333
xor edi, ecx
xor ecx, eax
push 0x12
push ecx
call fcn.005fd038
mov ecx, eax
xor ecx, edi
and ecx, 0xffff0000
xor edi, ecx
xor ecx, eax
push 0xc
push ecx
call fcn.005fd038
mov esi, eax
xor esi, edi
and esi, 0xf0f0f0f
mov ecx, esi
xor ecx, eax
push 4
push ecx
call fcn.005fd038
add esp, 0x38
xor esi, edi
pop edi
xor ecx, ecx
mov edx, eax
or ecx, esi
pop esi
xor eax, eax
pop ebp
or edx, eax
mov eax, ecx
pop ebx
ret 0xc
Function at 0x519bf6
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x62146f
call fcn.005fcaec
sub esp, 0x30
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
cmp esi, dword [ebx + 4]
jg 0x519d85
push edi
push 0x432323
push fcn.00519d95
push 2
push 4
lea eax, [ebp - 0x3c]
push eax
call fcn.005fda2e
mov eax, dword [ebx]
mov edi, dword [eax + esi*4]
mov esi, dword [eax + edi]
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
lea eax, [ebp + 0xb]
push eax
lea eax, [esi + 1]
push eax
call fcn.00519d9b
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x3c]
call fcn.00519d9b
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.00519d9b
mov eax, dword [ebx]
lea eax, [eax + esi*2 + 4]
mov eax, dword [eax + edi]
mov dword [ebp - 0x34], eax
xor eax, eax
test esi, esi
jle 0x519c96
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x3c]
add ecx, edi
mov cl, byte [ecx + eax + 4]
mov byte [eax + edx], cl
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x38]
add ecx, esi
add ecx, edi
mov cl, byte [ecx + eax + 4]
mov byte [eax + edx], cl
inc eax
cmp eax, esi
jl 0x519c73
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov ecx, esi
shr ecx, 2
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x10], 0xbaadf00d
mov dword [ebp - 0x24], ecx
je 0x519d0a
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
push 5
push ebx
call fcn.005fd048
mov ecx, dword [ebp - 0x1c]
xor eax, edi
xor edi, dword [ebp - 0x10]
push 5
push edi
mov dword [ecx], eax
call fcn.005fcf53
add dword [ebp - 0x14], 4
add dword [ebp - 0x18], 4
add dword [ebp - 0x1c], 4
add eax, ebx
add esp, 0x10
dec dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
jne 0x519cc7
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edi, ecx
shl edi, 2
mov ecx, esi
sub ecx, edi
je 0x519d53
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
add edi, edx
sub ebx, edx
sub dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
movzx ecx, byte [edi]
movzx eax, byte [ebx + edi]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], ecx
xor cl, al
xor eax, dword [ebp - 0x10]
push 5
push eax
mov byte [edx + edi], cl
call fcn.005fcf53
add eax, dword [ebp - 0x30]
pop ecx
inc edi
dec dword [ebp - 0x20]
pop ecx
mov dword [ebp - 0x10], eax
jne 0x519d28
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x10], eax
pop edi
jne 0x519d67
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
and byte [eax + esi], 0
jmp 0x519d6f
push 0
call dword [0x680060]
or dword [ebp - 4], 0xffffffff
push 0x432323
push 2
push 4
lea eax, [ebp - 0x3c]
push eax
call fcn.005fd93a
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8