joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d0f9
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x218
push ebx
mov ebx, ecx
lea ecx, [esp + 4]
push ebp
push esi
xor ebp, ebp
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0xc], ebp
push eax
push dword [esp + 0x22c]
mov dword [esp + 0x18], ebp
push dword [ebx]
mov dword [esp + 0x20], ebp
call fcn.0040c0bd
mov esi, eax
test esi, esi
jne 0x40d1c8
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0x100
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x38]
push eax
push ebp
push dword [esp + 0x28]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
call ebp
test eax, eax
jne 0x40d19d
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.0040d0f9
mov esi, eax
test esi, esi
jne 0x40d1c8
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x38]
push eax
push esi
push dword [esp + 0x28]
call ebp
test eax, eax
je 0x40d162
jmp 0x40d19f
xor esi, esi
cmp dword [esp + 0xc], 0
je 0x40d1b4
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x228]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.00408830
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x40d1d9
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
Function at 0x40d5ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x52aa10
call fcn.004c9d2c
sub esp, 0x418
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x424], esi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push esi
push dword [ebp + 8]
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x40d61c
push 2
push esi
push dword [ebp + 8]
call ebx
mov edi, eax
mov dword [ebp - 0x14], eax
test edi, edi
jne 0x40d61c
call fcn.0040766b
mov esi, eax
jmp 0x40d6fd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x40d639
call fcn.0040766b
jmp 0x40d6f0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x40d62f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp + 8], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x40d666
mov esi, 0x8007000e
jmp 0x40d6f2
push 2
push eax
mov byte [ebp - 4], 2
call fcn.00401c13
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x40d689
push eax
lea ecx, [ebp - 0x424]
call fcn.00407285
jmp 0x40d6a5
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x40d6a5
cmp dword [ebp - 0x424], 0
mov dword [ebp - 4], 1
je 0x40d65c
push ebx
push dword [ebp - 0x424]
push ebx
push dword [ebp + 0x10]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x40d62f
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.0040d4ab
mov esi, eax
test edi, edi
je 0x40d6fd
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x40d716
lea ecx, [ebp - 0x424]
call fcn.004095c5
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
Function at 0x40fa08
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x425208
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x42522b
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x425219
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4351eb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004fa243
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x43522a
sub eax, 1
je 0x435225
sub eax, 1
je 0x435221
xor eax, eax
leave
ret
push 3
jmp 0x43522c
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x448550
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f335
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x584200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
xorps xmm0, xmm0
mov dword [ebp - 0x34], esi
push 0x40
lea ecx, [ebp - 0x28]
movups xmmword [ebp - 0x28], xmm0
call fcn.00418093
movups xmm0, xmmword [str.BufferedTransformation:_this_object_doesnt_allow_input]
mov edi, eax
mov dword [ebp - 0x18], 0x37
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], 0x3f
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x547060]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x547070]
movups xmmword [edi + 0x20], xmm0
mov eax, dword [0x547080]
mov dword [edi + 0x30], eax
mov ax, word [0x547084]
mov word [edi + 0x34], ax
mov al, byte [0x547086]
mov byte [edi + 0x36], al
mov byte [edi + 0x37], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [esi + 4], xmm0
mov dword [esi], vtable.CryptoPP::Exception.0
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 0
movups xmmword [esi + 0x10], xmm0
push 0x40
mov byte [ebp - 4], 1
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0xf
call fcn.00418093
mov dword [esi + 0x10], eax
mov dword [esi + 0x20], 0x37
mov dword [esi + 0x24], 0x3f
movups xmm0, xmmword [edi]
push 0x40
push edi
movups xmmword [eax], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [eax + 0x20], xmm0
movq xmm0, qword [edi + 0x30]
movq qword [eax + 0x30], xmm0
mov dword [esi], vtable.CryptoPP::NotImplemented.0
call fcn.004c997e
add esp, 8
mov dword [esi], vtable.CryptoPP::InputRejecting_class_CryptoPP::BufferedTransformation_::InputRejected.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ca2b7
mov esp, ebp
pop ebp
ret
Function at 0x449690
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f6a5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x584200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
xorps xmm0, xmm0
mov dword [ebp - 0x34], esi
push 0x40
lea ecx, [ebp - 0x28]
movups xmmword [ebp - 0x28], xmm0
call fcn.00418093
movups xmm0, xmmword [str.Integer:_no_integer_satisfies_the_given_parameters]
mov edi, eax
mov dword [ebp - 0x18], 0x32
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], 0x3f
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x5470ec]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x5470fc]
movups xmmword [edi + 0x20], xmm0
mov ax, word [0x54710c]
mov word [edi + 0x30], ax
mov byte [edi + 0x32], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [esi + 4], xmm0
mov dword [esi], vtable.CryptoPP::Exception.0
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 6
movups xmmword [esi + 0x10], xmm0
push 0x40
mov byte [ebp - 4], 1
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0xf
call fcn.00418093
mov dword [esi + 0x10], eax
mov dword [esi + 0x20], 0x32
mov dword [esi + 0x24], 0x3f
movups xmm0, xmmword [edi]
push 0x40
push edi
movups xmmword [eax], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [eax + 0x20], xmm0
mov cx, word [edi + 0x30]
mov word [eax + 0x30], cx
mov cl, byte [edi + 0x32]
mov byte [eax + 0x32], cl
call fcn.004c997e
mov eax, esi
add esp, 8
mov dword [eax], vtable.CryptoPP::Integer::RandomNumberNotFound.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ca2b7
mov esp, ebp
pop ebp
ret
Function at 0x45db20
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 0x10]
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
test edx, edx
je 0x45dc2f
push edi
cmp edx, 2
jb 0x45dc12
lea eax, [edx - 1]
lea edi, [edx*4 - 4]
lea eax, [esi + eax*4]
add edi, ebp
cmp ebp, eax
ja 0x45db5e
cmp edi, esi
jae 0x45dc12
mov edi, esi
push ebx
cmp edx, 0x10
jb 0x45dbd9
mov eax, edx
mov ebx, edx
and eax, 0xf
sub ebx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ebx
lea eax, [ebp + 0x10]
lea ebx, [esi + 0x30]
sub edi, ebp
nop
movups xmm0, xmmword [eax - 0x10]
add ecx, 0x10
lea eax, [eax + 0x40]
lea ebx, [ebx + 0x40]
movups xmm1, xmmword [ebx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ebx - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [ebx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, dword [esp + 0x20]
jb 0x45db80
cmp dword [esp + 0x10], 2
jb 0x45dc0d
jmp 0x45dbdb
sub edi, ebp
mov ebx, edx
lea eax, [ecx*4]
and ebx, 0xfffffffe
add eax, ebp
nop dword [eax]
movq xmm0, qword [eax]
lea eax, [eax + 8]
movq xmm1, qword [edi + eax - 8]
add ecx, 2
pxor xmm1, xmm0
movq qword [eax - 8], xmm1
cmp ecx, ebx
jb 0x45dbf0
pop ebx
cmp ecx, edx
jae 0x45dc2e
lea eax, [ecx*4]
sub esi, ebp
add eax, ebp
sub edx, ecx
nop
mov ecx, dword [eax + esi]
lea eax, [eax + 4]
xor dword [eax - 4], ecx
sub edx, 1
jne 0x45dc20
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x4688d0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53235d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x584200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0xf0000000
push 1
push 0
push 0
push esi
mov dword [esi], 0
call edi
test eax, eax
jne 0x468946
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 8
push 1
push 0
push str.Crypto_RNG
push esi
mov ebx, eax
call edi
test eax, eax
jne 0x468946
push 0x28
push 1
push eax
push str.Crypto_RNG
push esi
call edi
test eax, eax
je 0x468964
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ca2b7
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CryptAcquireContext
lea ecx, [ebp - 0x28]
call fcn.00403ac3
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.00468a60
push 0x5734d4
lea eax, [ebp - 0x50]
push eax
call fcn.004cf71b
int3

Function at 0x468e70
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532449
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x584200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x5918c0]
mov esi, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x590f14]
cmp eax, dword [ecx + 4]
jg 0x468ee8
push esi
push dword [ebp + 0xc]
push dword [0x590f10]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x468f2f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ca2b7
mov esp, ebp
pop ebp
ret 8
push 0x590f14
call fcn.004c9753
add esp, 4
cmp dword [0x590f14], 0xffffffff
jne 0x468eb8
mov ecx, 0x590f10
mov dword [ebp - 4], 0
call fcn.004688d0
push 0x540550
call fcn.004c9d0e
push 0x590f14
mov dword [ebp - 4], 0xffffffff
call fcn.004c9702
add esp, 8
jmp 0x468eb8
push 0x548e20
lea ecx, [ebp - 0x28]
call fcn.00403ac3
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x50]
call fcn.00468a60
push 0x5734d4
lea eax, [ebp - 0x50]
push eax
call fcn.004cf71b
int3
Function at 0x468f60
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532491
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x584200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x58]
push 1
call fcn.00435f50
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x58], vtable.CryptoPP::NonblockingRng.0
call fcn.004688d0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x5918c0]
mov dword [ebp - 4], 0
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x590f14]
cmp eax, dword [ecx + 4]
jg 0x46900d
push esi
push dword [ebp + 0x10]
push dword [0x590f10]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x469051
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], vtable.CryptoPP::NonblockingRng.0
test eax, eax
je 0x468ff3
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ca2b7
mov esp, ebp
pop ebp
push 0x590f14
call fcn.004c9753
add esp, 4
cmp dword [0x590f14], 0xffffffff
jne 0x468fc8
mov ecx, 0x590f10
mov byte [ebp - 4], 1
call fcn.004688d0
push 0x540550
call fcn.004c9d0e
push 0x590f14
mov byte [ebp - 4], 0
call fcn.004c9702
add esp, 8
jmp 0x468fc8
push 0x548e20
lea ecx, [ebp - 0x28]
call fcn.00403ac3
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x50]
call fcn.00468a60
push 0x5734d4
lea eax, [ebp - 0x50]
push eax
call fcn.004cf71b
int3
Function at 0x469b80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x8c
mov eax, dword [0x584200]
xor eax, esp
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0x9c]
mov eax, ebx
shl eax, 7
push ebp
push esi
lea ebp, [ebx + ebx]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
movups xmm0, xmmword [eax + ecx - 0x40]
push edi
movups xmmword [esp + 0x58], xmm0
movups xmm0, xmmword [eax + ecx - 0x30]
movups xmmword [esp + 0x68], xmm0
movups xmm0, xmmword [eax + ecx - 0x20]
movups xmmword [esp + 0x78], xmm0
movups xmm0, xmmword [eax + ecx - 0x10]
movups xmmword [esp + 0x88], xmm0
test ebp, ebp
je 0x469cb0
mov edi, edx
lea esi, [ecx + 2]
xor ecx, ecx
nop word [eax + eax]
movzx eax, byte [esi - 2]
xor byte [esp + ecx + 0x58], al
movzx eax, byte [esi - 1]
xor byte [esp + ecx + 0x59], al
movzx eax, byte [esi]
xor byte [esp + ecx + 0x5a], al
movzx eax, byte [esi + 1]
add esi, 4
xor byte [esp + ecx + 0x5b], al
add ecx, 4
cmp ecx, 0x40
jb 0x469c00
xor eax, eax
nop dword [eax]
lea edx, [esp + 0x58]
xor ecx, ecx
add edx, eax
je 0x469c3c
mov ecx, dword [edx]
mov dword [esp + eax + 0x18], ecx
add eax, 4
cmp eax, 0x40
jb 0x469c30
lea eax, [esp + 0x18]
push 8
push eax
call fcn.004bc010
add esp, 8
xor eax, eax
nop dword [eax]
mov edx, dword [esp + eax + 0x18]
lea ecx, [esp + 0x58]
add ecx, eax
je 0x469c6e
mov dword [ecx], edx
add eax, 4
cmp eax, 0x40
jb 0x469c60
movups xmm0, xmmword [esp + 0x58]
movups xmmword [edi], xmm0
movups xmm0, xmmword [esp + 0x68]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [esp + 0x78]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [esp + 0x88]
movups xmmword [edi + 0x30], xmm0
add edi, 0x40
sub ebp, 1
jne 0x469bf5
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
test ebx, ebx
je 0x469d05
mov esi, edx
mov edi, ebx
mov edx, ecx
nop word [eax + eax]
xor ecx, ecx
mov al, byte [esi + ecx]
inc ecx
mov byte [edx], al
inc edx
cmp ecx, 0x40
jb 0x469cc2
sub esi, 0xffffff80
sub edi, 1
jne 0x469cc0
mov edi, dword [esp + 0x10]
mov ecx, ebx
shl ecx, 6
add edi, 0x40
add ecx, dword [esp + 0x14]
mov edx, edi
mov esi, 0x40
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
inc ecx
sub esi, 1
jne 0x469cf0
sub edi, 0xffffff80
sub ebx, 1
jne 0x469ce6
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ca2b7
add esp, 0x8c
ret
Function at 0x46b8a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x14]
cmp eax, 4
jb 0x46b8d4
mov esi, eax
shr esi, 2
nop dword [eax]
mov ecx, dword [edi]
sub eax, 4
xor ecx, dword [edx]
add edi, 4
or ebx, ecx
add edx, 4
sub esi, 1
jne 0x46b8c0
mov esi, ebx
mov ecx, ebx
shr esi, 8
xor ebp, ebp
or esi, ebx
shr ecx, 0x10
and esi, 0xff00
or esi, ecx
movzx ecx, bl
shr esi, 8
or esi, ecx
test eax, eax
je 0x46b9b4
mov ebx, edi
sub ebx, edx
cmp eax, 8
jb 0x46b99a
mov ecx, eax
xorps xmm4, xmm4
and ecx, 0xfffffff8
xorps xmm3, xmm3
mov dword [esp + 0x1c], ecx
lea ecx, [edx + 4]
nop dword [eax]
movd xmm2, dword [edi + ebp]
lea ecx, [ecx + 8]
movd xmm1, dword [ecx - 0xc]
xorps xmm0, xmm0
punpcklbw xmm2, xmm0
add ebp, 8
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [ecx - 8]
por xmm4, xmm2
movd xmm2, dword [ebx + ecx - 8]
punpcklbw xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp ebp, dword [esp + 0x1c]
jb 0x46b920
por xmm3, xmm4
movaps xmm0, xmm3
ret
psrldq xmm0, 8
por xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd ecx, xmm3
or esi, ecx
cmp ebp, eax
jae 0x46b9b4
lea edi, [edx + ebp]
sub eax, ebp
nop
movzx edx, byte [ebx + edi]
lea edi, [edi + 1]
movzx ecx, byte [edi - 1]
xor edx, ecx
or esi, edx
sub eax, 1
jne 0x46b9a0
pop edi
test esi, esi
pop esi
pop ebp
sete al
pop ebx
ret
Function at 0x46b9c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x18
test eax, eax
je 0x46bb57
mov edx, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x24]
push edi
cmp eax, 4
jb 0x46ba03
mov edi, eax
shr edi, 2
mov ecx, dword [edx]
sub eax, 4
xor ecx, dword [ebx]
add edx, 4
mov dword [esi], ecx
add ebx, 4
add esi, 4
sub edi, 1
jne 0x46b9e8
mov dword [esp + 0x34], eax
push ebp
xor ebp, ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
test eax, eax
je 0x46bb53
cmp eax, 8
jb 0x46bb38
lea ecx, [ebx - 1]
lea edi, [esi - 1]
add ecx, eax
add edi, eax
cmp esi, ecx
ja 0x46ba35
cmp edi, ebx
jae 0x46bb38
lea ecx, [edx - 1]
add ecx, eax
cmp esi, ecx
ja 0x46ba46
cmp edi, edx
jae 0x46bb38
cmp eax, 0x40
jb 0x46baec
mov edi, eax
mov ecx, eax
and edi, 0x3f
mov eax, esi
sub eax, ebx
mov dword [esp + 0x24], edi
sub ecx, edi
mov dword [esp + 0x10], eax
mov edi, edx
mov dword [esp + 0x20], ecx
sub edi, ebx
lea ecx, [ebx + 0x10]
mov ebx, dword [esp + 0x10]
mov eax, edx
sub eax, esi
mov dword [esp + 0x1c], eax
lea eax, [esi + 0x20]
nop
movups xmm0, xmmword [ecx - 0x10]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [edx + ebp]
lea eax, [eax + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [eax - 0x60], xmm1
movups xmm1, xmmword [edi + ecx - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x30]
movups xmmword [ebx + ecx - 0x40], xmm1
mov ebx, dword [esp + 0x1c]
movups xmm1, xmmword [ebx + eax - 0x40]
mov ebx, dword [esp + 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x20]
movups xmmword [eax - 0x40], xmm1
movups xmm1, xmmword [edx + ebp + 0x30]
add ebp, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
cmp ebp, dword [esp + 0x20]
jb 0x46ba80
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x14]
jb 0x46bb34
jmp 0x46baf0
mov edi, edx
sub edi, ebx
and eax, 0xfffffff8
lea ecx, [ebx + ebp]
mov dword [esp + 0x20], eax
mov eax, esi
sub eax, ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
nop word [eax + eax]
movq xmm1, qword [ecx + edi]
lea ecx, [ecx + 8]
movq xmm0, qword [ecx - 8]
add ebp, 8
pxor xmm1, xmm0
movq qword [ecx + edx - 8], xmm1
cmp ebp, dword [esp + 0x20]
jb 0x46bb10
mov edx, dword [esp + 0x18]
cmp ebp, eax
jae 0x46bb53
sub edx, ebx
lea edi, [ebx + ebp]
sub esi, ebx
sub eax, ebp
mov cl, byte [edi + edx]
lea edi, [edi + 1]
xor cl, byte [edi - 1]
mov byte [edi + esi - 1], cl
sub eax, 1
jne 0x46bb41
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x46bb60
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46bc81
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
cmp eax, 4
jb 0x46bb93
mov edi, eax
shr edi, 2
mov ecx, dword [esi]
sub eax, 4
xor dword [edx], ecx
add esi, 4
add edx, 4
sub edi, 1
jne 0x46bb81
push ebx
xor ebx, ebx
test eax, eax
je 0x46bc7e
cmp eax, 8
jb 0x46bc65
lea ecx, [esi - 1]
lea edi, [edx - 1]
add ecx, eax
add edi, eax
cmp edx, ecx
ja 0x46bbbd
cmp edi, esi
jae 0x46bc65
mov edi, esi
push ebp
cmp eax, 0x40
jb 0x46bc39
mov ecx, eax
mov ebp, eax
and ecx, 0x3f
sub ebp, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], ebp
lea ecx, [edx + 0x10]
lea ebp, [esi + 0x30]
sub edi, edx
nop
movups xmm0, xmmword [ecx - 0x10]
add ebx, 0x40
lea ebp, [ebp + 0x40]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [ebp - 0x70]
pxor xmm1, xmm0
movups xmmword [ecx - 0x50], xmm1
movups xmm0, xmmword [ecx - 0x40]
movups xmm1, xmmword [edi + ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm0, xmmword [ecx - 0x30]
movups xmm1, xmmword [ebp - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [ecx - 0x30], xmm1
movups xmm1, xmmword [ecx - 0x20]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
cmp ebx, dword [esp + 0x20]
jb 0x46bbe0
cmp dword [esp + 0x10], 8
jb 0x46bc60
jmp 0x46bc3b
sub edi, edx
mov ebp, eax
lea ecx, [ebx + edx]
and ebp, 0xfffffff8
movq xmm0, qword [ecx]
lea ecx, [ecx + 8]
movq xmm1, qword [edi + ecx - 8]
add ebx, 8
pxor xmm1, xmm0
movq qword [ecx - 8], xmm1
cmp ebx, ebp
jb 0x46bc43
pop ebp
cmp ebx, eax
jae 0x46bc7e
sub esi, edx
lea edi, [ebx + edx]
sub eax, ebx
nop dword [eax]
mov cl, byte [edi + esi]
lea edi, [edi + 1]
xor byte [edi - 1], cl
sub eax, 1
jne 0x46bc70
pop ebx
pop edi
pop esi
pop ecx
ret