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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
push esi
mov edx, ecx
xor edx, dword [ebp + 0xc]
xor esi, esi
push edi
cmp ecx, 8
jl 0x42d714
mov edi, ecx
shr edi, 3
mov ebx, edi
neg ebx
lea ecx, [ecx + ebx*8]
mov dword [ebp + 8], ecx
jmp 0x42d6d0
mov ecx, dword [eax]
imul edx, edx, 0x5bd1e995
imul esi, esi, 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
mov ebx, ecx
shr ebx, 0x18
xor ebx, ecx
mov ecx, dword [eax + 4]
imul ebx, ebx, 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
xor edx, ebx
mov ebx, ecx
shr ebx, 0x18
xor ebx, ecx
imul ebx, ebx, 0x5bd1e995
add eax, 8
xor esi, ebx
dec edi
jne 0x42d6d0
mov ecx, dword [ebp + 8]
cmp ecx, 4
jl 0x42d73c
mov edi, dword [eax]
imul edx, edx, 0x5bd1e995
imul edi, edi, 0x5bd1e995
mov ebx, edi
shr ebx, 0x18
xor ebx, edi
imul ebx, ebx, 0x5bd1e995
add eax, 4
xor edx, ebx
sub ecx, 4
dec ecx
je 0x42d757
dec ecx
je 0x42d74e
dec ecx
jne 0x42d762
movzx ecx, byte [eax + 2]
shl ecx, 0x10
xor esi, ecx
movzx ecx, byte [eax + 1]
shl ecx, 8
xor esi, ecx
movzx eax, byte [eax]
xor esi, eax
imul esi, esi, 0x5bd1e995
mov eax, esi
shr eax, 0x12
xor eax, edx
imul eax, eax, 0x5bd1e995
mov ecx, eax
shr ecx, 0x16
xor ecx, esi
imul ecx, ecx, 0x5bd1e995
mov esi, ecx
shr esi, 0x11
xor esi, eax
imul esi, esi, 0x5bd1e995
mov eax, esi
shr eax, 0x13
xor eax, ecx
imul eax, eax, 0x5bd1e995
xor ecx, ecx
xor edx, edx
pop edi
or eax, ecx
or edx, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x47db60
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x1003bebb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
lea ecx, [esi + 4]
mov dword [esp + 4], esi
mov dword [esi], 0x100446d8
call 0x4aed70
mov dword [esp + 0x10], 0
push 4
call 0x4a0a57
add esp, 4
test eax, eax
je 0x47dbaa
mov ecx, eax
call 0x4aeb68
jmp 0x47dbac
xor eax, eax
mov dword [esi + 0x38], eax
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4803f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1003a8b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push ebx
push esi
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0xc], ebx
push ebx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00477290
mov dword [esp + 0x30], 1
mov ecx, dword [esp + 0x40]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esp + 0x18]
call fcn.0047b410
mov esi, dword [esp + 0x38]
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00477290
mov dword [esp + 8], 1
mov byte [esp + 0x30], bl
cmp dword [esp + 0x24], 0x10
jb 0x480486
mov edx, dword [esp + 0x10]
push edx
call 0x4a0906
add esp, 4
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xc], bl
mov dword [esp + 0x20], 0xf
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x48abe0
Capabilities:
Access peb ldr_data
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x1003b7f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x10049980]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x24], eax
mov eax, 0x55555556
imul ecx
mov eax, edx
push ebx
shr eax, 0x1f
add eax, edx
push ebp
lea edx, [eax + eax*2]
push esi
xor esi, esi
sub ecx, edx
mov dword [esp + 0xc], esi
mov ebx, ecx
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], esi
mov byte [esp + 0x1c], 0
mov dword [esp + 0x40], 1
cmp eax, esi
jle 0x48ace5
mov dword [esp + 0x50], eax
lea ecx, [ecx]
mov eax, dword [esp + 0x4c]
movzx edi, byte [esi + eax]
movzx ebp, byte [esi + eax + 1]
inc esi
movzx ebx, byte [esi + eax + 1]
inc esi
mov eax, edi
xor ecx, ecx
sar eax, 2
mov cl, byte [eax + 0x1003d628]
inc esi
push ecx
push 1
lea ecx, [esp + 0x20]
call fcn.0047afe0
and edi, 3
mov edx, ebp
sar edx, 4
shl edi, 4
or edi, edx
xor eax, eax
mov al, byte [edi + 0x1003d628]
lea ecx, [esp + 0x18]
push eax
push 1
call fcn.0047afe0
and ebp, 0xf
mov ecx, ebx
sar ecx, 6
shl ebp, 2
or ebp, ecx
xor edx, edx
mov dl, byte [ebp + 0x1003d628]
lea ecx, [esp + 0x18]
push edx
push 1
call fcn.0047afe0
xor eax, eax
and ebx, 0x3f
mov al, byte [ebx + 0x1003d628]
lea ecx, [esp + 0x18]
push eax
push 1
call fcn.0047afe0
dec dword [esp + 0x50]
jne 0x48ac50
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x48ad83
mov ebp, dword [esp + 0x4c]
movzx edi, byte [esi + ebp]
mov ecx, edi
sar ecx, 2
xor edx, edx
mov dl, byte [ecx + 0x1003d628]
lea ecx, [esp + 0x18]
inc esi
push edx
push 1
call fcn.0047afe0
and edi, 3
shl edi, 4
cmp ebx, 1
jne 0x48ad3f
xor eax, eax
mov al, byte [edi + 0x1003d628]
lea ecx, [esp + 0x18]
push eax
push ebx
call fcn.0047afe0
push 2
push 0x1003d8f0
lea ecx, [esp + 0x20]
call fcn.0047b500
jmp 0x48ad83
movzx esi, byte [esi + ebp]
mov ecx, esi
sar ecx, 4
or edi, ecx
xor edx, edx
mov dl, byte [edi + 0x1003d628]
lea ecx, [esp + 0x18]
push edx
push 1
call fcn.0047afe0
xor eax, eax
and esi, 0xf
mov al, byte [esi*4 + 0x1003d628]
lea ecx, [esp + 0x18]
push eax
push 1
call fcn.0047afe0
push 0x3d
push 1
lea ecx, [esp + 0x20]
call fcn.0047afe0
mov esi, dword [esp + 0x48]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x20]
mov edi, 0xf
push ecx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00477290
mov dword [esp + 0x10], 1
mov byte [esp + 0x40], bl
cmp dword [esp + 0x30], 0x10
jb 0x48adc6
mov edx, dword [esp + 0x1c]
push edx
call 0x4a0906
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x30], edi
pop edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], 0
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x28]
pop ebx
call str.T__R
add esp, 0x34
ret
Function at 0x48ae00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1003b671
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x10049980]
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
xor ebx, ebx
push esi
mov dword [esp + 0xc], ebx
push ebx
push 0x10044334
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00477380
mov dword [esp + 0x38], 1
xor esi, esi
cmp edi, ebx
jle 0x48ae7a
jmp 0x48ae60
mov eax, dword [esp + 0x44]
xor ecx, ecx
mov cl, byte [eax + esi*4]
push ecx
push 1
lea ecx, [esp + 0x18]
call fcn.0047afe0
inc esi
cmp esi, edi
jl 0x48ae60
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x18]
mov esi, 0xf
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
push edx
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.00477290
mov dword [esp + 0xc], 1
mov byte [esp + 0x38], bl
cmp dword [esp + 0x28], 0x10
jb 0x48aeb7
mov eax, dword [esp + 0x14]
push eax
call 0x4a0906
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x24]
pop ebx
call str.T__R
add esp, 0x30
ret

Function at 0x48baa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1003b671
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x10049980]
push ebx
push esi
mov esi, dword [esp + 0x3c]
xor ebx, ebx
push edi
mov dword [esp + 0xc], ebx
push ebx
push 0x10044334
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00477380
mov dword [esp + 0x38], 1
push 9
call 0x4a127c
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x48bb31
push 8
call fcn.0048a8a0
mov eax, edi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x48bb14
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.00477380
push edi
call 0x4a0910
add esp, 4
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x18]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00477290
mov dword [esp + 0xc], 1
mov byte [esp + 0x38], bl
cmp dword [esp + 0x28], 0x10
jb 0x48bb6d
mov ecx, dword [esp + 0x14]
push ecx
call 0x4a0906
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
pop edi
mov dword [esp + 0x24], 0xf
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x24]
pop ebx
call str.T__R
add esp, 0x30
ret
Function at 0x48cfa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1003ba21
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0xc], ebx
push edi
mov edi, dword [0x100481e0]
sub esp, 0x1c
mov ecx, esp
mov eax, edi
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x30], esp
mov byte [ecx + 4], bl
lea ebp, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x48cfe7
sub eax, ebp
push eax
push edi
call fcn.00477380
mov dword [esp + 0x3c], ebx
push esi
call fcn.0048b2e0
add esp, 0x20
mov ecx, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword [esp + 4], 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret

Function at 0x48d030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1003ba21
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0xc], ebx
push edi
mov edi, dword [0x100481e4]
sub esp, 0x1c
mov ecx, esp
mov eax, edi
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x30], esp
mov byte [ecx + 4], bl
lea ebp, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x48d077
sub eax, ebp
push eax
push edi
call fcn.00477380
mov dword [esp + 0x3c], ebx
push esi
call fcn.0048b2e0
add esp, 0x20
mov ecx, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword [esp + 4], 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret
Function at 0x48fde0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0xd8
mov ecx, dword [esp + 0xdc]
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0xe0]
push eax
push ecx
lea edx, [esp + 8]
push edx
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.0048fc20
mov eax, dword [esp + 0xf0]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0048fce0
add esp, 0xec
ret

Function at 0x490420
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
push ebx
push ebp
mov ebp, dword [esp + 0x50]
push edi
xor eax, eax
test ebp, ebp
mov ecx, 0x10
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x54], eax
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov dword [esp + 0xc], edi
mov ebx, edx
jbe 0x4904ae
jmp 0x490450
mov edi, dword [esp + 0xc]
cmp ebp, edi
jae 0x490456
mov edi, ebp
push esi
call fcn.00495a60
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
push ecx
push edx
push esi
call fcn.00495a90
push 4
lea eax, [esp + 0x68]
push eax
push esi
call fcn.00495a90
lea ecx, [esp + 0x2c]
push ecx
push esi
call fcn.00495ac0
add esp, 0x24
xor eax, eax
test edi, edi
jbe 0x4904a0
lea ecx, [ecx]
mov cl, byte [ebx]
mov dl, byte [esp + eax + 0x10]
xor cl, dl
mov byte [ebx], cl
inc ebx
inc eax
cmp eax, edi
jb 0x490490
mov cl, byte [esp + 0x57]
inc cl
sub ebp, edi
mov byte [esp + 0x57], cl
jne 0x49044c
pop edi
pop ebp
pop ebx
add esp, 0x44
ret
Function at 0x490800
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x31c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x330]
push edi
xor eax, eax
mov ecx, 0x68
lea edi, [esp + 0x74]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x338]
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0x84], cl
mov ecx, eax
shr ecx, 8
mov byte [esp + 0x86], cl
mov edx, eax
shr edx, 0x10
mov byte [esp + 0x85], dl
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov byte [esp + 0x87], al
mov byte [esp + 0x8b], 0x30
lea edi, [esp + 0x8c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
lea ebp, [eax + 0x19]
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x8c], 0x80
mov dword [esp + 0x20], ebp
xor eax, eax
mov byte [esp + eax + 0x54], al
inc eax
cmp eax, 0x20
jl 0x490880
push pe_nt_image_headers32
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x21c]
push ecx
call fcn.004925e0
add esp, 0xc
xor ebx, ebx
xor eax, eax
test ebp, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
jle 0x490922
lea edi, [esp + 0x74]
lea edx, [esp + 0x10]
sub edi, edx
dec ebp
shr ebp, 4
lea esi, [esp + 0x76]
inc ebp
nop
xor ecx, ecx
lea eax, [esp + ecx + 0x10]
mov dl, byte [edi + eax]
xor byte [eax], dl
mov dl, byte [esi + ecx - 1]
xor byte [eax + 1], dl
mov dl, byte [esi + ecx]
xor byte [eax + 2], dl
mov dl, byte [esi + ecx + 1]
xor byte [eax + 3], dl
add ecx, 4
cmp ecx, 0x10
jl 0x4908d2
lea eax, [esp + 0x10]
push eax
mov ecx, eax
push ecx
lea edx, [esp + 0x21c]
push 1
push edx
add edi, 0x10
add esi, 0x10
call fcn.00492dd0
add esp, 0x10
dec ebp
jne 0x4908d0
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
lea ecx, [esp + ebx + 0x24]
mov dword [ecx], edx
mov edx, dword [esp + 0x14]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x18]
mov dword [ecx + 8], edx
mov dl, byte [esp + 0x77]
inc dl
add ebx, 0x10
cmp ebx, 0x30
mov dword [ecx + 0xc], eax
mov byte [esp + 0x77], dl
jl 0x4908a6
push pe_nt_image_headers32
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x21c]
push ecx
call fcn.004925e0
mov esi, dword [esp + 0x33c]
add esp, 0xc
mov edi, 3
lea esp, [esp]
lea edx, [esp + 0x44]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0x21c]
push 1
push ecx
call fcn.00492dd0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov edx, esi
mov dword [edx], eax
mov eax, dword [esp + 0x5c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x60]
add esp, 0x10
mov dword [edx + 8], eax
add esi, 0x10
dec edi
mov dword [edx + 0xc], ecx
jne 0x490980
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
Function at 0x4909d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
push edi
lea ebp, [esp + 0x10]
mov ecx, 0xc
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
lea ebx, [esi + 0x20]
mov edi, 3
mov eax, 0x10
inc byte [esi + eax - 1]
jne 0x490a16
inc byte [eax + esi - 2]
jne 0x490a16
inc byte [eax + esi - 3]
jne 0x490a16
inc byte [eax + esi - 4]
jne 0x490a16
sub eax, 4
test eax, eax
jg 0x4909f7
push ebp
push esi
push 1
push ebx
call fcn.00492dd0
add esp, 0x10
add ebp, 0x10
dec edi
jne 0x4909f2
mov edi, dword [esp + 0x48]
mov ebp, edi
lea eax, [esp + 0x10]
xor ecx, ecx
sub ebp, eax
lea eax, [esp + ecx + 0x10]
mov dl, byte [eax + ebp]
xor byte [eax], dl
mov dl, byte [edi + ecx + 1]
xor byte [eax + 1], dl
mov dl, byte [edi + ecx + 2]
xor byte [eax + 2], dl
mov dl, byte [edi + ecx + 3]
xor byte [eax + 3], dl
mov dl, byte [edi + ecx + 4]
xor byte [eax + 4], dl
mov dl, byte [edi + ecx + 5]
xor byte [eax + 5], dl
add ecx, 6
cmp ecx, 0x30
jl 0x490a37
push pe_nt_image_headers32
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004925e0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
add esp, 0xc
mov dword [esi], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
pop edi
mov dword [esi + 0xc], ecx
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret
Function at 0x491b90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
test al, 7
je 0x491ba4
mov eax, 0xffffffce
add esp, 8
ret
cmp dword [esp + 0x10], 1
push ebx
push ebp
push esi
push edi
jne 0x491c4d
test eax, eax
jbe 0x491cfb
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
lea ebp, [eax - 1]
shr ebp, 3
inc ebp
mov edi, edi
mov cl, byte [ebx]
mov al, byte [edi]
xor al, cl
mov byte [esi], al
mov dl, byte [edi + 1]
mov cl, byte [ebx + 1]
xor cl, dl
mov byte [esi + 1], cl
mov dl, byte [ebx + 2]
xor dl, byte [edi + 2]
mov byte [esi + 2], dl
mov cl, byte [edi + 3]
mov al, byte [ebx + 3]
xor al, cl
mov byte [esi + 3], al
mov dl, byte [edi + 4]
mov cl, byte [ebx + 4]
xor cl, dl
mov byte [esi + 4], cl
mov dl, byte [ebx + 5]
xor dl, byte [edi + 5]
mov byte [esi + 5], dl
mov cl, byte [edi + 6]
mov al, byte [ebx + 6]
xor al, cl
mov byte [esi + 6], al
mov dl, byte [edi + 7]
mov cl, byte [ebx + 7]
xor cl, dl
mov edx, dword [esp + 0x1c]
push esi
push esi
push edx
mov byte [esi + 7], cl
call fcn.00491900
mov eax, dword [esi]
mov dword [edi], eax
mov ecx, dword [esi + 4]
add esp, 0xc
add ebx, 8
add esi, 8
dec ebp
mov dword [edi + 4], ecx
jne 0x491bd0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
test eax, eax
jbe 0x491cfb
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
dec eax
shr eax, 3
inc eax
mov dword [esp + 0x24], eax
lea ebx, [ebx]
mov eax, dword [esp + 0x1c]
mov edx, dword [ebx + 4]
mov ebp, dword [ebx]
push esi
push ebx
push eax
mov dword [esp + 0x20], edx
call fcn.00491900
mov cl, byte [edi]
mov dl, byte [esi]
mov al, byte [esi + 1]
xor dl, cl
mov cl, byte [esi + 2]
mov byte [esi], dl
mov dl, byte [edi + 1]
xor al, dl
mov dl, byte [esi + 3]
mov byte [esi + 1], al
mov al, byte [edi + 2]
xor cl, al
mov al, byte [esi + 4]
mov byte [esi + 2], cl
mov cl, byte [edi + 3]
xor dl, cl
mov cl, byte [esi + 5]
mov byte [esi + 3], dl
mov dl, byte [edi + 4]
xor al, dl
mov dl, byte [esi + 6]
mov byte [esi + 4], al
mov al, byte [edi + 5]
xor cl, al
mov al, byte [esi + 7]
mov byte [esi + 5], cl
mov cl, byte [edi + 6]
xor dl, cl
mov byte [esi + 6], dl
mov dl, byte [edi + 7]
xor al, dl
mov byte [esi + 7], al
mov eax, dword [esp + 0x20]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x30]
add esp, 0xc
add ebx, 8
add esi, 8
dec eax
mov dword [edi], ebp
mov dword [esp + 0x24], eax
jne 0x491c70
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x492380
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
sub esp, 0x800
push ebx
push ebp
push esi
mov ebx, 1
push edi
xor ecx, ecx
mov eax, ebx
mov edx, eax
and dl, 0x80
neg dl
lea esi, [eax + eax]
mov dword [esp + ecx*4 + 0x410], eax
mov dword [esp + eax*4 + 0x10], ecx
sbb edx, edx
and edx, 0x1b
xor edx, esi
xor edx, eax
and edx, 0xff
inc ecx
cmp ecx, 0x100
mov eax, edx
jl 0x492393
mov dword [0x1004b938], ebx
mov dword [0x1004b93c], 2
mov dword [0x1004b940], 4
mov dword [0x1004b944], 8
mov dword [0x1004b948], 0x10
mov dword [0x1004b94c], 0x20
mov dword [0x1004b950], 0x40
mov dword [0x1004b954], 0x80
mov dword [0x1004b958], 0x1b
mov dword [0x1004b95c], 0x36
mov byte [0x1004b038], 0x63
mov byte [0x1004d1c3], 0
mov eax, dword [esp + ebx*4 + 0x10]
shl eax, 2
lea ecx, [esp + 0x80c]
sub ecx, eax
mov eax, dword [ecx]
mov ecx, eax
sar ecx, 7
lea edx, [eax + eax]
or ecx, edx
and ecx, 0xff
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
and edx, 0xff
xor eax, edx
mov ecx, edx
add edx, edx
sar ecx, 7
or ecx, edx
and ecx, 0xff
mov edx, ecx
sar edx, 7
lea esi, [ecx + ecx]
or edx, esi
xor edx, 0x63
and edx, 0xff
xor edx, ecx
xor eax, edx
mov byte [ebx + 0x1004b038], al
mov byte [eax + 0x1004d160], bl
inc ebx
cmp ebx, 0x100
jl 0x492430
xor ecx, ecx
movzx edx, byte [ecx + 0x1004b038]
mov eax, edx
and al, 0x80
neg al
lea esi, [edx + edx]
sbb eax, eax
and eax, 0x1b
xor eax, esi
and eax, 0xff
mov esi, eax
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, esi
mov edx, eax
mov dword [ecx*4 + 0x1004cd60], eax
shl eax, 8
shr edx, 0x18
or edx, eax
mov eax, edx
mov dword [ecx*4 + 0x1004c960], edx
shl edx, 8
shr eax, 0x18
or eax, edx
mov edx, eax
mov dword [ecx*4 + 0x1004c560], eax
shl eax, 8
shr edx, 0x18
or edx, eax
movzx eax, byte [ecx + 0x1004d160]
test eax, eax
mov dword [ecx*4 + 0x1004c160], edx
je 0x492568
mov esi, dword [esp + eax*4 + 0x10]
mov eax, dword [esp + 0x48]
add eax, esi
cdq
mov edi, 0xff
idiv edi
mov ebp, dword [esp + edx*4 + 0x410]
mov edx, dword [esp + 0x34]
lea eax, [esi + edx]
cdq
idiv edi
mov eax, dword [esp + 0x44]
add eax, esi
mov ebx, dword [esp + edx*4 + 0x410]
cdq
idiv edi
mov edi, dword [esp + edx*4 + 0x410]
mov edx, dword [esp + 0x3c]
lea eax, [esi + edx]
cdq
mov esi, 0xff
idiv esi
mov edx, dword [esp + edx*4 + 0x410]
jmp 0x492570
xor ebp, ebp
xor ebx, ebx
xor edi, edi
xor edx, edx
shl edx, 8
xor edx, edi
shl edx, 8
xor edx, ebx
shl edx, 8
xor edx, ebp
mov eax, edx
mov dword [ecx*4 + 0x1004bd60], edx
shr eax, 0x18
shl edx, 8
or eax, edx
mov edx, eax
mov dword [ecx*4 + 0x1004b960], eax
shl eax, 8
shr edx, 0x18
or edx, eax
mov eax, edx
mov dword [ecx*4 + 0x1004b538], edx
shr eax, 0x18
shl edx, 8
or eax, edx
mov dword [ecx*4 + 0x1004b138], eax
inc ecx
cmp ecx, 0x100
jl 0x4924a2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x800
ret