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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0x14]
cmp esi, 1
ja 0x47356f
test esi, esi
jne 0x473554
mov eax, dword [ebp + 8]
mov dword [eax], 1
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
push ecx
push edx
call fcn.00460010
add esp, 0xc
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
xor edx, edx
mov ecx, 0x20
push edi
mov dword [ebp - 4], ecx
mov eax, esi
test esi, esi
je 0x473590
mov edi, eax
and edi, 1
xor edx, edi
dec ecx
shr eax, 1
jne 0x473581
mov dword [ebp - 4], ecx
shl esi, cl
mov dword [ebp + 0x14], esi
mov esi, dword [ebp + 0x10]
cmp esi, 1
jne 0x473630
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov dword [ebp - 8], edx
test cl, 1
je 0x4735b6
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
jmp 0x4735bc
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
push 1
push eax
push edi
call fcn.004638c0
xor eax, eax
add esp, 0xc
cmp dword [edi + 4], eax
mov esi, 2
sete al
sub esi, eax
mov eax, 0x1f
sub eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
add eax, eax
mov dword [ebp + 0x14], eax
jns 0x473607
mov ecx, dword [ebp - 8]
push ecx
push esi
push edi
push edi
call fcn.00463c30
xor edx, edx
add esp, 0x10
test eax, eax
setne dl
mov dword [edi + esi*4], eax
add esi, edx
dec dword [ebp - 4]
je 0x4736c4
push esi
push edi
push ebx
call fcn.004638c0
xor eax, eax
add esi, esi
add esp, 0xc
cmp dword [ebx + esi*4 - 4], eax
sete al
sub esi, eax
mov eax, edi
mov edi, ebx
mov ebx, eax
jmp 0x4735e2
xor ecx, edx
test cl, 1
jne 0x47363f
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
jmp 0x473645
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
push ecx
push edi
call fcn.004638c0
xor edx, edx
add esi, esi
add esp, 0xc
cmp dword [edi + esi*4 - 4], edx
mov eax, 0x1f
sete dl
sub esi, edx
sub eax, dword [ebp - 4]
mov dword [ebp - 4], eax
jmp 0x473670
mov eax, dword [ebp + 0x14]
add eax, eax
mov dword [ebp + 0x14], eax
jns 0x47369f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push esi
push edi
push ebx
call fcn.00462b00
mov edx, dword [ebp + 0x10]
add esp, 0x14
neg eax
sbb eax, eax
inc eax
sub edx, eax
mov eax, edi
mov edi, ebx
add esi, edx
mov ebx, eax
dec dword [ebp - 4]
je 0x4736c4
push esi
push edi
push ebx
call fcn.004638c0
xor eax, eax
add esi, esi
add esp, 0xc
cmp dword [ebx + esi*4 - 4], eax
sete al
sub esi, eax
mov eax, edi
mov edi, ebx
mov ebx, eax
jmp 0x473670
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x474910
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
push esi
lea esp, [esp]
mov esi, dword [ecx + eax*4 + 4]
xor esi, dword [ecx + eax*4]
and esi, 0x7fffffff
xor esi, dword [ecx + eax*4]
mov edx, esi
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
shr esi, 1
xor edx, esi
xor edx, dword [ecx + eax*4 + 0x634]
inc eax
mov dword [ecx + eax*4 - 4], edx
cmp eax, 0xe3
jl 0x474920
cmp eax, 0x26f
jge 0x474999
mov esi, dword [ecx + eax*4 + 4]
xor esi, dword [ecx + eax*4]
and esi, 0x7fffffff
xor esi, dword [ecx + eax*4]
mov edx, esi
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
shr esi, 1
xor edx, esi
xor edx, dword [ecx + eax*4 - 0x38c]
inc eax
mov dword [ecx + eax*4 - 4], edx
cmp eax, 0x26f
jl 0x474960
mov eax, dword [ecx + 0x9bc]
xor eax, dword [ecx]
pop esi
and eax, 0x7fffffff
xor eax, dword [ecx + 0x9bc]
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [ecx + 0x630]
shr eax, 1
xor edx, eax
mov dword [ecx + 0x9bc], edx
pop ebp
ret

Function at 0x481f10
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5be9a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x481f7d
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push ecx
push 4
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov esi, eax
mov eax, dword [ebp - 0x18]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test esi, esi
je 0x481f7d
push str.Got_seed_for_RNG_from_CryptGenRandom_n
push 4
call fcn.00487960
mov eax, dword [ebp - 0x1c]
add esp, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc40c
mov esp, ebp
pop ebp
ret
push edi
push str.Got_seed_for_RNG_from_GetSystemTime_n
push 4
call fcn.00487960
add esp, 8
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx edx, word [ebp - 0xc]
movzx esi, word [ebp - 0xa]
movzx edi, word [ebp - 8]
movzx ecx, word [ebp - 6]
mov eax, edx
shl eax, 6
add eax, esi
shl eax, 6
add eax, edi
shl eax, 0xa
add eax, ecx
shl ecx, 6
add ecx, esi
shl ecx, 5
add ecx, edx
shl ecx, 6
add ecx, edi
xor eax, ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004bc40c
mov esp, ebp
pop ebp
ret

Function at 0x4bc40c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5be9a0]
jne 0x4bc416
repz ret
jmp fcn.004c6541
Function at 0x4c1eb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4c1ed7
call fcn.004b7dc4
mov dword [eax], esi
call fcn.004b7db1
push 0x16
pop esi
mov dword [eax], esi
call fcn.004beec5
mov eax, esi
jmp 0x4c1f2c
test dword [ebp + 0xc], 0xfffffff9
jne 0x4c1ebd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c1f04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b7dd7
pop ecx
call fcn.004b7db1
mov eax, dword [eax]
jmp 0x4c1f2c
test al, 0x10
jne 0x4c1f2a
test al, 1
je 0x4c1f2a
test byte [ebp + 0xc], 2
je 0x4c1f2a
call fcn.004b7dc4
mov dword [eax], 5
call fcn.004b7db1
mov dword [eax], 0xd
jmp 0x4c1efb
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4c70b7
Capabilities:
Encrypt data using chaskey
Hash data using murmur3

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004b8a5a
push dword [ebp + 0x28]
lea eax, [ebp - 0x10]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
pushal
pushfd
xor esi, eax
neg esi
xor eax, 0xebff6e
mov ecx, esi
dec eax
and ebx, dword [0x5c7e20]
sub esi, eax
xor esi, 0x6411283
rol esi, 1
sub esi, 0xc14bf20
mov esi, ebx
Function at 0x4ca230
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5be9a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004c0425
and dword [ebp - 0x14], 0
cmp dword [0x5ce224], 0
mov dword [ebp - 0x18], eax
jne 0x4ca2e3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4ca38b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4ca38b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x5ce224], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x5ce228], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5ce22c], eax
call edi
push eax
call esi
mov dword [0x5ce234], eax
test eax, eax
je 0x4ca2e3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5ce230], eax
mov eax, dword [0x5ce230]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4ca33c
cmp dword [0x5ce234], ecx
je 0x4ca33c
push eax
call esi
push dword [0x5ce234]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4ca33c
test ebx, ebx
je 0x4ca33c
call edi
test eax, eax
je 0x4ca333
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4ca333
test byte [ebp - 8], 1
jne 0x4ca33c
or dword [ebp + 0x10], 0x200000
jmp 0x4ca36f
mov eax, dword [0x5ce228]
cmp eax, dword [ebp - 0x18]
je 0x4ca36f
push eax
call esi
test eax, eax
je 0x4ca36f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4ca36f
mov eax, dword [0x5ce22c]
cmp eax, dword [ebp - 0x18]
je 0x4ca36f
push eax
call esi
test eax, eax
je 0x4ca36f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5ce224]
call esi
test eax, eax
je 0x4ca38b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4ca38d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc40c
leave
ret
Function at 0x4cf660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5be9a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [eax + 4]
test esi, esi
jne 0x4cf68d
call fcn.004b7416
add eax, 0x20
mov dword [ebp + 8], eax
mov esi, eax
mov ebx, dword [ebp + 0xc]
test ebx, ebx
js 0x4cf6cb
mov dword [ebp - 0x10], str.0123456789abcdefghijklmnopqrstuvwxyz
jne 0x4cf6a4
mov ebx, 0xa
jmp 0x4cf6d4
cmp ebx, 0x24
jle 0x4cf6d4
mov dword [ebp - 0x10], str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
cmp ebx, 0x3e
jle 0x4cf6d4
xor eax, eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc40c
mov esp, ebp
pop ebp
ret
neg ebx
mov dword [ebp - 0x10], str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ
test edi, edi
jne 0x4cf702
push esi
push 0x30
call fcn.004d0280
push esi
call fcn.004b7171
add esp, 0xc
neg eax
sbb eax, eax
inc eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc40c
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x14], 0
test edi, edi
jns 0x4cf721
push esi
push 0x2d
call fcn.004d0280
add esp, 8
neg edi
mov dword [ebp - 0x14], 1
mov edx, edi
shl edx, 5
mov dword [ebp - 8], edx
fild dword [ebp - 8]
lea ecx, [ebx + ebx*2]
fnstcw word [ebp - 6]
mov dword [ebp - 0xc], 0
movzx eax, word [ebp - 6]
fmul qword [ecx*8 + 0x50fee0]
or eax, 0xc00
mov dword [ebp - 0x18], eax
fldcw word [ebp - 0x18]
fistp qword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
add eax, 3
fldcw word [ebp - 6]
cmp eax, 0x10000
jae 0x4cf76b
call fcn.004bd130
mov esi, esp
jmp 0x4cf77a
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0045f700
add esp, 8
mov esi, eax
lea eax, [edi*4 + 4]
cmp eax, 0x10000
jge 0x4cf792
call fcn.004bd130
mov dword [ebp - 8], esp
jmp 0x4cf7a2
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.0045f700
add esp, 8
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 8]
push edi
push eax
push ecx
call fcn.00460010
mov edx, dword [ebp - 8]
push edi
push edx
push ebx
push esi
call fcn.0045fb10
add esp, 0x1c
cmp byte [esi], 0
jne 0x4cf7ce
inc esi
dec eax
cmp byte [esi], 0
je 0x4cf7c7
xor ecx, ecx
test eax, eax
je 0x4cf7e6
movzx edx, byte [ecx + esi]
mov edi, dword [ebp - 0x10]
mov dl, byte [edx + edi]
mov byte [ecx + esi], dl
inc ecx
cmp ecx, eax
jb 0x4cf7d4
mov edi, dword [ebp + 8]
push edi
push eax
push 1
push esi
mov byte [esi + eax], 0
call fcn.004b9a51
mov esi, dword [ebp - 0x14]
add esi, eax
mov eax, dword [ebp - 0xc]
add esp, 0x10
test eax, eax
je 0x4cf80f
push eax
call fcn.0045f730
add esp, 4
push edi
call fcn.004b7171
add esp, 4
neg eax
sbb eax, eax
not eax
and eax, esi
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc40c
mov esp, ebp
pop ebp
ret
Function at 0x4cfaf0
Capabilities:
Encrypt data using rc4 prga
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0
jne 0x4cfb04
call fcn.004b7416
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
push eax
push 1
lea ecx, [ebp - 4]
push 4
push ecx
call fcn.004b98dd
add esp, 0x10
cmp eax, 1
je 0x4cfb23
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
movzx ecx, al
movzx edx, ah
movzx eax, byte [ebp - 2]
shl ecx, 8
add ecx, edx
movzx edx, byte [ebp - 1]
shl ecx, 8
add ecx, eax
shl ecx, 8
add ecx, edx
push ebx
mov eax, ecx
cdq
push esi
push edi
mov edi, eax
xor edi, edx
sub edi, edx
lea ebx, [edi*8 + 0x1f]
shr ebx, 5
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x4cfc3b
mov esi, dword [ebp + 8]
cmp ebx, dword [esi]
jle 0x4cfb7b
push ebx
push esi
call fcn.00460100
add esp, 8
mov ecx, dword [ebp + 0xc]
mov esi, dword [esi + 8]
push ecx
lea eax, [ebx*4]
push 1
sub eax, edi
add eax, esi
push edi
push eax
mov dword [esi], 0
call fcn.004b98dd
add esp, 0x10
cmp eax, 1
je 0x4cfbad
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 1]
cdq
sub eax, edx
sar eax, 1
lea edi, [esi + ebx*4 - 4]
mov dword [ebp - 0xc], edi
test eax, eax
jle 0x4cfc24
mov dword [ebp + 0xc], eax
mov ecx, dword [esi]
mov eax, ecx
mov edx, ecx
and edx, 0xff00
shl eax, 0x10
add eax, edx
mov edx, ecx
shr edx, 8
and edx, 0xff00
shl eax, 8
add eax, edx
shr ecx, 0x18
add eax, ecx
mov ecx, dword [edi]
mov edx, ecx
shl edx, 0x10
mov ebx, ecx
and ebx, 0xff00
add edx, ebx
mov ebx, ecx
shr ebx, 8
shl edx, 8
and ebx, 0xff00
add edx, ebx
shr ecx, 0x18
add edx, ecx
mov dword [esi], edx
mov dword [edi], eax
add esi, 4
sub edi, 4
dec dword [ebp + 0xc]
jne 0x4cfbc3
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
test ebx, ebx
jle 0x4cfc35
cmp dword [edi], 0
jne 0x4cfc35
dec ebx
sub edi, 4
test ebx, ebx
jg 0x4cfc28
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jns 0x4cfc41
neg ebx
mov eax, dword [ebp + 8]
mov dword [eax + 4], ebx
lea eax, [edi + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cfc60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, edi
cdq
mov esi, eax
xor esi, edx
sub esi, edx
mov eax, esi
shl eax, 5
add eax, 7
cdq
and edx, 7
lea ebx, [edx + eax]
sar ebx, 3
lea eax, [ebx + 4]
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], eax
call dword [0x5b81a0]
add esp, 4
mov dword [ebp - 0xc], eax
lea ecx, [eax + 4]
test ebx, ebx
je 0x4cfd0b
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 8]
add ecx, ebx
mov dword [ebp + 0xc], esi
mov eax, dword [edx]
mov esi, eax
and esi, 0xff00
mov edi, eax
shl edi, 0x10
add esi, edi
shl esi, 8
mov edi, eax
shr edi, 8
and edi, 0xff00
add esi, edi
mov edi, eax
shr edi, 0x18
add esi, edi
sub ecx, 4
mov dword [ecx], esi
mov esi, dword [ebp + 0xc]
dec esi
add edx, 4
mov dword [ebp + 0xc], esi
test esi, esi
jg 0x4cfcb2
bsr eax, eax
mov edi, dword [ebp - 4]
mov dword [ebp + 0xc], eax
mov eax, 0x1f
sub eax, dword [ebp + 0xc]
cdq
and edx, 7
add eax, edx
sar eax, 3
add ecx, eax
sub ebx, eax
lea esi, [ebx + 4]
test edi, edi
jns 0x4cfd14
neg ebx
mov edx, ebx
sar edx, 0x18
mov eax, ebx
sar eax, 0x10
lea edi, [ecx - 4]
mov byte [edi], dl
mov byte [ecx - 3], al
mov eax, dword [ebp + 8]
mov edx, ebx
sar edx, 8
mov byte [ecx - 2], dl
mov byte [ecx - 1], bl
test eax, eax
jne 0x4cfd40
call fcn.004b7416
add eax, 0x20
push eax
push 1
push esi
push edi
call fcn.004b9a51
add esp, 0x10
cmp eax, 1
je 0x4cfd54
xor esi, esi
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push eax
push ecx
call dword [0x5b81a8]
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d0380
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edx, esi
xor edi, edi
and edx, 0xfffffff8
jbe 0x4d041e
mov esi, dword [ebp + 0xc]
dec edx
lea ecx, [esi + 0x18]
shr edx, 3
sub esi, ebx
inc edx
lea eax, [ebx + 8]
lea edi, [edx*8]
mov ebx, dword [ecx - 0x18]
xor dword [eax - 8], ebx
mov ebx, dword [ecx - 0x14]
xor dword [eax - 4], ebx
mov ebx, dword [esi + eax]
xor dword [eax], ebx
mov ebx, dword [esi + eax + 4]
xor dword [eax + 4], ebx
mov ebx, dword [ecx - 8]
xor dword [eax + 8], ebx
mov ebx, dword [ecx - 4]
xor dword [eax + 0xc], ebx
mov ebx, dword [ecx]
xor dword [eax + 0x10], ebx
mov ebx, dword [ecx + 4]
xor dword [eax + 0x14], ebx
mov ebx, dword [ecx + 8]
xor dword [eax + 0x18], ebx
mov ebx, dword [ecx + 0xc]
xor dword [eax + 0x1c], ebx
mov ebx, dword [ecx + 0x10]
xor dword [eax + 0x20], ebx
mov ebx, dword [ecx + 0x14]
xor dword [eax + 0x24], ebx
mov ebx, dword [ecx + 0x18]
xor dword [eax + 0x28], ebx
mov ebx, dword [ecx + 0x1c]
xor dword [eax + 0x2c], ebx
mov ebx, dword [ecx + 0x20]
xor dword [eax + 0x30], ebx
mov ebx, dword [ecx + 0x24]
xor dword [eax + 0x34], ebx
add eax, 0x40
add ecx, 0x40
dec edx
jne 0x4d03b0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
cmp edi, esi
jae 0x4d0442
mov ecx, dword [ebp + 0xc]
sub ecx, ebx
lea eax, [ebx + edi*8]
sub esi, edi
lea esp, [esp]
mov edx, dword [ecx + eax]
xor dword [eax], edx
mov edx, dword [ecx + eax + 4]
xor dword [eax + 4], edx
add eax, 8
dec esi
jne 0x4d0430
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4d0640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [eax + 0x18]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0
movzx eax, word [edx]
mov dword [ebp - 8], edx
movzx edx, word [edx + 2]
push ebx
push esi
push edi
mov dword [ebp - 0xc], edx
test edx, edx
je 0x4d080a
jmp 0x4d0673
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*8]
mov eax, dword [ecx + eax*8 + 4]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
push ebx
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp - 8]
movq mm2, qword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebx + esi*2 + 4]
and ecx, 0xfffffff0
je 0x4d07ad
mov edi, edi
push ecx
mov ecx, dword [ebx + esi*2 + 8]
movzx edx, ax
shr eax, 0x10
movq mm0, qword [edi + edx*8]
movq mm1, qword [edi + eax*8]
pxor mm0, mm2
pxor mm1, mm2
movq qword [edi + edx*8], mm0
movq qword [edi + eax*8], mm1
mov eax, dword [ebx + esi*2 + 0xc]
movzx edx, cx
shr ecx, 0x10
movq mm0, qword [edi + edx*8]
movq mm1, qword [edi + ecx*8]
pxor mm0, mm2
pxor mm1, mm2
movq qword [edi + edx*8], mm0
movq qword [edi + ecx*8], mm1
mov ecx, dword [ebx + esi*2 + 0x10]
movzx edx, ax
shr eax, 0x10
movq mm0, qword [edi + edx*8]
movq mm1, qword [edi + eax*8]
pxor mm0, mm2
pxor mm1, mm2
movq qword [edi + edx*8], mm0
movq qword [edi + eax*8], mm1
mov eax, dword [ebx + esi*2 + 0x14]
movzx edx, cx
shr ecx, 0x10
movq mm0, qword [edi + edx*8]
movq mm1, qword [edi + ecx*8]
pxor mm0, mm2
pxor mm1, mm2
movq qword [edi + edx*8], mm0
movq qword [edi + ecx*8], mm1
mov ecx, dword [ebx + esi*2 + 0x18]
movzx edx, ax
shr eax, 0x10
movq mm0, qword [edi + edx*8]
movq mm1, qword [edi + eax*8]
pxor mm0, mm2
pxor mm1, mm2
movq qword [edi + edx*8], mm0
movq qword [edi + eax*8], mm1
mov eax, dword [ebx + esi*2 + 0x1c]
movzx edx, cx
shr ecx, 0x10
movq mm0, qword [edi + edx*8]
movq mm1, qword [edi + ecx*8]
pxor mm0, mm2
pxor mm1, mm2
movq qword [edi + edx*8], mm0
movq qword [edi + ecx*8], mm1
mov ecx, dword [ebx + esi*2 + 0x20]
movzx edx, ax
shr eax, 0x10
movq mm0, qword [edi + edx*8]
movq mm1, qword [edi + eax*8]
pxor mm0, mm2
pxor mm1, mm2
movq qword [edi + edx*8], mm0
movq qword [edi + eax*8], mm1
mov eax, dword [ebx + esi*2 + 0x24]
movzx edx, cx
shr ecx, 0x10
movq mm0, qword [edi + edx*8]
movq mm1, qword [edi + ecx*8]
pxor mm0, mm2
pxor mm1, mm2
movq qword [edi + edx*8], mm0
movq qword [edi + ecx*8], mm1
pop ecx
add esi, 0x10
cmp esi, ecx
jne 0x4d06a0
mov dword [ebp - 4], esi
pop ebx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
cmp eax, ecx
jae 0x4d07ea
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
jmp 0x4d07d0
movzx eax, word [edx + eax*2 + 4]
xor dword [ebx + eax*8], esi
xor dword [ebx + eax*8 + 4], edi
lea eax, [ebx + eax*8]
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x4d07d0
lea ecx, [edx + ecx*2 + 4]
mov dword [ebp - 4], 0
movzx eax, word [ecx]
mov dword [ebp - 8], ecx
movzx ecx, word [ecx + 2]
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0x4d0670
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d0ac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], 0
movzx ecx, word [eax]
mov dword [ebp - 8], eax
movzx eax, word [eax + 2]
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4d0c33
jmp 0x4d0af0
push ebx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + edi*2 + 4]
mov ecx, dword [ebx + edi*2 + 8]
pxor mm1, mm1
pxor mm0, mm0
and edx, 0xfffffff0
je 0x4d0bc0
jmp 0x4d0b20
push edx
movzx edx, ax
pxor mm1, qword [esi + edx*8]
shr eax, 0x10
pxor mm0, qword [esi + eax*8]
mov eax, dword [ebx + edi*2 + 0xc]
movzx edx, cx
pxor mm1, qword [esi + edx*8]
shr ecx, 0x10
pxor mm0, qword [esi + ecx*8]
mov ecx, dword [ebx + edi*2 + 0x10]
movzx edx, ax
pxor mm1, qword [esi + edx*8]
shr eax, 0x10
pxor mm0, qword [esi + eax*8]
mov eax, dword [ebx + edi*2 + 0x14]
movzx edx, cx
pxor mm1, qword [esi + edx*8]
shr ecx, 0x10
pxor mm0, qword [esi + ecx*8]
mov ecx, dword [ebx + edi*2 + 0x18]
movzx edx, ax
pxor mm1, qword [esi + edx*8]
shr eax, 0x10
pxor mm0, qword [esi + eax*8]
mov eax, dword [ebx + edi*2 + 0x1c]
movzx edx, cx
pxor mm1, qword [esi + edx*8]
shr ecx, 0x10
pxor mm0, qword [esi + ecx*8]
mov ecx, dword [ebx + edi*2 + 0x20]
movzx edx, ax
pxor mm1, qword [esi + edx*8]
shr eax, 0x10
pxor mm0, qword [esi + eax*8]
mov eax, dword [ebx + edi*2 + 0x24]
movzx edx, cx
pxor mm1, qword [esi + edx*8]
shr ecx, 0x10
pxor mm0, qword [esi + ecx*8]
mov ecx, dword [ebx + edi*2 + 0x28]
pop edx
add edi, 0x10
cmp edi, edx
jne 0x4d0b20
pxor mm1, mm0
movq qword [ebp - 0x18], mm1
mov dword [ebp - 4], edi
pop ebx
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
cmp eax, edi
jae 0x4d0bfd
mov edx, dword [ebp + 8]
jmp 0x4d0be0
movzx ecx, word [esi + eax*2 + 4]
mov edi, dword [edx + ecx*8]
xor dword [ebp - 0x18], edi
mov ecx, dword [edx + ecx*8 + 4]
mov edi, dword [ebp - 0xc]
xor dword [ebp - 0x14], ecx
inc eax
mov dword [ebp - 4], eax
cmp eax, edi
jb 0x4d0be0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
xor dword [ecx + eax*8], edx
mov edx, dword [ebp - 0x14]
xor dword [ecx + eax*8 + 4], edx
lea eax, [esi + edi*2 + 4]
mov dword [ebp - 4], 0
movzx ecx, word [eax]
mov dword [ebp - 8], eax
movzx eax, word [eax + 2]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4d0af0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret