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

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x417358]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
push esi
push edi
mov esi, ecx
push dword [esi + 4]
push str.K7AVPELogView1
call fcn.004057e0
xor ebx, ebx
push ebx
push ebx
push 0x2bc
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
push 0xa
push eax
mov dword [esi + 0x28], eax
call fcn.004052e1
push ebx
push ebx
push 0x190
mov dword [0x4183ec], eax
push 9
push dword [esi + 4]
call fcn.004052e1
add esp, 0x30
push 0xcf
mov dword [0x4183e8], eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esi + 0x38], eax
push dword [0x4184a4]
push ebx
push 0x111e
push eax
call edi
push dword [0x41849c]
push ebx
push 0x111d
push dword [esi + 0x38]
call edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push str._classid
push eax
call fcn.00406d00
pop ecx
pop ecx
cmp eax, ebx
je 0x404a8a
add eax, 9
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [esi + 0x100]
lea eax, [ebp - 0x7c]
push eax
mov ecx, esi
call fcn.004044df
cmp eax, 1
jne 0x404ae5
inc dword [esi + 0x100]
jmp 0x404ae5
lea eax, [ebp + 4]
push eax
mov dword [ebp - 0x80], ebx
push ebx
jmp 0x404ad6
cmp byte [ebp + 4], bl
je 0x404acc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 4]
push eax
mov byte [ebp - 0x7c], bl
call fcn.0040182d
pop ecx
pop ecx
cmp eax, 1
jne 0x404acc
push dword [esi + 0x100]
lea eax, [ebp - 0x7c]
push eax
mov ecx, esi
call fcn.004044df
cmp eax, 1
jne 0x404acc
inc dword [esi + 0x100]
inc dword [ebp - 0x80]
lea eax, [ebp + 4]
push eax
push dword [ebp - 0x80]
mov byte [ebp + 4], bl
call fcn.004017f2
pop ecx
pop ecx
cmp eax, 1
je 0x404a94
cmp dword [esi + 0x100], ebx
jne 0x404af7
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
push dword [esi + 0x40]
push 2
push 0x1102
push dword [esi + 0x38]
call edi
push dword [esi + 0x40]
push 9
push 0x110b
push dword [esi + 0x38]
call edi
mov ecx, esi
call fcn.00404209
mov ecx, esi
call fcn.0040434b
mov ecx, dword [ebp + 0x84]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00405cbe
add ebp, 0x88
leave
ret 0x10

Function at 0x4053d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40540c
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 8]
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40540c
mov eax, 1
cmp dword [esp + 0x10], eax
je 0x40540e
xor eax, eax
ret 0x10

Function at 0x405420
Capabilities:
Query or enumerate registry key

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 8
lea eax, [esp]
push eax
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
neg eax
sbb eax, eax
inc eax
add esp, 8
ret 0x10
Function at 0x4055a0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x424
mov eax, dword [0x417358]
xor eax, esp
mov dword [esp + 0x420], eax
mov eax, dword [esp + 0x428]
mov dword [esp + 0xc], eax
mov byte [eax], 2
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x4055e6
mov eax, 1
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.00405cbe
add esp, 0x424
ret
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push 0x20008
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x405633
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.00405cbe
add esp, 0x424
ret
mov eax, dword [esp + 8]
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push edi
lea ecx, [esp + 0x24]
push ecx
push 0x400
lea edx, [esp + 0x38]
push edx
mov ebp, 2
push ebp
push eax
call esi
lea ecx, [esp + 0x20]
push ecx
push 4
lea edx, [esp + 0x18]
push edx
mov edi, eax
mov eax, dword [esp + 0x20]
push 0x12
push eax
mov dword [esp + 0x24], ebp
call esi
test eax, eax
jne 0x40567b
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x4056ac
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push ebp
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4056b0
xor eax, eax
jmp 0x4056fa
xor ebp, ebp
xor esi, esi
cmp dword [esp + 0x30], ebx
jbe 0x4056e3
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea edi, [esp + 0x34]
mov ecx, dword [edi]
mov edx, dword [esp + 0x18]
push ecx
push edx
call ebx
test eax, eax
jne 0x4056de
inc esi
add edi, 8
cmp esi, dword [esp + 0x30]
jb 0x4056c4
jmp 0x4056e3
mov ebp, 1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov cl, byte [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov byte [edx], cl
mov eax, ebp
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405cbe
add esp, 0x424
ret
Function at 0x405b79
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x41851c], 0
push esi
jne 0x405aec
call fcn.00405a12
test eax, eax
je 0x405b2f
mov eax, dword [0x41851c]
cmp eax, 1
jne 0x405b0d
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x405b2f
pop esi
ret
push eax
call dword [0x418524]
test eax, eax
jne 0x405b77
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x405b33
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x41851c]
call dword [0x418524]
mov edi, eax
test edi, edi
je 0x405b58
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x405b74
mov edi, esi
add esi, 0xff0
push edi
push dword [0x41851c]
call dword [0x418520]
add edi, 0x10
cmp edi, esi
jb 0x405b60
mov eax, edi
pop edi
pop esi
ret
jmp 0x405ad9

Function at 0x405cbe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417358]
jne 0x405cc8
repz ret
jmp fcn.00407b04

Function at 0x40ee30
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00408893
and dword [ebp - 4], 0
cmp dword [0x418ef4], 0
mov ebx, eax
jne 0x40eee1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ef92
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40ef92
push eax
call fcn.00408821
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x418ef4], eax
call esi
push eax
call fcn.00408821
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x418ef8], eax
call esi
push eax
call fcn.00408821
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x418efc], eax
call esi
push eax
call fcn.00408821
pop ecx
mov dword [0x418f04], eax
test eax, eax
je 0x40eee1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00408821
pop ecx
mov dword [0x418f00], eax
mov eax, dword [0x418f00]
cmp eax, ebx
je 0x40ef39
cmp dword [0x418f04], ebx
je 0x40ef39
push eax
call fcn.0040889c
push dword [0x418f04]
mov esi, eax
call fcn.0040889c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ef39
test edi, edi
je 0x40ef39
call esi
test eax, eax
je 0x40ef30
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ef30
test byte [ebp - 0xc], 1
jne 0x40ef39
or dword [ebp + 0x10], 0x200000
jmp 0x40ef72
mov eax, dword [0x418ef8]
cmp eax, ebx
je 0x40ef72
push eax
call fcn.0040889c
pop ecx
test eax, eax
je 0x40ef72
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ef72
mov eax, dword [0x418efc]
cmp eax, ebx
je 0x40ef72
push eax
call fcn.0040889c
pop ecx
test eax, eax
je 0x40ef72
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x418ef4]
call fcn.0040889c
pop ecx
test eax, eax
je 0x40ef92
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ef94
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ce09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422234]
jne 0x40ce13
repz ret
jmp fcn.00413639

Function at 0x413b7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004104e0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ce0
push eax
call fcn.0041046e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c87
cmp dword [0x423e2c], ebx
je 0x413c87
push eax
call fcn.004104e9
push dword [0x423e2c]
mov esi, eax
call fcn.004104e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c87
test edi, edi
je 0x413c87
call esi
test eax, eax
je 0x413c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c7e
test byte [ebp - 0xc], 1
jne 0x413c87
or dword [ebp + 0x10], 0x200000
jmp 0x413cc0
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413cc0
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104e9
pop ecx
test eax, eax
je 0x413ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x31441cdc
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x537a0261
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40337c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40500c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403414
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4033f4
xor eax, eax
push ebp
push 0x4033ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403430
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4033f4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40500c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40500c], ax
mov esp, ebp
pop ebp
ret

Function at 0x403a5c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x406034], 0
je 0x403abd
cmp word [0x406208], 0xd7b2
jne 0x403a85
cmp dword [0x406210], 0
jbe 0x403a85
mov eax, 0x406204
call dword [0x406220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x405084
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403ae4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x405018], 0
jne 0x403ad9
push 0
push 0x40507c
push 0x405084
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403d7c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403de2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403c58
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402a50
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403dcc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403de9
lea eax, [ebp - 0x10]
call fcn.00403bd8
ret
Function at 0x1054a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x107b010]
push edi
push 0x10849e8
call esi
push 0x10849e8
call esi
push 0x10849e8
call esi
push 0x10849e8
call esi
push 0x10849e8
call esi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0
call 0x850338
nop
push eax
nop
call 0x77e9e026
mov ebx, eax
push 0x10849e8
mov dword [ebp - 4], ebx
call esi
push 0x10849e8
call esi
push 0x10849e8
call esi
push 0x10849e8
call esi
push 0x10849e8
call esi
push 0x10849e8
mov byte [ebx + edi], 0
call esi
push 0x10849e8
call esi
push 0x10849e8
call esi
push 0x10849e8
call esi
push 0x10849e8
call esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x1054b7a
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 8], eax
push 0x10849e8
call esi
push 0x10849e8
call esi
push 0x10849e8
call esi
push 0x10849e8
call esi
push 0x10849e8
call esi
mov ecx, dword [ebp + 0xc]
push ecx
add ebx, edi
nop
call 0x768a43d3
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp + 0xc]
add esp, 4
push 0x10849e8
mov cl, byte [edx + eax]
mov edx, dword [ebp - 8]
xor cl, byte [edx + ebx]
mov byte [ebx], cl
call esi
push 0x10849e8
call esi
push 0x10849e8
call esi
push 0x10849e8
call esi
push 0x10849e8
call esi
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x1054b06
push 0x10849e8
call esi
push 0x10849e8
call esi
push 0x10849e8
call esi
push 0x10849e8
call esi
push 0x10849e8
call esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push 4
push ebx
mov dword [ebp - 0xc], 0
call 0x85033d
nop
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1056ef0
Capabilities:
Parse pe header

Disassembly:
cmp dword [ebx + 4], 0x40
jb 0x1056f91
mov eax, dword [ebx]
push 0x40
push eax
push esi
nop
call 0x76899910
mov ecx, 0x5a4d
add esp, 0xc
cmp word [esi], cx
jne 0x1056fc0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1056fc0
lea edx, [eax + 0xf8]
cmp edx, dword [ebx + 4]
ja 0x1056f91
mov ecx, dword [ebx]
push edi
push pe_nt_image_headers32
add ecx, eax
push ecx
lea edi, [esi + 0x40]
push edi
call 0x76899910
nop
add esp, 0xc
cmp dword [edi], 0x4550
pop edi
jne 0x1056fc0
mov edx, 0x10b
cmp word [esi + 0x58], dx
jne 0x1056fc0
movzx eax, word [esi + 0x46]
test ax, ax
je 0x1056fc0
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push 8
mov dword [esi + 0x140], eax
call dword [fcn.012890f4]
push eax
call dword [fcn.01289088]
mov dword [esi + 0x138], eax
test eax, eax
jne 0x1056f97
mov eax, 3
ret
mov eax, 1
ret
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
mov edx, dword [esi + 0x140]
push ebx
push edx
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.01057590
add esp, 0x10
neg eax
sbb eax, eax
inc eax
ret
mov eax, 2
ret
Function at 0x1551af0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x12890e0]
test esi, esi
jne 0x1551b08
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1551b01
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x1551b01
mov eax, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x1c]
add eax, esi
add ecx, esi
push ebx
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
push edi
add ecx, esi
add ebx, esi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x1551b6a
jmp 0x1551b50
mov eax, dword [ebx + edi*4]
mov ecx, dword [0x1288bf0]
add eax, esi
call fcn.0154f610
test eax, eax
je 0x1551b73
inc edi
cmp edi, dword [ebp - 4]
jb 0x1551b50
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + edi*2]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
pop edi
pop ebx
add eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401790
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 0x401870
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x401870
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x4017da
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x4017e1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x4017c0
jmp 0x4017e3
mov esi, 0x1505
jmp 0x4017e3
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 0x401870
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x401814
inc edi
dec ebx
je 0x40186e
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40186e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x401810
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.004089f0
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401810
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.00408a10
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x401810
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x401870
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401880
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 0x401981
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x401981
push ebx
call fcn.004089f0
add esp, 4
test eax, eax
je 0x4018da
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 0x4018e1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4018c0
jmp 0x4018e3
mov esi, 0x1505
jmp 0x4018e3
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 0x401981
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401914
inc ebp
dec ebx
je 0x40197f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40197f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401910
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.004089f0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401910
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00408a10
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401910
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40197f
cmp dword [eax + 4], 2
mov edi, 0
jne 0x401981
mov edi, dword [eax + 8]
jmp 0x401981
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4019b0
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 0x401a1b
mov esi, dword [esp + 0x30]
test esi, esi
je 0x401a1b
push esi
call fcn.004089f0
add esp, 4
test eax, eax
je 0x4019fa
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x401a01
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x4019e0
jmp 0x401a03
mov ebp, 0x1505
jmp 0x401a03
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 0x401a27
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 0x401a44
inc ebx
dec edi
je 0x401a1b
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x401a1b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x401a40
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.004089f0
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x401a40
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.00408a10
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x401a40
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x401a1b
cmp dword [eax + 4], 3
jne 0x401a1b
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x401a1b

Function at 0x401ae0
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 0x401be1
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x401be1
push ebx
call fcn.004089f0
add esp, 4
test eax, eax
je 0x401b3a
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 0x401b41
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x401b20
jmp 0x401b43
mov esi, 0x1505
jmp 0x401b43
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 0x401be1
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401b74
inc ebp
dec ebx
je 0x401bdf
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x401bdf
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401b70
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.004089f0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401b70
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00408a10
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401b70
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x401bdf
cmp dword [eax + 4], 5
mov edi, 0
jne 0x401be1
mov edi, dword [eax + 8]
jmp 0x401be1
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret