joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068d8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068fc
xor eax, eax
test eax, eax
je 0x40690f
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40690f
xor ecx, ecx
jmp 0x406912
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a35
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a5dec], 0
push esi
jne 0x406a6c
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 0x406a46
mov dword [ecx*4 + 0x7a5de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a41
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a9d
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 + 0x7a5de8]
xor eax, esi
inc ecx
dec edx
jne 0x406a7f
pop edi
not eax
pop esi
ret 0xc

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x87b900
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x88000]
push edi
jmp 0x87b91a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x87b921
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x87b910
mov eax, 1
add ebx, ebx
jne 0x87b933
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x87b944
jne 0x87b963
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x87b963
dec eax
add ebx, ebx
jne 0x87b950
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x87b928
add ebx, ebx
jne 0x87b95f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x87b9b5
xor ecx, ecx
sub eax, 3
jb 0x87b97b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x87b9ea
sar eax, 1
mov ebp, eax
jmp 0x87b986
add ebx, ebx
jne 0x87b986
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x87b954
inc ecx
add ebx, ebx
jne 0x87b994
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x87b954
add ebx, ebx
jne 0x87b9a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x87b996
jne 0x87b9b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x87b996
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x87b9d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x87b9c6
jmp 0x87b916
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x87b9d4
add edi, ecx
jmp 0x87b916
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x87b9f2
cmp byte [edi], 0x11
jne 0x87b9f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x87b9f7
lea edi, [esi + 0x420000]
mov eax, dword [edi]
or eax, eax
je 0x87ba6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x48d168]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x48d2e4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x87ba24
mov ecx, edi
jns 0x87ba53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x48d2e8]
or eax, eax
je 0x87ba69
mov dword [ebx], eax
add ebx, 4
jmp 0x87ba41
call dword [esi + 0x48d2f8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x87baa0
cmp al, 0xef
ja 0x87ba93
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x87ba75
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x87ba82
mov ebp, dword [esi + 0x48d2ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x87bad4
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x404330
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 0x404410
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x404410
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40437a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x404381
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x404360
jmp 0x404383
mov esi, 0x1505
jmp 0x404383
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 0x404410
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x4043b4
inc edi
dec ebx
je 0x40440e
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40440e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x4043b0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040ca10
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x4043b0
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040ca40
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x4043b0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x404410
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404420
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 0x404521
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404521
push ebx
call fcn.0040ca10
add esp, 4
test eax, eax
je 0x40447a
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 0x404481
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x404460
jmp 0x404483
mov esi, 0x1505
jmp 0x404483
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 0x404521
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x4044b4
inc ebp
dec ebx
je 0x40451f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40451f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4044b0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040ca10
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4044b0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040ca40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4044b0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40451f
cmp dword [eax + 4], 2
mov edi, 0
jne 0x404521
mov edi, dword [eax + 8]
jmp 0x404521
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404550
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 0x4045bb
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4045bb
push esi
call fcn.0040ca10
add esp, 4
test eax, eax
je 0x40459a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x4045a1
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x404580
jmp 0x4045a3
mov ebp, 0x1505
jmp 0x4045a3
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 0x4045c7
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 0x4045e4
inc ebx
dec edi
je 0x4045bb
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x4045bb
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x4045e0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040ca10
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x4045e0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.0040ca40
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x4045e0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x4045bb
cmp dword [eax + 4], 3
jne 0x4045bb
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x4045bb

Function at 0x404680
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 0x404781
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404781
push ebx
call fcn.0040ca10
add esp, 4
test eax, eax
je 0x4046da
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 0x4046e1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4046c0
jmp 0x4046e3
mov esi, 0x1505
jmp 0x4046e3
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 0x404781
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404714
inc ebp
dec ebx
je 0x40477f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40477f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404710
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040ca10
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404710
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040ca40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404710
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40477f
cmp dword [eax + 4], 5
mov edi, 0
jne 0x404781
mov edi, dword [eax + 8]
jmp 0x404781
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, 0x10
mov edi, 0xffffffff
cmp dword [esp + 0x24], 0
je 0x4048b4
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4048b4
push ebx
call fcn.0040ca10
add esp, 4
test eax, eax
je 0x40480a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x404811
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4047f0
jmp 0x404813
mov esi, 0x1505
jmp 0x404813
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 0x4048b4
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404844
inc ebp
dec ebx
je 0x4048af
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4048af
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404840
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040ca10
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404840
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040ca40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404840
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4048af
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x4048b4
mov edi, dword [eax + 8]
jmp 0x4048b4
mov edi, 0xffffffff
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, 0x18
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
push 0x2e
push ebp
call fcn.0040ca90
add esp, 8
test eax, eax
je 0x404924
mov esi, eax
jmp 0x404904
mov ebp, esi
inc ebp
push 0x2e
push ebp
call fcn.0040ca90
add esp, 8
mov esi, eax
test eax, eax
je 0x404924
mov eax, esi
sub eax, ebp
push eax
push ebp
push edi
call fcn.00404330
add esp, 0xc
xor edi, edi
test eax, eax
je 0x4048f0
cmp dword [eax + 4], 4
jne 0x4048f0
mov edi, dword [eax + 8]
jmp 0x4048f0
xor eax, eax
test edi, edi
je 0x40498b
test ebp, ebp
je 0x40498b
push ebp
call fcn.0040ca10
add esp, 4
test eax, eax
je 0x40496b
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 0x404972
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebx
mov ecx, esi
cmp eax, ebx
jne 0x404950
jmp 0x404974
mov esi, 0x1505
jmp 0x404974
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 0x404993
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 0x4049b4
inc ebx
dec ecx
je 0x404989
mov eax, ebx
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x404989
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + edi*4], esi
jne 0x4049b0
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.0040ca10
mov ecx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x4049b0
push dword [esp + 4]
push dword [esp + 0x10]
push ebp
call fcn.0040ca40
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x4049b0
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x40498b
Function at 0x404ab0
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 0x404b1d
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404b1d
push esi
call fcn.0040ca10
add esp, 4
test eax, eax
je 0x404afa
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x404b01
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x404ae0
jmp 0x404b03
mov ebx, 0x1505
jmp 0x404b03
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 0x404b25
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 0x404b34
inc ebp
dec edi
je 0x404b1b
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x404b1b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x404b30
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040ca10
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404b30
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040ca40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404b30
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x404b1d
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x404b1d
Function at 0x404e40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
xor eax, eax
cmp dword [esp + 0x1c], 0
je 0x40506f
mov edi, dword [esp + 0x20]
test edi, edi
jle 0x40501a
mov edx, dword [esp + 0x1c]
lea ebp, [edx + edi]
mov dword [esp], ebp
jmp 0x404e99
cmp dword [esp + 4], 0xc0
jne 0x40506f
and ebx, 0x1ff800
cmp ebx, 0xd800
mov ebp, dword [esp]
je 0x40506f
add edx, esi
cmp edx, ebp
jae 0x40501a
movzx ebx, byte [edx]
cmp ebx, 0xf4
ja 0x40506f
mov ecx, ebx
and cl, 0xfe
cmp cl, 0xc0
je 0x40506f
mov ecx, ebx
and ecx, 0xffffffc0
cmp ecx, 0x80
je 0x40506f
mov esi, 1
test bl, bl
jns 0x404e8f
mov ebp, ebx
and ebp, 0xffffffe0
cmp ebp, 0xc0
mov dword [esp + 4], ebp
jne 0x404f03
movzx ebp, byte [edx + 1]
mov ecx, ebp
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x40506f
and ebx, 0x1f
shl ebx, 6
mov esi, 2
jmp 0x404f4d
mov ecx, ebx
and ecx, 0xfffffff0
cmp ecx, 0xe0
jne 0x404f54
movzx esi, byte [edx + 1]
mov ecx, esi
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x40506f
movzx ebp, byte [edx + 2]
mov ecx, ebp
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x40506f
and ebx, 0xf
shl ebx, 0xc
and esi, 0x3f
shl esi, 6
or ebx, esi
mov esi, 3
xor ecx, ecx
jmp 0x404fdd
mov ecx, ebx
not ecx
or ecx, 0xf8
add ecx, ebx
cmp ecx, 0xef
jne 0x40506f
movzx ecx, byte [edx + 1]
mov esi, ecx
and esi, 0xffffffc0
cmp esi, 0x80
jne 0x40506f
movzx eax, byte [edx + 2]
mov edi, eax
and edi, 0xffffffc0
cmp edi, 0x80
jne 0x40506d
movzx ebp, byte [edx + 3]
mov esi, ebp
xor esi, 0xffffff3f
mov edi, ebp
or edi, 0xc0
and edi, esi
cmp edi, 0x80
jne 0x40506d
and ebx, 7
shl ebx, 0xc
and ecx, 0x3f
shl ecx, 6
or ecx, ebx
and eax, 0x3f
or eax, ecx
shl eax, 6
mov cl, 1
mov esi, 4
mov ebx, eax
xor eax, eax
mov edi, dword [esp + 0x20]
and ebp, 0x3f
or ebp, ebx
cmp ebp, 0x80
jb 0x40506f
cmp ebp, 0x7ff
jbe 0x404e6c
cmp ebp, 0xffff
ja 0x40500c
test cl, cl
je 0x404e7a
jmp 0x40506f
cmp ebp, 0x10ffff
jbe 0x404e7a
jmp 0x40506f
lea eax, [edi + 1]
push eax
call dword [0x44f008]
add esp, 4
test eax, eax
je 0x40506d
mov esi, eax
mov byte [eax + edi], 0
push edi
push dword [esp + 0x20]
push eax
call fcn.0040c8e0
add esp, 0xc
push 0x10
call dword [0x44f008]
add esp, 4
test eax, eax
je 0x405063
mov dword [eax], 0
mov dword [eax + 4], 2
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
jmp 0x40506f
push esi
call dword [0x44f004]
add esp, 4
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405080
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 0x405192
mov esi, dword [esp + 0x28]
test esi, esi
je 0x405192
cmp dword [esp + 0x2c], 0
je 0x405192
push esi
call fcn.0040ca10
add esp, 4
test eax, eax
je 0x4050ea
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 0x4050f1
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x4050d0
jmp 0x4050f3
mov ebx, 0x1505
jmp 0x4050f3
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 0x40519a
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x405157
call fcn.00405d90
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x405192
push ecx
call fcn.0040ca10
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 0x40520d
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 0x4051b8
inc edi
dec esi
je 0x40510c
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x405111
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x4051b0
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.0040ca10
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4051b0
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.0040ca40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4051b0
mov eax, 0xffffffff
jmp 0x405192
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x405228
inc edi
dec esi
je 0x405152
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x405157
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x405220
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.0040ca10
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x405220
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.0040ca40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x405220
jmp 0x405157