joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47fa60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe8
mov edi, edx
mov eax, dword [edx]
movzx edx, byte [eax]
test dl, 1
je 0x47facc
mov edx, dword [eax + 4]
cmp edx, 0x3f
jbe 0x47fad3
mov dword [esp + 0x14], ecx
movzx edx, byte [eax]
mov ecx, edx
shr ecx, 1
test dl, 1
mov esi, dword [eax + 4]
cmovne ecx, esi
add ecx, 0xffffffc0
mov dword [esp + 0x2c], ecx
movzx edx, byte [eax]
mov ebx, edx
shr ebx, 1
test dl, 1
cmovne ebx, esi
cmp ebx, ecx
jae 0x47fae7
mov dword [esp + 0x38], str.Cannot_seek_0x:x__size_is_0x:x
mov dword [esp + 0x3c], 0x22
movzx ecx, byte [eax]
test cl, 1
je 0x47faf8
mov ecx, dword [eax + 4]
jmp 0x47fafa
shr edx, 1
cmp edx, 0x3f
ja 0x47fa83
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov eax, ecx
jmp 0x47fc83
test dl, 1
je 0x47fc15
mov eax, dword [eax + 8]
jmp 0x47fc16
shr ecx, 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 0
movsd xmm0, qword [esp + 0x38]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x30]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], eax
lea esi, [esp + 0x4c]
mov dword [esp], esi
call fcn.00480c40
mov dword [esp], esi
lea edi, [esp + 0x40]
mov ecx, edi
call fcn.00480300
sub esp, 4
mov ebx, dword [esp + 0xdc]
mov dword [esp], edi
lea ecx, [esp + 0x18]
call fcn.00423570
sub esp, 4
mov dword [esp + 0x24], ebx
movzx eax, byte [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x19]
mov dword [esi + 1], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esi], al
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 1
test byte [esp + 0x40], 1
je 0x47fbae
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.004203b0
mov dword [esp + 0x4c], 0x57bb68
lea edi, [esp + 0x8c]
mov dword [esp + 0x8c], 0x57bb90
mov dword [esp + 0x54], 0x57bb7c
lea ebx, [esp + 0x58]
mov dword [esp + 0x58], 0x57bdd8
test byte [esp + 0x78], 1
je 0x47fbf2
mov eax, dword [esp + 0x80]
mov dword [esp], eax
call fcn.004203b0
mov ecx, ebx
call fcn.0042cdb0
mov dword [esp], 0x57bb9c
lea ecx, [esp + 0x4c]
call fcn.0043b7e0
sub esp, 4
mov ecx, edi
call fcn.0042cc10
jmp 0x47fc81
inc eax
mov esi, dword [esp + 0x14]
add eax, ecx
mov dword [edi + 0x10], eax
test byte [edi + 4], 1
je 0x47fc2a
mov eax, dword [edi + 0xc]
jmp 0x47fc2d
lea eax, [edi + 5]
add eax, ecx
mov dword [edi + 0x14], eax
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esp + 4], esi
lea eax, [esp + 0x4c]
mov dword [esp], eax
call dword [0x5823f8]
mov dword [esi + 0x10], 0xffffffff
mov eax, dword [edi + 0x10]
cmp dword [eax], 0x66425641
je 0x47fc71
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
jmp 0x47fc81
mov dword [esp], 0x40
mov ecx, esi
mov edx, edi
call fcn.0047f5d0
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4850b0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebp, dword [esp + 0x28]
movzx ebx, byte [ebp]
test bl, 1
mov dword [esp], ecx
je 0x4850cf
mov ebx, dword [ebp + 4]
mov ebp, dword [ebp + 8]
jmp 0x4850d2
inc ebp
shr ebx, 1
mov eax, ebx
mov ecx, ebp
mov edx, ebx
cmp ebx, 4
jb 0x485162
lea edx, [ebx - 4]
test dl, 4
jne 0x485111
imul eax, dword [ebp], 0x5bd1e995
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
imul eax, ebx, 0x5bd1e995
xor eax, ecx
lea ecx, [ebp + 4]
mov esi, edx
cmp edx, 4
jae 0x48511c
jmp 0x485162
mov esi, ebx
mov ecx, ebp
mov eax, ebx
cmp edx, 4
jb 0x485162
mov edx, esi
nop
imul esi, dword [ecx], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, esi
imul esi, dword [ecx + 4], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, esi
add ecx, 8
add edx, 0xfffffff8
cmp edx, 3
ja 0x485120
cmp edx, 1
je 0x485188
cmp edx, 2
mov edi, dword [esp]
je 0x48517d
cmp edx, 3
jne 0x485196
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
jmp 0x48518b
mov edi, dword [esp]
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4852e7
mov edx, eax
shr edx, 0xd
xor edx, eax
imul eax, edx, 0x5bd1e995
mov esi, eax
shr esi, 0xf
xor esi, eax
mov eax, ecx
shr eax, 1
and eax, 0x55555555
mov edx, ecx
sub edx, eax
mov eax, edx
and eax, 0x33333333
shr edx, 2
and edx, 0x33333333
add edx, eax
mov eax, edx
shr eax, 4
add eax, edx
and eax, 0xf0f0f0f
imul eax, eax, 0x1010101
shr eax, 0x18
mov dword [esp + 0x10], eax
cmp eax, 1
mov dword [esp + 8], ecx
ja 0x4851fd
lea edx, [ecx - 1]
and edx, esi
jmp 0x48520b
mov edx, esi
cmp esi, ecx
jb 0x48520b
mov eax, esi
xor edx, edx
div dword [esp + 8]
mov eax, dword [edi]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x4852e7
mov dword [esp], ebx
mov ebx, dword [eax]
test ebx, ebx
mov eax, 0
je 0x4852e9
mov dword [esp + 4], edx
mov eax, dword [esp + 8]
dec eax
mov dword [esp + 0xc], eax
jmp 0x48525a
and eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
cmp eax, ecx
jne 0x4852e7
mov ebx, dword [ebx]
test ebx, ebx
je 0x4852e7
mov eax, dword [ebx + 4]
cmp esi, eax
jne 0x4852b0
movzx ecx, byte [ebx + 8]
mov eax, ecx
shr eax, 1
test cl, 1
mov edi, dword [ebx + 0xc]
mov edx, edi
cmove edx, eax
cmp edx, dword [esp]
jne 0x485250
test cl, 1
jne 0x4852ca
cmp cl, 2
jb 0x4852e3
xor ecx, ecx
nop word cs:[eax + eax]
movzx edx, byte [ebx + ecx + 9]
cmp dl, byte [ebp + ecx]
jne 0x485250
inc ecx
cmp eax, ecx
jne 0x485290
jmp 0x4852e3
cmp dword [esp + 0x10], 1
jbe 0x485240
mov ecx, dword [esp + 8]
cmp eax, ecx
jb 0x485244
xor edx, edx
div ecx
mov eax, edx
jmp 0x485244
test edi, edi
je 0x4852e3
push edi
push ebp
push dword [ebx + 0x10]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x485250
mov eax, ebx
jmp 0x4852e9
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x48e8d0
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.0048e2a0

Function at 0x49de40
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 0x49de78
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x49de6e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x49de7a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x49de60
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4a60d0
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4a610d
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 0x4a6111
je 0x4a611f
add edi, eax
add ebp, eax
cmp ebp, esi
jb 0x4a60f0
xor eax, eax
jmp 0x4a6124
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 0x4a6124
mov eax, 0xffffffea
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
movzx eax, byte [0x5ab710]
test al, al
je 0x4a732d
push dword [0x5ab70c]
push dword [0x5ab708]
push esi
push ebp
call fcn.00521170
add esp, 0x10
mov edi, eax
mov eax, dword [esp + 0x4c]
and eax, 2
add eax, 2
push 0
push 0
push 0
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
je 0x4a72d7
mov ebx, eax
mov eax, dword [esp + 0x48]
add eax, edi
sub ebp, edi
sbb esi, 0
mov ecx, dword [esp + 0x4c]
test cl, 2
mov ecx, 4
mov edx, 0xf001f
cmove edx, ecx
push eax
push ebp
push esi
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x4a7316
mov esi, eax
push 0x10
call fcn.00420210
add esp, 4
mov ebp, eax
mov dword [eax], esi
mov eax, dword [esp + 0x48]
mov dword [ebp + 4], eax
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], ebx
jmp 0x4a731f
xor ebp, ebp
cmp dword [esp + 0x48], 0
jne 0x4a731f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ee
jne 0x4a731f
push 0x10
call fcn.00420210
add esp, 4
mov ebp, eax
mov dword [eax], 0x5888b9
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x4a731f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
mov eax, dword [esp + 0x38]
mov dword [eax], ebp
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5ab710
call fcn.004a2e10
add esp, 4
test eax, eax
je 0x4a7252
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp], xmm0
mov dword [esp + 0x20], 0
mov eax, esp
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x1c]
mov dword [0x5ab708], eax
mov dword [0x5ab70c], 0
push 0x5ab710
call fcn.004a2f80
add esp, 4
jmp 0x4a7252
Function at 0x4ab330
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
cmp esi, ebp
je 0x4ab4f2
mov ebx, ecx
mov dword [esp + 0x18], ecx
jmp 0x4ab36e
mov ebx, dword [esp + 0x18]
mov ecx, dword [ebx + 8]
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
add ecx, edx
mov dword [ebx + 8], ecx
add esi, edx
cmp esi, ebp
je 0x4ab4f2
mov edi, ebp
sub edi, esi
js 0x4ab4fc
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
lea eax, [ecx + edi]
cmp edx, eax
jae 0x4ab397
mov edx, dword [ebx]
mov dword [esp], eax
mov ecx, ebx
call dword [edx]
sub esp, 4
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
sub edx, ecx
cmp edx, edi
cmovae edx, edi
test edx, edx
je 0x4ab35f
mov ebp, edx
mov edx, dword [ebx + 4]
lea edi, [edx + ecx]
cmp ebp, 8
mov dword [esp + 0x14], ebp
jae 0x4ab3c0
mov ecx, edi
mov edx, esi
jmp 0x4ab460
lea eax, [edx + ecx]
sub eax, esi
cmp eax, 0x20
jae 0x4ab3d7
mov ecx, edi
mov ebp, dword [esp + 0x14]
mov edx, esi
jmp 0x4ab460
xor eax, eax
mov ebx, dword [esp + 0x14]
cmp ebx, 0x20
jb 0x4ab41c
mov eax, ebx
and eax, 0xffffffe0
add ecx, edx
add ecx, 0x10
xor edx, edx
nop
movups xmm0, xmmword [esi + edx]
movups xmm1, xmmword [esi + edx + 0x10]
movups xmmword [ecx + edx - 0x10], xmm0
movups xmmword [ecx + edx], xmm1
add edx, 0x20
cmp eax, edx
jne 0x4ab3f0
cmp dword [esp + 0x14], eax
je 0x4ab350
mov ebx, dword [esp + 0x14]
test bl, 0x18
je 0x4ab44d
mov ebp, ebx
and ebx, 0xfffffff8
lea ecx, [edi + ebx]
and ebp, 7
lea edx, [esi + ebx]
nop word [eax + eax]
movsd xmm0, qword [esi + eax]
movsd qword [edi + eax], xmm0
add eax, 8
cmp ebx, eax
jne 0x4ab430
cmp dword [esp + 0x14], ebx
je 0x4ab350
jmp 0x4ab460
lea edx, [esi + eax]
mov ebp, ebx
and ebp, 0x1f
add edi, eax
mov ecx, edi
nop dword [eax]
mov eax, ebp
and eax, 7
je 0x4ab490
xor edi, edi
nop dword [eax]
movzx ebx, byte [edx + edi]
mov byte [ecx + edi], bl
inc edi
cmp eax, edi
jne 0x4ab470
add ecx, edi
mov eax, ebp
sub eax, edi
add edx, edi
jmp 0x4ab492
mov eax, ebp
dec ebp
cmp ebp, 7
jb 0x4ab350
xor edi, edi
nop
movzx ebx, byte [edx + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [edx + edi + 1]
mov byte [ecx + edi + 1], bl
movzx ebx, byte [edx + edi + 2]
mov byte [ecx + edi + 2], bl
movzx ebx, byte [edx + edi + 3]
mov byte [ecx + edi + 3], bl
movzx ebx, byte [edx + edi + 4]
mov byte [ecx + edi + 4], bl
movzx ebx, byte [edx + edi + 5]
mov byte [ecx + edi + 5], bl
movzx ebx, byte [edx + edi + 6]
mov byte [ecx + edi + 6], bl
movzx ebx, byte [edx + edi + 7]
mov byte [ecx + edi + 7], bl
add edi, 8
cmp eax, edi
jne 0x4ab4a0
jmp 0x4ab350
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [esp], eax
mov dword [esp + 0x10], str.negative_value
mov dword [esp + 0xc], 0x189
mov dword [esp + 8], str.external_fmtlib_include_fmt_core.h
call fcn.004a8720
call fcn.0049a9b0
int3
Function at 0x4bbb90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x4bbc10
mov ecx, dword [esp + 0x14]
not eax
test bl, 1
jne 0x4bbbb3
mov edx, ebx
cmp ebx, 1
jne 0x4bbbd2
jmp 0x4bbc0e
lea edx, [ebx - 1]
mov edi, ebx
movzx ebx, byte [ecx]
xor bl, al
inc ecx
movzx esi, bl
mov ebx, edi
shr eax, 8
xor eax, dword [esi*4 + 0x589f50]
cmp ebx, 1
je 0x4bbc0e
xor esi, esi
nop word cs:[eax + eax]
movzx ebx, byte [ecx + esi]
xor bl, al
movzx edi, bl
shr eax, 8
xor eax, dword [edi*4 + 0x589f50]
movzx ebx, byte [ecx + esi + 1]
xor bl, al
movzx edi, bl
shr eax, 8
xor eax, dword [edi*4 + 0x589f50]
add esi, 2
cmp edx, esi
jne 0x4bbbe0
not eax
pop esi
pop edi
pop ebx
ret
Function at 0x4bd9b0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebp, dword [esp + 0x28]
movzx ebx, byte [ebp]
test bl, 1
mov dword [esp], ecx
je 0x4bd9cf
mov ebx, dword [ebp + 4]
mov ebp, dword [ebp + 8]
jmp 0x4bd9d2
inc ebp
shr ebx, 1
mov eax, ebx
mov ecx, ebp
mov edx, ebx
cmp ebx, 4
jb 0x4bda62
lea edx, [ebx - 4]
test dl, 4
jne 0x4bda11
imul eax, dword [ebp], 0x5bd1e995
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
imul eax, ebx, 0x5bd1e995
xor eax, ecx
lea ecx, [ebp + 4]
mov esi, edx
cmp edx, 4
jae 0x4bda1c
jmp 0x4bda62
mov esi, ebx
mov ecx, ebp
mov eax, ebx
cmp edx, 4
jb 0x4bda62
mov edx, esi
nop
imul esi, dword [ecx], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, esi
imul esi, dword [ecx + 4], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, esi
add ecx, 8
add edx, 0xfffffff8
cmp edx, 3
ja 0x4bda20
cmp edx, 1
je 0x4bda88
cmp edx, 2
mov edi, dword [esp]
je 0x4bda7d
cmp edx, 3
jne 0x4bda96
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
jmp 0x4bda8b
mov edi, dword [esp]
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4bdbe7
mov edx, eax
shr edx, 0xd
xor edx, eax
imul eax, edx, 0x5bd1e995
mov esi, eax
shr esi, 0xf
xor esi, eax
mov eax, ecx
shr eax, 1
and eax, 0x55555555
mov edx, ecx
sub edx, eax
mov eax, edx
and eax, 0x33333333
shr edx, 2
and edx, 0x33333333
add edx, eax
mov eax, edx
shr eax, 4
add eax, edx
and eax, 0xf0f0f0f
imul eax, eax, 0x1010101
shr eax, 0x18
mov dword [esp + 0x10], eax
cmp eax, 1
mov dword [esp + 8], ecx
ja 0x4bdafd
lea edx, [ecx - 1]
and edx, esi
jmp 0x4bdb0b
mov edx, esi
cmp esi, ecx
jb 0x4bdb0b
mov eax, esi
xor edx, edx
div dword [esp + 8]
mov eax, dword [edi]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x4bdbe7
mov dword [esp], ebx
mov ebx, dword [eax]
test ebx, ebx
mov eax, 0
je 0x4bdbe9
mov dword [esp + 4], edx
mov eax, dword [esp + 8]
dec eax
mov dword [esp + 0xc], eax
jmp 0x4bdb5a
and eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
cmp eax, ecx
jne 0x4bdbe7
mov ebx, dword [ebx]
test ebx, ebx
je 0x4bdbe7
mov eax, dword [ebx + 4]
cmp eax, esi
jne 0x4bdbb0
movzx ecx, byte [ebx + 8]
mov eax, ecx
shr eax, 1
test cl, 1
mov edi, dword [ebx + 0xc]
mov edx, edi
cmove edx, eax
cmp edx, dword [esp]
jne 0x4bdb50
test cl, 1
jne 0x4bdbca
cmp cl, 2
jb 0x4bdbe3
xor ecx, ecx
nop word cs:[eax + eax]
movzx edx, byte [ebx + ecx + 9]
cmp dl, byte [ebp + ecx]
jne 0x4bdb50
inc ecx
cmp eax, ecx
jne 0x4bdb90
jmp 0x4bdbe3
cmp dword [esp + 0x10], 1
jbe 0x4bdb40
mov ecx, dword [esp + 8]
cmp eax, ecx
jb 0x4bdb44
xor edx, edx
div ecx
mov eax, edx
jmp 0x4bdb44
test edi, edi
je 0x4bdbe3
push edi
push ebp
push dword [ebx + 0x10]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4bdb50
mov eax, ebx
jmp 0x4bdbe9
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x4c5bc0
Capabilities:
Get common file path

Disassembly:
push edi
push esi
sub esp, 0x214
mov esi, dword [esp + 0x220]
lea edi, [esp + 0xc]
push 0x208
push 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
sub esp, 8
mov dword [esp + 0x10], edi
movaps xmm0, xmmword [0x58d4a0]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4c5c35
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
mov eax, esp
push eax
push edi
call fcn.004a0af0
add esp, 8
test al, al
je 0x4c5c4b
mov eax, dword [esp + 8]
mov dword [esi + 8], eax
movsd xmm0, qword [esp]
movsd qword [esi], xmm0
jmp 0x4c5c71
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0
jmp 0x4c5c71
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0
test byte [esp], 1
je 0x4c5c71
push dword [esp + 8]
call fcn.004203b0
add esp, 4
mov eax, esi
add esp, 0x214
pop esi
pop edi
ret

Function at 0x4c5ca0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
test byte [eax], 1
je 0x4c5cae
mov eax, dword [eax + 8]
jmp 0x4c5caf
inc eax
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
add esp, 4
test eax, eax
je 0x4c5cca
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0x11
sete al
ret
mov al, 1
ret
Function at 0x4c6970
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 0x80
je fcn.004c6570
cmp eax, 0x100
je fcn.004c6570
cmp eax, 0xc0
je fcn.004c6570
mov eax, 0xfffffffe
ret

Function at 0x4c9680
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebp, dword [esp + 0x38]
lea ecx, [ebp - 0x10]
mov eax, 0xffffffff
cmp ecx, 0x7fffffe7
ja 0x4c977e
mov ecx, ebp
and ecx, 7
jne 0x4c977e
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
test eax, eax
mov esi, 0x58e250
cmovne esi, eax
lea eax, [edi + 8]
push ebp
push dword [esp + 0x38]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
mov eax, edi
add esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
movsd xmm0, qword [esi]
movsd qword [esp], xmm0
mov edx, ebp
shr edx, 3
xor ecx, ecx
mov ebp, 1
mov ebx, esp
nop word cs:[eax + eax]
mov dword [esp + 0x10], ecx
xor edi, edi
nop word cs:[eax + eax]
movsd xmm0, qword [eax + edi*8 + 8]
movsd qword [esp + 8], xmm0
push dword [esp + 0x28]
push ebx
push ebx
mov esi, ebx
mov ebx, edx
call fcn.004c5df0
mov edx, ebx
mov ebx, esi
add esp, 0xc
lea eax, [edi + ebp]
xor byte [esp + 7], al
xor byte [esp + 6], ah
mov ecx, eax
shr ecx, 0x10
xor byte [esp + 5], cl
shr eax, 0x18
xor byte [esp + 4], al
mov eax, dword [esp + 0x30]
movsd xmm0, qword [esp + 8]
movsd qword [eax + edi*8 + 8], xmm0
inc edi
cmp edx, edi
jne 0x4c9710
mov ecx, dword [esp + 0x10]
inc ecx
add ebp, edx
cmp ecx, 6
jne 0x4c9700
movsd xmm0, qword [esp]
movsd qword [eax], xmm0
mov eax, dword [esp + 0x38]
add eax, 8
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4c9790
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
cmp edi, 0x18
jl 0x4c98a6
mov ecx, edi
and ecx, 7
jne 0x4c98a6
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
movsd xmm0, qword [eax]
movsd qword [esp], xmm0
add eax, 8
lea ecx, [edi - 8]
mov dword [esp + 0x10], ecx
push ecx
push eax
push ebp
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*2 - 6]
mov eax, 1
sub eax, edi
mov dword [esp + 0x14], eax
mov eax, 5
mov esi, esp
mov dword [esp + 0x18], edi
nop dword [eax]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
nop dword [eax + eax]
xor byte [esp + 7], bl
xor byte [esp + 6], bh
mov eax, ebx
shr eax, 0x10
xor byte [esp + 5], al
mov eax, ebx
shr eax, 0x18
xor byte [esp + 4], al
movsd xmm0, qword [ebp + edi*8 - 0x10]
movsd qword [esp + 8], xmm0
push dword [esp + 0x40]
push esi
push esi
call fcn.004c61a0
add esp, 0xc
movsd xmm0, qword [esp + 8]
movsd qword [ebp + edi*8 - 0x10], xmm0
dec edi
dec ebx
cmp edi, 1
jne 0x4c9810
mov eax, dword [esp + 0x1c]
dec eax
mov ebx, dword [esp + 0x20]
add ebx, dword [esp + 0x14]
cmp eax, 6
mov edi, dword [esp + 0x18]
jb 0x4c9800
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x44]
test ecx, ecx
mov eax, 0x58e250
cmovne eax, ecx
lea ecx, [esp + 0x24]
push 8
push eax
push ecx
call sym.fastboot.exe_CRYPTO_memcmp
add esp, 0xc
mov ecx, eax
xor eax, eax
neg ecx
sbb eax, eax
or eax, dword [esp + 0x10]
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4ca1f0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x10], 1
jne fcn.004c61a0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.004c5df0
add esp, 0xc
ret
Function at 0x4ca9e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov esi, dword [ecx]
test eax, eax
je 0x4caa2d
test esi, esi
je 0x4caa2d
nop word cs:[eax + eax]
movzx ecx, byte [edi + esi]
xor cl, byte [ebp]
inc ebp
mov byte [ebx], cl
inc ebx
lea ecx, [eax - 1]
inc esi
and esi, 0xf
je 0x4caa2f
cmp eax, 1
mov eax, ecx
jne 0x4caa10
jmp 0x4caa2f
mov ecx, eax
mov eax, dword [esp + 0x24]
cmp ecx, 0x10
jb 0x4caa85
nop dword [eax + eax]
push eax
push edi
push edi
mov esi, ecx
call fcn.004c5df0
mov ecx, esi
add esp, 0xc
mov eax, dword [edi]
xor eax, dword [ebp]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [ebp + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [ebp + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
xor eax, dword [ebp + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x24]
add ecx, 0xfffffff0
add ebx, 0x10
add ebp, 0x10
cmp ecx, 0xf
ja 0x4caa40
xor esi, esi
test ecx, ecx
je 0x4caaaa
push eax
push edi
push edi
mov dword [esp + 0xc], ecx
call fcn.004c5df0
mov edx, dword [esp + 0xc]
add esp, 0xc
test dl, 1
jne 0x4caaae
mov eax, edx
cmp edx, 1
jne 0x4caad0
jmp 0x4caaf2
mov ecx, esi
jmp 0x4caaf2
movzx ecx, byte [edi + esi]
xor cl, byte [ebp + esi]
lea eax, [edx - 1]
mov byte [ebx + esi], cl
inc esi
mov ecx, esi
cmp edx, 1
je 0x4caaf2
nop word cs:[eax + eax]
movzx ecx, byte [edi + esi]
xor cl, byte [ebp + esi]
mov byte [ebx + esi], cl
movzx edx, byte [edi + esi + 1]
xor dl, byte [ebp + esi + 1]
lea ecx, [esi + 2]
mov byte [ebx + esi + 1], dl
mov esi, ecx
add eax, 0xfffffffe
jne 0x4caad0
mov eax, dword [esp + 0x2c]
mov dword [eax], ecx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret