joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c657
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.ole32.dll_CoGetTreatAsClass]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x18], eax
jl 0x40c748
push ebx
push edi
lea eax, [ebp - 0x1c]
push eax
xor edi, edi
inc edi
push edi
push esi
push esi
push 0x40c778
lea eax, [ebp - 0x14]
push eax
call dword [0x40fcb0]
cmp eax, esi
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x18], eax
jl 0x40c6e2
mov eax, dword [ebp + 0x10]
add eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x24], edi
call ebx
push eax
call fcn.0040c2eb
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], esi
je 0x40c73d
cmp dword [ebp + 0x14], esi
jne 0x40c738
lea eax, [ebp - 0x1c]
push eax
push edi
push esi
push esi
push 0x40c75c
lea eax, [ebp - 0x14]
push eax
call dword [0x40fcb0]
cmp eax, esi
mov dword [ebp - 0x18], eax
jl 0x40c738
mov eax, dword [ebp + 0x10]
add eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x28], edi
call ebx
push eax
call fcn.0040c2eb
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], esi
jne 0x40c746
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
xor ecx, ebp
pop esi
call fcn.004032ff
leave
ret 0x10
Function at 0x40cb63
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push ebx
push esi
mov edi, 0x80004005
call fcn.0040c47f
test eax, eax
je 0x40cb9a
mov edi, 0x80070005
jmp 0x40cc62
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.00403d62
test eax, eax
jl 0x40cc62
cmp byte [ebp + 0xc], bl
je 0x40cc38
push ebx
lea eax, [ebp - 0x210]
push eax
push ebx
push 3
lea eax, [ebp - 0x20c]
push eax
call dword [0x40fc88]
test eax, eax
jne 0x40cc38
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x210]
xor bl, bl
call fcn.0040c7e3
test eax, eax
jl 0x40cc28
test byte [ebp - 0x214], 0x20
je 0x40cc26
push 2
push 4
lea eax, [ebp - 0x214]
push eax
push 4
push 0x401400
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x22
call dword [0x40fcbc]
test eax, eax
jne 0x40cc28
xor edi, edi
jmp 0x40cc28
mov bl, 1
push dword [ebp - 0x210]
call dword [0x40fcb4]
test bl, bl
je 0x40cc62
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x80000001
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x40cc60
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.00403eac
test eax, eax
jne 0x40cc62
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004032ff
leave
ret 8
Function at 0x40d59c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x118], edx
mov edx, dword [ebp + 0x1c]
xor ebx, ebx
cmp eax, ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x114], edx
je 0x40d5fd
cmp word [eax], bx
je 0x40d5fd
lea edx, [ebp - 0x110]
push edx
push 1
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov byte [ebp - 0x105], 1
jmp 0x40d605
xor esi, esi
mov byte [ebp - 0x105], bl
cmp esi, ebx
jne 0x40d6f1
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push ebx
push dword [ebp + 0x14]
mov dword [ebp - 0x10c], 0x100
push edi
push ebx
push dword [ebp - 0x110]
call sub.SHLWAPI.dll_SHRegGetValueW
mov esi, eax
cmp esi, ebx
je 0x40d648
cmp esi, 0xea
jne 0x40d6d9
push dword [ebp - 0x10c]
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
cmp eax, ebx
mov ecx, dword [ebp - 0x118]
mov dword [ecx], eax
je 0x40d6d6
cmp esi, ebx
jne 0x40d68e
push dword [ebp - 0x10c]
lea ecx, [ebp - 0x104]
push ecx
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x114]
add esp, 0xc
cmp eax, ebx
je 0x40d6d9
mov ecx, dword [ebp - 0x10c]
mov dword [eax], ecx
jmp 0x40d6d9
lea ecx, [ebp - 0x10c]
push ecx
push eax
push ebx
push dword [ebp + 0x14]
push edi
push ebx
push dword [ebp - 0x110]
call sub.SHLWAPI.dll_SHRegGetValueW
test eax, eax
jne 0x40d6c1
mov eax, dword [ebp - 0x114]
cmp eax, ebx
je 0x40d6bd
mov ecx, dword [ebp - 0x10c]
mov dword [eax], ecx
xor esi, esi
jmp 0x40d6d9
mov eax, dword [ebp - 0x118]
push dword [eax]
mov esi, 0x3eb
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x40d6d9
push 0xe
pop esi
cmp byte [ebp - 0x105], bl
je 0x40d6ed
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x40d715
mov eax, dword [ebp - 0x118]
mov dword [eax], ebx
mov eax, dword [ebp - 0x114]
cmp eax, ebx
je 0x40d705
mov dword [eax], ebx
cmp esi, ebx
jle 0x40d715
and esi, 0xffff
or esi, 0x80070000
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004032ff
leave
ret 0x18
Function at 0x404420
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 0x404500
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x404500
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40446a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x404471
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x404450
jmp 0x404473
mov esi, 0x1505
jmp 0x404473
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 0x404500
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x4044a4
inc edi
dec ebx
je 0x4044fe
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x4044fe
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x4044a0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040ce00
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x4044a0
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040ce20
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x4044a0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x404500
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404510
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 0x404611
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404611
push ebx
call fcn.0040ce00
add esp, 4
test eax, eax
je 0x40456a
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 0x404571
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x404550
jmp 0x404573
mov esi, 0x1505
jmp 0x404573
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 0x404611
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x4045a4
inc ebp
dec ebx
je 0x40460f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40460f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4045a0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040ce00
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4045a0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040ce20
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4045a0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40460f
cmp dword [eax + 4], 2
mov edi, 0
jne 0x404611
mov edi, dword [eax + 8]
jmp 0x404611
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404640
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 0x4046ab
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4046ab
push esi
call fcn.0040ce00
add esp, 4
test eax, eax
je 0x40468a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x404691
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x404670
jmp 0x404693
mov ebp, 0x1505
jmp 0x404693
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 0x4046b7
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 0x4046d4
inc ebx
dec edi
je 0x4046ab
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x4046ab
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x4046d0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040ce00
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x4046d0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.0040ce20
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x4046d0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x4046ab
cmp dword [eax + 4], 3
jne 0x4046ab
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x4046ab

Function at 0x404770
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 0x404871
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404871
push ebx
call fcn.0040ce00
add esp, 4
test eax, eax
je 0x4047ca
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 0x4047d1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4047b0
jmp 0x4047d3
mov esi, 0x1505
jmp 0x4047d3
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 0x404871
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404804
inc ebp
dec ebx
je 0x40486f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40486f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404800
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040ce00
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404800
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040ce20
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404800
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40486f
cmp dword [eax + 4], 5
mov edi, 0
jne 0x404871
mov edi, dword [eax + 8]
jmp 0x404871
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4048a0
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 0x4049a4
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4049a4
push ebx
call fcn.0040ce00
add esp, 4
test eax, eax
je 0x4048fa
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x404901
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4048e0
jmp 0x404903
mov esi, 0x1505
jmp 0x404903
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 0x4049a4
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404934
inc ebp
dec ebx
je 0x40499f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40499f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404930
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040ce00
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404930
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040ce20
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404930
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40499f
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x4049a4
mov edi, dword [eax + 8]
jmp 0x4049a4
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4049b0
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.0040ce70
add esp, 8
test eax, eax
je 0x404a14
mov esi, eax
jmp 0x4049f4
mov ebp, esi
inc ebp
push 0x2e
push ebp
call fcn.0040ce70
add esp, 8
mov esi, eax
test eax, eax
je 0x404a14
mov eax, esi
sub eax, ebp
push eax
push ebp
push edi
call fcn.00404420
add esp, 0xc
xor edi, edi
test eax, eax
je 0x4049e0
cmp dword [eax + 4], 4
jne 0x4049e0
mov edi, dword [eax + 8]
jmp 0x4049e0
xor eax, eax
test edi, edi
je 0x404a7b
test ebp, ebp
je 0x404a7b
push ebp
call fcn.0040ce00
add esp, 4
test eax, eax
je 0x404a5b
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 0x404a62
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebx
mov ecx, esi
cmp eax, ebx
jne 0x404a40
jmp 0x404a64
mov esi, 0x1505
jmp 0x404a64
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 0x404a83
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 0x404aa4
inc ebx
dec ecx
je 0x404a79
mov eax, ebx
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x404a79
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + edi*4], esi
jne 0x404aa0
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.0040ce00
mov ecx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x404aa0
push dword [esp + 4]
push dword [esp + 0x10]
push ebp
call fcn.0040ce20
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x404aa0
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x404a7b
Function at 0x404ba0
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 0x404c0d
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404c0d
push esi
call fcn.0040ce00
add esp, 4
test eax, eax
je 0x404bea
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x404bf1
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x404bd0
jmp 0x404bf3
mov ebx, 0x1505
jmp 0x404bf3
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 0x404c15
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 0x404c24
inc ebp
dec edi
je 0x404c0b
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x404c0b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x404c20
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040ce00
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404c20
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040ce20
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404c20
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x404c0d
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x404c0d
Function at 0x405150
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 0x405262
mov esi, dword [esp + 0x28]
test esi, esi
je 0x405262
cmp dword [esp + 0x2c], 0
je 0x405262
push esi
call fcn.0040ce00
add esp, 4
test eax, eax
je 0x4051ba
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 0x4051c1
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x4051a0
jmp 0x4051c3
mov ebx, 0x1505
jmp 0x4051c3
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 0x40526a
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x405227
call fcn.00405f20
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x405262
push ecx
call fcn.0040ce00
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 0x4052dd
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 0x405288
inc edi
dec esi
je 0x4051dc
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x4051e1
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x405280
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.0040ce00
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x405280
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.0040ce20
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x405280
mov eax, 0xffffffff
jmp 0x405262
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x4052f8
inc edi
dec esi
je 0x405222
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x405227
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x4052f0
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.0040ce00
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4052f0
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.0040ce20
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4052f0
jmp 0x405227
Function at 0x405c70
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 0x405e5a
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x405e5a
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x405e5a
cmp dword [ecx], 0
jne 0x405e5a
push esi
call fcn.0040ce00
add esp, 4
test eax, eax
je 0x405cda
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
movzx edx, byte [esi + ebx]
test edx, edx
je 0x405ce1
mov edi, ecx
shl edi, 5
add edi, ecx
add edi, edx
inc ebx
mov ecx, edi
cmp eax, ebx
jne 0x405cc0
jmp 0x405ce3
mov edi, 0x1505
jmp 0x405ce3
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 0x405db4
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x405d41
call fcn.00405f20
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov esi, dword [esp + 0x2c]
jne 0x405e5a
push esi
call fcn.0040ce00
add esp, 4
mov edx, esi
lea esi, [esp + 0x10]
mov ecx, dword [esp + 0x28]
push esi
push edi
push eax
call fcn.00405e70
add esp, 0xc
mov ebp, eax
mov esi, dword [esp + 0x2c]
push esi
call fcn.0040ce00
add esp, 4
mov ebx, eax
inc eax
push eax
call dword [0x452008]
add esp, 4
test eax, eax
je 0x405e55
mov byte [eax + ebx], 0
push ebx
push esi
push eax
mov esi, eax
call fcn.0040cd20
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 0x405e5a
mov dword [esp], eax
and ebx, edi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x405dd8
inc ebx
dec edx
je 0x405cfc
mov ebp, ebx
and ebp, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov esi, dword [eax + ebp*4]
cmp esi, 0xffffffff
je 0x405d01
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], edi
jne 0x405dd0
mov eax, dword [ecx + 0xc]
mov ebp, dword [eax + esi*4]
push ebp
mov dword [esp + 8], edx
call fcn.0040ce00
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [esp]
jne 0x405dd0
push dword [esp]
push ebp
push dword [esp + 0x34]
call fcn.0040ce20
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x405dd0
mov eax, dword [ecx + 0x10]
push dword [eax + esi*4]
call fcn.00404d00
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 0x405da9
mov eax, 0xffffffff
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret