joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420ff4
Capabilities:
Persist via run registry key

Disassembly:
mov eax, 0x462784
call fcn.0043b410
sub esp, 0x38
push ebx
push esi
push edi
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
mov edi, ecx
push esi
call fcn.004212c9
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnceEx
push esi
mov ecx, edi
mov ebx, eax
call fcn.004212c9
push str.SYSTEMCurrentControlSetControlSession_ManagerFileRenameOperations
push esi
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.004212c9
push 0x478a84
push str.SYSTEMCurrentControlSetControlSession_Manager
push esi
mov ecx, edi
mov dword [ebp - 0x18], eax
call fcn.00421365
push str.rename
push str._WindowsFolder_Wininit.ini
mov ecx, edi
mov esi, eax
call fcn.0042111b
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xd]
push 0
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x4675b0
mov dword [ebp - 0x24], 0x4675a8
call fcn.0040b2ce
and dword [ebp - 4], 0
cmp ebx, dword [edi + 0x2f0]
jle 0x42108f
push str.RunOnce
jmp 0x4210d2
mov eax, dword [ebp - 0x14]
cmp eax, dword [edi + 0x2f4]
jle 0x4210a1
push str.RunOnceEx
jmp 0x4210d2
cmp esi, dword [edi + 0x2f8]
jle 0x4210b0
push str.PendingFileRenameOperations
jmp 0x4210d2
mov eax, dword [ebp - 0x18]
cmp eax, dword [edi + 0x2fc]
jle 0x4210c2
push str.FileRenameOperations
jmp 0x4210d2
mov eax, dword [ebp - 0x1c]
cmp eax, dword [edi + 0x300]
jle 0x4210e3
push str.Wininit.ini_rename
lea eax, [ebp - 0x44]
push str.Reboot_required____s_key_added
push eax
call fcn.0040b005
add esp, 0xc
cmp dword [ebp - 0x38], 0
je 0x4210fc
push 0
push 1
pop ebx
lea eax, [ebp - 0x44]
push ebx
push eax
mov ecx, edi
call fcn.004214df
jmp 0x4210fe
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0040632e
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42f09e
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x463df8
call fcn.0043b410
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push 0x20019
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00401f8a
push eax
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
call fcn.0041c0f7
cmp eax, ebx
jne 0x42f0ff
lea ecx, [ebp + 0x34]
call fcn.00401f8a
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], ebx
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
mov dword [ebp + 8], 4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [ebp - 0x18]
cmp eax, ebx
mov dword [0x47d934], eax
je 0x42f10e
mov esi, dword [ebp + 0x5c]
cmp dword [ebp - 0x10], ebx
je 0x42f11f
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.00401279
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x34]
call fcn.00401279
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42faa5
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.0042fb1e
test al, al
je 0x42fb0a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42fb0a
lea eax, [ebp - 0xc]
push esi
push eax
xor esi, esi
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
inc eax
leave
ret
Function at 0x5f31e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5f31fb
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124b8420]
pop edx
test eax, eax
je 0x5f32cd
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5f32bc
test dword [ebp - 0x2a8], 1
jne 0x5f32bc
and dword [ebp - 0x2a8], 0x100
jne 0x5f32bc
push esi
push edx
push 4
push esi
call dword [edx + 0x122d38d7]
pop edx
pop esi
test eax, eax
je 0x5f325f
jmp 0x5f32bc
cmp word [esi], 0x5a4d
jne 0x5f32bc
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5f32bc
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d3933]
pop edx
test eax, eax
je 0x5f32bc
lea eax, [ebp - 0x28c]
push eax
call fcn.005f313c
test eax, eax
jne 0x5f32b5
jmp 0x5f32bc
mov eax, esi
jmp 0x5f32cd
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5f31fb
pop esi
leave
ret 4
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x4dc97675
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4cb54458
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401790
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 0x401870
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x401870
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x4017da
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x4017e1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x4017c0
jmp 0x4017e3
mov esi, 0x1505
jmp 0x4017e3
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 0x401870
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x401814
inc edi
dec ebx
je 0x40186e
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40186e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x401810
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.00408920
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401810
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.00408940
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x401810
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x401870
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401880
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 0x401981
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x401981
push ebx
call fcn.00408920
add esp, 4
test eax, eax
je 0x4018da
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 0x4018e1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4018c0
jmp 0x4018e3
mov esi, 0x1505
jmp 0x4018e3
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 0x401981
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401914
inc ebp
dec ebx
je 0x40197f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40197f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401910
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408920
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401910
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00408940
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401910
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40197f
cmp dword [eax + 4], 2
mov edi, 0
jne 0x401981
mov edi, dword [eax + 8]
jmp 0x401981
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4019b0
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 0x401a1b
mov esi, dword [esp + 0x30]
test esi, esi
je 0x401a1b
push esi
call fcn.00408920
add esp, 4
test eax, eax
je 0x4019fa
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x401a01
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x4019e0
jmp 0x401a03
mov ebp, 0x1505
jmp 0x401a03
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 0x401a27
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 0x401a44
inc ebx
dec edi
je 0x401a1b
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x401a1b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x401a40
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408920
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x401a40
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.00408940
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x401a40
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x401a1b
cmp dword [eax + 4], 3
jne 0x401a1b
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x401a1b

Function at 0x401ae0
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 0x401be1
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x401be1
push ebx
call fcn.00408920
add esp, 4
test eax, eax
je 0x401b3a
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 0x401b41
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x401b20
jmp 0x401b43
mov esi, 0x1505
jmp 0x401b43
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 0x401be1
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401b74
inc ebp
dec ebx
je 0x401bdf
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x401bdf
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401b70
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408920
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401b70
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00408940
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401b70
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x401bdf
cmp dword [eax + 4], 5
mov edi, 0
jne 0x401be1
mov edi, dword [eax + 8]
jmp 0x401be1
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401c10
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 0x401d14
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x401d14
push ebx
call fcn.00408920
add esp, 4
test eax, eax
je 0x401c6a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x401c71
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x401c50
jmp 0x401c73
mov esi, 0x1505
jmp 0x401c73
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 0x401d14
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401ca4
inc ebp
dec ebx
je 0x401d0f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x401d0f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401ca0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408920
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401ca0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00408940
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401ca0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x401d0f
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x401d14
mov edi, dword [eax + 8]
jmp 0x401d14
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401d20
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.00408990
add esp, 8
test eax, eax
je 0x401d8e
mov esi, eax
jmp 0x401d64
mov ebp, esi
inc ebp
push 0x2e
push ebp
call fcn.00408990
add esp, 8
mov esi, eax
test eax, eax
je 0x401d8e
mov eax, esi
xor eax, ebp
mov ecx, ebp
not ecx
and ecx, esi
add ecx, ecx
sub ecx, eax
push ecx
push ebp
push edi
call fcn.00401790
add esp, 0xc
xor edi, edi
test eax, eax
je 0x401d50
cmp dword [eax + 4], 4
jne 0x401d50
mov edi, dword [eax + 8]
jmp 0x401d50
xor eax, eax
test edi, edi
je 0x401deb
test ebp, ebp
je 0x401deb
push ebp
call fcn.00408920
add esp, 4
test eax, eax
je 0x401dcb
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
movzx edx, byte [ebp + ebx]
test edx, edx
je 0x401dd2
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebx
mov ecx, esi
cmp eax, ebx
jne 0x401db0
jmp 0x401dd4
mov esi, 0x1505
jmp 0x401dd4
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 0x401df3
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 0x401e14
inc ebx
dec ecx
je 0x401de9
mov eax, ebx
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x401de9
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + edi*4], esi
jne 0x401e10
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.00408920
mov ecx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x401e10
push dword [esp + 4]
push dword [esp + 0x10]
push ebp
call fcn.00408940
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x401e10
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x401deb
Function at 0x401f10
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 0x401f7d
mov esi, dword [esp + 0x28]
test esi, esi
je 0x401f7d
push esi
call fcn.00408920
add esp, 4
test eax, eax
je 0x401f5a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x401f61
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x401f40
jmp 0x401f63
mov ebx, 0x1505
jmp 0x401f63
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 0x401f85
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 0x401f94
inc ebp
dec edi
je 0x401f7b
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x401f7b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x401f90
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408920
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401f90
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00408940
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401f90
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x401f7d
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x401f7d
Function at 0x4021a0
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 0x4022b2
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4022b2
cmp dword [esp + 0x2c], 0
je 0x4022b2
push esi
call fcn.00408920
add esp, 4
test eax, eax
je 0x40220a
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 0x402211
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x4021f0
jmp 0x402213
mov ebx, 0x1505
jmp 0x402213
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 0x4022ba
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x402277
call fcn.004023b0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x4022b2
push ecx
call fcn.00408920
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 0x40232d
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 0x4022d8
inc edi
dec esi
je 0x40222c
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x402231
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x4022d0
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.00408920
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4022d0
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.00408940
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4022d0
mov eax, 0xffffffff
jmp 0x4022b2
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x402348
inc edi
dec esi
je 0x402272
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x402277
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x402340
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.00408920
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402340
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.00408940
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402340
jmp 0x402277
Function at 0x402ab0
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 0x402c82
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x402c7b
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, esi
sub edx, eax
jmp 0x402b44
mov ebp, dword [esp + 4]
add ebp, dword [esp + 8]
mov esi, dword [esp + 0xc]
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 0x402c7b
xor ebx, ebx
cmp edx, 8
mov dword [esp], edx
mov dword [esp + 0xc], esi
jb 0x402bef
and edx, 0x1ff8
mov dword [esp + 8], edx
xor eax, eax
mov dword [esp + 4], ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, eax
movzx eax, byte [ebp + eax]
add eax, edi
add ecx, eax
movzx edi, byte [ebp + edx + 1]
add edi, eax
add ecx, edi
movzx eax, byte [ebp + edx + 2]
add eax, edi
add ecx, eax
movzx ebx, byte [ebp + edx + 3]
add ebx, eax
mov eax, ecx
and eax, ebx
xor ecx, ebx
movzx edi, byte [ebp + edx + 4]
add edi, ebx
movzx ebx, byte [ebp + edx + 5]
mov esi, edi
and esi, ebx
xor ebx, edi
lea ebp, [ebx + esi*2]
mov esi, dword [esp + 4]
movzx ebx, byte [esi + edx + 6]
mov esi, ebp
and esi, ebx
xor ebx, ebp
lea esi, [ebx + esi*2]
add edi, ecx
lea ecx, [edi + eax*2]
add ecx, ebp
mov ebp, dword [esp + 4]
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 0x402b70
add ebp, eax
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 8]
mov eax, edx
sub eax, ebx
jbe 0x402b0c
mov dword [esp + 8], eax
mov eax, ebx
or eax, 1
test dl, 1
mov dword [esp + 4], ebp
jne 0x402c20
mov esi, ebx
mov ebx, ebp
cmp edx, eax
je 0x402b00
jmp 0x402c3f
lea ebx, [ebp + 1]
movzx esi, byte [ebp]
mov edx, edi
and edx, esi
xor edi, esi
lea edi, [edi + edx*2]
mov edx, dword [esp]
add ecx, edi
mov esi, eax
cmp edx, eax
je 0x402b00
mov eax, dword [esp]
sub eax, esi
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + esi]
mov ebp, edi
and ebp, edx
xor edi, edx
lea edx, [edi + ebp*2]
add ecx, edx
movzx edi, byte [ebx + esi + 1]
mov ebp, edx
and ebp, edi
xor edx, edi
lea edi, [edx + ebp*2]
add ecx, edi
add esi, 2
cmp eax, esi
jne 0x402c50
jmp 0x402b00
shl ecx, 0x10
or ecx, edi
jmp 0x402c87
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402ca0
Capabilities:
Encode data using xor

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