joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fe88
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x40fece
call fcn.0041a6a3
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40fece
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40ff11
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x40fefa
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40fefa
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40ff0e
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4150bf
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4150f8
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041503f
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040e32c
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x41701d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x417060
call fcn.0041a6a3
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x417060
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41707b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00416bd4
test ebx, ebx
mov esi, eax
je 0x417079
test edi, edi
je 0x417079
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x417af3
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4753a8
call fcn.0044af85
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x417b18
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x417b64
call fcn.0041b28b
push eax
lea ecx, [ebp - 0x10]
call fcn.00401cd0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00417087
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401410
mov eax, esi
call fcn.0044b05d
ret 8

Function at 0x4491de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a0064]
jne 0x4491e8
repz ret
jmp fcn.004526ac
Function at 0x468a61
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00452046
xor ebx, ebx
cmp dword [0x4a3f7c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x468b36
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x468aa1
xor eax, eax
jmp 0x468bfa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4838c0
push edi
call esi
cmp eax, ebx
je 0x468a9a
push eax
call fcn.00451fe3
mov dword [esp], 0x4838b0
push edi
mov dword [0x4a3f7c], eax
call esi
push eax
call fcn.00451fe3
mov dword [esp], 0x48389c
push edi
mov dword [0x4a3f80], eax
call esi
push eax
call fcn.00451fe3
mov dword [0x4a3f84], eax
lea eax, [ebp - 8]
push eax
call fcn.0044b138
test eax, eax
pop ecx
pop ecx
je 0x468b04
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045292a
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x468b36
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00451fe3
cmp eax, ebx
pop ecx
mov dword [0x4a3f8c], eax
je 0x468b36
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00451fe3
pop ecx
mov dword [0x4a3f88], eax
mov eax, dword [0x4a3f88]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x468baf
cmp dword [0x4a3f8c], esi
je 0x468baf
push eax
call fcn.0045204f
pop ecx
call eax
cmp eax, ebx
je 0x468b7c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4a3f8c]
call fcn.0045204f
pop ecx
call eax
test eax, eax
je 0x468b7c
test byte [ebp - 0x18], 1
jne 0x468baf
lea eax, [ebp - 0xc]
push eax
call fcn.0044b1e7
test eax, eax
pop ecx
je 0x468b97
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045292a
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x468ba6
or dword [ebp + 0x10], 0x200000
jmp 0x468be0
or dword [ebp + 0x10], 0x40000
jmp 0x468be0
mov eax, dword [0x4a3f80]
cmp eax, esi
je 0x468be0
push eax
call fcn.0045204f
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x468be0
mov eax, dword [0x4a3f84]
cmp eax, esi
je 0x468be0
push dword [ebp - 4]
push eax
call fcn.0045204f
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4a3f7c]
call fcn.0045204f
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4732f2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4a0064]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0047316a
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0044b850
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x473341
cmp dword [ebp - 0x1c], 5
jb 0x473359
jmp 0x473355
cmp dword [ebp - 0x10], 1
jne 0x473359
cmp dword [ebp - 0x1c], 4
ja 0x473355
jne 0x473359
cmp dword [ebp - 0x18], 0
jbe 0x473359
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4874a4
call fcn.00472f27
test eax, eax
jge 0x47337a
mov byte [0x4a1664], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004491de
add ebp, 0x78
leave
ret
Function at 0x403e69
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push 0x41e804
push ecx
call fcn.00405ff5
mov esi, eax
mov dword [esp + 0x20], esi
pop ecx
pop ecx
test esi, esi
je 0x40400c
push 2
push 0
push esi
call fcn.004067d0
add esp, 0xc
test eax, eax
jne 0x40400c
push esi
call fcn.004066d5
mov ebx, eax
pop ecx
test ebx, ebx
jle 0x40400c
lea ecx, [ebx + 1]
push edi
push ecx
call fcn.00405529
mov edi, eax
pop ecx
test edi, edi
jne 0x403ec5
push 0xa
jmp 0x403ee9
push 0
push 0
push esi
call fcn.004067d0
add esp, 0xc
test eax, eax
jne 0x403ee7
push esi
push ebx
push 1
push edi
call fcn.00406299
add esp, 0x10
cmp eax, ebx
je 0x403eef
push 6
pop ebp
jmp 0x404002
lea edx, [esp + 0x18]
mov byte [edi + ebx], 0
mov ecx, 0x41e81c
mov dword [esp + 0x18], edi
mov byte [esp + 0x13], 0
xor ebp, ebp
call fcn.00403db5
test eax, eax
je 0x403ffa
mov esi, dword [esp + 0x28]
mov cl, byte [eax]
cmp cl, 0x23
je 0x403fe0
cmp cl, 0x3b
je 0x403fe0
mov edx, eax
mov ecx, 0x41e820
call fcn.00403d8d
mov ebx, eax
mov dword [esp + 0x14], ebx
mov al, byte [ebx]
test al, al
je 0x403fe0
cmp al, 0x5b
jne 0x403f95
inc ebx
lea edx, [esp + 0x14]
mov ecx, 0x41e818
mov dword [esp + 0x14], ebx
call fcn.00403db5
test eax, eax
je 0x403f8e
lea edx, [esp + 0x14]
mov ecx, 0x41e820
call fcn.00403db5
test eax, eax
jne 0x403f8e
push 8
push 0x41e80c
push ebx
call fcn.004100ee
add esp, 0xc
test eax, eax
sete byte [esp + 0x13]
jmp 0x403fe0
mov byte [esp + 0x13], 0
jmp 0x403fe0
cmp byte [esp + 0x13], 0
je 0x403fe0
lea edx, [esp + 0x14]
mov ecx, 0x41e814
call fcn.00403db5
test eax, eax
je 0x403fe0
mov edx, ebx
call fcn.00403e0f
test eax, eax
js 0x403fe0
cmp eax, 1
jae 0x403fe0
imul ebx, eax, 0x258
push 0x257
push dword [esp + 0x18]
add ebx, esi
push ebx
call fcn.004055a0
add esp, 0xc
mov byte [ebx + 0x257], 0
inc ebp
lea edx, [esp + 0x18]
mov ecx, 0x41e81c
call fcn.00403db5
test eax, eax
jne 0x403f18
mov esi, dword [esp + 0x1c]
dec ebp
neg ebp
sbb ebp, ebp
and ebp, 5
push edi
call fcn.004054fe
pop ecx
pop edi
jmp 0x40400f
push 6
pop ebp
test esi, esi
je 0x40401a
push esi
call fcn.004068bf
pop ecx
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4017c0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor eax, eax
cmp dword [esp + 0x20], 0
je 0x4018a0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4018a0
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40180a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x401811
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x4017f0
jmp 0x401813
mov esi, 0x1505
jmp 0x401813
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx + 0x20]
lea edi, [ebx - 1]
mov edx, ebx
sub edx, 1
mov dword [esp + 8], edx
jb 0x4018a0
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x401844
inc edi
dec ebx
je 0x40189e
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40189e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x401840
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.00408d20
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401840
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.00408d40
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x401840
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x4018a0
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4018b0
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 0x4019b1
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4019b1
push ebx
call fcn.00408d20
add esp, 4
test eax, eax
je 0x40190a
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 0x401911
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4018f0
jmp 0x401913
mov esi, 0x1505
jmp 0x401913
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 0x4019b1
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401944
inc ebp
dec ebx
je 0x4019af
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4019af
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401940
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408d20
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401940
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00408d40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401940
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4019af
cmp dword [eax + 4], 2
mov edi, 0
jne 0x4019b1
mov edi, dword [eax + 8]
jmp 0x4019b1
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4019e0
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 0x401a4b
mov esi, dword [esp + 0x30]
test esi, esi
je 0x401a4b
push esi
call fcn.00408d20
add esp, 4
test eax, eax
je 0x401a2a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x401a31
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x401a10
jmp 0x401a33
mov ebp, 0x1505
jmp 0x401a33
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 0x401a57
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 0x401a74
inc ebx
dec edi
je 0x401a4b
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x401a4b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x401a70
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408d20
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x401a70
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.00408d40
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x401a70
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x401a4b
cmp dword [eax + 4], 3
jne 0x401a4b
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x401a4b

Function at 0x401b10
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 0x401c11
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x401c11
push ebx
call fcn.00408d20
add esp, 4
test eax, eax
je 0x401b6a
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 0x401b71
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x401b50
jmp 0x401b73
mov esi, 0x1505
jmp 0x401b73
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 0x401c11
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401ba4
inc ebp
dec ebx
je 0x401c0f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x401c0f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401ba0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408d20
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401ba0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00408d40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401ba0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x401c0f
cmp dword [eax + 4], 5
mov edi, 0
jne 0x401c11
mov edi, dword [eax + 8]
jmp 0x401c11
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401c40
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 0x401d44
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x401d44
push ebx
call fcn.00408d20
add esp, 4
test eax, eax
je 0x401c9a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x401ca1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x401c80
jmp 0x401ca3
mov esi, 0x1505
jmp 0x401ca3
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 0x401d44
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401cd4
inc ebp
dec ebx
je 0x401d3f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x401d3f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401cd0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408d20
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401cd0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00408d40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401cd0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x401d3f
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x401d44
mov edi, dword [eax + 8]
jmp 0x401d44
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401d50
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
push 0x2e
push ebp
call fcn.00408d90
add esp, 8
test eax, eax
je 0x401dbe
mov esi, eax
jmp 0x401d94
mov ebp, esi
inc ebp
push 0x2e
push ebp
call fcn.00408d90
add esp, 8
mov esi, eax
test eax, eax
je 0x401dbe
mov eax, esi
xor eax, ebp
mov ecx, ebp
not ecx
and ecx, esi
add ecx, ecx
sub ecx, eax
push ecx
push ebp
push edi
call fcn.004017c0
add esp, 0xc
xor edi, edi
test eax, eax
je 0x401d80
cmp dword [eax + 4], 4
jne 0x401d80
mov edi, dword [eax + 8]
jmp 0x401d80
xor eax, eax
test edi, edi
je 0x401e1b
test ebp, ebp
je 0x401e1b
push ebp
call fcn.00408d20
add esp, 4
test eax, eax
je 0x401dfb
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
movzx edx, byte [ebp + ebx]
test edx, edx
je 0x401e02
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebx
mov ecx, esi
cmp eax, ebx
jne 0x401de0
jmp 0x401e04
mov esi, 0x1505
jmp 0x401e04
mov esi, ecx
mov dword [esp + 4], eax
mov ecx, dword [edi + 0x20]
lea ebx, [ecx - 1]
mov eax, ecx
sub eax, 1
mov dword [esp + 0x14], eax
jae 0x401e23
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
and ebx, esi
mov dword [esp], edi
mov eax, dword [edi + 4]
mov dword [esp + 0x10], eax
jmp 0x401e44
inc ebx
dec ecx
je 0x401e19
mov eax, ebx
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x401e19
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + edi*4], esi
jne 0x401e40
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 0xc], eax
push eax
mov dword [esp + 0xc], ecx
call fcn.00408d20
mov ecx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x401e40
push dword [esp + 4]
push dword [esp + 0x10]
push ebp
call fcn.00408d40
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x401e40
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x401e1b
Function at 0x401f40
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 0x401fad
mov esi, dword [esp + 0x28]
test esi, esi
je 0x401fad
push esi
call fcn.00408d20
add esp, 4
test eax, eax
je 0x401f8a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x401f91
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x401f70
jmp 0x401f93
mov ebx, 0x1505
jmp 0x401f93
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 0x401fb5
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 0x401fc4
inc ebp
dec edi
je 0x401fab
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x401fab
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x401fc0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408d20
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401fc0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00408d40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401fc0
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x401fad
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x401fad
Function at 0x4021d0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, 0xffffffff
cmp dword [esp + 0x24], 0
je 0x4022e2
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4022e2
cmp dword [esp + 0x2c], 0
je 0x4022e2
push esi
call fcn.00408d20
add esp, 4
test eax, eax
je 0x40223a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x402241
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x402220
jmp 0x402243
mov ebx, 0x1505
jmp 0x402243
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x20]
lea edi, [esi - 1]
mov edx, esi
sub edx, 1
mov dword [esp + 8], edx
jae 0x4022ea
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x4022a7
call fcn.004023e0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x4022e2
push ecx
call fcn.00408d20
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x20]
lea edi, [esi - 1]
mov eax, esi
sub eax, 1
mov dword [esp + 8], eax
jae 0x40235d
mov ebp, 0xffffffff
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov esi, dword [esp + 0x28]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov dword [eax + ebp*4], edx
mov eax, dword [ecx + 0x10]
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], ebp
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebx
inc dword [ecx + 0x18]
mov eax, dword [ecx]
mov dword [esi], eax
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x402308
inc edi
dec esi
je 0x40225c
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x402261
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x402300
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.00408d20
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402300
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.00408d40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402300
mov eax, 0xffffffff
jmp 0x4022e2
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x402378
inc edi
dec esi
je 0x4022a2
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x4022a7
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x402370
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.00408d20
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402370
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.00408d40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402370
jmp 0x4022a7