joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41db1f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x43aa18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41db61
cmp byte [ebx], 0xa
jne 0x41db61
or byte [edi + eax + 0x28], 4
jmp 0x41db66
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41dc69
mov cl, byte [eax]
cmp cl, 0x1a
je 0x41dc44
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x41db95
mov eax, dword [ebp - 8]
jmp 0x41dbb5
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x41dbd1
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x41dbaf
add eax, 2
mov cl, 0xa
jmp 0x41dbb2
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x41db77
jmp 0x41dc69
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41dc3f
cmp dword [ebp - 0x10], 0
je 0x41dc3f
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x43aa18]
test byte [eax + edi + 0x28], 0x48
je 0x41dc1e
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x41dc0e
mov byte [esi], 0xa
jmp 0x41dc68
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x43aa18]
mov byte [eax + edi + 0x2a], cl
jmp 0x41dc68
cmp byte [ebp - 1], 0xa
jne 0x41dc28
cmp esi, ebx
je 0x41dc09
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041e6b1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41dc69
mov byte [esi], 0xd
jmp 0x41dc68
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x43aa18]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x41dc66
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x41dc69
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41dc72
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x43aa18]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x41dcb6
push 0xa
pop esi
cmp word [ebx], si
jne 0x41dcb6
or byte [eax + edi + 0x28], 4
jmp 0x41dcbb
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x41de26
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x41ddfe
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x41dd08
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x41dd32
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x41dd51
push 0xa
pop ebx
cmp word [edx], bx
jne 0x41dd1f
push ebx
add eax, 4
pop edx
jmp 0x41dd27
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x41dccd
jmp 0x41de26
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ddf9
cmp dword [ebp - 0x14], 0
je 0x41ddf9
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x43aa18]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x41ddd5
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x41dd9d
mov word [esi], ax
jmp 0x41de23
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x43aa18]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x43aa18]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x43aa18]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x41de23
cmp word [ebp - 4], ax
jne 0x41dddf
cmp esi, ebx
je 0x41dd95
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041e6b1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41de26
push 0xd
pop eax
jmp 0x41dd95
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x43aa18]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x41de20
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x41de26
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42301c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4230b9
push ebx
push esi
call fcn.00422fe5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00421c9a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x423066
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4230b8
push edi
push eax
call fcn.0041e8a0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x423086
call fcn.0041b690
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4230b7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00421c9a
add esp, 0x20
test eax, eax
jne 0x4230a5
push edi
call fcn.0041b690
jmp 0x4230ad
push ebx
call fcn.0041b690
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x425853
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041b4b8
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4258c2
cmp esi, dword [ebp - 4]
je 0x4258bd
cmp dword [ebp + 0xc], 0
je 0x4258bd
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42589a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004253a8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4258c4
xor eax, eax
inc eax
jmp 0x4258c4
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x42592f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x439080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0041b4b8
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041b4b8
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4259a6
cmp word [ecx], dx
je 0x4259a6
mov eax, dword [0x43207c]
push edi
dec eax
push eax
push 0x431f68
call fcn.004258c8
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x425a19
cmp word [eax], dx
je 0x425a19
mov eax, dword [edi]
test eax, eax
je 0x4259ca
cmp word [eax], dx
je 0x4259ca
lea eax, [ebp - 0x10]
push eax
call fcn.004252ae
jmp 0x4259d3
lea eax, [ebp - 0x10]
push eax
call fcn.00425349
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x425a43
mov eax, dword [0x431f64]
push dword [ebp - 0x14]
dec eax
push eax
push 0x431c58
call fcn.004258c8
add esp, 0xc
test al, al
je 0x425a43
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x425a0e
cmp word [eax], di
je 0x425a0e
lea eax, [ebp - 0x10]
push eax
call fcn.004252ae
pop ecx
jmp 0x425a45
lea eax, [ebp - 0x10]
push eax
call fcn.00425349
jmp 0x425a0b
mov eax, dword [edi]
test eax, eax
je 0x425a30
cmp word [eax], dx
je 0x425a30
lea eax, [ebp - 0x10]
push eax
call fcn.00425263
pop ecx
jmp 0x425a43
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x425b0e
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0042574d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x425b0e
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x425b0e
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x425b0e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x425a9b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041bc8e
test ebx, ebx
je 0x425b09
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041bc8e
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x425b0e
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x425b0e
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042984a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x425b10
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dcb5
leave
ret
Function at 0x429f35
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00429eb1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42a0a4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42a0a4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42a059
jg 0x429f91
test eax, eax
je 0x42a04f
push 1
push 0x1000
call fcn.0041b630
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x429fb4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x42a046
push 0x8000
push ebx
call fcn.00418be6
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x429fdd
jg 0x429fd8
cmp ecx, 0x1000
jb 0x429fdd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041ce9c
add esp, 0x10
cmp eax, 0xffffffff
je 0x42a022
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x429fd8
jl 0x42a009
test ecx, ecx
jne 0x429fca
push dword [ebp - 0xc]
push ebx
call fcn.00418be6
push esi
call fcn.0041b690
add esp, 0xc
xor ebx, ebx
jmp 0x42a0b2
cmp byte [edi + 0x24], 0
je 0x42a039
cmp dword [edi + 0x20], 5
jne 0x42a039
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42a044
mov ebx, dword [edi + 0x18]
jmp 0x42a046
xor ebx, ebx
push esi
call fcn.0041b690
pop ecx
jmp 0x42a0b2
test ecx, ecx
jg 0x42a01b
jl 0x42a059
test eax, eax
jae 0x42a01b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041e6b1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42a079
cmp byte [edi + 0x1c], 0
je 0x42a01b
jmp 0x42a0aa
push ebx
call fcn.0042385a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42a01b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x42a0b2
cmp byte [edi + 0x1c], 0
je 0x42a0af
mov ebx, dword [edi + 0x18]
jmp 0x42a0b2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041e6b1
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42b5e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b60d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b60d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4042a0
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 0x404370
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x404370
mov ebp, dword [esp + 0x28]
mov esi, 0x1505
test ebp, ebp
je 0x4042ed
xor edi, edi
nop
movzx ecx, byte [ebx + edi]
test ecx, ecx
je 0x4042ed
mov edx, esi
shl edx, 5
add edx, esi
mov esi, edx
and esi, ecx
xor edx, ecx
lea esi, [edx + esi*2]
inc edi
cmp ebp, edi
jne 0x4042d0
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 0x404370
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x404314
inc edi
dec ebx
je 0x40436e
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40436e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x404310
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040c810
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x404310
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040c830
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x404310
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x404370
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4046a0
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4047bf
mov ecx, dword [eax + 4]
cmp ecx, 2
je 0x4047b3
cmp ecx, 5
je 0x404783
cmp ecx, 4
jne 0x4047bf
mov esi, dword [eax + 8]
cmp dword [esi + 0x18], 0
je 0x40470d
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esi + 0xc]
push dword [eax + edi*4]
call dword [0x44a004]
add esp, 4
mov eax, dword [esi + 0x10]
push dword [eax + edi*4]
call fcn.004046a0
add esp, 4
mov eax, edi
and eax, 1
xor edi, 1
lea edi, [edi + eax*2]
cmp edi, dword [esi + 0x18]
jb 0x4046e0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
push dword [esi + 4]
call dword [0x44a004]
add esp, 4
push dword [esi + 0xc]
call dword [0x44a004]
add esp, 4
push dword [esi + 0x10]
call dword [0x44a004]
add esp, 4
push dword [esi + 0x14]
call dword [0x44a004]
add esp, 4
push dword [esi + 8]
call dword [0x44a004]
add esp, 4
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
jmp 0x4047b0
mov esi, dword [eax + 8]
cmp dword [esi + 8], 0
je 0x4047a4
xor edi, edi
nop
nop
mov eax, dword [esi + 4]
push dword [eax + edi*4]
call fcn.004046a0
add esp, 4
inc edi
cmp edi, dword [esi + 8]
jb 0x404790
push dword [esi + 4]
call dword [0x44a004]
add esp, 4
push esi
jmp 0x4047b6
push dword [eax + 8]
call dword [0x44a004]
add esp, 4
pop esi
pop edi
jmp dword [0x44a004]
Function at 0x4048d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
xor eax, eax
cmp dword [esp + 0x18], 0
je 0x404aeb
cmp dword [esp + 0x1c], 0
jle 0x404a92
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [edx + eax]
mov dword [esp], ecx
jmp 0x404928
cmp esi, 0xc0
jne 0x404ae9
and ebx, 0x1ff800
cmp ebx, 0xd800
mov ecx, dword [esp]
je 0x404ae9
add edx, ebp
cmp edx, ecx
jae 0x404a92
movzx ebx, byte [edx]
cmp ebx, 0xf4
ja 0x404ae9
mov eax, ebx
and al, 0xfe
cmp al, 0xc0
je 0x404ae9
mov eax, ebx
and eax, 0xffffffc0
cmp eax, 0x80
je 0x404ae9
mov ebp, 1
test bl, bl
jns 0x40491e
mov esi, ebx
and esi, 0xffffffe0
cmp esi, 0xc0
jne 0x404997
movzx edi, byte [edx + 1]
mov eax, edi
xor eax, 0xffffff3f
mov ecx, edi
or ecx, 0xc0
and ecx, eax
cmp ecx, 0x80
jne 0x404ae9
and ebx, 0x1f
shl ebx, 6
mov ebp, 2
jmp 0x4049e0
mov eax, ebx
and eax, 0xfffffff0
cmp eax, 0xe0
jne 0x4049e4
movzx eax, byte [edx + 1]
mov ecx, eax
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x404ae9
movzx edi, byte [edx + 2]
mov ecx, edi
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x404ae9
and ebx, 0xf
shl ebx, 0xc
and eax, 0x3f
shl eax, 6
or ebx, eax
mov ebp, 3
xor ecx, ecx
jmp 0x404a55
mov eax, ebx
and eax, 0xfffffff8
cmp eax, 0xf0
jne 0x404ae9
movzx ecx, byte [edx + 1]
mov eax, ecx
and eax, 0xffffffc0
cmp eax, 0x80
jne 0x404ae9
movzx eax, byte [edx + 2]
mov edi, eax
not edi
or edi, 0xc0
add edi, eax
cmp edi, 0x7f
jne 0x404ae9
movzx edi, byte [edx + 3]
mov ebp, edi
and ebp, 0xffffffc0
cmp ebp, 0x80
jne 0x404ae9
and ecx, 0x3f
shl ecx, 6
and ebx, 7
shl ebx, 0xc
or ebx, ecx
and eax, 0x3f
or eax, ebx
shl eax, 6
mov cl, 1
mov ebp, 4
mov ebx, eax
and edi, 0x3f
or edi, ebx
cmp edi, 0x80
jb 0x404ae9
cmp edi, 0x7ff
jbe 0x4048fd
cmp edi, 0xffff
ja 0x404a84
test cl, cl
je 0x404909
jmp 0x404ae9
cmp edi, 0x10ffff
jbe 0x404909
jmp 0x404ae9
mov edi, dword [esp + 0x1c]
lea eax, [edi + 1]
push eax
call dword [0x44a008]
add esp, 4
test eax, eax
je 0x404ae9
mov esi, eax
mov byte [eax + edi], 0
push edi
push dword [esp + 0x1c]
push eax
call fcn.0040c680
add esp, 0xc
push 0x10
call dword [0x44a008]
add esp, 4
test eax, eax
je 0x404adf
mov dword [eax], 0
mov dword [eax + 4], 2
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
jmp 0x404aeb
push esi
call dword [0x44a004]
add esp, 4
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404b00
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebp, dword [esp + 0x28]
mov eax, 0xffffffff
test ebp, ebp
je 0x404c4b
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x404c4b
cmp dword [esp + 0x30], 0
je 0x404c4b
push edi
call fcn.0040c810
add esp, 4
mov dword [esp], eax
mov ebx, 0x1505
test eax, eax
je 0x404b6e
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [edi + eax]
test ecx, ecx
je 0x404b6e
mov edx, ebx
shl edx, 5
add edx, ebx
mov esi, edx
and esi, ecx
xor edx, ecx
lea ebx, [edx + esi*2]
inc eax
cmp dword [esp], eax
jne 0x404b50
mov esi, dword [ebp + 0x20]
lea edi, [esi - 1]
mov eax, esi
sub eax, 1
mov dword [esp + 8], eax
jae 0x404bd1
mov ebp, 0xffffffff
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x1c]
jae 0x404c35
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4], edx
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x18]
mov dword [eax + ebp*4], ecx
mov eax, dword [esi + 0x10]
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], edx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
mov dword [eax + ecx*4], ebp
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x18]
mov dword [eax + ecx*4], ebx
inc dword [esi + 0x18]
mov eax, dword [esi]
mov dword [edx], eax
xor eax, eax
jmp 0x404c4b
and edi, ebx
mov eax, dword [ebp + 4]
mov dword [esp + 4], eax
jmp 0x404be4
inc edi
dec esi
je 0x404b7f
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x404b84
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 8]
cmp dword [ecx + eax*4], ebx
jne 0x404be0
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.0040c810
add esp, 4
cmp eax, dword [esp]
jne 0x404be0
push dword [esp]
push ebp
push dword [esp + 0x34]
call fcn.0040c830
add esp, 0xc
test eax, eax
jne 0x404be0
mov eax, 0xffffffff
jmp 0x404c4b
mov ecx, esi
call fcn.00405870
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x2c]
je 0x404c53
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push ecx
call fcn.0040c810
add esp, 4
mov dword [esp + 0xc], eax
mov edx, dword [esi + 0x20]
lea edi, [edx - 1]
mov eax, edx
sub eax, 1
mov dword [esp + 8], eax
jae 0x404c7b
mov ebp, 0xffffffff
jmp 0x404b94
and edi, ebx
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
jmp 0x404c94
inc edi
dec edx
je 0x404cf4
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x404cf9
mov esi, dword [esp + 0x28]
mov ecx, dword [esi + 8]
cmp dword [ecx + eax*4], ebx
jne 0x404c90
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x10], eax
push eax
mov dword [esp + 4], edx
call fcn.0040c810
mov edx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0xc]
jne 0x404c90
push dword [esp + 0xc]
push dword [esp + 0x14]
push dword [esp + 0x34]
call fcn.0040c830
mov edx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x404c90
jmp 0x404b94
mov ebp, 0xffffffff
mov esi, dword [esp + 0x28]
jmp 0x404b94
Function at 0x4055d0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, 0xffffffff
cmp dword [esp + 0x28], 0
je 0x4057b3
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x4057b3
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4057b3
cmp dword [ecx], 0
jne 0x4057b3
push edi
call fcn.0040c810
add esp, 4
mov ebp, 0x1505
test eax, eax
je 0x40563d
xor ebx, ebx
nop
nop
nop
nop
movzx ecx, byte [edi + ebx]
test ecx, ecx
je 0x40563d
mov edx, ebp
shl edx, 5
add edx, ebp
mov esi, edx
and esi, ecx
xor edx, ecx
lea ebp, [edx + esi*2]
inc ebx
cmp eax, ebx
jne 0x405620
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x28]
mov esi, dword [ecx + 0x20]
lea ebx, [esi - 1]
mov eax, esi
sub eax, 1
mov dword [esp + 0xc], eax
mov dword [esp], ebp
jae 0x40571f
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
jb 0x4056ad
mov ecx, dword [esp + 0x28]
call fcn.00405870
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
jne 0x4057b3
push ebx
call fcn.0040c810
add esp, 4
lea esi, [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov edx, ebx
push esi
push dword [esp + 4]
push eax
call fcn.004057c0
add esp, 0xc
mov ebp, eax
push ebx
call fcn.0040c810
add esp, 4
mov esi, ebx
mov ebx, eax
inc eax
push eax
call dword [0x44a008]
add esp, 4
test eax, eax
je 0x4057ae
mov byte [eax + ebx], 0
push ebx
push esi
push eax
mov esi, eax
call fcn.0040c680
add esp, 0xc
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], esi
mov eax, dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov dword [eax + ebp*4], ecx
mov eax, dword [edx + 0x10]
mov dword [eax + ecx*4], edi
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], ebp
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0x18]
mov esi, dword [esp]
mov dword [eax + ecx*4], esi
mov ecx, edx
inc dword [edx + 0x18]
mov eax, dword [ecx]
mov dword [edi], eax
xor eax, eax
jmp 0x4057b3
and ebx, ebp
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x405738
inc ebx
dec esi
je 0x40565d
mov ebp, ebx
and ebp, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edi, dword [eax + ebp*4]
cmp edi, 0xffffffff
je 0x405662
mov eax, dword [ecx + 8]
mov edx, dword [esp]
cmp dword [eax + edi*4], edx
jne 0x405730
mov eax, dword [ecx + 0xc]
mov ebp, dword [eax + edi*4]
push ebp
call fcn.0040c810
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x405730
push dword [esp + 4]
push ebp
push dword [esp + 0x34]
call fcn.0040c830
mov ecx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x405730
mov eax, dword [ecx + 0x10]
push dword [eax + edi*4]
call fcn.004046a0
mov ecx, dword [esp + 0x2c]
add esp, 4
mov eax, dword [ecx + 0x10]
mov edx, dword [esp + 0x30]
mov dword [eax + edi*4], edx
mov edi, edx
jmp 0x405714
mov eax, 0xffffffff
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret