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

Disassembly:
push 0x34
mov eax, 0x531c43
call fcn.004e4785
mov esi, edx
mov edi, ecx
xor ebx, ebx
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], ebx
jb 0x45aa20
mov eax, dword [esi]
jmp 0x45aa22
mov eax, esi
xor ecx, ecx
mov edx, edi
mov word [eax], cx
lea ecx, [ebp - 0x2c]
call fcn.00427372
lea eax, [ebp - 0x34]
mov dword [ebp - 4], ebx
push eax
push 0x20019
push ebx
push str.SoftwarePsiphon3
push SysReAllocString
mov dword [ebp - 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x45aa78
push eax
push edi
push str.ReadRegistryStringValue
xor ebx, ebx
push str._s:_RegOpenKeyEx_failed_for__hs_with_code__ld
inc ebx
push ebx
push 0
call fcn.0043a05d
add esp, 0x18
mov byte [ebp - 0x2d], 0
jmp 0x45ab5e
push dword [ebp - 0x34]
lea ecx, [ebp - 0x40]
call fcn.0041ffcf
add esp, 4
xor edx, edx
lea ecx, [ebp - 0x38]
push ecx
xor ebx, ebx
lea eax, [ebp - 0x2c]
push edx
inc ebx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
push edx
cmovae eax, dword [ebp - 0x2c]
push edx
push eax
push dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45aabf
push eax
push edi
push str.ReadRegistryStringValue
push str._s:_RegQueryValueExW_1__failed_for__hs_with_code__ld
jmp 0x45ab32
mov eax, dword [ebp - 0x38]
test al, 1
je 0x45aad4
push eax
push edi
push str.ReadRegistryStringValue
push str._s:_RegQueryValueExW_1__for__hs_says_bufferLength_is_not_a_multiple_of_sizeof_wchar_t_:__ld
jmp 0x45ab32
test eax, eax
je 0x45aae5
shr eax, 1
mov ecx, esi
push 0
dec eax
push eax
call fcn.00431af8
cmp dword [esi + 0x14], 8
jb 0x45aaed
mov esi, dword [esi]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x38]
push ecx
push esi
lea ecx, [ebp - 0x3c]
push ecx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45ab1f
push eax
push edi
push str.ReadRegistryStringValue
push str._s:_RegQueryValueExW_2__failed_for__hs_with_code__ld
jmp 0x45ab32
cmp dword [ebp - 0x3c], ebx
je 0x45ab43
push dword [ebp - 0x3c]
push edi
push str.ReadRegistryStringValue
push str._s:_RegQueryValueExW_says_type_of__hs_is__ld__not_REG_SZ
push ebx
push 0
call fcn.0043a05d
add esp, 0x18
mov byte [ebp - 0x2d], 0
jmp 0x45ab46
mov byte [ebp - 0x2d], bl
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 0x40]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00427b8c
mov al, byte [ebp - 0x2d]
call fcn.004e472f
ret
Function at 0x45ae70
Capabilities:
Encode data using base64 via winapi

Disassembly:
push 0x24
mov eax, 0x52f98d
call fcn.004e4785
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 0x45aeb6
push 0x550335
mov ecx, esi
call fcn.004147d9
jmp 0x45af3a
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.00416b9d
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 0x45af05
push 0x550335
mov ecx, esi
call fcn.004147d9
xor ebx, ebx
jmp 0x45af2f
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.00416ec8
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00416ab1
mov eax, esi
call fcn.004e472f
ret

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

Disassembly:
push 0x28
mov eax, 0x531d34
call fcn.004e4785
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 0x45af67
mov eax, dword [edi]
jmp 0x45af69
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 0x45af90
push 0x550335
mov ecx, esi
call fcn.004147d9
jmp 0x45b009
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.00416b9d
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 0x45afc4
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 0x45afe7
push 0x550335
call fcn.004147d9
push 0
jmp 0x45afff
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.00416ec8
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00416ab1
mov eax, esi
call fcn.004e472f
ret
Function at 0x45c499
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x532103
call fcn.004e4751
mov esi, edx
push dword [0x5e47b0]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x45c4db
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.CopyToClipboard
push str._s:_OpenClipboard_failed:__d
push 1
push 0
call fcn.0043a05d
add esp, 0x14
xor al, al
jmp 0x45c5d6
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x45c500
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.CopyToClipboard
push str._s:_EmptyClipboard_failed:__d
jmp 0x45c5bf
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
lea eax, [eax*2 + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x45c534
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.CopyToClipboard
push str._s:_GlobalAlloc_failed:__d
jmp 0x45c5bf
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
jne 0x45c557
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.CopyToClipboard
push str._s:_GlobalLock_failed:__d
jmp 0x45c5bf
cmp dword [esi + 0x14], 8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
jb 0x45c564
mov esi, dword [esi]
add eax, eax
push eax
push esi
push ecx
call fcn.004fd120
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov eax, dword [eax]
push edi
mov word [ecx + eax*2], dx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x45c5a5
call esi
test eax, eax
je 0x45c5a5
call esi
push eax
push str.CopyToClipboard
push str._s:_GlobalUnlock_failed:__d
jmp 0x45c5bf
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x45c5cc
call esi
push eax
push str.CopyToClipboard
push str._s:_SetClipboardData_failed:__d
push 1
push ebx
call fcn.0043a05d
add esp, 0x14
jmp 0x45c5ce
mov bl, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, bl
call fcn.004e471a
ret

Function at 0x45c650
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 [0x5e47ac]
and dword [edi], 0
and dword [ebx], 0
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
jne 0x45c693
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.GetResourceBytes___FindResource_failed___d_
push 0
push 0
call fcn.0043a05d
add esp, 0x10
xor al, al
jmp 0x45c6c4
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x45c6ae
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.GetResourceBytes___LoadResource_failed___d_
jmp 0x45c683
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 0x45c7d7
Capabilities:
Get common file path

Disassembly:
push 0x244
mov eax, 0x53217c
call fcn.004e4785
push 0x105
lea eax, [ebp - 0x220]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x45c888
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x250]
call fcn.00426565
push 0x5b4e5c
mov edx, eax
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x238]
call fcn.00425085
or dword [ebp - 4], 0xffffffff
pop ecx
push esi
push 1
lea ecx, [ebp - 0x250]
call fcn.00427b8c
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.00427b8c
test edi, edi
je 0x45c888
push str.SetProcessDpiAwareness
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x45c881
push 2
call eax
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, esi
call fcn.004e472f
ret
Function at 0x45c9c9
Capabilities:
Get local ipv4 addresses

Disassembly:
push 0x50
mov eax, 0x5321df
call fcn.004e4785
mov dword [ebp - 0x4c], ecx
mov eax, 0x3a98
xor ebx, ebx
mov dword [ebp - 0x44], eax
push 2
pop edi
push eax
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x50], esi
test esi, esi
je 0x45caed
lea eax, [ebp - 0x44]
push eax
push esi
push 0
push 0xe
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov edi, eax
cmp edi, 0x6f
jne 0x45ca3a
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
xor esi, esi
inc ebx
cmp ebx, 3
jge 0x45cabc
mov eax, dword [ebp - 0x44]
jmp 0x45c9e2
test edi, edi
jne 0x45cabc
mov eax, esi
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x45caad
push 2
pop edx
mov ecx, dword [ebx + 0xc]
cmp word [ecx], dx
jne 0x45caa3
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 0x16
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x28]
push eax
lea eax, [ecx + 4]
push eax
push edx
call dword [sym.imp.WS2_32.dll_inet_ntop]
test eax, eax
je 0x45caa0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.00427372
and dword [ebp - 4], 0
mov ecx, esi
push eax
call fcn.00424269
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.00427b8c
push 2
pop edx
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x45ca50
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 8]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x45ca46
mov esi, dword [ebp - 0x50]
jmp 0x45cad3
push edi
push str.GetLocalIPv4Addresses
push str._s___GetAdaptersAddresses_failed___d_
push 0
push 0
call fcn.0043a05d
add esp, 0x14
test esi, esi
je 0x45cae7
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
call fcn.004e472f
ret
push str.GetLocalIPv4Addresses
push str._s___HeapAlloc_failed
push 0
push 0
call fcn.0043a05d
add esp, 0x10
lea ecx, [ebp - 0x5c]
push str.GetLocalIPv4Addresses:2164:_memory_allocation_failed
call fcn.0040ea4b
push 0x5d8be0
lea eax, [ebp - 0x5c]
push eax
call fcn.004fd7fa
int3
Function at 0x45ffff
Capabilities:
Get common file path

Disassembly:
push 0x244
mov eax, 0x53217c
call fcn.004e4785
push 0x105
lea eax, [ebp - 0x220]
xor ebx, ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x4600df
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x250]
call fcn.00426565
push str.DNSAPI.DLL
mov edx, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x238]
call fcn.00425085
or dword [ebp - 4], 0xffffffff
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x250]
call fcn.00427b8c
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.00427b8c
test esi, esi
je 0x4600df
push str.DnsFlushResolverCache
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x4600c5
call eax
test eax, eax
jne 0x4600c1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.DnsFlushResolverCache_failed:__d
push ebx
push ebx
call fcn.0043a05d
add esp, 0x10
jmp 0x4600d4
mov bl, 1
jmp 0x4600d4
push str.GetProcAddress_DnsFlushResolverCache_failed
push ebx
push ebx
call fcn.0043a05d
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov al, bl
jmp 0x4600f0
push str.LoadLibrary_DNSAPI_failed
push ebx
push ebx
call fcn.0043a05d
add esp, 0xc
xor al, al
call fcn.004e472f
ret

Function at 0x46010a
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.004fd6a0
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 0x460135
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.004e43cd
push esi
push ebx
mov edi, eax
push esi
push edi
call fcn.0050dee9
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 0x46018c
call fcn.004e3bd1
mov eax, dword [ebp - 0x10]
jmp 0x460193
call fcn.004e3bd1
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x474e90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5288f6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5dc390]
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.004fc6fb
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x474edf
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x474ef0
push 0x44
push esi
call fcn.004e43bf
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 0x47cbe0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533f29
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5dc390]
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 [0x5e4884], 0
jne 0x47cc2d
call fcn.0046e8a0
mov dword [0x5e4884], 0x463ff0
mov esi, dword [ebp + 8]
mov ecx, 2
mov dword [esi], vtable.CryptoPP::Integer.0
mov dword [esi + 8], 2
call fcn.00473c10
mov ecx, 8
call fcn.0047eb20
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 0x47e8b0
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 0x47e979
cmp ecx, 8
jb 0x47e950
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 0x47e900
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 0x47e979
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 0x47e961
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
shl edi, 2
sub esi, edi
jne 0x47e98f
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 0x47ea66
cmp esi, 0x20
jb 0x47ea47
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 0x47e9e2
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 0x47ea66
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 0x47ea56
pop edi
pop esi
test dl, dl
pop ebp
sete al
pop ebx
add esp, 0xc
ret
Function at 0x487a10
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 0x487a5d
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 0x487a40
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 0x487a80
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 0x487b1d
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 0x487ae0
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 0x489e5e
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x489fc4
push ebx
mov edx, 0x10000000
cmp eax, 0x7c
je 0x489fc3
cmp eax, 0x29
jne 0x489e96
cmp dword [esi + 0x10], 0
jne 0x489fc3
test dword [esi + 0x50], edx
je 0x489fd0
cmp eax, 0x2e
jne 0x489eb1
push 5
lea ecx, [esi + 0x24]
call fcn.0048b5f9
mov ecx, esi
call fcn.0048b639
jmp 0x489fae
cmp eax, 0x5c
jne 0x489f0c
mov ecx, esi
call fcn.0048b639
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x489ee3
cmp byte [esi + 0x48], 0x62
jne 0x489ee3
push 4
lea ecx, [esi + 0x24]
call fcn.0048b5f9
mov ecx, esi
call fcn.0048b639
jmp 0x489fb5
test eax, eax
je 0x489f00
cmp byte [esi + 0x48], 0x42
jne 0x489f00
push 4
lea ecx, [esi + 0x24]
call fcn.0048b5f9
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x489ed7
mov ecx, esi
call fcn.00489fd8
jmp 0x489fae
cmp eax, 0x5b
jne 0x489f2c
mov ecx, esi
call fcn.0048b639
mov ecx, esi
call fcn.0048a38d
cmp dword [esi + 0x4c], 0x5d
je 0x489ea5
push 4
jmp 0x489fd2
cmp eax, 0x28
jne 0x489f54
mov ecx, esi
call fcn.0048b639
mov ecx, esi
call fcn.0048b9eb
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x489fd0
mov ecx, esi
call fcn.0048b639
jmp 0x489faa
cmp eax, 0x5e
jne 0x489f60
push 2
jmp 0x489ecf
cmp eax, 0x24
jne 0x489f6c
push 3
jmp 0x489ecf
cmp eax, 0x2a
je 0x489fcc
cmp eax, 0x2b
je 0x489fcc
cmp eax, 0x3f
je 0x489fcc
cmp eax, 0x7b
je 0x489fcc
cmp eax, 0x7d
jne 0x489f8a
test dword [esi + 0x50], edx
je 0x489fc8
cmp eax, 0x5d
jne 0x489f94
test dword [esi + 0x50], edx
je 0x489f25
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00489815
mov ecx, esi
call fcn.0048b639
mov bl, 1
test bl, bl
je 0x489fb5
mov ecx, esi
call fcn.0048b662
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x489e70
pop ebx
mov al, cl
pop esi
ret
push 6
jmp 0x489fd2
push 0xa
jmp 0x489fd2
push 5
call fcn.004d27f5
int3