joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ef010
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x34]
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 0x10], eax
cmp byte [esi + 8], 0
je 0x4ef1d8
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4ef05e
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x14], eax
mov cl, 7
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.004ee988
jmp 0x4ef1d8
push 0xf01ff
mov eax, dword [esi + 4]
call fcn.00405b6c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4ef097
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x14], eax
mov cl, 8
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.004ee988
jmp 0x4ef1d8
xor eax, eax
push ebp
push 0x4ef1d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4f56f0]
mov eax, dword [eax]
call fcn.00476ef4
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x4ef0c9
call fcn.00405100
jmp 0x4ef1d8
mov eax, dword [0x4f56f0]
mov eax, dword [eax]
call fcn.00476ef4
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x18], eax
jmp 0x4ef178
mov eax, dword [ebp - 0x10]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.004eefc8
test al, al
jne 0x4ef11e
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
sub eax, 0x420
je 0x4ef11e
mov cl, 9
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.004ee988
call fcn.00405100
jmp 0x4ef1d8
mov eax, dword [0x4f56f0]
mov eax, dword [eax]
call fcn.00476ef4
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceStatus
mov eax, dword [0x4f56f0]
mov eax, dword [eax]
call fcn.00476ef4
xor ebx, ebx
jmp 0x4ef172
push 0x64
call sub.kernel32.dll_Sleep_1
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceStatus
mov eax, dword [0x4f56f0]
mov eax, dword [eax]
call fcn.00476ef4
inc ebx
mov eax, dword [edi + 0x18]
mov ecx, 0x64
xor edx, edx
div ecx
cmp ebx, eax
ja 0x4ef178
cmp dword [edi + 4], 4
jne 0x4ef144
cmp dword [edi + 4], 1
jne 0x4ef18f
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x18]
cmp eax, dword [esi + 0xc]
jb 0x4ef0e2
cmp dword [edi + 4], 4
jne 0x4ef199
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ef1d8
mov eax, dword [0x4f56f0]
mov eax, dword [eax]
call fcn.00476ef4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [0x4f56f0]
mov eax, dword [eax]
call fcn.00476ef4
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ef1e4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
xor ebx, ebx
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4ef240
mov eax, dword [ebp - 0x84]
sub eax, 1
jb 0x4ef21c
je 0x4ef220
dec eax
je 0x4ef224
jmp 0x4ef240
xor ebx, ebx
jmp 0x4ef240
xor ebx, ebx
jmp 0x4ef240
cmp dword [ebp - 0x90], 5
jae 0x4ef231
mov bl, 1
jmp 0x4ef240
cmp dword [ebp - 0x8c], 1
jae 0x4ef23e
mov bl, 1
jmp 0x4ef240
mov bl, 1
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404500
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 0x4045e0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4045e0
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40454a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x404551
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x404530
jmp 0x404553
mov esi, 0x1505
jmp 0x404553
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 0x4045e0
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x404584
inc edi
dec ebx
je 0x4045de
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x4045de
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x404580
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040cf80
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x404580
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040cfa0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x404580
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x4045e0
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4045f0
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 0x4046f1
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4046f1
push ebx
call fcn.0040cf80
add esp, 4
test eax, eax
je 0x40464a
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 0x404651
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x404630
jmp 0x404653
mov esi, 0x1505
jmp 0x404653
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 0x4046f1
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404684
inc ebp
dec ebx
je 0x4046ef
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4046ef
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404680
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cf80
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404680
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cfa0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404680
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4046ef
cmp dword [eax + 4], 2
mov edi, 0
jne 0x4046f1
mov edi, dword [eax + 8]
jmp 0x4046f1
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404720
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 0x40478b
mov esi, dword [esp + 0x30]
test esi, esi
je 0x40478b
push esi
call fcn.0040cf80
add esp, 4
test eax, eax
je 0x40476a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x404771
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x404750
jmp 0x404773
mov ebp, 0x1505
jmp 0x404773
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 0x404797
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 0x4047b4
inc ebx
dec edi
je 0x40478b
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x40478b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x4047b0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cf80
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x4047b0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.0040cfa0
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x4047b0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x40478b
cmp dword [eax + 4], 3
jne 0x40478b
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x40478b

Function at 0x404850
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 0x404951
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404951
push ebx
call fcn.0040cf80
add esp, 4
test eax, eax
je 0x4048aa
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 0x4048b1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x404890
jmp 0x4048b3
mov esi, 0x1505
jmp 0x4048b3
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 0x404951
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x4048e4
inc ebp
dec ebx
je 0x40494f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40494f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4048e0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cf80
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4048e0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cfa0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4048e0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40494f
cmp dword [eax + 4], 5
mov edi, 0
jne 0x404951
mov edi, dword [eax + 8]
jmp 0x404951
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404980
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 0x404a84
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404a84
push ebx
call fcn.0040cf80
add esp, 4
test eax, eax
je 0x4049da
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x4049e1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4049c0
jmp 0x4049e3
mov esi, 0x1505
jmp 0x4049e3
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 0x404a84
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404a14
inc ebp
dec ebx
je 0x404a7f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x404a7f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404a10
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cf80
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404a10
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cfa0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404a10
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x404a7f
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x404a84
mov edi, dword [eax + 8]
jmp 0x404a84
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404a90
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.0040cff0
add esp, 8
test eax, eax
je 0x404af4
mov esi, eax
jmp 0x404ad4
mov ebp, esi
inc ebp
push 0x2e
push ebp
call fcn.0040cff0
add esp, 8
mov esi, eax
test eax, eax
je 0x404af4
mov eax, esi
sub eax, ebp
push eax
push ebp
push edi
call fcn.00404500
add esp, 0xc
xor edi, edi
test eax, eax
je 0x404ac0
cmp dword [eax + 4], 4
jne 0x404ac0
mov edi, dword [eax + 8]
jmp 0x404ac0
xor eax, eax
test edi, edi
je 0x404b5b
test ebp, ebp
je 0x404b5b
push ebp
call fcn.0040cf80
add esp, 4
test eax, eax
je 0x404b3b
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 0x404b42
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebx
mov ecx, esi
cmp eax, ebx
jne 0x404b20
jmp 0x404b44
mov esi, 0x1505
jmp 0x404b44
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 0x404b63
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 0x404b84
inc ebx
dec ecx
je 0x404b59
mov eax, ebx
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x404b59
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + edi*4], esi
jne 0x404b80
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.0040cf80
mov ecx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x404b80
push dword [esp + 4]
push dword [esp + 0x10]
push ebp
call fcn.0040cfa0
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x404b80
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x404b5b
Function at 0x404c80
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 0x404ced
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404ced
push esi
call fcn.0040cf80
add esp, 4
test eax, eax
je 0x404cca
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x404cd1
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x404cb0
jmp 0x404cd3
mov ebx, 0x1505
jmp 0x404cd3
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 0x404cf5
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 0x404d04
inc ebp
dec edi
je 0x404ceb
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x404ceb
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x404d00
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cf80
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404d00
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cfa0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404d00
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x404ced
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x404ced
Function at 0x405010
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
xor eax, eax
cmp dword [esp + 0x18], 0
je 0x40526f
mov ebp, dword [esp + 0x1c]
test ebp, ebp
jle 0x40521a
mov edx, dword [esp + 0x18]
lea ecx, [edx + ebp]
mov dword [esp], ecx
jmp 0x405050
mov ebx, 1
add edx, ebx
cmp edx, dword [esp]
jae 0x40521a
movzx ebx, byte [edx]
cmp ebx, 0xf4
ja 0x40526f
mov ecx, ebx
and cl, 0xfe
cmp cl, 0xc0
je 0x40526f
mov ecx, ebx
and ecx, 0xffffffc0
cmp ecx, 0x80
je 0x40526f
mov ecx, ebx
or ecx, 0x80
mov esi, ebx
xor esi, 0xffffff7f
test ecx, esi
je 0x405040
mov esi, ebx
and esi, 0xffffffe0
cmp esi, 0xc0
jne 0x4050e0
movzx edi, byte [edx + 1]
mov ecx, edi
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x40526f
and ebx, 0x1f
shl ebx, 6
and edi, 0x3f
or edi, ebx
mov ebx, 2
xor ecx, ecx
cmp edi, 0x80
jae 0x4051cf
jmp 0x40526f
mov ecx, ebx
and ecx, 0xfffffff0
cmp ecx, 0xe0
jne 0x405148
movzx ecx, byte [edx + 1]
mov edi, ecx
and edi, 0xffffffc0
cmp edi, 0x80
jne 0x40526f
mov eax, ebp
movzx edi, byte [edx + 2]
mov ebp, edi
and ebp, 0xffffffc0
cmp ebp, 0x80
jne 0x40526d
and ebx, 0xf
shl ebx, 0xc
and ecx, 0x3f
shl ecx, 6
or ecx, ebx
add edi, ecx
add edi, 0xffffff80
mov ebx, 3
xor ecx, ecx
mov ebp, eax
xor eax, eax
cmp edi, 0x80
jae 0x4051cf
jmp 0x40526f
mov ecx, ebx
and ecx, 0xfffffff8
cmp ecx, 0xf0
jne 0x40526f
movzx edi, byte [edx + 1]
mov ecx, edi
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x40526f
movzx ecx, byte [edx + 2]
mov ebp, ecx
and ebp, 0xffffffc0
cmp ebp, 0x80
jne 0x40526f
movzx eax, byte [edx + 3]
mov ebp, eax
and ebp, 0xffffffc0
cmp ebp, 0x80
jne 0x40526d
and ecx, 0x3f
shl ebx, 0xc
and edi, 0x3f
shl edi, 6
or edi, ebx
or edi, ecx
shl edi, 6
and eax, 0x3f
add edi, eax
add edi, 0xfc400000
mov cl, 1
mov ebx, 4
xor eax, eax
mov ebp, dword [esp + 0x1c]
cmp edi, 0x80
jb 0x40526f
cmp edi, 0x7ff
ja 0x4051f0
cmp esi, 0xc0
je 0x405206
jmp 0x40526f
cmp edi, 0xffff
ja 0x4051fe
test cl, cl
je 0x405206
jmp 0x40526f
cmp edi, 0x10ffff
ja 0x40526f
and edi, 0x1ff800
cmp edi, 0xd800
jne 0x405045
jmp 0x40526f
lea eax, [ebp + 1]
push eax
call dword [0x449008]
add esp, 4
test eax, eax
je 0x40526d
mov esi, eax
mov byte [eax + ebp], 0
push ebp
push dword [esp + 0x1c]
push eax
call fcn.0040cea0
add esp, 0xc
push 0x10
call dword [0x449008]
add esp, 4
test eax, eax
je 0x405263
mov dword [eax], 0
mov dword [eax + 4], 2
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebp
jmp 0x40526f
push esi
call dword [0x449004]
add esp, 4
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405280
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, 0xffffffff
cmp dword [esp + 0x24], 0
je 0x405392
mov esi, dword [esp + 0x28]
test esi, esi
je 0x405392
cmp dword [esp + 0x2c], 0
je 0x405392
push esi
call fcn.0040cf80
add esp, 4
test eax, eax
je 0x4052ea
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x4052f1
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x4052d0
jmp 0x4052f3
mov ebx, 0x1505
jmp 0x4052f3
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x20]
lea edi, [esi - 1]
mov edx, esi
sub edx, 1
mov dword [esp + 8], edx
jae 0x40539a
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x405357
call fcn.00406000
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x405392
push ecx
call fcn.0040cf80
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x20]
lea edi, [esi - 1]
mov eax, esi
sub eax, 1
mov dword [esp + 8], eax
jae 0x40540d
mov ebp, 0xffffffff
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov esi, dword [esp + 0x28]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov dword [eax + ebp*4], edx
mov eax, dword [ecx + 0x10]
mov esi, dword [esp + 0x2c]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebp
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebx
inc dword [ecx + 0x18]
mov eax, dword [ecx]
mov dword [esi], eax
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x4053b8
inc edi
dec esi
je 0x40530c
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x405311
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x4053b0
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.0040cf80
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4053b0
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.0040cfa0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4053b0
mov eax, 0xffffffff
jmp 0x405392
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x405428
inc edi
dec esi
je 0x405352
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x405357
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x405420
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.0040cf80
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x405420
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.0040cfa0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x405420
jmp 0x405357
Function at 0x405d50
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, 0xffffffff
cmp dword [esp + 0x28], 0
je 0x405f3a
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x405f3a
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x405f3a
cmp dword [ecx], 0
jne 0x405f3a
push esi
call fcn.0040cf80
add esp, 4
test eax, eax
je 0x405dba
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
movzx edx, byte [esi + ebx]
test edx, edx
je 0x405dc1
mov edi, ecx
shl edi, 5
add edi, ecx
add edi, edx
inc ebx
mov ecx, edi
cmp eax, ebx
jne 0x405da0
jmp 0x405dc3
mov edi, 0x1505
jmp 0x405dc3
mov edi, ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x20]
lea ebx, [edx - 1]
mov esi, edx
sub esi, 1
mov dword [esp + 0xc], esi
jae 0x405e94
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x405e21
call fcn.00406000
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov esi, dword [esp + 0x2c]
jne 0x405f3a
push esi
call fcn.0040cf80
add esp, 4
mov edx, esi
lea esi, [esp + 0x10]
mov ecx, dword [esp + 0x28]
push esi
push edi
push eax
call fcn.00405f50
add esp, 0xc
mov ebp, eax
mov esi, dword [esp + 0x2c]
push esi
call fcn.0040cf80
add esp, 4
mov ebx, eax
inc eax
push eax
call dword [0x449008]
add esp, 4
test eax, eax
je 0x405f35
mov byte [eax + ebx], 0
push ebx
push esi
push eax
mov esi, eax
call fcn.0040cea0
add esp, 0xc
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], esi
mov eax, dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov dword [eax + ebp*4], ecx
mov eax, dword [edx + 0x10]
mov esi, dword [esp + 0x30]
mov dword [eax + ecx*4], esi
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], ebp
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], edi
inc dword [edx + 0x18]
mov eax, dword [edx]
mov dword [esi], eax
xor eax, eax
jmp 0x405f3a
mov dword [esp], eax
and ebx, edi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x405eb8
inc ebx
dec edx
je 0x405ddc
mov ebp, ebx
and ebp, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov esi, dword [eax + ebp*4]
cmp esi, 0xffffffff
je 0x405de1
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], edi
jne 0x405eb0
mov eax, dword [ecx + 0xc]
mov ebp, dword [eax + esi*4]
push ebp
mov dword [esp + 8], edx
call fcn.0040cf80
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [esp]
jne 0x405eb0
push dword [esp]
push ebp
push dword [esp + 0x34]
call fcn.0040cfa0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x405eb0
mov eax, dword [ecx + 0x10]
push dword [eax + esi*4]
call fcn.00404de0
mov edx, dword [esp + 0x2c]
add esp, 4
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x30]
mov dword [eax + esi*4], ecx
mov esi, ecx
jmp 0x405e89
mov eax, 0xffffffff
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret