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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, edx
shr eax, 4
xor eax, ecx
and eax, 0xf0f0f0f
xor ecx, eax
shl eax, 4
xor edx, eax
mov eax, edx
shr eax, 0x10
xor eax, ecx
and eax, 0xffff
xor ecx, eax
shl eax, 0x10
xor edx, eax
mov eax, ecx
shr eax, 2
xor eax, edx
and eax, 0x33333333
xor edx, eax
shl eax, 2
xor ecx, eax
mov eax, ecx
shr eax, 8
xor eax, edx
and eax, 0xff00ff
xor edx, eax
shl eax, 8
xor eax, ecx
rol eax, 1
mov ecx, eax
push ebx
xor ecx, edx
and ecx, 0xaaaaaaaa
push esi
xor eax, ecx
push edi
xor ecx, edx
rol ecx, 1
push 0x3f
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 8
pop edi
mov ecx, dword [ebp + 0xc]
mov esi, eax
ror esi, 4
xor esi, dword [ecx]
add ecx, 4
mov edx, esi
shr edx, 0x18
mov ebx, esi
shr ebx, 0x10
and ebx, edi
and edx, edi
mov edx, dword [edx*4 + 0x101aa158]
or edx, dword [ebx*4 + 0x101aa358]
mov ebx, esi
shr ebx, 8
and ebx, edi
or edx, dword [ebx*4 + 0x101aa558]
and esi, edi
or edx, dword [esi*4 + 0x101aa758]
mov esi, dword [ecx]
add ecx, 4
mov dword [ebp + 0xc], ecx
xor esi, eax
mov ecx, esi
shr ecx, 0x18
and ecx, edi
mov ecx, dword [ecx*4 + 0x101aa258]
mov ebx, esi
shr ebx, 0x10
and ebx, edi
or ecx, dword [ebx*4 + 0x101aa458]
mov ebx, esi
shr ebx, 8
and ebx, edi
or ecx, dword [ebx*4 + 0x101aa658]
and esi, edi
or ecx, dword [esi*4 + 0x101aa858]
or ecx, edx
xor dword [ebp - 4], ecx
mov esi, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
ror esi, 4
xor esi, dword [ecx]
add ecx, 4
mov edx, esi
shr edx, 0x18
mov ebx, esi
shr ebx, 0x10
and ebx, edi
and edx, edi
mov edx, dword [edx*4 + 0x101aa158]
or edx, dword [ebx*4 + 0x101aa358]
mov ebx, esi
shr ebx, 8
and ebx, edi
or edx, dword [ebx*4 + 0x101aa558]
and esi, edi
or edx, dword [esi*4 + 0x101aa758]
mov esi, dword [ecx]
xor esi, dword [ebp - 4]
add ecx, 4
mov dword [ebp + 0xc], ecx
mov ecx, esi
shr ecx, 0x18
and ecx, edi
mov ecx, dword [ecx*4 + 0x101aa258]
mov ebx, esi
shr ebx, 0x10
and ebx, edi
or ecx, dword [ebx*4 + 0x101aa458]
mov ebx, esi
shr ebx, 8
and ebx, edi
or ecx, dword [ebx*4 + 0x101aa658]
and esi, edi
or ecx, dword [esi*4 + 0x101aa858]
or ecx, edx
xor eax, ecx
dec dword [ebp - 8]
jne 0x4548f1
ror eax, 1
mov edx, eax
xor edx, dword [ebp - 4]
pop edi
and edx, 0xaaaaaaaa
xor eax, edx
xor edx, dword [ebp - 4]
ror edx, 1
mov ecx, edx
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor edx, ecx
mov ecx, edx
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
shl ecx, 2
xor edx, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, edx
and ecx, 0xffff
xor edx, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, eax
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
mov esi, ecx
shl esi, 4
xor esi, eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor ecx, edx
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 8
Function at 0x454a9f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
mov dword [esp + 0xc], eax
mov ebx, ecx
mov eax, dword [ebx]
push esi
mov esi, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
push edi
lea edi, [eax*8 + 8]
lea eax, [edi + 1]
cmp eax, dword [esi + 8]
jbe 0x454b20
push eax
call fcn.0050dd84
test eax, eax
pop ecx
mov dword [esp + 0x10], eax
jne 0x454af0
push dword [esi]
call fcn.0050dbae
and dword [esi], 0
and dword [esi + 8], 0
pop ecx
jmp 0x454b20
mov eax, dword [esi]
test eax, eax
je 0x454b14
push dword [esi + 8]
push eax
push dword [esp + 0x18]
call fcn.0050dd90
push dword [esi]
call fcn.0050dbae
and dword [esi], 0
add esp, 0x10
and dword [esi + 8], 0
mov eax, dword [esp + 0x10]
mov dword [esi], eax
lea eax, [edi + 1]
mov dword [esi + 8], eax
cmp dword [esi + 8], 0
ja 0x454b2a
xor eax, eax
jmp 0x454b88
push dword [ebx]
mov esi, dword [esi]
push dword [esp + 0x18]
push esi
call fcn.0050dd90
mov ecx, dword [ebx]
add esp, 0xc
push esi
call fcn.00454cd6
mov eax, edi
cdq
and edx, 7
add eax, edx
sar eax, 3
test eax, eax
mov dword [ebx], edi
mov byte [edi + esi], 0
mov ecx, 0x101419c8
jle 0x454b86
mov edi, esi
mov ebx, eax
xor eax, eax
mov dl, byte [eax + ecx]
xor byte [edi + eax], dl
inc eax
cmp eax, 8
jl 0x454b63
push dword [ebp + 8]
lea eax, [esp + 0x1c]
push eax
mov eax, edi
call fcn.004545c1
mov ecx, edi
add edi, 8
dec ebx
jne 0x454b61
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x454b91
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [eax]
lea ebx, [edi + 1]
cmp ebx, dword [esi + 0xc]
jbe 0x454c02
push ebx
call fcn.0050dd84
test eax, eax
pop ecx
mov dword [esp + 0x10], eax
jne 0x454bd1
push dword [esi + 4]
call fcn.0050dbae
and dword [esi + 4], 0
and dword [esi + 0xc], 0
pop ecx
jmp 0x454c02
mov eax, dword [esi + 4]
test eax, eax
je 0x454bf8
push dword [esi + 0xc]
push eax
push dword [esp + 0x18]
call fcn.0050dd90
push dword [esi + 4]
call fcn.0050dbae
and dword [esi + 4], 0
add esp, 0x10
and dword [esi + 0xc], 0
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
cmp dword [esi + 0xc], 0
ja 0x454c15
mov eax, dword [ebp + 0x10]
and dword [eax], 0
xor eax, eax
jmp 0x454ccd
mov ebx, dword [esi + 4]
mov eax, edi
cdq
and edx, 7
add eax, edx
mov edi, eax
sar edi, 3
shl edi, 3
jne 0x454c38
mov eax, dword [ebp + 0x10]
and dword [eax], 0
mov byte [ebx], 0
jmp 0x454ccb
push edi
push dword [ebp + 0xc]
push ebx
call fcn.0050dd90
mov eax, edi
cdq
and edx, 7
add eax, edx
mov esi, eax
sar esi, 3
add esp, 0xc
dec esi
mov byte [ebx + edi], 0
js 0x454ca9
lea eax, [ebx + esi*8]
mov dword [esp + 0x10], eax
jmp 0x454c66
mov eax, dword [esp + 0x10]
test esi, esi
jle 0x454c73
lea ecx, [eax - 8]
mov dword [esp + 0x14], ecx
jmp 0x454c7b
mov dword [esp + 0x14], 0x101419c8
push dword [ebp + 8]
lea ecx, [esp + 0x1c]
push ecx
call fcn.004545ed
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dl, byte [ecx + edx]
add eax, ecx
xor byte [eax], dl
inc ecx
cmp ecx, 8
jl 0x454c8a
sub dword [esp + 0x10], 8
dec esi
test esi, esi
jge 0x454c62
mov esi, dword [ebp + 0x10]
mov dword [esi], edi
mov cl, byte [ebx + edi - 1]
movzx ecx, cl
lea eax, [edi - 1]
sub edi, ecx
jmp 0x454cc5
test eax, eax
jl 0x454cc9
mov byte [eax + ebx], 0
dec eax
cmp eax, edi
jge 0x454cbc
sub dword [esi], ecx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x458643
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10136a7b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x101a90bc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x101b26fc]
mov esi, 0x101b26fc
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
and dword [esp + 0x30], 0
mov eax, dword [0x101b26fc]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x34], 1
call fcn.004eded8
pop ecx
call fcn.004f0118
xor edi, edi
cmp eax, 9
jne 0x4586b8
inc edi
lea esi, [esp + 0x1c]
call fcn.00401e2a
mov byte [esp + 0x30], 2
mov esi, dword [esp + 0x20]
test esi, esi
mov ebx, dword [esp + 0x14]
je 0x458707
mov eax, dword [esi]
push 0x1014f634
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp + 8]
mov eax, dword [esi]
push 0x1014f65c
mov ecx, esi
call dword [eax + 0x14]
mov eax, dword [esi]
push edi
push 0x1014f670
mov ecx, esi
call dword [eax + 0x14]
mov eax, dword [esi]
push ebx
push 0x1014ebc0
mov ecx, esi
call dword [eax + 0x18]
lea ecx, [esp + 0x18]
call fcn.004edcf4
test esi, esi
je 0x45872a
mov edx, dword [esi]
push eax
push 0x1014f164
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x20]
test esi, esi
mov byte [esp + 0x30], 1
je 0x45873a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
lea eax, [ebx - 0x10]
call section.CODE
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call section.CODE
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x49d17f
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101236ff
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push edi
mov eax, dword [0x101a90bc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
and dword [esp + 0x14], 0
xor eax, eax
lea edi, [esp + 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
stosd dword es:[edi], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x40]
and dword [esp + 0x30], 0
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push eax
lea ecx, [esi + 0xac]
call fcn.0046d291
or dword [esp + 0x30], 0xffffffff
mov ebx, eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call section.CODE
push dword [esi + 0x70]
mov edi, dword [0x101397e0]
call edi
test eax, eax
je 0x49d2a7
test ebx, ebx
je 0x49d2a7
push dword [esi + 4]
mov ebx, dword [0x10139848]
call ebx
push eax
call dword [0x1013993c]
test eax, eax
je 0x49d2a7
push dword [esi + 4]
call ebx
push eax
call dword [0x1013991c]
test eax, eax
je 0x49d2a7
lea ecx, [esp + 0x14]
lea eax, [esi + 0x60]
push ecx
push eax
call dword [0x10139930]
xor edi, edi
inc edi
test eax, eax
jne 0x49d285
lea ebx, [esi + 0xc4]
mov dword [esp + 0x10], ebx
push ebx
mov dword [esp + 0x34], edi
call dword [0x101392ac]
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x60]
push eax
call dword [0x10139808]
and dword [esp + 0xc], 0
push ebx
call dword [0x101392b0]
mov eax, esi
call fcn.0049d302
test eax, eax
je 0x49d29d
push dword [esi + 4]
call dword [0x1013991c]
test eax, eax
jne 0x49d29d
push 5
push dword [esi + 4]
call dword [0x10139910]
mov eax, edi
mov dword [esi + 0x88], edi
jmp 0x49d2f0
push dword [esi + 4]
call dword [0x1013991c]
test eax, eax
je 0x49d2bf
push 0
push dword [esi + 4]
call dword [0x10139910]
cmp dword [esi + 0x88], 0
je 0x49d2ee
push dword [esi + 0x70]
call edi
test eax, eax
jne 0x49d2ee
xor edi, edi
inc edi
push edi
push edi
lea eax, [esi + 0x60]
push eax
call dword [0x10139938]
mov eax, dword [esi]
and dword [esi + 0x88], 0
mov ecx, esi
call dword [eax + 0x38]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b1b71
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10133784
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x101a90bc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push 4
pop edi
lea eax, [esp + 0x1c]
push eax
call fcn.004f4c9f
and dword [esp + 0x38], 0
mov eax, dword [0x101b26fc]
mov ecx, 0x101b26fc
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
xor ebx, ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 1
call fcn.00427d58
mov byte [esp + 0x38], 2
push dword [eax]
lea eax, [esp + 0x18]
push 0x1015dba8
push eax
call fcn.00408df0
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x24]
add esp, 0xc
add eax, 0xfffffff0
call section.CODE
mov esi, dword [esp + 0x14]
push 2
push esi
lea eax, [esp + 0x24]
push eax
call fcn.004f4db3
test eax, eax
je 0x4b1c29
push edi
push 0x1015fd8c
push 0x1015fd6c
lea eax, [esp + 0x28]
push eax
call fcn.004f54cc
mov edi, eax
lea eax, [esi - 0x10]
call section.CODE
or dword [esp + 0x38], 0xffffffff
lea eax, [esp + 0x1c]
push eax
call fcn.004f4ce6
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b1c55
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10133784
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x101a90bc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push 3
pop edi
lea eax, [esp + 0x1c]
push eax
call fcn.004f4c9f
and dword [esp + 0x38], 0
mov eax, dword [0x101b26fc]
mov ecx, 0x101b26fc
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
xor ebx, ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 1
call fcn.00427d58
mov byte [esp + 0x38], 2
push dword [eax]
lea eax, [esp + 0x18]
push 0x1015dba8
push eax
call fcn.00408df0
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x24]
add esp, 0xc
add eax, 0xfffffff0
call section.CODE
mov esi, dword [esp + 0x14]
push 2
push esi
lea eax, [esp + 0x24]
push eax
call fcn.004f4db3
test eax, eax
je 0x4b1d0d
push edi
push 0x1015fda8
push 0x1015fd6c
lea eax, [esp + 0x28]
push eax
call fcn.004f54cc
mov edi, eax
lea eax, [esi - 0x10]
call section.CODE
or dword [esp + 0x38], 0xffffffff
lea eax, [esp + 0x1c]
push eax
call fcn.004f4ce6
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b1d39
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10133784
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x101a90bc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push 0xa
pop edi
lea eax, [esp + 0x1c]
push eax
call fcn.004f4c9f
and dword [esp + 0x38], 0
mov eax, dword [0x101b26fc]
mov ecx, 0x101b26fc
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
xor ebx, ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 1
call fcn.00427d58
mov byte [esp + 0x38], 2
push dword [eax]
lea eax, [esp + 0x18]
push 0x1015dba8
push eax
call fcn.00408df0
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x24]
add esp, 0xc
add eax, 0xfffffff0
call section.CODE
mov esi, dword [esp + 0x14]
push 2
push esi
lea eax, [esp + 0x24]
push eax
call fcn.004f4db3
test eax, eax
je 0x4b1df1
push edi
push 0x1015d5ac
push 0x1015fd6c
lea eax, [esp + 0x28]
push eax
call fcn.004f54cc
mov edi, eax
lea eax, [esi - 0x10]
call section.CODE
or dword [esp + 0x38], 0xffffffff
lea eax, [esp + 0x1c]
push eax
call fcn.004f4ce6
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e2390
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x4e23b2
add esp, 0xfffffff0
call fcn.00403d88
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x4e251d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004d44d4
test al, al
jne 0x4e23ef
mov ecx, 0x4e2550
mov dl, 1
mov eax, dword [0x4c8bd0]
call fcn.0040d38c
call fcn.004042b4
push dword [0x546bb8]
lea edx, [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xbc]
push dword [ebp - 0x10]
push dword [0x546bb8]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004052a8
mov eax, dword [ebp - 0xc]
call fcn.004d4fac
test al, al
jne 0x4e24c1
push dword [0x546bb4]
push dword [ebp + 8]
push dword [0x546bb4]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004052a8
mov eax, dword [ebp - 0x14]
call fcn.004d4fac
sub edi, edi
invalid
test al, al
jne 0x4e24c1
push dword [0x546bb8]
lea edx, [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xb8]
push dword [ebp - 0x1c]
push dword [0x546bb8]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004052a8
mov eax, dword [ebp - 0x18]
call fcn.004d50c4
test al, al
jne 0x4e24c1
push dword [0x546bb4]
push edi
push dword [0x546bb4]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004052a8
mov eax, dword [ebp - 0x20]
call fcn.004d50c4
test al, al
jne 0x4e24c1
mov ecx, 0x4e2550
mov dl, 1
mov eax, dword [0x4c8bd0]
call fcn.0040d38c
call fcn.004042b4
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.004dbdb8
lea eax, [ebx + 4]
mov edx, esi
call fcn.00405004
lea eax, [ebx + 8]
call fcn.00404fc8
lea eax, [ebx + 0x30]
mov edx, edi
call fcn.00405004
lea eax, [ebx + 0x34]
mov edx, dword [ebp + 8]
call fcn.00405004
mov byte [ebx + 0xc], 0xc
mov ax, word [0x4e256c]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
mov dword [eax], edx

Function at 0x5016c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
xor edx, edx
xor eax, eax
mov byte [eax + ecx], al
inc eax
cmp eax, 0x100
jb 0x5016c8
push ebx
push esi
push edi
mov byte [ecx + 0x100], dl
mov byte [ecx + 0x101], dl
mov dword [ebp - 4], edx
xor esi, esi
movzx eax, dl
mov edx, dword [ebp - 4]
lea edi, [edx + ecx]
movzx edx, byte [eax + 0x1017e22c]
movzx ebx, byte [edi]
add edx, esi
add edx, ebx
and edx, 0x800000ff
jns 0x50170e
dec edx
or edx, 0xffffff00
inc edx
movzx esi, dl
mov dl, byte [edi]
mov bl, byte [esi + ecx]
inc eax
mov byte [edi], bl
mov byte [esi + ecx], dl
push 0x12
cdq
pop edi
idiv edi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x100
jb 0x5016e7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x501733
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov al, byte [ecx + 0x100]
mov dl, byte [ecx + 0x101]
and dword [ebp - 8], 0
push ebx
push esi
push edi
movzx esi, al
movzx edi, dl
lea eax, [esi + 1]
and eax, 0x800000ff
jns 0x501762
dec eax
or eax, 0xffffff00
inc eax
movzx esi, al
mov byte [ebp - 1], al
lea eax, [esi + ecx]
movzx edx, byte [eax]
add edx, edi
and edx, 0x800000ff
jns 0x501780
dec edx
or edx, 0xffffff00
inc edx
movzx edi, dl
mov bl, byte [edi + ecx]
mov byte [ebp - 2], dl
mov dl, byte [eax]
mov byte [eax], bl
mov ebx, dword [ebp - 8]
mov byte [edi + ecx], dl
mov edx, dword [ebp + 8]
movzx eax, byte [eax]
add edx, ebx
movzx ebx, byte [edi + ecx]
add ebx, eax
and ebx, 0x800000ff
jns 0x5017b1
dec ebx
or ebx, 0xffffff00
inc ebx
movzx eax, bl
mov al, byte [eax + ecx]
xor byte [edx], al
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x614
jb 0x501751
mov al, byte [ebp - 1]
pop edi
mov byte [ecx + 0x100], al
mov al, byte [ebp - 2]
pop esi
mov byte [ecx + 0x101], al
pop ebx
leave
ret

Function at 0x50d1b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10121b27
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x101a90bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi], 0x1013ace8
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
mov dword [ebp - 4], eax
call dword [0x10139438]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call dword [0x10139438]
mov dword [esi + 0x4c], 0x4a
mov dword [esi + 0x50], 3
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100335d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x100dc06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x10], 0
jg 0x100335fa
jl 0x100335f1
cmp dword [ebp + 0xc], 0
ja 0x100335fa
xor eax, eax
xor edx, edx
jmp 0x1003373b
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], 0
je 0x1003361c
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.10033f80
jmp 0x1003373b
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
call fcn.10036180
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x1003368b
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.10016ab0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.100362e0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.10021b90
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.10037510
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x4c], 0
je 0x1003372c
mov ecx, dword [ebp - 0x10]
call fcn.10037020
mov dword [ebp - 0x2c], 0xfff
cmp dword [ebp - 8], 0xfff
jbe 0x100336fb
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.10076db0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
cmp dword [ebp - 0x18], 0xfff
je 0x100336f9
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x1003373b
jmp 0x100336a7
cmp dword [ebp - 8], 0
jbe 0x1003372c
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.10076db0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006f1fb
mov esp, ebp
pop ebp
ret 0xc