joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b5cce
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x1b2d2024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
xor eax, eax
mov dword [ebp - 0x20], eax
xorps xmm0, xmm0
movsd qword [ebp - 0x28], xmm0
push eax
push 8
push 0x1a2d4411
push edi
push ebx
call 0xff7d46ce
add esp, 0x14
test al, al
jne 0x4b5d7b
push 0
push 8
push 0x1a2d441a
push edi
push ebx
call 0xff7d46ce
add esp, 0x14
test al, al
jne 0x4b5d5e
push 0
push 9
push 0x1a2d4423
push edi
push ebx
call 0xff7d46ce
add esp, 0x14
test al, al
je 0x4b5d72
mov byte [ebp - 0x1d], 9
mov dword [ebp - 0x28], 0x31637661
mov dword [ebp - 0x24], 0x3034362e
mov byte [ebp - 0x20], 0x30
mov eax, 9
jmp 0x4b5d96
mov byte [ebp - 0x1d], 9
mov dword [ebp - 0x28], 0x31637661
mov dword [ebp - 0x24], 0x3044342e
jmp 0x4b5d8d
mov dword [ebp - 0x2c], 0
jmp 0x4b5dd5
mov byte [ebp - 0x1d], 9
mov dword [ebp - 0x28], 0x31637661
mov dword [ebp - 0x24], 0x3032342e
mov byte [ebp - 0x20], 0x30
mov eax, 8
mov byte [ebp - 0x1f], 0
mov dword [ebp - 0x2c], 0
cmp edi, eax
jb 0x4b5e2d
add ebx, eax
sub edi, eax
js 0x4b5e33
je 0x4b5db9
test ebx, ebx
je 0x4b5e30
lea eax, [ebp - 0x2c]
push eax
push edi
push ebx
call 0xff908dae
add esp, 0xc
test al, al
je 0x4b5dd5
mov eax, dword [ebp - 0x2c]
cmp eax, 0x100
jb 0x4b5df4
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call 0xff6d867e
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call 0xffc423eb
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, eax
shr ecx, 4
mov cl, byte [ecx + 0x1a262718]
lea edx, [ebp - 0x12]
mov byte [edx], cl
and eax, 0xf
mov al, byte [eax + 0x1a262718]
mov byte [edx + 1], al
lea edi, [ebp - 0x28]
mov ecx, edi
push 2
push edx
call 0xff035b0e
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
movsd xmm0, qword [edi]
movsd qword [esi], xmm0
jmp 0x4b5de0
int3
int3
int3
Function at 0x40a3d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
lodsd eax, dword [esi]
inc ebp
or byte [ecx + 0x70851455], al
je 0x40a410
mov edx, dword [ecx]
test al, 0x51
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40a40a
push esi
mov esi, dword [0xc273c098]
call esi
test eax, eax
pop edx
add eax, 0x8c25b5e
invalid
xor eax, eax
pop ebp
ret 8
mov eax, 0x433b
pop ebp
ret 8
Function at 0x10003f56
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10008a80]
jne 0x10003f60
repz ret
jmp fcn.100050dd

Function at 0x10004d72
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10008a80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100012f4
and dword [ebp - 0x14], 0
cmp dword [0x1000ab5c], 0
mov dword [ebp - 0x18], eax
jne 0x10004e25
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10004ecd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10004ecd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1000ab5c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1000ab60], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1000ab64], eax
call edi
push eax
call esi
mov dword [0x1000ab6c], eax
test eax, eax
je 0x10004e25
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1000ab68], eax
mov eax, dword [0x1000ab68]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10004e7e
cmp dword [0x1000ab6c], ecx
je 0x10004e7e
push eax
call esi
push dword [0x1000ab6c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10004e7e
test ebx, ebx
je 0x10004e7e
call edi
test eax, eax
je 0x10004e75
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10004e75
test byte [ebp - 8], 1
jne 0x10004e7e
or dword [ebp + 0x10], 0x200000
jmp 0x10004eb1
mov eax, dword [0x1000ab60]
cmp eax, dword [ebp - 0x18]
je 0x10004eb1
push eax
call esi
test eax, eax
je 0x10004eb1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10004eb1
mov eax, dword [0x1000ab64]
cmp eax, dword [ebp - 0x18]
je 0x10004eb1
push eax
call esi
test eax, eax
je 0x10004eb1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000ab5c]
call esi
test eax, eax
je 0x10004ecd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10004ecf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003f56
leave
ret
Function at 0x8c2058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8c21a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8c207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8c206a
add dl, dl
jne 0x8c2089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8c20dc
xor eax, eax
add dl, dl
jne 0x8c2096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8c217d
add dl, dl
jne 0x8c20a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c20b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c20bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c20c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8c20d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8c2075
mov eax, 1
add dl, dl
jne 0x8c20ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c20f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8c20e1
sub eax, ebx
mov ebx, 1
jne 0x8c2128
mov ecx, 1
add dl, dl
jne 0x8c210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8c2119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8c2105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8c2075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8c213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8c214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8c2136
cmp eax, 0x7d00
jae 0x8c216d
cmp eax, 0x500
jb 0x8c2168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8c2075
cmp eax, 0x7f
ja 0x8c2170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8c2075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8c219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8c2075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x406054], 1
mov dword [0x406050], 1
mov dword [0x40604c], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40600c], eax
mov eax, dword [0x406060]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x406074]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40605c]
mov dword [eax], edx
call sym.__setargv
cmp dword [0x403018], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], sym.__matherr
call sym.___mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x4017e0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x401840
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x406068]
test esi, esi
jle 0x401960
mov eax, dword [0x40606c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401874
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4018f7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401860
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401987
mov eax, dword [0x40606c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x40606c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401967
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4018f0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401900
add dword [0x406068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40606c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4018f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40187e
mov eax, dword [0x40606c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
nop

Function at 0x401ea0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40607c]
sub esp, 4
test ebx, ebx
je 0x401ef5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401eee
test esi, esi
je 0x401eee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ed0
mov dword [esp], 0x406084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4022a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4022c5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4022d0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4022c5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402318
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40230e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40231a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402300
xor eax, eax
pop ebx
pop esi
ret

Function at 0x10007ff6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000da80]
jne 0x10008000
repz ret
jmp fcn.1000917d

Function at 0x10008e12
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000da80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10005398
and dword [ebp - 0x14], 0
cmp dword [0x1000e45c], 0
mov dword [ebp - 0x18], eax
jne 0x10008ec5
push 0x1000b87c
call dword [0x1000a07c]
mov ebx, eax
test ebx, ebx
je 0x10008f6d
mov edi, dword [fcn.1000a0c0]
push 0x1000b870
push ebx
call edi
test eax, eax
je 0x10008f6d
mov esi, dword [fcn.1000a098]
push eax
call esi
push 0x1000b860
push ebx
mov dword [0x1000e45c], eax
call edi
push eax
call esi
push 0x1000b84c
push ebx
mov dword [0x1000e460], eax
call edi
push eax
call esi
push 0x1000b830
push ebx
mov dword [0x1000e464], eax
call edi
push eax
call esi
mov dword [0x1000e46c], eax
test eax, eax
je 0x10008ec5
push 0x1000b818
push ebx
call edi
push eax
call esi
mov dword [0x1000e468], eax
mov eax, dword [0x1000e468]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.1000a090]
cmp eax, ecx
je 0x10008f1e
cmp dword [0x1000e46c], ecx
je 0x10008f1e
push eax
call esi
push dword [0x1000e46c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10008f1e
test ebx, ebx
je 0x10008f1e
call edi
test eax, eax
je 0x10008f15
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10008f15
test byte [ebp - 8], 1
jne 0x10008f1e
or dword [ebp + 0x10], 0x200000
jmp 0x10008f51
mov eax, dword [0x1000e460]
cmp eax, dword [ebp - 0x18]
je 0x10008f51
push eax
call esi
test eax, eax
je 0x10008f51
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10008f51
mov eax, dword [0x1000e464]
cmp eax, dword [ebp - 0x18]
je 0x10008f51
push eax
call esi
test eax, eax
je 0x10008f51
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000e45c]
call esi
test eax, eax
je 0x10008f6d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10008f6f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10007ff6
leave
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x238
mov esi, dword [esp + 0x250]
mov edi, dword [esp + 0x24c]
xor eax, eax
cmp byte [0x4497c0], 0
sete al
jmp dword [eax*4 + 0x444468]

Function at 0x4032c0
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 0x4033a0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4033a0
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40330a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x403311
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x4032f0
jmp 0x403313
mov esi, 0x1505
jmp 0x403313
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 0x4033a0
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x403344
inc edi
dec ebx
je 0x40339e
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40339e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x403340
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.00409ec0
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x403340
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.00409ee0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x403340
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x4033a0
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4033b0
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 0x4034b1
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4034b1
push ebx
call fcn.00409ec0
add esp, 4
test eax, eax
je 0x40340a
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 0x403411
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4033f0
jmp 0x403413
mov esi, 0x1505
jmp 0x403413
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 0x4034b1
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x403444
inc ebp
dec ebx
je 0x4034af
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4034af
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x403440
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409ec0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x403440
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409ee0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x403440
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4034af
cmp dword [eax + 4], 2
mov edi, 0
jne 0x4034b1
mov edi, dword [eax + 8]
jmp 0x4034b1
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4034e0
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 0x40354b
mov esi, dword [esp + 0x30]
test esi, esi
je 0x40354b
push esi
call fcn.00409ec0
add esp, 4
test eax, eax
je 0x40352a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x403531
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x403510
jmp 0x403533
mov ebp, 0x1505
jmp 0x403533
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 0x403557
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 0x403574
inc ebx
dec edi
je 0x40354b
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x40354b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x403570
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409ec0
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x403570
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.00409ee0
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x403570
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x40354b
cmp dword [eax + 4], 3
jne 0x40354b
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x40354b
Function at 0x403610
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 0x403711
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x403711
push ebx
call fcn.00409ec0
add esp, 4
test eax, eax
je 0x40366a
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 0x403671
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x403650
jmp 0x403673
mov esi, 0x1505
jmp 0x403673
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 0x403711
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x4036a4
inc ebp
dec ebx
je 0x40370f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40370f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4036a0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409ec0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4036a0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409ee0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4036a0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40370f
cmp dword [eax + 4], 5
mov edi, 0
jne 0x403711
mov edi, dword [eax + 8]
jmp 0x403711
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403740
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 0x403844
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x403844
push ebx
call fcn.00409ec0
add esp, 4
test eax, eax
je 0x40379a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x4037a1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x403780
jmp 0x4037a3
mov esi, 0x1505
jmp 0x4037a3
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 0x403844
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x4037d4
inc ebp
dec ebx
je 0x40383f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40383f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4037d0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409ec0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4037d0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409ee0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4037d0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40383f
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x403844
mov edi, dword [eax + 8]
jmp 0x403844
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret