joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d190
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0x10
cmp dword [esp + 0x24], 0xc
jae 0x42d1a8
mov eax, dword [esp + 0x28]
mov byte [eax], 0xff
or eax, 0xffffffff
add esp, 0x10
ret
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x24]
mov dword [esi], 0x12345678
mov dword [esi + 4], 0x23456789
mov dword [esi + 8], 0x34567890
test edi, edi
je 0x42d225
push ebx
mov ebx, dword [esp + 0x24]
nop
movzx eax, byte [ebx]
mov byte [esp + 0x30], al
lea eax, [esp + 0x30]
push 1
push eax
mov eax, dword [esi]
not eax
push eax
call fcn.004271f0
not eax
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [esi + 4], eax
movzx eax, byte [esi + 7]
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push eax
mov eax, dword [esi + 8]
not eax
push eax
call fcn.004271f0
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [esi + 8], eax
dec edi
jne 0x42d1d0
pop ebx
push 0xc
lea eax, [esp + 0x10]
push eax
push 0xc
push dword [esp + 0x34]
push esi
call fcn.0042d0e0
mov ecx, dword [esp + 0x44]
add esp, 0x14
mov al, byte [esp + 0x17]
pop edi
mov byte [ecx], al
xor eax, eax
pop esi
add esp, 0x10
ret
Function at 0x431f20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0x14]
push edi
lea edi, [ebx + 0x94]
mov al, byte [edi + ecx]
cmp al, 0x20
je 0x431f42
test al, al
je 0x431f42
sub al, 0x30
cmp al, 7
ja 0x431f66
inc ecx
cmp ecx, 8
jb 0x431f31
mov dl, byte [edi]
push esi
test dl, dl
jns 0x431fe0
test dl, 0x40
je 0x431f6e
or bl, 0xff
or dl, 0x80
or esi, 0xffffffff
or ecx, 0xffffffff
jmp 0x431f77
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
xor bl, bl
and dl, 0x7f
xor esi, esi
xor ecx, ecx
mov al, bl
xor al, dl
jns 0x431fa4
test bl, bl
je 0x431f92
mov ebx, dword [esp + 0x1c]
mov ecx, 0x80000000
xor esi, esi
mov dword [esp + 0x10], ecx
jmp 0x431ff3
mov ebx, dword [esp + 0x1c]
mov ecx, 0x7fffffff
or esi, 0xffffffff
mov dword [esp + 0x10], ecx
jmp 0x431ff3
mov ebx, 7
lea esp, [esp]
shld ecx, esi, 8
movzx eax, dl
lea edi, [edi + 1]
cdq
shl esi, 8
or ecx, edx
mov dl, byte [edi]
or esi, eax
dec ebx
jne 0x431fb0
mov ebx, dword [esp + 0x1c]
shld ecx, esi, 8
movzx eax, dl
shl esi, 8
cdq
or esi, eax
or ecx, edx
mov dword [esp + 0x10], ecx
jmp 0x431ff3
push 8
push 8
push edi
call fcn.00434ea0
add esp, 0xc
mov dword [esp + 0x10], edx
mov esi, eax
xor edx, edx
xor ecx, ecx
xor edi, edi
lea esp, [esp]
movzx eax, byte [ebx + ecx]
add edx, eax
movzx eax, byte [ebx + ecx + 1]
add ecx, 2
add edi, eax
cmp ecx, 0x94
jb 0x432000
push ebp
mov ebp, 0x9c
add edx, edi
cmp ecx, ebp
jae 0x43202f
mov eax, ebp
sub eax, ecx
add ecx, eax
shl eax, 5
add edx, eax
xor edi, edi
xor ebx, ebx
cmp ecx, 0x200
jae 0x432084
mov eax, 0x200
sub eax, ecx
cmp eax, 2
jb 0x43206d
mov ebp, dword [esp + 0x20]
jmp 0x432050
movzx eax, byte [ecx + ebp]
add edi, eax
movzx eax, byte [ecx + ebp + 1]
add ecx, 2
add ebx, eax
cmp ecx, 0x1ff
jb 0x432050
mov ebp, 0x9c
cmp ecx, 0x200
jae 0x43207f
mov eax, dword [esp + 0x20]
movzx eax, byte [ecx + eax]
add edx, eax
lea eax, [ebx + edi]
add edx, eax
cmp esi, edx
jne 0x432095
pop ebp
pop esi
pop edi
mov eax, 1
pop ebx
add esp, 8
ret
mov ebx, dword [esp + 0x20]
xor edx, edx
xor eax, eax
xor edi, edi
nop
movsx ecx, byte [ebx + eax]
add edx, ecx
movsx ecx, byte [ebx + eax + 1]
add eax, 2
add edi, ecx
cmp eax, 0x94
jb 0x4320a0
add edx, edi
cmp eax, 0x9c
jae 0x4320c9
sub ebp, eax
add eax, ebp
shl ebp, 5
add edx, ebp
xor edi, edi
xor ebx, ebx
cmp eax, 0x200
jae 0x43210d
mov ebp, dword [esp + 0x20]
mov ecx, 0x200
sub ecx, eax
cmp ecx, 2
jb 0x4320fb
movsx ecx, byte [eax + ebp]
add edi, ecx
movsx ecx, byte [eax + ebp + 1]
add eax, 2
add ebx, ecx
cmp eax, 0x1ff
jb 0x4320e4
cmp eax, 0x200
jae 0x432108
movsx eax, byte [eax + ebp]
add edx, eax
lea eax, [ebx + edi]
add edx, eax
pop ebp
xor eax, eax
cmp esi, edx
pop esi
pop edi
sete al
pop ebx
add esp, 8
ret
Function at 0x43df10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x18
cmp eax, 5
jae 0x43df22
xor eax, eax
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov edx, dword [ecx + 0x4d00]
lea ebp, [eax - 4]
push esi
mov esi, dword [ecx + 0x4d04]
mov ecx, dword [ecx + 0x4d08]
push edi
xor edi, edi
mov dword [esp + 0x34], ecx
add ebp, ebx
mov dword [esp + 0x20], ebp
nop
lea eax, [edi + ebx]
mov dword [esp + 0x10], eax
cmp eax, ebp
jae 0x43df73
jmp 0x43df60
mov cl, byte [eax]
and cl, 0xfe
cmp cl, 0xe8
je 0x43df6f
inc eax
cmp eax, ebp
jb 0x43df60
mov dword [esp + 0x10], eax
mov edi, eax
sub edi, ebx
cmp eax, ebp
jae 0x43e094
mov ecx, edi
sub ecx, edx
cmp ecx, 3
jbe 0x43dfab
xor esi, esi
mov dword [esp + 0x14], esi
mov cl, byte [eax + 4]
mov edx, edi
mov dword [esp + 0x24], edx
test cl, cl
je 0x43dfe7
cmp cl, 0xff
je 0x43dfe7
and esi, 3
add esi, esi
or esi, 1
inc edi
jmp 0x43df50
dec ecx
shl esi, cl
and esi, 7
mov dword [esp + 0x14], esi
je 0x43df8e
movzx ecx, byte [esi + 0x47d058]
mov edx, eax
sub edx, ecx
cmp byte [esi + 0x47d050], 0
mov cl, byte [edx + 4]
je 0x43dfd7
test cl, cl
je 0x43dfd7
cmp cl, 0xff
jne 0x43df8e
and esi, 3
mov edx, edi
add esi, esi
or esi, 1
inc edi
jmp 0x43df50
movzx ebx, cl
movzx ecx, byte [eax + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 1]
shl ebx, 8
or ebx, ecx
sub ebx, dword [esp + 0x34]
sub ebx, edi
test esi, esi
je 0x43e066
movzx ecx, byte [esi + 0x47d058]
mov edx, 0x18
mov esi, dword [esp + 0x34]
shl ecx, 3
sub edx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov ebp, ecx
mov eax, edx
mov edx, ebx
mov ecx, eax
shr edx, cl
test dl, dl
je 0x43e03f
cmp dl, 0xff
jne 0x43e056
mov ecx, 0x20
mov edx, 1
sub ecx, ebp
shl edx, cl
dec edx
xor ebx, edx
sub ebx, esi
sub ebx, edi
jmp 0x43e030
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, ebx
mov byte [eax + 1], bl
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [eax + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [eax + 3], cl
mov ecx, ebx
mov ebx, dword [esp + 0x30]
shr ecx, 8
add edi, 5
mov byte [eax + 2], cl
jmp 0x43df50
mov eax, dword [esp + 0x2c]
add dword [eax + 0x4d08], edi
mov dword [eax + 0x4d04], esi
mov dword [eax + 0x4d00], edx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x442ee0
Capabilities:
Terminate process

Disassembly:
mov edx, dword [str.Fatal_Internal_Error_in_libarchive:]
mov ecx, edx
push esi
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442ef0
sub ecx, esi
push ecx
push edx
push 2
call fcn.00448f10
mov edx, dword [esp + 0x18]
add esp, 0xc
mov ecx, edx
lea esi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442f10
sub ecx, esi
push ecx
push edx
push 2
call fcn.00448f10
push 1
push 0x47e068
push 2
call fcn.00448f10
add esp, 0x18
push dword [esp + 8]
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
int3
Function at 0x443850
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 0x30]
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 4], 0
mov edi, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
lea eax, [edi + 1]
push eax
push esi
call fcn.004447e0
mov ebp, dword [sym.imp.MSVCRT.dll_memmove]
add esp, 8
test eax, eax
je 0x4438a7
mov eax, dword [esi + 4]
add eax, dword [esi]
push edi
push dword [esp + 0x1c]
push eax
call ebp
mov eax, dword [esi]
add esp, 0xc
add dword [esi + 4], edi
mov ecx, dword [esi + 4]
mov byte [ecx + eax], 0
jmp 0x4438b6
push str.Out_of_memory
push 1
call fcn.00442ee0
add esp, 8
mov dword [esi + 0x10], 0
lea edi, [esi + 0xc]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 4]
inc eax
mov dword [esp + 0x18], ecx
add eax, ecx
push eax
push edi
call fcn.004447e0
add esp, 8
test eax, eax
je 0x443907
push dword [esp + 0x18]
mov eax, dword [edi]
push dword [esp + 0x18]
add eax, dword [edi + 4]
push eax
call ebp
mov eax, dword [esp + 0x24]
add esp, 0xc
add dword [edi + 4], eax
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov byte [ecx + eax], 0
jmp 0x443916
push str.Out_of_memory
push 1
call fcn.00442ee0
add esp, 8
mov dword [esi + 0x1c], 0
add esi, 0x18
mov edi, dword [ebx + 0x1c]
mov ebx, dword [ebx + 0x18]
mov eax, dword [esi + 4]
inc eax
add eax, edi
add eax, eax
push eax
push esi
call fcn.004447e0
add esp, 8
test eax, eax
je 0x443962
mov ecx, dword [esi + 4]
lea eax, [edi + edi]
push eax
mov eax, dword [esi]
push ebx
lea eax, [eax + ecx*2]
push eax
call ebp
add dword [esi + 4], edi
add esp, 0xc
mov ecx, dword [esi + 4]
xor edx, edx
mov eax, dword [esi]
pop edi
pop esi
pop ebp
mov word [eax + ecx*2], dx
pop ebx
ret
pop edi
pop esi
pop ebp
pop ebx
mov dword [esp + 8], str.Out_of_memory
mov dword [esp + 4], 1
jmp fcn.00442ee0
Function at 0x4489b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll__errno]
test eax, 0xffff7fff
jne 0x448a94
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x448a2d
call ebx
cmp eax, 3
jne 0x448a13
push ebp
call fcn.00448ce0
mov esi, eax
add esp, 4
test esi, esi
jne 0x448a07
call edi
pop edi
pop esi
pop ebp
mov dword [eax], 0x16
or eax, 0xffffffff
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x448a2d
call ebx
push eax
call fcn.004488e0
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x448a88
push 0
push 0x2000001
push 3
push 0
push 0
push 0
test esi, esi
je 0x448a4d
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x448a54
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp edi, 0xffffffff
jne 0x448a77
call ebx
push eax
call fcn.004488e0
add esp, 4
or eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push 0
push edi
call dword [sym.imp.MSVCRT.dll__open_osfhandle]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret
test esi, esi
jne 0x448b2b
mov eax, dword [esp + 0x18]
push dword [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.MSVCRT.dll__open]
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x448bb9
call edi
cmp dword [eax], 0xd
jne 0x448b01
test dword [esp + 0x18], 0x100
je 0x448b01
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x448add
call ebx
push eax
call fcn.004488e0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x448af1
call edi
pop edi
pop esi
pop ebp
mov dword [eax], 0x15
or eax, 0xffffffff
pop ebx
ret
call edi
pop edi
pop esi
pop ebp
mov dword [eax], 0xd
or eax, 0xffffffff
pop ebx
ret
call edi
cmp dword [eax], 2
jne 0x448bb9
push ebp
call fcn.00448ce0
mov esi, eax
add esp, 4
test esi, esi
jne 0x448b2b
call edi
pop edi
pop esi
pop ebp
mov dword [eax], 0x16
or eax, 0xffffffff
pop ebx
ret
push dword [esp + 0x1c]
mov ebp, dword [esp + 0x1c]
push ebp
push esi
call dword [sym.imp.MSVCRT.dll__wopen]
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
jns 0x448ba6
call edi
cmp dword [eax], 0xd
jne 0x448ba6
test ebp, 0x100
je 0x448ba6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x448b7f
call ebx
push eax
call fcn.004488e0
add esp, 4
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x448b9e
call edi
push esi
mov dword [eax], 0x15
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
call edi
mov dword [eax], 0xd
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x448bc0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x448bd8
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
cmp dword [esp + 0xc], 0
jne 0x448be2
xor eax, eax
ret
push eax
call dword [sym.imp.MSVCRT.dll__get_osfhandle]
add esp, 4
lea ecx, [esp + 4]
push 0
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x448c4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x448c23
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0xb
or eax, 0xffffffff
ret
cmp eax, 0x6d
je 0x448bdf
cmp eax, 5
jne 0x448c3d
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
push eax
call fcn.004488e0
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret

Function at 0x448f10
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x448f28
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
push 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll__get_osfhandle]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x448f74
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x448f67
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
push eax
call fcn.004488e0
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret

Function at 0x449260
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.DLL_CryptAcquireContextW]
lea eax, [esp + 4]
push 0xf0000000
push 1
push 0
push 0
push eax
call esi
test eax, eax
jne 0x44929e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4492c7
push 8
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
call esi
test eax, eax
je 0x4492c7
push dword [esp + 0xc]
push dword [esp + 0x14]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.DLL_CryptGenRandom]
push 0
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
test esi, esi
je 0x4492c7
xor eax, eax
pop esi
pop ecx
ret
mov eax, 0xffffffe7
pop esi
pop ecx
ret
Function at 0x4592d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [eax + 0x38]
mov bl, byte [eax + 0x34]
test esi, esi
jle 0x45930b
mov edx, dword [eax + 0x260]
push edi
movzx edi, bl
lea ebx, [ebx]
mov ecx, edx
shl edx, 8
shr ecx, 0x18
xor ecx, edi
xor edx, dword [ecx*4 + 0x4a4f58]
mov dword [eax + 0x260], edx
dec esi
jne 0x4592f0
pop edi
mov ecx, dword [eax + 0x34]
mov byte [eax + ecx + 0x58], 1
mov edx, dword [eax + 0x38]
mov ecx, edx
dec ecx
je 0x459392
dec ecx
je 0x459377
dec ecx
je 0x45936b
mov byte [edx + eax + 0x54], 1
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov esi, dword [eax + 0x44]
mov dl, byte [eax + 0x38]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
inc dword [eax + 0x44]
pop esi
pop ebx
ret
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
Function at 0x475de8
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4a8724], 0
push ebx
push esi
mov esi, 0x4a872c
jne 0x475e14
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x4a8744], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4a8724], 1
push dword [0x4a8744]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x475eb1
push 0x14
push 8
push dword [0x4a7db0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x475edb
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4a8728]
test eax, eax
je 0x475e56
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4a8728], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x475ee0
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x4a8744]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x4a7db0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x475edb
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x404510
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 0x4045f0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4045f0
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40455a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x404561
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x404540
jmp 0x404563
mov esi, 0x1505
jmp 0x404563
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 0x4045f0
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x404594
inc edi
dec ebx
je 0x4045ee
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x4045ee
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x404590
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040cf20
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x404590
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040cf40
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x404590
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x4045f0
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404600
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 0x404701
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404701
push ebx
call fcn.0040cf20
add esp, 4
test eax, eax
je 0x40465a
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 0x404661
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x404640
jmp 0x404663
mov esi, 0x1505
jmp 0x404663
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 0x404701
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404694
inc ebp
dec ebx
je 0x4046ff
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4046ff
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404690
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cf20
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404690
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cf40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404690
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4046ff
cmp dword [eax + 4], 2
mov edi, 0
jne 0x404701
mov edi, dword [eax + 8]
jmp 0x404701
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404730
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 0x40479b
mov esi, dword [esp + 0x30]
test esi, esi
je 0x40479b
push esi
call fcn.0040cf20
add esp, 4
test eax, eax
je 0x40477a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x404781
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x404760
jmp 0x404783
mov ebp, 0x1505
jmp 0x404783
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 0x4047a7
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 0x4047c4
inc ebx
dec edi
je 0x40479b
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x40479b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x4047c0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cf20
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x4047c0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.0040cf40
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x4047c0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x40479b
cmp dword [eax + 4], 3
jne 0x40479b
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x40479b

Function at 0x404860
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 0x404961
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x404961
push ebx
call fcn.0040cf20
add esp, 4
test eax, eax
je 0x4048ba
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 0x4048c1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4048a0
jmp 0x4048c3
mov esi, 0x1505
jmp 0x4048c3
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 0x404961
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x4048f4
inc ebp
dec ebx
je 0x40495f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40495f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4048f0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040cf20
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4048f0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040cf40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4048f0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40495f
cmp dword [eax + 4], 5
mov edi, 0
jne 0x404961
mov edi, dword [eax + 8]
jmp 0x404961
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret