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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, dword [esp + 0x3c]
cmp dword [0x4168d8], esi
jbe 0x40b220
mov edx, dword [esp + 0x44]
lea ecx, [edx + 1]
xor eax, eax
cmp ecx, 2
jb 0x40b22c
mov eax, dword [esi*4 + 0x4168dc]
test ah, 0x40
je 0x40b234
xor edi, edi
test ah, 2
je 0x40b240
xor eax, eax
jmp 0x40b22c
mov dword [esp], 0xfffffffa
call fcn.0040be34
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
jmp 0x40b620
test edx, edx
jne 0x40b248
xor eax, eax
jmp 0x40b22c
mov ebx, dword [esp + 0x40]
sub edx, edi
mov dword [esp + 0x10], edx
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], esi
call 0x40b620
mov ebp, eax
test ebp, ebp
je 0x40b3a1
mov dword [esp + 0x18], edi
mov eax, 0xffffffff
cmp ebp, 0xffffffff
je 0x40b22c
mov dword [esp + 8], ebp
mov dword [esp], ebx
mov dword [esp + 4], 0x1a
call fcn.0040a88c
test eax, eax
je 0x40b2a4
or byte [esi*4 + 0x4168dd], 2
mov ebp, eax
sub ebp, ebx
je 0x40b39d
mov dword [esp + 0x1c], eax
lea edi, [ebp + ebx - 1]
cmp byte [ebp + ebx - 1], 0xd
jne 0x40b2d7
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 8], 1
call 0x40b620
mov ecx, eax
mov eax, 0xffffffff
cmp ecx, 0xffffffff
je 0x40b22c
mov dword [esp + 0x24], edi
lea eax, [ebx + ebp]
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], ebp
mov edi, ebx
mov esi, ebx
mov dword [esp + 0x14], ebx
jmp 0x40b2fd
add edi, ebp
inc ebx
mov esi, ebx
mov ebp, dword [esp + 0x20]
mov eax, ebp
sub eax, esi
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [esp + 4], 0xd
call fcn.0040a88c
mov ebx, eax
test ebx, ebx
cmove ebx, ebp
mov ebp, ebx
sub ebp, esi
cmp esi, edi
je 0x40b338
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0040a950
mov eax, dword [esp + 0x24]
cmp ebx, eax
jb 0x40b2f8
mov ebx, dword [esp + 0x14]
sub edi, ebx
add ebp, edi
mov edi, dword [esp + 0x18]
add edi, ebp
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x10]
jae 0x40b379
cmp dword [esp + 0x1c], 0
sete al
mov esi, dword [esp + 0x3c]
test byte [esi*4 + 0x4168dd], 0x20
sete cl
test ebp, ebp
jne 0x40b3a1
and cl, al
jne 0x40b38d
jmp 0x40b3a1
cmp dword [esp + 0x1c], 0
sete al
test ebp, ebp
mov esi, dword [esp + 0x3c]
jne 0x40b3a1
test al, al
je 0x40b3a1
add ebx, ebp
mov edx, dword [esp + 0x44]
cmp edi, edx
jb 0x40b24c
jmp 0x40b3a1
mov edi, dword [esp + 0x18]
mov eax, edi
jmp 0x40b22c
push esi
sub esp, 0x18
mov eax, dword [esp + 0x20]
cmp dword [0x4168d8], eax
jbe 0x40b66d
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax*4 + 0x41b960]
lea esi, [esp + 0x14]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 0
call sub.KERNEL32.DLL_ReadFile
sub esp, 0x14
cmp eax, 1
jne 0x40b67b
mov eax, dword [esp + 0x14]
jmp 0x40b691
mov dword [esp], 6
call fcn.0040be34
jmp 0x40b691
call sub.KERNEL32.DLL_GetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
je 0x40b691
mov dword [esp], ecx
call fcn.0040be34
add esp, 0x18
pop esi
ret
Function at 0x40b6a8
Capabilities:
Write file on windows

Disassembly:
push esi
sub esp, 0x18
mov eax, dword [esp + 0x20]
cmp dword [0x4168d8], eax
jbe 0x40b6f5
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax*4 + 0x41b960]
lea esi, [esp + 0x14]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 0
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
cmp eax, 1
jne 0x40b703
mov eax, dword [esp + 0x14]
jmp 0x40b708
mov dword [esp], 6
call fcn.0040be34
jmp 0x40b708
call fcn.0040beb4
add esp, 0x18
pop esi
ret
Function at 0x40d95c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [esp + 0x48]
test ah, 0xc0
je 0x40afd4
mov ebx, eax
jmp 0x40afe3
mov ecx, dword [0x4169a8]
mov ebx, 0xc000
and ebx, dword [ecx]
or ebx, eax
mov edi, ebx
shr edi, 1
and edi, 0x4000
xor edi, 0x4000
or edi, ebx
mov eax, ebx
and eax, 0x700
cmp eax, 0x1ff
ja 0x40b011
cmp eax, 0x100
jne 0x40b057
mov ebp, 4
jmp 0x40b05c
cmp eax, 0x2ff
ja 0x40b021
cmp eax, 0x200
jne 0x40b057
jmp 0x40b049
cmp eax, 0x4ff
ja 0x40b036
cmp eax, 0x300
jne 0x40b057
mov ebp, 2
jmp 0x40b05c
mov ebp, 1
cmp eax, 0x500
je 0x40b05c
cmp eax, 0x600
jne 0x40b050
mov ebp, 5
jmp 0x40b05c
cmp eax, 0x700
je 0x40b05c
mov ebp, 3
mov eax, ebx
and eax, 0x100
mov dword [esp + 0x1c], eax
je 0x40b094
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
and eax, dword [0x416424]
mov edx, 1
mov ecx, 0x80
test al, 0x80
cmove ecx, edx
jmp 0x40b0ab
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, 0x80000000
mov edx, ebx
and edx, 3
je 0x40b0cd
cmp edx, 2
jne 0x40b0c3
mov eax, 0xc0000000
jmp 0x40b0cd
cmp edx, 1
jne 0x40b0f3
mov eax, 0x40000000
mov edx, ebx
mov esi, edx
and ebx, 0x70
xor edx, edx
cmp ebx, 0x10
je 0x40b109
cmp ebx, 0x30
jne 0x40b0e7
mov edx, 2
jmp 0x40b109
cmp ebx, 0x20
jne 0x40b104
mov edx, 1
jmp 0x40b109
mov dword [esp], 1
call fcn.0040be34
jmp 0x40b1df
mov edx, 3
mov ebx, esi
test bl, 4
je 0x40b11b
cmp eax, 0x80000000
sete dl
movzx edx, dl
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], 0
shr ebx, 7
and ebx, 1
xor ebx, 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 0x18], 0
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
mov esi, eax
cmp esi, 0xffffffff
je 0x40b1b8
mov dword [esp], esi
call fcn.0040af30
mov dword [esp], esi
mov ecx, edi
or ecx, 0x2000
test eax, eax
cmove ecx, edi
and ecx, 0xfffff8ff
mov dword [esp + 4], ecx
call fcn.0040ba74
cmp eax, 0xffffffff
jne 0x40b1df
mov dword [esp], 4
call fcn.0040be34
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov eax, 0xffffffff
jmp 0x40b1df
call sub.KERNEL32.DLL_GetLastError
movzx eax, ax
cmp eax, 0x6e
jne 0x40b1d7
mov ecx, 0x50
mov eax, 2
cmp dword [esp + 0x1c], 0
cmovne eax, ecx
mov dword [esp], eax
call fcn.0040be34
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
jmp 0x40afc0
Function at 0x4112c0
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
mov esi, eax
test esi, esi
je 0x4113e3
lea eax, [esp + 0x2c]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetLocalTime
sub esp, 4
movzx eax, word [esp + 0x2e]
mov dword [esp + 0x24], eax
movzx ecx, word [esp + 0x32]
movzx edx, word [esp + 0x2c]
movzx ebx, word [esp + 0x34]
movzx ebp, word [esp + 0x36]
movzx edi, word [esp + 0x38]
movzx eax, word [esp + 0x3a]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], str._02d__02d__04d__02d:_02d:_02d._03d
mov dword [esp], 0x41bc40
call sub.USER32.DLL_wsprintfA
mov dword [esp], 0x41bc40
call fcn.0040ac30
lea ebx, [esp + 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0x41bc40
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov edi, dword [esp + 0x54]
mov dword [esp], edi
call fcn.0040ac30
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0x10], 0
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4113f4
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x9c
mov ecx, dword [0x41bc60]
mov eax, dword [0x41bc64]
mov edi, dword [esp + 0xac]
test eax, eax
jne 0x4114e9
test ecx, ecx
jne 0x4114e9
cmp dword [0x417aac], 0
je 0x41152b
lea esi, [esp + 0x18]
mov dword [esp + 4], esi
mov dword [esp + 8], 0x80
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleFileNameA
sub esp, 0xc
mov dword [esp], esi
mov dword [esp + 4], 0x5c
call fcn.00411188
test eax, eax
jne 0x411476
mov dword [esp], esi
mov dword [esp + 4], 0x3a
call fcn.00411188
test eax, eax
je 0x411479
inc eax
mov esi, eax
mov dword [esp + 0x98], 0
call sub.KERNEL32.DLL_GetVersion
mov ecx, 0x12010
test eax, eax
jns 0x4114c9
call sub.KERNEL32.DLL_GetCurrentThreadId
lea ecx, [esp + 0x98]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], 0x4115f4
call sub.USER32.DLL_EnumThreadWindows
sub esp, 0xc
mov ecx, 0x12010
cmp dword [esp + 0x98], 0
jne 0x4114c9
mov ecx, 0x11010
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], 0
call sub.USER32.DLL_MessageBoxA
sub esp, 0x10
jmp 0x4115b5
test ecx, ecx
je 0x411500
cmp ecx, 0xffffffff
je 0x4115b5
mov dword [esp], edi
call ecx
mov eax, dword [0x41bc64]
test eax, eax
je 0x4115b5
cmp eax, 0xffffffff
je 0x4115b5
cmp byte [eax], 0
je 0x4115b5
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.004112c0
jmp 0x4115b5
mov dword [esp], 0xfffffff4
call sub.KERNEL32.DLL_GetStdHandle
sub esp, 4
mov esi, eax
lea ebx, [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x4178fc
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [esp], edi
call fcn.0040ac30
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0x10], 0
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x4178fc
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
add esp, 0x9c
pop esi
pop edi
pop ebx
ret
Function at 0x412440
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x41fc94]
test eax, eax
je 0x412487
mov ecx, dword [eax]
xor edi, edi
test ecx, ecx
je 0x412512
add eax, 4
xor edi, edi
nop word cs:[eax + eax]
cmp byte [ecx], 1
sbb ecx, ecx
lea edi, [edi + ecx + 1]
mov ecx, dword [eax]
add eax, 4
test ecx, ecx
jne 0x412470
jmp 0x412512
mov esi, dword [0x41fcd0]
test esi, esi
jne 0x4124b4
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov esi, eax
mov dword [0x41fcd0], esi
test esi, esi
jne 0x4124b4
mov dword [esp], str.GetEnvironmentStrings_failed
call fcn.004115d4
mov esi, dword [0x41fcd0]
mov dword [esp], esi
call fcn.0040ac30
xor ebx, ebx
mov ebp, 1
xor edi, edi
test eax, eax
je 0x4124e8
mov ebp, esi
nop dword [eax + eax]
lea ebp, [ebp + eax + 1]
mov dword [esp], ebp
lea ebx, [eax + ebx + 1]
inc edi
call fcn.0040ac30
test eax, eax
jne 0x4124d0
inc ebx
mov ebp, ebx
mov dword [esp], ebp
call fcn.004083d8
mov ecx, eax
mov dword [0x41fc90], ecx
xor eax, eax
test ecx, ecx
je 0x4125bd
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], ecx
call fcn.0040a950
lea eax, [edi + 4]
mov dword [0x41fc98], eax
add edi, 5
mov dword [esp], edi
mov dword [esp + 4], 4
call fcn.004083c0
mov esi, eax
xor eax, eax
test esi, esi
je 0x4125bd
mov edi, dword [0x41fc94]
test edi, edi
je 0x41256f
mov edx, dword [edi]
test edx, edx
je 0x4125aa
lea eax, [edi + 4]
xor ecx, ecx
nop
cmp byte [edx], 0
jne 0x412560
dec ecx
jmp 0x412563
mov dword [esi + ecx*4], edx
inc ecx
mov edx, dword [eax]
add eax, 4
test edx, edx
jne 0x412550
jmp 0x4125a6
mov ebx, dword [0x41fc90]
mov dword [esp], ebx
call fcn.0040ac30
test eax, eax
je 0x4125b2
mov ebp, esi
nop word cs:[eax + eax]
mov dword [ebp], ebx
lea ebx, [eax + ebx + 1]
mov dword [esp], ebx
add ebp, 4
call fcn.0040ac30
test eax, eax
jne 0x412590
test edi, edi
je 0x4125b2
mov dword [esp], edi
call fcn.004083e8
mov dword [0x41fc94], esi
mov eax, 1
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2cd65b6b
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6cb82da4
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x404440
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 0x404520
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x404520
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40448a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x404491
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x404470
jmp 0x404493
mov esi, 0x1505
jmp 0x404493
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 0x404520
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x4044c4
inc edi
dec ebx
je 0x40451e
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40451e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x4044c0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040cb80
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x4044c0
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040cba0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x4044c0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x404520
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404530
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 0x404631
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404631
push ebx
call fcn.0040cb80
add esp, 4
test eax, eax
je 0x40458a
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 0x404591
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x404570
jmp 0x404593
mov esi, 0x1505
jmp 0x404593
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 0x404631
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x4045c4
inc ebp
dec ebx
je 0x40462f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40462f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4045c0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cb80
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4045c0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cba0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4045c0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40462f
cmp dword [eax + 4], 2
mov edi, 0
jne 0x404631
mov edi, dword [eax + 8]
jmp 0x404631
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404660
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 0x4046cb
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4046cb
push esi
call fcn.0040cb80
add esp, 4
test eax, eax
je 0x4046aa
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x4046b1
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x404690
jmp 0x4046b3
mov ebp, 0x1505
jmp 0x4046b3
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 0x4046d7
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 0x4046f4
inc ebx
dec edi
je 0x4046cb
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x4046cb
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x4046f0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cb80
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x4046f0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.0040cba0
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x4046f0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x4046cb
cmp dword [eax + 4], 3
jne 0x4046cb
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x4046cb

Function at 0x404790
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 0x404891
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404891
push ebx
call fcn.0040cb80
add esp, 4
test eax, eax
je 0x4047ea
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 0x4047f1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4047d0
jmp 0x4047f3
mov esi, 0x1505
jmp 0x4047f3
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 0x404891
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404824
inc ebp
dec ebx
je 0x40488f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40488f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404820
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cb80
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404820
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cba0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404820
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40488f
cmp dword [eax + 4], 5
mov edi, 0
jne 0x404891
mov edi, dword [eax + 8]
jmp 0x404891
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4048c0
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 0x4049c4
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4049c4
push ebx
call fcn.0040cb80
add esp, 4
test eax, eax
je 0x40491a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x404921
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x404900
jmp 0x404923
mov esi, 0x1505
jmp 0x404923
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 0x4049c4
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404954
inc ebp
dec ebx
je 0x4049bf
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4049bf
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404950
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cb80
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404950
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cba0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404950
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4049bf
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x4049c4
mov edi, dword [eax + 8]
jmp 0x4049c4
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4049d0
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.0040cbf0
add esp, 8
test eax, eax
je 0x404a34
mov esi, eax
jmp 0x404a14
mov ebp, esi
inc ebp
push 0x2e
push ebp
call fcn.0040cbf0
add esp, 8
mov esi, eax
test eax, eax
je 0x404a34
mov eax, esi
sub eax, ebp
push eax
push ebp
push edi
call fcn.00404440
add esp, 0xc
xor edi, edi
test eax, eax
je 0x404a00
cmp dword [eax + 4], 4
jne 0x404a00
mov edi, dword [eax + 8]
jmp 0x404a00
xor eax, eax
test edi, edi
je 0x404a9b
test ebp, ebp
je 0x404a9b
push ebp
call fcn.0040cb80
add esp, 4
test eax, eax
je 0x404a7b
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 0x404a82
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebx
mov ecx, esi
cmp eax, ebx
jne 0x404a60
jmp 0x404a84
mov esi, 0x1505
jmp 0x404a84
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 0x404aa3
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 0x404ac4
inc ebx
dec ecx
je 0x404a99
mov eax, ebx
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x404a99
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + edi*4], esi
jne 0x404ac0
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.0040cb80
mov ecx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x404ac0
push dword [esp + 4]
push dword [esp + 0x10]
push ebp
call fcn.0040cba0
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x404ac0
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x404a9b