joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453768
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 8
mov dword [esp], eax
xor ecx, ecx
xor ecx, edx
cmp edx, 4
jl 0x4537a1
imul ebp, dword [eax], 0x5bd1e995
mov ebx, ebp
shr ebx, 0x18
xor ebp, ebx
imul esi, ebp, 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
xor ecx, esi
add eax, 4
add edx, 0xfffffffc
cmp edx, 4
jge 0x45377b
cmp edx, 3
je 0x4537b2
cmp edx, 2
je 0x4537bb
cmp edx, 1
je 0x4537c4
jmp 0x4537cf
movzx edx, byte [eax + 2]
shl edx, 0x10
xor ecx, edx
movzx edx, byte [eax + 1]
shl edx, 8
xor ecx, edx
movzx eax, byte [eax]
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
mov edx, ecx
shr edx, 0xd
xor ecx, edx
imul edx, ecx, 0x5bd1e995
mov eax, edx
shr eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x18
mov eax, dword [ecx*4 + 0x7ae080]
mov ecx, dword [0x8097fc]
mov dword [esp + 4], ecx
cmp eax, ecx
jge 0x453846
mov ecx, dword [0x809800]
mov ebx, eax
mov ebp, edx
mov esi, dword [ecx + ebx*4]
cmp ebp, dword [esi + 4]
jne 0x45383d
mov edi, dword [esi]
mov esi, dword [esp]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x453834
or dl, dl
je 0x453830
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x453834
add edi, 2
add esi, 2
or dl, dl
jne 0x453814
xor eax, eax
jmp 0x453839
sbb eax, eax
or eax, 1
test eax, eax
je 0x453853
inc ebx
mov esi, dword [esp + 4]
cmp ebx, esi
jl 0x453807
mov eax, 0xffffffff
add esp, 8
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, ebx
add esp, 8
pop ebx
pop ebp
pop esi
pop edi
ret
Function at 0x45c614
Capabilities:
Get file attributes

Disassembly:
push esi
push ebp
push ebx
push esi
mov ebp, eax
push 0x809760
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x8093fc], 0
jbe 0x45c65a
xor ebx, ebx
mov edx, dword [0x809400]
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x45c64a
push eax
call fcn.0046b04f
pop ecx
mov edx, dword [0x809400]
mov dword [edx + ebx*4], 0
inc ebx
cmp ebx, dword [0x8093fc]
jb 0x45c630
mov edx, dword [0x809400]
test edx, edx
je 0x45c66b
push edx
call fcn.0046b04f
pop ecx
xor edx, edx
mov dword [0x809400], edx
push edx
push edx
push 0xffffffffffffffff
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileA]
mov ebx, eax
mov edx, 0x10000
cmp ebx, 0x10000
jbe 0x45c68f
mov ebx, edx
mov dword [0x8093fc], ebx
lea ecx, [ebx + ebx]
add ecx, ecx
push ecx
call fcn.0046adec
pop ecx
mov dword [0x809400], eax
test ebx, ebx
jbe 0x45c6d1
xor edx, edx
mov ebx, eax
mov esi, edx
jmp 0x45c6b8
mov ebx, dword [0x809400]
push 0x209
call fcn.0046adec
pop ecx
mov dword [ebx + esi*4], eax
mov ebx, dword [0x8093fc]
inc esi
cmp esi, ebx
jb 0x45c6b2
test ebx, ebx
jbe 0x45c732
xor ebx, ebx
mov dword [esp], edi
mov eax, dword [0x809400]
push 0x209
push dword [eax + ebx*4]
push ebx
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileA]
mov eax, dword [0x809400]
push dword [eax + ebx*4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
cmp eax, 0x10
jne 0x45c726
mov eax, dword [0x809400]
mov edi, dword [eax + ebx*4]
mov edx, 0x80f2f8
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x45c71c
inc ebx
cmp ebx, dword [0x8093fc]
jb 0x45c6da
mov edi, dword [esp]
push ebp
call dword [sym.imp.SHELL32.dll_DragFinish]
push 0x809760
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ecx
pop ebx
pop ebp
pop esi
ret
Function at 0x4607c0
Capabilities:
Read file on windows

Disassembly:
push esi
lea edx, [esp]
push 4
push edx
push dword [eax]
call fcn.0046b6fe
mov eax, dword [esp + 0xc]
add esp, 0x10
ret

Function at 0x4607dc
Capabilities:
Read file on windows

Disassembly:
push edi
push ebx
sub esp, 0x24
mov edi, eax
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4607f5
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x4607ed
mov ebx, eax
inc ebx
push ebx
call fcn.0046adec
pop ecx
mov ecx, dword [0x809600]
mov edx, dword [0x8095fc]
mov dword [edx + ecx*4], eax
mov edx, dword [0x8095fc]
mov ecx, dword [0x809600]
mov edx, dword [edx + ecx*4]
test edx, edx
je 0x460951
push ebx
push edi
push edx
call dword [0x5d348c]
add esp, 0xc
mov ebx, dword [0x809600]
mov ecx, dword [0x8095fc]
lea eax, [esp + 8]
mov edx, dword [ecx + ebx*4]
call fcn.004609c4
movsx eax, byte [esp + 0x10]
test eax, eax
je 0x46092c
lea eax, [esp + 0x20]
push 4
push eax
push dword [esp + 0x10]
call fcn.0046b6fe
add esp, 0xc
lea eax, [esp + 8]
call fcn.004607c0
mov edi, eax
lea eax, [esp + 8]
call fcn.004607c0
mov ebx, eax
lea eax, [esp + 8]
call fcn.00460a54
mov edx, dword [esp + 0x20]
cmp edx, 0x465059
jne 0x4608ca
cmp edi, 0x1e1
je 0x4608a4
cmp edi, 0xea
jl 0x460907
mov edx, dword [0x809604]
add edx, ebx
mov dword [0x809604], edx
cmp edx, 0x186a0
jge 0x4608eb
mov eax, dword [0x809600]
inc eax
mov dword [0x809600], eax
cmp eax, 0x64
jge 0x4608d2
xor eax, eax
add esp, 0x24
pop ebx
pop edi
ret
push 0x64
push 1
push 0x196c2
call fcn.00467e74
mov eax, 0xffffffff
add esp, 0x30
pop ebx
pop edi
ret
push 0x186a0
push 1
push 0x196cc
call fcn.00467e74
mov eax, 0xffffffff
add esp, 0x30
pop ebx
pop edi
ret
mov edx, dword [0x809600]
mov eax, dword [0x8095fc]
push dword [eax + edx*4]
push 1
push 0x196b8
call fcn.00467e74
mov eax, 0xffffffff
add esp, 0x30
pop ebx
pop edi
ret
mov edx, dword [0x809600]
mov eax, dword [0x8095fc]
push dword [eax + edx*4]
push 1
push 0xdbfb0
call fcn.00467e74
mov eax, 0xfffffffe
add esp, 0x30
pop ebx
pop edi
ret
push 1
push 0x186aa
call fcn.00467ed0
mov eax, 0xffffffff
add esp, 0x2c
pop ebx
pop edi
ret

Function at 0x460a40
Capabilities:
Read file on windows

Disassembly:
push ecx
push edx
push dword [eax]
call fcn.0046b6fe
add esp, 0xc
ret
Function at 0x4610d4
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp]
push eax
push 0
push 0x80fbd4
push 0x683680
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x461104
mov byte [0x809384], 1
xor eax, eax
add esp, 0x108
ret
lea eax, [esp]
push 0x80
push 0x8301
push eax
call fcn.0046da76
add esp, 0xc
cmp eax, 0xffffffff
je 0x461138
push eax
call fcn.0046dd5c
lea eax, [esp + 4]
push eax
call fcn.0046de3c
xor eax, eax
add esp, 0x110
ret
mov byte [0x809384], 1
xor eax, eax
add esp, 0x108
ret

Function at 0x461148
Capabilities:
Create thread

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push 0x42259c
call fcn.0046c83d
add esp, 0xc
mov ebx, eax
movsx edx, byte [0x5b66fc]
dec edx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop ebx
ret
Function at 0x464bec
Capabilities:
Get system information on windows

Disassembly:
push edi
sub esp, 0x24
call fcn.0045eacc
mov byte [0x8093cc], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movsx eax, byte [esp + 0x14]
mov byte [0x5b66fc], al
movsx edi, byte [0x5b66f4]
cmp edi, eax
jg 0x464c1b
mov edi, eax
movsx edx, byte [0x5b66f0]
cmp edx, edi
jl 0x464c28
mov edx, edi
mov byte [0x5b66f8], dl
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 8
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [0x80943c], eax
push 0xa
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [0x809440], eax
push 0xc
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [0x809444], eax
push 0x74
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [0x809448], eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x809448]
cmp eax, 0x3c
jae 0x464c8d
mov dword [0x809448], 0xffffffff
xor eax, eax
add esp, 0x24
pop edi
ret

Function at 0x466214
Capabilities:
Create thread

Disassembly:
movsx eax, byte [0x8093b4]
test eax, eax
je 0x466230
xor eax, eax
push eax
push eax
push 0x426a20
call fcn.0046c83d
add esp, 0xc
ret

Function at 0x466234
Capabilities:
Create thread

Disassembly:
push ebx
sub esp, 8
movsx edx, byte [0x5b66f8]
test edx, edx
jle 0x46628d
xor eax, eax
mov ebx, eax
xor edx, edx
push edx
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx*4 + 0x7b7ba0], eax
xor edx, edx
push edx
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx*4 + 0x7b7ca0], eax
xor edx, edx
push edx
push 1
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx*4 + 0x7b7da0], eax
inc ebx
movsx edx, byte [0x5b66f8]
cmp ebx, edx
jl 0x466247
test edx, edx
jle 0x4662e1
xor edx, edx
xor eax, eax
mov dword [esp], esi
mov ebx, eax
mov esi, edx
mov dword [ebx + 0x7b61a0], esi
xor edx, edx
lea eax, [ebx + 0x7b61a0]
lea ecx, [esp + 4]
push ecx
push edx
push eax
push 0x4257d4
push edx
push edx
call fcn.0046dfbd
add esp, 0x18
mov dword [esi*4 + 0x7b60a0], eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
add ebx, 0x68
inc esi
movsx ecx, byte [0x5b66f8]
cmp esi, ecx
jl 0x46629c
mov esi, dword [esp]
add esp, 8
pop ebx
ret
Function at 0x467a74
Capabilities:
Inspect section memory permissions

Disassembly:
push esi
call dword [sym.imp.WINMM.dll_joyGetNumDevs]
test eax, eax
jg 0x467a88
mov dword [0x809084], eax
xor eax, eax
pop ecx
ret
mov edx, 0x10
cmp eax, 0x10
jl 0x467a94
mov eax, edx
mov dword [0x809084], eax
xor eax, eax
mov dword [esp], ebx
mov ebx, eax
lea edx, [ebx + 0x7ad4e0]
push 0x34
push edx
call dword [0x5d3480]
add esp, 8
mov dword [ebx + 0x7ad4e0], 0x34
mov dword [ebx + 0x7ad4e4], 0x83
add ebx, 0x34
cmp ebx, 0x340
jl 0x467aa0
mov ebx, dword [esp]
mov dword [0x7ad820], 1
mov dword [0x7ad824], 2
mov dword [0x7ad828], 4
mov dword [0x7ad82c], 8
mov dword [0x7ad830], 0x10
mov dword [0x7ad834], 0x20
mov dword [0x7ad838], 0x40
mov dword [0x7ad83c], 0x80
mov dword [0x7ad840], 0x100
mov dword [0x7ad844], 0x200
mov dword [0x7ad848], 0x400
mov dword [0x7ad84c], 0x800
mov dword [0x7ad850], 0x1000
mov dword [0x7ad854], 0x2000
mov dword [0x7ad858], 0x4000
mov dword [0x7ad85c], 0x8000
mov dword [0x7ad860], 0x10000
mov dword [0x7ad864], 0x20000
mov dword [0x7ad868], 0x40000
mov dword [0x7ad86c], 0x80000
mov dword [0x7ad870], 0x100000
mov dword [0x7ad874], 0x200000
mov dword [0x7ad878], 0x400000
mov dword [0x7ad87c], 0x800000
mov dword [0x7ad880], 0x1000000
mov dword [0x7ad884], 0x2000000
mov dword [0x7ad888], 0x4000000
mov dword [0x7ad88c], 0x8000000
mov dword [0x7ad890], 0x10000000
mov dword [0x7ad894], 0x20000000
mov dword [0x7ad898], 0x40000000
mov dword [0x7ad89c], 0x80000000
mov eax, 1
pop ecx
ret

Function at 0x46812c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x5e8fa0], eax
mov eax, 1
mov ecx, dword [eax*4 + 0x5e8f9c]
mov edx, ecx
shr edx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x5e8fa0], edx
inc eax
cmp eax, 0x270
jl 0x46813a
mov dword [0x5b66d8], eax
ret
Function at 0x473eb6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5b9d70
cmp edx, dword [eax]
je 0x473ed8
add eax, 8
inc ecx
cmp eax, 0x5b9e00
jl 0x473ec9
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5b9d70]
jne 0x474006
mov eax, dword [0x809db8]
cmp eax, 1
je 0x473fe0
test eax, eax
jne 0x473f09
cmp dword [0x5b7330], 1
je 0x473fe0
cmp edx, 0xfc
je 0x474006
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x473f40
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004754d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00472270
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x473f83
lea eax, [ebp - 0x1a4]
push eax
call fcn.00472270
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x591628
push edi
call fcn.00475350
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004754d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004754e0
lea eax, [ebp - 0xa0]
push 0x591608
push eax
call fcn.004754e0
push dword [esi + 0x5b9d74]
lea eax, [ebp - 0xa0]
push eax
call fcn.004754e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004784c0
add esp, 0x2c
pop edi
jmp 0x474006
lea eax, [ebp + 8]
lea esi, [esi + 0x5b9d74]
push 0
push eax
push dword [esi]
call fcn.00472270
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x490930
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x14]
cmp eax, 0xca
je 0x4909de
cmp eax, 0xcb
je 0x490973
cmp eax, 0xcc
je 0x490969
push ebx
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [ebx]
call dword [eax]
pop ecx
mov eax, ebx
call fcn.00490a10
pop ecx
pop ebx
ret
mov edx, dword [ebx + 0x190]
movzx ecx, byte [edx + 0x10]
test ecx, ecx
jne 0x49098c
mov edx, dword [ebx + 0x7c]
mov dword [ebx + 0x84], edx
jmp 0x490969
mov edx, dword [ebx + 8]
test edx, edx
je 0x490997
push ebx
call dword [edx]
pop ecx
push ebx
mov edx, dword [ebx + 0x190]
call dword [edx]
pop ecx
test eax, eax
je 0x490a08
cmp eax, 2
je 0x490981
mov edx, dword [ebx + 8]
test edx, edx
je 0x490997
cmp eax, 3
je 0x4909bb
cmp eax, 1
jne 0x490993
mov ecx, dword [edx + 4]
add ecx, 1
mov dword [edx + 4], ecx
mov edx, dword [ebx + 8]
mov eax, dword [edx + 8]
cmp ecx, eax
jl 0x49098f
mov ecx, dword [ebx + 0x11c]
add eax, ecx
mov dword [edx + 8], eax
mov edx, dword [ebx + 8]
jmp 0x49098f
push ebx
call fcn.00493768
pop ecx
movzx edx, byte [ebx + 0x40]
test edx, edx
jne 0x4909f9
mov dword [ebx + 0x14], 0xcb
jmp 0x490973
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ecx
pop ebx
ret
xor eax, eax
pop ecx
pop ebx
ret

Function at 0x490a10
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
sub esp, 8
mov ebx, eax
mov edx, dword [ebx + 0x14]
cmp edx, 0xcc
je 0x490a39
push ebx
mov edx, dword [ebx + 0x180]
call dword [edx]
pop ecx
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x14], 0xcc
mov edx, dword [ebx + 0x180]
movzx ecx, byte [edx + 8]
test ecx, ecx
je 0x490ad2
mov eax, dword [ebx + 0x78]
mov dword [esp], esi
mov dword [esp + 4], edi
lea ecx, [ebx + 0x78]
mov esi, ecx
jmp 0x490a5e
xor eax, eax
cmp eax, dword [ebx + 0x60]
jae 0x490aa6
mov edx, dword [ebx + 8]
test edx, edx
je 0x490a80
push ebx
mov dword [edx + 4], eax
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0x60]
mov dword [edx + 8], eax
mov edi, dword [ebx + 8]
call dword [edi]
pop ecx
mov eax, dword [ebx + 0x78]
mov edx, dword [ebx + 0x184]
mov edi, eax
xor eax, eax
push eax
push esi
push eax
push ebx
call dword [edx + 4]
add esp, 0x10
mov eax, dword [ebx + 0x78]
cmp eax, edi
je 0x490af3
cmp eax, dword [ebx + 0x60]
jb 0x490a63
mov edx, dword [ebx + 0x180]
push ebx
call dword [edx + 4]
push ebx
mov eax, dword [ebx + 0x180]
call dword [eax]
add esp, 8
mov edx, dword [ebx + 0x180]
mov dword [ebx + 0x78], 0
movzx eax, byte [edx + 8]
test eax, eax
jne 0x490a5c
mov esi, dword [esp]
mov edi, dword [esp + 4]
movzx edx, byte [ebx + 0x41]
test edx, edx
je 0x490ae1
mov edx, 0xce
jmp 0x490ae6
mov edx, 0xcd
mov dword [ebx + 0x14], edx
mov eax, 1
add esp, 8
pop ebx
ret
mov esi, dword [esp]
mov edi, dword [esp + 4]
xor eax, eax
add esp, 8
pop ebx
ret
Function at 0x49554c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push edi
push esi
push ebp
sub esp, 0x20
mov edi, eax
mov esi, dword [edi + 0x1a8]
mov edx, dword [edi + 0x4c]
cmp edx, 1
je 0x4956a1
mov byte [esi + 0x1c], 0
xor ebp, ebp
push dword [edi + 0x64]
mov ecx, dword [edi + 4]
lea edx, [ebp + 0x100]
push edx
push 1
push edi
call dword [ecx + 8]
add esp, 0x10
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov edx, dword [edi + 0x64]
test edx, edx
jle 0x49569a
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov dword [esp], ebx
xor edx, edx
mov ebx, eax
mov dword [esp + 4], edx
jmp 0x4955b3
mov edx, dword [esp + 0xc]
mov ebx, dword [edx + 0x18]
mov edi, dword [esp + 0xc]
mov ebp, dword [esp + 4]
mov esi, dword [esp + 8]
mov edi, dword [edi + ebp*4 + 0x20]
mov eax, ecx
cdq
idiv edi
lea ebp, [ebp + ebp]
test esi, esi
mov ecx, eax
je 0x4955e0
mov edx, dword [esp + 0xc]
add dword [ebx + ebp*2], 0xff
mov ebx, dword [edx + 0x18]
mov ebp, dword [ebx + ebp*2]
lea ebx, [edi + edi - 2]
mov dword [esp + 0x1c], ebx
lea eax, [edi + 0xfe]
cdq
idiv ebx
xor esi, esi
mov edx, eax
xor eax, eax
mov ebx, eax
mov eax, edi
mov edi, edx
cmp esi, edi
jle 0x49563c
mov dword [esp + 0x18], eax
mov edx, ebx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x1c]
shl edx, 9
sub edx, ebx
sub edx, ebx
lea edi, [eax + edx + 0xfe]
add edi, 0x1fe
add ebx, 1
mov eax, edi
cdq
idiv ecx
cmp esi, eax
jg 0x495620
mov ecx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x18]
mov edx, ecx
imul edx, ebx
mov byte [esi + ebp], dl
add esi, 1
cmp esi, 0xff
jle 0x495600
mov edx, dword [esp + 8]
test edx, edx
je 0x49567f
mov ebx, 1
movzx edx, byte [ebp]
mov esi, ebp
sub esi, ebx
mov byte [esi], dl
movzx edx, byte [ebp + 0xff]
mov byte [ebx + ebp + 0xff], dl
add ebx, 1
cmp ebx, 0xff
jle 0x49565c
mov edx, dword [esp + 4]
mov ebx, dword [esp + 0x10]
add edx, 1
cmp edx, dword [ebx + 0x64]
mov dword [esp + 4], edx
jl 0x4955ac
mov ebx, dword [esp]
add esp, 0x20
pop ebp
pop esi
pop edi
ret
mov byte [esi + 0x1c], 1
mov ebp, 0x1fe
jmp 0x49556c
Function at 0x4be550
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push ebx
not eax
test ecx, ecx
je 0x4be577
test dl, 3
je 0x4be577
movzx ebx, byte [edx]
xor ebx, eax
movzx ebx, bl
shr eax, 8
add edx, 1
xor eax, dword [ebx*4 + 0x595420]
add ecx, 0xffffffff
jne 0x4be558
cmp ecx, 0x20
jb 0x4be75e
xor eax, dword [edx]
movzx ebx, al
mov ebx, dword [ebx*4 + 0x596020]
mov esi, eax
shr esi, 8
and esi, 0xff
xor ebx, dword [esi*4 + 0x595c20]
mov esi, eax
shr esi, 0x10
and esi, 0xff
xor ebx, dword [esi*4 + 0x595820]
shr eax, 0x18
add ecx, 0xffffffe0
xor ebx, dword [eax*4 + 0x595420]
xor ebx, dword [edx + 4]
movzx eax, bl
mov eax, dword [eax*4 + 0x596020]
mov esi, ebx
shr esi, 8
and esi, 0xff
xor eax, dword [esi*4 + 0x595c20]
mov esi, ebx
shr esi, 0x10
and esi, 0xff
shr ebx, 0x18
xor eax, dword [esi*4 + 0x595820]
xor eax, dword [ebx*4 + 0x595420]
xor eax, dword [edx + 8]
movzx ebx, al
mov esi, eax
shr esi, 8
mov ebx, dword [ebx*4 + 0x596020]
and esi, 0xff
xor ebx, dword [esi*4 + 0x595c20]
mov esi, eax
shr esi, 0x10
and esi, 0xff
xor ebx, dword [esi*4 + 0x595820]
shr eax, 0x18
xor ebx, dword [eax*4 + 0x595420]
xor ebx, dword [edx + 0xc]
movzx eax, bl
mov eax, dword [eax*4 + 0x596020]
mov esi, ebx
shr esi, 8
and esi, 0xff
xor eax, dword [esi*4 + 0x595c20]
mov esi, ebx
shr esi, 0x10
and esi, 0xff
shr ebx, 0x18
xor eax, dword [esi*4 + 0x595820]
xor eax, dword [ebx*4 + 0x595420]
xor eax, dword [edx + 0x10]
movzx ebx, al
mov esi, dword [ebx*4 + 0x596020]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor esi, dword [ebx*4 + 0x595c20]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
shr eax, 0x18
xor esi, dword [ebx*4 + 0x595820]
xor esi, dword [eax*4 + 0x595420]
xor esi, dword [edx + 0x14]
mov eax, esi
and eax, 0xff
mov ebx, esi
shr ebx, 8
mov eax, dword [eax*4 + 0x596020]
movzx ebx, bl
xor eax, dword [ebx*4 + 0x595c20]
mov ebx, esi
shr ebx, 0x10
movzx ebx, bl
xor eax, dword [ebx*4 + 0x595820]
shr esi, 0x18
xor eax, dword [esi*4 + 0x595420]
xor eax, dword [edx + 0x18]
movzx ebx, al
mov ebx, dword [ebx*4 + 0x596020]
mov esi, eax
shr esi, 8
and esi, 0xff
xor ebx, dword [esi*4 + 0x595c20]
mov esi, eax
shr esi, 0x10
and esi, 0xff
shr eax, 0x18
xor ebx, dword [esi*4 + 0x595820]
xor ebx, dword [eax*4 + 0x595420]
xor ebx, dword [edx + 0x1c]
movzx eax, bl
mov esi, ebx
shr esi, 8
mov eax, dword [eax*4 + 0x596020]
and esi, 0xff
xor eax, dword [esi*4 + 0x595c20]
mov esi, ebx
shr esi, 0x10
and esi, 0xff
xor eax, dword [esi*4 + 0x595820]
shr ebx, 0x18
add edx, 0x20
xor eax, dword [ebx*4 + 0x595420]
cmp ecx, 0x20
jae 0x4be580
cmp ecx, 4
jb 0x4be7ac
xor eax, dword [edx]
movzx esi, al
mov ebx, dword [esi*4 + 0x596020]
mov esi, eax
shr esi, 8
and esi, 0xff
xor ebx, dword [esi*4 + 0x595c20]
mov esi, eax
shr esi, 0x10
and esi, 0xff
xor ebx, dword [esi*4 + 0x595820]
shr eax, 0x18
mov esi, eax
mov eax, ebx
xor eax, dword [esi*4 + 0x595420]
add ecx, 0xfffffffc
add edx, 4
cmp ecx, 4
jae 0x4be763
test ecx, ecx
je 0x4be7ca
movzx ebx, byte [edx]
xor ebx, eax
movzx ebx, bl
shr eax, 8
add edx, 1
xor eax, dword [ebx*4 + 0x595420]
add ecx, 0xffffffff
jne 0x4be7b0
not eax
pop ebx
pop esi
ret
Function at 0x4d294b
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x4d2a6e
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x4d2a52
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x4d29a4
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x4d2982
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18