joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019870
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x8c
mov eax, dword [0x1006d680]
xor eax, esp
mov dword [esp + 0x88], eax
push ebp
mov ebp, dword [esp + 0x98]
push esi
mov esi, dword [esp + 0x98]
mov ecx, dword [esi]
push edi
mov edi, dword [esp + 0xa4]
push 0
lea eax, [esp + 0x10]
push eax
push 4
push 0
push ecx
mov dword [esp + 0x20], 0
call fcn.100300c0
add esp, 0x14
test eax, eax
jne 0x100199ee
test ebp, ebp
mov eax, dword [esp + 0xc]
push ebx
mov dword [esp + 0x14], eax
je 0x100199dd
cmp eax, edi
jge 0x1001993e
mov edx, dword [esi + 4]
push edx
call fcn.10030090
add esp, 4
test eax, eax
jne 0x100199ed
mov eax, dword [esi + 4]
push edi
push ebp
push eax
call fcn.10030060
add esp, 0xc
test eax, eax
jne 0x100199ed
mov ecx, dword [esi + 4]
lea ebx, [esi + 0x18]
push ebx
push ecx
call fcn.10030030
add esp, 8
test eax, eax
jne 0x100199ed
push eax
lea edx, [esp + 0x14]
push edx
push 5
push eax
mov eax, dword [esi]
push eax
call fcn.100300c0
add esp, 0x14
test eax, eax
jne 0x100199ed
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x14], ecx
jmp 0x10019963
push edi
lea ebx, [esi + 0x18]
push ebp
push ebx
call sub.MSVCR80.dll_memcpy
mov edx, 0x80
sub edx, edi
push edx
lea eax, [edi + esi + 0x18]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0x18
mov dword [esi + 0x14], edi
xor eax, eax
mov cl, byte [ebx + eax]
xor cl, 0x36
mov byte [esp + eax + 0x18], cl
add eax, 1
cmp eax, 0x80
jl 0x10019965
mov edx, dword [esi + 8]
push edx
call fcn.10030090
add esp, 4
test eax, eax
jne 0x100199ed
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 8]
push edi
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.10030060
add esp, 0xc
test eax, eax
jne 0x100199ed
mov dl, byte [ebx + eax]
xor dl, 0x5c
mov byte [esp + eax + 0x18], dl
add eax, 1
cmp eax, 0x80
jl 0x100199a3
mov eax, dword [esi + 0xc]
push eax
call fcn.10030090
add esp, 4
test eax, eax
jne 0x100199ed
mov edx, dword [esi + 0xc]
push edi
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.10030060
add esp, 0xc
test eax, eax
jne 0x100199ed
mov eax, dword [esi + 8]
push eax
add esi, 4
push esi
call fcn.1002ff40
add esp, 8
pop ebx
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.100508c2
add esp, 0x8c
ret
Function at 0x10025bf0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x54
mov eax, dword [0x1006d680]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x58]
push ebx
mov ebx, dword [esp + 0x60]
push edi
mov edi, dword [eax + 0xc]
mov dword [esp + 0xc], 0
mov eax, dword [edi + 0x24]
test eax, eax
mov dword [esp + 8], eax
jne 0x10025c50
mov eax, dword [edi + 0x20]
push eax
call fcn.100256f0
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.100301f0
add esp, 0xc
test eax, eax
je 0x10025c4c
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.100508c2
add esp, 0x54
ret
mov eax, dword [esp + 8]
push ebp
push 0
lea edx, [esp + 0x14]
push edx
push 5
push eax
call fcn.100301b0
add esp, 0x10
test eax, eax
je 0x10025c6f
or ebp, 0xffffffff
jmp 0x10025d5e
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push eax
call fcn.10030090
add esp, 4
test eax, eax
je 0x10025c8c
xor ebp, ebp
jmp 0x10025d5d
mov ebp, dword [esp + 0x70]
mov ecx, dword [esp + 0x10]
push ebp
push ebx
push ecx
call fcn.10030060
mov edx, dword [esp + 0x1c]
push 0x18
push edi
push edx
call fcn.10030060
mov eax, dword [edi + 0x18]
mov ecx, dword [esp + 0x28]
push 0x18
push eax
push ecx
call fcn.10030060
mov edx, dword [esp + 0x34]
push 4
lea ebx, [edi + 0x1c]
push ebx
push edx
call fcn.10030060
add dword [ebx], 1
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x50]
push eax
push ecx
call fcn.10030030
mov eax, esi
cdq
sub eax, edx
mov esi, eax
mov eax, dword [ebx]
sar esi, 1
imul eax, esi
xor edx, edx
mov ecx, 0x18
div ecx
mov ebx, 0x18
add esp, 0x38
mov ecx, edx
lea eax, [esi + ecx]
cdq
idiv ebx
xor ebx, ebx
test esi, esi
jle 0x10025d5d
lea eax, [esp + 0x20]
sub eax, ecx
sub edx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov eax, ecx
cdq
mov ebp, 0x18
idiv ebp
add ebx, 1
lea ebp, [edx + edi]
mov edx, dword [esp + 0x18]
mov al, byte [edx + ecx]
xor byte [ebp], al
mov edx, dword [esp + 0x1c]
lea eax, [edx + ecx]
cdq
mov ebp, 0x18
idiv ebp
mov eax, dword [edi + 0x18]
add ecx, 1
lea ebp, [edx + eax]
lea eax, [esp + esi + 0x20]
mov dl, byte [eax + ebx - 1]
xor byte [ebp], dl
cmp ebx, esi
jl 0x10025d18
mov ebp, dword [esp + 0x70]
pop esi
cmp dword [edi + 0x24], 0
jne 0x10025d71
mov eax, dword [esp + 0xc]
push eax
call fcn.1002fec0
add esp, 4
mov ecx, dword [esp + 0x5c]
mov eax, ebp
pop ebp
pop edi
pop ebx
xor ecx, esp
call fcn.100508c2
add esp, 0x54
ret
Function at 0x10026da0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
xor esi, esi
push 0x400
xor ebx, ebx
mov dword [esp + 0x10], esi
call fcn.10005850
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x10026ed5
push edi
mov edi, dword [esp + 0x50]
cmp edi, ebx
je 0x10026ec0
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.MSVCR80.dll__stat64i32]
mov edx, dword [esp + 0x54]
push 0x30
lea ecx, [esp + 0x24]
push ecx
push edx
mov esi, eax
call fcn.100259a0
add esp, 0x14
test eax, eax
jne 0x10026e0f
push ebp
mov dword [esp + 0x14], ebx
call fcn.10005870
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x38
ret
cmp esi, ebx
mov dword [esp + 0x10], 0x30
jl 0x10026df8
mov ebx, dword [esp + 0x54]
test ebx, ebx
jle 0x10026ec0
push 0x1005c47c
push edi
call dword [sym.imp.MSVCR80.dll_fopen]
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
je 0x10026ec0
cmp ebx, 0x400
mov edi, ebx
jl 0x10026e51
mov edi, 0x400
push eax
push edi
push 1
push ebp
call dword [sym.imp.MSVCR80.dll_fread]
mov esi, eax
add esp, 0x10
test esi, esi
jle 0x10026ea5
mov eax, dword [esp + 0x4c]
push esi
push ebp
push eax
call fcn.100259a0
add esp, 0xc
test eax, eax
je 0x10026e88
add dword [esp + 0x10], esi
sub ebx, edi
test ebx, ebx
jle 0x10026ea5
mov eax, dword [esp + 0x14]
jmp 0x10026e42
push ebp
mov dword [esp + 0x14], 0
call fcn.10005870
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.MSVCR80.dll_fclose]
push 0x400
push 0
push ebp
call sub.MSVCR80.dll_memset
add esp, 0x10
push ebp
call fcn.10005870
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
Function at 0x10026ee0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x8c
mov eax, dword [0x1006d680]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
mov ebp, dword [esp + 0x98]
push esi
xor eax, eax
push edi
push eax
push eax
push eax
push str.DISPLAY
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 1
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
mov ebx, eax
push edi
mov dword [esp + 0x28], ebx
call esi
push 0xa
push edi
mov dword [esp + 0x2c], eax
call esi
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xa4]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
push esi
push ebx
mov dword [esp + 0x30], esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esp + 0x34]
push edx
push 0x18
push esi
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_GetObjectA]
movzx esi, word [esp + 0x44]
imul esi, dword [esp + 0x3c]
imul esi, dword [esp + 0x40]
push esi
call fcn.10005850
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10027064
push esi
push 0
push ebx
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff8
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
jle 0x1002705b
jmp 0x10026fd0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x24]
push 0xcc0020
push eax
mov eax, dword [esp + 0x28]
push 0
push edi
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x28]
push ebx
push esi
push ecx
call dword [sym.imp.GDI32.dll_GetBitmapBits]
mov eax, dword [ebp + 8]
lea edx, [esp + 0x4c]
push edx
push 5
push ebp
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], esi
call eax
add esp, 0xc
test eax, eax
jne 0x1002703e
mov ecx, dword [esp + 0x94]
mov eax, dword [ebp + 4]
push ecx
lea edx, [esp + 0x58]
push edx
push ebp
call eax
add esp, 0xc
mov dword [esp + 0x1c], eax
jmp 0x10027046
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x14]
add eax, 8
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
jl 0x10026fd0
push ebx
call fcn.10005870
add esp, 4
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x20]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call esi
push ebx
call esi
cmp dword [esp + 0x18], 0
pop edi
pop esi
pop ebp
pop ebx
mov eax, 0x28
je 0x1002709b
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0xc], 0
jne 0x100270a5
or eax, 0xffffffff
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.100508c2
add esp, 0x8c
ret
Function at 0x100272f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x44
mov eax, dword [0x1006d680]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
push esi
push edi
push 0x1005c47c
push eax
xor esi, esi
call dword [sym.imp.MSVCR80.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x10027354
push edi
push 0x40
lea eax, [esp + 0x10]
push 1
push eax
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
test eax, eax
jle 0x1002734a
mov edx, dword [ebx + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
push ebx
call edx
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1002734a
or esi, 0xffffffff
push edi
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov ecx, dword [esp + 0x48]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.100508c2
add esp, 0x44
ret
Function at 0x10027370
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x98
mov eax, dword [0x1006d680]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
mov ebx, dword [esp + 0xa0]
push esi
mov esi, dword [esp + 0xa8]
push edi
xor edi, edi
cmp esi, 1
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], edi
jne 0x10027423
cmp dword [0x1006dc20], edi
jne 0x10027423
lea eax, [esp + 0x14]
push edi
push eax
call fcn.100257b0
add esp, 8
cmp eax, 0x101
mov dword [0x1006dc20], esi
mov ecx, 8
jne 0x100273f3
mov al, byte [esp + 0x14]
test al, 4
je 0x100273df
mov ecx, 4
jmp 0x100273f3
test al, 2
je 0x100273ea
mov ecx, 2
jmp 0x100273f3
test al, 1
je 0x100273f3
mov ecx, 1
push ecx
push ebx
call fcn.10026ee0
add esp, 8
cmp eax, 0xffffffff
jne 0x1002741f
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.100508c2
add esp, 0x98
ret
add dword [esp + 0xc], eax
cmp dword [str.entropy], edi
je 0x10027463
push str.R_RAND_ENV_ENTROPY_FILE
call dword [sym.imp.MSVCR80.dll_getenv]
add esp, 4
cmp eax, edi
je 0x10027442
mov dword [str.entropy], eax
mov ecx, dword [str.entropy]
push ecx
call fcn.100272f0
add esp, 4
cmp eax, edi
mov dword [esp + 0x10], eax
mov dword [str.entropy], edi
jl 0x10027402
add dword [esp + 0xc], eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push esi
push 0x40
lea ecx, [esp + 0x30]
push ecx
push ebx
call fcn.10027270
add esp, 0x18
test eax, eax
jne 0x100274a1
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 4]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
call ecx
mov edx, dword [esp + 0x24]
add esp, 0xc
add dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push edi
push eax
call fcn.100257b0
add esp, 8
cmp eax, 0x101
jne 0x100274d8
test byte [esp + 0x14], 4
je 0x100274d8
call fcn.1002594a
mov edx, dword [ebx + 4]
push 4
lea ecx, [esp + 0x1c]
push ecx
push ebx
mov dword [esp + 0x24], eax
call edx
add esp, 0xc
jmp 0x10027508
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MSVCR80.dll__time64]
mov edx, dword [ebx + 4]
push 8
lea ecx, [esp + 0x20]
push ecx
push ebx
call edx
add dword [esp + 0x1c], eax
mov ecx, dword [ebx + 4]
mov dword [esp + 0x20], eax
push 0x40
lea eax, [esp + 0x74]
push eax
push ebx
call ecx
add esp, 0x1c
add dword [esp + 0xc], eax
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x10027402
mov eax, dword [ebx + 8]
lea edx, [esp + 0xc]
push edx
push 4
push ebx
call eax
mov ecx, dword [esp + 0xac]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100508c2
add esp, 0x98
ret
Function at 0x100326a0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [ecx + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
xor eax, eax
test dl, 1
push edi
mov dword [esp + 0x18], ebp
jne 0x100326c1
mov eax, 0x271a
jmp 0x10032713
test dl, 8
jne 0x100326cd
mov eax, 0x2732
jmp 0x10032713
cmp byte [ecx + 0xb5], al
mov edx, dword [ecx + 0x4c]
je 0x10032726
cmp dword [esp + 0x20], edx
jae 0x100326e8
pop edi
pop esi
pop ebp
mov eax, 0x271b
pop ebx
ret
test edx, edx
jbe 0x1003270d
mov edi, 0xfffffff4
mov esi, ebp
lea edx, [ecx + 0xc]
sub edi, ecx
mov bl, byte [edx + 0x20]
xor bl, byte [edx]
add edx, 1
mov byte [esi], bl
lea ebx, [edi + edx]
add esi, 1
cmp ebx, dword [ecx + 0x4c]
jb 0x100326f8
add ebp, dword [ecx + 0x4c]
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x10032721
sub ebp, dword [esp + 0x18]
mov dword [ecx], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
cmp dword [esp + 0x20], edx
jae 0x10032736
pop edi
pop esi
pop ebp
mov eax, 0x271d
pop ebx
ret
test edx, edx
jbe 0x10032710
mov edi, 0xfffffff4
mov esi, ebp
lea edx, [ecx + 0xc]
sub edi, ecx
mov bl, byte [edx + 0x20]
xor bl, byte [edx]
cmp bl, byte [esi]
jne 0x1003275f
add edx, 1
lea ebx, [edx + edi]
add esi, 1
cmp ebx, dword [ecx + 0x4c]
jb 0x10032746
jmp 0x10032710
mov eax, 0x2719
jmp 0x10032713

Function at 0x100361c0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
sub esp, 8
push ebx
mov ebx, dword [esp + 0x18]
shr ebx, 3
je 0x10036224
push ebp
mov ebp, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x20]
mov edx, dword [esi]
xor eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
xor ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x14]
push edx
add esi, 8
call ebp
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [edi], eax
mov dword [edi + 4], ecx
add esp, 8
add edi, 8
sub ebx, 1
jne 0x100361e5
mov edx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov dword [edx + 4], ecx
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x10036230
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
shr dword [esp + 0x1c], 3
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], edx
je 0x100362a7
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov eax, dword [esp + 0x30]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
add ebx, 8
call dword [esp + 0x40]
mov edx, dword [esp + 0x20]
xor edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
xor eax, dword [esp + 0x1c]
mov dword [ebp], edx
mov dword [ebp + 4], eax
add esp, 8
add ebp, 8
sub dword [esp + 0x2c], 1
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
jne 0x10036256
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp]
mov edx, dword [esp + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
add esp, 0x10
ret
Function at 0x1004e7c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
add eax, eax
add eax, eax
cmp eax, 4
push edi
lea ebx, [esi + 0x20]
jle 0x1004e877
add eax, 0xfffffffc
mov dword [esp + 0x10], eax
mov edi, dword [ebx]
mov eax, edi
and eax, 0x80808080
lea edx, [edi + edi]
and edx, 0xfefefefe
mov ecx, eax
shr ecx, 7
sub eax, ecx
and eax, 0x1b1b1b1b
xor eax, edx
mov ecx, eax
and ecx, 0x80808080
mov edx, ecx
shr edx, 7
sub ecx, edx
and ecx, 0x1b1b1b1b
lea edx, [eax + eax]
and edx, 0xfefefefe
xor ecx, edx
mov edx, ecx
and edx, 0x80808080
mov esi, edx
shr esi, 7
sub edx, esi
and edx, 0x1b1b1b1b
lea esi, [ecx + ecx]
and esi, 0xfefefefe
xor edx, esi
mov esi, edx
xor esi, edi
mov edi, esi
xor edi, ecx
rol edi, 0x10
mov ebp, esi
xor ebp, eax
ror ebp, 8
xor edi, ebp
rol esi, 8
xor edi, esi
xor edi, edx
xor edi, ecx
xor edi, eax
mov dword [ebx], edi
add ebx, 4
sub dword [esp + 0x10], 1
jne 0x1004e7e4
mov esi, dword [esp + 0x1c]
mov edx, dword [esi]
lea eax, [edx + 1]
shl eax, 4
shr edx, 1
lea ecx, [esi + 0x10]
add eax, esi
test edx, edx
mov dword [esp + 0x14], ecx
jle 0x1004e8d9
mov edi, edi
mov ebp, dword [ecx + 0xc]
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov dword [esp + 0x10], ebp
mov ebp, dword [eax]
mov dword [ecx], ebp
mov ebp, dword [eax + 4]
mov dword [ecx + 4], ebp
mov ebp, dword [eax + 8]
mov dword [ecx + 8], ebp
mov ebp, dword [eax + 0xc]
mov dword [ecx + 0xc], ebp
mov dword [eax], esi
mov esi, dword [esp + 0x10]
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], esi
sub edx, 1
add ecx, 0x10
sub eax, 0x10
test edx, edx
jg 0x1004e890
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov esi, dword [esi]
cmp esi, 0xe
je 0x1004e90e
lea eax, [esi*4]
mov edx, dword [ecx + eax*4]
mov dword [ecx + 0xe0], edx
mov edx, dword [ecx + eax*4 + 4]
mov dword [ecx + 0xe4], edx
mov edx, dword [ecx + eax*4 + 8]
mov dword [ecx + 0xe8], edx
mov eax, dword [ecx + eax*4 + 0xc]
mov dword [ecx + 0xec], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x1004ed10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
shr dword [esp + 0x1c], 4
push ebx
push esi
mov esi, dword [esp + 0x2c]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov ebx, dword [esi + 0xc]
je 0x1004ed9d
mov esi, dword [esp + 0x1c]
push ebp
push edi
mov edi, dword [esp + 0x28]
mov ebp, dword [esi]
xor ebp, eax
mov eax, dword [esi + 4]
xor eax, ecx
mov ecx, dword [esi + 8]
xor ecx, edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
push eax
lea ecx, [esp + 0x14]
xor edx, ebx
push ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], edx
add esi, 0x10
call dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ebp, ecx
mov dword [edi + 4], ebp
mov ebp, edx
mov dword [edi + 8], ebp
mov ebp, ebx
mov dword [edi], eax
mov dword [edi + 0xc], ebp
add esp, 8
add edi, 0x10
sub dword [esp + 0x2c], 1
jne 0x1004ed35
mov esi, dword [esp + 0x34]
pop edi
pop ebp
mov dword [esi], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret

Function at 0x1004edb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
shr dword [esp + 0x34], 4
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
push ebx
mov ebx, dword [eax]
push ebp
mov ebp, dword [eax + 4]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
je 0x1004ee73
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x40]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x2c]
push ecx
add esi, 0x10
call dword [esp + 0x58]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
xor ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
xor edx, ebx
mov ebx, dword [esp + 0x20]
mov dword [edi], edx
mov edx, dword [esp + 0x3c]
xor edx, dword [esp + 0x1c]
xor eax, ebp
mov ebp, dword [esp + 0x24]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0xc], edx
add esp, 8
add edi, 0x10
sub dword [esp + 0x44], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jne 0x1004ede1
mov eax, dword [esp + 0x4c]
pop edi
pop esi
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ebp
mov dword [eax], ebx
pop ebp
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
xor eax, eax
pop ebx
add esp, 0x28
ret
Function at 0x1004ee90
Capabilities:
Encrypt data using rc6

Disassembly:
sub esp, 0x10c
push ebx
push edi
mov edi, dword [esp + 0x118]
xor ebx, ebx
cmp edi, ebx
je 0x1004f036
push ebp
mov ebp, dword [esp + 0x120]
cmp ebp, 0x100
push esi
jle 0x1004eecc
mov dword [esp + 0x124], 0x100
mov ebp, dword [esp + 0x124]
mov eax, dword [esp + 0x12c]
cmp eax, ebx
jg 0x1004eee4
mov dword [esp + 0x12c], 0xc
jmp 0x1004eef4
cmp eax, 0x14
jle 0x1004eef4
mov dword [esp + 0x12c], 0x14
mov eax, dword [esp + 0x12c]
mov dword [edi], eax
lea eax, [ebp - 8]
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x1c], ebx
jl 0x1004ef3f
lea esi, [eax + 8]
mov eax, dword [esp + 0x128]
shr esi, 3
lea ebx, [esi*8]
mov edi, edi
mov edx, dword [eax]
add eax, 4
mov dword [esp + ecx*4 + 0x1c], edx
mov edx, dword [eax]
add ecx, 1
mov dword [esp + ecx*4 + 0x1c], edx
add eax, 4
add ecx, 1
sub esi, 1
jne 0x1004ef20
jmp 0x1004ef46
mov eax, dword [esp + 0x128]
mov esi, ebp
sub esi, ebx
test esi, esi
jle 0x1004ef8e
cmp esi, 4
jl 0x1004ef62
mov edx, dword [eax]
mov dword [esp + ecx*4 + 0x1c], edx
add eax, 4
add ecx, 1
sub esi, 4
test esi, esi
jle 0x1004ef8e
cmp esi, 2
movzx ebp, byte [eax]
jl 0x1004ef75
xor edx, edx
mov dh, byte [eax + 1]
or ebp, edx
cmp esi, 3
jl 0x1004ef83
movzx eax, byte [eax + 2]
shl eax, 0x10
or ebp, eax
mov dword [esp + ecx*4 + 0x1c], ebp
mov ebp, dword [esp + 0x124]
mov ecx, dword [esp + 0x12c]
lea eax, [ebp + 3]
cdq
and edx, 3
add edx, eax
lea ecx, [ecx + ecx + 2]
sar edx, 2
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov dword [edi + 4], 0xb7e15163
jle 0x1004efd4
lea ecx, [ecx]
mov esi, dword [edi + eax*4]
sub esi, 0x61c88647
mov dword [edi + eax*4 + 4], esi
add eax, 1
cmp eax, ecx
jl 0x1004efc0
cmp ecx, edx
jg 0x1004efda
mov ecx, edx
lea ecx, [ecx + ecx*2]
xor ebp, ebp
xor esi, esi
xor ebx, ebx
xor eax, eax
test ecx, ecx
jle 0x1004f034
mov dword [esp + 0x10], ecx
lea ecx, [ecx]
mov edx, dword [esp + ebp*4 + 0x1c]
lea ecx, [ebx + eax]
add ecx, dword [edi + esi*4 + 4]
add edx, ebx
rol ecx, 3
mov eax, ecx
mov dword [edi + esi*4 + 4], ecx
mov cl, al
add cl, bl
and cl, 0x1f
add edx, eax
rol edx, cl
add esi, 1
cmp esi, dword [esp + 0x14]
mov dword [esp + ebp*4 + 0x1c], edx
mov ebx, edx
jl 0x1004f022
xor esi, esi
add ebp, 1
cmp ebp, dword [esp + 0x18]
jl 0x1004f02d
xor ebp, ebp
sub dword [esp + 0x10], 1
jne 0x1004eff0
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x10c
ret