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

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x419070], edx
push ebx
push esi
push edi
push ebp
jbe 0x405d07
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x418f70
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x405d07
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x405b69
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x405b7a
push 2
push 0
push edx
call fcn.004050c0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x405c16
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x405c4f
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x405bdd
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x405bcb
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x405bb2
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405c45
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, edi
jge 0x405b9d
jmp 0x405c4f
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405c45
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x405c4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x405cf6
cmp dword [esp + 0x10], 0
je 0x405ca8
cmp dword [esp + 0x10], 5
jne 0x405c8b
mov dword [0x415e2c], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x415e30], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.00407c60
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x405cd2
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x405cd2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x415e2c], 0x1c
mov dword [0x415e30], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x415e2c], 9
mov dword [0x415e30], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x406110
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x406146
cmp byte [esp + 5], 0x3a
jne 0x406146
xor eax, eax
mov al, byte [esp + 4]
push eax
call fcn.00404cd0
add esp, 4
lea esi, [eax - 0x40]
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x4087d0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00408280
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp dword [0x419070], esi
jbe 0x40891d
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0x418f70]
test byte [edx + ecx*8 + 4], 1
je 0x40891d
push 1
push ebx
push esi
call fcn.004050c0
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x40890d
push 2
push ebx
push esi
call fcn.004050c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x40890d
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x4088b3
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.0040b0b0
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x408876
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00405b00
add esp, 0xc
cmp eax, 0xffffffff
je 0x408892
sub ebp, eax
test ebp, ebp
jg 0x40886b
jmp 0x4088a7
cmp dword [0x415e30], 5
jne 0x4088a5
mov dword [0x415e2c], 0xd
mov ebx, eax
push edi
push esi
call fcn.0040b0b0
add esp, 8
jmp 0x4088f0
jge 0x4088f0
push 0
push ecx
push esi
call fcn.004050c0
add esp, 0xc
push esi
call fcn.004085a0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x4088f0
mov dword [0x415e2c], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x415e30], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.004050c0
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x415e2c], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret

Function at 0x408940
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408965
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407c60
add esp, 4
mov eax, 0xffffffff
ret
test al, 1
je 0x40898a
test byte [esp + 8], 2
je 0x40898a
mov dword [0x415e2c], 0xd
mov dword [0x415e30], 5
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x409ce0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x417170], ebx
jne 0x409d2f
call esi
cmp eax, ebx
mov edi, eax
je 0x409d0d
mov dword [0x417170], 1
jmp 0x409d2f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x409d25
mov dword [0x417170], 2
jmp 0x409d2f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x417170], 1
jne 0x409dde
test edi, edi
jne 0x409d52
call esi
mov edi, eax
test edi, edi
jne 0x409d52
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x409d6c
add esi, 2
cmp word [esi], 0
jne 0x409d5a
add esi, 2
cmp word [esi], 0
jne 0x409d5a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x409dcd
push ebp
call fcn.00404640
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x409dcd
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x409dbc
push ebx
call fcn.00404470
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x417170], 2
jne 0x409e62
test ebx, ebx
jne 0x409e01
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x409e01
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x409e16
inc ebp
cmp byte [ebp], 0
jne 0x409e08
inc ebp
cmp byte [ebp], 0
jne 0x409e08
sub ebp, ebx
inc ebp
push ebp
call fcn.00404640
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x409e3b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x40a260
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x417390
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x40a287
add eax, 8
inc ecx
cmp eax, 0x417420
jb 0x40a278
cmp dword [ecx*8 + 0x417390], edx
lea ebx, [ecx*8]
jne 0x40a44b
cmp dword [0x41641c], 1
je 0x40a407
cmp dword [0x41641c], 0
jne 0x40a2be
cmp dword [0x416420], 1
je 0x40a407
cmp edx, 0xfc
je 0x40a44b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x40a2fb
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40a33f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x4143f4
push ebp
call fcn.00406010
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4143d4
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x417394]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.0040c200
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x418f70], 0
je 0x40a41d
mov eax, dword [0x418f70]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x40a427
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x417394]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x40aee0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov ebx, dword [esp + 0x118]
push edi
test ebx, ebx
je 0x40af53
push ebx
call fcn.0040b010
add esp, 4
test eax, eax
jne 0x40af21
xor eax, eax
pop edi
mov dword [0x415e30], 0xf
mov dword [0x415e2c], 0xd
pop esi
pop ebx
add esp, 0x10c
ret
add bl, 0x40
lea eax, [esp + 0x10]
mov byte [esp + 0xc], bl
push eax
lea ecx, [esp + 0x18]
lea ebx, [esp + 0x10]
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], 0x2e
mov byte [esp + 0x13], 0
push ecx
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x40af63
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40b002
inc eax
cmp eax, 0x104
ja 0x40b002
mov edx, dword [esp + 0x120]
test edx, edx
jne 0x40afb4
mov ecx, dword [esp + 0x124]
cmp ecx, eax
jg 0x40af8f
mov ecx, eax
push ecx
call fcn.00404640
add esp, 4
mov edx, eax
test edx, edx
jne 0x40afd3
xor eax, eax
pop edi
mov dword [0x415e2c], 0xc
pop esi
pop ebx
add esp, 0x10c
ret
cmp dword [esp + 0x124], eax
jge 0x40afd3
xor eax, eax
pop edi
mov dword [0x415e2c], 0x22
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x40b010
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 4
test eax, eax
jne 0x40b024
mov eax, 1
add esp, 4
ret
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0x5c
mov byte [esp + 3], 0
add al, 0x40
mov byte [esp], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x40b056
cmp eax, 1
je 0x40b056
mov eax, 1
add esp, 4
ret
xor eax, eax
add esp, 4
ret
Function at 0x40b450
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x40b68e
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.0040c700
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x40b68e
cmp ebp, dword [esp + 0x18]
je 0x40b68e
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x415e54]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x415e58], ecx
jne 0x40b4ad
push ecx
call fcn.0040b700
add esp, 4
mov dword [0x415e54], eax
cmp dword [0x415e54], 0
jne 0x40b55d
cmp dword [esp + 0x1c], 0
je 0x40b4e4
cmp dword [0x415e5c], 0
je 0x40b4e4
call fcn.00408ac0
test eax, eax
je 0x40b55d
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x40b4f5
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x415e54], 0
jne 0x40b529
push 4
call fcn.00404640
add esp, 4
mov dword [0x415e54], eax
test eax, eax
jne 0x40b51e
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x415e54]
mov dword [eax], 0
cmp dword [0x415e5c], 0
jne 0x40b55d
push 4
call fcn.00404640
add esp, 4
mov dword [0x415e5c], eax
test eax, eax
jne 0x40b552
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x415e5c]
mov dword [eax], 0
mov esi, dword [0x415e54]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.0040b6a0
add esp, 8
mov edi, eax
test edi, edi
jl 0x40b5c5
cmp dword [esi], 0
je 0x40b5c5
cmp dword [esp + 0x10], 0
je 0x40b5bc
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.00404470
add esp, 4
cmp dword [ebx], 0
je 0x40b5a9
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x40b59a
shl edi, 2
push edi
push esi
call fcn.0040c550
add esp, 8
test eax, eax
je 0x40b60d
jmp 0x40b608
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x40b60d
cmp dword [esp + 0x10], 0
jne 0x40b684
test edi, edi
jge 0x40b5d6
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.0040c550
add esp, 8
test eax, eax
jne 0x40b5f8
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
lea ecx, [eax + edi*4]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [0x415e54], eax
cmp dword [esp + 0x1c], 0
je 0x40b67a
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00404640
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x40b67a
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebp + ebx]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00404470
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x40d8a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040d483
push eax
push esi
push dword [ebp + 8]
call fcn.0040d438
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0040d473
cdq
hlt
Function at 0x401f00
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
xor eax, eax
test ecx, ecx
je 0x401fe7
test edx, edx
je 0x401fe7
mov ebp, dword [esp + 0x28]
test ebp, ebp
mov dword [esp], ecx
je 0x401f4a
mov ecx, 0x1505
xor edi, edi
nop dword [eax + eax]
movzx ebx, byte [edx + edi]
test ebx, ebx
je 0x401f51
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, ebx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x401f30
jmp 0x401f53
mov esi, 0x1505
jmp 0x401f53
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 0x401fe7
and ebx, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 4], edx
jmp 0x401f84
inc ebx
dec ebp
je 0x401fe5
mov eax, ebx
and eax, edx
mov edi, dword [esp + 0x10]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x401fe5
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401f80
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 0xc], eax
push eax
call fcn.00417ce0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401f80
push dword [esp + 0x28]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00417d00
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x401f80
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x401fe7
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401ff0
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 0x4020f9
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4020f9
push ebx
call fcn.00417ce0
add esp, 4
test eax, eax
je 0x40204a
mov ecx, 0x1505
xor ebp, ebp
nop word cs:[eax + eax]
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x402051
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x402030
jmp 0x402053
mov esi, 0x1505
jmp 0x402053
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 0x4020f9
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov dword [esp], edx
jmp 0x402084
inc ebp
dec ebx
je 0x4020f7
mov eax, ebp
and eax, edx
mov edi, dword [esp + 0xc]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x4020f7
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402080
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.00417ce0
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402080
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.00417d00
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402080
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4020f7
cmp dword [eax + 4], 2
mov edi, 0
jne 0x4020f9
mov edi, dword [eax + 8]
jmp 0x4020f9
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402130
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 0x4021a3
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4021a3
push esi
call fcn.00417ce0
add esp, 4
test eax, eax
je 0x40218a
mov ecx, 0x1505
xor ebx, ebx
nop word cs:[eax + eax]
movzx edx, byte [esi + ebx]
test edx, edx
je 0x402191
mov edi, ecx
shl edi, 5
add edi, ecx
add edi, edx
inc ebx
mov ecx, edi
cmp eax, ebx
jne 0x402170
jmp 0x402193
mov edi, 0x1505
jmp 0x402193
mov edi, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
lea esi, [edx - 1]
mov ebx, edx
sub ebx, 1
jae 0x4021bb
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 0x4021d8
inc esi
dec edx
mov ebx, dword [esp + 0x10]
je 0x4021a3
mov eax, esi
and eax, ebx
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + eax*4]
cmp ebx, 0xffffffff
je 0x4021a3
mov eax, dword [ecx + 8]
cmp dword [eax + ebx*4], edi
jne 0x4021d0
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.00417ce0
mov edx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x4021d0
push dword [esp + 4]
push dword [esp + 0x10]
push dword [ebp + 0xc]
call fcn.00417d00
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
add esp, 0xc
test eax, eax
jne 0x4021d0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x4021a3
cmp dword [eax + 4], 3
jne 0x4021a3
movsd xmm0, qword [eax + 8]
movsd qword [esp + 0x18], xmm0
jmp 0x4021a3
Function at 0x402280
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 0x402389
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x402389
push ebx
call fcn.00417ce0
add esp, 4
test eax, eax
je 0x4022da
mov ecx, 0x1505
xor ebp, ebp
nop word cs:[eax + eax]
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x4022e1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4022c0
jmp 0x4022e3
mov esi, 0x1505
jmp 0x4022e3
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 0x402389
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov dword [esp], edx
jmp 0x402314
inc ebp
dec ebx
je 0x402387
mov eax, ebp
and eax, edx
mov edi, dword [esp + 0xc]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x402387
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402310
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.00417ce0
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402310
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.00417d00
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402310
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x402387
cmp dword [eax + 4], 5
mov edi, 0
jne 0x402389
mov edi, dword [eax + 8]
jmp 0x402389
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret