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

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4a5e2d
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 0x4a5e31
je 0x4a5e3f
add edi, eax
add ebp, eax
cmp ebp, esi
jb 0x4a5e10
xor eax, eax
jmp 0x4a5e44
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 0x4a5e44
mov eax, 0xffffffea
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4a6f50
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 [0x5b2710]
test al, al
je 0x4a704d
push dword [0x5b270c]
push dword [0x5b2708]
push esi
push ebp
call fcn.0052d7f0
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 0x4a6ff7
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 0x4a7036
mov esi, eax
push 0x10
call fcn.00420cd0
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 0x4a703f
xor ebp, ebp
cmp dword [esp + 0x48], 0
jne 0x4a703f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ee
jne 0x4a703f
push 0x10
call fcn.00420cd0
add esp, 4
mov ebp, eax
mov dword [eax], 0x5906b9
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x4a703f
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 0x5b2710
call fcn.004a2af0
add esp, 4
test eax, eax
je 0x4a6f72
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 [0x5b2708], eax
mov dword [0x5b270c], 0
push 0x5b2710
call fcn.004a2c60
add esp, 4
jmp 0x4a6f72
Function at 0x4ab910
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, ecx
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
jmp 0x4ab94e
mov ebx, dword [esp + 0x18]
mov ecx, dword [ebx + 8]
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
add ecx, edx
mov dword [ebx + 8], ecx
add esi, edx
cmp esi, ebp
je 0x4abad3
mov edi, ebp
sub edi, esi
js 0x4abadd
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
lea eax, [ecx + edi]
cmp edx, eax
jae 0x4ab977
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 0x4ab93f
mov eax, edx
mov edx, dword [ebx + 4]
lea edi, [edx + ecx]
cmp eax, 8
mov dword [esp + 0x14], eax
jae 0x4ab9a0
mov edx, edi
mov ecx, eax
mov ebp, esi
jmp 0x4aba40
lea eax, [edx + ecx]
sub eax, esi
cmp eax, 0x20
jae 0x4ab9b7
mov edx, edi
mov ecx, dword [esp + 0x14]
mov ebp, esi
jmp 0x4aba40
xor eax, eax
mov ebp, dword [esp + 0x14]
cmp ebp, 0x20
jb 0x4ab9fe
mov eax, ebp
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 0x4ab9d0
cmp dword [esp + 0x14], eax
je 0x4ab930
mov ecx, dword [esp + 0x14]
test cl, 0x18
je 0x4aba2d
mov ebp, ecx
mov ebx, ebp
and ebx, 0xfffffff8
lea edx, [edi + ebx]
mov ecx, ebp
and ecx, 7
lea ebp, [esi + ebx]
nop
movsd xmm0, qword [esi + eax]
movsd qword [edi + eax], xmm0
add eax, 8
cmp ebx, eax
jne 0x4aba10
cmp dword [esp + 0x14], ebx
je 0x4ab930
jmp 0x4aba40
lea ebp, [esi + eax]
and ecx, 0x1f
add edi, eax
mov edx, edi
nop word [eax + eax]
lea eax, [ecx - 1]
mov ebx, ecx
and ebx, 7
je 0x4aba67
mov dword [esp + 0x1c], eax
xor edi, edi
movzx eax, byte [ebp + edi]
mov byte [edx + edi], al
inc edi
cmp ebx, edi
jne 0x4aba50
add edx, edi
sub ecx, edi
add ebp, edi
mov eax, dword [esp + 0x1c]
cmp eax, 7
jb 0x4ab930
xor eax, eax
nop word cs:[eax + eax]
movzx ebx, byte [ebp + eax]
mov byte [edx + eax], bl
movzx ebx, byte [ebp + eax + 1]
mov byte [edx + eax + 1], bl
movzx ebx, byte [ebp + eax + 2]
mov byte [edx + eax + 2], bl
movzx ebx, byte [ebp + eax + 3]
mov byte [edx + eax + 3], bl
movzx ebx, byte [ebp + eax + 4]
mov byte [edx + eax + 4], bl
movzx ebx, byte [ebp + eax + 5]
mov byte [edx + eax + 5], bl
movzx ebx, byte [ebp + eax + 6]
mov byte [edx + eax + 6], bl
movzx ebx, byte [ebp + eax + 7]
mov byte [edx + eax + 7], bl
add eax, 8
cmp ecx, eax
jne 0x4aba80
jmp 0x4ab930
add esp, 0x20
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], 0x146
mov dword [esp + 8], str.external_fmtlib_include_fmt_core.h
call fcn.004a8080
call fcn.0049aa70
int3
Function at 0x4c7070
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x24]
movzx ebx, byte [ebp]
test bl, 1
mov dword [esp], ecx
je 0x4c708f
mov ebx, dword [ebp + 4]
mov ebp, dword [ebp + 8]
jmp 0x4c7092
inc ebp
shr ebx, 1
mov eax, ebx
mov ecx, ebp
mov edx, ebx
cmp ebx, 4
jb 0x4c7122
lea edx, [ebx - 4]
test dl, 4
jne 0x4c70d1
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 0x4c70dc
jmp 0x4c7122
mov esi, ebx
mov ecx, ebp
mov eax, ebx
cmp edx, 4
jb 0x4c7122
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 0x4c70e0
cmp edx, 1
je 0x4c7148
cmp edx, 2
mov edi, dword [esp]
je 0x4c713d
cmp edx, 3
jne 0x4c7156
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
jmp 0x4c714b
mov edi, dword [esp]
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4c72ab
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 + 0xc], eax
cmp eax, 1
mov dword [esp + 4], ecx
ja 0x4c71bd
lea edx, [ecx - 1]
and edx, esi
jmp 0x4c71cb
mov edx, esi
cmp esi, ecx
jb 0x4c71cb
mov eax, esi
xor edx, edx
div dword [esp + 4]
mov eax, dword [edi]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x4c72ab
mov edi, dword [eax]
test edi, edi
mov eax, 0
je 0x4c72ad
mov dword [esp], edx
mov eax, dword [esp + 4]
dec eax
mov dword [esp + 8], eax
jmp 0x4c7216
and eax, dword [esp + 8]
cmp eax, edx
jne 0x4c72ab
mov edi, dword [edi]
test edi, edi
je 0x4c72ab
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x4c7270
movzx edx, byte [edi + 8]
mov eax, edx
shr eax, 1
mov ecx, eax
test dl, 1
je 0x4c722f
mov ecx, dword [edi + 0xc]
cmp ecx, ebx
jne 0x4c720c
lea ecx, [edi + 9]
test dl, 1
je 0x4c723e
mov ecx, dword [edi + 0x10]
jne 0x4c7290
test ebx, ebx
je 0x4c72a7
xor ecx, ecx
nop word cs:[eax + eax]
movzx edx, byte [edi + ecx + 9]
cmp dl, byte [ebp + ecx]
jne 0x4c720c
inc ecx
cmp eax, ecx
jne 0x4c7250
jmp 0x4c72a7
cmp dword [esp + 0xc], 1
mov edx, dword [esp]
jbe 0x4c7200
mov ecx, dword [esp + 4]
cmp eax, ecx
jb 0x4c7204
xor edx, edx
div ecx
mov eax, edx
mov edx, dword [esp]
jmp 0x4c7204
test ebx, ebx
je 0x4c72a7
push ebx
push ebp
push ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4c720c
mov eax, edi
jmp 0x4c72ad
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x4caa10
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 0x4caa90
mov ecx, dword [esp + 0x14]
not eax
test bl, 1
jne 0x4caa33
mov edx, ebx
cmp ebx, 1
jne 0x4caa52
jmp 0x4caa8e
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 + 0x592ba4]
cmp ebx, 1
je 0x4caa8e
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 + 0x592ba4]
movzx ebx, byte [ecx + esi + 1]
xor bl, al
movzx edi, bl
shr eax, 8
xor eax, dword [edi*4 + 0x592ba4]
add esi, 2
cmp edx, esi
jne 0x4caa60
not eax
pop esi
pop edi
pop ebx
ret
Function at 0x4cf260
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 [0x595180]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4cf2d5
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
mov eax, esp
push eax
push edi
call fcn.004a0750
add esp, 8
test al, al
je 0x4cf2eb
mov eax, dword [esp + 8]
mov dword [esi + 8], eax
movsd xmm0, qword [esp]
movsd qword [esi], xmm0
jmp 0x4cf311
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0
jmp 0x4cf311
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0
test byte [esp], 1
je 0x4cf311
push dword [esp + 8]
call fcn.00420e70
add esp, 4
mov eax, esi
add esp, 0x214
pop esi
pop edi
ret

Function at 0x4cf340
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
test byte [eax], 1
je 0x4cf34e
mov eax, dword [eax + 8]
jmp 0x4cf34f
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 0x4cf36a
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 0x4cfff0
Capabilities:
Encode data using xor

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

Function at 0x4d2de0
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 0x4d2ede
mov ecx, ebp
and ecx, 7
jne 0x4d2ede
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
test eax, eax
mov esi, 0x595fd0
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.004cf490
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 0x4d2e70
mov ecx, dword [esp + 0x10]
inc ecx
add ebp, edx
cmp ecx, 6
jne 0x4d2e60
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 0x4d2ef0
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 0x4d3006
mov ecx, edi
and ecx, 7
jne 0x4d3006
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 + eax]
add ebx, 0xfffffffa
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.004cf830
add esp, 0xc
movsd xmm0, qword [esp + 8]
movsd qword [ebp + edi*8 - 0x10], xmm0
dec edi
dec ebx
cmp edi, 1
jne 0x4d2f70
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 0x4d2f60
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, 0x595fd0
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 0x4d3990
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x10], 1
jne 0x4d39ac
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.004cf490
add esp, 0xc
ret
jmp fcn.004cf830
Function at 0x4d4010
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 0x4d405d
test esi, esi
je 0x4d405d
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 0x4d405f
cmp eax, 1
mov eax, ecx
jne 0x4d4040
jmp 0x4d405f
mov ecx, eax
mov eax, dword [esp + 0x24]
cmp ecx, 0x10
jb 0x4d4127
mov dword [esp], ecx
push eax
push edi
push edi
call fcn.004cf490
add esp, 0xc
cmp esi, 0xf
ja 0x4d40bc
mov eax, dword [edi + esi]
xor eax, dword [ebp + esi]
mov dword [ebx + esi], eax
cmp esi, 0xb
ja 0x4d40bc
mov eax, dword [edi + esi + 4]
xor eax, dword [ebp + esi + 4]
mov dword [ebx + esi + 4], eax
cmp esi, 7
ja 0x4d40bc
mov eax, dword [edi + esi + 8]
xor eax, dword [ebp + esi + 8]
mov dword [ebx + esi + 8], eax
cmp esi, 3
ja 0x4d40bc
mov eax, dword [edi + esi + 0xc]
xor eax, dword [ebp + esi + 0xc]
mov dword [ebx + esi + 0xc], eax
mov ecx, dword [esp]
add ecx, 0xfffffff0
add ebx, 0x10
add ebp, 0x10
xor esi, esi
cmp ecx, 0x10
mov eax, dword [esp + 0x24]
jb 0x4d4127
nop word cs:[eax + eax]
push eax
push edi
push edi
mov edi, ecx
call fcn.004cf490
mov ecx, edi
mov edi, dword [esp + 0x34]
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 0x4d40e0
test ecx, ecx
je 0x4d414c
push eax
push edi
push edi
mov edi, ecx
call fcn.004cf490
mov edx, edi
add esp, 0xc
test dl, 1
jne 0x4d4150
mov eax, edx
mov edi, dword [esp + 0x28]
cmp edx, 1
jne 0x4d4170
jmp 0x4d4192
mov ecx, esi
jmp 0x4d4192
mov edi, dword [esp + 0x28]
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 0x4d4192
nop word [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 0x4d4170
mov eax, dword [esp + 0x2c]
mov dword [eax], ecx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d7620
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, ecx
mov ecx, dword [esp + 0x20]
cmp edx, ecx
cmovb ecx, edx
test ecx, ecx
mov dword [esp], edx
je 0x4d7693
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 4], eax
nop word cs:[eax + eax]
mov edx, dword [eax + ebp*4]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + ebp*4]
mov edi, edx
sub edi, eax
xor eax, edx
lea esi, [eax - 1]
xor edi, edx
or edi, eax
not eax
and esi, eax
sar esi, 0x1f
xor edi, edx
sar edi, 0x1f
mov eax, edi
not edi
and edi, 1
or edi, eax
mov eax, esi
and eax, ebx
not esi
and esi, edi
or esi, eax
mov eax, dword [esp + 4]
inc ebp
mov ebx, esi
cmp ecx, ebp
jne 0x4d7650
jmp 0x4d7695
xor esi, esi
mov edx, dword [esp]
mov ebp, edx
mov edi, dword [esp + 0x20]
sub ebp, edi
jae 0x4d76bc
mov eax, edi
sub eax, edx
xor ebx, ebx
cmp eax, 8
jae 0x4d774d
mov ecx, edx
mov edx, dword [esp + 0x1c]
jmp 0x4d77b0
jbe 0x4d77cc
xor ebx, ebx
cmp ebp, 8
jb 0x4d7730
mov ebx, eax
mov eax, ebp
and eax, 0xfffffff8
mov edx, edi
add edi, eax
mov ecx, ebx
lea edx, [ebx + edx*4]
add edx, 0x10
pxor xmm0, xmm0
xor ebx, ebx
pxor xmm1, xmm1
nop word cs:[eax + eax]
movdqu xmm2, xmmword [edx + ebx*4 - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [edx + ebx*4]
por xmm1, xmm2
add ebx, 8
cmp eax, ebx
jne 0x4d76f0
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
pshufd xmm1, xmm0, 0x55
por xmm1, xmm0
movd ebx, xmm1
cmp ebp, eax
mov edx, dword [esp]
mov eax, ecx
je 0x4d7738
nop dword [eax]
or ebx, dword [eax + edi*4]
inc edi
cmp edx, edi
jne 0x4d7730
mov eax, ebx
not eax
dec ebx
and ebx, eax
sar ebx, 0x1f
mov eax, ebx
and eax, esi
not ebx
and ebx, 1
jmp 0x4d77c8
mov ebp, eax
and ebp, 0xfffffff8
lea ecx, [edx + ebp]
mov ebx, dword [esp + 0x1c]
lea edi, [ebx + edx*4]
add edi, 0x10
mov edx, ebx
pxor xmm0, xmm0
xor ebx, ebx
pxor xmm1, xmm1
nop dword [eax + eax]
movdqu xmm2, xmmword [edi + ebx*4 - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [edi + ebx*4]
por xmm1, xmm2
add ebx, 8
cmp ebp, ebx
jne 0x4d7770
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
pshufd xmm1, xmm0, 0x55
por xmm1, xmm0
movd ebx, xmm1
cmp eax, ebp
mov edi, dword [esp + 0x20]
je 0x4d77b8
nop dword [eax]
or ebx, dword [edx + ecx*4]
inc ecx
cmp edi, ecx
jne 0x4d77b0
mov eax, ebx
not eax
dec ebx
and ebx, eax
sar ebx, 0x1f
mov eax, ebx
and eax, esi
not ebx
or ebx, eax
mov esi, ebx
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d7b50
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax + 4]
mov edx, dword [ecx + 4]
xor edi, edi
mov esi, ebx
sub esi, edx
mov dword [esp], esi
jge 0x4d7be9
mov ebp, dword [ecx]
mov ecx, edx
sub ecx, ebx
xor edi, edi
mov esi, ebx
cmp ecx, 8
jb 0x4d7be0
mov dword [esp + 4], ecx
and ecx, 0xfffffff8
lea esi, [ebx + ecx]
lea edi, [ebx*4 + 0x10]
add edi, ebp
pxor xmm0, xmm0
xor eax, eax
pxor xmm1, xmm1
nop dword [eax]
movdqu xmm2, xmmword [edi + eax*4 - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [edi + eax*4]
por xmm1, xmm2
add eax, 8
cmp ecx, eax
jne 0x4d7ba0
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
pshufd xmm1, xmm0, 0x55
por xmm1, xmm0
movd edi, xmm1
cmp dword [esp + 4], ecx
mov eax, dword [esp + 0x1c]
je 0x4d7be9
nop
or edi, dword [ebp + esi*4]
inc esi
cmp edx, esi
jne 0x4d7be0
cmp edx, ebx
jge 0x4d7bff
mov ebp, dword [eax]
mov esi, dword [esp]
cmp esi, 8
mov ecx, dword [esp + 0x20]
jae 0x4d7c05
mov esi, edx
jmp 0x4d7c70
mov ecx, dword [esp + 0x20]
jmp 0x4d7c79
mov ecx, esi
and ecx, 0xfffffff8
lea esi, [edx + ecx]
movd xmm1, edi
lea eax, [edx*4 + 0x10]
add eax, ebp
pxor xmm0, xmm0
xor edi, edi
movdqu xmm2, xmmword [eax + edi*4 - 0x10]
por xmm1, xmm2
movdqu xmm2, xmmword [eax + edi*4]
por xmm0, xmm2
add edi, 8
cmp ecx, edi
jne 0x4d7c20
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd edi, xmm0
cmp dword [esp], ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
je 0x4d7c79
nop word cs:[eax + eax]
or edi, dword [ebp + esi*4]
inc esi
cmp ebx, esi
jne 0x4d7c70
cmp ebx, edx
cmovl edx, ebx
test edx, edx
jle 0x4d7cde
mov esi, dword [eax]
mov ebx, dword [ecx]
xor ebp, ebp
cmp edx, 4
jb 0x4d7cd1
mov ebp, edx
and ebp, 0xfffffffc
movd xmm0, edi
xor eax, eax
nop dword [eax + eax]
movdqu xmm1, xmmword [esi + eax*4]
movdqu xmm2, xmmword [ebx + eax*4]
pxor xmm2, xmm1
por xmm0, xmm2
add eax, 4
cmp ebp, eax
jne 0x4d7ca0
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd edi, xmm0
jmp 0x4d7cda
mov eax, dword [ebx + ebp*4]
xor eax, dword [esi + ebp*4]
or edi, eax
inc ebp
cmp edx, ebp
jne 0x4d7cd1
mov ecx, dword [ecx + 0xc]
mov eax, dword [esp + 0x1c]
xor ecx, dword [eax + 0xc]
xor eax, eax
or ecx, edi
sete al
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4ecce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov ecx, dword [esi]
mov ebx, dword [ecx + 4]
mov dword [eax], ebx
test edi, edi
je 0x4ecd15
mov eax, dword [esi + 0xb8]
cmp eax, ebx
jne 0x4ecd22
lea eax, [esi + 0x88]
test ebx, ebx
jne 0x4ecd5a
jmp 0x4ece75
mov eax, 1
add esp, 4
jmp 0x4ece81
mov byte [esi + eax + 0xa8], 0x80
mov ecx, dword [esi + 0xb8]
mov eax, ecx
not eax
add eax, ebx
je 0x4ecd4c
add ecx, esi
add ecx, 0xa9
push eax
push 0
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [esi + 0x98]
test ebx, ebx
je 0x4ece75
xor ecx, ecx
cmp ebx, 8
jb 0x4ece00
mov edx, edi
sub edx, eax
cmp edx, 0x20
jb 0x4ece00
mov edx, edi
sub edx, esi
add edx, 0xffffff58
cmp edx, 0x20
jb 0x4ece00
xor ecx, ecx
cmp ebx, 0x20
jb 0x4ecdcc
mov ecx, ebx
and ecx, 0xffffffe0
xor edx, edx
nop
movups xmm0, xmmword [esi + edx + 0xa8]
movups xmm1, xmmword [esi + edx + 0xb8]
movups xmm2, xmmword [eax + edx]
xorps xmm2, xmm0
movups xmm0, xmmword [eax + edx + 0x10]
xorps xmm0, xmm1
movups xmmword [edi + edx], xmm2
movups xmmword [edi + edx + 0x10], xmm0
add edx, 0x20
cmp ecx, edx
jne 0x4ecd90
cmp ebx, ecx
je 0x4ece75
test bl, 0x18
je 0x4ece00
mov edx, ecx
mov ecx, ebx
and ecx, 0xfffffff8
nop word cs:[eax + eax]
movsd xmm0, qword [esi + edx + 0xa8]
movsd xmm1, qword [eax + edx]
xorps xmm1, xmm0
movlps qword [edi + edx], xmm1
add edx, 8
cmp ecx, edx
jne 0x4ecde0
cmp ebx, ecx
je 0x4ece75
mov edx, ecx
not edx
add edx, ebx
mov dword [esp], edx
mov ebp, ebx
and ebp, 3
je 0x4ece22
movzx edx, byte [eax + ecx]
xor dl, byte [esi + ecx + 0xa8]
mov byte [edi + ecx], dl
inc ecx
dec ebp
jne 0x4ece10
cmp dword [esp], 3
jb 0x4ece75
nop dword [eax + eax]
movzx edx, byte [eax + ecx]
xor dl, byte [esi + ecx + 0xa8]
mov byte [edi + ecx], dl
movzx edx, byte [eax + ecx + 1]
xor dl, byte [esi + ecx + 0xa9]
mov byte [edi + ecx + 1], dl
movzx edx, byte [eax + ecx + 2]
xor dl, byte [esi + ecx + 0xaa]
mov byte [edi + ecx + 2], dl
movzx edx, byte [eax + ecx + 3]
xor dl, byte [esi + ecx + 0xab]
mov byte [edi + ecx + 3], dl
add ecx, 4
cmp ebx, ecx
jne 0x4ece30
mov eax, dword [esi]
push ebx
push edi
push edi
push esi
call dword [eax + 0x20]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret