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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x43c45c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x43c44d
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x43c490
cmp dword [esi + 8], 0
jne 0x43c480
push 0x45e180
push dword [eax + 8]
call fcn.00447743
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x43c480
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.00448728
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x43c4b2
mov eax, dword [esi + 8]
test eax, eax
je 0x43c4ac
push eax
call fcn.004474c9
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x43ef00
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
push edi
lea ecx, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x43ef10
sub esi, ecx
lea eax, [esi + esi]
push eax
mov dword [ebp - 0xc], eax
call dword [0x47100c]
mov edi, eax
add esp, 4
test edi, edi
jne 0x43ef38
lea eax, [edi + 0x1b]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp + 0xc]
push edi
call fcn.0043efe0
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x43efb7
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8002
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x43efac
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x10
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [ebp - 0x10]
push eax
push esi
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi + 0x10], 0
push edi
mov byte [esi + 0x14], 0
call dword [0x471010]
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43f010
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x471220]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 0x10]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x43f0a8
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x18], xmm0
push edi
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.0043f110
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.00442200
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x43f0ba
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443b8c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push dword [ebp - 0x20]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00443b8c
mov esp, ebp
pop ebp
ret

Function at 0x4404e0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x440513
push 0x2e
push edi
call fcn.004450b0
add esp, 8
test eax, eax
je 0x440511
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x4437d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x47100c]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4437fd
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x443844
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x44384a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4438aa
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
lea ebx, [ebx]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
dec dword [ebp + 0x10]
jne 0x443870
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x4438d7
nop
mov eax, dword [esi + 4]
push 1
push 0x4681b6
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x4681b7
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4438b0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x456f6c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x471220]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0044b58d
mov dword [ebp - 0x14], eax
cmp dword [0x473c18], esi
jne 0x45705f
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x456fec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x45713f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x45713f
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45713f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x473c18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x473c1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x473c20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x473c28], eax
test eax, eax
je 0x45705c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x473c24], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x457084
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x457077
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x457099
push 4
pop eax
jmp 0x457141
cmp dword [ebp - 0x14], esi
je 0x457099
push dword [0x473c18]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x45707e
mov eax, dword [0x473c24]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4570f7
cmp dword [0x473c28], edi
je 0x4570f7
push eax
call ebx
push dword [0x473c28]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4570f7
test eax, eax
je 0x4570f7
call ecx
test eax, eax
je 0x4570ec
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4570ec
test byte [ebp - 8], 1
jne 0x4570f7
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x457127
mov eax, dword [0x473c1c]
cmp eax, edi
je 0x457124
push eax
call ebx
test eax, eax
je 0x457124
call eax
mov esi, eax
test esi, esi
je 0x457124
mov eax, dword [0x473c20]
cmp eax, edi
je 0x457124
push eax
call ebx
test eax, eax
je 0x457124
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x473c18]
call ebx
test eax, eax
je 0x45713f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x457141
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443b8c
mov esp, ebp
pop ebp
ret
Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..3ean
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x90055e8
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x431060
mov eax, section..7LWLf
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x56ff7a52
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x8ccba3
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x8cc92e
mov eax, 0x46b910b9
dec eax
call fcn.008ccbdb
mov ecx, eax
sub eax, 0xb940870
xor dword [ebx], edi
dec eax
sub eax, 0x868ab583
and eax, ecx
inc ebx
sub ecx, ecx
inc ecx
cmp ebx, esi
jne fcn.008ccba3
add eax, 0xb1f30cb6
add eax, eax
and eax, ecx
ret
Function at 0x418bf0
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 0x418c28
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x418c1e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x418c2a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x418c10
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4229d0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edx, dword [ebp + 8]
test edx, edx
je 0x422be5
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
movsx eax, byte [eax]
test al, al
je 0x422bf1
mov ecx, 0x1505
lea esi, [esi]
mov ebx, ecx
add edx, 1
shl ebx, 5
add eax, ebx
add ecx, eax
movsx eax, byte [edx - 1]
test al, al
jne 0x422a00
test ecx, ecx
mov ebx, 8
mov esi, 1
jne 0x422b91
mov dword [esp], 0x4645c4
call dword [0x465f24]
mov edx, dword [0x4645dc]
sub esp, 4
add ebx, edx
mov eax, dword [ebx]
test eax, eax
je 0x422b00
cmp esi, eax
mov edi, dword [ebx + 4]
jne 0x422a68
mov eax, dword [ebp + 8]
mov dword [esp + 4], edi
mov ebx, esi
mov dword [esp], eax
call fcn.0042f108
test eax, eax
je 0x422b47
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], edi
mov edi, esi
mov dword [esp + 0xc], str.hash_collision___s_vs__s_
mov dword [esp + 8], str.htab_hash
mov ebx, esi
mov dword [esp + 4], 4
mov dword [esp], 0
mov dword [esp + 0x10], eax
call fcn.00419830
mov eax, esi
mov edx, 0x14191f7
mul edx
mov eax, esi
sub eax, edx
shr eax, 1
add edx, eax
shr edx, 9
imul eax, edx, 0x3fb
mov edx, dword [0x4645dc]
sub edi, eax
mov eax, 0x3fd
add edi, 1
sub eax, edi
mov dword [ebp - 0x1c], eax
lea esi, [esi]
mov eax, dword [ebp - 0x1c]
mov ecx, ebx
sub ecx, edi
add eax, ebx
cmp ebx, edi
cmova eax, ecx
cmp esi, eax
mov ebx, eax
je 0x422b00
lea ecx, [edx + eax*8]
mov eax, dword [ecx]
cmp esi, eax
je 0x422bc0
test eax, eax
jne 0x422ad0
jmp 0x422b02
mov ebx, esi
cmp dword [0x4645c0], 0x3fc
ja 0x422b61
lea edi, [ebx*8]
mov ecx, dword [ebp + 8]
lea eax, [edx + edi]
mov dword [esp], ecx
mov dword [ebp - 0x1c], eax
call dword [0x466038]
add edi, dword [0x4645dc]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x422c02
add dword [0x4645c0], 1
mov dword [edi], esi
mov dword [esp], 0x4645c4
call dword [0x465f78]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], 0x3fd
mov dword [esp + 0xc], str.hash_table_is_full___lu_entries_
xor ebx, ebx
mov dword [esp + 8], str.htab_hash
mov dword [esp + 4], 1
mov dword [esp], 0
call fcn.00419830
jmp 0x422b47
mov eax, ecx
mov edx, 0xc0906d
mov esi, ecx
mul edx
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 9
imul esi, esi, 0x3fd
sub ecx, esi
mov esi, ecx
jne 0x422bf6
mov esi, 1
jmp 0x422a26
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0042f108
test eax, eax
mov edx, dword [ebp - 0x20]
jne 0x422ad0
jmp 0x422b47
lea esp, [ebp - 0xc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 0x114
lea ebx, [esi*8]
jmp 0x422a26
mov dword [esp + 0xc], str.could_not_duplicate_string_for_hash_table
mov dword [esp + 8], str.htab_hash
xor ebx, ebx
mov dword [esp + 4], 1
mov dword [esp], 0
call fcn.00419830
jmp 0x422b47
Function at 0x404570
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 0x40465d
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x40465d
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x4045ba
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x4045c1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x4045a0
jmp 0x4045c3
mov esi, 0x1505
jmp 0x4045c3
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x20]
lea edi, [edx - 1]
mov ebx, edx
sub ebx, 1
mov dword [esp + 8], ebx
jb 0x40465d
and edi, esi
mov eax, dword [ecx + 4]
lea ebp, [eax + edi*4]
add ebp, 4
not edi
jmp 0x4045f7
add ebp, 4
dec edi
dec edx
je 0x40465b
mov eax, dword [esp + 8]
or eax, edi
mov ebx, dword [ebp + eax*4]
cmp ebx, 0xffffffff
je 0x40465b
mov eax, dword [ecx + 8]
cmp dword [eax + ebx*4], esi
jne 0x4045f0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [esp + 4], eax
push eax
mov dword [esp + 4], edx
call fcn.0040ceb0
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x4045f0
push dword [esp + 0x28]
push dword [esp + 8]
push dword [esp + 0x2c]
call fcn.0040ced0
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x4045f0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebx*4]
jmp 0x40465d
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404670
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 0x40477c
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x40477c
push ebx
call fcn.0040ceb0
add esp, 4
test eax, eax
je 0x4046ca
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 0x4046d1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4046b0
jmp 0x4046d3
mov esi, 0x1505
jmp 0x4046d3
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x20]
lea ebp, [edx - 1]
mov eax, edx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x40477c
and ebp, esi
mov eax, dword [ecx + 4]
lea edi, [eax + ebp*4]
add edi, 4
not ebp
jmp 0x404707
add edi, 4
dec ebp
dec edx
je 0x40477a
mov eax, dword [esp + 0xc]
or eax, ebp
mov ebx, dword [edi + eax*4]
cmp ebx, 0xffffffff
je 0x40477a
mov eax, dword [ecx + 8]
cmp dword [eax + ebx*4], esi
jne 0x404700
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [esp + 8], eax
push eax
mov dword [esp + 8], edx
call fcn.0040ceb0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404700
push dword [esp]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.0040ced0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404700
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebx*4]
test eax, eax
mov edi, 0
je 0x40477c
cmp dword [eax + 4], 2
jne 0x40477c
mov edi, dword [eax + 8]
jmp 0x40477c
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4047b0
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 0x404818
mov esi, dword [esp + 0x30]
test esi, esi
je 0x404818
push esi
call fcn.0040ceb0
add esp, 4
test eax, eax
je 0x4047fa
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x404801
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x4047e0
jmp 0x404803
mov ebp, 0x1505
jmp 0x404803
mov ebp, ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x20]
lea ebx, [edx - 1]
mov esi, edx
sub esi, 1
mov dword [esp + 0xc], esi
jae 0x404824
fld qword [esp + 0x10]
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
and ebx, ebp
mov eax, dword [ecx + 4]
lea esi, [eax + ebx*4]
add esi, 4
not ebx
jmp 0x404847
add esi, 4
dec ebx
dec edx
je 0x404818
mov eax, dword [esp + 0xc]
or eax, ebx
mov edi, dword [esi + eax*4]
cmp edi, 0xffffffff
je 0x404818
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], ebp
jne 0x404840
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
mov dword [esp + 8], edx
call fcn.0040ceb0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x404840
push dword [esp]
push dword [esp + 0xc]
push dword [esp + 0x38]
call fcn.0040ced0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x404840
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x404818
cmp dword [eax + 4], 3
jne 0x404818
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x404818
Function at 0x4048f0
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 0x4049fc
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4049fc
push ebx
call fcn.0040ceb0
add esp, 4
test eax, eax
je 0x40494a
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 0x404951
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x404930
jmp 0x404953
mov esi, 0x1505
jmp 0x404953
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x20]
lea ebp, [edx - 1]
mov eax, edx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x4049fc
and ebp, esi
mov eax, dword [ecx + 4]
lea edi, [eax + ebp*4]
add edi, 4
not ebp
jmp 0x404987
add edi, 4
dec ebp
dec edx
je 0x4049fa
mov eax, dword [esp + 0xc]
or eax, ebp
mov ebx, dword [edi + eax*4]
cmp ebx, 0xffffffff
je 0x4049fa
mov eax, dword [ecx + 8]
cmp dword [eax + ebx*4], esi
jne 0x404980
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [esp + 8], eax
push eax
mov dword [esp + 8], edx
call fcn.0040ceb0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404980
push dword [esp]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.0040ced0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404980
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebx*4]
test eax, eax
mov edi, 0
je 0x4049fc
cmp dword [eax + 4], 5
jne 0x4049fc
mov edi, dword [eax + 8]
jmp 0x4049fc
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404a30
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 0x404b3f
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404b3f
push ebx
call fcn.0040ceb0
add esp, 4
test eax, eax
je 0x404a8a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x404a91
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x404a70
jmp 0x404a93
mov esi, 0x1505
jmp 0x404a93
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x20]
lea ebp, [edx - 1]
mov eax, edx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x404b3f
and ebp, esi
mov eax, dword [ecx + 4]
lea edi, [eax + ebp*4]
add edi, 4
not ebp
jmp 0x404ac7
add edi, 4
dec ebp
dec edx
je 0x404b3a
mov eax, dword [esp + 0xc]
or eax, ebp
mov ebx, dword [edi + eax*4]
cmp ebx, 0xffffffff
je 0x404b3a
mov eax, dword [ecx + 8]
cmp dword [eax + ebx*4], esi
jne 0x404ac0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [esp + 8], eax
push eax
mov dword [esp + 8], edx
call fcn.0040ceb0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404ac0
push dword [esp]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.0040ced0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404ac0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebx*4]
test eax, eax
mov edi, 0xffffffff
je 0x404b3f
cmp dword [eax + 4], 6
jne 0x404b3f
mov edi, dword [eax + 8]
jmp 0x404b3f
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret