joyce8/EMBER2024-capa huggingface dataset:
Function at 0x547d48
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, eax
push 0x80000000
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov esi, eax
test esi, esi
jne 0x547d70
xor ebx, ebx
xor eax, eax
mov dword [edi + 0xc], eax
jmp 0x547de3
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 3
push 0x3b
push esi
call sub.advapi32.dll_EnumServicesStatusW
mov eax, dword [ebp - 4]
mov dword [edi + 8], eax
lea edx, [edi + 4]
xchg edx, eax
call fcn.00404554
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 8]
push eax
mov eax, dword [edi + 4]
push eax
push 3
push 0x3b
push esi
call sub.advapi32.dll_EnumServicesStatusW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x547dd8
mov eax, dword [ebp - 8]
mov dword [edi + 0xc], eax
jmp 0x547ddd
xor eax, eax
mov dword [edi + 0xc], eax
push esi
call sub.advapi32.dll_CloseServiceHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x547e4c
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x547f1d
push dword fs:[eax]
mov dword fs:[eax], esp
push 3
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x547e18]
call fcn.00408b20
add esp, 4
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0xea60
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov edx, dword [ebp - 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 8], edx
mov edx, dword [ebp - 8]
mov dword [eax + 0xc], edx
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0xdbba0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 8]
mov dword [eax + 0x14], edx
lea eax, [ebp - 0x20]
mov edi, eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x708
mov eax, dword [ebp - 4]
call fcn.0040896c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
push 2
push ebx
call sub.advapi32.dll_ChangeServiceConfig2W
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x547f24
lea eax, [ebp - 4]
mov edx, dword [0x547e18]
call fcn.00408c44
ret
Function at 0x547f2c
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x5480cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
cmp byte [ebx + 0x19], 0
jne 0x5480a8
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov edi, eax
test edi, edi
je 0x5480a8
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.004048e0
push dword [ebp - 0x14]
push 0x5480ec
push dword [ebx + 0x10]
push 0x5480fc
lea eax, [ebp - 4]
mov edx, 4
call fcn.00407ad0
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x14]
call fcn.00407804
push eax
mov eax, dword [ebp - 4]
call fcn.00407804
push eax
push 1
push 2
push 0x110
push 0xf01ff
lea eax, [ebp - 0x18]
mov ecx, dword [ebx + 8]
mov edx, 0x548114
call fcn.00407a48
mov eax, dword [ebp - 0x18]
call fcn.00407804
push eax
mov eax, dword [ebx + 4]
call fcn.00407804
push eax
push edi
call sub.advapi32.dll_CreateServiceW
mov esi, eax
test esi, esi
setne byte [ebp - 5]
cmp dword [ebx + 0x14], 0
je 0x548085
mov dl, 1
mov eax, dword [0x43af70]
call fcn.004482e8
mov dword [ebp - 0x10], eax
mov dl, 1
mov eax, dword [0x5473ec]
call fcn.0045ac54
mov dword [ebp - 0xc], eax
mov ecx, 0x80000002
mov edx, 0x548134
mov eax, dword [ebp - 0xc]
call fcn.00547578
lea ecx, [ebp - 0x10]
mov edx, 0x5481a8
mov eax, dword [ebp - 0xc]
call fcn.0045b9e8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x1c], 0
jne 0x548075
mov edx, dword [ebx + 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x54]
test eax, eax
jge 0x548075
mov edx, dword [ebx + 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ecx, dword [ebp - 0x10]
mov edx, 0x5481a8
mov eax, dword [ebp - 0xc]
call fcn.0045b918
mov eax, dword [ebp - 0x10]
call fcn.00404f90
mov eax, dword [ebp - 0xc]
call fcn.00404f90
cmp byte [ebp - 5], 0
je 0x54809c
mov edx, dword [ebx + 0xc]
mov eax, esi
call fcn.00547dec
mov eax, esi
call fcn.00547e4c
push esi
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5480d2
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00406d1c
lea eax, [ebp - 4]
call fcn.00406cbc
ret

Function at 0x548818
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, edx
xor edi, edi
push 0x80000000
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov ebx, eax
test ebx, ebx
je 0x54886b
push 0x80000000
mov eax, esi
call fcn.00407804
push eax
push ebx
call sub.advapi32.dll_OpenServiceW
mov esi, eax
test esi, esi
je 0x548865
lea eax, [ebp - 0x1c]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
mov edi, dword [ebp - 0x18]
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404530
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 0x404610
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x404610
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40457a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x404581
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x404560
jmp 0x404583
mov esi, 0x1505
jmp 0x404583
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 0x404610
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x4045b4
inc edi
dec ebx
je 0x40460e
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40460e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x4045b0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040cce0
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x4045b0
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040cd00
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x4045b0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x404610
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404620
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 0x404721
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404721
push ebx
call fcn.0040cce0
add esp, 4
test eax, eax
je 0x40467a
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 0x404681
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x404660
jmp 0x404683
mov esi, 0x1505
jmp 0x404683
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 0x404721
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x4046b4
inc ebp
dec ebx
je 0x40471f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40471f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4046b0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cce0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4046b0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cd00
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4046b0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40471f
cmp dword [eax + 4], 2
mov edi, 0
jne 0x404721
mov edi, dword [eax + 8]
jmp 0x404721
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404750
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 0x4047bb
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4047bb
push esi
call fcn.0040cce0
add esp, 4
test eax, eax
je 0x40479a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x4047a1
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x404780
jmp 0x4047a3
mov ebp, 0x1505
jmp 0x4047a3
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 0x4047c7
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 0x4047e4
inc ebx
dec edi
je 0x4047bb
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x4047bb
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x4047e0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cce0
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x4047e0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.0040cd00
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x4047e0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x4047bb
cmp dword [eax + 4], 3
jne 0x4047bb
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x4047bb

Function at 0x404880
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 0x404981
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404981
push ebx
call fcn.0040cce0
add esp, 4
test eax, eax
je 0x4048da
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 0x4048e1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4048c0
jmp 0x4048e3
mov esi, 0x1505
jmp 0x4048e3
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 0x404981
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404914
inc ebp
dec ebx
je 0x40497f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40497f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404910
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cce0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404910
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cd00
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404910
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40497f
cmp dword [eax + 4], 5
mov edi, 0
jne 0x404981
mov edi, dword [eax + 8]
jmp 0x404981
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4049b0
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 0x404ab4
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404ab4
push ebx
call fcn.0040cce0
add esp, 4
test eax, eax
je 0x404a0a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x404a11
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4049f0
jmp 0x404a13
mov esi, 0x1505
jmp 0x404a13
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 0x404ab4
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404a44
inc ebp
dec ebx
je 0x404aaf
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x404aaf
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404a40
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cce0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404a40
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cd00
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404a40
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x404aaf
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x404ab4
mov edi, dword [eax + 8]
jmp 0x404ab4
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404ac0
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.0040cd50
add esp, 8
test eax, eax
je 0x404b24
mov esi, eax
jmp 0x404b04
mov ebp, esi
inc ebp
push 0x2e
push ebp
call fcn.0040cd50
add esp, 8
mov esi, eax
test eax, eax
je 0x404b24
mov eax, esi
sub eax, ebp
push eax
push ebp
push edi
call fcn.00404530
add esp, 0xc
xor edi, edi
test eax, eax
je 0x404af0
cmp dword [eax + 4], 4
jne 0x404af0
mov edi, dword [eax + 8]
jmp 0x404af0
xor eax, eax
test edi, edi
je 0x404b8b
test ebp, ebp
je 0x404b8b
push ebp
call fcn.0040cce0
add esp, 4
test eax, eax
je 0x404b6b
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 0x404b72
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebx
mov ecx, esi
cmp eax, ebx
jne 0x404b50
jmp 0x404b74
mov esi, 0x1505
jmp 0x404b74
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 0x404b93
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 0x404bb4
inc ebx
dec ecx
je 0x404b89
mov eax, ebx
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x404b89
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + edi*4], esi
jne 0x404bb0
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.0040cce0
mov ecx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x404bb0
push dword [esp + 4]
push dword [esp + 0x10]
push ebp
call fcn.0040cd00
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x404bb0
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x404b8b
Function at 0x404cb0
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 0x404d1d
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404d1d
push esi
call fcn.0040cce0
add esp, 4
test eax, eax
je 0x404cfa
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x404d01
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x404ce0
jmp 0x404d03
mov ebx, 0x1505
jmp 0x404d03
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 0x404d25
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 0x404d34
inc ebp
dec edi
je 0x404d1b
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x404d1b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x404d30
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cce0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404d30
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cd00
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404d30
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x404d1d
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x404d1d
Function at 0x405040
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 0x405257
cmp dword [esp + 0x1c], 0
jle 0x4051fe
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [edx + eax]
mov dword [esp], ecx
jmp 0x405098
cmp esi, 0xc0
jne 0x405255
and ebx, 0x1ff800
cmp ebx, 0xd800
mov ecx, dword [esp]
je 0x405255
add edx, ebp
cmp edx, ecx
jae 0x4051fe
movzx ebx, byte [edx]
cmp ebx, 0xf4
ja 0x405255
mov eax, ebx
and al, 0xfe
cmp al, 0xc0
je 0x405255
mov eax, ebx
and eax, 0xffffffc0
cmp eax, 0x80
je 0x405255
mov ebp, 1
test bl, bl
jns 0x40508e
mov esi, ebx
and esi, 0xffffffe0
cmp esi, 0xc0
jne 0x4050fa
movzx edi, byte [edx + 1]
mov eax, edi
and eax, 0xffffffc0
cmp eax, 0x80
jne 0x405255
and ebx, 0x1f
shl ebx, 6
mov ebp, 2
jmp 0x405150
mov eax, ebx
and eax, 0xfffffff0
cmp eax, 0xe0
jne 0x405154
movzx eax, byte [edx + 1]
mov ecx, eax
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x405255
movzx edi, byte [edx + 2]
mov ecx, edi
or ecx, 0xc0
mov ebp, edi
xor ebp, 0xffffff3f
and ebp, ecx
cmp ebp, 0x80
jne 0x405255
and ebx, 0xf
shl ebx, 0xc
and eax, 0x3f
shl eax, 6
or ebx, eax
mov ebp, 3
xor ecx, ecx
jmp 0x4051c1
mov eax, ebx
and eax, 0xfffffff8
cmp eax, 0xf0
jne 0x405255
movzx ecx, byte [edx + 1]
mov eax, ecx
and eax, 0xffffffc0
cmp eax, 0x80
jne 0x405255
movzx eax, byte [edx + 2]
mov edi, eax
and edi, 0xffffffc0
cmp edi, 0x80
jne 0x405255
movzx edi, byte [edx + 3]
mov ebp, edi
and ebp, 0xffffffc0
cmp ebp, 0x80
jne 0x405255
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 ebp, 4
mov ebx, eax
and edi, 0x3f
or edi, ebx
cmp edi, 0x80
jb 0x405255
cmp edi, 0x7ff
jbe 0x40506d
cmp edi, 0xffff
ja 0x4051f0
test cl, cl
je 0x405079
jmp 0x405255
cmp edi, 0x10ffff
jbe 0x405079
jmp 0x405255
mov edi, dword [esp + 0x1c]
lea eax, [edi + 1]
push eax
call dword [0x448008]
add esp, 4
test eax, eax
je 0x405255
mov esi, eax
mov byte [eax + edi], 0
push edi
push dword [esp + 0x1c]
push eax
call fcn.0040cc00
add esp, 0xc
push 0x10
call dword [0x448008]
add esp, 4
test eax, eax
je 0x40524b
mov dword [eax], 0
mov dword [eax + 4], 2
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
jmp 0x405257
push esi
call dword [0x448004]
add esp, 4
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405260
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 0x405372
mov esi, dword [esp + 0x28]
test esi, esi
je 0x405372
cmp dword [esp + 0x2c], 0
je 0x405372
push esi
call fcn.0040cce0
add esp, 4
test eax, eax
je 0x4052ca
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 0x4052d1
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x4052b0
jmp 0x4052d3
mov ebx, 0x1505
jmp 0x4052d3
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 0x40537a
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x405337
call fcn.00406000
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x405372
push ecx
call fcn.0040cce0
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 0x4053ed
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 0x405398
inc edi
dec esi
je 0x4052ec
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x4052f1
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x405390
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.0040cce0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x405390
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.0040cd00
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x405390
mov eax, 0xffffffff
jmp 0x405372
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x405408
inc edi
dec esi
je 0x405332
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x405337
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x405400
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.0040cce0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x405400
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.0040cd00
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x405400
jmp 0x405337