joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457c0a
Capabilities:
Encode data using base64 via winapi

Disassembly:
push 0x24
mov eax, 0x5252b2
call fcn.004dacdd
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov ebx, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
lea eax, [ebp - 0x2c]
push eax
xor ecx, ecx
push ecx
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 0x30], ecx
push edi
mov dword [ebp - 0x2c], ecx
call ebx
test eax, eax
jne 0x457c50
push 0x5432b5
mov ecx, esi
call fcn.004180bb
jmp 0x457cd4
xor eax, eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
push eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
inc eax
push eax
call fcn.0041a47d
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push SysReAllocString
push dword [ebp + 8]
push edi
call ebx
test eax, eax
jne 0x457c9f
push 0x5432b5
mov ecx, esi
call fcn.004180bb
xor ebx, ebx
jmp 0x457cc9
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x28]
xor ebx, ebx
mov byte [ecx + eax], bl
lea eax, [ebp - 0x28]
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], ebx
push eax
mov byte [esi], bl
call fcn.0041a7a8
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0041a391
mov eax, esi
call fcn.004dac87
ret

Function at 0x457cdc
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0x28
mov eax, 0x5274ac
call fcn.004dacdd
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x30], esi
xor edx, edx
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
jb 0x457d01
mov eax, dword [edi]
jmp 0x457d03
mov eax, edi
mov ebx, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea ecx, [ebp - 0x30]
push edx
push edx
push ecx
push edx
push 1
push dword [edi + 0x10]
push eax
call ebx
test eax, eax
jne 0x457d2a
push 0x5432b5
mov ecx, esi
call fcn.004180bb
jmp 0x457da3
xor eax, eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
push eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.0041a47d
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x10]
cmovae eax, dword [ebp - 0x2c]
cmp dword [edi + 0x14], 0x10
jb 0x457d5e
mov edi, dword [edi]
push 0
push 0
lea edx, [ebp - 0x30]
push edx
push eax
push 1
push ecx
push edi
call ebx
mov ecx, esi
test eax, eax
jne 0x457d81
push 0x5432b5
call fcn.004180bb
push 0
jmp 0x457d99
xor ebx, ebx
mov dword [esi + 0x14], 0xf
lea eax, [ebp - 0x2c]
mov dword [esi + 0x10], ebx
push eax
mov byte [esi], bl
call fcn.0041a7a8
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0041a391
mov eax, esi
call fcn.004dac87
ret
Function at 0x45825a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6c8370]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push eax
push eax
push 0x59
push 0x400
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
mov ebx, eax
test ebx, ebx
jg 0x45829a
push 0x69a0fc
mov ecx, esi
call fcn.004293e6
jmp 0x4582eb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004da998
pop ecx
push ebx
mov edi, eax
push edi
push 0x59
push 0x400
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
jle 0x45828c
push edi
lea ecx, [ebp - 0x1c]
call fcn.004293e6
push edi
call fcn.004da19c
pop ecx
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0042a35d
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0042ab9c
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da18b
mov esp, ebp
pop ebp
ret
Function at 0x458c94
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0xa
push ecx
push dword [0x6d13e0]
and dword [edi], 0
and dword [ebx], 0
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
jne 0x458cd7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.GetResourceBytes___FindResource_failed___d_
push 0
push 0
call fcn.0043ceb9
add esp, 0x10
xor al, al
jmp 0x458d08
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x458cf2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.GetResourceBytes___LoadResource_failed___d_
jmp 0x458cc7
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push esi
push 0
mov dword [edi], eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [ebx], eax
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4599a0
Capabilities:
Get common file path

Disassembly:
push 0x244
mov eax, 0x5279de
call fcn.004dacdd
push 0x105
lea eax, [ebp - 0x220]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x459a51
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x250]
call fcn.004293e6
push 0x6a2b1c
mov edx, eax
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x238]
call fcn.0042818e
or dword [ebp - 4], 0xffffffff
pop ecx
push esi
push 1
lea ecx, [ebp - 0x250]
call fcn.0042ab9c
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push esi
push 1
lea ecx, [ebp - 0x238]
mov edi, eax
call fcn.0042ab9c
test edi, edi
je 0x459a51
push str.SetProcessDpiAwareness
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x459a4a
push 2
call eax
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, esi
call fcn.004dac87
ret

Function at 0x459ec6
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [ecx + 0xac]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret
Function at 0x45d026
Capabilities:
Get common file path

Disassembly:
push 0x244
mov eax, 0x5279de
call fcn.004dacdd
push 0x105
lea eax, [ebp - 0x220]
xor ebx, ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x45d106
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x250]
call fcn.004293e6
push str.DNSAPI.DLL
mov edx, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x238]
call fcn.0042818e
or dword [ebp - 4], 0xffffffff
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x250]
call fcn.0042ab9c
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push ebx
push 1
lea ecx, [ebp - 0x238]
mov esi, eax
call fcn.0042ab9c
test esi, esi
je 0x45d106
push str.DnsFlushResolverCache
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x45d0ec
call eax
test eax, eax
jne 0x45d0e8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.DnsFlushResolverCache_failed:__d
push ebx
push ebx
call fcn.0043ceb9
add esp, 0x10
jmp 0x45d0fb
mov bl, 1
jmp 0x45d0fb
push str.GetProcAddress_DnsFlushResolverCache_failed
push ebx
push ebx
call fcn.0043ceb9
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov al, bl
jmp 0x45d117
push str.LoadLibrary_DNSAPI_failed
push ebx
push ebx
call fcn.0043ceb9
add esp, 0xc
xor al, al
call fcn.004dac87
ret

Function at 0x45d131
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 0x44
xor edi, edi
lea eax, [ebp - 0x58]
push edi
push eax
mov ebx, ecx
call fcn.004f3cc0
add esp, 0xc
mov esi, ebx
xorps xmm0, xmm0
movups xmmword [ebp - 0x10], xmm0
push 2
lea ecx, [esi + 2]
pop edx
mov ax, word [esi]
add esi, edx
cmp ax, di
jne 0x45d15c
sub esi, ecx
xor ecx, ecx
sar esi, 1
inc esi
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004da998
push esi
push ebx
mov edi, eax
push esi
push edi
call fcn.005044a3
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
push edi
test eax, eax
je 0x45d1b3
call fcn.004da19c
mov eax, dword [ebp - 0x10]
jmp 0x45d1ba
call fcn.004da19c
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d1fb
Capabilities:
Create process on windows

Disassembly:
push 0x244
mov eax, 0x528046
call fcn.004dacdd
mov ebx, ecx
mov esi, dword [ebx]
cmp esi, dword [ebx + 4]
je 0x45d38a
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004f3cc0
add esp, 0xc
mov dword [ebp - 0x250], 0x104
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push str..htm
push 1
push 4
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
xor edi, edi
test eax, eax
jne 0x45d385
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x24c]
call fcn.004293e6
push 0x6a39e4
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], edi
call fcn.004293e6
mov byte [ebp - 4], 1
lea eax, [ebp - 0x234]
push dword [ebp - 0x224]
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x24c]
push edi
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.00436159
cmp eax, 0xffffffff
je 0x45d2ce
push 0xffffffffffffffff
push edi
push esi
push dword [ebp - 0x224]
lea ecx, [ebp - 0x24c]
push eax
call fcn.0042a4ab
add esi, 0x18
cmp dword [ebp - 0x238], 8
lea ecx, [ebp - 0x24c]
cmovae ecx, dword [ebp - 0x24c]
call fcn.0045d131
mov edi, eax
test edi, edi
jne 0x45d2fd
push str.LaunchApplication_failed
push 1
push eax
call fcn.0043ceb9
add esp, 0xc
push 0
push 1
lea ecx, [ebp - 0x234]
call fcn.0042ab9c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
push 0
push 1
call fcn.0042ab9c
jmp 0x45d385
test edi, edi
je 0x45d331
push 0x2710
push edi
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push 0x7d0
call dword [sym.imp.KERNEL32.DLL_Sleep]
test edi, edi
je 0x45d34c
push 0x2710
push edi
call dword [sym.imp.USER32.dll_WaitForInputIdle]
cmp dword [esi + 0x14], 8
jb 0x45d356
mov eax, dword [esi]
jmp 0x45d358
mov eax, esi
push 1
xor ecx, ecx
push ecx
push ecx
push eax
push 0x6a3998
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x45d382
push eax
push str.ShellExecute_failed___d_
push 0
push 0
call fcn.0043ceb9
add esp, 0x10
add esi, 0x18
cmp esi, dword [ebx + 4]
jne 0x45d321
call fcn.004dac87
ret
Function at 0x45f680
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52855d
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6c8370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0xc], 0
mov dword [ebp - 0x14], esi
mov dword [esi + 0x14], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 2
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esi], vtable.CryptoPP::PK_DefaultEncryptionFilter.1.0
mov dword [esi + 4], vtable.CryptoPP::PK_DefaultEncryptionFilter.0
mov dword [esi + 0x20], eax
push 0x18
mov dword [esi + 0x24], vtable.CryptoPP::ByteQueue.1.0
mov dword [esi + 0x28], vtable.CryptoPP::ByteQueue.0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [esi + 0x30], 1
mov dword [esi + 0x34], 0x100
call fcn.004da5e6
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 5
mov ecx, dword [esi + 0x34]
mov dword [edi + 8], ecx
test ecx, ecx
jne 0x45f72b
xor eax, eax
jmp 0x45f730
call fcn.0047e3d0
mov dword [edi + 0xc], eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi], 0
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov byte [ebp - 4], 0xb
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x45f774
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0xc], ecx
jmp 0x45f77a
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x472b00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ebb6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6c8370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x30]
xor al, al
mov ecx, dword [esi + 0x2c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
call fcn.00502bba
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x472b4f
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x472b60
push 0x44
push esi
call fcn.004da98a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4737d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ebb6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6c8370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x50]
xor al, al
mov ecx, dword [esi + 0x4c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
call fcn.00502bba
mov edx, dword [esi + 0x30]
xor al, al
mov ecx, dword [esi + 0x2c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
call fcn.00502bba
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x473831
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x473842
push 0x60
push esi
call fcn.004da98a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x47c480
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529a69
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6c8370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
cmp dword [0x6d13ec], 0
jne 0x47c4cd
call fcn.0046c560
mov dword [0x6d13ec], 0x461cb0
mov esi, dword [ebp + 8]
mov ecx, 2
mov dword [esi], vtable.CryptoPP::Integer.0
mov dword [esi + 8], 2
call fcn.004718d0
mov ecx, 8
call fcn.0047e3d0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [eax + 4], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
push 1
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov ecx, edi
push dword [ebp + 0xc]
mov edx, dword [edi]
push esi
mov dword [ebp - 0x10], 1
call dword [edx + 0x30]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47e160
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, ecx
mov ecx, esi
mov dword [esp + 0xc], edx
push edi
shr ecx, 2
xor ebx, ebx
xor edi, edi
test ecx, ecx
je 0x47e229
cmp ecx, 8
jb 0x47e200
mov ebx, ecx
lea eax, [edx + 0x10]
mov esi, ebp
and ebx, 0xfffffff8
sub esi, edx
xorps xmm3, xmm3
mov dword [esp + 0x14], esi
movaps xmm2, xmm3
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
nop word [eax + eax]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebp + edi*4]
add edi, 8
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [edx + eax - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp edi, ebx
jb 0x47e1b0
mov edx, dword [esp + 0x10]
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd ebx, xmm2
cmp edi, ecx
jae 0x47e229
mov esi, ebp
lea edx, [edx + edi*4]
sub esi, dword [esp + 0x10]
sub ecx, edi
add edi, ecx
mov eax, dword [edx + esi]
lea edx, [edx + 4]
xor eax, dword [edx - 4]
or ebx, eax
sub ecx, 1
jne 0x47e211
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
shl edi, 2
sub esi, edi
jne 0x47e23f
pop edi
xor eax, eax
test ebx, ebx
pop esi
pop ebp
sete al
pop ebx
add esp, 0xc
ret
add edx, edi
mov eax, ebx
mov dword [esp + 0x10], edx
add ebp, edi
shr eax, 0x10
mov edx, ebx
shr edx, 0x18
xor edi, edi
or dl, al
mov eax, ebx
shr eax, 8
or dl, al
or dl, bl
mov dword [esp + 0x14], edx
test esi, esi
je 0x47e316
cmp esi, 0x20
jb 0x47e2f7
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, ebp
and ecx, 0xffffffe0
sub edx, eax
xorps xmm3, xmm3
mov dword [esp + 0x18], edx
movaps xmm2, xmm3
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax + ebx - 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
por xmm3, xmm1
movups xmm1, xmmword [edi + ebp + 0x10]
add edi, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp edi, ecx
jb 0x47e292
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or dl, al
mov ebx, dword [esp + 0x10]
cmp edi, esi
jae 0x47e316
sub ebp, ebx
lea ecx, [edi + ebx]
sub esi, edi
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
or dl, al
sub esi, 1
jne 0x47e306
pop edi
pop esi
test dl, dl
pop ebp
sete al
pop ebx
add esp, 0xc
ret
Function at 0x4823e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
movaps xmm0, xmmword [eax]
lea edx, [esi - 1]
pxor xmm0, xmmword [edi]
movaps xmmword [eax], xmm0
cmp edx, 1
jbe 0x48242d
add edx, 0xfffffffe
lea ecx, [edi + 0x10]
shr edx, 1
inc edx
nop dword [eax]
movaps xmm0, xmmword [eax]
lea ecx, [ecx + 0x20]
aesenc xmm0, xmmword [ecx - 0x20]
movaps xmmword [eax], xmm0
aesenc xmm0, xmmword [ecx - 0x10]
movaps xmmword [eax], xmm0
sub edx, 1
jne 0x482410
movaps xmm0, xmmword [eax]
add esi, esi
aesenc xmm0, xmmword [edi + esi*8 - 0x10]
movaps xmmword [eax], xmm0
aesenclast xmm0, xmmword [edi + esi*8]
pop edi
movaps xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x482450
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x18]
sub esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
movaps xmm1, xmmword [eax]
movaps xmm0, xmmword [ecx]
mov eax, dword [ebp + 0x14]
pxor xmm0, xmm1
movaps xmmword [ecx], xmm0
movaps xmm0, xmmword [edx]
push esi
mov esi, dword [ebp + 0x10]
pxor xmm0, xmm1
movaps xmmword [edx], xmm0
push edi
mov edi, dword [ebp + 0x1c]
movaps xmm0, xmmword [esi]
pxor xmm0, xmm1
movaps xmmword [esi], xmm0
movaps xmm0, xmmword [eax]
pxor xmm0, xmm1
movaps xmmword [eax], xmm0
cmp edi, 1
jbe 0x4824ed
mov edi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
add edi, 0x10
dec ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 8]
nop
sub dword [esp + 0xc], 1
lea edi, [edi + 0x10]
movaps xmm1, xmmword [edi - 0x10]
movaps xmm0, xmmword [ecx]
aesenc xmm0, xmm1
movaps xmmword [ecx], xmm0
movaps xmm0, xmmword [edx]
aesenc xmm0, xmm1
movaps xmmword [edx], xmm0
movaps xmm0, xmmword [esi]
aesenc xmm0, xmm1
movaps xmmword [esi], xmm0
movaps xmm0, xmmword [eax]
aesenc xmm0, xmm1
movaps xmmword [eax], xmm0
jne 0x4824b0
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
add edi, edi
movaps xmm0, xmmword [ecx]
movaps xmm1, xmmword [eax + edi*8]
mov eax, dword [ebp + 0x14]
aesenclast xmm0, xmm1
movaps xmmword [ecx], xmm0
movaps xmm0, xmmword [edx]
aesenclast xmm0, xmm1
movaps xmmword [edx], xmm0
movaps xmm0, xmmword [esi]
aesenclast xmm0, xmm1
movaps xmmword [esi], xmm0
movaps xmm0, xmmword [eax]
aesenclast xmm0, xmm1
pop edi
movaps xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x482a60
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a100
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x6c8370]
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 eax, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov ecx, eax
mov dword [ebp - 0x60], ecx
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x482b31
push 0x37
push str.HMAC:_can_only_be_used_with_a_block_based_hash_function
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x50], al
call fcn.0041a4f7
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [ebp - 0x34], xmm0
push 0xffffffffffffffff
mov byte [ebp - 4], 1
lea eax, [ebp - 0x50]
push 0
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x38], vtable.CryptoPP::Exception.0
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0041a570
push 0x6c5374
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0
push eax
mov dword [ebp - 0x38], vtable.CryptoPP::InvalidArgument.0
call fcn.004f3e1a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov edi, eax
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x3c]
mov ebx, eax
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x20]
mov edi, eax
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x1c]
mov edx, dword [esi + 0x10]
push 1
lea ebx, [eax + edi*2]
push ebx
push dword [esi + 0xc]
call fcn.00423908
mov edi, dword [ebp - 0x5c]
add esp, 0xc
mov dword [esi + 0xc], ebx
mov ebx, dword [ebp - 0x58]
mov dword [esi + 0x10], eax
cmp edi, ebx
ja 0x482b86
push edi
push dword [ebp - 0x54]
push eax
call fcn.004f3740
add esp, 0xc
jmp 0x482ba5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov ecx, eax
push edi
push dword [ebp - 0x54]
mov eax, dword [ecx]
push dword [esi + 0x10]
call dword [eax + 0x2c]
mov ecx, dword [ebp - 0x60]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov edi, eax
mov ecx, ebx
sub ecx, edi
push ecx
mov ecx, dword [esi + 0x10]
add ecx, edi
push 0
push ecx
call fcn.004f3cc0
add esp, 0xc
mov dword [ebp - 0x54], 0
test ebx, ebx
je 0x482bf7
mov eax, dword [esi]
mov ecx, esi
mov ebx, dword [esi + 0x10]
call dword [eax + 0x3c]
mov edi, dword [esi + 0x10]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp - 0x54]
lea ecx, [eax + edi]
mov al, byte [ebx + edx]
xor al, 0x5c
mov byte [ecx + edx], al
mov eax, dword [esi + 0x10]
xor byte [edx + eax], 0x36
inc edx
mov dword [ebp - 0x54], edx
cmp edx, dword [ebp - 0x58]
jb 0x482bc5
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.004da18b
mov esp, ebp
pop ebp
ret 0xc