joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fe390
Capabilities:
Link many functions at runtime

Disassembly:
mov byte [0x52c918], 0
mov eax, dword [0x52d4f0]
cmp dword [eax], 2
jne 0x4fe569
mov eax, dword [0x52ce14]
cmp dword [eax], 5
jl 0x4fe569
call fcn.004fb52c
test al, al
jne 0x4fe3c1
call fcn.004fb538
call fcn.004fb524
mov dword [0x52c920], eax
push 0x4fe56c
mov eax, dword [0x52c920]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c8e4], eax
cmp dword [0x52c8e4], 0
jne 0x4fe41c
mov edx, 0x8000
mov eax, 0x4fe580
call fcn.0040f598
mov dword [0x52c91c], eax
mov eax, dword [0x52c91c]
mov dword [0x52c920], eax
push 0x4fe56c
mov eax, dword [0x52c920]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c8e4], eax
cmp dword [0x52c8e4], 0
je 0x4fe564
push 0x4fe58c
mov eax, dword [0x52c920]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c8e8], eax
cmp dword [0x52c8e8], 0
je 0x4fe564
push 0x4fe598
mov eax, dword [0x52c920]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c8ec], eax
cmp dword [0x52c8ec], 0
je 0x4fe564
mov byte [0x52c918], 1
push 0x4fe5a8
mov eax, dword [0x52c920]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c8f0], eax
push 0x4fe5b4
mov eax, dword [0x52c920]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c8f4], eax
push 0x4fe5c0
mov eax, dword [0x52c920]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c8f8], eax
push 0x4fe5d0
mov eax, dword [0x52c920]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c8fc], eax
push 0x4fe5e0
mov eax, dword [0x52c920]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c900], eax
mov edx, 0x8000
mov eax, 0x4fe5f8
call fcn.0040f598
mov dword [0x52c924], eax
cmp dword [0x52c924], 0
je 0x4fe569
push 0x4fe608
mov eax, dword [0x52c924]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c904], eax
push 0x4fe624
mov eax, dword [0x52c924]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c908], eax
push 0x4fe644
mov eax, dword [0x52c924]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c90c], eax
push 0x4fe660
mov eax, dword [0x52c924]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c910], eax
push 0x4fe678
mov eax, dword [0x52c924]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c914], eax
ret
call fcn.004fe310
ret
Function at 0x500c9c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x500dc4
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00500b88
mov eax, dword [esi]
call fcn.004055cc
add eax, 0x28
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4f9000]
call fcn.00405788
add esp, 4
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.00402a00
mov ebx, 0x1c
mov eax, dword [ebp - 8]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.00402a00
add ebx, 0x1c
mov eax, dword [esi]
call fcn.004055cc
mov dword [ebp - 0xc], eax
mov eax, dword [0x52d3c0]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 8]
mov ecx, ebx
call fcn.004f9cdc
add ebx, 4
mov eax, dword [ebp - 8]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.00402e50
add ebx, 3
mov eax, dword [ebp - 8]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.004055cc
push eax
lea ecx, [ebp - 8]
mov eax, dword [esi]
xor edx, edx
call fcn.004f9c0c
mov edx, dword [ebp - 8]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov ebx, eax
mov eax, ebx
call fcn.004f9bf4
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.004f9cd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500dcb
lea eax, [ebp - 8]
mov edx, dword [0x4f9000]
call fcn.004058a8
ret

Function at 0x51b8bc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51b92b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.004045c0
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040e3f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51b932
lea eax, [ebp - 0x10c]
call fcn.00404350
ret
Function at 0x51cda8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x51cee6
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x51cebb
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x130], 0x128
lea eax, [ebp - 0x130]
push eax
push esi
call sub.kernel32.dll_Process32First
xor ebx, ebx
mov byte [ebp - 1], 0
jmp 0x51cea1
mov eax, dword [ebp - 0x128]
xor edx, edx
push edx
push eax
mov eax, edi
cdq
cmp edx, dword [esp + 4]
jne 0x51ce20
cmp eax, dword [esp]
pop edx
pop eax
jne 0x51ce94
mov bl, 1
lea eax, [ebp - 0x134]
lea edx, [ebp - 0x10c]
mov ecx, 0x104
call fcn.004045c0
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 8]
call fcn.00408a68
mov eax, dword [ebp - 8]
mov edx, 0x51cf00
call fcn.0040475c
je 0x51ce86
mov eax, dword [ebp - 8]
mov edx, 0x51cf18
call fcn.0040475c
je 0x51ce86
mov eax, dword [ebp - 8]
mov edx, 0x51cf2c
call fcn.0040475c
je 0x51ce86
mov eax, dword [ebp - 8]
mov edx, 0x51cf40
call fcn.0040475c
jne 0x51ce94
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51cec5
lea eax, [ebp - 0x130]
push eax
push esi
call sub.kernel32.dll_Process32Next
test eax, eax
jne 0x51ce0a
test bl, bl
jne 0x51ceb1
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51cec5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51ceed
lea eax, [ebp - 0x134]
call fcn.00404350
lea eax, [ebp - 8]
call fcn.00404350
ret
Function at 0x51cf50
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404800
lea esi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x51d0cf
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x51d09f
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [esi], 0x128
push esi
push ebx
call sub.kernel32.dll_Process32First
jmp 0x51d08d
lea eax, [ebp - 0x138]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.004045c0
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409770
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408a68
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408a68
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.0040475c
je 0x51d071
lea eax, [ebp - 0x144]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.004045c0
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408a68
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408a68
mov edx, dword [ebp - 0x148]
pop eax
call fcn.0040475c
jne 0x51d086
push 0
mov eax, dword [esi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
push esi
push ebx
call sub.kernel32.dll_Process32Next
test eax, eax
jne 0x51cfd2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51d0a9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51d0d6
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404374
lea eax, [ebp - 4]
call fcn.00404350
ret
Function at 0x51d0e0
Capabilities:
Create process on windows
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404800
mov eax, dword [ebp + 8]
call fcn.00404800
xor eax, eax
push ebp
push 0x51d347
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x51d314
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
push ebx
call sub.kernel32.dll_Process32First
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x51d2fc
cmp edi, dword [ebp - 0x124]
jne 0x51d2e9
call fcn.0040b87c
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004b0b98
cmp eax, 0x1f4
jge 0x51d304
cmp byte [0x52efe0], 1
jne 0x51d1a1
cmp eax, 0x1f4
jge 0x51d1b3
mov edx, 0x1f4
sub edx, eax
push edx
call sub.kernel32.dll_Sleep_1
jmp 0x51d1b3
cmp eax, 0xa
jge 0x51d1b3
mov edx, 0xa
sub edx, eax
push edx
call sub.kernel32.dll_Sleep_1
mov eax, dword [esi + 0x36c]
push dword [eax + 0x30]
mov eax, dword [esi + 0x370]
push dword [eax + 0x30]
mov eax, dword [esi + 0x374]
push dword [eax + 0x30]
lea eax, [ebp - 0x130]
mov edx, 3
call fcn.004046d0
mov edx, dword [ebp - 0x130]
mov eax, dword [ebp + 8]
call fcn.0040475c
jne 0x51d1f8
mov eax, dword [ebp + 8]
call fcn.0051cf50
jmp 0x51d210
push 0
mov eax, dword [ebp - 0x124]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
push 0x1f4
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp + 8]
mov edx, 0x51d360
call fcn.0040475c
je 0x51d238
mov eax, dword [ebp + 8]
mov edx, 0x51d378
call fcn.0040475c
jne 0x51d261
push 1
push 0
mov eax, dword [0x52efec]
call fcn.00404810
push eax
mov eax, dword [ebp - 4]
call fcn.00404810
push eax
push 0x51d38c
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x51d304
mov eax, dword [ebp + 8]
mov edx, 0x51d39c
call fcn.0040475c
je 0x51d29d
mov eax, dword [ebp + 8]
mov edx, 0x51d3b8
call fcn.0040475c
je 0x51d29d
mov eax, dword [ebp + 8]
mov edx, 0x51d3cc
call fcn.0040475c
je 0x51d29d
mov eax, dword [ebp + 8]
mov edx, 0x51d3e0
call fcn.0040475c
jne 0x51d2c3
push 1
push 0
mov eax, dword [0x52efe8]
call fcn.00404810
push eax
mov eax, dword [ebp - 4]
call fcn.00404810
push eax
push 0x51d38c
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x51d304
push 1
push 0
mov eax, dword [0x52efe4]
call fcn.00404810
push eax
mov eax, dword [ebp - 4]
call fcn.00404810
push eax
push 0x51d38c
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x51d304
lea eax, [ebp - 0x12c]
push eax
push ebx
call sub.kernel32.dll_Process32Next
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x51d154
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51d31e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51d34e
lea eax, [ebp - 0x130]
call fcn.00404350
lea eax, [ebp - 4]
call fcn.00404350
lea eax, [ebp + 8]
call fcn.00404350
ret
Function at 0x401e90
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
xor eax, eax
test ecx, ecx
je 0x401f77
test edx, edx
je 0x401f77
mov ebp, dword [esp + 0x28]
test ebp, ebp
mov dword [esp], ecx
je 0x401eda
mov ecx, 0x1505
xor edi, edi
nop dword [eax + eax]
movzx ebx, byte [edx + edi]
test ebx, ebx
je 0x401ee1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, ebx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x401ec0
jmp 0x401ee3
mov esi, 0x1505
jmp 0x401ee3
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 0x401f77
and ebx, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 4], edx
jmp 0x401f14
inc ebx
dec ebp
je 0x401f75
mov eax, ebx
and eax, edx
mov edi, dword [esp + 0x10]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x401f75
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401f10
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 0xc], eax
push eax
call fcn.00408a00
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401f10
push dword [esp + 0x28]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00408a20
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x401f10
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x401f77
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401f80
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 0x402089
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x402089
push ebx
call fcn.00408a00
add esp, 4
test eax, eax
je 0x401fda
mov ecx, 0x1505
xor ebp, ebp
nop word cs:[eax + eax]
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x401fe1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x401fc0
jmp 0x401fe3
mov esi, 0x1505
jmp 0x401fe3
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 0x402089
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov dword [esp], edx
jmp 0x402014
inc ebp
dec ebx
je 0x402087
mov eax, ebp
and eax, edx
mov edi, dword [esp + 0xc]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x402087
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402010
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.00408a00
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402010
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.00408a20
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402010
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x402087
cmp dword [eax + 4], 2
mov edi, 0
jne 0x402089
mov edi, dword [eax + 8]
jmp 0x402089
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4020c0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
xorps xmm0, xmm0
movsd qword [esp + 0x18], xmm0
cmp dword [ebp + 8], 0
je 0x402133
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x402133
push esi
call fcn.00408a00
add esp, 4
test eax, eax
je 0x40211a
mov ecx, 0x1505
xor ebx, ebx
nop word cs:[eax + eax]
movzx edx, byte [esi + ebx]
test edx, edx
je 0x402121
mov edi, ecx
shl edi, 5
add edi, ecx
add edi, edx
inc ebx
mov ecx, edi
cmp eax, ebx
jne 0x402100
jmp 0x402123
mov edi, 0x1505
jmp 0x402123
mov edi, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
lea esi, [edx - 1]
mov ebx, edx
sub ebx, 1
jae 0x40214b
movsd xmm0, qword [esp + 0x18]
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], eax
and esi, edi
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
jmp 0x402168
inc esi
dec edx
mov ebx, dword [esp + 0x10]
je 0x402133
mov eax, esi
and eax, ebx
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + eax*4]
cmp ebx, 0xffffffff
je 0x402133
mov eax, dword [ecx + 8]
cmp dword [eax + ebx*4], edi
jne 0x402160
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0xc], eax
push eax
mov dword [esp + 0xc], edx
call fcn.00408a00
mov edx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402160
push dword [esp + 4]
push dword [esp + 0x10]
push dword [ebp + 0xc]
call fcn.00408a20
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
add esp, 0xc
test eax, eax
jne 0x402160
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x402133
cmp dword [eax + 4], 3
jne 0x402133
movsd xmm0, qword [eax + 8]
movsd qword [esp + 0x18], xmm0
jmp 0x402133
Function at 0x402210
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 0x402319
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x402319
push ebx
call fcn.00408a00
add esp, 4
test eax, eax
je 0x40226a
mov ecx, 0x1505
xor ebp, ebp
nop word cs:[eax + eax]
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x402271
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x402250
jmp 0x402273
mov esi, 0x1505
jmp 0x402273
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 0x402319
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov dword [esp], edx
jmp 0x4022a4
inc ebp
dec ebx
je 0x402317
mov eax, ebp
and eax, edx
mov edi, dword [esp + 0xc]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x402317
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4022a0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.00408a00
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x4022a0
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.00408a20
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4022a0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x402317
cmp dword [eax + 4], 5
mov edi, 0
jne 0x402319
mov edi, dword [eax + 8]
jmp 0x402319
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402330
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 0x40243c
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x40243c
push ebx
call fcn.00408a00
add esp, 4
test eax, eax
je 0x40238a
mov ecx, 0x1505
xor ebp, ebp
nop word [eax + eax]
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x402391
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x402370
jmp 0x402393
mov esi, 0x1505
jmp 0x402393
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 0x40243c
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov dword [esp], edx
jmp 0x4023c4
inc ebp
dec ebx
je 0x402437
mov eax, ebp
and eax, edx
mov edi, dword [esp + 0xc]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x402437
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4023c0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.00408a00
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x4023c0
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.00408a20
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4023c0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x402437
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x40243c
mov edi, dword [eax + 8]
jmp 0x40243c
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402450
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
push 0x2e
push edi
call fcn.00408a70
add esp, 8
test eax, eax
je 0x4024b6
mov ebx, eax
jmp 0x402494
mov edi, ebx
inc edi
push 0x2e
push edi
call fcn.00408a70
add esp, 8
mov ebx, eax
test eax, eax
je 0x4024b6
mov eax, ebx
sub eax, edi
mov ecx, esi
mov edx, edi
push eax
call fcn.00401e90
add esp, 4
xor esi, esi
test eax, eax
je 0x402480
cmp dword [eax + 4], 4
jne 0x402480
mov esi, dword [eax + 8]
jmp 0x402480
xor eax, eax
test esi, esi
je 0x402516
test edi, edi
je 0x402516
push edi
call fcn.00408a00
add esp, 4
test eax, eax
je 0x4024fa
mov ecx, 0x1505
xor ebp, ebp
nop word cs:[eax + eax]
movzx edx, byte [edi + ebp]
test edx, edx
je 0x402501
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc ebp
mov ecx, ebx
cmp eax, ebp
jne 0x4024e0
jmp 0x402503
mov ebx, 0x1505
jmp 0x402503
mov ebx, ecx
mov dword [esp + 8], eax
mov ecx, dword [esi + 0x20]
lea ebp, [ecx - 1]
mov edx, ecx
sub edx, 1
jae 0x40251e
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
and ebp, ebx
mov dword [esp], esi
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 4], edx
jmp 0x402534
inc ebp
dec ecx
je 0x402514
mov eax, ebp
and eax, edx
mov esi, dword [esp + 0x14]
mov esi, dword [esi + eax*4]
cmp esi, 0xffffffff
je 0x402514
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + esi*4], ebx
jne 0x402530
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 0x10], eax
push eax
mov dword [esp + 0x10], ecx
call fcn.00408a00
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
add esp, 4
cmp eax, dword [esp + 8]
jne 0x402530
push dword [esp + 8]
push dword [esp + 0x14]
push edi
call fcn.00408a20
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add esp, 0xc
test eax, eax
jne 0x402530
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + esi*4]
jmp 0x402516
Function at 0x402640
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 0x4026ad
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4026ad
push esi
call fcn.00408a00
add esp, 4
test eax, eax
je 0x40268a
mov ecx, 0x1505
xor edi, edi
nop dword [eax]
movzx edx, byte [esi + edi]
test edx, edx
je 0x402691
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x402670
jmp 0x402693
mov ebx, 0x1505
jmp 0x402693
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 0x4026b5
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 0x4026c4
inc ebp
dec edi
je 0x4026ab
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x4026ab
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x4026c0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408a00
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4026c0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00408a20
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4026c0
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x4026ad
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x4026ad