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

Disassembly:
sub esp, 0x10c
push ebx
push ebp
mov al, 2
push esi
push edi
xor ebx, ebx
mov byte [esp + 0x10], al
mov byte [esp + 0x11], al
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x55]
mov byte [esp + 0x54], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x120]
push ebx
stosb byte es:[edi], al
xor eax, eax
push 0x80
mov dword [esp + 0x28], eax
push 3
mov dword [esp + 0x30], eax
push ebx
push 3
mov dword [esp + 0x3c], eax
push 0xc0000000
push ecx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x2e], 0x32
mov byte [esp + 0x2f], 0x30
mov byte [esp + 0x30], 3
mov byte [esp + 0x31], 1
mov dword [esp + 0x34], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401e22
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
lea edx, [esp + 0x38]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommState]
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], 0x2580
push eax
push esi
mov byte [esp + 0x52], 8
mov byte [esp + 0x53], bl
mov byte [esp + 0x54], bl
call dword [sym.imp.KERNEL32.dll_SetCommState]
lea ecx, [esp + 0x1c]
mov eax, 5
push ecx
push esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
push 0xf
push esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call ebp
lea edx, [esp + 0x34]
push ebx
push edx
lea eax, [esp + 0x18]
push 6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401ead
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
xor edi, edi
lea ecx, [esp + 0x18]
push ebx
push ecx
lea edx, [esp + 0x5c]
push 0xc8
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], ebx
jne 0x401edc
push 0xa
call ebp
inc edi
cmp edi, 3
jb 0x401eaf
mov edi, dword [esp + 0x30]
jmp 0x401ef3
lea eax, [esp + 0x54]
push eax
push str.Device_Info:__s
call fcn.00401000
add esp, 8
mov edi, 1
cmp dword [esp + 0x18], ebx
jne 0x401f06
push str.Fail_to_get_DeviceInfo_
call fcn.00401000
add esp, 4
lea ecx, [esp + 0x38]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommState]
lea edx, [esp + 0x38]
mov dword [esp + 0x3c], 0xe100
push edx
push esi
mov byte [esp + 0x52], 8
mov byte [esp + 0x53], bl
mov byte [esp + 0x54], bl
call dword [sym.imp.KERNEL32.dll_SetCommState]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x402000
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x402022
push 0xce
push str.srchashes_sha2_sha256.c
push str.md___NULL
call fcn.00406420
add esp, 0xc
mov dword [esi + 0x28], 0
xor eax, eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0x6a09e667
mov dword [esi + 0xc], 0xbb67ae85
mov dword [esi + 0x10], 0x3c6ef372
mov dword [esi + 0x14], 0xa54ff53a
mov dword [esi + 0x18], 0x510e527f
mov dword [esi + 0x1c], 0x9b05688c
mov dword [esi + 0x20], 0x1f83d9ab
mov dword [esi + 0x24], 0x5be0cd19
pop esi
pop ebp
ret
Function at 0x405190
Capabilities:
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
push ebx
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
sub eax, 2
je 0x40524a
sub eax, 1
je 0x4051fa
sub eax, 1
jne 0x4052fd
movzx eax, byte [ebp - 8]
mov cl, byte [esi + edx*4 + 0x18]
xor cl, byte [eax + 0x429430]
movzx eax, byte [ebp - 7]
mov bl, byte [eax + 0x429330]
movzx eax, byte [ebp - 6]
xor bl, byte [esi + edx*4 + 0x19]
mov ch, byte [eax + 0x429330]
movzx eax, byte [ebp - 5]
xor ch, byte [esi + edx*4 + 0x1a]
mov bh, byte [eax + 0x429430]
xor bh, byte [esi + edx*4 + 0x1b]
jmp 0x405206
mov bh, byte [ebp - 5]
mov ch, byte [ebp - 6]
mov bl, byte [ebp - 7]
mov cl, byte [ebp - 8]
movzx eax, cl
mov cl, byte [esi + edx*4 + 0x10]
xor cl, byte [eax + 0x429430]
movzx eax, bl
mov byte [ebp - 1], cl
mov bl, byte [eax + 0x429430]
xor bl, byte [esi + edx*4 + 0x11]
movzx eax, ch
mov al, byte [eax + 0x429330]
xor al, byte [esi + edx*4 + 0x12]
mov byte [ebp - 2], al
movzx eax, bh
mov bh, byte [ebp - 2]
mov al, byte [eax + 0x429330]
xor al, byte [esi + edx*4 + 0x13]
mov byte [ebp + 0x17], al
mov al, cl
jmp 0x405259
mov al, byte [ebp - 5]
mov bh, byte [ebp - 6]
mov bl, byte [ebp - 7]
mov byte [ebp + 0x17], al
mov al, byte [ebp - 8]
movzx ecx, byte [esi + edx*4 + 8]
movzx eax, al
movzx eax, byte [eax + 0x429330]
xor ecx, eax
movzx eax, byte [esi + edx*4]
movzx ecx, byte [ecx + 0x429330]
xor ecx, eax
movzx eax, byte [ecx + 0x429430]
mov byte [ebp - 8], al
movzx eax, bl
movzx ecx, byte [eax + 0x429430]
movzx eax, byte [esi + edx*4 + 9]
xor ecx, eax
movzx eax, byte [esi + edx*4 + 1]
movzx ecx, byte [ecx + 0x429330]
xor ecx, eax
movzx eax, byte [ecx + 0x429330]
mov byte [ebp - 7], al
movzx eax, bh
movzx ecx, byte [eax + 0x429330]
movzx eax, byte [esi + edx*4 + 0xa]
xor ecx, eax
movzx eax, byte [esi + edx*4 + 2]
movzx ecx, byte [ecx + 0x429430]
xor ecx, eax
movzx eax, byte [ecx + 0x429430]
mov byte [ebp - 6], al
movzx eax, byte [ebp + 0x17]
movzx ecx, byte [eax + 0x429430]
movzx eax, byte [esi + edx*4 + 0xb]
xor ecx, eax
movzx eax, byte [esi + edx*4 + 3]
movzx ecx, byte [ecx + 0x429430]
xor ecx, eax
movzx eax, byte [ecx + 0x429330]
mov byte [ebp - 5], al
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00405320
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405360
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
push edi
mov edi, 0x429310
mov dword [ebp - 8], eax
sub edi, ecx
add eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0xc], eax
xor bl, bl
mov dword [ebp - 4], 8
mov byte [eax], 0
nop dword [eax]
movzx eax, byte [edi + esi]
push 0x14d
push eax
movzx eax, byte [esi]
push eax
call fcn.004050a0
xor bl, al
lea esi, [esi + 1]
mov eax, dword [ebp - 0xc]
add esp, 0xc
sub dword [ebp - 4], 1
mov byte [eax], bl
jne 0x405390
mov eax, dword [ebp - 8]
add edi, 8
mov ecx, dword [ebp + 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 4
jl 0x405378
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a080
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
push edi
test esi, esi
jne 0x40a0a3
push 0x29
push str.srcmiscmem_neq.c
push str.a___NULL
call fcn.00406420
add esp, 0xc
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x40a0be
push 0x2a
push str.srcmiscmem_neq.c
push str.b___NULL
call fcn.00406420
add esp, 0xc
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40a0d7
sub edi, esi
mov al, byte [edi + esi]
lea esi, [esi + 1]
xor al, byte [esi - 1]
or bl, al
sub ecx, 1
jne 0x40a0c7
mov al, bl
shr al, 4
or bl, al
movzx eax, bl
mov ecx, eax
shr ecx, 2
or ecx, eax
mov eax, ecx
shr eax, 1
pop edi
or eax, ecx
pop esi
and eax, 1
pop ebx
pop ebp
ret
Function at 0x420c3c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004208fc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219

Function at 0x2006b02b
Capabilities:
Allocate or change rwx memory

Disassembly:
pushal
pushfd
push 0x2006b00b
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x2006b018
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x2006b04c], eax
jmp 0x2006b050
push 0x2006b062
push 0x40
push 0x10
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x2006b066
mov eax, dword [0x2006b04c]
mov byte [eax], 0x68
mov dword [eax + 1], 0x2006b080
mov byte [eax + 5], 0xc3
popfd
popal
jmp 0x2006b0d5
pushal
pushfd
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x2006b0d1], eax
mov dword [sym.imp.KERNEL32.dll_VirtualProtect], reloc.KERNEL32.dll_VirtualProtect
popfd
popal
push section..adata
ret
Function at 0x40a5af
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x40a5be
pop dword [ebp - 4]
mov eax, 0x40a5be
sub dword [ebp - 4], eax
push 0x40
push 0x1000
push 0x40047
push 0
mov eax, 0xa8de22c9
sub eax, 0xa89e11a9
add eax, dword [ebp - 4]
call dword [eax]
mov ecx, 0x6157b9a1
add ecx, 0x9ea8a07f
mov edi, eax
mov ebx, 0xeabff776
sub ebx, 0xea7d8176
add ebx, dword [ebp - 4]
mov esi, 0xabb3f584
sub esi, 0x2305fdef
mov edx, dword [ebx]
xor edx, esi
mov dword [edi], edx
add edi, 4
add ebx, 0xf1905aa5
sub ebx, 0xf1905aa1
loop 0x40a618
add eax, 0x6855966b
sub eax, 0x68543b18
mov ebx, eax
add eax, 0xf105ed1e
sub eax, 0xf105ed19
mov ecx, 0x3b93331b
sub ecx, 0x3b53331b
add ecx, dword [ebp - 4]
call ebx
leave
ret

Function at 0x410f5c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42104c]
jne 0x413fe3
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x422720], eax
mov dword [0x42271c], ecx
mov dword [0x422718], edx
mov dword [0x422714], ebx
mov dword [0x422710], esi
mov dword [0x42270c], edi
mov word [0x422738], ss
mov word [0x42272c], cs
mov word [0x422708], ds
mov word [0x422704], es
mov word [0x422700], fs
mov word [0x4226fc], gs
pushfd
pop dword [0x422730]
mov eax, dword [ebp]
mov dword [0x422724], eax
mov eax, dword [ebp + 4]
mov dword [0x422728], eax
lea eax, [ebp + 8]
mov dword [0x422734], eax
mov eax, dword [ebp - 0x320]
mov dword [0x422670], 0x10001
mov eax, dword [0x422728]
mov dword [0x422624], eax
mov dword [0x422618], 0xc0000409
mov dword [0x42261c], 1
mov eax, dword [0x42104c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x421050]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x422668], eax
push 1
call fcn.00415efd
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x402cf0
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x422668], 0
jne 0x4140cf
push 1
call fcn.00415efd
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x402630
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
xor eax, eax
test ecx, ecx
je 0x402717
test edx, edx
je 0x402717
mov ebp, dword [esp + 0x28]
test ebp, ebp
mov dword [esp], ecx
je 0x40267a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
movzx ebx, byte [edx + edi]
test ebx, ebx
je 0x402681
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, ebx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x402660
jmp 0x402683
mov esi, 0x1505
jmp 0x402683
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 0x402717
and ebx, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 4], edx
jmp 0x4026b4
inc ebx
dec ebp
je 0x402715
mov eax, ebx
and eax, edx
mov edi, dword [esp + 0x10]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x402715
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4026b0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 0xc], eax
push eax
call fcn.004094f0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x4026b0
push dword [esp + 0x28]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00409520
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x4026b0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x402717
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402720
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 0x402829
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x402829
push ebx
call fcn.004094f0
add esp, 4
test eax, eax
je 0x40277a
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 0x402781
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x402760
jmp 0x402783
mov esi, 0x1505
jmp 0x402783
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 0x402829
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov dword [esp], edx
jmp 0x4027b4
inc ebp
dec ebx
je 0x402827
mov eax, ebp
and eax, edx
mov edi, dword [esp + 0xc]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x402827
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4027b0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.004094f0
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x4027b0
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.00409520
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4027b0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x402827
cmp dword [eax + 4], 2
mov edi, 0
jne 0x402829
mov edi, dword [eax + 8]
jmp 0x402829
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402860
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 0x4028c8
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4028c8
push esi
call fcn.004094f0
add esp, 4
test eax, eax
je 0x4028aa
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x4028b1
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x402890
jmp 0x4028b3
mov ebp, 0x1505
jmp 0x4028b3
mov ebp, ecx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x2c]
mov edi, dword [ecx + 0x20]
lea ebx, [edi - 1]
mov edx, edi
sub edx, 1
jae 0x4028d4
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 + 0xc], eax
mov dword [esp], edx
jmp 0x4028f4
inc ebx
dec edi
je 0x4028c8
mov eax, ebx
and eax, edx
mov esi, dword [esp + 0xc]
mov esi, dword [esi + eax*4]
cmp esi, 0xffffffff
je 0x4028c8
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x4028f0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 8], eax
push eax
call fcn.004094f0
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x4028f0
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x38]
call fcn.00409520
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x4028f0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x4028c8
cmp dword [eax + 4], 3
jne 0x4028c8
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x4028c8
Function at 0x4029a0
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 0x402aa9
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x402aa9
push ebx
call fcn.004094f0
add esp, 4
test eax, eax
je 0x4029fa
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 0x402a01
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4029e0
jmp 0x402a03
mov esi, 0x1505
jmp 0x402a03
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 0x402aa9
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov dword [esp], edx
jmp 0x402a34
inc ebp
dec ebx
je 0x402aa7
mov eax, ebp
and eax, edx
mov edi, dword [esp + 0xc]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x402aa7
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402a30
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.004094f0
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402a30
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.00409520
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402a30
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x402aa7
cmp dword [eax + 4], 5
mov edi, 0
jne 0x402aa9
mov edi, dword [eax + 8]
jmp 0x402aa9
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402c00
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.00409570
add esp, 8
test eax, eax
je 0x402c66
mov ebx, eax
jmp 0x402c44
mov edi, ebx
inc edi
push 0x2e
push edi
call fcn.00409570
add esp, 8
mov ebx, eax
test eax, eax
je 0x402c66
mov eax, ebx
sub eax, edi
mov ecx, esi
mov edx, edi
push eax
call fcn.00402630
add esp, 4
xor esi, esi
test eax, eax
je 0x402c30
cmp dword [eax + 4], 4
jne 0x402c30
mov esi, dword [eax + 8]
jmp 0x402c30
xor eax, eax
test esi, esi
je 0x402cc6
test edi, edi
je 0x402cc6
push edi
call fcn.004094f0
add esp, 4
test eax, eax
je 0x402caa
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [edi + ebp]
test edx, edx
je 0x402cb1
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc ebp
mov ecx, ebx
cmp eax, ebp
jne 0x402c90
jmp 0x402cb3
mov ebx, 0x1505
jmp 0x402cb3
mov ebx, ecx
mov dword [esp + 8], eax
mov ecx, dword [esi + 0x20]
lea ebp, [ecx - 1]
mov edx, ecx
sub edx, 1
jae 0x402cce
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 0x402ce4
inc ebp
dec ecx
je 0x402cc4
mov eax, ebp
and eax, edx
mov esi, dword [esp + 0x14]
mov esi, dword [esi + eax*4]
cmp esi, 0xffffffff
je 0x402cc4
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + esi*4], ebx
jne 0x402ce0
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.004094f0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
add esp, 4
cmp eax, dword [esp + 8]
jne 0x402ce0
push dword [esp + 8]
push dword [esp + 0x14]
push edi
call fcn.00409520
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add esp, 0xc
test eax, eax
jne 0x402ce0
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + esi*4]
jmp 0x402cc6
Function at 0x402df0
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 0x402e5d
mov esi, dword [esp + 0x28]
test esi, esi
je 0x402e5d
push esi
call fcn.004094f0
add esp, 4
test eax, eax
je 0x402e3a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x402e41
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x402e20
jmp 0x402e43
mov ebx, 0x1505
jmp 0x402e43
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 0x402e65
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 0x402e74
inc ebp
dec edi
je 0x402e5b
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x402e5b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x402e70
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.004094f0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402e70
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409520
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402e70
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x402e5d
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x402e5d