joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464dde
Capabilities:
Log keystrokes

Disassembly:
push 4
mov eax, 0x546161
call fcn.004e6a1f
and dword [ebp - 0x10], 0
mov esi, dword [ebp + 8]
mov eax, dword [0x5a3004]
mov dword [esi], eax
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
and dword [ebp - 4], 0
inc ebx
movzx edx, cx
mov dword [ebp - 0x10], ebx
push 2
pop edi
cmp edx, 0x25
ja 0x464e87
je 0x464e7d
mov eax, edx
sub eax, 0xd
je 0x464e73
sub eax, 0xe
je 0x464e69
sub eax, 5
je 0x464e5f
sub eax, ebx
je 0x464e55
sub eax, ebx
je 0x464e4b
sub eax, ebx
je 0x464e41
sub eax, ebx
jne 0x464ebe
push str.Home
jmp 0x465004
push 0x55abb4
jmp 0x465004
push str.PageDown
jmp 0x465004
push str.PageUp
jmp 0x465004
push str.Space
jmp 0x465004
push 0x55ab68
jmp 0x465004
push 0x55ab70
jmp 0x465004
push str.Left
jmp 0x465004
mov eax, edx
sub eax, 0x26
je 0x464fff
sub eax, 1
je 0x464ff8
sub eax, 1
je 0x464ff1
sub eax, edi
je 0x464fea
sub eax, 3
je 0x464fe3
sub eax, 1
je 0x464fdc
cmp cx, 0x30
jb 0x464eca
cmp cx, 0x39
jbe 0x464ed3
lea eax, [ecx - 0x41]
cmp ax, 0x19
ja 0x464eea
movzx eax, cx
mov ecx, esi
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push ebx
call fcn.00408f4e
jmp 0x46500b
lea eax, [ecx - 0x60]
cmp ax, 9
ja 0x464f0e
lea eax, [edx - 0x60]
push eax
push str.Num__d
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.0042364c
add esp, 0x10
mov dword [ebp - 4], ebx
jmp 0x464f60
cmp cx, 0x6a
jne 0x464f1e
push 0x55ac18
jmp 0x465004
cmp cx, 0x6b
jne 0x464f2e
push str.Num_
jmp 0x465004
cmp cx, 0x6e
jne 0x464f3e
push str.Num_Del
jmp 0x465004
lea eax, [ecx - 0x70]
cmp ax, 0xb
ja 0x464f7c
lea eax, [edx - 0x6f]
push eax
push 0x55ac40
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.0042364c
add esp, 0x10
mov dword [ebp - 4], edi
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff4
cmp ecx, dword [section..data]
je 0x46500b
call fcn.00407915
jmp 0x46500b
push edi
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov cl, al
movsx eax, cl
cmp eax, 0x3b
jg 0x464fab
je 0x464fc4
sub eax, 0x27
je 0x464fc4
sub eax, 5
je 0x464fc4
sub eax, 1
je 0x464fc4
sub eax, 1
je 0x464fc4
sub eax, 1
je 0x464fc4
jmp 0x46500b
sub eax, 0x3d
je 0x464fc4
sub eax, 0x1e
je 0x464fc4
sub eax, 1
je 0x464fc4
sub eax, 1
je 0x464fc4
sub eax, 3
jne 0x46500b
movsx ax, cl
mov ecx, esi
movzx eax, ax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push ebx
call fcn.0042c706
jmp 0x46500b
push 0x5740c8
jmp 0x465004
push str.Insert
jmp 0x465004
push str.Print
jmp 0x465004
push str.Down
jmp 0x465004
push str.Right
jmp 0x465004
push 0x55ab7c
mov ecx, esi
call fcn.00408d6e
mov eax, esi
call fcn.004e69ed
ret

Function at 0x46b0c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x46b128
mov ecx, esi
call fcn.0046b12d
push 0
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x3ac]
test ecx, ecx
je 0x46b103
push 0
call fcn.004265e4
and dword [esi + 0x3ac], 0
mov ecx, dword [0x5abc24]
lea ecx, [ecx + 8]
call fcn.0041812d
mov ecx, dword [esi + 0x3a4]
test ecx, ecx
je 0x46b128
pop esi
mov ecx, dword [ecx + 0x174]
pop ebp
jmp fcn.0046bc5f
pop esi
pop ebp
ret 4
Function at 0x471a8a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x5abc3b], 0
jne 0x471b39
push esi
push 0x55c350
call fcn.0047eda0
mov dword [esp], 0x55c2a8
call fcn.0047eda0
mov dword [esp], 0x55c110
call fcn.0047eda0
mov dword [esp], 0x55c134
call fcn.0047eda0
mov dword [esp], 0x55c090
call fcn.0047eda0
mov esi, 0x55c208
push esi
call fcn.004890b2
push esi
call fcn.004890b2
push 0x55c228
call fcn.004890b2
push 0x55c248
call fcn.004890b2
push 0x55c378
call fcn.004890b2
push 0x55c1c8
call fcn.004890b2
push 0x55c1e8
call fcn.004890b2
push 0x55c0b8
call fcn.004890b2
push 0x55c0d8
call fcn.004890b2
add esp, 0x28
mov byte [0x5abc3b], 1
pop esi
jmp 0x4913fa
ret
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x491402
mov dword [edx*4 + 0x5bf880], ecx
inc edx
cmp edx, 0x100
jb 0x4913fd
mov esi, 0x800
jmp 0x49144a
mov ecx, dword [edx*4 + 0x5bf480]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x5bf880]
mov dword [edx*4 + 0x5bf880], ecx
inc edx
cmp edx, esi
jb 0x49142e
mov eax, 0x53f880
mov esi, 0x53f7a0
mov dword [0x5bf878], eax
mov dword [0x5bf870], eax
mov dword [0x5bf874], esi
call fcn.004a9c77
mov ecx, dword [0x5bf870]
test eax, eax
cmove ecx, esi
mov dword [0x5bf870], ecx
pop esi
ret

Function at 0x47250a
Capabilities:
Move file

Disassembly:
push 0x3c
mov eax, 0x547286
call fcn.004e6a52
mov esi, dword [ebp + 0xc]
xor eax, eax
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], eax
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x472530
mov eax, dword [esi]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x47253a
mov ecx, dword [edi]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x472590
cmp dword [esi + 0x14], 8
jb 0x472550
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x40]
call fcn.004024f3
and dword [ebp - 4], 0
xor ebx, ebx
inc ebx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x44], ebx
jb 0x47256b
mov edi, dword [edi]
push edi
lea ecx, [ebp - 0x28]
call fcn.004024f3
push 3
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x40]
pop ebx
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], ebx
push eax
call fcn.0047250a
pop ecx
pop ecx
test al, al
je 0x472594
mov byte [ebp - 0x48], 1
test bl, 2
je 0x4725a4
lea ecx, [ebp - 0x28]
and ebx, 0xfffffffd
call fcn.0040258a
test bl, 1
je 0x4725b1
lea ecx, [ebp - 0x40]
call fcn.0040258a
mov al, byte [ebp - 0x48]
call fcn.004e6a01
ret

Function at 0x47294f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x47295d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x47296c
Capabilities:
Copy file
Delete file

Disassembly:
push 0x44
mov eax, 0x547342
call fcn.004e6a52
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x472a60
cmp dword [esi + 0x10], 0x104
ja 0x472a60
push esi
call fcn.0047294f
pop ecx
test al, al
jne 0x4729a4
inc al
jmp 0x472a62
xor edi, edi
lea ecx, [ebp - 0x28]
push esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.00402603
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push edi
add eax, 2
mov dword [ebp - 4], edi
push eax
call fcn.00472b56
push 0x1e
lea eax, [ebp - 0x50]
push edi
push eax
call fcn.004f5300
mov eax, dword [ebp - 0x40]
add esp, 0xc
and eax, 0xffbf
mov dword [ebp - 0x3a], edi
or eax, 0x414
mov dword [ebp - 0x50], edi
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x36], edi
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x44], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 0x14]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
cmp ecx, 8
jb 0x472a5c
mov eax, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
cmp ecx, 0x1000
jb 0x472a53
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00401403
mov eax, dword [ebp - 0x30]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
push ecx
push eax
call fcn.004e6456
pop ecx
pop ecx
mov al, bl
jmp 0x472a62
xor al, al
call fcn.004e6a01
ret
Function at 0x47486d
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0xa8], 5
jne 0x474894
cmp dword [ebp + 0xc], 0
je 0x474894
mov ecx, esi
call fcn.00474700
mov eax, 0x80004005
jmp 0x4749b6
xor ecx, ecx
push edi
cmp dword [esi + 0x64], ecx
jne 0x4748c3
push 0x55cbc0
call fcn.00474b41
pop ecx
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x4749b3
mov edx, dword [ecx]
lea eax, [esi + 0x24]
push eax
call dword [edx + 0x14]
jmp 0x4749b3
cmp byte [esi + 0x74], cl
jne 0x4748d8
cmp byte [esi + 0x80], cl
jne 0x4748d8
cmp byte [esi + 0x8c], cl
je 0x47493f
lea eax, [esi + 0x54]
cmp dword [eax + 0x14], 8
jb 0x4748e3
mov eax, dword [eax]
push ecx
push 0x80
push 3
push ecx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x47493f
xor edx, edx
lea ecx, [esi + 0x78]
cmp byte [esi + 0x74], dl
cmovne edx, ecx
xor eax, eax
cmp byte [esi + 0x80], al
lea ecx, [esi + 0x84]
push edx
cmovne eax, ecx
xor ecx, ecx
cmp byte [esi + 0x8c], cl
push eax
lea eax, [esi + 0x90]
cmovne ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0x6d], 0
je 0x47495a
lea eax, [esi + 0x54]
cmp dword [eax + 0x14], 8
jb 0x474950
mov eax, dword [eax]
push dword [esi + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edi, [esi + 0x54]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x474967
mov eax, dword [edi]
push eax
push str.FileDone:_s_n
call fcn.00474b41
pop ecx
pop ecx
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x4749b3
push dword [esi + 0xa4]
mov eax, dword [ecx]
push dword [esi + 0xa0]
push edi
call dword [eax + 0x1c]
test al, al
jne 0x47499b
mov eax, 0x80004005
jmp 0x4749b5
mov ecx, dword [esi + 0xac]
push dword [esi + 0xa4]
push dword [esi + 0xa0]
mov eax, dword [ecx]
push edi
call dword [eax + 0x10]
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x484cdd
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541709
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x5a3604]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x30]
mov dword [esi], vtable.NCompress::NLzma::CDecoder.0
push 0x5a34f8
push eax
mov dword [esi + 4], vtable.NCompress::NLzma::CDecoder.1.0
mov dword [esi + 8], vtable.NCompress::NLzma::CDecoder.2.0
mov dword [esi + 0xc], vtable.NCompress::NLzma::CDecoder.3.0
mov dword [esi + 0x10], vtable.NCompress::NLzma::CDecoder.4.0
mov dword [esi + 0x14], vtable.NCompress::NLzma::CDecoder.5.0
mov dword [esi + 0x18], vtable.NCompress::NLzma::CDecoder.6.0
call fcn.004a317d
push dword [esi + 0x24]
call fcn.00416ab6
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x484d5c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x48bc98
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
and dword [edi + 0x2cb0], 0
cmp dword [edi + 0x2cb8], 2
jne 0x48bcde
push 1
lea ecx, [edi + 0x38]
call fcn.0048bc12
test eax, eax
je 0x48bcd7
push dword [edi + 0x80]
mov ecx, edi
push dword [edi + 0x7c]
call fcn.0048b486
jmp 0x48be9e
and dword [edi + 0x2cb8], 0
mov edx, dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
push ebx
push 8
pop ecx
sub ecx, edx
mov dword [ebp - 0x10], edx
shr eax, cl
shr eax, 0x10
cmp dword [edi + 0x2ca0], 0x25
movzx eax, al
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x2cac]
jae 0x48bd1a
test eax, eax
mov ebx, 0x55dee4
mov ecx, 0x55ded4
mov eax, 0x55df14
jmp 0x48bd2b
test eax, eax
mov ebx, 0x55df04
mov ecx, 0x55def4
mov eax, 0x55df50
cmove ebx, ecx
mov dword [ebp - 4], eax
mov eax, dword [eax]
mov ecx, ebx
xor eax, dword [ebp - 8]
mov edx, 0xff
push esi
xor esi, esi
mov cl, byte [ecx]
sar edx, cl
not edx
test eax, edx
je 0x48bd67
mov edi, dword [ebp - 4]
inc esi
mov edx, 0xff
mov cl, byte [esi + ebx]
mov eax, dword [edi + esi*4]
xor eax, dword [ebp - 8]
sar edx, cl
not edx
test eax, edx
jne 0x48bd4d
mov edi, dword [ebp - 0xc]
movzx eax, byte [esi + ebx]
lea ebx, [edi + 0x38]
add eax, dword [ebp - 0x10]
mov ecx, ebx
mov dword [ebx], eax
call fcn.0048bb87
cmp esi, 9
jb 0x48be1d
jne 0x48bd99
push dword [edi + 0x80]
inc dword [edi + 0x2cb8]
push dword [edi + 0x7c]
jmp 0x48be95
and dword [edi + 0x2cb8], 0
mov ecx, edi
cmp esi, 0xe
jne 0x48bdcc
push 0x55dd90
call fcn.0048b51e
push 0xf
mov ecx, ebx
lea esi, [eax + 5]
call fcn.0048bc12
add eax, 0x7fff
push esi
mov dword [edi + 0x7c], eax
push eax
jmp 0x48be8f
mov eax, dword [edi + 0x78]
sub eax, esi
inc eax
and eax, 3
push 0x55dd58
mov ebx, dword [edi + eax*4 + 0x68]
call fcn.0048b51e
add eax, 2
cmp eax, 0x101
jne 0x48be00
cmp esi, 0xa
jne 0x48be00
xor dword [edi + 0x2cac], 1
xor eax, eax
jmp 0x48be9c
cmp ebx, 0x100
lea ecx, [eax + 1]
cmovb ecx, eax
mov eax, dword [edi + 0x2cc8]
dec eax
cmp ebx, eax
lea esi, [ecx + 1]
cmovb esi, ecx
jmp 0x48be79
mov ecx, dword [edi + 0x2ca0]
and dword [edi + 0x2cb8], 0
add ecx, esi
mov eax, ecx
shr eax, 4
sub ecx, eax
mov dword [edi + 0x2ca0], ecx
mov ecx, edi
push 0x55de38
call fcn.0048b51e
movzx ecx, al
mov ebx, dword [edi + ecx*4 + 0x494]
test al, al
je 0x48be76
dec dword [edi + ebx*4 + 0x1494]
mov eax, dword [edi + ecx*4 + 0x490]
inc dword [edi + eax*4 + 0x1494]
mov dword [edi + ecx*4 + 0x494], eax
mov dword [edi + ecx*4 + 0x490], ebx
add esi, 2
mov eax, dword [edi + 0x78]
push esi
push ebx
mov dword [edi + eax*4 + 0x68], ebx
mov eax, dword [edi + 0x78]
inc eax
mov dword [edi + 0x7c], ebx
and eax, 3
mov dword [edi + 0x78], eax
mov dword [edi + 0x80], esi
mov ecx, edi
call fcn.0048b486
pop esi
pop ebx
pop edi
leave
ret
Function at 0x491864
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], ecx
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
test edi, edi
je 0x49189a
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x49188d
cmp esi, ecx
jae 0x49197d
mov eax, esi
sub eax, edi
lea eax, [ebx + eax*4]
mov dword [ebp - 4], eax
xor edx, edx
mov ecx, dword [ebx + esi*4 - 4]
mov eax, esi
mov dword [ebp + 8], ecx
div edi
mov dword [ebp - 8], eax
test edx, edx
jne 0x491913
movzx ecx, cl
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
shl edx, 8
movzx eax, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
or edx, eax
mov eax, ecx
shl edx, 8
shr eax, 0x10
movzx eax, al
shr ecx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, cl
shl edx, 8
movzx ecx, byte [eax + str.cw]
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x55e4a0]
xor ecx, eax
or ecx, edx
jmp 0x491963
cmp edi, 6
jbe 0x491963
cmp edx, 4
jne 0x491963
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add edx, 4
xor eax, ecx
mov dword [ebp - 4], edx
mov dword [ebx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x4918ac
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4924af
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret

Function at 0x493288
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
or dword [edi], 0xffffffff
cmp dword [eax], 0x23170f69
jne 0x493363
mov ecx, 0x40c1
cmp word [eax + 4], cx
jne 0x493363
mov ebx, dword [ebp + 0x14]
mov edx, 0x2790
mov byte [ebx], 1
movzx ecx, word [eax + 6]
cmp cx, dx
jne 0x4932cc
mov byte [ebx], 0
jmp 0x4932da
mov edx, 0x2791
cmp cx, dx
jne 0x493363
mov ecx, dword [eax + 8]
xor esi, esi
mov eax, dword [eax + 0xc]
mov dword [ebp + 8], ecx
mov dword [ebp - 4], eax
cmp dword [0x5ac078], esi
jbe 0x493363
mov ch, byte [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [esi*4 + 0x5ac080]
cmp eax, dword [edx + 8]
jne 0x493339
mov edi, dword [ebp - 4]
cmp edi, dword [edx + 0xc]
mov edi, dword [ebp + 0x18]
jne 0x493339
xor eax, eax
cmp byte [ebx], al
je 0x493318
cmp dword [edx + 4], eax
jmp 0x49331a
cmp dword [edx], eax
sete al
test eax, eax
jne 0x493336
mov cl, byte [edx + 0x18]
test ch, ch
je 0x49332f
test cl, cl
sete al
jmp 0x493332
movzx eax, cl
test eax, eax
je 0x493344
mov eax, dword [ebp + 8]
inc esi
cmp esi, dword [0x5ac078]
jb 0x4932f6
jmp 0x493363
movzx eax, byte [ebp + 0xc]
movzx ecx, byte [ebp + 0xc]
xor eax, 1
cmp dword [edx + 0x14], 1
cmove eax, ecx
test eax, eax
je 0x493361
mov eax, 0x80004002
jmp 0x493365
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x495241
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 8
jb 0x49526a
mov edi, esi
shr edi, 3
mov eax, dword [ecx + 4]
sub esi, 8
xor eax, dword [ecx]
add ecx, 8
xor edx, eax
sub edi, 1
jne 0x495258
cmp esi, 4
jb 0x495274
xor edx, dword [ecx]
add ecx, 4
and esi, 3
cmp esi, 2
jbe 0x495287
movzx eax, byte [ecx]
shl eax, 0x10
xor edx, eax
inc ecx
jmp 0x495290
mov eax, edx
mov edi, ecx
cmp esi, 1
jbe 0x49529b
movzx eax, byte [ecx]
shl eax, 8
xor edx, eax
inc ecx
jmp 0x4952a3
mov edx, eax
mov ecx, edi
test esi, esi
je 0x4952a8
movzx ecx, byte [ecx]
xor edx, ecx
pop edi
mov eax, edx
pop esi
pop ebp
ret
Function at 0x4968a2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
mov dword [ebp + 8], eax
cmp eax, 3
jae 0x4968c1
push edi
call fcn.00497610
jmp 0x496919
mov ecx, dword [edi]
movzx edx, byte [ecx]
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 1]
mov ecx, dword [edi + 0x24]
xor edx, dword [edi + eax*4 + 0x60]
mov eax, dword [edi + 4]
movzx edx, dx
mov esi, dword [ecx + edx*4]
mov dword [ecx + edx*4], eax
push dword [edi + 0x30]
push dword [edi + 0x18]
push dword [edi + 0x14]
push dword [edi + 0x28]
push dword [edi]
push dword [edi + 4]
push esi
push dword [ebp + 8]
call fcn.0049778f
add esp, 0x20
inc dword [edi + 0x14]
inc dword [edi]
inc dword [edi + 4]
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
jne 0x49691a
push edi
call fcn.0049729e
pop ecx
sub ebx, 1
jne 0x4968ae
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x497318
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
push edi
mov dword [eax + 0x34], ecx
lea esi, [eax + 0x60]
mov word [eax + 0x1e], cx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x30], 0x20
mov byte [eax + 0x1d], 1
mov dword [eax + 0x48], 4
push 8
mov edx, ecx
pop edi
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
sub edi, 1
jne 0x497346
mov dword [esi], edx
inc ecx
add esi, 4
cmp ecx, 0x100
jb 0x497341
pop edi
pop esi
pop ebp
ret

Function at 0x49f17a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edx + 4]
mov ecx, dword [edx]
add esi, 2
lea esi, [edx + esi*4]
mov dword [ebp - 4], esi
test edi, edi
je 0x49f210
push ebx
mov ebx, dword [ebp + 0xc]
cmp ecx, 0x10
je 0x49f1b5
mov al, byte [esi + ecx]
xor byte [ebx], al
inc ecx
inc ebx
sub edi, 1
je 0x49f1b2
cmp ecx, 0x10
jne 0x49f1a1
mov dword [ebp + 0x10], edi
cmp edi, 0x10
jb 0x49f1de
mov ecx, dword [ebp - 4]
mov esi, edi
shr esi, 4
add ecx, 0x10
push esi
mov edx, ebx
call dword [0x5bf864]
shl esi, 4
add ebx, esi
sub edi, esi
mov esi, dword [ebp - 4]
push 0x10
mov dword [ebp + 0x10], edi
pop ecx
test edi, edi
je 0x49f20a
xor eax, eax
lea ecx, [esi + 0x10]
mov edi, esi
mov edx, esi
push 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [0x5bf864]
mov edx, dword [ebp + 0x10]
xor ecx, ecx
sub esi, ebx
mov al, byte [esi + ebx]
xor byte [ebx], al
inc ecx
inc ebx
sub edx, 1
jne 0x49f1fe
mov eax, dword [ebp + 8]
pop ebx
mov dword [eax], ecx
pop edi
pop esi
leave
ret
Function at 0x49f538
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov ecx, 0x12345678
mov esi, 0x23456789
mov edx, 0x34567890
cmp dword [ebp + 0x10], edi
jbe 0x49f591
push ebx
mov ebx, dword [ebp + 0xc]
movzx eax, byte [edi + ebx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5bf880]
movzx eax, cl
add eax, esi
imul esi, eax, 0x8088405
inc esi
mov eax, esi
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x5bf880]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x49f557
pop ebx
mov eax, dword [ebp + 8]
pop edi
mov dword [eax + 0x18], esi
mov dword [eax + 0x14], ecx
mov dword [eax + 0x1c], edx
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x49f5a5
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
and dword [ebp - 4], 0
push ebx
push esi
mov ebx, dword [edx + 0xc]
mov eax, dword [edx + 0x10]
mov esi, dword [edx + 0x14]
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x49f62b
mov edx, eax
mov edi, dword [ebp + 0xc]
mov eax, esi
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov eax, dword [ebp - 4]
shr ecx, 8
xor cl, byte [eax + edi]
movzx eax, cl
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x5bf880]
movzx eax, bl
add eax, edx
imul edx, eax, 0x8088405
inc edx
mov eax, edx
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x5bf880]
mov eax, dword [ebp - 4]
mov byte [eax + edi], cl
inc eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
cmp eax, edi
jb 0x49f5c6
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, edi
pop edi
mov dword [edx + 0x14], esi
pop esi
mov dword [edx + 0xc], ebx
pop ebx
leave
ret 0xc

Function at 0x49f63d
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
push edi
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0xc]
mov edi, dword [esi + 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], ecx
jbe 0x49f6c7
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0xc]
mov dl, byte [ecx + eax]
mov eax, edi
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov eax, dword [ebp - 4]
shr ecx, 8
xor cl, dl
mov byte [eax + esi], cl
movzx eax, dl
xor eax, ebx
mov ecx, dword [ebp - 4]
movzx eax, al
shr ebx, 8
xor ebx, dword [eax*4 + 0x5bf880]
movzx eax, bl
add eax, dword [ebp - 8]
imul esi, eax, 0x8088405
inc esi
mov eax, esi
mov dword [ebp - 8], esi
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [eax*4 + 0x5bf880]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [ebp + 0x10]
jb 0x49f65e
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [esi + 0x14], edi
pop edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
pop esi
pop ebx
leave
ret 0xc