joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4099e0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00409a40

Function at 0x409a40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [0x41e2f0]
test eax, eax
jle 0x409b43
mov edx, dword [0x41e2f4]
xor ebx, ebx
mov ecx, dword [edx + 4]
cmp ecx, esi
ja 0x409a71
mov edi, dword [edx + 8]
add ecx, dword [edi + 8]
cmp esi, ecx
jb 0x409ae6
add ebx, 1
add edx, 0xc
cmp ebx, eax
jne 0x409a60
mov dword [esp], esi
call fcn.0040a3c0
test eax, eax
mov edi, eax
je 0x409b6a
lea esi, [ebx + ebx*2]
mov ebx, dword [0x41e2f4]
shl esi, 2
add ebx, esi
mov dword [ebx + 8], eax
mov dword [ebx], 0
call fcn.0040a4b0
add eax, dword [edi + 0xc]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [0x41e2f4]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + esi + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x409b4a
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
jne 0x409af0
add dword [0x41e2f0], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x409adf
cmp eax, 0x80
je 0x409adf
cmp eax, 8
je 0x409adf
mov eax, dword [ebp - 0x28]
add esi, dword [0x41e2f4]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x409adf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004099e0
xor ebx, ebx
jmp 0x409a7b
mov eax, dword [0x41e2f4]
mov eax, dword [eax + esi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004099e0
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004099e0
lea esi, [esi]

Function at 0x40a2e0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x40a318
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x40a30e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x40a31a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40a300
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4042f0
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 0x4043d0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4043d0
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40433a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x404341
inc edi
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
mov ecx, esi
cmp ebp, edi
jne 0x404320
jmp 0x404343
mov esi, 0x1505
jmp 0x404343
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 0x4043d0
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x404374
inc edi
dec ebx
je 0x4043ce
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x4043ce
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x404370
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 0x404370
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040ce30
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x404370
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x4043d0
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4043e0
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 0x4044e1
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4044e1
push ebx
call fcn.0040ce00
add esp, 4
test eax, eax
je 0x40443a
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 0x404441
inc ebp
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
mov ecx, esi
cmp eax, ebp
jne 0x404420
jmp 0x404443
mov esi, 0x1505
jmp 0x404443
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 0x4044e1
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404474
inc ebp
dec ebx
je 0x4044df
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4044df
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404470
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 0x404470
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040ce30
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404470
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4044df
cmp dword [eax + 4], 2
mov edi, 0
jne 0x4044e1
mov edi, dword [eax + 8]
jmp 0x4044e1
xor edi, edi
mov eax, edi
add esp, 0x10
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, 0x18
fldz
fstp qword [esp + 0x10]
cmp dword [esp + 0x2c], 0
je 0x40457b
mov esi, dword [esp + 0x30]
test esi, esi
je 0x40457b
push esi
call fcn.0040ce00
add esp, 4
test eax, eax
je 0x40455a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x404561
inc edi
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
mov ecx, ebp
cmp eax, edi
jne 0x404540
jmp 0x404563
mov ebp, 0x1505
jmp 0x404563
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 0x404587
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 0x4045a4
inc ebx
dec edi
je 0x40457b
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x40457b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x4045a0
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 0x4045a0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.0040ce30
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x4045a0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x40457b
cmp dword [eax + 4], 3
jne 0x40457b
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x40457b

Function at 0x404640
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 0x404741
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404741
push ebx
call fcn.0040ce00
add esp, 4
test eax, eax
je 0x40469a
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 0x4046a1
inc ebp
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
mov ecx, esi
cmp eax, ebp
jne 0x404680
jmp 0x4046a3
mov esi, 0x1505
jmp 0x4046a3
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 0x404741
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x4046d4
inc ebp
dec ebx
je 0x40473f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40473f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4046d0
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 0x4046d0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040ce30
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4046d0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40473f
cmp dword [eax + 4], 5
mov edi, 0
jne 0x404741
mov edi, dword [eax + 8]
jmp 0x404741
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404770
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 0x404874
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404874
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
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x4047d1
inc ebp
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
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 0x404874
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.0040ce30
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], 6
mov edi, 0xffffffff
jne 0x404874
mov edi, dword [eax + 8]
jmp 0x404874
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404880
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.0040ce80
add esp, 8
test eax, eax
je 0x4048e4
mov esi, eax
jmp 0x4048c4
mov ebp, esi
inc ebp
push 0x2e
push ebp
call fcn.0040ce80
add esp, 8
mov esi, eax
test eax, eax
je 0x4048e4
mov eax, esi
sub eax, ebp
push eax
push ebp
push edi
call fcn.004042f0
add esp, 0xc
xor edi, edi
test eax, eax
je 0x4048b0
cmp dword [eax + 4], 4
jne 0x4048b0
mov edi, dword [eax + 8]
jmp 0x4048b0
xor eax, eax
test edi, edi
je 0x40494b
test ebp, ebp
je 0x40494b
push ebp
call fcn.0040ce00
add esp, 4
test eax, eax
je 0x40492b
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 0x404932
inc ebx
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
mov ecx, esi
cmp eax, ebx
jne 0x404910
jmp 0x404934
mov esi, 0x1505
jmp 0x404934
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 0x404953
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 0x404974
inc ebx
dec ecx
je 0x404949
mov eax, ebx
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x404949
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + edi*4], esi
jne 0x404970
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 0x404970
push dword [esp + 4]
push dword [esp + 0x10]
push ebp
call fcn.0040ce30
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x404970
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x40494b
Function at 0x404a70
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 0x404add
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404add
push esi
call fcn.0040ce00
add esp, 4
test eax, eax
je 0x404aba
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x404ac1
inc edi
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
mov ecx, ebx
cmp eax, edi
jne 0x404aa0
jmp 0x404ac3
mov ebx, 0x1505
jmp 0x404ac3
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 0x404ae5
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 0x404af4
inc ebp
dec edi
je 0x404adb
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x404adb
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x404af0
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 0x404af0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040ce30
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404af0
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x404add
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x404add
Function at 0x404e00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
xor eax, eax
cmp dword [esp + 0x14], 0
je 0x405021
cmp dword [esp + 0x18], 0
jle 0x404fc8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add eax, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [edx]
cmp ebx, 0xf4
ja 0x40501f
mov ecx, ebx
and cl, 0xfe
cmp cl, 0xc0
je 0x40501f
mov ecx, ebx
or ecx, 0xc0
mov esi, ebx
xor esi, 0xffffff3f
and esi, ecx
cmp esi, 0x80
je 0x40501f
test bl, bl
js 0x404e80
mov ebp, 1
mov esi, ebx
jmp 0x404fb0
mov edi, ebx
and edi, 0xffffffe0
cmp edi, 0xc0
je 0x404ee2
mov ecx, ebx
and ecx, 0xfffffff0
cmp ecx, 0xe0
jne 0x404f32
movzx esi, byte [edx + 1]
mov ecx, esi
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x40501f
movzx ebp, byte [edx + 2]
mov ecx, ebp
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x40501f
and ebp, 0x3f
and ebx, 0xf
shl ebx, 0xc
and esi, 0x3f
shl esi, 6
or esi, ebx
or esi, ebp
mov ebp, 3
jmp 0x404f07
movzx esi, byte [edx + 1]
mov ecx, esi
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x40501f
and ebx, 0x1f
shl ebx, 6
and esi, 0x3f
or esi, ebx
mov ebp, 2
cmp edi, 0xc0
setne bl
cmp esi, 0x800
setb bh
cmp esi, 0x80
jb 0x40501f
and bl, bh
je 0x404fb0
jmp 0x40501f
mov ecx, ebx
and ecx, 0xfffffff8
cmp ecx, 0xf0
jne 0x40501f
movzx edi, byte [edx + 1]
mov ecx, edi
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x40501f
movzx esi, byte [edx + 2]
mov ecx, esi
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x40501f
movzx ecx, byte [edx + 3]
and cl, 0xc0
cmp cl, 0x80
jne 0x40501f
and ebx, 7
shl ebx, 0xc
and edi, 0x3f
shl edi, 6
or edi, ebx
and esi, 0x3f
or esi, edi
shl esi, 6
lea ecx, [esi - 0x110000]
mov ebp, 4
cmp ecx, 0xfff00000
jb 0x40501f
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
and esi, 0x1ff800
cmp esi, 0xd800
je 0x40501f
add edx, ebp
cmp edx, eax
jb 0x404e30
mov edi, dword [esp + 0x18]
lea eax, [edi + 1]
push eax
call dword [0x448008]
add esp, 4
test eax, eax
je 0x40501f
mov esi, eax
mov byte [eax + edi], 0
push edi
push dword [esp + 0x18]
push eax
call fcn.0040cd00
add esp, 0xc
push 0x10
call dword [0x448008]
add esp, 4
test eax, eax
je 0x405015
mov dword [eax], 0
mov dword [eax + 4], 2
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
jmp 0x405021
push esi
call dword [0x448004]
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405030
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 0x405142
mov esi, dword [esp + 0x28]
test esi, esi
je 0x405142
cmp dword [esp + 0x2c], 0
je 0x405142
push esi
call fcn.0040ce00
add esp, 4
test eax, eax
je 0x40509a
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 0x4050a1
inc edi
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
mov ecx, ebx
cmp eax, edi
jne 0x405080
jmp 0x4050a3
mov ebx, 0x1505
jmp 0x4050a3
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 0x40514a
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x405107
call fcn.00405dd0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x405142
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 0x4051bd
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 0x405168
inc edi
dec esi
je 0x4050bc
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x4050c1
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x405160
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 0x405160
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.0040ce30
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x405160
mov eax, 0xffffffff
jmp 0x405142
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x4051d8
inc edi
dec esi
je 0x405102
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x405107
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x4051d0
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 0x4051d0
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.0040ce30
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4051d0
jmp 0x405107
Function at 0x405b20
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 0x405d0a
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x405d0a
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x405d0a
cmp dword [ecx], 0
jne 0x405d0a
push esi
call fcn.0040ce00
add esp, 4
test eax, eax
je 0x405b8a
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
movzx edx, byte [esi + ebx]
test edx, edx
je 0x405b91
inc ebx
mov edi, ecx
shl edi, 5
add edi, ecx
add edi, edx
mov ecx, edi
cmp eax, ebx
jne 0x405b70
jmp 0x405b93
mov edi, 0x1505
jmp 0x405b93
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 0x405c64
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x405bf1
call fcn.00405dd0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov esi, dword [esp + 0x2c]
jne 0x405d0a
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.00405d20
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 [0x448008]
add esp, 4
test eax, eax
je 0x405d05
mov byte [eax + ebx], 0
push ebx
push esi
push eax
mov esi, eax
call fcn.0040cd00
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 0x405d0a
mov dword [esp], eax
and ebx, edi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x405c88
inc ebx
dec edx
je 0x405bac
mov ebp, ebx
and ebp, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov esi, dword [eax + ebp*4]
cmp esi, 0xffffffff
je 0x405bb1
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], edi
jne 0x405c80
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 0x405c80
push dword [esp]
push ebp
push dword [esp + 0x34]
call fcn.0040ce30
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x405c80
mov eax, dword [ecx + 0x10]
push dword [eax + esi*4]
call fcn.00404bd0
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 0x405c59
mov eax, 0xffffffff
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret