joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4364d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0x10
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], 0x1060734
mov byte [esp + 8], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x43652e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 4]
add eax, 0xee1a2ac1
xor eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x3b
mov edx, dword [esp]
mov byte [esp + edx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x436500
mov eax, dword [esp + 4]
mov eax, dword fs:[eax]
xor edx, edx
test ecx, ecx
sete dl
jmp dword [edx*4 + 0x4416b0]
mov edx, dword [eax + 0xc]
add edx, 0xc
xor eax, eax
mov esi, dword [0x4416e8]
mov edi, dword [edx]
xor ebx, ebx
cmp edi, edx
setne bl
jmp dword [ebx*4 + 0x4416c8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
add esp, 0x10
pop esi
pop edi
pop ebx
ret
int3
inc ebx
add byte [edx + 0x1004365], dh
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [edi + 0x1004365], bh
add byte [eax], al
add byte [eax + 0x70004365], bh
inc ebx
add byte [edi + 0x65], bh
inc ebx
add byte [eax - 0x47ffbc9b], dl
inc ebx
add byte [eax - 0x5fffbc9b], ah
inc ebx
add byte [eax - 0x5dffbc9b], ah
inc ebx
add byte [eax + 0x31004365], ah
inc bx
add byte [edx + 0x69], al
inc ebx
add byte [ebp + 0x42004366], bl
inc bx
add byte [edx + 0x69], al
inc ebx
add byte [ecx], al
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [ebp - 0x41ffbc9a], bl
inc bx
add byte [edx + 0x69], al
inc ebx
add byte [ecx + ebp*2], ah
inc ebx
add byte [eax], al
inc ebx
Function at 0x4b85e9
Capabilities:
Delete registry value

Disassembly:
ret

Function at 0x4b8900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6880b6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x4b89ac
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x4b89ac
call fcn.004b73a0
mov edi, eax
jmp 0x4b8acb
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4b89cf
call fcn.004b73a0
jmp 0x4b8abe
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4b89ed
call fcn.004b73a0
jmp 0x4b8abe
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x4b8a0e
mov edi, 0x8007000e
jmp 0x4b8ac0
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x4b8b04
jb 0x4b8a2c
cmp eax, 0xffffffff
ja 0x4b8b04
cmp eax, 0x400
jbe 0x4b8a41
push eax
lea ecx, [ebp - 0x418]
call fcn.004b7370
jmp 0x4b8a67
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x4b8a67
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x4b8a7e
mov edi, 0x8007000e
jmp 0x4b8ac0
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4b8a9e
call fcn.004b73a0
jmp 0x4b8abe
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004b87a0
mov edi, eax
test esi, esi
je 0x4b8acb
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4b8ae4
lea ecx, [ebp - 0x418]
call fcn.004b7350
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00611399
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.0046abb0
int3
Function at 0x5ac83a
Capabilities:
Encode data using xor

Disassembly:
ret

Function at 0x5ad560
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 8
push ebx
push esi
xor ebx, ebx
push edi
cmp edx, 0xd2
jg 0x5ae2b3
je 0x5ae294
lea eax, [edx - 3]
cmp eax, 0xcc
ja case.0x5aff82.40296
movzx eax, byte [eax + 0x5b01dc]
jmp dword [eax*4 + 0x5b0090]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
jl 0x5aff29
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax + 0x4dc], ecx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
test ecx, ecx
js 0x5aff29
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax + 0x6c8], ecx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop edi
pop esi
cmp dword [eax], ebx
mov eax, dword [ebp + 8]
setne cl
mov byte [eax + 0x71c], cl
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop edi
pop esi
cmp dword [eax], ebx
mov eax, dword [ebp + 8]
setne cl
mov byte [eax + 0x71d], cl
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop edi
pop esi
cmp dword [eax], ebx
mov eax, dword [ebp + 8]
setne cl
mov byte [eax + 0x71a], cl
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop edi
pop esi
cmp dword [eax], ebx
mov eax, dword [ebp + 8]
setne cl
mov byte [eax + 0x715], cl
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
pop edi
mov esi, dword [eax]
test esi, esi
mov ecx, dword [edx + 0x784]
setne al
mov byte [edx + 0x70f], al
mov eax, ecx
and eax, 0xffffffef
or ecx, 0x10
test esi, esi
pop esi
cmove ecx, eax
mov eax, ebx
mov dword [edx + 0x784], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
setne al
mov byte [edx + 0x718], al
test ecx, ecx
je 0x5ad6a2
pop edi
pop esi
mov eax, ebx
mov dword [edx + 0x3f8], 5
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edx + 0x3f8], 5
jne case.0x5ad595.91
pop edi
pop esi
mov dword [edx + 0x3f8], ebx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop edi
pop esi
cmp dword [eax], ebx
mov eax, dword [ebp + 8]
setne cl
mov byte [eax + 0x710], cl
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
setne al
mov byte [edx + 0x719], al
test ecx, ecx
je 0x5ad709
mov eax, 4
mov byte [edx + 0x718], bl
pop edi
mov dword [edx + 0x3f8], eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov dword [edx + 0x3f8], eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop edi
pop esi
cmp dword [eax], ebx
mov eax, dword [ebp + 8]
setne cl
mov byte [eax + 0x705], cl
invalid
Function at 0x402640
Capabilities:
Hash data using djb2

Disassembly:
xor eax, eax
test ecx, ecx
je 0x402728
test edx, edx
je 0x402728
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [esp], ecx
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40268a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
movzx ebx, byte [edx + edi]
test ebx, ebx
je 0x402691
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, ebx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x402670
jmp 0x402693
mov esi, 0x1505
jmp 0x402693
mov esi, ecx
mov dword [esp + 4], edx
mov ecx, dword [esp]
mov ebp, dword [ecx + 0x20]
lea ebx, [ebp - 1]
mov edx, ebp
sub edx, 1
mov dword [esp + 0x10], edx
jb 0x402721
and ebx, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
jmp 0x4026c4
inc ebx
dec ebp
je 0x40271f
mov eax, ebx
and eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40271f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4026c0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.00409240
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x4026c0
push dword [esp + 0x28]
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.00409260
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x4026c0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x402721
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402730
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 0x402831
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x402831
push ebx
call fcn.00409240
add esp, 4
test eax, eax
je 0x40278a
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 0x402791
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x402770
jmp 0x402793
mov esi, 0x1505
jmp 0x402793
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 0x402831
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x4027c4
inc ebp
dec ebx
je 0x40282f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40282f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4027c0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409240
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4027c0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409260
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4027c0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40282f
cmp dword [eax + 4], 2
mov edi, 0
jne 0x402831
mov edi, dword [eax + 8]
jmp 0x402831
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402860
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 0x4028cb
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4028cb
push esi
call fcn.00409240
add esp, 4
test eax, eax
je 0x4028aa
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x4028b1
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x402890
jmp 0x4028b3
mov ebp, 0x1505
jmp 0x4028b3
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 0x4028d7
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 0x4028f4
inc ebx
dec edi
je 0x4028cb
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x4028cb
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x4028f0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409240
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x4028f0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.00409260
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x4028f0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x4028cb
cmp dword [eax + 4], 3
jne 0x4028cb
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x4028cb

Function at 0x402990
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 0x402a91
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x402a91
push ebx
call fcn.00409240
add esp, 4
test eax, eax
je 0x4029ea
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 0x4029f1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4029d0
jmp 0x4029f3
mov esi, 0x1505
jmp 0x4029f3
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 0x402a91
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x402a24
inc ebp
dec ebx
je 0x402a8f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x402a8f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402a20
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409240
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402a20
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409260
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402a20
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x402a8f
cmp dword [eax + 4], 5
mov edi, 0
jne 0x402a91
mov edi, dword [eax + 8]
jmp 0x402a91
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402ac0
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 0x402bc4
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x402bc4
push ebx
call fcn.00409240
add esp, 4
test eax, eax
je 0x402b1a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x402b21
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x402b00
jmp 0x402b23
mov esi, 0x1505
jmp 0x402b23
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 0x402bc4
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x402b54
inc ebp
dec ebx
je 0x402bbf
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x402bbf
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402b50
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409240
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402b50
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409260
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402b50
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x402bbf
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x402bc4
mov edi, dword [eax + 8]
jmp 0x402bc4
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402bd0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
push 0x2e
push edi
call fcn.004092b0
add esp, 8
test eax, eax
je 0x402c36
mov ebx, eax
jmp 0x402c14
mov edi, ebx
inc edi
push 0x2e
push edi
call fcn.004092b0
add esp, 8
mov ebx, eax
test eax, eax
je 0x402c36
mov eax, ebx
sub eax, edi
mov ecx, esi
mov edx, edi
push eax
call fcn.00402640
add esp, 4
xor esi, esi
test eax, eax
je 0x402c00
cmp dword [eax + 4], 4
jne 0x402c00
mov esi, dword [eax + 8]
jmp 0x402c00
xor eax, eax
test esi, esi
je 0x402c9a
test edi, edi
je 0x402c9a
push edi
call fcn.00409240
add esp, 4
test eax, eax
je 0x402c7a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [edi + ebp]
test edx, edx
je 0x402c81
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc ebp
mov ecx, ebx
cmp eax, ebp
jne 0x402c60
jmp 0x402c83
mov ebx, 0x1505
jmp 0x402c83
mov ebx, ecx
mov dword [esp + 4], eax
mov ecx, dword [esi + 0x20]
lea ebp, [ecx - 1]
mov eax, ecx
sub eax, 1
mov dword [esp + 0x14], eax
jae 0x402ca2
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
and ebp, ebx
mov dword [esp], esi
mov eax, dword [esi + 4]
mov dword [esp + 0x10], eax
jmp 0x402cb4
inc ebp
dec ecx
je 0x402c98
mov eax, ebp
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x402c98
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + esi*4], ebx
jne 0x402cb0
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 0xc], eax
push eax
mov dword [esp + 0xc], ecx
call fcn.00409240
mov ecx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402cb0
push dword [esp + 4]
push dword [esp + 0x10]
push edi
call fcn.00409260
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x402cb0
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + esi*4]
jmp 0x402c9a
Function at 0x402db0
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 0x402e1d
mov esi, dword [esp + 0x28]
test esi, esi
je 0x402e1d
push esi
call fcn.00409240
add esp, 4
test eax, eax
je 0x402dfa
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x402e01
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x402de0
jmp 0x402e03
mov ebx, 0x1505
jmp 0x402e03
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 0x402e25
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 0x402e34
inc ebp
dec edi
je 0x402e1b
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x402e1b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x402e30
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409240
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402e30
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409260
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402e30
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x402e1d
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x402e1d
Function at 0x403040
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0xffffffff
test ecx, ecx
je 0x40315c
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, edx
test edx, edx
je 0x403155
mov dword [esp], ecx
cmp dword [esp + 0x2c], 0
je 0x403155
push esi
call fcn.00409240
add esp, 4
test eax, eax
je 0x40309a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x4030a1
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x403080
jmp 0x4030a3
mov ebp, 0x1505
jmp 0x4030a3
mov ebp, ecx
mov dword [esp + 8], esi
mov ecx, dword [esp]
mov esi, dword [ecx + 0x20]
lea ebx, [esi - 1]
mov edx, esi
sub edx, 1
mov dword [esp + 0x10], edx
jae 0x40315d
mov edi, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x40310a
call fcn.00403250
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 8]
jne 0x403155
push ecx
call fcn.00409240
add esp, 4
mov dword [esp + 4], eax
mov ecx, dword [esp]
mov esi, dword [ecx + 0x20]
lea ebx, [esi - 1]
mov eax, esi
sub eax, 1
mov dword [esp + 0x10], eax
jae 0x4031cf
mov edi, 0xffffffff
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov esi, dword [esp + 8]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov dword [eax + edi*4], edx
mov eax, dword [ecx + 0x10]
mov ebx, dword [esp + 0x2c]
mov dword [eax + edx*4], ebx
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], edi
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebp
mov eax, dword [ecx]
mov esi, dword [ecx + 0x18]
mov edi, ecx
mov edx, esi
and edx, 1
xor esi, 1
lea ecx, [esi + edx*2]
mov dword [edi + 0x18], ecx
mov dword [ebx], eax
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], eax
and ebx, ebp
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
jmp 0x403178
inc ebx
dec esi
je 0x4030bf
mov edi, ebx
and edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x4030c4
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x403170
mov ecx, dword [ecx + 0xc]
mov edi, dword [ecx + eax*4]
push edi
call fcn.00409240
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x403170
push dword [esp + 4]
push edi
push dword [esp + 0x10]
call fcn.00409260
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x403170
mov eax, 0xffffffff
jmp 0x403155
and ebx, ebp
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
jmp 0x4031e8
inc ebx
dec esi
je 0x403105
mov edi, ebx
and edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x40310a
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x4031e0
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x14], eax
push eax
call fcn.00409240
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x4031e0
push dword [esp + 4]
push dword [esp + 0x18]
push dword [esp + 0x10]
call fcn.00409260
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x4031e0
jmp 0x40310a