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

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.0046b340

Function at 0x46b340
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x5bf560]
test esi, esi
jle 0x46b42d
mov edi, dword [0x5bf564]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x46b374
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x46b426
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x46b360
mov dword [esp], eax
mov ebx, eax
call fcn.0046bc70
test eax, eax
mov edi, eax
je 0x46b46a
lea ebx, [esi + esi*2]
mov esi, dword [0x5bf564]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.0046bd70
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x5bf564]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x46b44a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x46b41f
sub eax, 0x40
and eax, 0xffffffbf
je 0x46b41f
mov eax, dword [esp + 0x20]
add ebx, dword [0x5bf564]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x46b434
add dword [0x5bf560], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x46b37e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0046b2e0
mov eax, dword [0x5bf564]
mov eax, dword [eax + ebx + 4]
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 fcn.0046b2e0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0046b2e0
lea esi, [esi]
Function at 0x46b8e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x5bf578
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x5bf570]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x46b935
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 0x46b92e
test esi, esi
je 0x46b92e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x46b910
mov dword [esp], 0x5bf578
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x46bb90
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x46bbc8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x46bbbe
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x46bbca
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x46bbb0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x46bea0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub esp, 8
test eax, eax
mov dword [esp + 0x2c], eax
je 0x46c01c
mov eax, dword [esp + 0x3c]
add eax, 1
lea edx, [eax*4]
cmp eax, 0x1fc00000
mov eax, 0xffffffff
cmovbe eax, edx
mov dword [esp], eax
call sub.libstdc_6.dll_operator_new___unsigned_int_
mov edi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x46bfab
xor ebx, ebx
mov eax, dword [esp + 0x2c]
mov ebp, dword [eax + ebx*4]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [esp], eax
mov dword [esp + 0x28], eax
call sub.libstdc_6.dll_operator_new___unsigned_int_
mov ecx, dword [esp + 0x28]
mov esi, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [edi + ebx*4], esi
add ebx, 1
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jg 0x46bf00
mov dword [edi + eax*4], 0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0041df80
mov esi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x46c008
mov edx, dword [edi]
test edx, edx
je 0x46c008
xor ebx, ebx
jmp 0x46bff7
mov edx, dword [edi + ebx*4]
test edx, edx
je 0x46c008
mov dword [esp], edx
add ebx, 1
call sub.libstdc_6.dll_operator_delete___void_
cmp dword [esp + 0x3c], ebx
jg 0x46bff0
mov dword [esp], edi
call sub.libstdc_6.dll_operator_delete___void_
mov eax, esi
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, 0xffffffff
jmp 0x46c012
Function at 0x46d440
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
sub ecx, 1
push esi
push ebx
mov ebx, 0x66666667
mov ebp, edx
mov esi, 1
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ecx
mov dword [esp + 0x10], ecx
sar eax, 0x1f
mov edi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ecx
sar ecx, 0x1f
imul ebx
mov ebx, edx
sar ebx, 2
sub ebx, ecx
je 0x46d493
mov ecx, 0x66666667
mov eax, ebx
sar ebx, 0x1f
add esi, 1
imul ecx
sar edx, 2
sub edx, ebx
mov ebx, edx
jne 0x46d480
mov eax, dword [edi + 0x28]
cmp eax, 0xffffffff
je 0x46d510
cmp eax, esi
cmovge esi, eax
mov eax, dword [edi + 8]
lea edx, [esi + 2]
cmp eax, edx
jg 0x46d501
mov dword [edi + 8], 0xffffffff
mov eax, dword [esp + 0x1c]
mov dword [esp], edi
mov ecx, 1
mov edx, ebp
add esi, 1
call fcn.0046cd10
mov eax, dword [edi + 0x28]
mov dword [edi + 0xc], eax
mov eax, dword [edi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [edi + 4], edx
mov edx, edi
call fcn.0046c900
add dword [edi + 8], esi
mov eax, dword [esp + 0x10]
mov ecx, edi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0046d130
sub eax, edx
mov dword [edi + 8], eax
jmp 0x46d4b1
mov edx, dword [0x4a92ac]
cmp edx, 0xffffffff
je 0x46d539
test edx, edx
mov eax, 2
jne 0x46d531
call fcn.00471880
and eax, 1
neg eax
add eax, 3
mov dword [edi + 0x28], eax
jmp 0x46d49b
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x46d55f
movsx eax, byte [eax]
xor edx, edx
sub eax, 0x30
cmp eax, 2
setbe dl
mov dword [0x4a92ac], edx
jmp 0x46d51b
xor edx, edx
jmp 0x46d557
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, reloc.opengl32.dll_glShadeModel
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x192f7147
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x75853b5f
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4017d0
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 0x4018b0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4018b0
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40181a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x401821
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x401800
jmp 0x401823
mov esi, 0x1505
jmp 0x401823
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 0x4018b0
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x401854
inc edi
dec ebx
je 0x4018ae
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x4018ae
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x401850
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.00408b70
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401850
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.00408b90
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x401850
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x4018b0
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4018c0
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 0x4019c1
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4019c1
push ebx
call fcn.00408b70
add esp, 4
test eax, eax
je 0x40191a
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 0x401921
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x401900
jmp 0x401923
mov esi, 0x1505
jmp 0x401923
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 0x4019c1
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401954
inc ebp
dec ebx
je 0x4019bf
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4019bf
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401950
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408b70
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401950
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00408b90
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401950
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4019bf
cmp dword [eax + 4], 2
mov edi, 0
jne 0x4019c1
mov edi, dword [eax + 8]
jmp 0x4019c1
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4019f0
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 0x401a5b
mov esi, dword [esp + 0x30]
test esi, esi
je 0x401a5b
push esi
call fcn.00408b70
add esp, 4
test eax, eax
je 0x401a3a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x401a41
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x401a20
jmp 0x401a43
mov ebp, 0x1505
jmp 0x401a43
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 0x401a67
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 0x401a84
inc ebx
dec edi
je 0x401a5b
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x401a5b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x401a80
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408b70
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x401a80
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.00408b90
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x401a80
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x401a5b
cmp dword [eax + 4], 3
jne 0x401a5b
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x401a5b

Function at 0x401b20
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 0x401c21
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x401c21
push ebx
call fcn.00408b70
add esp, 4
test eax, eax
je 0x401b7a
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 0x401b81
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x401b60
jmp 0x401b83
mov esi, 0x1505
jmp 0x401b83
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 0x401c21
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401bb4
inc ebp
dec ebx
je 0x401c1f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x401c1f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401bb0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408b70
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401bb0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00408b90
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401bb0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x401c1f
cmp dword [eax + 4], 5
mov edi, 0
jne 0x401c21
mov edi, dword [eax + 8]
jmp 0x401c21
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401c50
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 0x401d54
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x401d54
push ebx
call fcn.00408b70
add esp, 4
test eax, eax
je 0x401caa
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x401cb1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x401c90
jmp 0x401cb3
mov esi, 0x1505
jmp 0x401cb3
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 0x401d54
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401ce4
inc ebp
dec ebx
je 0x401d4f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x401d4f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401ce0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408b70
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401ce0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00408b90
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401ce0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x401d4f
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x401d54
mov edi, dword [eax + 8]
jmp 0x401d54
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401d60
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.00408be0
add esp, 8
test eax, eax
je 0x401dc4
mov esi, eax
jmp 0x401da4
mov ebp, esi
inc ebp
push 0x2e
push ebp
call fcn.00408be0
add esp, 8
mov esi, eax
test eax, eax
je 0x401dc4
mov eax, esi
sub eax, ebp
push eax
push ebp
push edi
call fcn.004017d0
add esp, 0xc
xor edi, edi
test eax, eax
je 0x401d90
cmp dword [eax + 4], 4
jne 0x401d90
mov edi, dword [eax + 8]
jmp 0x401d90
xor eax, eax
test edi, edi
je 0x401e2b
test ebp, ebp
je 0x401e2b
push ebp
call fcn.00408b70
add esp, 4
test eax, eax
je 0x401e0b
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebp + ebx]
test edx, edx
je 0x401e12
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebx
mov ecx, esi
cmp eax, ebx
jne 0x401df0
jmp 0x401e14
mov esi, 0x1505
jmp 0x401e14
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 0x401e33
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 0x401e54
inc ebx
dec ecx
je 0x401e29
mov eax, ebx
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x401e29
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + edi*4], esi
jne 0x401e50
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.00408b70
mov ecx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x401e50
push dword [esp + 4]
push dword [esp + 0x10]
push ebp
call fcn.00408b90
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x401e50
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x401e2b
Function at 0x401f50
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 0x401fbd
mov esi, dword [esp + 0x28]
test esi, esi
je 0x401fbd
push esi
call fcn.00408b70
add esp, 4
test eax, eax
je 0x401f9a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x401fa1
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x401f80
jmp 0x401fa3
mov ebx, 0x1505
jmp 0x401fa3
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 0x401fc5
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 0x401fd4
inc ebp
dec edi
je 0x401fbb
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x401fbb
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x401fd0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408b70
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401fd0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00408b90
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401fd0
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x401fbd
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x401fbd
Function at 0x4021e0
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 0x4022f2
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4022f2
cmp dword [esp + 0x2c], 0
je 0x4022f2
push esi
call fcn.00408b70
add esp, 4
test eax, eax
je 0x40224a
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 0x402251
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x402230
jmp 0x402253
mov ebx, 0x1505
jmp 0x402253
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 0x4022fa
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x4022b7
call fcn.004023f0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x4022f2
push ecx
call fcn.00408b70
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 0x40236d
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 0x402318
inc edi
dec esi
je 0x40226c
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x402271
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x402310
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.00408b70
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402310
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.00408b90
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402310
mov eax, 0xffffffff
jmp 0x4022f2
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x402388
inc edi
dec esi
je 0x4022b2
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x4022b7
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x402380
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.00408b70
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402380
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.00408b90
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402380
jmp 0x4022b7