joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403558
Capabilities:
Terminate process

Disassembly:
jmp 0x452634
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x452645
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004057d6
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40367f
Capabilities:
Query environment variable

Disassembly:
jmp 0x4998ae
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4998bf
pop esi
ret
push ebx
push edi
push esi
call fcn.00499795
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403f21
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4998e7
push ebx
push esi
push edi
call fcn.004055c9
add esp, 0xc
push 0
call fcn.004060f5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405687
Capabilities:
Parse pe header

Disassembly:
jmp 0x441969
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4419a8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4419a8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4419a8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4419a8
cmp dword [ecx + 0x74], 0xe
jbe 0x4419a8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x43f5e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004036d9
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x43f623
sub eax, 1
je 0x43f61e
sub eax, 1
je 0x43f61a
xor eax, eax
leave
ret
push 3
jmp 0x43f625
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x485975
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4859b4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4859b4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4859b4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4859b4
cmp dword [ecx + 0x74], 0xe
jbe 0x4859b4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x490da7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d75
mov eax, dword [0x4cb028]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405d12
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x490de9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x490f45
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405e66
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4ce8f8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004031e3
mov ecx, dword [esi*4 + 0x4ce8f8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x490f3e
cmp eax, dword [ecx + edi + 0x24]
jne 0x490f3e
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x490f3e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004031e3
add esp, 0x14
test edx, edx
jl 0x490f3e
jg 0x490eb4
test eax, eax
jb 0x490f3e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x490f3e
jl 0x490ece
cmp dword [ebp - 0x1008], eax
ja 0x490f3e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x490eec
test ebx, ebx
je 0x490f25
cmp ecx, edi
jae 0x490f25
mov al, byte [ecx]
cmp al, 0xd
jne 0x490f06
lea eax, [edi - 1]
cmp ecx, eax
jae 0x490f12
cmp byte [ecx + 1], 0xa
jne 0x490f12
inc ecx
jmp 0x490f12
movzx eax, al
movsx eax, byte [eax + 0x4cb348]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x490eec
cmp edx, ebx
jne 0x490eec
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x490f43
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00402fd6
leave
ret
Function at 0x491684
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4ce8f8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4916c4
cmp byte [ebx], 0xa
jne 0x4916c4
or byte [edi + eax + 0x28], 4
jmp 0x4916c9
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4917c8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4917ab
inc eax
cmp dl, 0xd
je 0x4916f5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x49171b
cmp eax, ecx
jae 0x491729
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4916dd
jmp 0x4917c8
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4917a6
cmp dword [ebp - 0x10], 0
je 0x4917a6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4ce8f8]
test byte [eax + edi + 0x28], 0x48
je 0x491780
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49176b
mov byte [esi], dl
jmp 0x49177c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ce8f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4917c8
cmp byte [ebp - 1], 0xa
jne 0x49178f
cmp esi, ebx
jne 0x49178f
mov byte [esi], 0xa
jmp 0x4917c7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401924
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4917c8
mov byte [esi], 0xd
jmp 0x4917c7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4ce8f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4917c5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4917c8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x491824
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4ce8f8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49186a
cmp word [ebx], dx
jne 0x49186a
or byte [eax + edi + 0x28], 4
jmp 0x49186f
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4919d2
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4919b2
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4918b0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4918e6
cmp eax, edx
jae 0x4918f4
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x49188b
jmp 0x4919d2
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4919ad
cmp dword [ebp - 0x18], 0
je 0x4919ad
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4ce8f8]
test byte [eax + edi + 0x28], 0x48
je 0x491983
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x491947
mov word [esi], cx
jmp 0x49197e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4ce8f8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4ce8f8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4ce8f8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4919d2
pop eax
cmp word [ebp - 4], ax
jne 0x491993
cmp esi, ebx
jne 0x491993
mov word [esi], ax
jmp 0x4919cf
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401924
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4919d2
push 0xd
pop eax
jmp 0x49198e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4ce8f8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4919cc
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4919d2
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x497e64
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4cb028]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x497eaf
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049831c
test al, al
jne 0x497ea9
sub edx, 2
cmp edx, edi
jne 0x497e8f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x497ed1
lea eax, [edi + 2]
cmp edx, eax
je 0x497ed1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00497a5d
add esp, 0x10
jmp 0x497fcb
push esi
lea ecx, [ebp - 0x255]
call fcn.0049831c
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x497f14
push dword [ebp - 0x25c]
jmp 0x497ec1
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x497f51
cmp word [ebp - 0x226], 0
je 0x497f72
cmp word [ebp - 0x226], ax
jne 0x497f51
cmp word [ebp - 0x224], 0
je 0x497f72
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00497a5d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x497fbe
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x497f2b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x497fa6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x497fcb
push 0x497445
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040542a
add esp, 0x10
jmp 0x497f9b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402fd6
leave
ret

Function at 0x49d92d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00404228
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x49d99c
cmp esi, dword [ebp - 4]
je 0x49d997
cmp dword [ebp + 0xc], 0
je 0x49d997
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x49d974
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0049d355
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x49d99e
xor eax, eax
inc eax
jmp 0x49d99e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401ec0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
xor eax, eax
test ecx, ecx
je 0x401fa7
test edx, edx
je 0x401fa7
mov ebp, dword [esp + 0x28]
test ebp, ebp
mov dword [esp], ecx
je 0x401f0a
mov ecx, 0x1505
xor edi, edi
nop dword [eax + eax]
movzx ebx, byte [edx + edi]
test ebx, ebx
je 0x401f11
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, ebx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x401ef0
jmp 0x401f13
mov esi, 0x1505
jmp 0x401f13
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 0x401fa7
and ebx, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 4], edx
jmp 0x401f44
inc ebx
dec ebp
je 0x401fa5
mov eax, ebx
and eax, edx
mov edi, dword [esp + 0x10]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x401fa5
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401f40
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 0xc], eax
push eax
call fcn.004174b0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401f40
push dword [esp + 0x28]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.004174d0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x401f40
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x401fa7
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401fb0
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 0x4020b9
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4020b9
push ebx
call fcn.004174b0
add esp, 4
test eax, eax
je 0x40200a
mov ecx, 0x1505
xor ebp, ebp
nop word cs:[eax + eax]
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x402011
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x401ff0
jmp 0x402013
mov esi, 0x1505
jmp 0x402013
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 0x4020b9
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov dword [esp], edx
jmp 0x402044
inc ebp
dec ebx
je 0x4020b7
mov eax, ebp
and eax, edx
mov edi, dword [esp + 0xc]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x4020b7
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402040
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.004174b0
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402040
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.004174d0
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402040
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4020b7
cmp dword [eax + 4], 2
mov edi, 0
jne 0x4020b9
mov edi, dword [eax + 8]
jmp 0x4020b9
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4020f0
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 0x402163
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x402163
push esi
call fcn.004174b0
add esp, 4
test eax, eax
je 0x40214a
mov ecx, 0x1505
xor ebx, ebx
nop word cs:[eax + eax]
movzx edx, byte [esi + ebx]
test edx, edx
je 0x402151
mov edi, ecx
shl edi, 5
add edi, ecx
add edi, edx
inc ebx
mov ecx, edi
cmp eax, ebx
jne 0x402130
jmp 0x402153
mov edi, 0x1505
jmp 0x402153
mov edi, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
lea esi, [edx - 1]
mov ebx, edx
sub ebx, 1
jae 0x40217b
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 0x402198
inc esi
dec edx
mov ebx, dword [esp + 0x10]
je 0x402163
mov eax, esi
and eax, ebx
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + eax*4]
cmp ebx, 0xffffffff
je 0x402163
mov eax, dword [ecx + 8]
cmp dword [eax + ebx*4], edi
jne 0x402190
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.004174b0
mov edx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402190
push dword [esp + 4]
push dword [esp + 0x10]
push dword [ebp + 0xc]
call fcn.004174d0
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
add esp, 0xc
test eax, eax
jne 0x402190
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x402163
cmp dword [eax + 4], 3
jne 0x402163
movsd xmm0, qword [eax + 8]
movsd qword [esp + 0x18], xmm0
jmp 0x402163
Function at 0x402240
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 0x402349
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x402349
push ebx
call fcn.004174b0
add esp, 4
test eax, eax
je 0x40229a
mov ecx, 0x1505
xor ebp, ebp
nop word cs:[eax + eax]
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x4022a1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x402280
jmp 0x4022a3
mov esi, 0x1505
jmp 0x4022a3
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 0x402349
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov dword [esp], edx
jmp 0x4022d4
inc ebp
dec ebx
je 0x402347
mov eax, ebp
and eax, edx
mov edi, dword [esp + 0xc]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x402347
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4022d0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.004174b0
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x4022d0
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.004174d0
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4022d0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x402347
cmp dword [eax + 4], 5
mov edi, 0
jne 0x402349
mov edi, dword [eax + 8]
jmp 0x402349
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402360
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 0x40246c
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x40246c
push ebx
call fcn.004174b0
add esp, 4
test eax, eax
je 0x4023ba
mov ecx, 0x1505
xor ebp, ebp
nop word [eax + eax]
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x4023c1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4023a0
jmp 0x4023c3
mov esi, 0x1505
jmp 0x4023c3
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 0x40246c
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov dword [esp], edx
jmp 0x4023f4
inc ebp
dec ebx
je 0x402467
mov eax, ebp
and eax, edx
mov edi, dword [esp + 0xc]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x402467
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4023f0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.004174b0
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x4023f0
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.004174d0
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4023f0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x402467
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x40246c
mov edi, dword [eax + 8]
jmp 0x40246c
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402480
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.00417520
add esp, 8
test eax, eax
je 0x4024e6
mov ebx, eax
jmp 0x4024c4
mov edi, ebx
inc edi
push 0x2e
push edi
call fcn.00417520
add esp, 8
mov ebx, eax
test eax, eax
je 0x4024e6
mov eax, ebx
sub eax, edi
mov ecx, esi
mov edx, edi
push eax
call fcn.00401ec0
add esp, 4
xor esi, esi
test eax, eax
je 0x4024b0
cmp dword [eax + 4], 4
jne 0x4024b0
mov esi, dword [eax + 8]
jmp 0x4024b0
xor eax, eax
test esi, esi
je 0x402546
test edi, edi
je 0x402546
push edi
call fcn.004174b0
add esp, 4
test eax, eax
je 0x40252a
mov ecx, 0x1505
xor ebp, ebp
nop word cs:[eax + eax]
movzx edx, byte [edi + ebp]
test edx, edx
je 0x402531
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc ebp
mov ecx, ebx
cmp eax, ebp
jne 0x402510
jmp 0x402533
mov ebx, 0x1505
jmp 0x402533
mov ebx, ecx
mov dword [esp + 8], eax
mov ecx, dword [esi + 0x20]
lea ebp, [ecx - 1]
mov edx, ecx
sub edx, 1
jae 0x40254e
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 0x402564
inc ebp
dec ecx
je 0x402544
mov eax, ebp
and eax, edx
mov esi, dword [esp + 0x14]
mov esi, dword [esi + eax*4]
cmp esi, 0xffffffff
je 0x402544
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + esi*4], ebx
jne 0x402560
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.004174b0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
add esp, 4
cmp eax, dword [esp + 8]
jne 0x402560
push dword [esp + 8]
push dword [esp + 0x14]
push edi
call fcn.004174d0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add esp, 0xc
test eax, eax
jne 0x402560
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + esi*4]
jmp 0x402546