joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4548b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x494c23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00485a91
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0048b204
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048c79f
test eax, eax
je 0x4549cc
mov ecx, dword [esp + 0x3c]
call fcn.0048b231
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x454990
push edi
mov ecx, esi
call fcn.004887f2
mov ecx, esi
call fcn.00454b30
cmp dword [esp + 0x38], 1
jne 0x4549c5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0048895c
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4573e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x457413
push esi
call fcn.0045a4d0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45740c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x457499
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x457482
mov eax, dword [esi + 8]
test eax, eax
je 0x457437
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45747e
cmp eax, 2
je 0x457482
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45742a
cmp eax, 3
je 0x45745d
cmp eax, 1
jne 0x45742a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45742a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45742a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004574c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4574a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004574c0
add esp, 4
pop esi
ret

Function at 0x462ff0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x463093
test eax, eax
jbe 0x463093
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x463093
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46303e
xor esi, esi
jmp 0x463044
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46306f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00465010
add esi, eax
push esi
mov ebx, esi
call fcn.00465010
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x463050
pop ebp
test edi, edi
pop edi
jne 0x463093
test ebx, ebx
je 0x463093
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00474c40
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4631d5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4632ed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4632ed
mov eax, dword [esi + 0x3c]
push eax
call fcn.00485ee3
mov esi, eax
test esi, esi
je 0x4632ed
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4632ed
mov ecx, esi
call fcn.00463140
cmp edi, eax
jge 0x4632ed
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x463273
mov dword [esp + 0x34], 1
jmp 0x4632ce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4632ed
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00462730
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x466700
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x46674a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x466779
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x4667bb
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x486887
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4868bf
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048493e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00484916
jmp 0x4868cb
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x487f78
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x487fba
call fcn.0048dcca
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x487fba
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x487fb1
xor eax, eax
jmp 0x487fc2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00487fc8
pop edi
pop esi
pop ebx
ret 4

Function at 0x48e1fa
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48e228
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48e246
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048e160
jmp 0x48e246
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48e246
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048e160
test edi, edi
mov eax, edi
jne 0x48e230
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403371
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x40339c
mov ecx, dword [0x4702b8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x4326f4], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403479
cmp eax, esi
jl 0x403473
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.004061db
test eax, eax
je 0x403463
push dword [ebp + 8]
add dword [0x4326f4], 4
call fcn.00403479
mov ebx, eax
cmp ebx, esi
jl 0x403471
cmp dword [ebp + 0x10], esi
jne 0x40343f
cmp dword [ebp + 8], esi
jle 0x403471
mov esi, 0x4266f0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403401
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.004061db
test eax, eax
je 0x403463
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.0040620a
test eax, eax
je 0x40343b
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x4326f4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4033f0
jmp 0x403471
push 0xfffffffffffffffe
jmp 0x403465
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40344a
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403468
push 0xfffffffffffffffd
pop eax
jmp 0x403473
mov ebx, dword [ebp - 4]
add dword [0x4326f4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10

Function at 0x403af2
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x403b2d
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x403b14
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x403b25
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x403b2f
inc edi
add eax, 0x28
cmp edi, esi
jb 0x403b0a
xor eax, eax
pop edi
pop esi
ret

Function at 0x405d2c
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00406133
mov edi, eax
cmp edi, 0xffffffff
je 0x405d6d
test byte [esp + 0x10], 1
push esi
je 0x405d4f
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405d55
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405d5e
xor eax, eax
inc eax
jmp 0x405d6f
test byte [esp + 0x10], 4
jne 0x405d6d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x1006e083
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037dfa
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x100ae134]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x68]
mov dword [edi], fcn.1006f740
test ecx, ecx
je 0x1006e0c2
call fcn.1007b0cd
mov eax, dword [edi + 0x58]
xor ebx, ebx
test eax, eax
je 0x1006e138
mov dword [eax + 0xf4], ebx
test dword [edi + 0x5c], 0x8000
jne 0x1006e138
mov eax, dword [edi + 0x58]
mov edx, 0x2000000
mov eax, dword [eax + 0x44]
mov ecx, dword [edi + 0x58]
and eax, edx
je 0x1006e0fa
push edx
call fcn.1003c74c
mov ecx, dword [edi + 0x58]
push 2
pop eax
jmp 0x1006e109
mov eax, dword [ecx + 0x28]
mov eax, dword [eax + 0x328]
shr eax, 0xc
and eax, 2
push ebx
push eax
call fcn.1009080d
test dword [edi + 0x5c], 0x80000
je 0x1006e138
mov eax, dword [edi + 0x58]
push ebx
or dword [eax + 0x10c], 0xffffffff
mov ecx, dword [edi + 0x58]
call fcn.1004b7eb
mov ecx, dword [edi + 0x58]
push ecx
mov ecx, dword [ecx + 0x20]
call fcn.10036de8
mov esi, dword [edi + 0x50]
test esi, esi
je 0x1006e155
mov ecx, esi
mov dword [esi], 0x10001424
call dword [sym.imp.MSDATL3.dll_public_virtual:_void___thiscall_CUtlProps2::destructor_void_]
push esi
call dword [sym.imp.MSDART.DLL_mpFree]
pop ecx
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x1006e172
call dword [sym.imp.MSDATL3.dll_public:_struct_IUnknown____thiscall_CBaseObj::GetOuterUnknown_void_]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100b05a4]
call esi
mov ecx, dword [edi + 0x44]
test ecx, ecx
je 0x1006e189
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100b05a4]
call esi
mov eax, dword [edi + 0x54]
test eax, eax
je 0x1006e1aa
lock dec dword [eax + 0x334]
mov eax, dword [edi + 0x54]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100b05a4]
call esi
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x1006e1bd
lock dec dword [eax + 0x44]
push dword [edi + 0x4c]
call fcn.1006b4f0
mov eax, dword [edi + 0x40]
test eax, eax
je 0x1006e1d2
push eax
mov dword [eax], 0x1000105c
call dword [sym.imp.MSDART.DLL_mpFree]
pop ecx
lea eax, [edi + 0x64]
cmp dword [eax], ebx
je 0x1006e1e1
push eax
call dword [sym.imp.MSDART.DLL_MPDeleteCriticalSection]
pop ecx
cmp dword [edi + 0x1c], ebx
je 0x1006e211
cmp dword [0x100ae140], 0xffffffff
je 0x1006e211
push ebx
push dword [edi + 0x1c]
push 7
push dword [0x100b4fac]
mov esi, dword [0x100ae03c]
mov ecx, esi
push dword [0x100ae140]
call dword [0x100b05a4]
call esi
mov ecx, edi
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x38], 0x10001704
mov dword [edi + 0x30], 0x1000171c
mov dword [edi + 0x28], 0x1000152c
mov dword [edi + 0x20], 0x1000153c
call dword [sym.imp.MSDATL3.dll_public_virtual:_void___thiscall_CBaseObj::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100365c0
mov esp, ebp
pop ebp
ret
Function at 0x402600
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 0x4026f7
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4026f7
push ebx
call fcn.00409180
add esp, 4
test eax, eax
je 0x40265a
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 0x402661
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x402640
jmp 0x402663
mov esi, 0x1505
jmp 0x402663
mov esi, ecx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov edx, ebx
sub edx, 1
jb 0x4026f7
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov dword [esp], edx
jmp 0x402694
inc ebp
dec ebx
je 0x4026f5
mov eax, ebp
and eax, edx
mov edi, dword [esp + 0xc]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x4026f5
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402690
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.00409180
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402690
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.004091a0
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402690
mov eax, dword [ecx + 0x10]
mov edi, dword [eax + edi*4]
jmp 0x4026f7
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402710
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
xor eax, eax
test ecx, ecx
je 0x4027f7
test edx, edx
je 0x4027f7
mov ebp, dword [esp + 0x28]
test ebp, ebp
mov dword [esp], ecx
je 0x40275a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
movzx ebx, byte [edx + edi]
test ebx, ebx
je 0x402761
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, ebx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x402740
jmp 0x402763
mov esi, 0x1505
jmp 0x402763
mov esi, ecx
mov dword [esp + 8], edx
mov ecx, dword [esp]
mov ebp, dword [ecx + 0x20]
lea ebx, [ebp - 1]
mov edx, ebp
sub edx, 1
jb 0x4027f7
and ebx, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 4], edx
jmp 0x402794
inc ebx
dec ebp
je 0x4027f5
mov eax, ebx
and eax, edx
mov edi, dword [esp + 0x10]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x4027f5
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402790
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 0xc], eax
push eax
call fcn.00409180
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x402790
push dword [esp + 0x28]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.004091a0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402790
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x4027f7
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402bf0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, 0xffffffff
test ecx, ecx
je 0x402cf8
mov esi, edx
test edx, edx
je 0x402cf8
mov dword [esp], ecx
cmp dword [esp + 0x2c], 0
je 0x402cf8
push esi
call fcn.00409180
add esp, 4
test eax, eax
je 0x402c4a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x402c51
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x402c30
jmp 0x402c53
mov ebp, 0x1505
jmp 0x402c53
mov ebp, ecx
mov dword [esp + 8], esi
mov ecx, dword [esp]
mov esi, dword [ecx + 0x20]
lea ebx, [esi - 1]
mov edx, esi
sub edx, 1
mov dword [esp + 0x10], edx
jae 0x402d00
mov edi, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x402cba
call fcn.00402df0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 8]
jne 0x402cf8
push ecx
call fcn.00409180
add esp, 4
mov dword [esp + 4], eax
mov ecx, dword [esp]
mov esi, dword [ecx + 0x20]
lea ebx, [esi - 1]
mov eax, esi
sub eax, 1
mov dword [esp + 0x10], eax
jae 0x402d6f
mov edi, 0xffffffff
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov esi, dword [esp + 8]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov dword [eax + edi*4], edx
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x18]
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], edi
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebp
inc dword [ecx + 0x18]
mov eax, dword [ecx]
mov dword [esi], eax
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], eax
and ebx, ebp
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
jmp 0x402d18
inc ebx
dec esi
je 0x402c6f
mov edi, ebx
and edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x402c74
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x402d10
mov ecx, dword [ecx + 0xc]
mov edi, dword [ecx + eax*4]
push edi
call fcn.00409180
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402d10
push dword [esp + 4]
push edi
push dword [esp + 0x10]
call fcn.004091a0
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402d10
mov eax, 0xffffffff
jmp 0x402cf8
and ebx, ebp
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
jmp 0x402d88
inc ebx
dec esi
je 0x402cb5
mov edi, ebx
and edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x402cba
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x402d80
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x14], eax
push eax
call fcn.00409180
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402d80
push dword [esp + 4]
push dword [esp + 0x18]
push dword [esp + 0x10]
call fcn.004091a0
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402d80
jmp 0x402cba
Function at 0x4034a0
Capabilities:
Compute adler32 checksum
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x403632
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov eax, ecx
not eax
or eax, 0xffff
lea edi, [ecx + eax]
inc edi
shr ecx, 0x10
test esi, esi
je 0x40362b
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ebx, esi
sub ebx, eax
jmp 0x40352b
add ebp, dword [esp + 4]
mov eax, edi
mov esi, 0x80078071
mul esi
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mul esi
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
mov esi, dword [esp + 8]
sub esi, dword [esp]
mov ebx, 0x15b0
je 0x40362b
mov dword [esp + 8], esi
xor esi, esi
cmp ebx, 8
mov dword [esp], ebx
jb 0x4035ab
mov esi, ebx
and esi, 0x1ff8
mov edx, 7
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [ebp]
mov ebx, edi
and ebx, eax
xor edi, eax
lea eax, [edi + ebx*2]
add ecx, eax
movzx edi, byte [ebp + 1]
add edi, eax
add ecx, edi
movzx eax, byte [ebp + 2]
add eax, edi
add ecx, eax
movzx edi, byte [ebp + 3]
add edi, eax
add ecx, edi
movzx eax, byte [ebp + 4]
add eax, edi
add ecx, eax
movzx edi, byte [ebp + 5]
add edi, eax
add ecx, edi
movzx eax, byte [ebp + 6]
add eax, edi
mov ebx, ecx
and ebx, eax
xor ecx, eax
movzx edi, byte [ebp + 7]
add edi, eax
add ecx, edi
lea ecx, [ecx + ebx*2]
mov ebx, dword [esp]
add ebp, 8
add edx, 8
cmp edx, ebx
jb 0x403550
mov edx, ebx
sub edx, esi
jbe 0x4034f4
mov eax, esi
or eax, 1
test bl, 1
mov dword [esp + 4], edx
jne 0x4035d0
mov ebx, ebp
cmp dword [esp], eax
je 0x4034f0
jmp 0x4035ed
lea ebx, [ebp + 1]
movzx esi, byte [ebp]
add edi, esi
mov esi, edi
and esi, ecx
xor ecx, edi
lea ecx, [ecx + esi*2]
mov esi, eax
cmp dword [esp], eax
je 0x4034f0
mov eax, dword [esp]
sub eax, esi
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + esi]
add edx, edi
mov edi, edx
and edi, ecx
xor ecx, edx
lea ecx, [ecx + edi*2]
movzx edi, byte [ebx + esi + 1]
add edi, edx
mov edx, edi
and edx, ecx
xor ecx, edi
lea ecx, [ecx + edx*2]
add esi, 2
cmp eax, esi
jne 0x403600
jmp 0x4034f0
shl ecx, 0x10
add ecx, edi
jmp 0x403637
mov ecx, 1
mov eax, ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403650
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4036ad
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test edx, edx
je 0x4036af
not eax
xor esi, esi
nop
nop
nop
nop
movzx edi, byte [ecx + esi]
mov ebx, eax
shr ebx, 4
and eax, 0xf
mov ebp, edi
and ebp, 0xf
add ebp, eax
and eax, edi
add eax, eax
sub ebp, eax
xor ebx, dword [ebp*4 + 0x43da18]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x43da18]
inc esi
cmp edx, esi
jne 0x403670
not eax
jmp 0x4036af
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret