joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404520
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor eax, eax
cmp dword [esp + 0x20], 0
je 0x404600
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x404600
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40456a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x404571
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x404550
jmp 0x404573
mov esi, 0x1505
jmp 0x404573
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx + 0x20]
lea edi, [ebx - 1]
mov edx, ebx
sub edx, 1
mov dword [esp + 8], edx
jb 0x404600
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x4045a4
inc edi
dec ebx
je 0x4045fe
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x4045fe
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x4045a0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040cda0
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x4045a0
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040cdc0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x4045a0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x404600
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404610
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor edi, edi
cmp dword [esp + 0x24], 0
je 0x404711
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404711
push ebx
call fcn.0040cda0
add esp, 4
test eax, eax
je 0x40466a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x404671
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x404650
jmp 0x404673
mov esi, 0x1505
jmp 0x404673
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov eax, ebx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x404711
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x4046a4
inc ebp
dec ebx
je 0x40470f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40470f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4046a0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cda0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4046a0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cdc0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4046a0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40470f
cmp dword [eax + 4], 2
mov edi, 0
jne 0x404711
mov edi, dword [eax + 8]
jmp 0x404711
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404740
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
fldz
fstp qword [esp + 0x10]
cmp dword [esp + 0x2c], 0
je 0x4047ab
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4047ab
push esi
call fcn.0040cda0
add esp, 4
test eax, eax
je 0x40478a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x404791
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x404770
jmp 0x404793
mov ebp, 0x1505
jmp 0x404793
mov ebp, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov edi, dword [ecx + 0x20]
lea ebx, [edi - 1]
mov eax, edi
sub eax, 1
mov dword [esp + 0xc], eax
jae 0x4047b7
fld qword [esp + 0x10]
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
and ebx, ebp
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x4047d4
inc ebx
dec edi
je 0x4047ab
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x4047ab
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x4047d0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cda0
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x4047d0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.0040cdc0
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x4047d0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x4047ab
cmp dword [eax + 4], 3
jne 0x4047ab
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x4047ab

Function at 0x404870
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor edi, edi
cmp dword [esp + 0x24], 0
je 0x404971
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404971
push ebx
call fcn.0040cda0
add esp, 4
test eax, eax
je 0x4048ca
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x4048d1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4048b0
jmp 0x4048d3
mov esi, 0x1505
jmp 0x4048d3
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov eax, ebx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x404971
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404904
inc ebp
dec ebx
je 0x40496f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40496f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404900
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cda0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404900
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cdc0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404900
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40496f
cmp dword [eax + 4], 5
mov edi, 0
jne 0x404971
mov edi, dword [eax + 8]
jmp 0x404971
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4049a0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, 0xffffffff
cmp dword [esp + 0x24], 0
je 0x404aa4
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404aa4
push ebx
call fcn.0040cda0
add esp, 4
test eax, eax
je 0x4049fa
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x404a01
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4049e0
jmp 0x404a03
mov esi, 0x1505
jmp 0x404a03
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov eax, ebx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x404aa4
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404a34
inc ebp
dec ebx
je 0x404a9f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x404a9f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404a30
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cda0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404a30
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cdc0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404a30
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x404a9f
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x404aa4
mov edi, dword [eax + 8]
jmp 0x404aa4
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404ab0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
push 0x2e
push ebp
call fcn.0040ce10
add esp, 8
test eax, eax
je 0x404b14
mov esi, eax
jmp 0x404af4
mov ebp, esi
inc ebp
push 0x2e
push ebp
call fcn.0040ce10
add esp, 8
mov esi, eax
test eax, eax
je 0x404b14
mov eax, esi
sub eax, ebp
push eax
push ebp
push edi
call fcn.00404520
add esp, 0xc
xor edi, edi
test eax, eax
je 0x404ae0
cmp dword [eax + 4], 4
jne 0x404ae0
mov edi, dword [eax + 8]
jmp 0x404ae0
xor eax, eax
test edi, edi
je 0x404b7b
test ebp, ebp
je 0x404b7b
push ebp
call fcn.0040cda0
add esp, 4
test eax, eax
je 0x404b5b
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebp + ebx]
test edx, edx
je 0x404b62
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebx
mov ecx, esi
cmp eax, ebx
jne 0x404b40
jmp 0x404b64
mov esi, 0x1505
jmp 0x404b64
mov esi, ecx
mov dword [esp + 4], eax
mov ecx, dword [edi + 0x20]
lea ebx, [ecx - 1]
mov eax, ecx
sub eax, 1
mov dword [esp + 0x14], eax
jae 0x404b83
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
and ebx, esi
mov dword [esp], edi
mov eax, dword [edi + 4]
mov dword [esp + 0x10], eax
jmp 0x404ba4
inc ebx
dec ecx
je 0x404b79
mov eax, ebx
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x404b79
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + edi*4], esi
jne 0x404ba0
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 0xc], eax
push eax
mov dword [esp + 0xc], ecx
call fcn.0040cda0
mov ecx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x404ba0
push dword [esp + 4]
push dword [esp + 0x10]
push ebp
call fcn.0040cdc0
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x404ba0
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x404b7b
Function at 0x404ca0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor eax, eax
cmp dword [esp + 0x24], 0
je 0x404d0d
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404d0d
push esi
call fcn.0040cda0
add esp, 4
test eax, eax
je 0x404cea
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x404cf1
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x404cd0
jmp 0x404cf3
mov ebx, 0x1505
jmp 0x404cf3
mov ebx, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x20]
lea ebp, [edi - 1]
mov eax, edi
sub eax, 1
mov dword [esp + 0xc], eax
jae 0x404d15
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
and ebp, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404d24
inc ebp
dec edi
je 0x404d0b
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x404d0b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x404d20
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cda0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404d20
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cdc0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404d20
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x404d0d
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x404d0d
Function at 0x405030
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
xor eax, eax
cmp dword [esp + 0x18], 0
je 0x40524a
cmp dword [esp + 0x1c], 0
jle 0x4051f1
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [edx + eax]
mov dword [esp], ecx
jmp 0x405088
cmp esi, 0xc0
jne 0x405248
and ebx, 0x1ff800
cmp ebx, 0xd800
mov ecx, dword [esp]
je 0x405248
add edx, ebp
cmp edx, ecx
jae 0x4051f1
movzx ebx, byte [edx]
cmp ebx, 0xf4
ja 0x405248
mov eax, ebx
and al, 0xfe
cmp al, 0xc0
je 0x405248
mov eax, ebx
and eax, 0xffffffc0
cmp eax, 0x80
je 0x405248
mov ebp, 1
test bl, bl
jns 0x40507e
mov eax, ebx
or eax, 0xe0
mov esi, ebx
xor esi, 0xffffff1f
and esi, eax
cmp esi, 0xc0
jne 0x4050fa
movzx edi, byte [edx + 1]
mov eax, edi
not eax
or eax, 0xc0
add eax, edi
cmp eax, 0x7f
jne 0x405248
and ebx, 0x1f
shl ebx, 6
mov ebp, 2
jmp 0x405143
mov eax, ebx
and eax, 0xfffffff0
cmp eax, 0xe0
jne 0x405147
movzx eax, byte [edx + 1]
mov ecx, eax
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x405248
movzx edi, byte [edx + 2]
mov ecx, edi
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x405248
and ebx, 0xf
shl ebx, 0xc
and eax, 0x3f
shl eax, 6
or ebx, eax
mov ebp, 3
xor ecx, ecx
jmp 0x4051b4
mov eax, ebx
and eax, 0xfffffff8
cmp eax, 0xf0
jne 0x405248
movzx ecx, byte [edx + 1]
mov eax, ecx
and eax, 0xffffffc0
cmp eax, 0x80
jne 0x405248
movzx eax, byte [edx + 2]
mov edi, eax
and edi, 0xffffffc0
cmp edi, 0x80
jne 0x405248
movzx edi, byte [edx + 3]
mov ebp, edi
and ebp, 0xffffffc0
cmp ebp, 0x80
jne 0x405248
and ebx, 7
shl ebx, 0xc
and ecx, 0x3f
shl ecx, 6
or ecx, ebx
and eax, 0x3f
or eax, ecx
shl eax, 6
mov cl, 1
mov ebp, 4
mov ebx, eax
and edi, 0x3f
or edi, ebx
cmp edi, 0x80
jb 0x405248
cmp edi, 0x7ff
jbe 0x40505d
cmp edi, 0xffff
ja 0x4051e3
test cl, cl
je 0x405069
jmp 0x405248
cmp edi, 0x10ffff
jbe 0x405069
jmp 0x405248
mov edi, dword [esp + 0x1c]
lea eax, [edi + 1]
push eax
call dword [0x44a008]
add esp, 4
test eax, eax
je 0x405248
mov esi, eax
mov byte [eax + edi], 0
push edi
push dword [esp + 0x1c]
push eax
call fcn.0040cc90
add esp, 0xc
push 0x10
call dword [0x44a008]
add esp, 4
test eax, eax
je 0x40523e
mov dword [eax], 0
mov dword [eax + 4], 2
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
jmp 0x40524a
push esi
call dword [0x44a004]
add esp, 4
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405260
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, 0xffffffff
cmp dword [esp + 0x24], 0
je 0x405372
mov esi, dword [esp + 0x28]
test esi, esi
je 0x405372
cmp dword [esp + 0x2c], 0
je 0x405372
push esi
call fcn.0040cda0
add esp, 4
test eax, eax
je 0x4052ca
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x4052d1
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x4052b0
jmp 0x4052d3
mov ebx, 0x1505
jmp 0x4052d3
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x20]
lea edi, [esi - 1]
mov edx, esi
sub edx, 1
mov dword [esp + 8], edx
jae 0x40537a
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x405337
call fcn.00405fd0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x405372
push ecx
call fcn.0040cda0
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x20]
lea edi, [esi - 1]
mov eax, esi
sub eax, 1
mov dword [esp + 8], eax
jae 0x4053ed
mov ebp, 0xffffffff
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov esi, dword [esp + 0x28]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov dword [eax + ebp*4], edx
mov eax, dword [ecx + 0x10]
mov esi, dword [esp + 0x2c]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebp
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebx
inc dword [ecx + 0x18]
mov eax, dword [ecx]
mov dword [esi], eax
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x405398
inc edi
dec esi
je 0x4052ec
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x4052f1
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x405390
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.0040cda0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x405390
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.0040cdc0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x405390
mov eax, 0xffffffff
jmp 0x405372
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x405408
inc edi
dec esi
je 0x405332
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x405337
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x405400
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.0040cda0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x405400
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.0040cdc0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x405400
jmp 0x405337
Function at 0x405d20
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, 0xffffffff
cmp dword [esp + 0x28], 0
je 0x405f0a
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x405f0a
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x405f0a
cmp dword [ecx], 0
jne 0x405f0a
push esi
call fcn.0040cda0
add esp, 4
test eax, eax
je 0x405d8a
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
movzx edx, byte [esi + ebx]
test edx, edx
je 0x405d91
mov edi, ecx
shl edi, 5
add edi, ecx
add edi, edx
inc ebx
mov ecx, edi
cmp eax, ebx
jne 0x405d70
jmp 0x405d93
mov edi, 0x1505
jmp 0x405d93
mov edi, ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x20]
lea ebx, [edx - 1]
mov esi, edx
sub esi, 1
mov dword [esp + 0xc], esi
jae 0x405e64
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x405df1
call fcn.00405fd0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov esi, dword [esp + 0x2c]
jne 0x405f0a
push esi
call fcn.0040cda0
add esp, 4
mov edx, esi
lea esi, [esp + 0x10]
mov ecx, dword [esp + 0x28]
push esi
push edi
push eax
call fcn.00405f20
add esp, 0xc
mov ebp, eax
mov esi, dword [esp + 0x2c]
push esi
call fcn.0040cda0
add esp, 4
mov ebx, eax
inc eax
push eax
call dword [0x44a008]
add esp, 4
test eax, eax
je 0x405f05
mov byte [eax + ebx], 0
push ebx
push esi
push eax
mov esi, eax
call fcn.0040cc90
add esp, 0xc
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], esi
mov eax, dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov dword [eax + ebp*4], ecx
mov eax, dword [edx + 0x10]
mov esi, dword [esp + 0x30]
mov dword [eax + ecx*4], esi
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], ebp
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], edi
inc dword [edx + 0x18]
mov eax, dword [edx]
mov dword [esi], eax
xor eax, eax
jmp 0x405f0a
mov dword [esp], eax
and ebx, edi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x405e88
inc ebx
dec edx
je 0x405dac
mov ebp, ebx
and ebp, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov esi, dword [eax + ebp*4]
cmp esi, 0xffffffff
je 0x405db1
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], edi
jne 0x405e80
mov eax, dword [ecx + 0xc]
mov ebp, dword [eax + esi*4]
push ebp
mov dword [esp + 8], edx
call fcn.0040cda0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [esp]
jne 0x405e80
push dword [esp]
push ebp
push dword [esp + 0x34]
call fcn.0040cdc0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x405e80
mov eax, dword [ecx + 0x10]
push dword [eax + esi*4]
call fcn.00404e00
mov edx, dword [esp + 0x2c]
add esp, 4
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x30]
mov dword [eax + esi*4], ecx
mov esi, ecx
jmp 0x405e59
mov eax, 0xffffffff
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x406fe0
Capabilities:
Compute adler32 checksum
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ebp, dword [esp + 0x30]
test ebp, ebp
je 0x4071cf
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
movzx ebx, cx
shr ecx, 0x10
test esi, esi
je 0x4071d6
mov dword [esp], ebp
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edi, esi
sub edi, eax
mov eax, ebx
jmp 0x40707a
mov edi, dword [esp + 8]
mov edx, edi
sub edx, dword [esp + 4]
add dword [esp], edx
mov esi, dword [esp + 0x10]
mov ebp, eax
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mov edx, 0x80078071
mul edx
mov eax, ebp
imul ebx, ebx, 0xfff1
sub eax, ebx
shr edx, 0xf
imul edx, edx, 0xfff1
sub ecx, edx
sub esi, edi
mov edi, 0x15b0
je 0x4071d8
xor ebx, ebx
cmp edi, 8
mov dword [esp + 0x10], esi
mov dword [esp + 8], edi
jb 0x407130
mov edx, edi
and edx, 0x1ff8
mov dword [esp + 4], edx
xor esi, esi
nop
nop
nop
nop
nop
mov edx, esi
mov esi, eax
mov eax, dword [esp]
movzx edi, byte [eax + edx]
add edi, esi
add ecx, edi
movzx esi, byte [eax + edx + 1]
add esi, edi
add ecx, esi
movzx ebx, byte [eax + edx + 2]
mov edi, esi
and edi, ebx
xor esi, ebx
lea esi, [esi + edi*2]
mov edi, esi
and edi, ecx
mov dword [esp + 0xc], edi
xor ecx, esi
movzx ebx, byte [eax + edx + 3]
add ebx, esi
movzx esi, byte [eax + edx + 4]
add esi, ebx
mov dword [esp + 0x14], esi
movzx ebp, byte [eax + edx + 5]
add ebp, esi
movzx edi, byte [eax + edx + 6]
add edi, ebp
movzx eax, byte [eax + edx + 7]
mov esi, edi
and esi, eax
xor eax, edi
lea eax, [eax + esi*2]
add ebx, ecx
mov ecx, dword [esp + 0xc]
lea ecx, [ebx + ecx*2]
add ecx, dword [esp + 0x14]
add ecx, ebp
add ecx, edi
mov edi, dword [esp + 8]
add ecx, eax
lea esi, [edx + 8]
add edx, 0xf
cmp edx, edi
jb 0x4070a0
mov edx, dword [esp]
add edx, esi
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 4]
jmp 0x407133
mov edx, dword [esp]
mov ebp, ebx
sub ebp, edi
mov dword [esp], edx
jae 0x407041
mov dword [esp + 0xc], ebp
mov ebp, edi
and ebp, 3
mov dword [esp + 4], ebx
je 0x407180
neg ebp
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx]
inc edx
add eax, esi
add ecx, eax
dec ebx
cmp ebp, ebx
jne 0x407160
mov esi, dword [esp + 4]
sub esi, ebx
cmp dword [esp + 0xc], 0xfffffffc
ja 0x407030
jmp 0x40718d
mov esi, ebx
cmp dword [esp + 0xc], 0xfffffffc
ja 0x407030
mov ebx, dword [esp + 8]
sub ebx, esi
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx + ebp]
add esi, eax
add ecx, esi
movzx edi, byte [edx + ebp + 1]
add edi, esi
add ecx, edi
movzx esi, byte [edx + ebp + 2]
add esi, edi
add ecx, esi
movzx eax, byte [edx + ebp + 3]
add eax, esi
add ecx, eax
add ebp, 4
cmp ebx, ebp
jne 0x4071a0
jmp 0x407030
mov ecx, 1
jmp 0x4071dd
mov eax, ebx
shl ecx, 0x10
or ecx, eax
mov eax, ecx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4071f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40721e
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x4072bc
not eax
test bl, 1
jne 0x407225
mov edx, ebx
cmp ebx, 1
jne 0x407256
jmp 0x4072ba
xor eax, eax
jmp 0x4072bc
lea edx, [ebx - 1]
movzx esi, byte [ecx]
mov edi, eax
shr edi, 4
xor eax, esi
and eax, 0xf
xor edi, dword [eax*4 + 0x447c50]
inc ecx
mov eax, edi
shr eax, 4
and edi, 0xf
shr esi, 4
xor esi, edi
xor eax, dword [esi*4 + 0x447c50]
cmp ebx, 1
je 0x4072ba
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [ecx + esi]
mov ebx, eax
shr ebx, 4
xor eax, edi
and eax, 0xf
xor ebx, dword [eax*4 + 0x447c50]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x447c50]
movzx edi, byte [ecx + esi + 1]
mov ebx, eax
shr ebx, 4
xor eax, edi
and eax, 0xf
xor ebx, dword [eax*4 + 0x447c50]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x447c50]
add esi, 2
cmp edx, esi
jne 0x407260
not eax
pop esi
pop edi
pop ebx
ret