joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47c180
Capabilities:
Persist via run registry key
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov ebx, 0x80000001
mov dword [ebp - 4], esi
push edi
mov edi, dword [str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders]
lea ecx, [esi + 0x57]
cmp eax, 0x28
ja case.0x47c1ab.1
movzx eax, byte [eax + 0x47c280]
jmp dword [eax*4 + 0x47c264]
mov esi, str.AppData
jmp case.0x47c1ab.1
mov esi, str.Programs
jmp case.0x47c1ab.1
mov esi, str.Desktop
jmp case.0x47c1ab.1
mov esi, str.Personal
jmp case.0x47c1ab.1
push 0x104
push dword [ebp + 0xc]
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x47c1e9
xor ecx, ecx
jmp case.0x47c1ab.1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp case.0x47c1ab.1
mov edi, dword [str.SoftwareMicrosoftWindowsCurrentVersion]
mov esi, str.ProgramFilesDir
mov ebx, 0x80000002
test edi, edi
je 0x47c258
test esi, esi
je 0x47c258
lea eax, [ebp - 4]
mov dword [ebp + 8], 0x208
push eax
push 1
push 0
push edi
push ebx
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47c25a
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47deb0
Capabilities:
Parse pe header

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

Function at 0x48b94b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a1408
push 0x4a1400
push str.FlsAlloc
push 0x1f
call fcn.0048b846
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48b97f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4965a8]
call esi
jmp 0x48b985
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48b9c9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a1418
push 0x4a1410
push str.FlsGetValue
push 0x21
call fcn.0048b846
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48ba00
push dword [ebp + 8]
mov ecx, esi
call dword [0x4965a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x48ba08
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a1420
push 0x4a1418
push str.FlsSetValue
push 0x22
call fcn.0048b846
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48ba42
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4965a8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x48ce79
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 + 0x4b4130]
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 0x48ceb9
cmp byte [ebx], 0xa
jne 0x48ceb9
or byte [edi + eax + 0x28], 4
jmp 0x48cebe
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 0x48cfbd
mov dl, byte [eax]
cmp dl, 0x1a
je 0x48cfa0
inc eax
cmp dl, 0xd
je 0x48ceea
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x48cf10
cmp eax, ecx
jae 0x48cf1e
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 0x48ced2
jmp 0x48cfbd
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 0x48cf9b
cmp dword [ebp - 0x10], 0
je 0x48cf9b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4b4130]
test byte [eax + edi + 0x28], 0x48
je 0x48cf75
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x48cf60
mov byte [esi], dl
jmp 0x48cf71
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4b4130]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x48cfbd
cmp byte [ebp - 1], 0xa
jne 0x48cf84
cmp esi, ebx
jne 0x48cf84
mov byte [esi], 0xa
jmp 0x48cfbc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004925de
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x48cfbd
mov byte [esi], 0xd
jmp 0x48cfbc
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4b4130]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48cfba
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48cfbd
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48cfc6
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 + 0x4b4130]
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 0x48d00c
cmp word [ebx], dx
jne 0x48d00c
or byte [eax + edi + 0x28], 4
jmp 0x48d011
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 0x48d174
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 0x48d154
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x48d052
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x48d088
cmp eax, edx
jae 0x48d096
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 0x48d02d
jmp 0x48d174
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 0x48d14f
cmp dword [ebp - 0x18], 0
je 0x48d14f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4b4130]
test byte [eax + edi + 0x28], 0x48
je 0x48d125
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 0x48d0e9
mov word [esi], cx
jmp 0x48d120
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4b4130]
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 + 0x4b4130]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4b4130]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x48d174
pop eax
cmp word [ebp - 4], ax
jne 0x48d135
cmp esi, ebx
jne 0x48d135
mov word [esi], ax
jmp 0x48d171
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004925de
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x48d174
push 0xd
pop eax
jmp 0x48d130
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4b4130]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x48d16e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x48d174
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 0x48e062
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4af480]
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 0x48e0ad
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0048e1fd
test al, al
jne 0x48e0a7
sub edx, 2
cmp edx, edi
jne 0x48e08d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x48e0cf
lea eax, [edi + 2]
cmp edx, eax
je 0x48e0cf
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0048dfae
add esp, 0x10
jmp 0x48e1c9
push esi
lea ecx, [ebp - 0x255]
call fcn.0048e1fd
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 0x48e112
push dword [ebp - 0x25c]
jmp 0x48e0bf
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 0x48e14f
cmp word [ebp - 0x226], 0
je 0x48e170
cmp word [ebp - 0x226], ax
jne 0x48e14f
cmp word [ebp - 0x224], 0
je 0x48e170
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0048dfae
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x48e1bc
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x48e129
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x48e1a4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x48e1c9
push 0x48ddde
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00485380
add esp, 0x10
jmp 0x48e199
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.0047d2db
leave
ret
Function at 0x493143
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004930bf
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4932b2
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4932b2
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x493267
jg 0x49319f
test eax, eax
je 0x49325d
push 1
push 0x1000
call fcn.0048b6ea
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4931c2
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x493254
push 0x8000
push ebx
call fcn.00487eeb
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4931eb
jg 0x4931e6
cmp ecx, 0x1000
jb 0x4931eb
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0048cc5d
add esp, 0x10
cmp eax, 0xffffffff
je 0x493230
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4931e6
jl 0x493217
test ecx, ecx
jne 0x4931d8
push dword [ebp - 0xc]
push ebx
call fcn.00487eeb
push esi
call fcn.00489a45
add esp, 0xc
xor ebx, ebx
jmp 0x4932c0
cmp byte [edi + 0x24], 0
je 0x493247
cmp dword [edi + 0x20], 5
jne 0x493247
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x493252
mov ebx, dword [edi + 0x18]
jmp 0x493254
xor ebx, ebx
push esi
call fcn.00489a45
pop ecx
jmp 0x4932c0
test ecx, ecx
jg 0x493229
jl 0x493267
test eax, eax
jae 0x493229
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004925de
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x493287
cmp byte [edi + 0x1c], 0
je 0x493229
jmp 0x4932b8
push ebx
call fcn.0048dd5e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x493229
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4932c0
cmp byte [edi + 0x1c], 0
je 0x4932bd
mov ebx, dword [edi + 0x18]
jmp 0x4932c0
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004925de
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x494c70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x494c9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x494c9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x403e59
pop dword [ebp - 0x1c]
mov eax, 0x91144923
add eax, 0x6f2bf536
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xcde79ae1
sub dword [ebp - 0x2c], 0x7f955596
mov dword [ebp - 0x28], 0x79f2d13
sub dword [ebp - 0x28], 0xd56be0ce
mov dword [ebp - 0x24], 0x9ece9a33
add dword [ebp - 0x24], 0xad7da9fb
mov dword [ebp - 0x20], 0xee6d47c8
sub dword [ebp - 0x20], 0xee6d47c8
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xd416d818
add dword [ebp - 0x2c], 0xa05b913e
mov dword [ebp - 0x28], 0x5ca63cbe
add dword [ebp - 0x28], 0xe4c624b7
mov dword [ebp - 0x24], 0x7a9293b6
sub dword [ebp - 0x24], 0x1723274a
mov dword [ebp - 0x20], 0xcc04d62c
sub dword [ebp - 0x20], 0xcc04d62c
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xe8a8ca1f
sub eax, 0xe8685977
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x38099
push 0
call eax
mov ecx, 0xf5b1513
add ecx, 0xf0a53816
mov esi, eax
mov edx, 0xa9c7c6e8
sub edx, 0xa986c6e8
add edx, dword [ebp - 0x1c]
mov edi, 0x3bd4a9ca
mov dword [ebp - 4], 0x8228ef5b
mov ebx, dword [edx]
sub dword [ebp - 0x10], esi
sub ebx, edi
xor dword [ebp - 8], 0xade25cc0
mov dword [esi], ebx
xor dword [ebp - 0x18], edx
add esi, 0x8fe7beac
add esi, 0x70184158
add edx, 0xa367050b
add edx, 0x5c98faf9
loop 0x403f70
add eax, 0x2aac3b3f
add eax, 0xd554ec38
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x401ea0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
xor eax, eax
test ecx, ecx
je 0x401f87
test edx, edx
je 0x401f87
mov ebp, dword [esp + 0x28]
test ebp, ebp
mov dword [esp], ecx
je 0x401eea
xor edi, edi
mov ecx, 0x1505
nop
nop
nop
nop
nop
movzx ebx, byte [edx + edi]
test ebx, ebx
je 0x401ef1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, ebx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x401ed0
jmp 0x401ef3
mov esi, 0x1505
jmp 0x401ef3
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 0x401f87
and ebx, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 4], edx
jmp 0x401f24
inc ebx
dec ebp
je 0x401f85
mov eax, ebx
and eax, edx
mov edi, dword [esp + 0x10]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x401f85
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401f20
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 0xc], eax
push eax
call fcn.00408ef0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401f20
push dword [esp + 0x28]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00408f20
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x401f20
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x401f87
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401f90
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 0x402099
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x402099
push ebx
call fcn.00408ef0
add esp, 4
test eax, eax
je 0x401fea
xor ebp, ebp
mov ecx, 0x1505
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x401ff1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x401fd0
jmp 0x401ff3
mov esi, 0x1505
jmp 0x401ff3
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 0x402099
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov dword [esp], edx
jmp 0x402024
inc ebp
dec ebx
je 0x402097
mov eax, ebp
and eax, edx
mov edi, dword [esp + 0xc]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x402097
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402020
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.00408ef0
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402020
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.00408f20
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402020
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x402097
cmp dword [eax + 4], 2
mov edi, 0
jne 0x402099
mov edi, dword [eax + 8]
jmp 0x402099
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4020d0
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 0x402138
mov esi, dword [esp + 0x30]
test esi, esi
je 0x402138
push esi
call fcn.00408ef0
add esp, 4
test eax, eax
je 0x40211a
xor edi, edi
mov ecx, 0x1505
movzx edx, byte [esi + edi]
test edx, edx
je 0x402121
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x402100
jmp 0x402123
mov ebp, 0x1505
jmp 0x402123
mov ebp, ecx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x2c]
mov edi, dword [ecx + 0x20]
lea ebx, [edi - 1]
mov edx, edi
sub edx, 1
jae 0x402144
fld qword [esp + 0x10]
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
and ebx, ebp
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov dword [esp], edx
jmp 0x402164
inc ebx
dec edi
je 0x402138
mov eax, ebx
and eax, edx
mov esi, dword [esp + 0xc]
mov esi, dword [esi + eax*4]
cmp esi, 0xffffffff
je 0x402138
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x402160
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 8], eax
push eax
call fcn.00408ef0
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402160
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x38]
call fcn.00408f20
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x402160
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x402138
cmp dword [eax + 4], 3
jne 0x402138
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x402138
Function at 0x402210
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 0x402319
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x402319
push ebx
call fcn.00408ef0
add esp, 4
test eax, eax
je 0x40226a
xor ebp, ebp
mov ecx, 0x1505
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x402271
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x402250
jmp 0x402273
mov esi, 0x1505
jmp 0x402273
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 0x402319
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov dword [esp], edx
jmp 0x4022a4
inc ebp
dec ebx
je 0x402317
mov eax, ebp
and eax, edx
mov edi, dword [esp + 0xc]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x402317
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4022a0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.00408ef0
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x4022a0
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.00408f20
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4022a0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x402317
cmp dword [eax + 4], 5
mov edi, 0
jne 0x402319
mov edi, dword [eax + 8]
jmp 0x402319
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402330
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 0x40243c
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x40243c
push ebx
call fcn.00408ef0
add esp, 4
test eax, eax
je 0x40238a
xor ebp, ebp
mov ecx, 0x1505
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x402391
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x402370
jmp 0x402393
mov esi, 0x1505
jmp 0x402393
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 0x40243c
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov dword [esp], edx
jmp 0x4023c4
inc ebp
dec ebx
je 0x402437
mov eax, ebp
and eax, edx
mov edi, dword [esp + 0xc]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x402437
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4023c0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.00408ef0
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x4023c0
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.00408f20
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4023c0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x402437
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x40243c
mov edi, dword [eax + 8]
jmp 0x40243c
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret