joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f3d0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
xor ebp, ebp
cmp ebx, ebp
push edi
mov edi, ecx
jne 0x43f3f1
push ebp
push ebp
push ebp
push 2
call fcn.00441030
pop edi
pop ebp
xor al, al
pop ebx
ret 8
push esi
mov esi, dword [edi + 0x18]
cmp esi, ebp
je 0x43f40f
lea esp, [esp]
mov ecx, esi
mov eax, dword [ecx]
mov esi, dword [esi + 0x28]
push 1
call dword [eax]
cmp esi, ebp
jne 0x43f400
mov esi, dword [sym.imp.MSVCR71.dll_fseek]
push 2
or eax, 0xffffffff
mov dword [edi + 0x18], ebp
mov dword [edi + 0x1c], ebp
push ebp
push ebx
mov dword [edi + 8], eax
mov dword [edi + 4], eax
call esi
push ebx
call dword [sym.imp.MSVCR71.dll_ftell]
push 0
push 0
push ebx
mov ebp, eax
call esi
add esp, 0x1c
test ebp, ebp
jg 0x43f459
push 0
push 0
push 0
push 0xc
mov ecx, edi
call fcn.00441030
pop esi
pop edi
pop ebp
xor al, al
pop ebx
ret 8
lea ecx, [ebp + 1]
push ecx
call sub.MFC71U.DLL_SerializeElements
push ebx
push 1
mov esi, eax
push ebp
push esi
mov byte [esi], 0
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x43f49b
push esi
call sub.MFC71U.DLL_operator_new
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, edi
call fcn.00441030
pop esi
pop edi
pop ebp
xor al, al
pop ebx
ret 8
mov byte [esi + ebp], 0
cmp byte [esi], 0
mov eax, esi
mov ecx, esi
je 0x43f4c7
mov dl, byte [eax]
cmp dl, 0xd
jne 0x43f4be
mov byte [ecx], 0xa
mov dl, byte [eax + 1]
inc ecx
inc eax
cmp dl, 0xa
jne 0x43f4c2
jmp 0x43f4c1
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x43f4a8
mov eax, dword [esp + 0x18]
push eax
mov byte [ecx], 0
mov edx, dword [edi]
push 0
push esi
mov ecx, edi
call dword [edx + 8]
push esi
call sub.MFC71U.DLL_operator_new
mov cl, byte [edi + 0x2c]
add esp, 4
pop esi
pop edi
xor eax, eax
test cl, cl
pop ebp
sete al
pop ebx
ret 8

Function at 0x43f9f9
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x45aec3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x47f8cc
mov dword [esp + 8], esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], 0x464890
mov dword [esp + 0x14], ebx
mov dword [ecx], 0x47f8cc
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x4685b8
mov byte [esp + 0x1c], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.0043eee0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4434c6
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x468ee0
call fcn.004439a8
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x443506
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x443506
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x44351e
cmp eax, 0x20b
je 0x44350b
mov dword [ebp - 0x1c], edi
jmp 0x443532
cmp dword [ecx + 0x84], 0xe
jbe 0x443506
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x44352c
cmp dword [ecx + 0x74], 0xe
jbe 0x443506
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x47fa98], 0xffffffff
or dword [0x47fa9c], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x47f8ec]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x47f8e8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x47fa94], eax
call fcn.00443a00
call fcn.00443aa0
cmp dword [0x4792f0], edi
jne 0x443592
push fcn.00443aa0
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00443a8e
push 0x479084
push 0x479080
call sub.MSVCR71.dll__initterm
push 0x443a44
call fcn.00443756
mov eax, dword [0x47f8e4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x47f8e0]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x4435e6
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x47907c
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x443610
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x4436ca
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x44367f
cmp ax, di
je 0x443626
cmp dword [ebp - 0x20], edi
jne 0x44367f
mov ax, word [esi]
cmp ax, di
je 0x44363b
cmp ax, 0x20
ja 0x44363b
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x443626
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x443657
movzx eax, word [ebp - 0x54]
jmp 0x44365a
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.00456ae8
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x443677
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4436c4
cmp ax, 0x22
jne 0x443690
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x443610
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004439e3
ret
Function at 0x443d10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0x468fc4
push eax
push esi
mov byte [esp + 0x10], 0x89
mov byte [esp + 0x11], 0x50
mov byte [esp + 0x12], 0x4e
mov byte [esp + 0x13], 0x47
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x443d42
pop esi
pop ecx
ret
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x443d55
pop ebx
pop esi
pop ecx
ret
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, 4
lea edi, [esp + 0x10]
mov esi, eax
xor ebp, ebp
repe cmpsb byte [esi], byte es:[edi]
je 0x443d74
sbb ebp, ebp
sbb ebp, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
xor eax, eax
test ebp, ebp
pop ebp
pop ebx
sete al
pop esi
pop ecx
ret

Function at 0x443d90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x443dc0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x443dc0
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x443dc4
xor eax, eax
pop esi
ret
xor ecx, ecx
cmp word [eax + 0xe], 0x20
push edi
sete cl
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
ret
Function at 0x4447b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45b098
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, dword [esp + 0x34]
push edi
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4447f4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jne 0x444807
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x444827
pop ebp
pop edi
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
push ebx
mov ebx, dword [ebp + 8]
imul ebx, dword [ebp + 4]
shl ebx, 2
cmp word [ebp + 0xe], 0x20
mov dword [esp + 0x14], 0
jne 0x44492b
mov ecx, dword [esp + 0x40]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea edx, [ebx + 0x28]
cmp eax, edx
jb 0x44492b
lea ecx, [esp + 0x20]
call fcn.00443226
push 0
mov dword [esp + 0x3c], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x24]
call sub.MFC71U.DLL_CAsyncSocket::Attach
push 0x34
call dword [sym.imp.MSVCR71.dll_malloc]
add esp, 4
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4448b8
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC71U.DLL_CDBVariant::CDBVariant
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
push 0
mov edi, eax
push 0
mov ecx, 0xa
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
push ecx
push 0
mov dword [eax + 0x14], ebx
mov edx, dword [esp + 0x34]
push eax
push edx
mov dword [esp + 0x28], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
test eax, eax
je 0x444908
mov edi, dword [esp + 0x10]
test edi, edi
je 0x444908
mov ecx, ebx
mov edx, ecx
shr ecx, 2
lea esi, [ebp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC71U.DLL_CDBVariant::CDBVariant
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
pop ebx
pop ebp
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x445710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45b108
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebp
mov ebp, ecx
push esi
mov dword [ebp + 8], 0
call sub.MFC71U.DLL_CListBox::DeleteItem
mov esi, dword [esp + 0x44]
test esi, esi
jne 0x445755
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
push ebx
push edi
mov edi, dword [esp + 0x48]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4457cc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4457cc
cmp ebx, 0xa
jb 0x4457cc
push 0
push ebx
push eax
lea ecx, [esp + 0x1c]
call sub.MFC71U.DLL_CMemFile::CMemFile
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
mov dword [esp + 0x44], 0
call fcn.00445640
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x40], 0xffffffff
call sub.MFC71U.DLL_CMapWordToPtr::CMapWordToPtr
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
mov ecx, dword [esp + 0x38]
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x34
ret 8
Function at 0x402cd8
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 0x402dd9
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x402dd9
push ebx
call fcn.00409778
add esp, 4
test eax, eax
je 0x402d32
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 0x402d39
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x402d18
jmp 0x402d3b
mov esi, 0x1505
jmp 0x402d3b
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 0x402dd9
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x402d6c
inc ebp
dec ebx
je 0x402dd7
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x402dd7
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402d68
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409778
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402d68
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409798
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402d68
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x402dd7
cmp dword [eax + 4], 2
mov edi, 0
jne 0x402dd9
mov edi, dword [eax + 8]
jmp 0x402dd9
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402e08
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 0x402e73
mov esi, dword [esp + 0x30]
test esi, esi
je 0x402e73
push esi
call fcn.00409778
add esp, 4
test eax, eax
je 0x402e52
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x402e59
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x402e38
jmp 0x402e5b
mov ebp, 0x1505
jmp 0x402e5b
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 0x402e7f
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 0x402e9c
inc ebx
dec edi
je 0x402e73
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x402e73
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x402e98
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409778
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x402e98
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.00409798
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x402e98
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x402e73
cmp dword [eax + 4], 3
jne 0x402e73
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x402e73
Function at 0x402f38
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 0x403039
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x403039
push ebx
call fcn.00409778
add esp, 4
test eax, eax
je 0x402f92
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 0x402f99
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x402f78
jmp 0x402f9b
mov esi, 0x1505
jmp 0x402f9b
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 0x403039
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x402fcc
inc ebp
dec ebx
je 0x403037
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x403037
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402fc8
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409778
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402fc8
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409798
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402fc8
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x403037
cmp dword [eax + 4], 5
mov edi, 0
jne 0x403039
mov edi, dword [eax + 8]
jmp 0x403039
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403068
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 0x40316c
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x40316c
push ebx
call fcn.00409778
add esp, 4
test eax, eax
je 0x4030c2
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x4030c9
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4030a8
jmp 0x4030cb
mov esi, 0x1505
jmp 0x4030cb
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 0x40316c
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x4030fc
inc ebp
dec ebx
je 0x403167
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x403167
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4030f8
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409778
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4030f8
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409798
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4030f8
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x403167
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x40316c
mov edi, dword [eax + 8]
jmp 0x40316c
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403358
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 0x4033c5
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4033c5
push esi
call fcn.00409778
add esp, 4
test eax, eax
je 0x4033a2
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x4033a9
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x403388
jmp 0x4033ab
mov ebx, 0x1505
jmp 0x4033ab
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 0x4033cd
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 0x4033dc
inc ebp
dec edi
je 0x4033c3
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x4033c3
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x4033d8
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409778
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4033d8
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409798
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4033d8
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x4033c5
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x4033c5
Function at 0x403f18
Capabilities:
Compute adler32 checksum
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x4040ce
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x4040c7
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ebx, esi
sub ebx, eax
jmp 0x403fae
mov eax, dword [esp + 4]
sub eax, dword [esp]
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 + 4]
mov ebx, 0x15b0
je 0x4040c7
xor edx, edx
cmp ebx, 8
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
jb 0x404030
and ebx, 0x1ff8
mov dword [esp], ebx
xor eax, eax
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]
add esi, eax
mov eax, ecx
and eax, esi
xor ecx, esi
movzx ebx, byte [ebp + edx + 4]
add ebx, esi
movzx edi, byte [ebp + edx + 5]
add edi, ebx
add ebx, ecx
lea ecx, [ebx + eax*2]
mov ebx, dword [esp + 4]
movzx eax, byte [ebp + edx + 6]
add eax, edi
add ecx, edi
movzx edi, byte [ebp + edx + 7]
add edi, eax
add ecx, eax
add ecx, edi
lea eax, [edx + 8]
add edx, 0xf
cmp edx, ebx
jb 0x403fc8
add ebp, eax
mov esi, dword [esp + 8]
mov edx, dword [esp]
mov eax, edx
sub eax, ebx
jae 0x403f75
mov dword [esp + 0xc], eax
mov eax, ebx
and eax, 3
mov dword [esp], edx
je 0x404077
neg eax
xor ebx, ebx
mov edx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx]
inc edx
add edi, esi
add ecx, edi
dec ebx
cmp eax, ebx
jne 0x404058
mov eax, dword [esp]
sub eax, ebx
cmp dword [esp + 0xc], 0xfffffffc
ja 0x403f68
jmp 0x404086
mov eax, edx
mov edx, ebp
cmp dword [esp + 0xc], 0xfffffffc
ja 0x403f68
mov ebx, dword [esp + 4]
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 0x404098
jmp 0x403f68
shl ecx, 0x10
or ecx, edi
jmp 0x4040d3
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4040e8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x404116
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x4041b4
not eax
test bl, 1
jne 0x40411d
mov edx, ebx
cmp ebx, 1
jne 0x40414e
jmp 0x4041b2
xor eax, eax
jmp 0x4041b4
lea edx, [ebx - 1]
movzx esi, byte [ecx]
mov edi, eax
shr edi, 4
xor eax, esi
and eax, 0xf
xor edi, dword [eax*4 + 0x43980c]
inc ecx
mov eax, edi
shr eax, 4
and edi, 0xf
shr esi, 4
xor esi, edi
xor eax, dword [esi*4 + 0x43980c]
cmp ebx, 1
je 0x4041b2
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [ecx + esi]
mov ebx, eax
shr ebx, 4
xor eax, edi
and eax, 0xf
xor ebx, dword [eax*4 + 0x43980c]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x43980c]
movzx edi, byte [ecx + esi + 1]
mov ebx, eax
shr ebx, 4
xor eax, edi
and eax, 0xf
xor ebx, dword [eax*4 + 0x43980c]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x43980c]
add esi, 2
cmp edx, esi
jne 0x404158
not eax
pop esi
pop edi
pop ebx
ret
Function at 0x40e8d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x140
mov word [esp + 0x48], 0x3947
mov dword [esp + 0x4a], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 5
ja 0x40e941
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x48]
add eax, 0x757db436
xor eax, ecx
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xb4]
add al, 0xf2
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x48], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 6
jb 0x40e908
lea eax, [esp + 0x48]
push eax
push dword [ebp + 8]
call fcn.00402f38
add esp, 8
mov esi, eax
xor ecx, ecx
test eax, eax
sete cl
xor edi, edi
xor eax, eax
sar bh, 0x24
invalid
mov dl, dl
inc ebx
invalid