joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436d10
Capabilities:
Hash data using crc32b

Disassembly:
cmp byte [0x516ee4], 0
jne 0x436edf
push 0x400
call fcn.00462d92
add esp, 4
push ebx
push esi
mov dword [0x516ee8], eax
xor eax, eax
push edi
xor ecx, ecx
test al, 1
je 0x436d3f
mov ecx, 0x80
mov edx, eax
shr edx, 1
test dl, 1
je 0x436d4b
or ecx, 0x40
shr edx, 1
test dl, 1
je 0x436d55
or ecx, 0x20
shr edx, 1
test dl, 1
je 0x436d5f
or ecx, 0x10
shr edx, 1
test dl, 1
je 0x436d69
or ecx, 8
shr edx, 1
test dl, 1
je 0x436d73
or ecx, 4
shr edx, 1
test dl, 1
je 0x436d7d
or ecx, 2
test dl, 2
je 0x436d85
or ecx, 1
mov edx, dword [0x516ee8]
shl ecx, 0x18
mov dword [edx + eax*4], ecx
mov edx, dword [0x516ee8]
mov ecx, dword [edx + eax*4]
mov esi, ecx
and esi, 0x80000000
neg esi
sbb esi, esi
and esi, 0x4c11db7
add ecx, ecx
xor esi, ecx
mov dword [edx + eax*4], esi
mov edx, dword [0x516ee8]
mov ecx, dword [edx + eax*4]
mov esi, ecx
and esi, 0x80000000
neg esi
sbb esi, esi
and esi, 0x4c11db7
add ecx, ecx
xor esi, ecx
mov dword [edx + eax*4], esi
mov edx, dword [0x516ee8]
mov ecx, dword [edx + eax*4]
mov esi, ecx
and esi, 0x80000000
neg esi
sbb esi, esi
and esi, 0x4c11db7
add ecx, ecx
xor esi, ecx
mov dword [edx + eax*4], esi
mov edx, dword [0x516ee8]
mov ecx, dword [edx + eax*4]
mov esi, ecx
and esi, 0x80000000
neg esi
sbb esi, esi
and esi, 0x4c11db7
add ecx, ecx
xor esi, ecx
mov dword [edx + eax*4], esi
mov edx, dword [0x516ee8]
mov ecx, dword [edx + eax*4]
mov esi, ecx
and esi, 0x80000000
neg esi
sbb esi, esi
and esi, 0x4c11db7
add ecx, ecx
xor esi, ecx
mov dword [edx + eax*4], esi
mov edx, dword [0x516ee8]
mov ecx, dword [edx + eax*4]
mov esi, ecx
and esi, 0x80000000
neg esi
sbb esi, esi
and esi, 0x4c11db7
add ecx, ecx
xor esi, ecx
mov dword [edx + eax*4], esi
mov edx, dword [0x516ee8]
mov ecx, dword [edx + eax*4]
mov esi, ecx
and esi, 0x80000000
neg esi
sbb esi, esi
and esi, 0x4c11db7
add ecx, ecx
xor esi, ecx
mov dword [edx + eax*4], esi
mov edx, dword [0x516ee8]
mov ecx, dword [edx + eax*4]
mov esi, ecx
and esi, 0x80000000
neg esi
sbb esi, esi
and esi, 0x4c11db7
add ecx, ecx
xor esi, ecx
mov dword [edx + eax*4], esi
mov edi, dword [0x516ee8]
mov edx, dword [edi + eax*4]
xor esi, esi
lea ecx, [esi + 0x1f]
nop
test dl, 1
je 0x436ebe
mov ebx, 1
shl ebx, cl
or esi, ebx
dec ecx
shr edx, 1
cmp ecx, 0xffffffff
jg 0x436eb0
mov dword [edi + eax*4], esi
inc eax
cmp eax, 0xff
jbe 0x436d34
pop edi
pop esi
mov byte [0x516ee4], 1
pop ebx
ret
Function at 0x436f00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x51484c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x408], eax
test edi, edi
jne 0x436f3a
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462878
mov esp, ebp
pop ebp
ret
push esi
call fcn.00436d10
or esi, 0xffffffff
cmp dword [ebp - 0x408], 0
jne 0x436f6d
mov eax, dword [0x516ee8]
movzx edx, byte [ebx]
mov ecx, esi
and ecx, 0xff
xor ecx, edx
shr esi, 8
xor esi, dword [eax + ecx*4]
inc ebx
dec edi
jne 0x436f51
jmp 0x437072
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.00464180
mov ecx, dword [0x516ee8]
add esp, 0xc
lea esp, [esp]
movzx eax, byte [ebx]
inc dword [ebp + eax*4 - 0x404]
mov edx, esi
and edx, 0xff
xor edx, eax
shr esi, 8
xor esi, dword [ecx + edx*4]
inc ebx
dec edi
jne 0x436f90
mov ecx, dword [ebp - 0x404]
add ecx, dword [ebp - 0x400]
xor ebx, ebx
add ecx, dword [ebp - 0x3fc]
mov eax, 7
add ecx, dword [ebp - 0x3f8]
add ecx, dword [ebp - 0x3f4]
add ecx, dword [ebp - 0x3f0]
add ecx, dword [ebp - 0x3ec]
xor edx, edx
add edx, dword [ebp + eax*4 - 0x404]
add edi, dword [ebp + eax*4 - 0x400]
add eax, 2
cmp eax, 0x7f
jl 0x436fe1
cmp eax, 0x80
jge 0x437006
mov ebx, dword [ebp + eax*4 - 0x404]
inc eax
add edi, edx
add ebx, edi
xor edx, edx
xor edi, edi
mov dword [ebp - 0x40c], ebx
cmp eax, 0x100
jge 0x437060
mov ebx, pe_nt_image_headers32
sub ebx, eax
cmp ebx, 2
jl 0x437048
jmp 0x437030
add edx, dword [ebp + eax*4 - 0x404]
add edi, dword [ebp + eax*4 - 0x400]
add eax, 2
cmp eax, 0xff
jl 0x437030
cmp eax, 0x100
jge 0x437056
add ecx, dword [ebp + eax*4 - 0x404]
mov ebx, dword [ebp - 0x40c]
add edi, edx
add ecx, edi
mov eax, dword [ebp - 0x408]
shr ebx, 2
cmp ebx, ecx
sbb edx, edx
neg edx
mov word [eax], dx
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
not eax
pop ebx
call fcn.00462878
mov esp, ebp
pop ebp
ret
Function at 0x4482e0
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx + 0x10], 0x67452301
mov dword [ecx + 0x14], 0xefcdab89
mov dword [ecx + 0x18], 0x98badcfe
mov dword [ecx + 0x1c], 0x10325476
mov dword [ecx + 0x20], 0xc3d2e1f0
mov dword [ecx + 0x24], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
ret
Function at 0x4497d0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x51484c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov edx, dword [ebx + 0x48]
sub edx, 6
push esi
push edi
test edx, edx
jle 0x4497f9
mov esi, dword [ebp + 8]
mov ecx, edx
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x28], esi
test edx, edx
jle 0x44983b
cmp esi, dword [ebx + 0x48]
jg 0x449951
cmp eax, edx
jge 0x44982c
cmp ecx, 4
jge 0x44982f
mov edi, dword [ebp + eax*4 - 0x24]
lea esi, [ecx + esi*4]
inc eax
inc ecx
mov dword [ebx + esi*4 + 0x4c], edi
mov esi, dword [ebp - 0x28]
cmp eax, edx
jl 0x449813
cmp ecx, 4
jne 0x449837
inc esi
mov dword [ebp - 0x28], esi
xor ecx, ecx
cmp eax, edx
jl 0x449806
cmp esi, dword [ebx + 0x48]
jg 0x449951
mov dword [ebp - 0x2c], 0x510b78
jmp 0x449850
movzx eax, byte [ebp + edx*4 - 0x27]
movzx eax, byte [eax + str.cw]
xor byte [ebp - 0x24], al
movzx eax, byte [ebp + edx*4 - 0x26]
movzx eax, byte [eax + str.cw]
xor byte [ebp - 0x23], al
movzx eax, byte [ebp + edx*4 - 0x25]
movzx eax, byte [eax + str.cw]
xor byte [ebp - 0x22], al
movzx eax, byte [ebp + edx*4 - 0x28]
movzx eax, byte [eax + str.cw]
xor byte [ebp - 0x21], al
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
xor byte [ebp - 0x24], al
add dword [ebp - 0x2c], 4
mov eax, 1
cmp edx, 8
je 0x4498b6
cmp edx, eax
jle 0x44990f
mov edi, dword [ebp + eax*4 - 0x28]
xor dword [ebp + eax*4 - 0x24], edi
inc eax
cmp eax, edx
jl 0x4498a7
jmp 0x44990f
mov edi, dword [ebp + eax*4 - 0x28]
xor dword [ebp + eax*4 - 0x24], edi
inc eax
cmp eax, 4
jl 0x4498b6
movzx eax, byte [ebp - 0x18]
movzx eax, byte [eax + str.cw]
xor byte [ebp - 0x14], al
movzx eax, byte [ebp - 0x17]
movzx eax, byte [eax + str.cw]
xor byte [ebp - 0x13], al
movzx eax, byte [ebp - 0x16]
movzx eax, byte [eax + str.cw]
xor byte [ebp - 0x12], al
movzx eax, byte [ebp - 0x15]
movzx eax, byte [eax + str.cw]
xor byte [ebp - 0x11], al
mov eax, 5
mov edi, dword [ebp + eax*4 - 0x28]
xor dword [ebp + eax*4 - 0x24], edi
inc eax
cmp eax, 8
jl 0x449901
xor eax, eax
test edx, edx
jle 0x449948
cmp esi, dword [ebx + 0x48]
jg 0x449951
cmp eax, edx
jge 0x449939
mov edi, edi
cmp ecx, 4
jge 0x44993c
mov edi, dword [ebp + eax*4 - 0x24]
lea esi, [ecx + esi*4]
inc eax
inc ecx
mov dword [ebx + esi*4 + 0x4c], edi
mov esi, dword [ebp - 0x28]
cmp eax, edx
jl 0x449920
cmp ecx, 4
jne 0x449944
inc esi
mov dword [ebp - 0x28], esi
xor ecx, ecx
cmp eax, edx
jl 0x449915
cmp esi, dword [ebx + 0x48]
jle 0x449850
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00462878
mov esp, ebp
pop ebp
ret 4
Function at 0x449970
Capabilities:
Encode data using xor

Disassembly:
mov edx, 1
cmp dword [ecx + 0x48], edx
jle 0x449a5a
push esi
lea eax, [ecx + 0x5e]
push edi
jmp 0x449990
movzx esi, byte [eax + 1]
mov esi, dword [esi*4 + 0x510778]
movzx edi, byte [eax - 1]
xor esi, dword [edi*4 + 0x50ff78]
movzx edi, byte [eax]
xor esi, dword [edi*4 + 0x510378]
movzx edi, byte [eax - 2]
xor esi, dword [edi*4 + 0x50fb78]
inc edx
mov dword [eax - 2], esi
movzx esi, byte [eax + 5]
mov esi, dword [esi*4 + 0x510778]
movzx edi, byte [eax + 4]
xor esi, dword [edi*4 + 0x510378]
movzx edi, byte [eax + 3]
xor esi, dword [edi*4 + 0x50ff78]
movzx edi, byte [eax + 2]
xor esi, dword [edi*4 + 0x50fb78]
add eax, 0x10
mov dword [eax - 0xe], esi
movzx esi, byte [eax - 7]
mov esi, dword [esi*4 + 0x510778]
movzx edi, byte [eax - 8]
xor esi, dword [edi*4 + 0x510378]
movzx edi, byte [eax - 9]
xor esi, dword [edi*4 + 0x50ff78]
movzx edi, byte [eax - 0xa]
xor esi, dword [edi*4 + 0x50fb78]
mov dword [eax - 0xa], esi
movzx esi, byte [eax - 3]
movzx edi, byte [eax - 4]
mov esi, dword [esi*4 + 0x510778]
xor esi, dword [edi*4 + 0x510378]
movzx edi, byte [eax - 5]
xor esi, dword [edi*4 + 0x50ff78]
movzx edi, byte [eax - 6]
xor esi, dword [edi*4 + 0x50fb78]
mov dword [eax - 6], esi
cmp edx, dword [ecx + 0x48]
jl 0x449990
pop edi
pop esi
ret
Function at 0x44a400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
push edi
mov ecx, esi
call fcn.0045f660
cmp eax, 0x10
jae 0x44a42c
mov edi, 0x10
nop
push 0
mov ecx, esi
call fcn.00409ee0
dec edi
jne 0x44a420
cmp byte [ebp + 0x18], 0
jne 0x44a454
mov ecx, esi
call fcn.00405cf0
test eax, eax
je 0x44a454
mov ecx, dword [eax]
mov dword [ebx + 0x38], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x3c], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x40], ecx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x44], edx
cmp dword [ebx + 0x2c], 0
je 0x44a468
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebx + 0x34], 0
je 0x44a47c
pop edi
pop esi
mov eax, 0xfffffffa
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 8]
test esi, esi
je 0x44a588
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x44a588
mov ecx, dword [ebx + 0x30]
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
sub ecx, 0
mov dword [ebp + 0x18], eax
je 0x44a551
dec ecx
je 0x44a4b9
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebx + 0x38]
xor eax, dword [esi]
mov ecx, dword [esi + 4]
xor ecx, dword [ebx + 0x3c]
mov edx, dword [esi + 8]
mov edi, dword [ebp + 0x10]
xor edx, dword [ebx + 0x40]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0xc]
xor eax, dword [ebx + 0x44]
mov dword [ebp - 0xc], ecx
push edi
lea ecx, [ebp - 0x10]
push ecx
mov ecx, ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call fcn.00449a60
mov eax, dword [ebp + 0x18]
dec eax
add esi, 0x10
mov dword [ebp + 0x10], eax
test eax, eax
jle 0x44a579
add edi, 8
mov edx, dword [edi - 8]
xor edx, dword [esi]
mov eax, dword [edi - 4]
xor eax, dword [esi + 4]
mov ecx, dword [esi + 8]
xor ecx, dword [edi]
mov dword [ebp - 0x10], edx
mov edx, dword [edi + 4]
xor edx, dword [esi + 0xc]
mov dword [ebp - 0xc], eax
add edi, 0x10
mov dword [ebp - 8], ecx
lea eax, [edi - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, ebx
mov dword [ebp - 4], edx
call fcn.00449a60
mov eax, dword [ebp + 0x10]
dec eax
add esi, 0x10
mov dword [ebp + 0x10], eax
test eax, eax
jg 0x44a500
mov eax, dword [ebp + 0x18]
pop edi
pop esi
shl eax, 7
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edi, eax
test eax, eax
jle 0x44a57c
mov eax, esi
mov esi, dword [ebp + 0x10]
sub eax, esi
mov dword [ebp + 0x10], eax
jmp 0x44a566
mov eax, dword [ebp + 0x10]
push esi
add eax, esi
push eax
mov ecx, ebx
call fcn.00449a60
dec edi
add esi, 0x10
test edi, edi
jg 0x44a563
mov eax, dword [ebp + 0x18]
pop edi
pop esi
shl eax, 7
pop ebx
mov esp, ebp
pop ebp
ret 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x44ad60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi + 0x2c], 0
mov dword [ebp - 4], esi
je 0x44ad7e
mov eax, 0xfffffffb
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esi + 0x30]
cmp ecx, 2
je 0x44ad98
cmp dword [esi + 0x34], 0
jne 0x44ad98
mov eax, 0xfffffffa
pop esi
mov esp, ebp
pop ebp
ret 0x14
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x44aef0
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x44aef0
cdq
and edx, 0x7f
push edi
lea edi, [edx + eax]
sar edi, 7
mov eax, ecx
sub eax, 0
mov dword [ebp + 8], edi
je 0x44aec3
dec eax
je 0x44add7
pop edi
pop ebx
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0x18], 0
je 0x44adfa
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
jmp 0x44ae14
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10], edx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp + 0x18], edi
test edi, edi
jle 0x44ae9e
mov eax, dword [ebp + 0x10]
lea edi, [ebx + 8]
sub ebx, eax
add ebx, 0xfffffff8
lea esi, [eax + 8]
mov dword [ebp + 0x10], ebx
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 4]
add ebx, esi
push ebx
call fcn.00449e30
mov eax, dword [ebp - 0x24]
xor eax, dword [ebp - 0x14]
mov ebx, dword [ebx]
mov ecx, dword [ebp - 0x20]
xor ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
xor dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x18]
xor edx, dword [ebp - 8]
mov dword [esi - 8], eax
mov dword [ebp - 0x24], eax
mov eax, dword [edi - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi - 4], ecx
mov dword [ebp - 0x20], ecx
mov ecx, dword [edi]
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + 4]
dec eax
mov dword [esi + 4], edx
add edi, 0x10
add esi, 0x10
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp + 0x18], eax
test eax, eax
jg 0x44ae30
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [eax], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, edi
pop edi
pop ebx
shl eax, 7
pop esi
mov esp, ebp
pop ebp
ret 0x14
test edi, edi
jle 0x44aee2
mov edx, dword [ebp + 0x10]
push edx
push ebx
mov ecx, esi
call fcn.00449e30
add dword [ebp + 0x10], 0x10
dec edi
add ebx, 0x10
test edi, edi
jg 0x44aec7
mov edi, dword [ebp + 8]
mov eax, edi
pop edi
pop ebx
shl eax, 7
pop esi
mov esp, ebp
pop ebp
ret 0x14
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x450a70
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x20]
mov dword [esi + 0x10], 0x12345678
mov dword [esi + 0x14], 0x23456789
mov dword [esi + 0x18], 0x34567890
xor edi, edi
call fcn.00409600
test eax, eax
jle 0x450afc
jmp 0x450aa0
push edi
lea ecx, [esi + 0x20]
call fcn.00407210
mov ecx, dword [esi + 0x10]
movsx eax, al
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x512160]
shr ecx, 8
xor eax, ecx
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x10], eax
movzx eax, al
add eax, dword [esi + 0x14]
inc edi
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x14], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x512160]
mov dword [esi + 0x18], ecx
lea ecx, [esi + 0x20]
call fcn.00409600
cmp edi, eax
jl 0x450aa0
pop edi
pop esi
pop ebx
ret 4

Function at 0x450b10
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
test ebx, ebx
je 0x450b89
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
and eax, 0xfffd
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
sar edx, 8
xor byte [esi + edi], dl
movsx edx, byte [esi + edi]
mov eax, dword [ecx + 0x10]
xor edx, eax
shr eax, 8
and edx, 0xff
mov edx, dword [edx*4 + 0x512160]
xor edx, eax
movzx eax, dl
add eax, dword [ecx + 0x14]
mov dword [ecx + 0x10], edx
mov edx, dword [ecx + 0x18]
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 0x14], eax
shr eax, 0x18
xor eax, edx
and eax, 0xff
shr edx, 8
xor edx, dword [eax*4 + 0x512160]
inc esi
mov dword [ecx + 0x18], edx
cmp esi, ebx
jb 0x450b22
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x450e50
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x450ecd
push ebx
mov ebx, dword [ebp + 8]
push esi
movsx ebx, byte [edi + ebx]
mov edx, dword [ecx + 0x10]
xor ebx, edx
mov eax, dword [ecx + 0x18]
shr edx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x512160]
xor ebx, edx
movzx edx, bl
add edx, dword [ecx + 0x14]
mov esi, eax
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 0x14], edx
shr edx, 0x18
xor edx, eax
shr eax, 8
mov dword [ecx + 0x10], ebx
mov ebx, dword [ebp + 8]
and edx, 0xff
xor eax, dword [edx*4 + 0x512160]
and esi, 0xfffd
mov dword [ecx + 0x18], eax
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
sar eax, 8
xor byte [edi + ebx], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x450e60
pop esi
pop ebx
pop edi
pop ebp
ret 8

Function at 0x450ee0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push eax
mov esi, ecx
call fcn.00450a70
xor ebx, ebx
call fcn.00464f2f
mov ecx, eax
sar ecx, 6
mov byte [ebp + 0x13], cl
test cl, cl
jne 0x450f09
mov byte [ebp + 0x13], al
mov cl, al
mov edi, dword [esi + 0x10]
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x512160]
mov eax, dword [esi + 0x18]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x10], ecx
movzx ecx, cl
add ecx, dword [esi + 0x14]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x14], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x512160]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
sar eax, 8
xor al, byte [ebp + 0x13]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, 0xa
jl 0x450ef3
mov ebx, dword [ebp + 8]
mov edi, dword [esi + 0x10]
sar ebx, 0x10
mov eax, dword [esi + 0x18]
movsx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x512160]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x10], ecx
movzx ecx, cl
add ecx, dword [esi + 0x14]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x14], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x512160]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
sar eax, 8
xor al, bl
mov ebx, dword [ebp + 8]
mov byte [ecx + 0xa], al
mov edi, dword [esi + 0x10]
sar ebx, 0x18
mov eax, dword [esi + 0x18]
movsx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x512160]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x10], ecx
movzx ecx, cl
add ecx, dword [esi + 0x14]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x14], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x512160]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
pop edi
sar eax, 8
xor al, bl
pop esi
mov byte [ecx + 0xb], al
pop ebx
pop ebp
ret 0xc
Function at 0x455020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0xa8]
cmp eax, 0xffffffff
je 0x45509c
cmp eax, 0x40
jbe 0x45504a
push esi
lea ecx, [esi + 0x40]
call fcn.00448ff0
mov dword [esi + 0xa8], 0x14
mov eax, dword [esi + 0xa8]
mov ecx, 0x40
sub ecx, eax
push ecx
add eax, esi
push 0
push eax
call fcn.00464180
add esp, 0xc
xor eax, eax
jmp 0x455070
xor dword [esi + eax*4], 0x36363636
inc eax
cmp eax, 0x10
jb 0x455070
push edi
lea ecx, [esi + 0x40]
call fcn.004482e0
push 0x40
push esi
lea ecx, [esi + 0x40]
call fcn.00448900
mov dword [esi + 0xa8], 0xffffffff
pop edi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4550b0
mov edx, dword [ebp + 8]
push eax
push edx
lea ecx, [esi + 0x40]
call fcn.00448900
pop esi
pop ebp
ret

Function at 0x4550c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x51484c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0xa8], 0xffffffff
je 0x4550ee
push esi
push 0
push 0
call fcn.00455020
add esp, 0xc
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 0x40]
call fcn.00448ff0
xor eax, eax
lea ecx, [ecx]
xor dword [esi + eax*4], 0x6a6a6a6a
inc eax
cmp eax, 0x10
jb 0x455100
lea ecx, [esi + 0x40]
call fcn.004482e0
push 0x40
push esi
lea ecx, [esi + 0x40]
call fcn.00448900
push 0x14
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [esi + 0x40]
call fcn.00448900
lea edx, [ebp - 0x18]
push edx
lea ecx, [esi + 0x40]
call fcn.00448ff0
mov eax, dword [ebp + 0xc]
pop edi
test eax, eax
je 0x455150
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.00464200
add esp, 0xc
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00462878
mov esp, ebp
pop ebp
ret
Function at 0x459760
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x45977e
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
ret 0xc
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x45987c
lea ebx, [ebx]
mov eax, ebx
cmp ebx, 0x15b0
jb 0x45979f
mov eax, 0x15b0
sub ebx, eax
mov dword [ebp + 0x10], ebx
cmp eax, 0x10
jb 0x459841
mov edx, eax
shr edx, 4
movzx ebx, byte [esi]
add ecx, ebx
movzx ebx, byte [esi + 1]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 2]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 3]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 4]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 5]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 6]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 7]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 8]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 9]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xa]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xb]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xc]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xd]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xe]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xf]
add edi, ecx
add ecx, ebx
add edi, ecx
add esi, 0x10
sub eax, 0x10
dec edx
jne 0x4597b2
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x459850
movzx edx, byte [esi]
add ecx, edx
inc esi
add edi, ecx
dec eax
jne 0x459845
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
jne 0x459790
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
pop ebp
ret 0xc
Function at 0x462878
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x51484c]
jne 0x462882
repz ret
jmp fcn.00466bc8

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x469253
call fcn.004680dc
mov dword [eax], esi
call fcn.004680c9
push 0x16
pop esi
mov dword [eax], esi
call fcn.00468077
mov eax, esi
jmp 0x4692a8
test dword [ebp + 0xc], 0xfffffff9
jne 0x469239
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x469280
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004680ef
pop ecx
call fcn.004680c9
mov eax, dword [eax]
jmp 0x4692a8
test al, 0x10
jne 0x4692a6
test al, 1
je 0x4692a6
test byte [ebp + 0xc], 2
je 0x4692a6
call fcn.004680dc
mov dword [eax], 5
call fcn.004680c9
mov dword [eax], 0xd
jmp 0x469277
xor eax, eax
pop esi
pop ebp
ret