joyce8/EMBER2024-capa huggingface dataset:
Function at 0x551bd0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00551690
xor ebx, ebx
lea ecx, [ecx]
call fcn.00425b40
mov ecx, eax
sar ecx, 6
mov byte [ebp + 0x1b], cl
test cl, cl
jne 0x551c06
mov byte [ebp + 0x1b], al
mov cl, al
mov edi, dword [esi + 0xc]
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x896e90]
mov eax, dword [esi + 0x14]
shr edi, 8
xor ecx, edi
mov dword [esi + 0xc], ecx
movzx ecx, cl
add ecx, dword [esi + 0x10]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x10], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x896e90]
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
sar eax, 8
xor al, byte [ebp + 0x1b]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, 0xa
jl 0x551bf0
mov ebx, dword [ebp + 0x10]
mov edi, dword [esi + 0xc]
shr ebx, 0x10
mov eax, dword [esi + 0x14]
movsx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x896e90]
shr edi, 8
xor ecx, edi
mov dword [esi + 0xc], ecx
movzx ecx, cl
add ecx, dword [esi + 0x10]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x10], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x896e90]
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
sar eax, 8
xor al, bl
mov ebx, dword [ebp + 0x10]
mov byte [ecx + 0xa], al
mov edi, dword [esi + 0xc]
shr ebx, 0x18
mov eax, dword [esi + 0x14]
movsx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x896e90]
shr edi, 8
xor ecx, edi
mov dword [esi + 0xc], ecx
movzx ecx, cl
add ecx, dword [esi + 0x10]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x10], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x896e90]
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
pop edi
sar eax, 8
xor al, bl
pop esi
mov byte [ecx + 0xb], al
pop ebx
pop ebp
ret 0x14
Function at 0x55a9f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x899944]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
push ebx
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push edi
lea eax, [esi + 0x4d0]
push eax
lea eax, [ebp - 0x14]
push eax
xor ebx, ebx
call edx
xor eax, eax
mov dword [esi + 0x510], eax
mov dword [esi + 0x514], eax
mov dword [esi + 0x518], eax
mov dword [esi + 0x51c], eax
mov dword [esi + 0x4e0], eax
mov dword [esi + 0x4e4], eax
mov dword [esi + 0x4e8], eax
mov dword [esi + 0x4ec], eax
mov dword [esi + 0x524], ebx
mov dword [esi + 0x520], ebx
mov dword [esi + 0x528], ebx
mov dword [esi + 0x530], ebx
mov dword [esi + 0x534], ebx
mov dword [esi + 0x538], ebx
mov dword [esi + 0x53c], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea edi, [esi + 0x540]
lea eax, [esi + 0x4d0]
push edi
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x14], bl
call fcn.00556640
inc ebx
add esp, 8
add edi, 0x10
cmp ebx, 0x100
jl 0x55aa96
lea eax, [esi + 0x54e]
mov edi, 0xf
jmp 0x55aad0
mov esi, 0x100
jmp 0x55aae0
movzx edx, byte [eax]
mov byte [eax + 0x1001], dl
movzx edx, byte [eax - 1]
mov byte [eax + 0x1000], dl
movzx edx, byte [eax - 2]
mov byte [eax + 0xfff], dl
movzx edx, byte [eax - 3]
mov byte [eax + 0xffe], dl
movzx edx, byte [eax - 4]
mov byte [eax + 0xffd], dl
movzx edx, byte [eax - 5]
mov byte [eax + 0xffc], dl
movzx edx, byte [eax - 6]
mov byte [eax + 0xffb], dl
movzx edx, byte [eax - 7]
mov byte [eax + 0xffa], dl
movzx edx, byte [eax - 8]
movzx ecx, byte [eax + 1]
mov byte [eax + 0xff9], dl
movzx edx, byte [eax - 9]
mov byte [eax + 0xff8], dl
movzx edx, byte [eax - 0xa]
mov byte [eax + 0xff7], dl
movzx edx, byte [eax - 0xb]
mov byte [eax + 0xff6], dl
movzx edx, byte [eax - 0xc]
mov byte [eax + 0xff5], dl
movzx edx, byte [eax - 0xd]
mov byte [eax + 0xff4], dl
mov dl, byte [eax - 0xe]
mov byte [eax + 0xff3], dl
mov bl, byte [ecx*2 + 0x7e73a8]
mov byte [eax + 0xff2], bl
mov cl, byte [ecx*2 + 0x7e73a9]
xor cl, dl
mov byte [eax + 0xff3], cl
add eax, 0x10
dec esi
jne 0x55aae0
dec edi
jne 0x55aad0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0070bb4c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x55abc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
lea ecx, [ebx + 0x30]
call fcn.004033b0
test eax, eax
jne 0x55abe7
push 0x10
push eax
lea ecx, [ebx + 0x30]
call fcn.00410f50
mov dword [ebx + 0x2c], 0xc
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x524], 0
je 0x55ac0b
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.Not_in_IV_mode.
call edx
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0x10
mov eax, dword [esi + 0x528]
cmp eax, 0x10
jge 0x55adee
test eax, eax
js 0x55adee
mov ecx, dword [ebx + 0x2c]
add ecx, eax
cmp ecx, 0xc
jbe 0x55ac33
or dword [esi + 0x520], 1
lea ecx, [ebx + 0x30]
call fcn.0040fbb0
xor edi, edi
mov ebx, eax
cmp dword [esi + 0x528], edi
jne 0x55acaa
mov edx, dword [ebp + 0x10]
test dword [edx + 0x2c], 0xfffffff0
jbe 0x55aca8
lea ecx, [esi + 0x4e0]
lea esp, [esp]
mov eax, dword [ebx + edi]
xor dword [ecx], eax
mov edx, dword [ebx + edi + 4]
xor dword [ecx + 4], edx
mov eax, dword [ebx + edi + 8]
xor dword [esi + 0x4e8], eax
mov edx, dword [ebx + edi + 0xc]
xor dword [esi + 0x4ec], edx
mov eax, esi
call fcn.00558fc0
add dword [esi + 0x530], 0x80
mov eax, dword [ebp + 0x10]
adc dword [esi + 0x534], 0
mov edx, dword [eax + 0x2c]
add edi, 0x10
and edx, 0xfffffff0
cmp edi, edx
jb 0x55ac60
add ebx, edi
mov eax, dword [ebp + 0x10]
cmp edi, dword [eax + 0x2c]
jae 0x55ade5
jmp 0x55acc0
mov dl, byte [ebx]
mov ecx, dword [esi + 0x528]
mov byte [ecx + esi + 0x510], dl
inc dword [esi + 0x528]
inc ebx
cmp dword [esi + 0x528], 0x10
jne 0x55add8
movzx eax, byte [esi + 0x510]
xor byte [esi + 0x4e0], al
movzx edx, byte [esi + 0x511]
xor byte [esi + 0x4e1], dl
movzx eax, byte [esi + 0x512]
xor byte [esi + 0x4e2], al
movzx edx, byte [esi + 0x513]
xor byte [esi + 0x4e3], dl
movzx eax, byte [esi + 0x514]
xor byte [esi + 0x4e4], al
movzx edx, byte [esi + 0x515]
xor byte [esi + 0x4e5], dl
movzx eax, byte [esi + 0x516]
xor byte [esi + 0x4e6], al
movzx edx, byte [esi + 0x517]
xor byte [esi + 0x4e7], dl
movzx eax, byte [esi + 0x518]
xor byte [esi + 0x4e8], al
movzx edx, byte [esi + 0x519]
xor byte [esi + 0x4e9], dl
movzx eax, byte [esi + 0x51a]
movzx edx, byte [esi + 0x51b]
xor byte [esi + 0x4ea], al
movzx eax, byte [esi + 0x51c]
xor byte [esi + 0x4eb], dl
movzx edx, byte [esi + 0x51d]
xor byte [esi + 0x4ec], al
lea ecx, [esi + 0x4e0]
movzx eax, byte [esi + 0x51e]
xor byte [esi + 0x4ed], dl
movzx edx, byte [esi + 0x51f]
xor byte [esi + 0x4ee], al
xor byte [esi + 0x4ef], dl
mov eax, esi
call fcn.00558fc0
xor eax, eax
add dword [esi + 0x530], 0x80
mov dword [esi + 0x528], eax
adc dword [esi + 0x534], eax
mov eax, dword [ebp + 0x10]
inc edi
cmp edi, dword [eax + 0x2c]
jb 0x55acc0
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.buflen_error.
call eax
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0x10
Function at 0x55c5e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x43c]
mov edx, dword [eax + 0x440]
sub esp, 8
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
jle 0x55c644
push edi
mov edi, edi
inc cl
movzx edi, cl
mov ecx, dword [eax + edi*4 + 0x3c]
add dl, cl
mov dword [ebp - 4], ecx
movzx ecx, dl
mov edx, dword [ebp - 4]
mov dword [ebp + 8], ecx
mov ecx, dword [eax + ecx*4 + 0x3c]
mov dword [eax + edi*4 + 0x3c], ecx
add cl, dl
movzx ecx, cl
mov dword [ebp - 8], edi
mov edi, dword [ebp + 8]
mov dword [eax + edi*4 + 0x3c], edx
mov dl, byte [eax + ecx*4 + 0x3c]
mov ecx, dword [ebp + 0xc]
xor byte [esi + ecx], dl
mov ecx, dword [ebp - 8]
inc esi
mov edx, edi
cmp esi, dword [ebp + 0x10]
jl 0x55c600
pop edi
mov dword [eax + 0x440], edx
mov dword [eax + 0x43c], ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x55c980
Capabilities:
Encrypt data using salsa20 or chacha
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x55c992
xor al, al
pop edi
pop ebp
ret 8
push ebx
mov ebx, dword [ebp + 8]
push esi
lea ecx, [ebx + 0x10]
call fcn.004033b0
cmp eax, 0x20
jne 0x55c9b1
lea ecx, [ebx + 0x30]
call fcn.004033b0
cmp eax, 0xc
jae 0x55c9ba
pop esi
pop ebx
xor al, al
pop edi
pop ebp
ret 8
lea ecx, [ebx + 0x10]
call fcn.0040fbb0
lea ecx, [ebx + 0x30]
mov esi, eax
call fcn.0040fbb0
mov dword [edi], 0x61707865
mov dword [edi + 4], 0x3320646e
mov dword [edi + 8], 0x79622d32
mov dword [edi + 0xc], 0x6b206574
movzx ecx, byte [esi + 3]
shl ecx, 8
movzx edx, byte [esi + 2]
or ecx, edx
shl ecx, 8
movzx edx, byte [esi + 1]
or ecx, edx
movzx edx, byte [esi]
shl ecx, 8
or ecx, edx
mov dword [edi + 0x10], ecx
movzx ecx, byte [esi + 7]
movzx edx, byte [esi + 6]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 5]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 4]
shl ecx, 8
or ecx, edx
mov dword [edi + 0x14], ecx
movzx ecx, byte [esi + 0xb]
movzx edx, byte [esi + 0xa]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 9]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 8]
shl ecx, 8
or ecx, edx
mov dword [edi + 0x18], ecx
movzx ecx, byte [esi + 0xf]
movzx edx, byte [esi + 0xe]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 0xd]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 0xc]
shl ecx, 8
or ecx, edx
mov dword [edi + 0x1c], ecx
movzx ecx, byte [esi + 0x13]
movzx edx, byte [esi + 0x12]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 0x11]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 0x10]
shl ecx, 8
or ecx, edx
mov dword [edi + 0x20], ecx
movzx ecx, byte [esi + 0x17]
movzx edx, byte [esi + 0x16]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 0x15]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 0x14]
shl ecx, 8
or ecx, edx
mov dword [edi + 0x24], ecx
movzx ecx, byte [esi + 0x1b]
movzx edx, byte [esi + 0x1a]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 0x19]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 0x18]
shl ecx, 8
or ecx, edx
mov dword [edi + 0x28], ecx
movzx ecx, byte [esi + 0x1f]
movzx edx, byte [esi + 0x1e]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 0x1d]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 0x1c]
shl ecx, 8
or ecx, edx
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], 0
movzx ecx, byte [eax + 3]
movzx edx, byte [eax + 2]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax]
shl ecx, 8
or ecx, edx
mov dword [edi + 0x34], ecx
movzx ecx, byte [eax + 7]
movzx edx, byte [eax + 6]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 5]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 4]
shl ecx, 8
or ecx, edx
mov dword [edi + 0x38], ecx
movzx ecx, byte [eax + 0xb]
movzx edx, byte [eax + 0xa]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 9]
movzx eax, byte [eax + 8]
shl ecx, 8
or ecx, edx
shl ecx, 8
pop esi
or ecx, eax
pop ebx
mov dword [edi + 0x3c], ecx
mov al, 1
pop edi
pop ebp
ret 8
Function at 0x55da40
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 3]
movzx edx, byte [eax + 2]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax]
shl ecx, 8
or ecx, edx
mov edx, dword [ebp + 8]
mov dword [edx + 0x454], ecx
movzx ecx, byte [eax + 7]
shl ecx, 8
movzx esi, byte [eax + 6]
or ecx, esi
movzx esi, byte [eax + 5]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 4]
shl ecx, 8
or ecx, esi
mov dword [edx + 0x458], ecx
movzx ecx, byte [eax + 0xb]
movzx esi, byte [eax + 0xa]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 9]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 8]
shl ecx, 8
or ecx, esi
mov dword [edx + 0x45c], ecx
movzx ecx, byte [eax + 0xf]
movzx esi, byte [eax + 0xe]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 0xd]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 0xc]
shl ecx, 8
or ecx, esi
cmp dword [ebp + 0x10], 0x100
mov dword [edx + 0x460], ecx
jne 0x55daf1
add eax, 0x10
mov ecx, str.expand_32_byte_k
jmp 0x55daf6
mov ecx, str.expand_16_byte_k
movzx esi, byte [eax + 3]
movzx edi, byte [eax + 2]
shl esi, 8
or esi, edi
movzx edi, byte [eax + 1]
shl esi, 8
or esi, edi
movzx edi, byte [eax]
shl esi, 8
or esi, edi
mov dword [edx + 0x464], esi
movzx esi, byte [eax + 7]
movzx edi, byte [eax + 6]
shl esi, 8
or esi, edi
movzx edi, byte [eax + 5]
shl esi, 8
or esi, edi
movzx edi, byte [eax + 4]
shl esi, 8
or esi, edi
mov dword [edx + 0x468], esi
movzx esi, byte [eax + 0xb]
movzx edi, byte [eax + 0xa]
shl esi, 8
or esi, edi
movzx edi, byte [eax + 9]
shl esi, 8
or esi, edi
movzx edi, byte [eax + 8]
shl esi, 8
or esi, edi
mov dword [edx + 0x46c], esi
movzx esi, byte [eax + 0xf]
movzx edi, byte [eax + 0xe]
shl esi, 8
or esi, edi
movzx edi, byte [eax + 0xd]
movzx eax, byte [eax + 0xc]
shl esi, 8
or esi, edi
shl esi, 8
or esi, eax
mov dword [edx + 0x470], esi
movsx eax, byte [ecx + 3]
movsx esi, byte [ecx + 2]
shl eax, 8
or eax, esi
movsx esi, byte [ecx + 1]
shl eax, 8
or eax, esi
movsx esi, byte [ecx]
shl eax, 8
or eax, esi
mov dword [edx + 0x444], eax
movsx eax, byte [ecx + 7]
movsx esi, byte [ecx + 6]
shl eax, 8
or eax, esi
movsx esi, byte [ecx + 5]
shl eax, 8
or eax, esi
movsx esi, byte [ecx + 4]
shl eax, 8
or eax, esi
mov dword [edx + 0x448], eax
movsx eax, byte [ecx + 0xb]
movsx esi, byte [ecx + 0xa]
shl eax, 8
or eax, esi
movsx esi, byte [ecx + 9]
shl eax, 8
or eax, esi
movsx esi, byte [ecx + 8]
shl eax, 8
or eax, esi
mov dword [edx + 0x44c], eax
movsx eax, byte [ecx + 0xf]
movsx esi, byte [ecx + 0xe]
shl eax, 8
or eax, esi
movsx esi, byte [ecx + 0xd]
movsx ecx, byte [ecx + 0xc]
shl eax, 8
or eax, esi
shl eax, 8
or eax, ecx
pop edi
mov dword [edx + 0x450], eax
pop esi
pop ebp
ret 0x10
Function at 0x55e430
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
cmp esi, 0x80
jbe 0x55e44a
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc
cmp dword [ebp + 0x10], 0
jne 0x55e457
mov dword [ebp + 0x10], 0x400
mov eax, dword [ebp + 8]
push edi
push esi
push eax
lea edi, [ebx + 0x88]
push edi
call fcn.0070d6a0
add esp, 0xc
cmp esi, 0x80
jae 0x55e4a1
mov al, byte [esi + ebx + 0x87]
mov ecx, edi
lea ecx, [ecx]
movzx edx, byte [ecx]
movzx eax, al
add edx, eax
and edx, 0xff
mov al, byte [edx + 0x7e7d38]
mov byte [edi + esi], al
inc esi
inc ecx
cmp esi, 0x80
jb 0x55e480
mov ecx, dword [ebp + 0x10]
lea edx, [ecx + 7]
neg ecx
shr edx, 3
mov eax, 0x80
and ecx, 7
sub eax, edx
lea esi, [eax + ebx + 0x88]
mov edi, 0xff
sar edi, cl
movzx ecx, byte [esi]
and edi, ecx
mov cl, byte [edi + 0x7e7d38]
mov byte [esi], cl
test eax, eax
je 0x55e4eb
movzx edi, byte [esi + edx - 1]
dec esi
movzx ecx, cl
xor edi, ecx
dec eax
mov cl, byte [edi + 0x7e7d38]
mov byte [esi], cl
jne 0x55e4d5
mov ecx, 0x3f
lea eax, [ebx + 0x106]
pop edi
jmp 0x55e500
movzx edx, byte [eax + 1]
mov esi, 0x100
imul dx, si
movzx esi, byte [eax]
add dx, si
mov word [eax], dx
mov edx, ecx
dec ecx
sub eax, 2
test edx, edx
jne 0x55e500
pop esi
mov al, 1
pop ebx
pop ebp
ret 0xc
Function at 0x5621f0
Capabilities:
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov edx, dword [ebp + 8]
sub edx, 2
push ebx
push edi
je 0x562296
dec edx
je 0x562254
dec edx
jne 0x56233b
movzx edi, byte [ebp - 4]
mov dl, byte [ecx + eax*4 + 0x18]
xor dl, byte [edi + 0x7e7fd0]
movzx edi, byte [ebp - 2]
mov bl, byte [edi + 0x7e7ed0]
xor bl, byte [ecx + eax*4 + 0x1a]
movzx edi, byte [ebp - 1]
mov byte [ebp - 4], dl
movzx edx, byte [ebp - 3]
mov dl, byte [edx + 0x7e7ed0]
xor dl, byte [ecx + eax*4 + 0x19]
mov byte [ebp - 2], bl
mov bl, byte [edi + 0x7e7fd0]
xor bl, byte [ecx + eax*4 + 0x1b]
mov byte [ebp - 1], bl
jmp 0x562257
mov dl, byte [ebp - 3]
movzx edi, byte [ebp - 4]
mov bl, byte [ecx + eax*4 + 0x10]
xor bl, byte [edi + 0x7e7fd0]
movzx edx, dl
mov dl, byte [edx + 0x7e7fd0]
xor dl, byte [ecx + eax*4 + 0x11]
mov byte [ebp - 3], dl
movzx edx, byte [ebp - 2]
mov dl, byte [edx + 0x7e7ed0]
xor dl, byte [ecx + eax*4 + 0x12]
mov byte [ebp - 2], dl
movzx edx, byte [ebp - 1]
mov dl, byte [edx + 0x7e7ed0]
xor dl, byte [ecx + eax*4 + 0x13]
jmp 0x56229c
mov dl, byte [ebp - 1]
mov bl, byte [ebp - 4]
movzx edi, byte [ecx + eax*4 + 8]
movzx ebx, bl
movzx ebx, byte [ebx + 0x7e7ed0]
xor edi, ebx
movzx edi, byte [edi + 0x7e7ed0]
movzx ebx, byte [ecx + eax*4]
xor edi, ebx
movzx ebx, byte [edi + 0x7e7fd0]
movzx edi, byte [ebp - 3]
movzx edi, byte [edi + 0x7e7fd0]
mov byte [ebp - 4], bl
movzx ebx, byte [ecx + eax*4 + 9]
xor edi, ebx
movzx edi, byte [edi + 0x7e7ed0]
movzx ebx, byte [ecx + eax*4 + 1]
xor edi, ebx
movzx ebx, byte [edi + 0x7e7ed0]
movzx edi, byte [ebp - 2]
movzx edi, byte [edi + 0x7e7ed0]
mov byte [ebp - 3], bl
movzx ebx, byte [ecx + eax*4 + 0xa]
xor edi, ebx
movzx ebx, byte [ecx + eax*4 + 2]
movzx edi, byte [edi + 0x7e7fd0]
movzx edx, dl
movzx edx, byte [edx + 0x7e7fd0]
xor edi, ebx
mov bl, byte [edi + 0x7e7fd0]
movzx edi, byte [ecx + eax*4 + 0xb]
movzx eax, byte [ecx + eax*4 + 3]
xor edx, edi
movzx edx, byte [edx + 0x7e7fd0]
xor edx, eax
mov al, byte [edx + 0x7e7ed0]
jmp 0x562341
mov al, byte [ebp - 1]
mov bl, byte [ebp - 2]
movzx ecx, al
mov eax, dword [ecx*4 + 0x7e8cd0]
movzx ecx, byte [ebp - 3]
movzx edx, bl
xor eax, dword [edx*4 + 0x7e88d0]
movzx edx, byte [ebp - 4]
xor eax, dword [ecx*4 + 0x7e84d0]
pop edi
xor eax, dword [edx*4 + 0x7e80d0]
pop ebx
mov ecx, eax
shr ecx, 0x18
mov byte [esi + 3], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
mov byte [esi + 2], dl
mov byte [esi + 1], cl
mov byte [esi], al
mov esp, ebp
pop ebp
ret
Function at 0x5662b0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x5662ce
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
ret 0xc
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x5663cc
lea ebx, [ebx]
mov eax, ebx
cmp ebx, 0x15b0
jb 0x5662ef
mov eax, 0x15b0
sub ebx, eax
mov dword [ebp + 0x10], ebx
cmp eax, 0x10
jb 0x566391
mov edx, eax
shr edx, 4
movzx ebx, byte [esi]
add ecx, ebx
movzx ebx, byte [esi + 1]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 2]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 3]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 4]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 5]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 6]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 7]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 8]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 9]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xa]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xb]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xc]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xd]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xe]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xf]
add edi, ecx
add ecx, ebx
add edi, ecx
add esi, 0x10
sub eax, 0x10
dec edx
jne 0x566302
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x5663a0
movzx edx, byte [esi]
add ecx, edx
inc esi
add edi, ecx
dec eax
jne 0x566395
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
jne 0x5662e0
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
pop ebp
ret 0xc

Function at 0x5668f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x899944]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea ecx, [esi + 0x28]
call fcn.00409d90
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x56696a
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x56692a
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov dword [esi + 0x118], edx
jmp 0x566934
mov dword [esi + 0x118], 0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
lea ecx, [eax + 3]
push ecx
lea edx, [eax + 2]
push edx
lea ecx, [eax + 1]
push ecx
push eax
push str._b._b._b._b
lea edx, [ebp - 0x2c]
push 0x28
push edx
call fcn.00421bf0
add esp, 0x1c
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0xa0]
call fcn.0040c0a0
jmp 0x566975
lea ecx, [esi + 0xa0]
call fcn.0040a400
mov ecx, dword [ebp - 4]
mov byte [esi + 0x114], 0
xor ecx, ebp
pop esi
call fcn.0070bb4c
mov esp, ebp
pop ebp
ret
Function at 0x56d3c0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x40
lea eax, [esi + 8]
push 0
push eax
mov dword [esi + 0xb0], 0
call fcn.0070dc20
add esp, 0xc
lea ecx, [esi + 0x48]
pop esi
pop ebp
jmp fcn.004e9e00

Function at 0x56d470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0xb0]
cmp eax, 0xffffffff
je 0x56d4f1
cmp eax, 0x40
jbe 0x56d49d
lea eax, [esi + 8]
push eax
lea ecx, [esi + 0x48]
call fcn.004ead30
mov dword [esi + 0xb0], 0x14
mov eax, dword [esi + 0xb0]
push ebx
push edi
mov ecx, 0x40
sub ecx, eax
push ecx
lea edx, [eax + esi + 8]
push 0
push edx
call fcn.0070dc20
lea ebx, [esi + 8]
add esp, 0xc
mov eax, ebx
mov ecx, 0x10
xor dword [eax], 0x36363636
add eax, 4
dec ecx
jne 0x56d4c6
lea ecx, [esi + 0x48]
call fcn.004e9e00
push 0x40
push ebx
lea ecx, [esi + 0x48]
call fcn.004ea420
pop edi
mov dword [esi + 0xb0], 0xffffffff
pop ebx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x56d505
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esi + 0x48]
call fcn.004ea420
pop esi
pop ebp
ret

Function at 0x56d510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x899944]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
cmp dword [edi + 0xb0], 0xffffffff
je 0x56d53e
push edi
push 0
push 0
call fcn.0056d470
add esp, 0xc
push esi
lea eax, [ebp - 0x18]
lea esi, [edi + 0x48]
push eax
mov ecx, esi
call fcn.004ead30
add edi, 8
mov eax, edi
mov ecx, 0x10
jmp 0x56d560
xor dword [eax], 0x6a6a6a6a
add eax, 4
dec ecx
jne 0x56d560
mov ecx, esi
call fcn.004e9e00
push 0x40
push edi
mov ecx, esi
call fcn.004ea420
push 0x14
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.004ea420
lea edx, [ebp - 0x18]
push edx
mov ecx, esi
call fcn.004ead30
mov eax, dword [ebp + 0xc]
pop esi
test eax, eax
je 0x56d5ab
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.0070d6a0
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0070bb4c
mov esp, ebp
pop ebp
ret
Function at 0x56d920
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74ceab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x899944]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
lea ecx, [esi + 0x10]
mov dword [esi], vtable.BufferedSource.0
mov dword [esi + 8], 0xfa0
mov dword [esi + 0xc], ebx
call fcn.0040fe80
push 0x1388
lea ecx, [esi + 0x10]
mov dword [ebp - 4], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x40], bl
call fcn.00413a50
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