joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422f30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov ecx, dword [ebp + 0x10]
mov al, 1
test ecx, ecx
mov dword [esp + 0x14], ecx
je 0x422ff8
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
lea eax, [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
jmp 0x422f81
mov ebx, esi
call esi
mov dword [eax], 5
call ebx
cmp dword [eax], 4
jne 0x422ff6
mov eax, dword [esp + 0xc]
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
mov dword [esp + 0x18], 0
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
push dword [esp + 0x1c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
add esp, 4
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push dword [esp + 0x1c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422f70
mov eax, dword [esp + 0x18]
mov ebx, esi
cmp eax, 0xffffffff
je 0x422f7a
test eax, eax
jle 0x422ff6
add edi, eax
add dword [esp + 0xc], eax
mov esi, ebx
adc dword [esp + 0x10], 0
sub dword [esp + 0x14], eax
jne 0x422f81
mov al, 1
jmp 0x422ff8
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x423770
Capabilities:
Terminate process

Disassembly:
push edi
push esi
push eax
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea eax, [esp + 0x14]
mov dword [esp], eax
push 2
call edi
add esp, 4
push 0x524618
push eax
call fcn.0040cce0
add esp, 8
push 2
call edi
add esp, 4
push dword [esp]
push esi
push eax
call fcn.0040cf90
add esp, 0xc
push 2
call edi
add esp, 4
push 0x52462a
push eax
call fcn.0040cce0
add esp, 8
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop dword [eax]
Function at 0x45fc80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov dword [esp + 0x10], 0
mov dword [esp], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x10], 8
mov dword [esp + 0x11], 0x746f6f62
mov byte [esp + 0x15], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov byte [esp], 0xe
mov dword [esp + 4], 0x676e6974
mov dword [esp + 1], 0x746f6f42
mov byte [esp + 8], 0
mov esi, ecx
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x45fd55
mov eax, dword [ecx]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edx, esp
push edx
call dword [eax + 0x18]
lea eax, [esp + 0x10]
mov ecx, esi
push 0
push edi
push ebx
push eax
call fcn.004603c0
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x45fd55
mov edi, eax
mov eax, dword [ecx]
lea edx, [esp + 0x20]
push edx
call dword [eax + 0x18]
test byte [esp], 1
je 0x45fd36
push dword [esp + 8]
call fcn.00417920
add esp, 4
test byte [esp + 0x10], 1
je 0x45fd49
push dword [esp + 0x18]
call fcn.00417920
add esp, 4
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.0040cdf0
nop word [eax + eax]

Function at 0x460600
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov dword [esp + 0x14], 0
mov byte [esp + 0xc], 0xc
mov dword [esp], 0
mov dword [esp + 0xd], 0x6f626572
mov word [esp + 0x11], 0x746f
mov byte [esp + 0x13], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov byte [esp], 0x12
mov dword [esp + 1], 0x6f626552
mov dword [esp + 5], 0x6e69746f
mov word [esp + 9], 0x67
mov esi, ecx
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x4606ce
mov eax, dword [ecx]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edx, esp
push edx
call dword [eax + 0x18]
lea eax, [esp + 0xc]
mov ecx, esi
push 0
push edi
push ebx
push eax
call fcn.004603c0
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x4606ce
mov edi, eax
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
call dword [eax + 0x18]
test byte [esp], 1
je 0x4606af
push dword [esp + 8]
call fcn.00417920
add esp, 4
test byte [esp + 0xc], 1
je 0x4606c2
push dword [esp + 0x14]
call fcn.00417920
add esp, 4
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.0040cdf0
nop word cs:[eax + eax]
nop dword [eax]
Function at 0x463510
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
xor edi, edi
cmp dword [ecx + 0x40], 0
je 0x4636a4
mov esi, ecx
mov ecx, dword [ecx + 0x44]
test ecx, ecx
je 0x4636b9
mov eax, dword [esi + 0x54]
test al, 0x10
jne 0x463561
test al, 8
je 0x4636a2
mov eax, dword [esi + 0x4c]
mov dword [esp], eax
cmp byte [esi + 0x5a], 0
je 0x4635ed
mov ecx, dword [esi + 0x10]
xor ebx, ebx
sub ecx, dword [esi + 0xc]
mov eax, ecx
sar eax, 0x1f
jmp 0x463652
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x14]
je 0x46357b
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
call dword [eax + 0x34]
cmp eax, 0xffffffff
je 0x46366c
lea ebp, [esi + 0x48]
nop
mov dword [esp + 4], 0
lea ebx, [esp + 4]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x34]
mov edi, dword [ecx]
add edx, eax
push ebx
push edx
push eax
push ebp
call dword [edi + 0x14]
mov ebx, eax
mov edi, dword [esp + 4]
mov eax, dword [esi + 0x20]
sub edi, eax
push dword [esi + 0x40]
push edi
push 1
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
cmp eax, edi
mov edi, 0xffffffff
jne 0x4636a4
cmp ebx, 1
je 0x463580
cmp ebx, 2
je 0x4636a4
push dword [esi + 0x40]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
test eax, eax
jne 0x4636a4
jmp 0x4636a2
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, dword [esi + 0x24]
mov edi, dword [esi + 0x28]
sub edi, edx
test eax, eax
jle 0x463619
mov ecx, dword [esi + 0x10]
mov edx, edi
sar edx, 0x1f
sub ecx, dword [esi + 0xc]
imul ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, edi
adc eax, edx
xor ebx, ebx
jmp 0x463652
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x4636ae
mov ecx, dword [esi + 0x44]
sub eax, dword [esi + 8]
mov ebx, edi
sar ebx, 0x1f
mov ebp, dword [ecx]
push eax
push edx
push dword [esi + 0x20]
lea eax, [esp + 0xc]
push eax
call dword [ebp + 0x20]
mov ecx, dword [esi + 0x24]
sub ecx, eax
sub ecx, dword [esi + 0x20]
mov eax, ecx
sar eax, 0x1f
add ecx, edi
adc eax, ebx
mov bl, 1
xor edx, edx
neg ecx
sbb edx, eax
push 1
push edx
push ecx
push dword [esi + 0x40]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
add esp, 0x10
test eax, eax
je 0x463673
mov edi, 0xffffffff
jmp 0x4636a4
test bl, bl
je 0x46367d
mov eax, dword [esp]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x54], 0
xor edi, edi
mov eax, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, edi
xor ebx, ebx
mov ecx, edi
jmp 0x463559
call fcn.00463b20
int3
Function at 0x466a00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
push esi
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
push 0
push 0x8080
push esi
call fcn.0047fda0
add esp, 0xc
mov edi, eax
push 0x50
call fcn.00417780
add esp, 4
test edi, edi
mov byte [eax], 1
mov dword [eax + 4], edi
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x1c], 0xffffffff
mov dword [eax + 0x18], 0xffffffff
mov byte [eax + 0x20], 1
mov dword [eax + 0x44], 0
mov dword [eax + 0x40], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x38], 0
mov dword [ebx], eax
js 0x466a9e
mov ecx, eax
mov edx, esi
pop esi
pop edi
pop ebx
jmp fcn.00465f90
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
add esp, 4
push eax
push esi
push str.Unable_to_open__s:__s
push str.ziparchive
push 5
call fcn.0049c1e0
add esp, 0x14
mov eax, 0xfffffff5
pop esi
pop edi
pop ebx
ret

Function at 0x46a460
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], 1
mov dword [esp + 8], ebx
pop ebx
jmp fcn.00469e30

Function at 0x46aa40
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x340
mov edi, dword [ebp + 8]
lea esi, [esp + 0x2c]
push 0x30e
push 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
xorps xmm0, xmm0
xor ebx, ebx
test edi, edi
mov word [esp + 0x20], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov byte [esp + 8], 0
movaps xmmword [esp + 0x10], xmm0
je 0x46ab41
lea eax, [esp + 0x10]
push eax
push dword [edi]
call dword [sym.imp.AdbWinApi.dll_AdbGetUsbDeviceDescriptor]
add esp, 8
test al, al
je 0x46ab41
mov eax, esp
push eax
push dword [edi]
call dword [sym.imp.AdbWinApi.dll_AdbGetUsbInterfaceDescriptor]
add esp, 8
test al, al
je 0x46ab41
cmp byte [esp + 4], 2
jne 0x46ab41
mov eax, dword [esp + 0x18]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0xc], 0x100
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], eax
mov al, byte [esp + 0x14]
mov byte [esp + 0x30], al
movzx eax, word [esp + 0x15]
mov word [esp + 0x31], ax
mov al, byte [esp + 5]
mov byte [esp + 0x33], al
movzx eax, word [esp + 6]
mov word [esp + 0x34], ax
mov byte [esp + 0x38], 1
lea eax, [esp + 0x39]
push 1
push ecx
push eax
push dword [edi]
call dword [sym.imp.AdbWinApi.dll_AdbGetSerialNumber]
add esp, 0x10
test al, al
jne 0x46ab24
mov byte [esp + 0x39], 0
mov byte [esp + 0x239], 0
mov byte [esp + 0x139], 0
push esi
call ebx
add esp, 4
xor ebx, ebx
test eax, eax
sete bl
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x47f0a0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x47f0d8
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x47f0ce
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x47f0da
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x47f0c0
xor eax, eax
pop ebx
pop esi
ret

Function at 0x495690
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov al, byte [0x54a988]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
test al, al
je 0x49578e
push dword [0x54a984]
push dword [0x54a980]
push ebx
push esi
call fcn.004f7910
add esp, 0x10
mov dword [esp + 0xc], eax
mov eax, edi
and eax, 2
add eax, 2
push 0
push 0
push 0
push eax
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
je 0x49573a
mov edx, dword [esp + 0xc]
mov ebx, eax
mov eax, edi
mov ecx, 0xf001f
sub esi, edx
test al, 2
mov eax, 4
cmove ecx, eax
mov eax, dword [ebp + 0x18]
add eax, edx
push eax
push esi
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x495778
mov edi, eax
push 0x10
call fcn.00417780
add esp, 4
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0xc]
mov esi, eax
mov dword [eax], edi
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebx
jmp 0x495781
xor esi, esi
cmp dword [ebp + 0x18], 0
jne 0x495781
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ee
jne 0x495781
push 0x10
call fcn.00417780
add esp, 4
mov dword [eax], 0x52de73
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov esi, eax
mov dword [eax + 0xc], 0
jmp 0x495781
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x54a988
call fcn.00493a50
add esp, 4
test eax, eax
je 0x4956b2
xorps xmm0, xmm0
lea eax, [esp + 0x10]
mov dword [esp + 0x30], 0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x2c]
mov dword [0x54a984], 0
mov dword [0x54a980], eax
push 0x54a988
call fcn.00493ae0
add esp, 4
jmp 0x4956b2
Function at 0x497c80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
push esi
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
not eax
test ecx, ecx
je 0x497cb6
mov edx, dword [esp + 0x10]
nop word cs:[eax + eax]
nop
movzx esi, byte [edx]
movzx edi, al
shr eax, 8
inc edx
xor edi, esi
xor eax, dword [edi*4 + 0x52e010]
dec ecx
jne 0x497ca0
not eax
pop esi
pop edi
ret

Function at 0x497cc0
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x497cfd
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
xor ebp, ebp
nop word cs:[eax + eax]
mov eax, esi
sub eax, ebp
push eax
push edi
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
add esp, 0xc
test eax, eax
js 0x497d01
je 0x497d0f
add ebp, eax
add edi, eax
cmp ebp, esi
jb 0x497ce0
xor eax, eax
jmp 0x497d14
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, eax
xor eax, eax
sub eax, dword [ecx]
jmp 0x497d14
mov eax, 0xffffffea
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4a6d60
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 0x80
je 0x4a6d79
cmp eax, 0x100
je 0x4a6d79
cmp eax, 0xc0
jne 0x4a6d7e
jmp fcn.004a4a40
mov eax, 0xfffffffe
ret

Function at 0x4aab80
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [esp + 0x44]
lea eax, [edi - 0x10]
cmp eax, 0x7fffffe7
mov eax, 0xffffffff
ja 0x4aac8b
mov ecx, edi
and ecx, 7
jne 0x4aac8b
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov esi, 0x533020
test eax, eax
cmovne esi, eax
lea eax, [ecx + 8]
push edi
push dword [esp + 0x44]
mov dword [esp + 0x1c], eax
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
add esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
shr edi, 3
xor eax, eax
mov ebx, 1
movsd xmm0, qword [esi]
mov esi, esp
mov dword [esp + 0x10], edi
movsd qword [esp], xmm0
jmp 0x4aac14
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
inc eax
add ebx, edi
cmp eax, 6
je 0x4aac77
mov ebp, dword [esp + 0x14]
test edi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
je 0x4aac00
nop word cs:[eax + eax]
nop
movsd xmm0, qword [ebp]
movsd qword [esp + 8], xmm0
push dword [esp + 0x34]
push esi
push esi
call fcn.004a38e0
add esp, 0xc
mov eax, ebx
xor byte [esp + 7], bl
xor byte [esp + 6], bh
shr eax, 0x10
xor byte [esp + 5], al
mov eax, ebx
inc ebx
shr eax, 0x18
xor byte [esp + 4], al
movsd xmm0, qword [esp + 8]
movsd qword [ebp], xmm0
add ebp, 8
dec edi
jne 0x4aac30
jmp 0x4aac00
movsd xmm0, qword [esp]
mov eax, dword [esp + 0x3c]
movsd qword [eax], xmm0
mov eax, dword [esp + 0x44]
add eax, 8
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4aaca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov edi, dword [esp + 0x50]
mov eax, 0xffffffff
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
cmp edi, 0x18
jb 0x4aadf2
mov ecx, edi
and ecx, 0x80000007
jne 0x4aadf2
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov esi, dword [esp + 0x48]
lea ecx, [edi - 8]
mov dword [esp + 0x18], ecx
movsd xmm0, qword [eax]
add eax, 8
movsd qword [esp], xmm0
push ecx
push eax
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
add esp, 0xc
shr edi, 3
lea eax, [edi + edi*2]
lea ebx, [eax + eax - 6]
mov eax, 1
sub eax, edi
mov dword [esp + 0x20], eax
lea eax, [edi - 1]
mov edi, esp
mov dword [esp + 0x1c], eax
mov eax, 5
jmp 0x4aad52
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
add ebx, dword [esp + 0x20]
dec eax
cmp eax, 6
jae 0x4aadb6
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
test ebp, ebp
je 0x4aad40
nop word cs:[eax + eax]
nop dword [eax]
mov eax, ebx
xor byte [esp + 7], bl
xor byte [esp + 6], bh
shr eax, 0x10
xor byte [esp + 5], al
mov eax, ebx
shr eax, 0x18
xor byte [esp + 4], al
movsd xmm0, qword [esi + ebp*8 - 8]
movsd qword [esp + 8], xmm0
push dword [esp + 0x40]
push edi
push edi
call fcn.004a4690
add esp, 0xc
movsd xmm0, qword [esp + 8]
dec ebx
movsd qword [esi + ebp*8 - 8], xmm0
dec ebp
jne 0x4aad70
jmp 0x4aad40
mov ecx, dword [esp + 4]
mov eax, dword [esp]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov eax, 0x533020
test ecx, ecx
cmovne eax, ecx
lea ecx, [esp + 0x10]
push 8
push eax
push ecx
call sym.fastboot.exe_CRYPTO_memcmp
add esp, 0xc
mov ecx, eax
xor eax, eax
cmp ecx, 1
sbb eax, eax
not eax
or eax, dword [esp + 0x18]
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4ab590
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x10], 1
jne 0x4ab5ac
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.004a38e0
add esp, 0xc
ret
jmp fcn.004a4690
Function at 0x4abaf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov esi, dword [ecx]
test eax, eax
je 0x4abb3d
test esi, esi
je 0x4abb3d
nop word cs:[eax + eax]
nop
movzx ecx, byte [edx + esi]
inc esi
lea edi, [eax - 1]
xor cl, byte [ebp]
inc ebp
mov byte [ebx], cl
inc ebx
and esi, 0xf
je 0x4abb3f
cmp eax, 1
mov eax, edi
jne 0x4abb20
jmp 0x4abb3f
mov edi, eax
cmp edi, 0x10
jae 0x4abc67
test edi, edi
je 0x4abcc3
push dword [esp + 0x30]
push edx
push edx
call fcn.004a38e0
add esp, 0xc
cmp edi, 0x20
jb 0x4abca6
lea eax, [ebx + esi]
lea ecx, [edi + esi]
mov edx, dword [esp + 0x34]
mov dword [esp], eax
lea eax, [ebx + ecx]
mov dword [esp + 0xc], eax
lea eax, [ebp + ecx]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add ecx, edx
cmp dword [esp], eax
lea eax, [ebp + esi]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
setb byte [esp + 8]
cmp dword [esp + 4], eax
setb byte [esp + 4]
cmp dword [esp], ecx
lea ecx, [edx + esi]
setb dl
cmp ecx, eax
mov ah, byte [esp + 4]
setb cl
test byte [esp + 8], ah
jne 0x4abca6
and dl, cl
jne 0x4abca6
lea ecx, [ebp + esi + 0x10]
mov edx, edi
mov eax, edi
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x34]
and edx, 0xffffffe0
and eax, 0x1f
mov dword [esp], edx
lea ecx, [ecx + esi + 0x10]
mov dword [esp + 8], ecx
lea ecx, [ebx + esi + 0x10]
add esi, edx
mov dword [esp + 4], ecx
xor ecx, ecx
nop word [eax + eax]
mov edx, dword [esp + 0xc]
movups xmm0, xmmword [edx + ecx - 0x10]
movups xmm1, xmmword [edx + ecx]
mov edx, dword [esp + 8]
movups xmm2, xmmword [edx + ecx - 0x10]
movups xmm3, xmmword [edx + ecx]
mov edx, dword [esp + 4]
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [edx + ecx - 0x10], xmm2
movups xmmword [edx + ecx], xmm3
add ecx, 0x20
cmp dword [esp], ecx
jne 0x4abc00
cmp edi, dword [esp]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
jne 0x4abcb0
jmp 0x4abcc7
mov edi, dword [esp]
add ebx, 0x10
add ebp, 0x10
xor esi, esi
add edi, 0xfffffff0
cmp edi, 0xf
jbe 0x4abb48
mov dword [esp], edi
push dword [esp + 0x30]
push edx
push edx
mov edi, edx
call fcn.004a38e0
mov edx, edi
add esp, 0xc
cmp esi, 0xf
ja 0x4abc50
add esi, 0xfffffffc
nop word cs:[eax + eax]
nop
mov eax, dword [edx + esi + 4]
xor eax, dword [ebp + esi + 4]
mov dword [ebx + esi + 4], eax
add esi, 4
cmp esi, 0xc
jb 0x4abc90
jmp 0x4abc50
mov eax, edi
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
movzx ecx, byte [edi + esi]
xor cl, byte [ebp + esi]
dec eax
mov byte [ebx + esi], cl
lea esi, [esi + 1]
jne 0x4abcb0
jmp 0x4abcc7
mov edx, dword [esp + 0x38]
mov dword [edx], esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4ac810
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx]
mov ecx, dword [ecx + 4]
mov ebx, dword [eax + 4]
mov edx, dword [eax]
cmp ecx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp], esi
cmovb ebx, ecx
test ebx, ebx
je 0x4ac880
xor eax, eax
xor ebp, ebp
nop word cs:[eax + eax]
nop dword [eax + eax]
mov ecx, dword [esp]
mov edi, dword [edx + ebp*4]
mov ecx, dword [ecx + ebp*4]
mov esi, ecx
sub esi, edi
xor edi, ecx
xor esi, ecx
or esi, edi
xor esi, ecx
mov ecx, edi
dec edi
sar esi, 0x1f
xor ecx, 0x80000000
or esi, 1
test edi, ecx
cmovns eax, esi
inc ebp
cmp ebx, ebp
jne 0x4ac850
jmp 0x4ac882
xor eax, eax
mov ecx, dword [esp + 8]
mov edi, edx
mov edx, dword [esp + 4]
mov ebx, ecx
sub ebx, edx
jae 0x4ac91b
mov ebx, edx
xor esi, esi
sub ebx, ecx
cmp ebx, 7
jbe 0x4ac8f8
mov ebp, ebx
lea esi, [edi + ecx*4 + 0x10]
pxor xmm0, xmm0
pxor xmm1, xmm1
and ebp, 0xfffffff8
add ecx, ebp
mov dword [esp], ebp
nop word [eax + eax]
movdqu xmm2, xmmword [esi - 0x10]
movdqu xmm3, xmmword [esi]
add esi, 0x20
add ebp, 0xfffffff8
por xmm0, xmm2
por xmm1, xmm3
jne 0x4ac8c0
por xmm1, xmm0
cmp ebx, dword [esp]
pshufd xmm0, xmm1, 0x4e
por xmm0, xmm1
pshufd xmm1, xmm0, 0xe5
por xmm1, xmm0
movd esi, xmm1
je 0x4ac908
sub edx, ecx
lea ecx, [edi + ecx*4]
nop dword [eax]
or esi, dword [ecx]
add ecx, 4
dec edx
jne 0x4ac900
mov ecx, esi
dec esi
not ecx
and esi, ecx
sar esi, 0x1f
not esi
or eax, esi
jmp 0x4ac9af
cmp edx, ecx
jae 0x4ac9af
mov esi, dword [esp]
xor edi, edi
cmp ebx, 7
jbe 0x4ac98a
mov ebp, ebx
lea edi, [esi + edx*4 + 0x10]
pxor xmm0, xmm0
pxor xmm1, xmm1
and ebp, 0xfffffff8
add edx, ebp
mov esi, ebp
nop word cs:[eax + eax]
nop dword [eax]
movdqu xmm2, xmmword [edi - 0x10]
movdqu xmm3, xmmword [edi]
add edi, 0x20
add ebp, 0xfffffff8
por xmm0, xmm2
por xmm1, xmm3
jne 0x4ac950
por xmm1, xmm0
cmp ebx, esi
mov esi, dword [esp]
pshufd xmm0, xmm1, 0x4e
por xmm0, xmm1
pshufd xmm1, xmm0, 0xe5
por xmm1, xmm0
movd edi, xmm1
je 0x4ac998
sub ecx, edx
lea edx, [esi + edx*4]
nop
or edi, dword [edx]
add edx, 4
dec ecx
jne 0x4ac990
mov ecx, edi
dec edi
not ecx
and edi, ecx
sar edi, 0x1f
mov ecx, edi
and edi, eax
not ecx
and ecx, 1
or ecx, edi
mov eax, ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret