joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4054a2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x408374
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x408364
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4054f3
xor eax, eax
jmp 0x40551a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40551a
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x4054ef
call esi
pop esi
leave
ret 4

Function at 0x405554
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42c070], 0x44
push eax
xor eax, eax
push 0x42c070
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405593
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40561d
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405a11
mov edi, eax
cmp edi, 0xffffffff
je 0x40565e
test byte [esp + 0x10], 1
push esi
je 0x405640
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405646
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40564f
xor eax, eax
inc eax
jmp 0x405660
test byte [esp + 0x10], 4
jne 0x40565e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405665
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.00405923
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4056a4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f488], eax
jmp 0x40582e
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4056be
test eax, eax
je 0x4057dc
test bl, 2
je 0x4057dc
mov esi, 0x42b870
push edi
push esi
call fcn.00405dc3
cmp dword [ebp + 8], 0
je 0x4056dd
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4056e3
push edi
call fcn.0040587c
cmp byte [edi], 0
jne 0x4056f1
cmp byte [0x42b870], 0x5c
jne 0x4056fc
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 0x4057d2
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405860
cmp byte [eax], 0
je 0x405742
cmp byte [ebp - 0x1c], 0
je 0x405742
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405758
mov al, byte [esi + 1]
test al, al
je 0x4057b1
cmp al, 0x2e
jne 0x405758
cmp byte [esi + 2], 0
je 0x4057b1
push esi
push ebx
call fcn.00405dc3
test byte [ebp - 0x14c], 0x10
je 0x40577d
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4057b1
push dword [ebp + 0xc]
push edi
call fcn.00405665
jmp 0x4057b1
push dword [ebp - 4]
push edi
call fcn.0040561d
test eax, eax
jne 0x4057a9
cmp dword [ebp - 4], eax
je 0x4057a1
push edi
push 0xfffffffffffffff1
call fcn.00404fdc
push 0
push edi
call fcn.00405c7e
jmp 0x4057b1
inc dword [0x42f488]
jmp 0x4057b1
push edi
push 0xfffffffffffffff2
call fcn.00404fdc
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405720
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4057dc
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40582e
cmp dword [ebp - 0xc], esi
jne 0x4057f0
inc dword [0x42f488]
jmp 0x40582e
push edi
call fcn.004060c7
test eax, eax
je 0x40582e
push edi
call fcn.00405835
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.0040561d
test eax, eax
jne 0x405826
cmp dword [ebp - 4], esi
je 0x4057e8
push edi
push 0xfffffffffffffff1
call fcn.00404fdc
push esi
push edi
call fcn.00405c7e
jmp 0x40582e
push edi
push 0xffffffffffffffe5
call fcn.00404fdc
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405923
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42bc70
push esi
call fcn.00405dc3
push esi
call fcn.004058ce
mov edi, eax
test edi, edi
jne 0x405944
xor eax, eax
jmp 0x405996
push edi
call fcn.0040602e
test byte [0x42f418], 0x80
je 0x40595d
mov al, byte [edi]
test al, al
je 0x405940
cmp al, 0x5c
je 0x405940
sub edi, esi
jmp 0x405975
call fcn.004060c7
test eax, eax
je 0x40596f
test byte [eax], 0x10
je 0x405940
push esi
call fcn.0040587c
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405961
call fcn.00405835
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 0x405a11
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 0x405a30
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 0x405a36
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 0x405a65
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 [0x40a3ac]
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 0x405aaa
test edi, edi
jne 0x405a70
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405aa4
Function at 0x405b0c
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, 0x42c5f8
push 0x40a3c8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x405b5a
push 1
push 0
push esi
call fcn.00405a36
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405c79
cmp eax, ebx
jg 0x405c79
mov esi, 0x42c9f8
push ebx
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x405c79
cmp eax, ebx
jg 0x405c79
push esi
push edi
push str._s_s_r_n
push 0x42c1f8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42f410]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405de5
push 4
push 0xc0000000
push esi
call fcn.00405a36
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405c79
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 0x405c72
push edi
push esi
push ebp
call fcn.00405aae
test eax, eax
je 0x405c72
push str._Rename__r_n
push esi
call fcn.0040599b
test eax, eax
jne 0x405c10
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405c45
add eax, 0xa
push 0x40a3b0
push eax
call fcn.0040599b
mov ebp, eax
test ebp, ebp
je 0x405c41
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405c32
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405c2c
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405c47
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x42c1f8
push eax
call fcn.004059f1
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.00405add
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 0x405c7e
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 0x405ca1
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405b0c
pop ecx
pop ecx
inc dword [0x42f490]
ret 8
Function at 0x405caa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405d1b
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405d0a
cmp dword [ebp + 0x14], 1
je 0x405d0c
cmp dword [ebp + 0x14], 2
je 0x405d0c
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x4060ee
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 0x406112
xor eax, eax
test eax, eax
je 0x406124
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406124
xor ecx, ecx
jmp 0x406127
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 0x4061d1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42cdfc], 0
push esi
jne 0x406208
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 0x4061e2
mov dword [ecx*4 + 0x42cdf8], eax
inc ecx
cmp ecx, 0x100
jl 0x4061dd
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406239
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 + 0x42cdf8]
xor eax, esi
inc ecx
dec edx
jne 0x40621b
pop edi
not eax
pop esi
ret 0xc
Function at 0x404360
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 0x404440
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x404440
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x4043aa
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x4043b1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x404390
jmp 0x4043b3
mov esi, 0x1505
jmp 0x4043b3
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 0x404440
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x4043e4
inc edi
dec ebx
je 0x40443e
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40443e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x4043e0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040cb40
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x4043e0
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040cb60
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x4043e0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x404440
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404450
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 0x404551
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404551
push ebx
call fcn.0040cb40
add esp, 4
test eax, eax
je 0x4044aa
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 0x4044b1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x404490
jmp 0x4044b3
mov esi, 0x1505
jmp 0x4044b3
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 0x404551
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x4044e4
inc ebp
dec ebx
je 0x40454f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40454f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4044e0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cb40
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4044e0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cb60
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4044e0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40454f
cmp dword [eax + 4], 2
mov edi, 0
jne 0x404551
mov edi, dword [eax + 8]
jmp 0x404551
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404580
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 0x4045eb
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4045eb
push esi
call fcn.0040cb40
add esp, 4
test eax, eax
je 0x4045ca
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x4045d1
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x4045b0
jmp 0x4045d3
mov ebp, 0x1505
jmp 0x4045d3
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 0x4045f7
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 0x404614
inc ebx
dec edi
je 0x4045eb
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x4045eb
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x404610
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cb40
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x404610
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.0040cb60
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x404610
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x4045eb
cmp dword [eax + 4], 3
jne 0x4045eb
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x4045eb

Function at 0x4046b0
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 0x4047b1
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4047b1
push ebx
call fcn.0040cb40
add esp, 4
test eax, eax
je 0x40470a
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 0x404711
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4046f0
jmp 0x404713
mov esi, 0x1505
jmp 0x404713
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 0x4047b1
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404744
inc ebp
dec ebx
je 0x4047af
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4047af
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404740
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cb40
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404740
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cb60
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404740
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4047af
cmp dword [eax + 4], 5
mov edi, 0
jne 0x4047b1
mov edi, dword [eax + 8]
jmp 0x4047b1
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4047e0
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 0x4048e4
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4048e4
push ebx
call fcn.0040cb40
add esp, 4
test eax, eax
je 0x40483a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x404841
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x404820
jmp 0x404843
mov esi, 0x1505
jmp 0x404843
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 0x4048e4
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404874
inc ebp
dec ebx
je 0x4048df
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4048df
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404870
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cb40
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404870
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cb60
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404870
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4048df
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x4048e4
mov edi, dword [eax + 8]
jmp 0x4048e4
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4048f0
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.0040cbb0
add esp, 8
test eax, eax
je 0x404954
mov esi, eax
jmp 0x404934
mov ebp, esi
inc ebp
push 0x2e
push ebp
call fcn.0040cbb0
add esp, 8
mov esi, eax
test eax, eax
je 0x404954
mov eax, esi
sub eax, ebp
push eax
push ebp
push edi
call fcn.00404360
add esp, 0xc
xor edi, edi
test eax, eax
je 0x404920
cmp dword [eax + 4], 4
jne 0x404920
mov edi, dword [eax + 8]
jmp 0x404920
xor eax, eax
test edi, edi
je 0x4049bb
test ebp, ebp
je 0x4049bb
push ebp
call fcn.0040cb40
add esp, 4
test eax, eax
je 0x40499b
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 0x4049a2
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebx
mov ecx, esi
cmp eax, ebx
jne 0x404980
jmp 0x4049a4
mov esi, 0x1505
jmp 0x4049a4
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 0x4049c3
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 0x4049e4
inc ebx
dec ecx
je 0x4049b9
mov eax, ebx
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4049b9
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + edi*4], esi
jne 0x4049e0
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.0040cb40
mov ecx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x4049e0
push dword [esp + 4]
push dword [esp + 0x10]
push ebp
call fcn.0040cb60
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x4049e0
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x4049bb
Function at 0x404ae0
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 0x404b4d
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404b4d
push esi
call fcn.0040cb40
add esp, 4
test eax, eax
je 0x404b2a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x404b31
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x404b10
jmp 0x404b33
mov ebx, 0x1505
jmp 0x404b33
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 0x404b55
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 0x404b64
inc ebp
dec edi
je 0x404b4b
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x404b4b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x404b60
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cb40
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404b60
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cb60
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404b60
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x404b4d
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x404b4d