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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ee98
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x403234
cmp byte [ebx + 0x3d], 0
je 0x403234
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x4030a9
xor al, al
jmp 0x403236
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00405810
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmp edx, 0x10
lea esi, [ebp - 0x28]
cmovae esi, eax
cmovae edi, eax
mov edx, dword [ecx]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40311a
sub eax, 1
je 0x40311e
mov edx, dword [ebp - 0x14]
sub eax, 2
mov eax, dword [ebp - 0x28]
je 0x4031e6
xor bl, bl
jmp 0x4031e8
mov byte [ebx + 0x3d], 0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp edx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae ecx, eax
sub esi, ecx
je 0x403156
push dword [ebx + 0x4c]
cmp edx, 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, eax
push 1
push ecx
call fcn.0040d7e8
mov edx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
mov eax, dword [ebp - 0x28]
jne 0x403113
cmp byte [ebx + 0x3d], 0
je 0x4031e6
test esi, esi
jne 0x4030d4
mov edi, dword [ebp - 0x18]
or ecx, 0xffffffff
sub ecx, edi
cmp ecx, 8
jbe 0x4031dc
lea esi, [edi + 8]
cmp esi, 0xfffffffe
ja 0x4031dc
cmp edx, esi
jae 0x4031c4
push edi
push esi
lea ecx, [ebp - 0x28]
call fcn.00405b00
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
test esi, esi
je 0x4030d4
cmp edx, 0x10
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
cmovae ecx, eax
mov eax, dword [ebp - 0x18]
movq qword [ecx + eax], xmm0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x18], esi
cmovae eax, dword [ebp - 0x28]
mov byte [eax + esi], 0
jmp 0x4030ce
test esi, esi
jne 0x403199
cmp edx, 0x10
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x28]
cmovae ecx, eax
mov byte [ecx], 0
jmp 0x4030ce
push str.string_too_long
call fcn.004065a5
mov bl, 1
cmp edx, 0x10
jb 0x403230
lea ecx, [edx + 1]
cmp ecx, 0x1000
jb 0x403227
test byte [ebp - 0x28], 0x1f
je 0x403203
call fcn.0040c9e1
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x40320f
call fcn.0040c9e1
sub eax, ecx
cmp eax, 4
jae 0x40321b
call fcn.0040c9e1
cmp eax, 0x23
jbe 0x403225
call fcn.0040c9e1
mov eax, ecx
push eax
call fcn.0040774a
add esp, 4
mov al, bl
jmp 0x403236
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040774f
mov esp, ebp
pop ebp
ret
Function at 0x403890
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ef86
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x42f070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00407760
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00406935
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x413370
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004131ef

Function at 0x4187fd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004184bd
Function at 0x4042c0
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 0x4043a0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4043a0
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40430a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x404311
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x4042f0
jmp 0x404313
mov esi, 0x1505
jmp 0x404313
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 0x4043a0
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x404344
inc edi
dec ebx
je 0x40439e
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40439e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x404340
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040cb20
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x404340
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040cb40
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x404340
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x4043a0
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4043b0
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 0x4044b1
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4044b1
push ebx
call fcn.0040cb20
add esp, 4
test eax, eax
je 0x40440a
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 0x404411
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4043f0
jmp 0x404413
mov esi, 0x1505
jmp 0x404413
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 0x4044b1
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404444
inc ebp
dec ebx
je 0x4044af
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4044af
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404440
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cb20
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404440
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cb40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404440
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4044af
cmp dword [eax + 4], 2
mov edi, 0
jne 0x4044b1
mov edi, dword [eax + 8]
jmp 0x4044b1
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4044e0
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 0x40454b
mov esi, dword [esp + 0x30]
test esi, esi
je 0x40454b
push esi
call fcn.0040cb20
add esp, 4
test eax, eax
je 0x40452a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x404531
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x404510
jmp 0x404533
mov ebp, 0x1505
jmp 0x404533
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 0x404557
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 0x404574
inc ebx
dec edi
je 0x40454b
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x40454b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x404570
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cb20
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x404570
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.0040cb40
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x404570
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x40454b
cmp dword [eax + 4], 3
jne 0x40454b
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x40454b

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.0040cb20
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.0040cb20
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.0040cb40
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], 5
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, 0x10
mov edi, 0xffffffff
cmp dword [esp + 0x24], 0
je 0x404844
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404844
push ebx
call fcn.0040cb20
add esp, 4
test eax, eax
je 0x40479a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x4047a1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x404780
jmp 0x4047a3
mov esi, 0x1505
jmp 0x4047a3
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 0x404844
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x4047d4
inc ebp
dec ebx
je 0x40483f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40483f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4047d0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cb20
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4047d0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cb40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4047d0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40483f
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x404844
mov edi, dword [eax + 8]
jmp 0x404844
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404850
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.0040cb90
add esp, 8
test eax, eax
je 0x4048be
mov esi, eax
jmp 0x404894
mov ebp, esi
inc ebp
push 0x2e
push ebp
call fcn.0040cb90
add esp, 8
mov esi, eax
test eax, eax
je 0x4048be
mov eax, esi
not eax
and eax, ebp
mov ecx, ebp
not ecx
and ecx, esi
sub ecx, eax
push ecx
push ebp
push edi
call fcn.004042c0
add esp, 0xc
xor edi, edi
test eax, eax
je 0x404880
cmp dword [eax + 4], 4
jne 0x404880
mov edi, dword [eax + 8]
jmp 0x404880
xor eax, eax
test edi, edi
je 0x40491b
test ebp, ebp
je 0x40491b
push ebp
call fcn.0040cb20
add esp, 4
test eax, eax
je 0x4048fb
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
movzx edx, byte [ebp + ebx]
test edx, edx
je 0x404902
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebx
mov ecx, esi
cmp eax, ebx
jne 0x4048e0
jmp 0x404904
mov esi, 0x1505
jmp 0x404904
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 0x404923
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 0x404944
inc ebx
dec ecx
je 0x404919
mov eax, ebx
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x404919
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + edi*4], esi
jne 0x404940
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.0040cb20
mov ecx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x404940
push dword [esp + 4]
push dword [esp + 0x10]
push ebp
call fcn.0040cb40
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x404940
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x40491b
Function at 0x404a40
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 0x404aad
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404aad
push esi
call fcn.0040cb20
add esp, 4
test eax, eax
je 0x404a8a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x404a91
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x404a70
jmp 0x404a93
mov ebx, 0x1505
jmp 0x404a93
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 0x404ab5
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 0x404ac4
inc ebp
dec edi
je 0x404aab
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x404aab
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x404ac0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cb20
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404ac0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cb40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404ac0
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x404aad
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x404aad
Function at 0x405000
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 0x405112
mov esi, dword [esp + 0x28]
test esi, esi
je 0x405112
cmp dword [esp + 0x2c], 0
je 0x405112
push esi
call fcn.0040cb20
add esp, 4
test eax, eax
je 0x40506a
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 0x405071
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x405050
jmp 0x405073
mov ebx, 0x1505
jmp 0x405073
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 0x40511a
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x4050d7
call fcn.00405d10
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x405112
push ecx
call fcn.0040cb20
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 0x40518d
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 0x405138
inc edi
dec esi
je 0x40508c
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x405091
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x405130
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.0040cb20
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x405130
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.0040cb40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x405130
mov eax, 0xffffffff
jmp 0x405112
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x4051a8
inc edi
dec esi
je 0x4050d2
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x4050d7
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x4051a0
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.0040cb20
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4051a0
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.0040cb40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4051a0
jmp 0x4050d7
Function at 0x405a60
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 0x405c4a
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x405c4a
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x405c4a
cmp dword [ecx], 0
jne 0x405c4a
push esi
call fcn.0040cb20
add esp, 4
test eax, eax
je 0x405aca
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
movzx edx, byte [esi + ebx]
test edx, edx
je 0x405ad1
mov edi, ecx
shl edi, 5
add edi, ecx
add edi, edx
inc ebx
mov ecx, edi
cmp eax, ebx
jne 0x405ab0
jmp 0x405ad3
mov edi, 0x1505
jmp 0x405ad3
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 0x405ba4
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x405b31
call fcn.00405d10
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov esi, dword [esp + 0x2c]
jne 0x405c4a
push esi
call fcn.0040cb20
add esp, 4
mov edx, esi
lea esi, [esp + 0x10]
mov ecx, dword [esp + 0x28]
push esi
push edi
push eax
call fcn.00405c60
add esp, 0xc
mov ebp, eax
mov esi, dword [esp + 0x2c]
push esi
call fcn.0040cb20
add esp, 4
mov ebx, eax
inc eax
push eax
call dword [0x449008]
add esp, 4
test eax, eax
je 0x405c45
mov byte [eax + ebx], 0
push ebx
push esi
push eax
mov esi, eax
call fcn.0040c930
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 0x405c4a
mov dword [esp], eax
and ebx, edi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x405bc8
inc ebx
dec edx
je 0x405aec
mov ebp, ebx
and ebp, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov esi, dword [eax + ebp*4]
cmp esi, 0xffffffff
je 0x405af1
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], edi
jne 0x405bc0
mov eax, dword [ecx + 0xc]
mov ebp, dword [eax + esi*4]
push ebp
mov dword [esp + 8], edx
call fcn.0040cb20
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [esp]
jne 0x405bc0
push dword [esp]
push ebp
push dword [esp + 0x34]
call fcn.0040cb40
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x405bc0
mov eax, dword [ecx + 0x10]
push dword [eax + esi*4]
call fcn.00404ba0
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 0x405b99
mov eax, 0xffffffff
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret