joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401cec
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402c0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVCRT.dll_localtime]
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 8]
push eax
push str._02d:_02d:_02d
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
mov byte [ebp - 0x2c], 0x33
mov byte [ebp - 0x2b], 0x32
mov byte [ebp - 0x2a], 0
mov byte [ebp - 0x28], 0x33
mov byte [ebp - 0x27], 0x32
mov byte [ebp - 0x26], 0
push 3
lea edx, [ebp - 0x20]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x138580
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x3c], 0
je 0x401da3
mov ecx, dword [ebp - 0x3c]
call fcn.00401439
mov dword [ebp - 0x40], eax
jmp 0x401daa
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x34]
call fcn.00401512
test eax, eax
je 0x401df3
push 0
push 9
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0
push 3
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x9c2d0], 0
jne 0x401e09
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401df3
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x186a0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404230
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 0x404310
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x404310
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40427a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x404281
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x404260
jmp 0x404283
mov esi, 0x1505
jmp 0x404283
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 0x404310
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x4042b4
inc edi
dec ebx
je 0x40430e
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40430e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x4042b0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040cbe0
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x4042b0
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040cc00
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x4042b0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x404310
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404320
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 0x404421
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404421
push ebx
call fcn.0040cbe0
add esp, 4
test eax, eax
je 0x40437a
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 0x404381
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x404360
jmp 0x404383
mov esi, 0x1505
jmp 0x404383
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 0x404421
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x4043b4
inc ebp
dec ebx
je 0x40441f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40441f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4043b0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cbe0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4043b0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cc00
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4043b0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40441f
cmp dword [eax + 4], 2
mov edi, 0
jne 0x404421
mov edi, dword [eax + 8]
jmp 0x404421
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404450
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 0x4044bb
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4044bb
push esi
call fcn.0040cbe0
add esp, 4
test eax, eax
je 0x40449a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x4044a1
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x404480
jmp 0x4044a3
mov ebp, 0x1505
jmp 0x4044a3
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 0x4044c7
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 0x4044e4
inc ebx
dec edi
je 0x4044bb
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x4044bb
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x4044e0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cbe0
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x4044e0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.0040cc00
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x4044e0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x4044bb
cmp dword [eax + 4], 3
jne 0x4044bb
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x4044bb

Function at 0x404580
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 0x404681
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404681
push ebx
call fcn.0040cbe0
add esp, 4
test eax, eax
je 0x4045da
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 0x4045e1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4045c0
jmp 0x4045e3
mov esi, 0x1505
jmp 0x4045e3
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 0x404681
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404614
inc ebp
dec ebx
je 0x40467f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40467f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404610
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cbe0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404610
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cc00
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404610
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40467f
cmp dword [eax + 4], 5
mov edi, 0
jne 0x404681
mov edi, dword [eax + 8]
jmp 0x404681
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4046b0
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 0x4047b4
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4047b4
push ebx
call fcn.0040cbe0
add esp, 4
test eax, eax
je 0x40470a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x404711
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4046f0
jmp 0x404713
mov esi, 0x1505
jmp 0x404713
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 0x4047b4
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404744
inc ebp
dec ebx
je 0x4047af
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4047af
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404740
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cbe0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404740
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cc00
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404740
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4047af
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x4047b4
mov edi, dword [eax + 8]
jmp 0x4047b4
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4047c0
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.0040cc50
add esp, 8
test eax, eax
je 0x404824
mov esi, eax
jmp 0x404804
mov ebp, esi
inc ebp
push 0x2e
push ebp
call fcn.0040cc50
add esp, 8
mov esi, eax
test eax, eax
je 0x404824
mov eax, esi
sub eax, ebp
push eax
push ebp
push edi
call fcn.00404230
add esp, 0xc
xor edi, edi
test eax, eax
je 0x4047f0
cmp dword [eax + 4], 4
jne 0x4047f0
mov edi, dword [eax + 8]
jmp 0x4047f0
xor eax, eax
test edi, edi
je 0x40488b
test ebp, ebp
je 0x40488b
push ebp
call fcn.0040cbe0
add esp, 4
test eax, eax
je 0x40486b
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 0x404872
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebx
mov ecx, esi
cmp eax, ebx
jne 0x404850
jmp 0x404874
mov esi, 0x1505
jmp 0x404874
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 0x404893
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 0x4048b4
inc ebx
dec ecx
je 0x404889
mov eax, ebx
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x404889
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + edi*4], esi
jne 0x4048b0
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.0040cbe0
mov ecx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x4048b0
push dword [esp + 4]
push dword [esp + 0x10]
push ebp
call fcn.0040cc00
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x4048b0
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x40488b
Function at 0x4049b0
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 0x404a1d
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404a1d
push esi
call fcn.0040cbe0
add esp, 4
test eax, eax
je 0x4049fa
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x404a01
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x4049e0
jmp 0x404a03
mov ebx, 0x1505
jmp 0x404a03
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 0x404a25
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 0x404a34
inc ebp
dec edi
je 0x404a1b
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x404a1b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x404a30
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cbe0
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.0040cc00
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404a30
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x404a1d
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x404a1d
Function at 0x404d40
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 0x404f59
cmp dword [esp + 0x1c], 0
jle 0x404f00
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [edx + eax]
mov dword [esp], ecx
jmp 0x404d98
cmp esi, 0xc0
jne 0x404f57
and ebx, 0x1ff800
cmp ebx, 0xd800
mov ecx, dword [esp]
je 0x404f57
add edx, ebp
cmp edx, ecx
jae 0x404f00
movzx ebx, byte [edx]
cmp ebx, 0xf4
ja 0x404f57
mov eax, ebx
and al, 0xfe
cmp al, 0xc0
je 0x404f57
mov eax, ebx
and eax, 0xffffffc0
cmp eax, 0x80
je 0x404f57
mov ebp, 1
test bl, bl
jns 0x404d8e
mov esi, ebx
and esi, 0xffffffe0
cmp esi, 0xc0
jne 0x404e07
movzx edi, byte [edx + 1]
mov eax, edi
xor eax, 0xffffff3f
mov ecx, edi
or ecx, 0xc0
and ecx, eax
cmp ecx, 0x80
jne 0x404f57
and ebx, 0x1f
shl ebx, 6
mov ebp, 2
jmp 0x404e50
mov eax, ebx
and eax, 0xfffffff0
cmp eax, 0xe0
jne 0x404e54
movzx eax, byte [edx + 1]
mov ecx, eax
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x404f57
movzx edi, byte [edx + 2]
mov ecx, edi
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x404f57
and ebx, 0xf
shl ebx, 0xc
and eax, 0x3f
shl eax, 6
or ebx, eax
mov ebp, 3
xor ecx, ecx
jmp 0x404ec3
mov eax, ebx
and eax, 0xfffffff8
cmp eax, 0xf0
jne 0x404f57
movzx ecx, byte [edx + 1]
mov eax, ecx
and eax, 0xffffffc0
cmp eax, 0x80
jne 0x404f57
movzx eax, byte [edx + 2]
mov edi, eax
and edi, 0xffffffc0
cmp edi, 0x80
jne 0x404f57
movzx edi, byte [edx + 3]
mov ebp, edi
and ebp, 0xffffffc0
cmp ebp, 0x80
jne 0x404f57
shl ebx, 0xc
and ecx, 0x3f
shl ecx, 6
or ecx, ebx
and eax, 0x3f
or eax, ecx
shl eax, 6
add eax, 0xfc400000
mov cl, 1
mov ebp, 4
mov ebx, eax
and edi, 0x3f
or edi, ebx
cmp edi, 0x80
jb 0x404f57
cmp edi, 0x7ff
jbe 0x404d6d
cmp edi, 0xffff
ja 0x404ef2
test cl, cl
je 0x404d79
jmp 0x404f57
cmp edi, 0x10ffff
jbe 0x404d79
jmp 0x404f57
mov edi, dword [esp + 0x1c]
lea eax, [edi + 1]
push eax
call dword [0x44a008]
add esp, 4
test eax, eax
je 0x404f57
mov esi, eax
mov byte [eax + edi], 0
push edi
push dword [esp + 0x1c]
push eax
call fcn.0040cb00
add esp, 0xc
push 0x10
call dword [0x44a008]
add esp, 4
test eax, eax
je 0x404f4d
mov dword [eax], 0
mov dword [eax + 4], 2
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
jmp 0x404f59
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 0x404f70
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 0x405082
mov esi, dword [esp + 0x28]
test esi, esi
je 0x405082
cmp dword [esp + 0x2c], 0
je 0x405082
push esi
call fcn.0040cbe0
add esp, 4
test eax, eax
je 0x404fda
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 0x404fe1
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x404fc0
jmp 0x404fe3
mov ebx, 0x1505
jmp 0x404fe3
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 0x40508a
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x405047
call fcn.00405cc0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x405082
push ecx
call fcn.0040cbe0
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 0x4050fd
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 0x4050a8
inc edi
dec esi
je 0x404ffc
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x405001
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x4050a0
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.0040cbe0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4050a0
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.0040cc00
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4050a0
mov eax, 0xffffffff
jmp 0x405082
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x405118
inc edi
dec esi
je 0x405042
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x405047
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x405110
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.0040cbe0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x405110
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.0040cc00
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x405110
jmp 0x405047
Function at 0x405a10
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 0x405bfa
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x405bfa
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x405bfa
cmp dword [ecx], 0
jne 0x405bfa
push esi
call fcn.0040cbe0
add esp, 4
test eax, eax
je 0x405a7a
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
movzx edx, byte [esi + ebx]
test edx, edx
je 0x405a81
mov edi, ecx
shl edi, 5
add edi, ecx
add edi, edx
inc ebx
mov ecx, edi
cmp eax, ebx
jne 0x405a60
jmp 0x405a83
mov edi, 0x1505
jmp 0x405a83
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 0x405b54
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x405ae1
call fcn.00405cc0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov esi, dword [esp + 0x2c]
jne 0x405bfa
push esi
call fcn.0040cbe0
add esp, 4
mov edx, esi
lea esi, [esp + 0x10]
mov ecx, dword [esp + 0x28]
push esi
push edi
push eax
call fcn.00405c10
add esp, 0xc
mov ebp, eax
mov esi, dword [esp + 0x2c]
push esi
call fcn.0040cbe0
add esp, 4
mov ebx, eax
inc eax
push eax
call dword [0x44a008]
add esp, 4
test eax, eax
je 0x405bf5
mov byte [eax + ebx], 0
push ebx
push esi
push eax
mov esi, eax
call fcn.0040cb00
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 0x405bfa
mov dword [esp], eax
and ebx, edi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x405b78
inc ebx
dec edx
je 0x405a9c
mov ebp, ebx
and ebp, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov esi, dword [eax + ebp*4]
cmp esi, 0xffffffff
je 0x405aa1
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], edi
jne 0x405b70
mov eax, dword [ecx + 0xc]
mov ebp, dword [eax + esi*4]
push ebp
mov dword [esp + 8], edx
call fcn.0040cbe0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [esp]
jne 0x405b70
push dword [esp]
push ebp
push dword [esp + 0x34]
call fcn.0040cc00
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x405b70
mov eax, dword [ecx + 0x10]
push dword [eax + esi*4]
call fcn.00404b10
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 0x405b49
mov eax, 0xffffffff
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x406d60
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x406ee6
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x406edf
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, esi
sub edx, eax
mov eax, edx
jmp 0x406df5
mov eax, dword [esp]
sub eax, dword [esp + 0xc]
add ebp, eax
mov esi, dword [esp + 4]
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, dword [esp]
mov eax, 0x15b0
je 0x406edf
xor ebx, ebx
cmp eax, 8
mov dword [esp], eax
mov dword [esp + 4], esi
jb 0x406e6e
mov ebx, eax
and ebx, 0x1ff8
xor edx, edx
nop
nop
nop
mov eax, edx
add edx, 8
movzx esi, byte [ebp + eax]
add esi, edi
add ecx, esi
movzx edi, byte [ebp + eax + 1]
add edi, esi
add ecx, edi
movzx esi, byte [ebp + eax + 2]
add esi, edi
add ecx, esi
movzx edi, byte [ebp + eax + 3]
add edi, esi
add ecx, edi
movzx esi, byte [ebp + eax + 4]
add esi, edi
add ecx, esi
movzx edi, byte [ebp + eax + 5]
add edi, esi
add ecx, edi
movzx esi, byte [ebp + eax + 6]
add esi, edi
add ecx, esi
movzx edi, byte [ebp + eax + 7]
add edi, esi
add ecx, edi
add eax, 0xf
cmp eax, dword [esp]
mov eax, dword [esp]
jb 0x406e10
add ebp, edx
mov esi, dword [esp + 4]
mov edx, ebx
sub edx, eax
jae 0x406dbd
mov dword [esp + 8], edx
mov esi, eax
and esi, 3
mov dword [esp + 0xc], ebx
mov eax, ebx
mov edx, ebp
je 0x406e9c
nop
nop
nop
nop
nop
inc eax
movzx ebx, byte [edx]
add edi, ebx
add ecx, edi
inc edx
dec esi
jne 0x406e90
cmp dword [esp + 8], 0xfffffffc
ja 0x406db0
mov ebx, dword [esp]
sub ebx, eax
xor eax, eax
nop
nop
movzx esi, byte [edx + eax]
add esi, edi
add ecx, esi
movzx edi, byte [edx + eax + 1]
add edi, esi
add ecx, edi
movzx esi, byte [edx + eax + 2]
add esi, edi
add ecx, esi
movzx edi, byte [edx + eax + 3]
add edi, esi
add ecx, edi
add eax, 4
cmp ebx, eax
jne 0x406eb0
jmp 0x406db0
shl ecx, 0x10
or ecx, edi
jmp 0x406eeb
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret