joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403fc0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x436650]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov eax, 1
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x22c]
push eax
push 0
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x22c], 3
mov dword [ebp - 0x228], 0x1f4
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x220], eax
test eax, eax
jle 0x404104
mov edi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
lea ecx, [ebp - 0x110]
push ecx
push esi
call edi
lea edx, [ebp - 0x218]
push edx
push esi
mov ebx, eax
call edi
test ebx, ebx
je 0x4040ef
test eax, eax
jne 0x4040ef
mov byte [ebp - 0x21c], al
mov word [ebp - 0x21b], ax
mov byte [ebp - 0x219], al
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 0x1007
push 0xffff
push esi
mov dword [ebp - 0x224], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4040ef
mov edx, 0x42efdb
lea ecx, [ebp - 0x21c]
lea esp, [esp]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4040d0
test al, al
je 0x4040cc
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4040d0
add ecx, 2
add edx, 2
test al, al
jne 0x4040b0
xor eax, eax
jmp 0x4040d5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4040ef
mov eax, dword [ebp - 0x220]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041637f
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041637f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.0041637f
mov esp, ebp
pop ebp
ret
Function at 0x404120
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42afe8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x436650]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [esi + 0x38]
xor edi, edi
cmp eax, edi
je 0x40415f
push eax
call fcn.00416430
add esp, 4
mov dword [esi + 0x38], edi
push 0x19000
call fcn.0041576e
add esp, 4
mov ebx, eax
mov byte [ebp - 0x2d], 1
mov byte [ebp - 0x2e], 0
cmp edi, 0x2800
jge 0x4041fa
cmp dword [esi + 0x3c], 0
je 0x4041b6
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 4]
test eax, eax
je 0x404197
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx eax, byte [esi + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x34], 0
setne al
test al, al
je 0x4041fa
mov eax, dword [esi + 0x2c]
push 0
push 1
lea edx, [ebp - 0x2e]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4041f6
mov cl, byte [ebp - 0x2e]
mov byte [edi + ebx], cl
inc edi
cmp edi, 4
jl 0x404176
cmp byte [edi + ebx - 4], 0xd
jne 0x404176
cmp byte [edi + ebx - 3], 0xa
jne 0x404176
cmp byte [edi + ebx - 2], 0xd
jne 0x404176
cmp byte [edi + ebx - 1], 0xa
jne 0x404176
jmp 0x4041fa
mov byte [ebp - 0x2d], 0
mov byte [edi + ebx], 0
mov eax, ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404215
sub eax, edx
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00403140
lea eax, [edi + 1]
push eax
mov dword [ebp - 4], 0
call fcn.0041576e
lea ecx, [edi + 1]
push ecx
push 0
push eax
mov dword [esi + 0x38], eax
call fcn.0041cf90
mov edx, dword [esi + 0x38]
push edi
push ebx
push edx
call fcn.00417fc0
mov eax, dword [esi + 0x38]
add esp, 0x1c
push eax
call fcn.004049e0
mov dword [esi + 0x10], eax
test ebx, ebx
je 0x40426e
push ebx
call fcn.00416430
add esp, 4
cmp dword [ebp - 0x18], 0x10
jb 0x404280
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0041643b
add esp, 4
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041637f
mov esp, ebp
pop ebp
ret
Function at 0x4048e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x34]
push edi
push eax
push str._______________________m_szHead__n__s
call fcn.004169f1
mov edx, dword [esi + 0x34]
mov eax, edx
add esp, 8
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404900
mov ecx, dword [esi + 0x2c]
sub eax, edi
push 0
inc eax
push eax
push edx
push ecx
call dword [sym.imp.WS2_32.dll_send]
pop edi
test eax, eax
jns 0x404936
mov eax, dword [esi + 0x2c]
cmp eax, 0xffffffff
je 0x404933
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x2c], 0xffffffff
xor al, al
ret
setne al
ret

Function at 0x404960
Capabilities:
Create thread

Disassembly:
cmp dword [esi + 0x58], 0
jne 0x4049d5
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
test eax, eax
je 0x40497d
push 0xffffffffffffffff
push eax
call ebx
mov eax, dword [esi + 0x54]
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 8], 1
mov ecx, dword [eax + 4]
push ecx
call edi
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 4]
test eax, eax
je 0x40499f
push 0xffffffffffffffff
push eax
call ebx
mov edx, dword [esi + 0x54]
mov dword [esi + 0x14], 1
mov eax, dword [edx + 4]
push eax
call edi
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esi + 0x5c]
push ecx
push 0
push esi
push 0x403e80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 0x58], eax
mov al, 1
pop ebx
ret
xor al, al
ret
Function at 0x406b70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42a8f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x436650]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], esi
mov edx, dword [edi + 0x14]
cmp edx, esi
je 0x406bee
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406bb8
sub eax, ebx
je 0x406bee
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, esi
jne 0x406bf0
lea esi, [esp + 0x14]
call fcn.004073d0
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov eax, dword [edi + 0xc]
push eax
lea esi, [esp + 0x18]
call fcn.00407260
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x406c5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x406c23
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x406c34
push eax
call fcn.0041643b
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x406c45
push eax
call fcn.0041643b
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406c18
cmp dword [edi + 8], 0
jbe 0x406c18
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [edi + 8]
push eax
call fcn.0041576e
mov ecx, dword [edi + 8]
add esp, 4
push ecx
push esi
push eax
mov dword [edi + 4], eax
call fcn.00417fc0
add esp, 0xc
test ebx, ebx
je 0x406ca8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x406cb9
push eax
call fcn.0041643b
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x406cca
push eax
call fcn.0041643b
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406ed0
Capabilities:
Enumerate gui resources

Disassembly:
push esi
mov esi, dword [edi + 0x14]
test esi, esi
je 0x406f1a
mov ecx, esi
mov eax, 0x42efdb
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406f00
test dl, dl
je 0x406efc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406f00
add eax, 2
add ecx, 2
test dl, dl
jne 0x406ee0
xor eax, eax
jmp 0x406f05
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406f1a
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x406f1c
xor eax, eax
pop esi
ret
xor esi, esi
cmp dword [edi + 0x1c], 0x42efdb
je 0x406f16
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push 0x406d90
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
test eax, eax
setne bl
test bl, bl
jne 0x406f57
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3b02
je 0x406f55
test eax, eax
jne 0x406f57
mov bl, 1
test esi, esi
je 0x406f62
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, bl
pop ebx
pop esi
ret
Function at 0x407a70
Capabilities:
Get common file path

Disassembly:
mov eax, dword [edi + 0x1c]
test eax, eax
jne 0x407ad7
push esi
push 0x400
call fcn.0041576e
push 0x400
mov esi, eax
push 0
push esi
call fcn.0041cf90
add esp, 0x10
push 0
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407aa6
sub eax, edx
inc eax
push eax
call fcn.0041576e
add esp, 4
mov dword [edi + 0x1c], eax
mov ecx, esi
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x407ac0
push esi
call fcn.00416430
mov eax, dword [edi + 0x1c]
add esp, 4
pop esi
ret
Function at 0x407fd0
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 8], 0
jne 0x407fdd
xor eax, eax
pop esi
ret
push ebx
push edi
push 0x400
call fcn.0041576e
push 0x400
mov ebx, eax
push 0
push ebx
call fcn.0041cf90
add esp, 0x10
lea eax, [ebx - 1]
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408000
mov ecx, dword [str.schtasks__delete__TN]
mov dword [eax], ecx
mov edx, dword [0x43194c]
mov dword [eax + 4], edx
mov ecx, dword [0x431950]
mov dword [eax + 8], ecx
mov edx, dword [0x431954]
mov dword [eax + 0xc], edx
mov ecx, dword [0x431958]
mov dword [eax + 0x10], ecx
mov dx, word [0x43195c]
mov word [eax + 0x14], dx
mov eax, dword [esi + 8]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408044
sub eax, esi
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408050
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408070
mov eax, dword [0x431960]
push 0
push ebx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push ebx
call fcn.00416430
add esp, 4
pop edi
pop ebx
mov eax, 1
pop esi
ret
Function at 0x408260
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x10]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408270
push ebx
sub eax, edx
push edi
lea edi, [eax + 1]
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
je 0x408293
push eax
call fcn.00416430
add esp, 4
mov dword [esi + 8], ebx
push edi
call fcn.0041576e
push edi
push ebx
push eax
mov dword [esi + 8], eax
call fcn.0041cf90
xor eax, eax
add esp, 0x10
mov dword [ebp - 4], eax
cmp edi, eax
jle 0x4082f1
mov edx, dword [esi + 0x10]
mov cl, byte [edx + eax]
cmp cl, 0x3a
je 0x4082f1
mov edx, dword [esi + 8]
mov byte [eax + edx], cl
mov edx, dword [esi + 0x10]
mov cl, byte [edx + eax]
cmp cl, 0x2e
jne 0x4082cf
inc ebx
jmp 0x4082ec
cmp dword [ebp - 4], 1
je 0x4082ec
test cl, cl
jns 0x4082e5
mov dword [ebp - 4], 1
cmp cl, 0x39
jg 0x4082ec
mov dword [ebp - 4], 0
inc eax
cmp eax, edi
jl 0x4082b3
mov edx, dword [esi + 8]
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408300
sub eax, edi
cmp eax, 1
ja 0x40832e
test edx, edx
je 0x4083c5
push edx
call fcn.00416430
add esp, 4
pop edi
mov dword [esi + 8], 0
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 3
jne 0x408342
xor ebx, ebx
cmp dword [ebp - 4], ebx
jne 0x408344
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x4083b2
mov edi, dword [eax + 0xc]
cmp dword [edi], ebx
je 0x4083b2
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x408369
push eax
call fcn.00416430
add esp, 4
mov dword [esi + 8], ebx
mov eax, dword [edi]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408380
sub eax, edx
inc eax
push eax
call fcn.0041576e
add esp, 4
mov dword [esi + 8], eax
mov ecx, edi
mov edx, eax
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4083a0
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4083c5
push eax
call fcn.00416430
mov dword [esi + 8], ebx
add esp, 4
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ad30
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a9fb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x436650]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041606b
push 4
mov dword [ebp - 4], 0
call fcn.00416497
mov edi, eax
add esp, 4
test edi, edi
je 0x40adac
call fcn.00415c1b
mov dword [edi], eax
call fcn.004159da
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00415d04
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40ada2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00415d2c
jmp 0x40adae
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41637f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x436650]
jne 0x416389
repz ret
jmp fcn.0041be2a

Function at 0x424d8c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x436650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041b70b
and dword [ebp - 0x14], 0
cmp dword [0x438874], 0
mov dword [ebp - 0x18], eax
jne 0x424e3f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x424ee7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x424ee7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x438874], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x438878], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43887c], eax
call edi
push eax
call esi
mov dword [0x438884], eax
test eax, eax
je 0x424e3f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x438880], eax
mov eax, dword [0x438880]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x424e98
cmp dword [0x438884], ecx
je 0x424e98
push eax
call esi
push dword [0x438884]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x424e98
test ebx, ebx
je 0x424e98
call edi
test eax, eax
je 0x424e8f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x424e8f
test byte [ebp - 8], 1
jne 0x424e98
or dword [ebp + 0x10], 0x200000
jmp 0x424ecb
mov eax, dword [0x438878]
cmp eax, dword [ebp - 0x18]
je 0x424ecb
push eax
call esi
test eax, eax
je 0x424ecb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x424ecb
mov eax, dword [0x43887c]
cmp eax, dword [ebp - 0x18]
je 0x424ecb
push eax
call esi
test eax, eax
je 0x424ecb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x438874]
call esi
test eax, eax
je 0x424ee7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x424ee9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041637f
leave
ret
Function at 0x4042c0
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 0x4043b0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4043b0
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40430a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x404311
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x4042f0
jmp 0x404313
mov esi, 0x1505
jmp 0x404313
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov edi, dword [ecx + 0x20]
test edi, edi
je 0x4043b0
mov eax, edi
xor eax, 1
mov ebx, edi
and ebx, 0xfffffffe
add ebx, ebx
sub ebx, eax
and ebx, esi
lea eax, [edi - 1]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x404354
inc ebx
dec edi
je 0x4043ae
mov eax, ebx
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x4043ae
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x404350
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040c950
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x404350
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040c970
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x404350
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x4043b0
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404b30
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 0x404c93
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404c93
cmp dword [esp + 0x2c], 0
je 0x404c93
push esi
call fcn.0040c950
add esp, 4
test eax, eax
je 0x404b9a
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 0x404ba1
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x404b80
jmp 0x404ba3
mov ebx, 0x1505
jmp 0x404ba3
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x20]
test edi, edi
je 0x404c35
mov dword [esp], eax
mov eax, edi
xor eax, 1
mov esi, edi
and esi, 0xfffffffe
add esi, esi
sub esi, eax
and esi, ebx
lea eax, [edi - 1]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x404be4
inc esi
dec edi
je 0x404c35
mov ebp, esi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x404c3a
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x404be0
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.0040c950
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404be0
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.0040c970
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404be0
mov eax, 0xffffffff
jmp 0x404c93
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jae 0x404c7f
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
jmp 0x404c93
call fcn.00405920
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
je 0x404c9b
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push ecx
call fcn.0040c950
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x20]
test edi, edi
je 0x404d3e
mov eax, edi
xor eax, 1
mov esi, edi
and esi, 0xfffffffe
add esi, esi
sub esi, eax
and esi, ebx
lea eax, [edi - 1]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x404ce4
inc esi
dec edi
je 0x404d3e
mov ebp, esi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x404c42
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x404ce0
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.0040c950
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404ce0
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.0040c970
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404ce0
jmp 0x404c42
mov ebp, 0xffffffff
jmp 0x404c42