joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10042e1
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1006060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor esi, esi
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
push dword [ebp + 8]
mov ebx, 0x1006098
push 0x1006018
mov ecx, ebx
call fcn.0100283e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1006120], esi
mov dword [0x1006124], esi
mov esi, 0x100163c
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
mov dword [0x100611c], eax
lea eax, [ebp - 0xc]
movsw word es:[edi], word [esi]
xor esi, esi
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
jmp 0x1004372
push 0x1001624
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10043a1
push 0x1001610
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10043b6
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.0100278a
mov edi, eax
cmp edi, esi
jne 0x100434d
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov ecx, ebx
call fcn.01003044
push 1
push 4
push ebx
call fcn.01002541
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x10043d9
push esi
push esi
push 0x64
push ebx
call fcn.01004192
push esi
push 1
push ebx
call fcn.01003aa1
jmp 0x10043ca
push esi
push 1
push 0x64
push ebx
call fcn.01004192
push esi
push 1
push ebx
call fcn.010039ef
mov dword [ebp - 0x10], eax
jmp 0x10043f7
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push esi
lea eax, [ebp - 0x30]
push eax
call edi
test eax, eax
jne 0x10043cf
push ebx
call fcn.01002596
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call fcn.010025e5
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01004837
leave
ret 0x10
Function at 0x100481c
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1004df0
call fcn.0100496c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x10064a8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10045d7
cmp eax, esi
jne 0x10045ca
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10045da
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10045b1
xor esi, esi
inc esi
mov eax, dword [0x10064a4]
cmp eax, esi
jne 0x10045ed
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100461c
mov eax, dword [0x10064a4]
test eax, eax
jne 0x1004616
mov dword [0x10064a4], esi
push 0x10011bc
push 0x10011b0
call fcn.01004513
pop ecx
pop ecx
test eax, eax
je 0x100461c
jmp 0x1004740
mov dword [0x100616c], esi
mov eax, dword [0x10064a4]
cmp eax, esi
jne 0x1004640
push 0x10011ac
push 0x10011a4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10064a4], 2
cmp dword [ebp - 0x20], ebx
jne 0x100464d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10064ac], ebx
je 0x100466e
push 0x10064ac
call fcn.01004ac9
pop ecx
test eax, eax
je 0x100466e
push ebx
push 2
push ebx
call dword [0x10064ac]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1004740
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x10046d8
cmp cx, bx
je 0x1004693
cmp dword [ebp - 0x1c], ebx
jne 0x10046d8
movzx ecx, word [eax]
cmp cx, bx
je 0x10046a8
cmp cx, 0x20
ja 0x10046a8
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1004693
test byte [ebp - 0x40], 1
je 0x10046b4
movzx ecx, word [ebp - 0x3c]
jmp 0x10046b7
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1006168], eax
cmp dword [0x100615c], ebx
jne 0x100471d
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x10046e9
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x100467d
cmp dword [0x100616c], ebx
jne 0x100472b
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1006168]
jmp 0x100474c
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010049b1
ret
call fcn.01004c0e
jmp 0x1004574
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x404370
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 0x404450
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x404450
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x4043ba
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x4043c1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x4043a0
jmp 0x4043c3
mov esi, 0x1505
jmp 0x4043c3
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 0x404450
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x4043f4
inc edi
dec ebx
je 0x40444e
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40444e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x4043f0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040cc10
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x4043f0
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040cc30
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x4043f0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x404450
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404460
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 0x404561
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404561
push ebx
call fcn.0040cc10
add esp, 4
test eax, eax
je 0x4044ba
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 0x4044c1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4044a0
jmp 0x4044c3
mov esi, 0x1505
jmp 0x4044c3
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 0x404561
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x4044f4
inc ebp
dec ebx
je 0x40455f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40455f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4044f0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cc10
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4044f0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cc30
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4044f0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40455f
cmp dword [eax + 4], 2
mov edi, 0
jne 0x404561
mov edi, dword [eax + 8]
jmp 0x404561
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404590
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 0x4045fb
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4045fb
push esi
call fcn.0040cc10
add esp, 4
test eax, eax
je 0x4045da
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x4045e1
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x4045c0
jmp 0x4045e3
mov ebp, 0x1505
jmp 0x4045e3
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 0x404607
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 0x404624
inc ebx
dec edi
je 0x4045fb
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x4045fb
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x404620
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cc10
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x404620
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.0040cc30
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x404620
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x4045fb
cmp dword [eax + 4], 3
jne 0x4045fb
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x4045fb

Function at 0x4046c0
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 0x4047c1
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4047c1
push ebx
call fcn.0040cc10
add esp, 4
test eax, eax
je 0x40471a
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 0x404721
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x404700
jmp 0x404723
mov esi, 0x1505
jmp 0x404723
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 0x4047c1
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404754
inc ebp
dec ebx
je 0x4047bf
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4047bf
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404750
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cc10
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404750
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cc30
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404750
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4047bf
cmp dword [eax + 4], 5
mov edi, 0
jne 0x4047c1
mov edi, dword [eax + 8]
jmp 0x4047c1
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4047f0
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 0x4048f4
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4048f4
push ebx
call fcn.0040cc10
add esp, 4
test eax, eax
je 0x40484a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x404851
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x404830
jmp 0x404853
mov esi, 0x1505
jmp 0x404853
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 0x4048f4
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404884
inc ebp
dec ebx
je 0x4048ef
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4048ef
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404880
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cc10
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404880
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cc30
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404880
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4048ef
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x4048f4
mov edi, dword [eax + 8]
jmp 0x4048f4
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404900
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.0040cc80
add esp, 8
test eax, eax
je 0x404964
mov esi, eax
jmp 0x404944
mov ebp, esi
inc ebp
push 0x2e
push ebp
call fcn.0040cc80
add esp, 8
mov esi, eax
test eax, eax
je 0x404964
mov eax, esi
sub eax, ebp
push eax
push ebp
push edi
call fcn.00404370
add esp, 0xc
xor edi, edi
test eax, eax
je 0x404930
cmp dword [eax + 4], 4
jne 0x404930
mov edi, dword [eax + 8]
jmp 0x404930
xor eax, eax
test edi, edi
je 0x4049cb
test ebp, ebp
je 0x4049cb
push ebp
call fcn.0040cc10
add esp, 4
test eax, eax
je 0x4049ab
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 0x4049b2
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebx
mov ecx, esi
cmp eax, ebx
jne 0x404990
jmp 0x4049b4
mov esi, 0x1505
jmp 0x4049b4
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 0x4049d3
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 0x4049f4
inc ebx
dec ecx
je 0x4049c9
mov eax, ebx
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4049c9
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + edi*4], esi
jne 0x4049f0
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.0040cc10
mov ecx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x4049f0
push dword [esp + 4]
push dword [esp + 0x10]
push ebp
call fcn.0040cc30
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x4049f0
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x4049cb
Function at 0x404af0
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 0x404b5d
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404b5d
push esi
call fcn.0040cc10
add esp, 4
test eax, eax
je 0x404b3a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x404b41
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x404b20
jmp 0x404b43
mov ebx, 0x1505
jmp 0x404b43
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 0x404b65
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 0x404b74
inc ebp
dec edi
je 0x404b5b
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x404b5b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x404b70
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cc10
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404b70
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cc30
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404b70
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x404b5d
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x404b5d
Function at 0x4050a0
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 0x4051b2
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4051b2
cmp dword [esp + 0x2c], 0
je 0x4051b2
push esi
call fcn.0040cc10
add esp, 4
test eax, eax
je 0x40510a
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 0x405111
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x4050f0
jmp 0x405113
mov ebx, 0x1505
jmp 0x405113
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 0x4051ba
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x405177
call fcn.00405e60
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x4051b2
push ecx
call fcn.0040cc10
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 0x40522d
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 0x4051d8
inc edi
dec esi
je 0x40512c
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x405131
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x4051d0
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.0040cc10
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4051d0
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.0040cc30
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4051d0
mov eax, 0xffffffff
jmp 0x4051b2
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x405248
inc edi
dec esi
je 0x405172
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x405177
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x405240
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.0040cc10
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x405240
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.0040cc30
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x405240
jmp 0x405177
Function at 0x405bb0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, 0xffffffff
cmp dword [esp + 0x28], 0
je 0x405d9a
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x405d9a
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x405d9a
cmp dword [ecx], 0
jne 0x405d9a
push esi
call fcn.0040cc10
add esp, 4
test eax, eax
je 0x405c1a
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
movzx edx, byte [esi + ebx]
test edx, edx
je 0x405c21
mov edi, ecx
shl edi, 5
add edi, ecx
add edi, edx
inc ebx
mov ecx, edi
cmp eax, ebx
jne 0x405c00
jmp 0x405c23
mov edi, 0x1505
jmp 0x405c23
mov edi, ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x20]
lea ebx, [edx - 1]
mov esi, edx
sub esi, 1
mov dword [esp + 0xc], esi
jae 0x405cf4
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x405c81
call fcn.00405e60
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov esi, dword [esp + 0x2c]
jne 0x405d9a
push esi
call fcn.0040cc10
add esp, 4
mov edx, esi
lea esi, [esp + 0x10]
mov ecx, dword [esp + 0x28]
push esi
push edi
push eax
call fcn.00405db0
add esp, 0xc
mov ebp, eax
mov esi, dword [esp + 0x2c]
push esi
call fcn.0040cc10
add esp, 4
mov ebx, eax
inc eax
push eax
call dword [0x44e008]
add esp, 4
test eax, eax
je 0x405d95
mov byte [eax + ebx], 0
push ebx
push esi
push eax
mov esi, eax
call fcn.0040cb30
add esp, 0xc
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], esi
mov eax, dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov dword [eax + ebp*4], ecx
mov eax, dword [edx + 0x10]
mov esi, dword [esp + 0x30]
mov dword [eax + ecx*4], esi
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], ebp
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], edi
inc dword [edx + 0x18]
mov eax, dword [edx]
mov dword [esi], eax
xor eax, eax
jmp 0x405d9a
mov dword [esp], eax
and ebx, edi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x405d18
inc ebx
dec edx
je 0x405c3c
mov ebp, ebx
and ebp, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov esi, dword [eax + ebp*4]
cmp esi, 0xffffffff
je 0x405c41
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], edi
jne 0x405d10
mov eax, dword [ecx + 0xc]
mov ebp, dword [eax + esi*4]
push ebp
mov dword [esp + 8], edx
call fcn.0040cc10
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [esp]
jne 0x405d10
push dword [esp]
push ebp
push dword [esp + 0x34]
call fcn.0040cc30
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x405d10
mov eax, dword [ecx + 0x10]
push dword [eax + esi*4]
call fcn.00404c50
mov edx, dword [esp + 0x2c]
add esp, 4
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x30]
mov dword [eax + esi*4], ecx
mov esi, ecx
jmp 0x405ce9
mov eax, 0xffffffff
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret