joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4057d8
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405a96
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405817
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f4a8], eax
jmp 0x4059a1
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405831
test eax, eax
je 0x40594f
test bl, 2
je 0x40594f
mov esi, 0x42b878
push edi
push esi
call fcn.00406010
cmp dword [ebp + 8], 0
je 0x405850
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405856
push edi
call fcn.004059ef
cmp byte [edi], 0
jne 0x405864
cmp byte [0x42b878], 0x5c
jne 0x40586f
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405945
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.004059d3
cmp byte [eax], 0
je 0x4058b5
cmp byte [ebp - 0x1c], 0
je 0x4058b5
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x4058cb
mov al, byte [esi + 1]
test al, al
je 0x405924
cmp al, 0x2e
jne 0x4058cb
cmp byte [esi + 2], 0
je 0x405924
push esi
push ebx
call fcn.00406010
test byte [ebp - 0x14c], 0x10
je 0x4058f0
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405924
push dword [ebp + 0xc]
push edi
call fcn.004057d8
jmp 0x405924
push dword [ebp - 4]
push edi
call fcn.00405790
test eax, eax
jne 0x40591c
cmp dword [ebp - 4], eax
je 0x405914
push edi
push 0xfffffffffffffff1
call fcn.00405137
push 0
push edi
call fcn.00405def
jmp 0x405924
inc dword [0x42f4a8]
jmp 0x405924
push edi
push 0xfffffffffffffff2
call fcn.00405137
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405893
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40594f
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4059a1
cmp dword [ebp - 0xc], esi
jne 0x405963
inc dword [0x42f4a8]
jmp 0x4059a1
push edi
call fcn.00406313
test eax, eax
je 0x4059a1
push edi
call fcn.004059a8
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405790
test eax, eax
jne 0x405999
cmp dword [ebp - 4], esi
je 0x40595b
push edi
push 0xfffffffffffffff1
call fcn.00405137
push esi
push edi
call fcn.00405def
jmp 0x4059a1
push edi
push 0xffffffffffffffe5
call fcn.00405137
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405a96
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42bc78
push esi
call fcn.00406010
push esi
call fcn.00405a41
mov edi, eax
test edi, edi
jne 0x405ab7
xor eax, eax
jmp 0x405b09
push edi
call fcn.0040627a
test byte [0x42f41c], 0x80
je 0x405ad0
mov al, byte [edi]
test al, al
je 0x405ab3
cmp al, 0x5c
je 0x405ab3
sub edi, esi
jmp 0x405ae8
call fcn.00406313
test eax, eax
je 0x405ae2
test byte [eax], 0x10
je 0x405ab3
push esi
call fcn.004059ef
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405ad4
call fcn.004059a8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405b84
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ba3
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405ba9
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405bd8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a3b4]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405c1d
test edi, edi
jne 0x405be3
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405c17
Function at 0x405c7f
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x42c600], 0x4c554e
mov edi, 0x400
mov ebp, 0x42c600
je 0x405ccb
push 1
push 0
push esi
call fcn.00405ba9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405dea
cmp eax, edi
jg 0x405dea
mov esi, 0x42ca00
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405dea
cmp eax, edi
jg 0x405dea
push esi
push ebp
push str._s_s_r_n
push 0x42c200
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42f414]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406032
push 4
push 0xc0000000
push esi
call fcn.00405ba9
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405dea
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405de3
push edi
push esi
push ebp
call fcn.00405c21
test eax, eax
je 0x405de3
push str._Rename__r_n
push esi
call fcn.00405b0e
test eax, eax
jne 0x405d81
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405db6
add eax, 0xa
push 0x40a3b8
push eax
call fcn.00405b0e
mov ebp, eax
test ebp, ebp
je 0x405db2
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405da3
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405d9d
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405db8
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x42c200
push eax
call fcn.00405b64
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405c50
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405def
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405e12
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405c7f
pop ecx
pop ecx
inc dword [0x42f4b0]
ret 8

Function at 0x405ef7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405e96
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x405f66
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x405f66
cmp dword [ebp + 0xc], 1
je 0x405f69
cmp dword [ebp + 0xc], 2
je 0x405f69
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x40633a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40635e
xor eax, eax
test eax, eax
je 0x406370
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406370
xor ecx, ecx
jmp 0x406373
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x40645f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ce04], 0
push esi
jne 0x406496
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406470
mov dword [ecx*4 + 0x42ce00], eax
inc ecx
cmp ecx, 0x100
jl 0x40646b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4064c7
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ce00]
xor eax, esi
inc ecx
dec edx
jne 0x4064a9
pop edi
not eax
pop esi
ret 0xc
Function at 0x47c7e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x47c805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x47c878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x47c83a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x47c86d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x47c86b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x47c831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x47c7fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
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.0040ce90
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.0040ceb0
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.0040ce90
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.0040ce90
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.0040ceb0
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.0040ce90
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.0040ce90
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.0040ceb0
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.0040ce90
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.0040ce90
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.0040ceb0
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.0040ce90
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.0040ce90
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.0040ceb0
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.0040cf00
add esp, 8
test eax, eax
je 0x404b24
mov esi, eax
jmp 0x404b04
mov ebp, esi
inc ebp
push 0x2e
push ebp
call fcn.0040cf00
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.0040ce90
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.0040ce90
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.0040ceb0
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.0040ce90
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.0040ce90
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.0040ceb0
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