joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4076b2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [ebp + 0x10]
mov word [eax], 0
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4076e4
xor eax, eax
jmp 0x40786e
mov dword [ebp - 0x118], 0xa
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
mov edx, dword [str.HardwareID]
push edx
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x407729
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40786e
cmp dword [ebp - 0x118], 7
jne 0x407749
push 4
push str.MX10
lea edx, [ebp - 0xc]
push edx
call fcn.00407d20
add esp, 0xc
test eax, eax
je 0x40775d
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40786e
lea ecx, [ebp - 8]
push ecx
call fcn.00401a91
add esp, 4
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x114], 0
jmp 0x40778a
mov edx, dword [ebp - 0x114]
add edx, 1
mov dword [ebp - 0x114], edx
cmp dword [ebp - 0x114], 7
jge 0x4077e6
mov eax, dword [ebp - 0x114]
imul eax, eax, 0x18
mov ecx, dword [eax + 0x40f308]
cmp ecx, dword [ebp - 0x11c]
jne 0x4077e4
mov edx, dword [ebp + 0x10]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x114]
imul eax, eax, 0x18
mov ecx, dword [ebp + 0x10]
mov dx, word [eax + 0x40f30c]
mov word [ecx], dx
mov eax, dword [ebp - 0x114]
imul eax, eax, 0x18
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax + 0x40f314]
mov dword [ecx + 0x2b0], edx
jmp 0x4077e6
jmp 0x40777b
cmp dword [ebp - 0x114], 7
jne 0x407800
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40786e
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401cdb
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.00407872
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [str.MultiFunction]
push eax
mov ecx, dword [str.Root]
push ecx
push str._s_s_s
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.004021dc
add esp, 8
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x407872
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov dword [ebp - 0x184], 0x180
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0x180]
push ecx
push 0
push 0
mov edx, dword [str.ForcedConfig]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4078b0
xor eax, eax
jmp 0x4078e4
cmp dword [ebp - 0x184], 8
ja 0x4078bd
xor eax, eax
jmp 0x4078e4
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x184]
push edx
lea eax, [ebp - 0x180]
push eax
call fcn.004078e8
add esp, 0xc
test eax, eax
jne 0x4078df
xor eax, eax
jmp 0x4078e4
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x408c31
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40f738
cmp edx, dword [eax]
je 0x408c53
add eax, 8
inc ecx
cmp eax, 0x40f7c8
jl 0x408c44
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40f738]
jne 0x408d81
mov eax, dword [0x41ae78]
cmp eax, 1
je 0x408d5b
test eax, eax
jne 0x408c84
cmp dword [0x40f474], 1
je 0x408d5b
cmp edx, 0xfc
je 0x408d81
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408cbb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409360
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409510
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408cfe
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409510
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c460
push edi
call fcn.0040ab40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409360
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409370
lea eax, [ebp - 0xa0]
push 0x40c440
push eax
call fcn.00409370
push dword [esi + 0x40f73c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409370
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040aab5
add esp, 0x2c
pop edi
jmp 0x408d81
lea eax, [ebp + 8]
lea esi, [esi + 0x40f73c]
push 0
push eax
push dword [esi]
call fcn.00409510
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1000239c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov esi, dword [0x100500a8]
mov edi, dword [ebp - 0x14]
sub esi, eax
mov edx, dword [0x10050224]
cmp eax, dword [0x100502c8]
jb 0x100023ef
mov edi, dword [0x10050078]
mov ecx, dword [ebp - 0x14]
mov eax, 0x22
mov ecx, dword [0x10050018]
mov eax, 2
mov dword [ebp - 0x14], eax
mov dword [0x10050190], ecx
mov dword [0x100503c4], edx
mov edi, dword [0x100503d4]
mov dword [0x100502d0], esi
mov eax, dword [0x100501a0]
push 0x79
push 0
call sub.user32.dll_LoadIconA
sub edi, dword [0x10050264]
mov eax, dword [ebp - 0xc]
and edi, ecx
mov edi, dword [ebp - 0x10]
mov eax, dword [0x1005011c]
sub eax, eax
test eax, eax
jb 0x10002444
mov dword [0x10050018], eax
mov dword [ebp - 0xc], eax
adc ecx, dword [0x1005027c]
mov eax, dword [ebp - 0x18]
add eax, ecx
mov eax, dword [ebp - 0x18]
mov eax, dword [0x100500c0]
mov edi, 0x26
mov dword [ebp - 0x18], eax
add dword [0x100502f4], eax
mov dword [0x10050350], eax
mov dword [ebp - 8], edx
mov dword [0x1005039c], eax
push 0x6a
mov dword [ebp - 8], eax
push 0
call sub.user32.dll_LoadIconA
mov edx, dword [0x100502e8]
mov eax, dword [ebp - 8]
mov ecx, 0x59
mov eax, dword [ebp - 0x14]
test eax, eax
jb 0x100024a1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov edi, dword [0x10050018]
mov ecx, dword [ebp - 0x10]
add eax, edi
mov eax, dword [0x10050024]
mov di, 0x10
mov dword [ebp - 0x14], ecx
mov dword [0x100501c8], esi
mov dword [0x1005005c], edi
add eax, dword [0x10050030]
mov dword [0x10050260], eax
mov eax, dword [0x10050180]
mov ecx, dword [ebp - 0x18]
mov esi, 6
sub edx, esi
cmp dword [ebp + 0xe6], eax
jg 0x100024d9
mov edx, dword [0x100503c8]
mov eax, dword [ebp - 0x14]
mov ax, 0x6f
mov edi, dword [0x100502b8]
mov dword [ebp - 0x10], eax
mov dword [0x10050128], edx
mov dword [0x100500e8], eax
xor ecx, dword [0x100503c4]
leave
ret
Function at 0x47eb26
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047e70d

Function at 0x47f054
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0043e3a0
mov eax, dword [0x4ac200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00479c21
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x47f096
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x47f1f2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00494e90
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x501c78]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00480e72
mov ecx, dword [esi*4 + 0x501c78]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x47f1eb
cmp eax, dword [edi + ecx + 0x24]
jne 0x47f1eb
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47f1eb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00480e72
add esp, 0x14
test edx, edx
jl 0x47f1eb
jg 0x47f161
test eax, eax
jb 0x47f1eb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x47f1eb
jl 0x47f17b
cmp dword [ebp - 0x1008], eax
ja 0x47f1eb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x47f199
test ebx, ebx
je 0x47f1d2
cmp ecx, edi
jae 0x47f1d2
mov al, byte [ecx]
cmp al, 0xd
jne 0x47f1b3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x47f1bf
cmp byte [ecx + 1], 0xa
jne 0x47f1bf
inc ecx
jmp 0x47f1bf
movzx eax, al
movsx eax, byte [eax + 0x4ac4e0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x47f199
cmp edx, ebx
jne 0x47f199
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x47f1f0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043ccc7
leave
ret
Function at 0x47fffb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x501c78]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48003b
cmp byte [ebx], 0xa
jne 0x48003b
or byte [eax + edi + 0x28], 4
jmp 0x480040
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x48013e
mov al, byte [edx]
cmp al, 0x1a
je 0x480120
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x48006f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x480094
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x48009e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x480051
jmp 0x48013e
push 0
lea eax, [ebp - 0xc]
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 0x48011b
cmp dword [ebp - 0xc], 0
je 0x48011b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x501c78]
test byte [eax + edi + 0x28], 0x48
je 0x4800f5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4800e0
mov byte [esi], dl
jmp 0x4800f1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x501c78]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x48013e
cmp byte [ebp - 1], 0xa
jne 0x480104
cmp esi, ebx
jne 0x480104
mov byte [esi], 0xa
jmp 0x48013d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00480e90
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x48013e
mov byte [esi], 0xd
jmp 0x48013d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x501c78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48013a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48013e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x480147
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x501c78]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48018a
cmp word [esi], dx
jne 0x48018a
or byte [edi + eax + 0x28], 4
jmp 0x48018f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4802e2
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4802c2
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4801d1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x480207
cmp eax, edx
jae 0x480213
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4801a9
jmp 0x4802e2
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 0x4802be
cmp dword [ebp - 0x14], 0
je 0x4802be
mov eax, dword [ebx*4 + 0x501c78]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x480296
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x48025f
mov word [esi], cx
jmp 0x480292
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x501c78]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x501c78]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x501c78]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4802e2
pop ebx
cmp word [ebp - 4], bx
jne 0x4802a7
cmp esi, dword [ebp + 0xc]
jne 0x4802a7
mov word [esi], bx
jmp 0x4802df
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00480e90
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4802e2
push 0xd
jmp 0x4802db
mov ecx, dword [ebx*4 + 0x501c78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4802d9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4802e2
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0xeb4550
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 0xeb4640
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0xeb4640
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0xeb459a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0xeb45a1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0xeb4580
jmp 0xeb45a3
mov esi, 0x1505
jmp 0xeb45a3
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx + 0x20]
mov edx, ebx
sub edx, 1
jb 0xeb4640
mov ecx, esi
not ecx
or edx, ecx
mov eax, ebx
and eax, 0xfffffffe
add eax, eax
mov ecx, ebx
xor ecx, 1
sub eax, ecx
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
lea ebp, [esi + edx]
inc ebp
jmp 0xeb45e4
inc ebp
dec ebx
je 0xeb463e
mov eax, ebp
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0xeb463e
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0xeb45e0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp], eax
push eax
call fcn.00ebc9c0
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0xeb45e0
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.00ebc9e0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0xeb45e0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0xeb4640
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0xeb5890
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 0xeb5a8a
mov esi, dword [esp + 0x2c]
test esi, esi
je 0xeb5a8a
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0xeb5a8a
cmp dword [ecx], 0
jne 0xeb5a8a
push esi
call fcn.00ebc9c0
add esp, 4
test eax, eax
je 0xeb58fa
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
movzx edx, byte [esi + ebx]
test edx, edx
je 0xeb5901
mov edi, ecx
shl edi, 5
add edi, ecx
add edi, edx
inc ebx
mov ecx, edi
cmp eax, ebx
jne 0xeb58e0
jmp 0xeb5903
mov edi, 0x1505
jmp 0xeb5903
mov edi, ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x20]
mov esi, edx
sub esi, 1
jae 0xeb59cd
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0xeb595a
call fcn.00eb5b60
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov esi, dword [esp + 0x2c]
jne 0xeb5a8a
push esi
call fcn.00ebc9c0
add esp, 4
mov edx, esi
lea esi, [esp + 0x10]
mov ecx, dword [esp + 0x28]
push esi
push edi
push eax
call fcn.00eb5aa0
add esp, 0xc
mov ebp, eax
mov esi, dword [esp + 0x2c]
push esi
call fcn.00ebc9c0
add esp, 4
mov ebx, eax
inc eax
push eax
call dword [fcn.00ef9008]
add esp, 4
test eax, eax
je 0xeb5a85
mov byte [eax + ebx], 0
push ebx
push esi
push eax
mov esi, eax
call fcn.00ebc8b0
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 0xeb5a8a
mov dword [esp], eax
mov eax, edx
mov edx, edi
not edx
or esi, edx
mov ebx, eax
and ebx, 0xfffffffe
add ebx, ebx
mov edx, eax
xor edx, 1
sub ebx, edx
mov dword [esp + 0xc], ebx
mov edx, eax
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
lea ebx, [edi + esi]
inc ebx
jmp 0xeb5a08
inc ebx
dec edx
je 0xeb5915
mov ebp, ebx
and ebp, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov esi, dword [eax + ebp*4]
cmp esi, 0xffffffff
je 0xeb591a
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], edi
jne 0xeb5a00
mov eax, dword [ecx + 0xc]
mov ebp, dword [eax + esi*4]
push ebp
mov dword [esp + 8], edx
call fcn.00ebc9c0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [esp]
jne 0xeb5a00
push dword [esp]
push ebp
push dword [esp + 0x34]
call fcn.00ebc9e0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0xeb5a00
mov eax, dword [ecx + 0x10]
push dword [eax + esi*4]
call fcn.00eb4970
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 0xeb59c2
mov eax, 0xffffffff
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0xeb6b50
Capabilities:
Compute adler32 checksum
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0xeb6cf2
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0xeb6ceb
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, esi
sub edx, eax
jmp 0xeb6be0
add ebp, dword [esp + 8]
mov esi, dword [esp + 4]
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, dword [esp]
mov edx, 0x15b0
je 0xeb6ceb
xor eax, eax
cmp edx, 8
mov dword [esp], edx
mov dword [esp + 4], esi
jb 0xeb6c65
mov eax, edx
and eax, 0x1ff8
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ebx
movzx ebx, byte [ebp + ebx]
add ebx, edi
add ecx, ebx
movzx edi, byte [ebp + edx + 1]
add edi, ebx
add ecx, edi
movzx ebx, byte [ebp + edx + 2]
add ebx, edi
add ecx, ebx
movzx edi, byte [ebp + edx + 3]
add edi, ebx
add ecx, edi
movzx ebx, byte [ebp + edx + 4]
add ebx, edi
add ecx, ebx
movzx edi, byte [ebp + edx + 5]
add edi, ebx
mov ebx, ecx
xor ebx, edi
and ecx, edi
movzx esi, byte [ebp + edx + 6]
add esi, edi
movzx edi, byte [ebp + edx + 7]
add edi, esi
add esi, ebx
lea ecx, [esi + ecx*2]
lea ebx, [edx + 8]
add ecx, edi
add edx, 0xf
cmp edx, dword [esp]
mov edx, dword [esp]
jb 0xeb6c00
add ebp, ebx
mov esi, dword [esp + 4]
mov ebx, edx
sub ebx, eax
mov dword [esp + 8], ebx
jbe 0xeb6ba8
mov ebx, edx
mov edx, eax
or edx, 1
test bl, 1
jne 0xeb6c90
mov ebx, ebp
cmp dword [esp], edx
je 0xeb6ba0
jmp 0xeb6cad
lea ebx, [ebp + 1]
movzx eax, byte [ebp]
add edi, eax
mov eax, edi
and eax, ecx
xor ecx, edi
lea ecx, [ecx + eax*2]
mov eax, edx
cmp dword [esp], edx
je 0xeb6ba0
mov edx, dword [esp]
sub edx, eax
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [ebx + eax]
add esi, edi
mov edi, esi
and edi, ecx
xor ecx, esi
lea ecx, [ecx + edi*2]
movzx edi, byte [ebx + eax + 1]
add edi, esi
mov esi, edi
and esi, ecx
xor ecx, edi
lea ecx, [ecx + esi*2]
add eax, 2
cmp edx, eax
jne 0xeb6cc0
jmp 0xeb6ba0
shl ecx, 0x10
or ecx, edi
jmp 0xeb6cf7
mov ecx, 1
mov eax, ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0xeb6d10
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0xeb6d3e
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0xeb6ddc
not eax
test bl, 1
jne 0xeb6d45
mov edx, ebx
cmp ebx, 1
jne 0xeb6d76
jmp 0xeb6dda
xor eax, eax
jmp 0xeb6ddc
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 + 0xef6c50]
inc ecx
mov eax, edi
shr eax, 4
and edi, 0xf
shr esi, 4
xor esi, edi
xor eax, dword [esi*4 + 0xef6c50]
cmp ebx, 1
je 0xeb6dda
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 + 0xef6c50]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0xef6c50]
movzx edi, byte [ecx + esi + 1]
mov ebx, eax
shr ebx, 4
xor eax, edi
and eax, 0xf
xor ebx, dword [eax*4 + 0xef6c50]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0xef6c50]
add esi, 2
cmp edx, esi
jne 0xeb6d80
not eax
pop esi
pop edi
pop ebx
ret