joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452574
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x694
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x6ac]
push esi
mov esi, dword [esp + 0x6a4]
mov edx, dword [esi + 4]
push edi
xor eax, eax
push ebx
mov word [esp + 0x50], ax
mov eax, dword [esi]
push edx
xor ecx, ecx
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov word [esp + 0x262], cx
mov dword [esp + 0x488], ebx
mov dword [esp + 0x2c], 1
call fcn.0041557c
mov edx, dword [esp + 0x6b8]
add esp, 0xc
lea ecx, [esp + 0x490]
push ecx
push edx
push esi
call fcn.004523ce
test eax, eax
je 0x45260c
lea eax, [ebx + 6]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x694
ret 0x10
mov eax, dword [esi]
push eax
push 1
lea ecx, [esp + 0x1f]
push 1
push ecx
call fcn.004151b0
mov edx, dword [esi]
push edx
push 1
lea eax, [esp + 0x30]
push 4
push eax
call fcn.004151b0
mov ecx, dword [esi]
mov edi, dword [esp + 0x38]
push ecx
push 1
lea edx, [esp + 0x40]
push 4
push edx
xor edi, 0x87bc
call fcn.004151b0
mov ecx, dword [esi]
mov eax, dword [esp + 0x48]
push ecx
push 1
lea edx, [esp + 0x50]
xor eax, 0x87bc
push 4
push edx
mov dword [ebp], eax
call fcn.004151b0
mov eax, dword [esp + 0x58]
add esp, 0x40
xor eax, 0xa685
push 1
mov dword [esp + 0x28], eax
mov eax, dword [esi]
push 0x10
push eax
call fcn.0041557c
mov ecx, dword [ebp]
add esp, 0xc
push ecx
call fcn.004138ba
add esp, 4
push edi
mov dword [esp + 0x20], eax
call fcn.004138ba
mov edx, dword [esi]
add esp, 4
push edx
push 1
mov ebp, eax
push edi
push ebp
call fcn.004151b0
mov eax, dword [esi + 8]
add esp, 0x10
add eax, 0x87188a24
push eax
push edi
push ebp
call fcn.0044afdc
push edi
push ebp
lea ecx, [esp + 0x28]
push ecx
call fcn.0043535d
mov edx, dword [esp + 0x24]
cmp edx, dword [esp + 0x20]
je 0x4526fd
mov eax, dword [esp + 0x1c]
push eax
call fcn.00413a88
add esp, 4
push ebp
call fcn.00413a88
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x694
ret 0x10
cmp byte [esp + 0x17], 1
jne 0x45275b
xor ecx, ecx
mov eax, 1
mov word [esp + 0x4c], cx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
xor edx, edx
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov word [esp + 0x25a], dx
mov dword [esp + 0x480], ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], eax
call fcn.0044b195
push ebp
call fcn.00413a88
jmp 0x452769
mov edx, dword [esp + 0x1c]
push edx
call fcn.00413a88
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x6b4]
mov ecx, dword [esp + 0x20]
add esp, 4
pop edi
pop esi
pop ebp
mov dword [eax], ecx
xor eax, eax
pop ebx
add esp, 0x694
ret 0x10
Function at 0x4534eb
Capabilities:
Move file

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0xa54
lea eax, [esp + 0x234]
call fcn.0040ffb0
mov ecx, dword [esp + 0xa5c]
lea eax, [esp + 0x28]
call fcn.0040ffb0
lea eax, [esp + 0x234]
push eax
call fcn.00436ac4
add esp, 4
test al, al
jne 0x45352c
add esp, 0xa54
ret
lea ecx, [esp + 0x28]
push ebx
push ecx
call fcn.00436ac4
add esp, 4
xor ebx, ebx
test al, al
je 0x453618
cmp byte [esp + 0xa64], bl
je 0x453679
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4535ab
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x23c]
push edx
call fcn.004133e4
add esp, 8
test eax, eax
je 0x4535a1
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
pop ebx
add esp, 0xa54
ret
mov al, 1
pop ebx
add esp, 0xa54
ret
lea edx, [esp + 0x444]
push edx
lea eax, [esp + 0x64c]
push eax
lea ecx, [esp + 0x854]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x248]
push eax
call fcn.00413db0
lea ecx, [esp + 0x40]
push 0x484e10
push ecx
call fcn.00411663
lea edx, [esp + 0x664]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00411663
add esp, 0x24
cmp word [esp + 0x444], bx
je 0x453618
lea ecx, [esp + 0x444]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00411663
add esp, 8
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x23c]
push ecx
call fcn.00436a1d
add esp, 8
test al, al
lea edx, [esp + 0x2c]
lea eax, [esp + 0x238]
je 0x45366b
push 1
push edx
push eax
call fcn.0044bbc9
add esp, 0xc
test al, al
je 0x453679
lea ecx, [esp + 0x238]
push 1
push ecx
call fcn.0044bb20
add esp, 8
test al, al
setne al
pop ebx
add esp, 0xa54
ret
push edx
push eax
call fcn.004133e4
add esp, 8
test eax, eax
jne 0x453683
xor al, al
pop ebx
add esp, 0xa54
ret
lea ecx, [esp + 0x238]
push ecx
call fcn.004112d5
xor edx, edx
mov word [esp + eax*2 + 0x23e], dx
lea eax, [esp + 0x30]
push eax
call fcn.004112d5
xor ecx, ecx
lea edx, [esp + 0x240]
mov word [esp + eax*2 + 0x36], cx
mov dword [esp + 0x14], edx
add esp, 8
lea edx, [esp + 4]
lea eax, [esp + 0x2c]
mov ecx, 0x614
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
mov word [esp + 0x18], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
pop ebx
add esp, 0xa54
ret
Function at 0x457c08
Capabilities:
Create process on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
push ebp
mov ebp, dword [esp + 0x64]
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.0040c060
xor esi, esi
push 0x3c
lea eax, [esp + 0x28]
push esi
push eax
xor ebx, ebx
mov dword [esp + 0x78], esi
mov dword [esp + 0x1c], 1
call fcn.004131f0
add esp, 0xc
cmp dword [esp + 0x70], 2
jb 0x457c69
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 4]
push eax
call fcn.00453081
cmp word [eax], bx
je 0x457c69
mov edx, dword [ebp + 4]
mov eax, dword [edx + 4]
push eax
call fcn.00453081
mov edi, eax
call fcn.0040fff0
mov ebx, eax
cmp dword [esp + 0x70], 3
jb 0x457c89
mov eax, dword [ebp + 4]
mov eax, dword [eax + 8]
push eax
call fcn.00453081
mov edi, eax
call fcn.0040fff0
mov dword [esp + 0x6c], eax
mov esi, eax
cmp dword [esp + 0x70], 4
jb 0x457cc6
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0xc]
push eax
call fcn.00453081
cmp word [eax], 0
je 0x457cc6
mov edx, dword [ebp + 4]
mov edi, dword [edx + 0xc]
push edi
call fcn.0044adff
test al, al
jne 0x457cc6
push edi
call fcn.00453063
push eax
lea esi, [esp + 0x18]
call fcn.0040df50
mov esi, dword [esp + 0x6c]
cmp dword [esp + 0x70], 5
jb 0x457cdf
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x10]
call fcn.0040c760
movzx ecx, ax
mov dword [esp + 0x10], ecx
push 0x3c
lea edx, [esp + 0x28]
push 0
push edx
call fcn.004131f0
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x30], 0x3c
mov dword [esp + 0x34], 0x40
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], eax
mov eax, dword [ecx]
add esp, 0xc
push eax
call fcn.00453081
mov edx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, eax
test ebx, ebx
je 0x457d49
push ebx
call fcn.004112ef
add esp, 4
test esi, esi
je 0x457d56
push esi
call fcn.004112ef
add esp, 4
test edi, edi
jne 0x457d94
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
push 1
add eax, ecx
call fcn.004040e0
mov esi, dword [esp + 0x74]
call fcn.004092c0
lea ecx, [esp + 0x14]
mov dword [esi + 8], 1
mov dword [esi], edi
call fcn.00402620
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret 0x14
cmp byte [esp + 0x68], 0
je 0x457dbe
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x64]
mov dword [ecx + 0x450], eax
lea ecx, [esp + 0x14]
call fcn.00402620
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret 0x14
mov esi, dword [esp + 0x74]
call fcn.004092c0
mov eax, dword [esp + 0x5c]
mov dword [esi + 8], 1
mov dword [esi], 1
test eax, eax
je 0x457de3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.00402620
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret 0x14
Function at 0x46032b
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x200
push esi
mov esi, dword [esp + 0x208]
mov eax, dword [esi + 0x54]
push 0x3e9
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4603b1
push 0x100
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test byte [esi + 0x10], 1
je 0x46037d
cmp word [esp + 4], 0
jne 0x46037d
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
pop esi
add esp, 0x200
ret 4
fldz
fcomp qword [esi + 0x18]
fnstsw ax
test ah, 5
jp 0x460398
mov edx, dword [esi + 0x54]
push 0x40a
push edx
call dword [sym.imp.USER32.dll_KillTimer]
lea eax, [esp + 4]
push eax
lea eax, [esi + 0x34]
call fcn.004021e0
mov ecx, dword [esi + 0x54]
push 1
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
pop esi
add esp, 0x200
ret 4
Function at 0x465fc3
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0xd0], 0
je 0x466001
test al, al
je 0x466001
lea eax, [esi + 0xd4]
push eax
call fcn.00434b61
push esi
push 0
push 0x465fb6
call fcn.00415702
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x18], eax
sete al
pop esi
ret 8
push eax
push esi
call fcn.00465e8e
pop esi
ret 8
Function at 0x467e5e
Capabilities:
Print debug messages
Write file on windows

Disassembly:
sub esp, 0x18
mov al, byte [0x49728f]
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov edi, dword [esp + 0x2c]
push 0x8000
push edi
mov byte [esp + 0x18], al
call fcn.0041453a
add esp, 4
push eax
call fcn.00414443
add esp, 8
mov esi, eax
push ebp
mov dword [esp + 0x18], esi
call fcn.00444279
test al, al
je 0x467ebd
push edi
push ebp
call fcn.00443676
push eax
push 1
push ebp
call fcn.004676a3
push eax
call fcn.004146ce
add esp, 0x10
mov ebx, eax
jmp 0x467f09
push esi
jmp 0x467f1c
lea esi, [esp + 0x18]
call fcn.0040d500
push ebp
call fcn.00453063
push esi
push eax
call fcn.0045efe7
mov edx, dword [esp + 0x18]
push edx
push 0x4873d8
push edi
call fcn.00414750
add esp, 0xc
cmp byte [esp + 0x10], 0
mov ebx, eax
je 0x467efc
push ebp
call fcn.00453081
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea esi, [esp + 0x18]
call fcn.00401330
mov esi, dword [esp + 0x14]
push edi
call fcn.004149f6
add esp, 4
cmp esi, 0xffffffff
jne 0x467eba
push 0x4000
push edi
call fcn.0041453a
add esp, 4
push eax
call fcn.00414443
add esp, 8
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x18
ret
Function at 0x404530
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 0x404610
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x404610
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40457a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x404581
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x404560
jmp 0x404583
mov esi, 0x1505
jmp 0x404583
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 0x404610
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x4045b4
inc edi
dec ebx
je 0x40460e
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40460e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x4045b0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040cd00
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x4045b0
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040cd30
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x4045b0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x404610
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404620
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 0x404721
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404721
push ebx
call fcn.0040cd00
add esp, 4
test eax, eax
je 0x40467a
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 0x404681
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x404660
jmp 0x404683
mov esi, 0x1505
jmp 0x404683
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 0x404721
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x4046b4
inc ebp
dec ebx
je 0x40471f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40471f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4046b0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cd00
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4046b0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cd30
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4046b0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40471f
cmp dword [eax + 4], 2
mov edi, 0
jne 0x404721
mov edi, dword [eax + 8]
jmp 0x404721
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404750
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 0x4047bb
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4047bb
push esi
call fcn.0040cd00
add esp, 4
test eax, eax
je 0x40479a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x4047a1
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x404780
jmp 0x4047a3
mov ebp, 0x1505
jmp 0x4047a3
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 0x4047c7
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 0x4047e4
inc ebx
dec edi
je 0x4047bb
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x4047bb
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x4047e0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cd00
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x4047e0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.0040cd30
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x4047e0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x4047bb
cmp dword [eax + 4], 3
jne 0x4047bb
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x4047bb

Function at 0x404880
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 0x404981
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404981
push ebx
call fcn.0040cd00
add esp, 4
test eax, eax
je 0x4048da
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 0x4048e1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4048c0
jmp 0x4048e3
mov esi, 0x1505
jmp 0x4048e3
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 0x404981
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404914
inc ebp
dec ebx
je 0x40497f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40497f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404910
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cd00
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404910
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cd30
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404910
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40497f
cmp dword [eax + 4], 5
mov edi, 0
jne 0x404981
mov edi, dword [eax + 8]
jmp 0x404981
xor edi, edi
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, 0x10
mov edi, 0xffffffff
cmp dword [esp + 0x24], 0
je 0x404ab4
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404ab4
push ebx
call fcn.0040cd00
add esp, 4
test eax, eax
je 0x404a0a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x404a11
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4049f0
jmp 0x404a13
mov esi, 0x1505
jmp 0x404a13
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 0x404ab4
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404a44
inc ebp
dec ebx
je 0x404aaf
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x404aaf
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404a40
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cd00
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404a40
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cd30
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404a40
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x404aaf
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x404ab4
mov edi, dword [eax + 8]
jmp 0x404ab4
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404ac0
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.0040cd80
add esp, 8
test eax, eax
je 0x404b24
mov esi, eax
jmp 0x404b04
mov ebp, esi
inc ebp
push 0x2e
push ebp
call fcn.0040cd80
add esp, 8
mov esi, eax
test eax, eax
je 0x404b24
mov eax, esi
sub eax, ebp
push eax
push ebp
push edi
call fcn.00404530
add esp, 0xc
xor edi, edi
test eax, eax
je 0x404af0
cmp dword [eax + 4], 4
jne 0x404af0
mov edi, dword [eax + 8]
jmp 0x404af0
xor eax, eax
test edi, edi
je 0x404b8b
test ebp, ebp
je 0x404b8b
push ebp
call fcn.0040cd00
add esp, 4
test eax, eax
je 0x404b6b
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 0x404b72
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebx
mov ecx, esi
cmp eax, ebx
jne 0x404b50
jmp 0x404b74
mov esi, 0x1505
jmp 0x404b74
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 0x404b93
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 0x404bb4
inc ebx
dec ecx
je 0x404b89
mov eax, ebx
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x404b89
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + edi*4], esi
jne 0x404bb0
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.0040cd00
mov ecx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x404bb0
push dword [esp + 4]
push dword [esp + 0x10]
push ebp
call fcn.0040cd30
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x404bb0
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x404b8b
Function at 0x404cb0
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 0x404d1d
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404d1d
push esi
call fcn.0040cd00
add esp, 4
test eax, eax
je 0x404cfa
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x404d01
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x404ce0
jmp 0x404d03
mov ebx, 0x1505
jmp 0x404d03
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 0x404d25
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 0x404d34
inc ebp
dec edi
je 0x404d1b
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x404d1b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x404d30
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cd00
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404d30
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cd30
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404d30
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x404d1d
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x404d1d