joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100020f0
Capabilities:
Log keystrokes

Disassembly:
push 0xffffffffffffffff
push 0x10003478
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push 0x10006a78
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x34]
mov byte [esp + 0x28], 1
cmp eax, 0x100
jne 0x1000213e
push 0x10006910
jmp 0x10002143
push 0x1000690c
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x30]
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ebx, eax
push 0x10006a78
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], ebx
call sub.MFC42.DLL_CString::CString_1
xor ecx, ecx
mov eax, ebx
mov cl, bh
and eax, 0xff
mov esi, ecx
xor ecx, ecx
mov cl, byte [esp + 0x42]
push eax
shr ebx, 0x18
push esi
push ecx
push ebx
lea edx, [esp + 0x30]
push str._.2x_.2x_.2x_.2x
push edx
mov byte [esp + 0x4c], 2
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov word [esp + 0xd], 0
push str.0001
mov byte [esp + 0x12], 0
mov dl, byte [esp + ecx + 0x23]
lea eax, [esp + ecx + 0x24]
mov byte [esp + 0x11], dl
lea edx, [esp + 0x18]
mov cl, byte [eax - 2]
lea eax, [esp + 0x10]
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x14]
push eax
push ecx
push str._s_s_s
push edx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x28]
add esp, 0x14
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0x100068e4
push ecx
call dword [sym.imp.MSVCRT.dll_sscanf]
mov esi, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x10002eb0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x114
push edi
call fcn.1000241b
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_AFX_MAINTAIN_STATE2::AFX_MAINTAIN_STATE2
push 1
call sub.MFC42.DLL_COleObjectFactory::UpdateRegistryAll
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0x10004510
call dword [sym.imp.ole32.dll_StringFromCLSID]
push 0x100
lea edx, [esp + 0x1c]
mov ecx, dword [esp + 0xc]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcstombs]
mov eax, dword [esp + 0x14]
add esp, 0xc
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.CLSID_
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 8]
call fcn.10003396
push str.InProcServer32
lea ecx, [esp + 8]
call fcn.10003396
lea edx, [esp + 0xc]
mov eax, dword [esp + 4]
push edx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push str.Apartment
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 4]
mov eax, dword [ecx - 8]
lea ecx, [esp + 4]
push eax
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 1
mov edx, dword [esp + 0x18]
push 0
push str.ThreadingModel
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
xor eax, eax
pop edi
mov dword [ecx + 4], edx
add esp, 0x114
ret
Function at 0x4043a0
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 0x404480
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x404480
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x4043ea
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x4043f1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x4043d0
jmp 0x4043f3
mov esi, 0x1505
jmp 0x4043f3
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 0x404480
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x404424
inc edi
dec ebx
je 0x40447e
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40447e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x404420
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040cb20
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x404420
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040cb40
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x404420
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x404480
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404490
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 0x404591
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404591
push ebx
call fcn.0040cb20
add esp, 4
test eax, eax
je 0x4044ea
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 0x4044f1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4044d0
jmp 0x4044f3
mov esi, 0x1505
jmp 0x4044f3
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 0x404591
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404524
inc ebp
dec ebx
je 0x40458f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40458f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404520
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cb20
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404520
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cb40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404520
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40458f
cmp dword [eax + 4], 2
mov edi, 0
jne 0x404591
mov edi, dword [eax + 8]
jmp 0x404591
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4045c0
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 0x40462b
mov esi, dword [esp + 0x30]
test esi, esi
je 0x40462b
push esi
call fcn.0040cb20
add esp, 4
test eax, eax
je 0x40460a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x404611
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x4045f0
jmp 0x404613
mov ebp, 0x1505
jmp 0x404613
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 0x404637
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 0x404654
inc ebx
dec edi
je 0x40462b
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x40462b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x404650
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cb20
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x404650
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.0040cb40
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x404650
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x40462b
cmp dword [eax + 4], 3
jne 0x40462b
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x40462b

Function at 0x4046f0
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 0x4047f1
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4047f1
push ebx
call fcn.0040cb20
add esp, 4
test eax, eax
je 0x40474a
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 0x404751
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x404730
jmp 0x404753
mov esi, 0x1505
jmp 0x404753
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 0x4047f1
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404784
inc ebp
dec ebx
je 0x4047ef
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4047ef
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404780
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cb20
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404780
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cb40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404780
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4047ef
cmp dword [eax + 4], 5
mov edi, 0
jne 0x4047f1
mov edi, dword [eax + 8]
jmp 0x4047f1
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404820
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 0x404924
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404924
push ebx
call fcn.0040cb20
add esp, 4
test eax, eax
je 0x40487a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x404881
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x404860
jmp 0x404883
mov esi, 0x1505
jmp 0x404883
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 0x404924
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x4048b4
inc ebp
dec ebx
je 0x40491f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40491f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4048b0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cb20
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4048b0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cb40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4048b0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40491f
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x404924
mov edi, dword [eax + 8]
jmp 0x404924
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404930
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.0040cb90
add esp, 8
test eax, eax
je 0x404994
mov esi, eax
jmp 0x404974
mov ebp, esi
inc ebp
push 0x2e
push ebp
call fcn.0040cb90
add esp, 8
mov esi, eax
test eax, eax
je 0x404994
mov eax, esi
sub eax, ebp
push eax
push ebp
push edi
call fcn.004043a0
add esp, 0xc
xor edi, edi
test eax, eax
je 0x404960
cmp dword [eax + 4], 4
jne 0x404960
mov edi, dword [eax + 8]
jmp 0x404960
xor eax, eax
test edi, edi
je 0x4049fb
test ebp, ebp
je 0x4049fb
push ebp
call fcn.0040cb20
add esp, 4
test eax, eax
je 0x4049db
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 0x4049e2
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebx
mov ecx, esi
cmp eax, ebx
jne 0x4049c0
jmp 0x4049e4
mov esi, 0x1505
jmp 0x4049e4
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 0x404a03
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 0x404a24
inc ebx
dec ecx
je 0x4049f9
mov eax, ebx
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4049f9
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + edi*4], esi
jne 0x404a20
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.0040cb20
mov ecx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x404a20
push dword [esp + 4]
push dword [esp + 0x10]
push ebp
call fcn.0040cb40
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x404a20
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x4049fb
Function at 0x404b20
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 0x404b8d
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404b8d
push esi
call fcn.0040cb20
add esp, 4
test eax, eax
je 0x404b6a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x404b71
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x404b50
jmp 0x404b73
mov ebx, 0x1505
jmp 0x404b73
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 0x404b95
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 0x404ba4
inc ebp
dec edi
je 0x404b8b
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x404b8b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x404ba0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cb20
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404ba0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cb40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404ba0
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x404b8d
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x404b8d
Function at 0x4050f0
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 0x405202
mov esi, dword [esp + 0x28]
test esi, esi
je 0x405202
cmp dword [esp + 0x2c], 0
je 0x405202
push esi
call fcn.0040cb20
add esp, 4
test eax, eax
je 0x40515a
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 0x405161
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x405140
jmp 0x405163
mov ebx, 0x1505
jmp 0x405163
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 0x40520a
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x4051c7
call fcn.00405e70
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x405202
push ecx
call fcn.0040cb20
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 0x40527d
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 0x405228
inc edi
dec esi
je 0x40517c
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x405181
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x405220
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.0040cb20
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x405220
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.0040cb40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x405220
mov eax, 0xffffffff
jmp 0x405202
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x405298
inc edi
dec esi
je 0x4051c2
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x4051c7
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x405290
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.0040cb20
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x405290
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.0040cb40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x405290
jmp 0x4051c7
Function at 0x405bc0
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 0x405daa
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x405daa
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x405daa
cmp dword [ecx], 0
jne 0x405daa
push esi
call fcn.0040cb20
add esp, 4
test eax, eax
je 0x405c2a
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
movzx edx, byte [esi + ebx]
test edx, edx
je 0x405c31
mov edi, ecx
shl edi, 5
add edi, ecx
add edi, edx
inc ebx
mov ecx, edi
cmp eax, ebx
jne 0x405c10
jmp 0x405c33
mov edi, 0x1505
jmp 0x405c33
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 0x405d04
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x405c91
call fcn.00405e70
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov esi, dword [esp + 0x2c]
jne 0x405daa
push esi
call fcn.0040cb20
add esp, 4
mov edx, esi
lea esi, [esp + 0x10]
mov ecx, dword [esp + 0x28]
push esi
push edi
push eax
call fcn.00405dc0
add esp, 0xc
mov ebp, eax
mov esi, dword [esp + 0x2c]
push esi
call fcn.0040cb20
add esp, 4
mov ebx, eax
inc eax
push eax
call dword [0x44e008]
add esp, 4
test eax, eax
je 0x405da5
mov byte [eax + ebx], 0
push ebx
push esi
push eax
mov esi, eax
call fcn.0040ca30
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 0x405daa
mov dword [esp], eax
and ebx, edi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x405d28
inc ebx
dec edx
je 0x405c4c
mov ebp, ebx
and ebp, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov esi, dword [eax + ebp*4]
cmp esi, 0xffffffff
je 0x405c51
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], edi
jne 0x405d20
mov eax, dword [ecx + 0xc]
mov ebp, dword [eax + esi*4]
push ebp
mov dword [esp + 8], edx
call fcn.0040cb20
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [esp]
jne 0x405d20
push dword [esp]
push ebp
push dword [esp + 0x34]
call fcn.0040cb40
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x405d20
mov eax, dword [ecx + 0x10]
push dword [eax + esi*4]
call fcn.00404c80
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 0x405cf9
mov eax, 0xffffffff
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x406e80
Capabilities:
Compute adler32 checksum
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x407036
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x40702f
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, esi
sub edx, eax
jmp 0x406f15
mov eax, dword [esp]
sub eax, dword [esp + 4]
add ebp, eax
mov esi, dword [esp + 8]
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, dword [esp]
mov edx, 0x15b0
je 0x40702f
xor ebx, ebx
cmp edx, 8
mov dword [esp], edx
mov dword [esp + 8], esi
jb 0x406f9c
mov ebx, edx
and ebx, 0x1ff8
xor eax, eax
nop
nop
nop
mov edx, eax
movzx eax, byte [ebp + eax]
add eax, edi
add ecx, eax
movzx esi, byte [ebp + edx + 1]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + edx + 2]
add eax, esi
add ecx, eax
movzx esi, byte [ebp + edx + 3]
mov edi, eax
xor edi, esi
and eax, esi
lea eax, [edi + eax*2]
add ecx, eax
movzx esi, byte [ebp + edx + 4]
add esi, eax
mov eax, ecx
xor eax, esi
and ecx, esi
movzx edi, byte [ebp + edx + 5]
add edi, esi
movzx esi, byte [ebp + edx + 6]
add esi, edi
add edi, eax
lea ecx, [edi + ecx*2]
movzx edi, byte [ebp + edx + 7]
add edi, esi
add ecx, esi
add ecx, edi
lea eax, [edx + 8]
add edx, 0xf
cmp edx, dword [esp]
mov edx, dword [esp]
jb 0x406f30
add ebp, eax
mov esi, dword [esp + 8]
mov eax, ebx
sub eax, edx
jae 0x406edd
mov dword [esp + 0xc], eax
mov eax, edx
and eax, 3
mov dword [esp + 4], ebx
je 0x406fe0
neg eax
xor ebx, ebx
mov edx, ebp
nop
nop
nop
nop
nop
movzx esi, byte [edx]
inc edx
add edi, esi
add ecx, edi
dec ebx
cmp eax, ebx
jne 0x406fc0
mov eax, dword [esp + 4]
sub eax, ebx
cmp dword [esp + 0xc], 0xfffffffc
ja 0x406ed0
jmp 0x406fef
mov eax, ebx
mov edx, ebp
cmp dword [esp + 0xc], 0xfffffffc
ja 0x406ed0
mov ebx, dword [esp]
sub ebx, eax
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx + eax]
add esi, edi
add ecx, esi
movzx edi, byte [edx + eax + 1]
add edi, esi
add ecx, edi
movzx esi, byte [edx + eax + 2]
add esi, edi
add ecx, esi
movzx edi, byte [edx + eax + 3]
add edi, esi
add ecx, edi
add eax, 4
cmp ebx, eax
jne 0x407000
jmp 0x406ed0
shl ecx, 0x10
or ecx, edi
jmp 0x40703b
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x407050
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4070b7
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test edx, edx
je 0x4070b9
not eax
xor esi, esi
nop
nop
nop
nop
movzx edi, byte [ecx + esi]
mov ebx, eax
xor ebx, 0x3ffffff0
mov ebp, eax
or ebp, 0xf
and ebp, ebx
mov ebx, eax
xor eax, ebp
not eax
and eax, edi
and eax, 0xf
xor eax, ebp
shr ebx, 4
xor ebx, dword [eax*4 + 0x44bc50]
mov eax, ebx
and ebx, 0xf
shr edi, 4
xor edi, ebx
shr eax, 4
xor eax, dword [edi*4 + 0x44bc50]
inc esi
cmp edx, esi
jne 0x407070
not eax
jmp 0x4070b9
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret