joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452b00
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [0x50101f], 0
mov dl, 1
push ebx
push esi
push edi
xor ebx, ebx
movzx eax, dl
mov cl, dl
sar cl, 7
and cl, 0x1b
mov byte [ebx + 0x501118], dl
mov byte [eax + 0x501018], bl
mov al, dl
add al, al
inc ebx
xor cl, al
xor dl, cl
cmp ebx, 0x100
jb 0x452b14
mov byte [0x501019], 0
mov cl, 1
xor edx, edx
nop word [eax + eax]
movzx eax, cl
mov dword [edx + 0x501418], eax
mov al, cl
sar al, 7
add cl, cl
and al, 0x1b
add edx, 4
xor cl, al
cmp edx, 0x28
jb 0x452b50
xor ebx, ebx
nop
test ebx, ebx
je 0x452b86
movzx eax, byte [ebx + 0x501018]
mov ecx, 0x501217
sub ecx, eax
mov dl, byte [ecx]
jmp 0x452b88
xor dl, dl
mov cl, dl
rol cl, 1
xor dl, cl
rol cl, 1
xor dl, cl
rol cl, 1
mov al, cl
rol al, 1
xor al, cl
xor al, dl
xor al, 0x63
mov byte [ebx + 0x501218], al
movzx eax, al
mov byte [eax + 0x501318], bl
inc ebx
cmp ebx, 0x100
jb 0x452b70
mov ebx, 0xff
xor esi, esi
mov dword [ebp - 8], ebx
mov cl, byte [esi + 0x501218]
movzx edi, cl
mov eax, edi
mov dword [esi*4 + 0x503440], edi
rol eax, 8
mov dword [esi*4 + 0x503840], eax
mov eax, edi
rol eax, 0x10
mov dword [esi*4 + 0x503c40], eax
mov eax, edi
rol eax, 0x18
mov dword [esi*4 + 0x504040], eax
test cl, cl
je 0x452c2e
movzx ecx, byte [edi + 0x501018]
xor edx, edx
movzx eax, byte [0x50101a]
add eax, ecx
div ebx
movzx eax, byte [0x50101b]
add eax, ecx
mov ecx, 0xff
movzx ebx, byte [edx + 0x501118]
xor edx, edx
div ecx
movzx ecx, byte [edx + 0x501118]
jmp 0x452c32
xor ebx, ebx
xor ecx, ecx
shl ecx, 8
or ecx, edi
shl ecx, 8
or ecx, edi
shl ecx, 8
or ecx, ebx
mov eax, ecx
mov dword [esi*4 + 0x501440], ecx
rol eax, 8
mov dword [esi*4 + 0x501840], eax
mov eax, ecx
rol eax, 0x10
rol ecx, 0x18
mov dword [esi*4 + 0x501c40], eax
mov dword [esi*4 + 0x502040], ecx
mov cl, byte [esi + 0x501318]
movzx edx, cl
mov eax, edx
mov dword [esi*4 + 0x504440], edx
rol eax, 8
mov dword [esi*4 + 0x504840], eax
mov eax, edx
rol eax, 0x10
mov dword [esi*4 + 0x504c40], eax
mov eax, edx
rol eax, 0x18
mov dword [esi*4 + 0x505040], eax
test cl, cl
je 0x452d13
mov bl, byte [edx + 0x501018]
xor edx, edx
movzx ecx, byte [0x501026]
movzx eax, bl
add eax, ecx
mov ecx, 0xff
div ecx
movzx eax, byte [0x501021]
movzx ecx, bl
mov ebx, 0xff
add eax, ecx
movzx edi, byte [edx + 0x501118]
xor edx, edx
div ebx
movzx eax, byte [0x501025]
add eax, ecx
movzx ebx, byte [edx + 0x501118]
xor edx, edx
div dword [ebp - 8]
movzx eax, byte [edx + 0x501118]
xor edx, edx
mov dword [ebp - 4], eax
movzx eax, byte [0x501023]
add eax, ecx
mov ecx, 0xff
div ecx
movzx eax, byte [edx + 0x501118]
jmp 0x452d1c
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ebx
xor eax, eax
shl eax, 8
or eax, dword [ebp - 4]
shl eax, 8
or eax, ebx
mov ebx, 0xff
shl eax, 8
or eax, edi
mov ecx, eax
mov dword [esi*4 + 0x502440], eax
rol ecx, 8
mov dword [esi*4 + 0x502840], ecx
mov ecx, eax
rol ecx, 0x10
rol eax, 0x18
mov dword [esi*4 + 0x502c40], ecx
mov dword [esi*4 + 0x503040], eax
inc esi
cmp esi, 0x100
jb 0x452bc0
pop edi
pop esi
mov dword [0x505440], 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453cf7
Capabilities:
Move file

Disassembly:
push 0x3c
mov eax, 0x4cb903
call fcn.0044c345
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], 7
jbe 0x453d1d
mov eax, dword [esi]
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x453d27
mov ecx, dword [edi]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x453d7d
cmp dword [esi + 0x14], 7
jbe 0x453d3d
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x40]
call fcn.004035e0
and dword [ebp - 4], 0
xor ebx, ebx
inc ebx
cmp dword [edi + 0x14], 7
mov dword [ebp - 0x44], ebx
jbe 0x453d58
mov edi, dword [edi]
push edi
lea ecx, [ebp - 0x28]
call fcn.004035e0
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.00453cf7
pop ecx
pop ecx
test al, al
je 0x453d81
mov byte [ebp - 0x48], 1
test bl, 2
je 0x453d91
lea ecx, [ebp - 0x28]
and ebx, 0xfffffffd
call fcn.0045362b
test bl, 1
je 0x453d9e
lea ecx, [ebp - 0x40]
call fcn.0045362b
mov al, byte [ebp - 0x48]
call fcn.0044c2ef
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 7
jbe 0x454167
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x454176
Capabilities:
Copy file
Delete file

Disassembly:
push 0x3c
mov eax, 0x4cb9dc
call fcn.0044c345
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x454225
cmp dword [esi + 0x10], 0x104
ja 0x454225
push esi
call fcn.00454159
pop ecx
test al, al
jne 0x4541ab
inc al
jmp 0x454227
push esi
lea ecx, [ebp - 0x28]
call fcn.00403630
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
xor esi, esi
add eax, 2
push esi
push eax
mov dword [ebp - 4], esi
call fcn.0044b647
push 0x1e
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.004a4b20
mov eax, dword [ebp - 0x38]
add esp, 0xc
and eax, 0xffbf
mov dword [ebp - 0x32], esi
or eax, 0x414
mov dword [ebp - 0x48], esi
cmp dword [ebp - 0x14], 7
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x2e], esi
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x3c], esi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
lea ecx, [ebp - 0x28]
sete bl
call fcn.0045362b
mov al, bl
jmp 0x454227
xor al, al
call fcn.0044c2ef
ret
Function at 0x455290
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x98], 5
jne 0x4552b7
cmp dword [ebp + 0xc], 0
je 0x4552b7
mov ecx, esi
call fcn.00455122
mov eax, 0x80004005
jmp 0x4553c9
xor ecx, ecx
push edi
cmp dword [esi + 0x54], ecx
jne 0x4552e6
push 0x4d3264
call fcn.0045553e
pop ecx
mov ecx, dword [esi + 0x9c]
test ecx, ecx
je 0x4553c6
mov edx, dword [ecx]
lea eax, [esi + 0x14]
push eax
call dword [edx + 0x14]
jmp 0x4553c6
cmp byte [esi + 0x64], cl
jne 0x4552f5
cmp byte [esi + 0x70], cl
jne 0x4552f5
cmp byte [esi + 0x7c], cl
je 0x455353
lea eax, [esi + 0x44]
cmp dword [eax + 0x14], 7
jbe 0x455300
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 0x455353
xor edx, edx
lea ecx, [esi + 0x68]
cmp byte [esi + 0x64], dl
cmovne edx, ecx
xor eax, eax
cmp byte [esi + 0x70], al
lea ecx, [esi + 0x74]
push edx
cmovne eax, ecx
xor ecx, ecx
cmp byte [esi + 0x7c], cl
push eax
lea eax, [esi + 0x80]
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 + 0x5d], 0
lea edi, [esi + 0x44]
je 0x455370
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x455366
mov eax, dword [edi]
push dword [esi + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x45537a
mov eax, dword [edi]
push eax
push str.FileDone:_s_n
call fcn.0045553e
pop ecx
pop ecx
mov ecx, dword [esi + 0x9c]
test ecx, ecx
je 0x4553c6
push dword [esi + 0x94]
mov eax, dword [ecx]
push dword [esi + 0x90]
push edi
call dword [eax + 0x1c]
test al, al
jne 0x4553ae
mov eax, 0x80004005
jmp 0x4553c8
mov ecx, dword [esi + 0x9c]
push dword [esi + 0x94]
push dword [esi + 0x90]
mov eax, dword [ecx]
push edi
call dword [eax + 0x10]
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x458c99
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x50546f], 0
jne 0x458d71
push 0x4d3300
call fcn.004600f6
mov dword [esp], 0x4d35b0
call fcn.004600f6
mov dword [esp], 0x4d3360
call fcn.004600f6
mov dword [esp], 0x4d3384
call fcn.004600f6
mov dword [esp], 0x4d333c
call fcn.004600f6
mov dword [esp], 0x4d34d8
call fcn.00469196
mov dword [esp], 0x4d3458
call fcn.00469196
mov dword [esp], 0x4d3478
call fcn.00469196
mov dword [esp], 0x4d3498
call fcn.00469196
mov dword [esp], 0x4d34f8
call fcn.00469196
mov dword [esp], 0x4d3518
call fcn.00469196
mov dword [esp], 0x4d3538
call fcn.00469196
mov dword [esp], 0x4d3418
call fcn.00469196
mov dword [esp], 0x4d3438
call fcn.00469196
mov dword [esp], 0x4d3558
call fcn.00469196
mov dword [esp], 0x4d3578
call fcn.00469196
pop ecx
mov byte [0x50546f], 1
jmp 0x46b400
ret
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x5099e0], ecx
inc eax
cmp eax, 0x100
jb 0x46b402
cmp eax, 0x800
jae 0x46b4d3
nop word [eax + eax]
mov edx, dword [eax*4 + 0x5095e0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x5099e0]
mov dword [eax*4 + 0x5099e0], edx
inc eax
cmp eax, 0x800
jb 0x46b4b0
mov dword [0x50b9e8], 0x4c62b0
mov dword [0x50b9e0], 0x4c62b0
mov dword [0x50b9e4], 0x4c61d0
call fcn.0047c099
test eax, eax
jne 0x46b504
mov dword [0x50b9e0], 0x4c61d0
ret
Function at 0x466089
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbaeb
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4fa078]
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 0x4fa124
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.0047a780
push dword [esi + 0x24]
call fcn.0044bf7e
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x466108
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 0x469b00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cceb0
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4fa078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], vtable.ICompressSetFinishMode.0
mov dword [esi + 8], vtable.ICompressSetInStream2.0
mov dword [esi + 0xc], vtable.ISequentialInStream.0
mov dword [esi + 0x10], vtable.ICompressSetOutStreamSize.0
mov dword [esi + 0x14], vtable.ICompressSetBufSize.0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x44], 0x40000
mov dword [esi + 0x20], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x48], 0x40000
mov dword [esi + 0x24], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x4c], 0x40000
mov dword [esi + 0x28], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x50], 0x40000
mov dword [esi + 0x2c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x54], 0x40000
push 0x453054
push 0x469af0
push 4
push 4
lea eax, [esi + 0x98]
mov dword [ebp - 4], 0
push eax
mov dword [esi], vtable.NCompress::NBcj2::CDecoder.0
mov dword [esi + 4], vtable.NCompress::NBcj2::CDecoder.1.0
mov dword [esi + 8], vtable.NCompress::NBcj2::CDecoder.2.0
mov dword [esi + 0xc], vtable.NCompress::NBcj2::CDecoder.3.0
mov dword [esi + 0x10], vtable.NCompress::NBcj2::CDecoder.4.0
mov dword [esi + 0x14], vtable.NCompress::NBcj2::CDecoder.5.0
call fcn.004c549f
mov word [esi + 0xa8], 0
mov eax, esi
mov dword [esi + 0xb0], 0
mov dword [esi + 0xb4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46b5f3
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 0x46b6ce
mov ecx, 0x40c1
cmp word [eax + 4], cx
jne 0x46b6ce
mov ebx, dword [ebp + 0x14]
mov edx, 0x2790
mov byte [ebx], 1
movzx ecx, word [eax + 6]
cmp cx, dx
jne 0x46b637
mov byte [ebx], 0
jmp 0x46b645
mov edx, 0x2791
cmp cx, dx
jne 0x46b6ce
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 [0x5055a8], esi
jbe 0x46b6ce
mov ch, byte [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [esi*4 + 0x5055b0]
cmp eax, dword [edx + 8]
jne 0x46b6a4
mov edi, dword [ebp - 4]
cmp edi, dword [edx + 0xc]
mov edi, dword [ebp + 0x18]
jne 0x46b6a4
xor eax, eax
cmp byte [ebx], al
je 0x46b683
cmp dword [edx + 4], eax
jmp 0x46b685
cmp dword [edx], eax
sete al
test eax, eax
jne 0x46b6a1
mov cl, byte [edx + 0x18]
test ch, ch
je 0x46b69a
test cl, cl
sete al
jmp 0x46b69d
movzx eax, cl
test eax, eax
je 0x46b6af
mov eax, dword [ebp + 8]
inc esi
cmp esi, dword [0x5055a8]
jb 0x46b661
jmp 0x46b6ce
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 0x46b6cc
mov eax, 0x80004002
jmp 0x46b6d0
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46b940
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x20]
and esi, 0x3f
mov byte [esi + edi + 0x28], 0x80
inc esi
cmp esi, 0x38
je 0x46b982
push ebx
nop word [eax + eax]
and esi, 0x3f
jne 0x46b976
push edi
call fcn.0046bb30
add esp, 4
mov byte [edi + esi + 0x28], 0
inc esi
jmp 0x46b960
mov byte [esi + edi + 0x28], 0
inc esi
cmp esi, 0x38
jne 0x46b960
pop ebx
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
shld eax, ecx, 3
push edi
shl ecx, 3
bswap eax
bswap ecx
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], ecx
call fcn.0046bb30
mov esi, dword [ebp + 0xc]
add esp, 4
xor edx, edx
nop word [eax + eax]
mov ecx, dword [edi + edx*4 + 4]
lea esi, [esi + 8]
mov eax, dword [edi + edx*4]
add edx, 2
bswap eax
mov dword [esi - 8], eax
bswap ecx
mov dword [esi - 4], ecx
cmp edx, 8
jb 0x46b9b0
mov dword [edi], 0x6a09e667
mov dword [edi + 4], 0xbb67ae85
mov dword [edi + 8], 0x3c6ef372
mov dword [edi + 0xc], 0xa54ff53a
mov dword [edi + 0x10], 0x510e527f
mov dword [edi + 0x14], 0x9b05688c
mov dword [edi + 0x18], 0x1f83d9ab
mov dword [edi + 0x1c], 0x5be0cd19
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
pop edi
pop esi
pop ebp
ret

Function at 0x46ba20
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
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
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
pop ebp
ret
Function at 0x46cb30
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 ecx, ecx
lea esi, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], esi
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
mov dword [ebp - 8], ebx
test edi, edi
je 0x46cb6d
nop dword [eax]
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x46cb60
cmp ecx, esi
jae 0x46cc4e
mov eax, ecx
sub eax, edi
lea esi, [ebx + eax*4]
mov dword [ebp + 8], esi
lea eax, [ebx - 4]
mov ebx, dword [eax + ecx*4]
xor edx, edx
mov eax, ecx
div edi
mov dword [ebp - 4], eax
test edx, edx
jne 0x46cbe4
movzx edx, bl
movzx esi, byte [edx + str.cw]
mov edx, ebx
shr edx, 0x18
shl esi, 8
movzx eax, byte [edx + str.cw]
or esi, eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
shl esi, 8
shr ebx, 8
movzx eax, byte [eax + str.cw]
or esi, eax
movzx eax, bl
shl esi, 8
movzx ebx, byte [eax + str.cw]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x4d4cd8]
xor ebx, eax
or ebx, esi
mov esi, dword [ebp + 8]
jmp 0x46cc31
cmp edi, 6
jbe 0x46cc31
cmp edx, 4
jne 0x46cc31
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
or ebx, edx
mov eax, dword [esi]
add esi, 4
mov edx, dword [ebp - 8]
xor eax, ebx
mov dword [ebp + 8], esi
mov dword [edx + ecx*4], eax
inc ecx
lea eax, [edx - 4]
cmp ecx, dword [ebp - 0xc]
jb 0x46cb82
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46fd2b
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 0x46fd54
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 0x46fd42
cmp esi, 4
jb 0x46fd5e
xor edx, dword [ecx]
add ecx, 4
and esi, 3
cmp esi, 2
jbe 0x46fd71
movzx eax, byte [ecx]
shl eax, 0x10
xor edx, eax
inc ecx
jmp 0x46fd7a
mov eax, edx
mov edi, ecx
cmp esi, 1
jbe 0x46fd85
movzx eax, byte [ecx]
shl eax, 8
xor edx, eax
inc ecx
jmp 0x46fd8d
mov edx, eax
mov ecx, edi
test esi, esi
je 0x46fd92
movzx ecx, byte [ecx]
xor edx, ecx
pop edi
mov eax, edx
pop esi
pop ebp
ret
Function at 0x4762aa
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 0x476340
push ebx
mov ebx, dword [ebp + 0xc]
cmp ecx, 0x10
je 0x4762e5
mov al, byte [esi + ecx]
xor byte [ebx], al
inc ecx
inc ebx
sub edi, 1
je 0x4762e2
cmp ecx, 0x10
jne 0x4762d1
mov dword [ebp + 0x10], edi
cmp edi, 0x10
jb 0x47630e
mov ecx, dword [ebp - 4]
mov esi, edi
shr esi, 4
add ecx, 0x10
push esi
mov edx, ebx
call dword [0x5099c4]
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 0x47633a
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 [0x5099c4]
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 0x47632e
mov eax, dword [ebp + 8]
pop ebx
mov dword [eax], ecx
pop edi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jbe 0x4766d7
mov edx, dword [eax + 8]
push esi
mov esi, dword [eax + 0x10]
push edi
mov edi, dword [eax + 0xc]
nop dword [eax]
mov ecx, dword [ebp + 0xc]
movzx ecx, byte [ebx + ecx]
inc ebx
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x5099e0]
movzx ecx, dl
add ecx, edi
mov dword [eax + 8], edx
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
mov dword [eax + 0xc], edi
shr ecx, 0x18
xor ecx, esi
shr esi, 8
movzx ecx, cl
xor esi, dword [ecx*4 + 0x5099e0]
mov dword [eax + 0x10], esi
cmp ebx, dword [ebp + 0x10]
jb 0x476690
pop edi
pop esi
mov dword [eax + 0x14], 0x12345678
mov dword [eax + 0x18], 0x23456789
mov dword [eax + 0x1c], 0x34567890
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x476700
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [ecx + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp + 8], eax
test edi, edi
je 0x476845
mov edx, eax
push ebx
nop dword [eax]
mov eax, dword [ebp + 0xc]
or edx, 2
mov bl, byte [esi + eax]
mov eax, edx
xor eax, 1
imul eax, edx
mov edx, dword [ebp + 0xc]
shr eax, 8
xor al, bl
mov byte [esi + edx], al
inc esi
mov edx, dword [ecx + 0xc]
movzx eax, bl
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x5099e0]
movzx eax, dl
add eax, dword [ecx + 0x10]
imul eax, eax, 0x8088405
mov dword [ecx + 0xc], edx
mov edx, dword [ecx + 0x14]
inc eax
mov dword [ecx + 0x10], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x5099e0]
mov dword [ecx + 0x14], edx
cmp esi, edi
jb 0x4767e0
mov eax, dword [ebp + 8]
pop ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
mov eax, edi
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 8]
pop edi
mov dword [ecx + 0x10], edx
pop esi
mov esp, ebp
pop ebp
ret 0xc