joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fdd8
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [ecx + 4]
xor eax, eax
xor edx, edx
movzx ecx, word [esi]
cmp ax, cx
jae 0x41fe03
movzx eax, dx
mov al, byte [eax + esi + 4]
cmp al, 0x13
je 0x41fe03
cmp al, 0xc0
je 0x41fe03
cmp al, 0xcc
je 0x41fe03
add edx, 2
cmp dx, cx
jb 0x41fde8
pop esi
ret

Function at 0x4228b2
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, edx
mov edx, dword [esp + 0x10]
lea esi, [edi + 4]
push esi
call fcn.0042284f
mov edx, dword [esp + 0x10]
pop ecx
push 4
sub edx, edi
pop ecx
mov al, byte [edx + edi]
mov byte [edi], al
inc edi
sub ecx, 1
jne 0x4228cd
push 8
pop ecx
mov al, byte [esi + edx]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x4228db
pop edi
pop esi
ret

Function at 0x424b36
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x424b4e
sub edx, ecx
mov eax, dword [edx + ecx]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub esi, 1
jne 0x424b41
pop esi
ret

Function at 0x424b50
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
or eax, edx
push esi
mov esi, dword [esp + 8]
or eax, esi
test al, 3
jne 0x424b6b
shr esi, 2
push esi
call fcn.00424b36
pop ecx
pop esi
ret
test esi, esi
je 0x424b7c
sub edx, ecx
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
sub esi, 1
jne 0x424b71
pop esi
ret

Function at 0x424b7e
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov esi, edx
mov ebx, ecx
test edi, edi
jle 0x424ba2
sub ebx, esi
movzx edx, byte [ebx + esi]
movzx ecx, byte [esi]
xor edx, ecx
or eax, edx
inc esi
sub edi, 1
jne 0x424b91
pop edi
pop esi
pop ebx
ret

Function at 0x424ba6
Capabilities:
Encrypt data using aes

Disassembly:
xor eax, eax
mov ecx, 0x465450
push 0x20
pop edx
and eax, dword [ecx]
add ecx, 0x20
sub edx, 1
jne 0x424bb0
cmp ecx, str.SHA256wECDSA
jl 0x424bad
ret
Function at 0x42960d
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
lea eax, [edx + 0x3f]
push esi
shr eax, 6
mov esi, edx
sub esi, eax
mov dword [esp + 0x10], edx
push edi
xor edi, edi
mov ebx, ecx
and dword [esp + 0x18], edi
inc esi
imul eax, esi, 3
shr eax, 2
cmp eax, dword [ebp]
jbe 0x429644
mov eax, 0xffffff53
jmp 0x429817
mov esi, dword [esp + 0x20]
cmp edx, 3
jbe 0x429805
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
lea edx, [esp + 0x18]
call fcn.004295af
add esp, 4
test eax, eax
jne 0x4297fe
mov eax, dword [esp + 0x18]
mov cl, byte [eax + ebx]
inc eax
mov byte [esp + 0x13], cl
mov dword [esp + 0x18], eax
test cl, cl
je 0x429805
dec dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call fcn.004295af
add esp, 4
test eax, eax
jne 0x429817
mov eax, dword [esp + 0x18]
mov cl, byte [eax + ebx]
inc eax
dec dword [esp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov byte [esp + 0x12], cl
mov ecx, ebx
push eax
call fcn.004295af
add esp, 4
test eax, eax
jne 0x429817
mov eax, dword [esp + 0x18]
mov cl, byte [eax + ebx]
inc eax
dec dword [esp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov byte [esp + 0x24], cl
mov ecx, ebx
push eax
call fcn.004295af
add esp, 4
test eax, eax
jne 0x429817
mov eax, dword [esp + 0x18]
mov dl, byte [esp + 0x13]
mov dh, byte [eax + ebx]
inc eax
dec dword [esp + 0x14]
mov dword [esp + 0x18], eax
cmp dl, 0x2b
jb 0x4297f7
mov cl, byte [esp + 0x12]
cmp cl, 0x2b
jb 0x4297f7
mov al, byte [esp + 0x24]
cmp al, 0x2b
jb 0x4297f7
cmp dh, 0x2b
jb 0x4297f7
cmp dl, 0x7a
ja 0x4297f7
cmp cl, 0x7a
ja 0x4297f7
cmp al, 0x7a
ja 0x4297f7
cmp dh, 0x7a
ja 0x4297f7
xor ecx, ecx
cmp al, 0x3d
setne cl
xor eax, eax
inc ecx
cmp dh, 0x3d
setne al
add ecx, edi
add eax, ecx
cmp eax, dword [ebp]
ja 0x42963a
mov cl, byte [esp + 0x12]
movzx eax, dl
mov al, byte [eax + 0x466595]
mov byte [esp + 0x13], al
movzx eax, cl
mov ch, byte [eax + 0x466595]
mov al, byte [esp + 0x24]
cmp al, 0x3d
jne 0x42979a
xor cl, cl
jmp 0x4297a3
movzx eax, al
mov cl, byte [eax + 0x466595]
cmp dh, 0x3d
jne 0x4297ac
xor al, al
jmp 0x4297b5
movzx eax, dh
mov al, byte [eax + 0x466595]
mov ah, byte [esp + 0x13]
mov dl, cl
shl dl, 6
or dl, al
shl ah, 2
mov al, ch
shr al, 4
or al, ah
mov byte [edi + esi], al
inc edi
cmp byte [esp + 0x24], 0x3d
je 0x4297e1
shr cl, 2
shl ch, 4
or cl, ch
mov byte [edi + esi], cl
inc edi
cmp dh, 0x3d
je 0x429805
mov byte [edi + esi], dl
inc edi
cmp dword [esp + 0x14], 3
ja 0x429651
jmp 0x429805
mov eax, 0xffffff66
jmp 0x429817
cmp eax, 0xffffff7c
jne 0x429817
test esi, esi
je 0x429812
cmp dword [ebp], edi
jbe 0x429812
mov byte [edi + esi], 0
mov dword [ebp], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x42cf13
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
test edi, edi
je 0x42d00d
cmp dword [esp + 0x14], 0
mov esi, dword [esp + 0x18]
jne 0x42cf34
test esi, esi
jne 0x42d00d
cmp edx, 3
je 0x42cf6a
cmp edx, 4
je 0x42cf6a
cmp edx, 5
je 0x42cf6a
cmp edx, 6
je 0x42cf6a
cmp edx, 7
je 0x42cf6a
cmp edx, 8
je 0x42cf6a
cmp edx, 0xa
je 0x42cf6a
cmp edx, 0xb
je 0x42cf6a
cmp edx, 0xc
je 0x42cf6a
cmp edx, 0xd
jne 0x42d00d
xor ebx, ebx
mov byte [edi + 0x114], dl
push ecx
mov byte [edi + 0x115], bl
call fcn.0042cef6
mov ebp, eax
pop ecx
test ebp, ebp
jne 0x42d012
cmp byte [edi + 0x114], 6
lea ecx, [edi + 0x70]
jne 0x42d00d
cmp esi, 0x40
ja 0x42cfb0
cmp dword [esp + 0x14], ebx
je 0x42cfd9
push esi
push dword [esp + 0x18]
push ecx
call fcn.004346b0
add esp, 0xc
jmp 0x42cfd6
mov edx, dword [esp + 0x14]
mov ecx, edi
push esi
call fcn.00431df5
mov ebp, eax
pop ecx
test ebp, ebp
jne 0x42d009
lea edx, [edi + 0x70]
mov ecx, edi
call fcn.00431ed0
mov ebp, eax
test ebp, ebp
jne 0x42d009
push 0x20
pop esi
lea ecx, [edi + 0x70]
cmp esi, 0x40
jae 0x42cff1
push 0x40
pop eax
sub eax, esi
push eax
lea eax, [ecx + esi]
push ebx
push eax
call fcn.00434c30
add esp, 0xc
mov al, byte [ebx + edi + 0x70]
xor al, 0x5c
mov byte [edi + ebx + 0xb0], al
xor byte [ebx + edi + 0x70], 0x36
inc ebx
cmp ebx, 0x40
jb 0x42cff1
mov eax, ebp
jmp 0x42d012
mov eax, 0xffffff53
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x430e91
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xd4
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
push edi
inc ebx
inc esi
cmp dword [esp + 0xe8], 0
mov edi, ecx
push 0
cmovne ebx, dword [esp + 0xec]
mov ebp, edx
pop ecx
test bl, 0x1f
mov eax, ebx
push 0x37
push dword [esp + 0xf0]
setne cl
shr eax, 5
add eax, ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004346b0
and dword [esp + 0x20], 0
add esp, 0xc
cmp dword [esp + 0x10], 0
jbe 0x430fcf
lea ecx, [esp + 0x74]
call fcn.00431f0f
mov esi, eax
test esi, esi
jne 0x430fcf
push 0x37
lea edx, [esp + 0x40]
lea ecx, [esp + 0x78]
call fcn.00431df5
mov esi, eax
pop ecx
test esi, esi
jne 0x430fcf
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x74]
call fcn.00431ed0
mov esi, eax
test esi, esi
jne 0x430fcf
push 4
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004346b0
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp dword [edi], 1
jbe 0x430f7a
cmp eax, dword [edi + 4]
jne 0x430f7a
cmp byte [edi + 0x76], 1
je 0x430fed
mov edx, dword [esp + 0x10]
mov byte [edi + 0x76], 1
lea eax, [edx - 1]
cmp dword [esp + 0x14], eax
lea ecx, [edx + 1]
cmovne ecx, edx
mov dword [esp + 0x10], ecx
jmp 0x430f81
mov byte [edi + 0x76], 0
mov dword [edi + 4], eax
test ebp, ebp
je 0x430fbc
test ebx, ebx
je 0x430fbc
lea eax, [esp + 0x1c]
cmp ebx, 0x20
jb 0x430faf
push 0x20
push eax
push ebp
call fcn.004346b0
add esp, 0xc
lea ecx, [esp + 0x3c]
sub ebx, 0x20
add ebp, 0x20
call fcn.00430e82
jmp 0x430fbc
push ebx
push eax
push ebp
call fcn.004346b0
add esp, 0xc
xor ebx, ebx
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
jl 0x430eef
push 0x37
pop edx
lea ecx, [esp + 0x3c]
call fcn.0041b443
xor eax, eax
test esi, esi
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret
push 3
pop eax
jmp 0x430fe2

Function at 0x4316e9
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x431695
mov eax, 0xffffff53
pop esi
ret
push edi
push 0x20
xor edi, edi
push edi
push esi
call fcn.00434c30
add esp, 0xc
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
xor eax, eax
mov dword [esi + 0x68], edi
mov dword [esi], 0x6a09e667
pop edi
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
pop esi
ret
test ecx, ecx
jne 0x4316f3
mov eax, 0xffffff53
ret
mov dword [ecx + 0x6c], edx
jmp 0x431687
Function at 0x431e14
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
test ebx, ebx
jne 0x431e22
mov eax, 0xffffff53
pop ebx
ret
mov eax, dword [ebx + 0x60]
push ebp
push esi
push edi
push 0x40
pop edi
lea ebp, [ebx + 0x20]
mov byte [eax + ebp], 0x80
inc dword [ebx + 0x60]
mov ecx, dword [ebx + 0x60]
push 0x38
pop esi
cmp ecx, esi
jbe 0x431e6f
mov eax, edi
sub eax, ecx
push eax
lea eax, [ecx + ebp]
push 0
push eax
call fcn.00434c30
push edi
mov edx, ebp
mov dword [ebx + 0x60], edi
mov ecx, ebp
call fcn.0043165d
add esp, 0x10
mov edx, ebp
mov ecx, ebx
call fcn.004316fb
test eax, eax
jne 0x431ecb
and dword [ebx + 0x60], eax
mov eax, dword [ebx + 0x60]
sub esi, eax
push esi
add eax, ebp
push 0
push eax
call fcn.00434c30
lea edi, [ebx + 0x64]
mov edx, ebp
mov ecx, dword [edi]
lea esi, [ebx + 0x68]
mov eax, dword [esi]
shr ecx, 0x1d
push 0x40
lea eax, [ecx + eax*8]
mov ecx, ebp
mov dword [esi], eax
mov eax, dword [edi]
shl eax, 3
mov dword [edi], eax
call fcn.0043165d
push 4
lea eax, [ebp + 0x38]
push esi
push eax
call fcn.004346b0
push 4
lea eax, [ebp + 0x3c]
push edi
push eax
call fcn.004346b0
add esp, 0x28
mov edx, ebp
mov ecx, ebx
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.004316fb
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x431ed0
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x431f07
test edi, edi
je 0x431f07
call fcn.00431e14
test eax, eax
jne 0x431f0c
push 0x20
mov edx, esi
mov ecx, esi
call fcn.0043165d
push 0x20
push esi
push edi
call fcn.004346b0
add esp, 0x10
mov ecx, esi
pop edi
pop esi
jmp 0x431687
mov eax, 0xffffff53
pop edi
pop esi
ret

Function at 0x431fbf
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov eax, edx
mov ebp, ecx
neg eax
mov dword [esp + 8], eax
test ebp, ebp
je 0x432059
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x432059
mov edx, dword [ebp]
mov ecx, ebx
inc edx
call fcn.0042d6a2
mov dword [esp + 0xc], eax
test eax, eax
jne 0x43205e
xor edx, edx
push esi
push edi
cmp dword [ebp], edx
jle 0x43201f
mov edi, dword [ebx + 0xc]
mov ecx, ebp
call fcn.00431fa9
mov ecx, ebx
mov esi, eax
call fcn.00431fa9
mov ecx, dword [esp + 0x10]
xor esi, eax
and esi, ecx
xor dword [edi + edx*4], esi
inc edx
cmp edx, dword [ebp]
jl 0x431ff9
jmp 0x432044
mov ecx, dword [esp + 0x10]
jmp 0x432044
mov edi, dword [ebx + 0xc]
mov ecx, ebp
call fcn.00431fa9
mov ecx, ebx
mov esi, eax
call fcn.00431fa9
mov ecx, dword [esp + 0x10]
xor esi, eax
and esi, ecx
xor dword [edi + edx*4], esi
inc edx
cmp edx, dword [ebx]
jl 0x432025
mov eax, dword [ebp]
xor eax, dword [ebx]
and eax, ecx
xor dword [ebx], eax
mov eax, dword [esp + 0x14]
pop edi
pop esi
jmp 0x43205e
mov eax, 0xffffff53
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x4484bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044833e

Function at 0x44cc9f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044c60d

Function at 0x44ccaa
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044c848
Function at 0x404430
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 0x404510
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x404510
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40447a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x404481
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x404460
jmp 0x404483
mov esi, 0x1505
jmp 0x404483
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx + 0x20]
lea edx, [ebx - 1]
mov ecx, ebx
sub ecx, 1
mov dword [esp + 8], ecx
jb 0x404510
mov ecx, esi
not ecx
or edx, ecx
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
lea ebp, [esi + edx]
inc ebp
jmp 0x4044b4
inc ebp
dec ebx
je 0x40450e
mov eax, ebp
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40450e
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4044b0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp], eax
push eax
call fcn.0040c690
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x4044b0
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040c6b0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x4044b0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x404510
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404c90
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 0x404daa
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404daa
cmp dword [esp + 0x2c], 0
je 0x404daa
push esi
call fcn.0040c690
add esp, 4
test eax, eax
je 0x404cfa
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 0x404d01
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x404ce0
jmp 0x404d03
mov ebx, 0x1505
jmp 0x404d03
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x20]
lea edx, [esi - 1]
mov edi, ebx
not edi
mov ebp, esi
sub ebp, 1
mov dword [esp + 0xc], ebp
mov dword [esp + 4], edi
jae 0x404db2
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x404d6f
call fcn.00405a30
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x404daa
push ecx
call fcn.0040c690
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x20]
lea eax, [esi - 1]
mov edx, esi
sub edx, 1
mov dword [esp + 0xc], edx
jae 0x404e30
mov ebp, 0xffffffff
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
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
or edx, edi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
lea edi, [ebx + edx]
inc edi
jmp 0x404dd8
inc edi
dec esi
je 0x404d24
mov ebp, edi
and ebp, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x404d29
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x404dd0
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.0040c690
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404dd0
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.0040c6b0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404dd0
mov eax, 0xffffffff
jmp 0x404daa
or eax, dword [esp + 4]
mov edx, dword [ecx + 4]
mov dword [esp + 8], edx
lea edi, [ebx + eax]
inc edi
jmp 0x404e58
inc edi
dec esi
je 0x404d6a
mov ebp, edi
and ebp, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x404d6f
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x404e50
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 4], eax
push eax
call fcn.0040c690
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404e50
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040c6b0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404e50
jmp 0x404d6f
Function at 0x405770
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 0x40595a
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x40595a
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x40595a
cmp dword [ecx], 0
jne 0x40595a
push esi
call fcn.0040c690
add esp, 4
test eax, eax
je 0x4057da
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
movzx edx, byte [esi + ebx]
test edx, edx
je 0x4057e1
mov edi, ecx
shl edi, 5
add edi, ecx
add edi, edx
inc ebx
mov ecx, edi
cmp eax, ebx
jne 0x4057c0
jmp 0x4057e3
mov edi, 0x1505
jmp 0x4057e3
mov edi, ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x20]
lea esi, [edx - 1]
mov ebx, edx
sub ebx, 1
mov dword [esp + 0xc], ebx
jae 0x4058b4
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x405841
call fcn.00405a30
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov esi, dword [esp + 0x2c]
jne 0x40595a
push esi
call fcn.0040c690
add esp, 4
mov edx, esi
lea esi, [esp + 0x10]
mov ecx, dword [esp + 0x28]
push esi
push edi
push eax
call fcn.00405970
add esp, 0xc
mov ebp, eax
mov esi, dword [esp + 0x2c]
push esi
call fcn.0040c690
add esp, 4
mov ebx, eax
inc eax
push eax
call dword [0x448008]
add esp, 4
test eax, eax
je 0x405955
mov byte [eax + ebx], 0
push ebx
push esi
push eax
mov esi, eax
call fcn.0040c5b0
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 esi, dword [esp + 0x30]
mov dword [eax + ecx*4], esi
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 dword [eax + ecx*4], edi
inc dword [edx + 0x18]
mov eax, dword [edx]
mov dword [esi], eax
xor eax, eax
jmp 0x40595a
mov dword [esp], eax
mov eax, edx
mov edx, edi
not edx
or esi, edx
mov edx, eax
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
lea ebx, [edi + esi]
inc ebx
jmp 0x4058d8
inc ebx
dec edx
je 0x4057fc
mov ebp, ebx
and ebp, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov esi, dword [eax + ebp*4]
cmp esi, 0xffffffff
je 0x405801
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], edi
jne 0x4058d0
mov eax, dword [ecx + 0xc]
mov ebp, dword [eax + esi*4]
push ebp
mov dword [esp + 8], edx
call fcn.0040c690
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [esp]
jne 0x4058d0
push dword [esp]
push ebp
push dword [esp + 0x34]
call fcn.0040c6b0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x4058d0
mov eax, dword [ecx + 0x10]
push dword [eax + esi*4]
call fcn.00404840
mov edx, dword [esp + 0x2c]
add esp, 4
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x30]
mov dword [eax + esi*4], ecx
mov esi, ecx
jmp 0x4058a9
mov eax, 0xffffffff
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4069f0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x406b96
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
movzx edi, si
shr esi, 0x10
test ebx, ebx
je 0x406b8f
mov ecx, 0x5e6ea9af
mov eax, ebx
mul ecx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ecx, ebx
sub ecx, eax
jmp 0x406a86
mov ecx, dword [esp + 4]
mov eax, ecx
sub eax, dword [esp]
add ebp, eax
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, esi
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub esi, eax
mov ebx, dword [esp + 0xc]
sub ebx, ecx
mov ecx, 0x15b0
je 0x406b8f
xor edx, edx
cmp ecx, 8
mov dword [esp + 4], ecx
mov dword [esp + 0xc], ebx
jb 0x406aff
and ecx, 0x1ff8
mov dword [esp], ecx
xor eax, eax
mov edx, eax
movzx ebx, byte [ebp + eax]
add ebx, edi
movzx eax, byte [ebp + eax + 1]
add eax, ebx
add ebx, esi
movzx ecx, byte [ebp + edx + 2]
add ecx, eax
add ebx, eax
movzx eax, byte [ebp + edx + 3]
add eax, ecx
add ebx, ecx
movzx ecx, byte [ebp + edx + 4]
add ecx, eax
add ebx, eax
movzx eax, byte [ebp + edx + 5]
add eax, ecx
add ebx, ecx
movzx ecx, byte [ebp + edx + 6]
add ecx, eax
add ebx, eax
movzx edi, byte [ebp + edx + 7]
add edi, ecx
add ebx, ecx
mov ecx, dword [esp + 4]
lea eax, [edx + 8]
mov esi, ebx
add esi, edi
add edx, 0xf
cmp edx, ecx
jb 0x406aa0
add ebp, eax
mov edx, dword [esp]
mov ebx, edx
sub ebx, ecx
jae 0x406a4b
mov eax, ecx
and eax, 3
mov dword [esp], edx
je 0x406b41
mov dword [esp + 8], ebx
neg eax
xor ebx, ebx
mov edx, ebp
nop
nop
nop
movzx ecx, byte [edx]
inc edx
add edi, ecx
add esi, edi
dec ebx
cmp eax, ebx
jne 0x406b20
mov eax, dword [esp]
sub eax, ebx
mov ebx, dword [esp + 8]
cmp ebx, 0xfffffffc
ja 0x406a40
jmp 0x406b4e
mov eax, edx
mov edx, ebp
cmp ebx, 0xfffffffc
ja 0x406a40
mov ebx, dword [esp + 4]
sub ebx, eax
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [edx + eax]
add ecx, edi
add esi, ecx
movzx edi, byte [edx + eax + 1]
add edi, ecx
add esi, edi
movzx ecx, byte [edx + eax + 2]
add ecx, edi
add esi, ecx
movzx edi, byte [edx + eax + 3]
add edi, ecx
add esi, edi
add eax, 4
cmp ebx, eax
jne 0x406b60
jmp 0x406a40
shl esi, 0x10
or esi, edi
jmp 0x406b9b
mov esi, 1
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x406bb0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x406bde
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x406c7c
not eax
test bl, 1
jne 0x406be5
mov edx, ebx
cmp ebx, 1
jne 0x406c16
jmp 0x406c7a
xor eax, eax
jmp 0x406c7c
lea edx, [ebx - 1]
movzx esi, byte [ecx]
mov edi, eax
shr edi, 4
xor eax, esi
and eax, 0xf
xor edi, dword [eax*4 + 0x445c50]
inc ecx
mov eax, edi
shr eax, 4
and edi, 0xf
shr esi, 4
xor esi, edi
xor eax, dword [esi*4 + 0x445c50]
cmp ebx, 1
je 0x406c7a
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [ecx + esi]
mov ebx, eax
shr ebx, 4
xor eax, edi
and eax, 0xf
xor ebx, dword [eax*4 + 0x445c50]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x445c50]
movzx edi, byte [ecx + esi + 1]
mov ebx, eax
shr ebx, 4
xor eax, edi
and eax, 0xf
xor ebx, dword [eax*4 + 0x445c50]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x445c50]
add esi, 2
cmp edx, esi
jne 0x406c20
not eax
pop esi
pop edi
pop ebx
ret
Function at 0x40c460
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
mov ebx, dword [edx + 8]
mov esi, 1
cmp ebx, eax
jae 0x40c4cc
mov edi, edx
cmp dword [esp + 0x18], 0
je 0x40c4ae
cmp ebx, 1
adc ebx, 0
cmp ebx, eax
jae 0x40c4b0
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ebx
and edx, 0xfffffffd
mov ebp, ebx
and ebp, 2
or ebx, 2
imul ebx, ebp
xor ebp, 2
imul ebp, edx
add ebx, ebp
cmp ebx, eax
jb 0x40c490
jmp 0x40c4b0
mov ebx, eax
push ebx
push dword [edi + 0xc]
push dword [edi]
push dword [ecx + 0x34]
call dword [ecx + 0x30]
add esp, 0x10
test eax, eax
je 0x40c4ca
mov dword [edi], eax
mov dword [edi + 8], ebx
jmp 0x40c4cc
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret