joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5de130
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x703eb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov edx, dword [ebx + 0x48]
sub edx, 6
push esi
push edi
test edx, edx
jle 0x5de159
mov esi, dword [ebp + 8]
mov ecx, edx
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x28], esi
test edx, edx
jle 0x5de19b
cmp esi, dword [ebx + 0x48]
jg 0x5de2b1
cmp eax, edx
jge 0x5de18c
cmp ecx, 4
jge 0x5de18f
mov edi, dword [ebp + eax*4 - 0x24]
lea esi, [ecx + esi*4]
inc eax
inc ecx
mov dword [ebx + esi*4 + 0x4c], edi
mov esi, dword [ebp - 0x28]
cmp eax, edx
jl 0x5de173
cmp ecx, 4
jne 0x5de197
inc esi
mov dword [ebp - 0x28], esi
xor ecx, ecx
cmp eax, edx
jl 0x5de166
cmp esi, dword [ebx + 0x48]
jg 0x5de2b1
mov dword [ebp - 0x2c], 0x714b88
jmp 0x5de1b0
movzx eax, byte [ebp + edx*4 - 0x27]
movzx eax, byte [eax + 0x711988]
xor byte [ebp - 0x24], al
movzx eax, byte [ebp + edx*4 - 0x26]
movzx eax, byte [eax + 0x711988]
xor byte [ebp - 0x23], al
movzx eax, byte [ebp + edx*4 - 0x25]
movzx eax, byte [eax + 0x711988]
xor byte [ebp - 0x22], al
movzx eax, byte [ebp + edx*4 - 0x28]
movzx eax, byte [eax + 0x711988]
xor byte [ebp - 0x21], al
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
xor byte [ebp - 0x24], al
add dword [ebp - 0x2c], 4
mov eax, 1
cmp edx, 8
je 0x5de216
cmp edx, eax
jle 0x5de26f
mov edi, dword [ebp + eax*4 - 0x28]
xor dword [ebp + eax*4 - 0x24], edi
inc eax
cmp eax, edx
jl 0x5de207
jmp 0x5de26f
mov edi, dword [ebp + eax*4 - 0x28]
xor dword [ebp + eax*4 - 0x24], edi
inc eax
cmp eax, 4
jl 0x5de216
movzx eax, byte [ebp - 0x18]
movzx eax, byte [eax + 0x711988]
xor byte [ebp - 0x14], al
movzx eax, byte [ebp - 0x17]
movzx eax, byte [eax + 0x711988]
xor byte [ebp - 0x13], al
movzx eax, byte [ebp - 0x16]
movzx eax, byte [eax + 0x711988]
xor byte [ebp - 0x12], al
movzx eax, byte [ebp - 0x15]
movzx eax, byte [eax + 0x711988]
xor byte [ebp - 0x11], al
mov eax, 5
mov edi, dword [ebp + eax*4 - 0x28]
xor dword [ebp + eax*4 - 0x24], edi
inc eax
cmp eax, 8
jl 0x5de261
xor eax, eax
test edx, edx
jle 0x5de2a8
cmp esi, dword [ebx + 0x48]
jg 0x5de2b1
cmp eax, edx
jge 0x5de299
mov edi, edi
cmp ecx, 4
jge 0x5de29c
mov edi, dword [ebp + eax*4 - 0x24]
lea esi, [ecx + esi*4]
inc eax
inc ecx
mov dword [ebx + esi*4 + 0x4c], edi
mov esi, dword [ebp - 0x28]
cmp eax, edx
jl 0x5de280
cmp ecx, 4
jne 0x5de2a4
inc esi
mov dword [ebp - 0x28], esi
xor ecx, ecx
cmp eax, edx
jl 0x5de275
cmp esi, dword [ebx + 0x48]
jle 0x5de1b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00521602
mov esp, ebp
pop ebp
ret 4
Function at 0x5de2d0
Capabilities:
Encode data using xor

Disassembly:
mov edx, 1
cmp dword [ecx + 0x48], edx
jle 0x5de3ba
push esi
lea eax, [ecx + 0x5e]
push edi
jmp 0x5de2f0
movzx esi, byte [eax + 1]
mov esi, dword [esi*4 + 0x714788]
movzx edi, byte [eax - 1]
xor esi, dword [edi*4 + 0x713f88]
movzx edi, byte [eax]
xor esi, dword [edi*4 + 0x714388]
movzx edi, byte [eax - 2]
xor esi, dword [edi*4 + 0x713b88]
inc edx
mov dword [eax - 2], esi
movzx esi, byte [eax + 5]
mov esi, dword [esi*4 + 0x714788]
movzx edi, byte [eax + 4]
xor esi, dword [edi*4 + 0x714388]
movzx edi, byte [eax + 3]
xor esi, dword [edi*4 + 0x713f88]
movzx edi, byte [eax + 2]
xor esi, dword [edi*4 + 0x713b88]
add eax, 0x10
mov dword [eax - 0xe], esi
movzx esi, byte [eax - 7]
mov esi, dword [esi*4 + 0x714788]
movzx edi, byte [eax - 8]
xor esi, dword [edi*4 + 0x714388]
movzx edi, byte [eax - 9]
xor esi, dword [edi*4 + 0x713f88]
movzx edi, byte [eax - 0xa]
xor esi, dword [edi*4 + 0x713b88]
mov dword [eax - 0xa], esi
movzx esi, byte [eax - 3]
movzx edi, byte [eax - 4]
mov esi, dword [esi*4 + 0x714788]
xor esi, dword [edi*4 + 0x714388]
movzx edi, byte [eax - 5]
xor esi, dword [edi*4 + 0x713f88]
movzx edi, byte [eax - 6]
xor esi, dword [edi*4 + 0x713b88]
mov dword [eax - 6], esi
cmp edx, dword [ecx + 0x48]
jl 0x5de2f0
pop edi
pop esi
ret
Function at 0x5dedd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
push edi
mov ecx, esi
call fcn.0061c880
cmp eax, 0x10
jae 0x5dedfc
mov edi, 0x10
nop
push 0
mov ecx, esi
call fcn.00540bb0
dec edi
jne 0x5dedf0
cmp byte [ebp + 0x18], 0
jne 0x5dee24
mov ecx, esi
call fcn.00595640
test eax, eax
je 0x5dee24
mov ecx, dword [eax]
mov dword [ebx + 0x38], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x3c], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x40], ecx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x44], edx
cmp dword [ebx + 0x2c], 0
je 0x5dee38
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebx + 0x34], 0
je 0x5dee4c
pop edi
pop esi
mov eax, 0xfffffffa
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 8]
test esi, esi
je 0x5def58
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x5def58
mov ecx, dword [ebx + 0x30]
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
sub ecx, 0
mov dword [ebp + 0x18], eax
je 0x5def21
dec ecx
je 0x5dee89
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebx + 0x38]
xor eax, dword [esi]
mov ecx, dword [esi + 4]
xor ecx, dword [ebx + 0x3c]
mov edx, dword [esi + 8]
mov edi, dword [ebp + 0x10]
xor edx, dword [ebx + 0x40]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0xc]
xor eax, dword [ebx + 0x44]
mov dword [ebp - 0xc], ecx
push edi
lea ecx, [ebp - 0x10]
push ecx
mov ecx, ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call fcn.005de3c0
mov eax, dword [ebp + 0x18]
dec eax
add esi, 0x10
mov dword [ebp + 0x10], eax
test eax, eax
jle 0x5def49
add edi, 8
mov edx, dword [edi - 8]
xor edx, dword [esi]
mov eax, dword [edi - 4]
xor eax, dword [esi + 4]
mov ecx, dword [esi + 8]
xor ecx, dword [edi]
mov dword [ebp - 0x10], edx
mov edx, dword [edi + 4]
xor edx, dword [esi + 0xc]
mov dword [ebp - 0xc], eax
add edi, 0x10
mov dword [ebp - 8], ecx
lea eax, [edi - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, ebx
mov dword [ebp - 4], edx
call fcn.005de3c0
mov eax, dword [ebp + 0x10]
dec eax
add esi, 0x10
mov dword [ebp + 0x10], eax
test eax, eax
jg 0x5deed0
mov eax, dword [ebp + 0x18]
pop edi
pop esi
shl eax, 7
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edi, eax
test eax, eax
jle 0x5def4c
mov eax, esi
mov esi, dword [ebp + 0x10]
sub eax, esi
mov dword [ebp + 0x10], eax
jmp 0x5def36
mov eax, dword [ebp + 0x10]
push esi
add eax, esi
push eax
mov ecx, ebx
call fcn.005de3c0
dec edi
add esi, 0x10
test edi, edi
jg 0x5def33
mov eax, dword [ebp + 0x18]
pop edi
pop esi
shl eax, 7
pop ebx
mov esp, ebp
pop ebp
ret 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x5df730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi + 0x2c], 0
mov dword [ebp - 4], esi
je 0x5df74e
mov eax, 0xfffffffb
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esi + 0x30]
cmp ecx, 2
je 0x5df768
cmp dword [esi + 0x34], 0
jne 0x5df768
mov eax, 0xfffffffa
pop esi
mov esp, ebp
pop ebp
ret 0x14
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x5df8c0
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x5df8c0
cdq
and edx, 0x7f
push edi
lea edi, [edx + eax]
sar edi, 7
mov eax, ecx
sub eax, 0
mov dword [ebp + 8], edi
je 0x5df893
dec eax
je 0x5df7a7
pop edi
pop ebx
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0x18], 0
je 0x5df7ca
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
jmp 0x5df7e4
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10], edx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp + 0x18], edi
test edi, edi
jle 0x5df86e
mov eax, dword [ebp + 0x10]
lea edi, [ebx + 8]
sub ebx, eax
add ebx, 0xfffffff8
lea esi, [eax + 8]
mov dword [ebp + 0x10], ebx
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 4]
add ebx, esi
push ebx
call fcn.005de790
mov eax, dword [ebp - 0x24]
xor eax, dword [ebp - 0x14]
mov ebx, dword [ebx]
mov ecx, dword [ebp - 0x20]
xor ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
xor dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x18]
xor edx, dword [ebp - 8]
mov dword [esi - 8], eax
mov dword [ebp - 0x24], eax
mov eax, dword [edi - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi - 4], ecx
mov dword [ebp - 0x20], ecx
mov ecx, dword [edi]
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + 4]
dec eax
mov dword [esi + 4], edx
add edi, 0x10
add esi, 0x10
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp + 0x18], eax
test eax, eax
jg 0x5df800
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [eax], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, edi
pop edi
pop ebx
shl eax, 7
pop esi
mov esp, ebp
pop ebp
ret 0x14
test edi, edi
jle 0x5df8b2
mov edx, dword [ebp + 0x10]
push edx
push ebx
mov ecx, esi
call fcn.005de790
add dword [ebp + 0x10], 0x10
dec edi
add ebx, 0x10
test edi, edi
jg 0x5df897
mov edi, dword [ebp + 8]
mov eax, edi
pop edi
pop ebx
shl eax, 7
pop esi
mov esp, ebp
pop ebp
ret 0x14
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x5f3ac0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
lea ecx, [esi + 8]
call fcn.0061c880
test eax, eax
je 0x5f3ad9
mov al, 1
pop esi
pop ebp
ret 0x1c
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x5f3ae7
pop esi
pop ebp
jmp fcn.005a66b0
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x5f3af5
pop esi
pop ebp
jmp fcn.0057c1d0
xor al, al
pop esi
pop ebp
ret 0x1c

Function at 0x5f41c0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x703eb0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea ecx, [esi + 8]
call fcn.00595640
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x5f424f
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x5f41fa
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov dword [esi + 0x64], edx
jmp 0x5f4201
mov dword [esi + 0x64], 0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
movzx ecx, byte [eax + 3]
movzx edx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
push edx
movzx edx, byte [eax]
push ecx
push edx
lea eax, [ebp - 0xcc]
push 0x6ba70c
push eax
call fcn.00629264
add esp, 0x18
lea ecx, [ebp - 0xcc]
push ecx
lea ecx, [esi + 0x38]
call fcn.0053cb20
mov byte [esi + 0x60], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0x38]
call fcn.0053aff0
mov ecx, dword [ebp - 4]
mov byte [esi + 0x60], 0
xor ecx, ebp
pop esi
call fcn.00521602
mov esp, ebp
pop ebp
ret
Function at 0x6005b0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x645a7e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x703eb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0056fc60
xor edi, edi
lea ecx, [esi + 0x20]
mov dword [ebp - 4], edi
call fcn.0055be40
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
mov dword [esi], vtable.Pkcs7.1.0
mov dword [esi + 0x20], vtable.Pkcs7.0
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
call fcn.00555500
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 2
call fcn.00555500
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
Function at 0x605030
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6461fc
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x703eb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], ecx
call fcn.00540000
cmp dword [ebp + 0x18], 3
mov esi, 0x40
jne 0x605088
mov esi, 0x80
lea ecx, [ebp - 0x180]
call fcn.005400f0
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], 0
cmp edi, esi
jle 0x6050d7
mov edx, dword [ebp + 0x18]
lea ecx, [ebp - 0x180]
push ecx
push edx
push edi
push ebx
call fcn.0058dde0
add esp, 0x10
lea ecx, [ebp - 0x180]
call fcn.00595640
mov ebx, eax
mov eax, dword [ebp + 0x18]
push eax
call fcn.0058dd90
mov edi, eax
add esp, 4
cmp edi, esi
jle 0x6050d7
mov edi, esi
push esi
lea ecx, [ebp - 0x94]
push 0
push ecx
call fcn.005236f0
push esi
lea edx, [ebp - 0x118]
push 0
push edx
call fcn.005236f0
push edi
lea eax, [ebp - 0x94]
push ebx
push eax
call fcn.00523380
push edi
lea ecx, [ebp - 0x118]
push ebx
push ecx
call fcn.00523380
add esp, 0x30
xor eax, eax
test esi, esi
jle 0x605135
lea ebx, [ebx]
xor byte [ebp + eax - 0x94], 0x36
xor byte [ebp + eax - 0x118], 0x5c
inc eax
cmp eax, esi
jl 0x605120
lea ecx, [ebp - 0x140]
call fcn.005400f0
push esi
lea edx, [ebp - 0x94]
push edx
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 1
call fcn.00540eb0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x120]
push eax
push ecx
lea ecx, [ebp - 0x140]
call fcn.00540eb0
lea ecx, [ebp - 0x1a0]
call fcn.005400f0
mov edi, dword [ebp + 0x18]
lea edx, [ebp - 0x1a0]
push edx
mov bl, 2
push edi
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], bl
call fcn.0061c880
push eax
lea ecx, [ebp - 0x140]
call fcn.00595640
push eax
call fcn.0058dde0
add esp, 0x10
lea ecx, [ebp - 0x160]
call fcn.005400f0
push esi
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 3
call fcn.00540eb0
lea ecx, [ebp - 0x1a0]
push ecx
lea ecx, [ebp - 0x160]
call fcn.005416f0
mov edx, dword [ebp - 0x11c]
push edx
push edi
lea ecx, [ebp - 0x160]
call fcn.0061c880
push eax
lea ecx, [ebp - 0x160]
call fcn.00595640
push eax
call fcn.0058dde0
add esp, 0x10
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], bl
call fcn.00540840
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 1
call fcn.00540840
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 0
call fcn.00540840
lea ecx, [ebp - 0x180]
mov dword [ebp - 4], 0xffffffff
call fcn.00540840
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret
Function at 0x60bfe0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x20]
mov dword [esi + 0x10], 0x12345678
mov dword [esi + 0x14], 0x23456789
mov dword [esi + 0x18], 0x34567890
xor edi, edi
call fcn.0053acf0
test eax, eax
jle 0x60c06c
jmp 0x60c010
push edi
lea ecx, [esi + 0x20]
call fcn.0053cdd0
mov ecx, dword [esi + 0x10]
movsx eax, al
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x715350]
shr ecx, 8
xor eax, ecx
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x10], eax
movzx eax, al
add eax, dword [esi + 0x14]
inc edi
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x14], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x715350]
mov dword [esi + 0x18], ecx
lea ecx, [esi + 0x20]
call fcn.0053acf0
cmp edi, eax
jl 0x60c010
pop edi
pop esi
pop ebx
ret 4

Function at 0x60c080
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
test ebx, ebx
je 0x60c0f9
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
and eax, 0xfffd
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
sar edx, 8
xor byte [esi + edi], dl
movsx edx, byte [esi + edi]
mov eax, dword [ecx + 0x10]
xor edx, eax
shr eax, 8
and edx, 0xff
mov edx, dword [edx*4 + 0x715350]
xor edx, eax
movzx eax, dl
add eax, dword [ecx + 0x14]
mov dword [ecx + 0x10], edx
mov edx, dword [ecx + 0x18]
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 0x14], eax
shr eax, 0x18
xor eax, edx
and eax, 0xff
shr edx, 8
xor edx, dword [eax*4 + 0x715350]
inc esi
mov dword [ecx + 0x18], edx
cmp esi, ebx
jb 0x60c092
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x60c3c0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x60c43d
push ebx
mov ebx, dword [ebp + 8]
push esi
movsx ebx, byte [edi + ebx]
mov edx, dword [ecx + 0x10]
xor ebx, edx
mov eax, dword [ecx + 0x18]
shr edx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x715350]
xor ebx, edx
movzx edx, bl
add edx, dword [ecx + 0x14]
mov esi, eax
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 0x14], edx
shr edx, 0x18
xor edx, eax
shr eax, 8
mov dword [ecx + 0x10], ebx
mov ebx, dword [ebp + 8]
and edx, 0xff
xor eax, dword [edx*4 + 0x715350]
and esi, 0xfffd
mov dword [ecx + 0x18], eax
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
sar eax, 8
xor byte [edi + ebx], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x60c3d0
pop esi
pop ebx
pop edi
pop ebp
ret 8

Function at 0x60c450
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push eax
mov esi, ecx
call fcn.0060bfe0
xor ebx, ebx
call fcn.006293af
mov ecx, eax
sar ecx, 6
mov byte [ebp + 0x13], cl
test cl, cl
jne 0x60c479
mov byte [ebp + 0x13], al
mov cl, al
mov edi, dword [esi + 0x10]
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x715350]
mov eax, dword [esi + 0x18]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x10], ecx
movzx ecx, cl
add ecx, dword [esi + 0x14]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x14], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x715350]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
sar eax, 8
xor al, byte [ebp + 0x13]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, 0xa
jl 0x60c463
mov ebx, dword [ebp + 8]
mov edi, dword [esi + 0x10]
sar ebx, 0x10
mov eax, dword [esi + 0x18]
movsx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x715350]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x10], ecx
movzx ecx, cl
add ecx, dword [esi + 0x14]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x14], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x715350]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x18], 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 + 8]
mov byte [ecx + 0xa], al
mov edi, dword [esi + 0x10]
sar ebx, 0x18
mov eax, dword [esi + 0x18]
movsx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x715350]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x10], ecx
movzx ecx, cl
add ecx, dword [esi + 0x14]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x14], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x715350]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x18], 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 0xc
Function at 0x615890
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 0x6158aa
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc
cmp dword [ebp + 0x10], 0
jne 0x6158b7
mov dword [ebp + 0x10], 0x400
mov eax, dword [ebp + 8]
push edi
push esi
push eax
lea edi, [ebx + 4]
push edi
call fcn.00523380
add esp, 0xc
cmp esi, 0x80
jae 0x6158f8
mov al, byte [esi + ebx + 3]
mov ecx, edi
movzx edx, byte [ecx]
movzx eax, al
add edx, eax
and edx, 0xff
mov al, byte [edx + 0x6c9be0]
mov byte [edi + esi], al
inc esi
inc ecx
cmp esi, 0x80
jb 0x6158d7
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 + 4]
mov edi, 0xff
sar edi, cl
movzx ecx, byte [esi]
and edi, ecx
mov cl, byte [edi + 0x6c9be0]
mov byte [esi], cl
test eax, eax
je 0x615946
lea esp, [esp]
movzx edi, byte [esi + edx - 1]
dec esi
movzx ecx, cl
xor edi, ecx
dec eax
mov cl, byte [edi + 0x6c9be0]
mov byte [esi], cl
jne 0x615930
mov ecx, 0x3f
lea eax, [ebx + 0x82]
pop edi
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 0x615952
pop esi
mov al, 1
pop ebx
pop ebp
ret 0xc

Function at 0x615db0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 4], ecx
test edx, edx
je 0x615e5f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
lea ebx, [eax + 2]
sub eax, ecx
add eax, 0xfffffffe
mov dword [ebp + 0x14], eax
lea eax, [edx - 1]
push esi
shr eax, 3
push edi
mov edi, dword [ebp + 8]
inc eax
lea esi, [ecx + 2]
mov dword [ebp + 8], eax
movzx ecx, byte [esi - 2]
xor cl, byte [edi]
mov eax, dword [ebp + 0x14]
mov byte [eax + esi], cl
movzx edx, byte [esi - 1]
xor dl, byte [edi + 1]
add eax, esi
mov byte [ebx - 1], dl
movzx ecx, byte [edi + 2]
xor cl, byte [esi]
push eax
mov byte [ebx], cl
movzx edx, byte [esi + 1]
xor dl, byte [edi + 3]
push eax
mov byte [ebx + 1], dl
movzx ecx, byte [esi + 2]
xor cl, byte [edi + 4]
mov byte [ebx + 2], cl
movzx edx, byte [esi + 3]
xor dl, byte [edi + 5]
mov byte [ebx + 3], dl
movzx ecx, byte [esi + 4]
xor cl, byte [edi + 6]
mov byte [ebx + 4], cl
movzx edx, byte [esi + 5]
xor dl, byte [edi + 7]
mov ecx, dword [ebp - 4]
mov byte [ebx + 5], dl
call fcn.00615980
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + esi]
mov dword [edi], ecx
mov edx, dword [eax + esi + 4]
add ebx, 8
add esi, 8
dec dword [ebp + 8]
mov dword [edi + 4], edx
jne 0x615de6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x61cbf0
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 0x61cc0e
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
ret 0xc
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x61cd0c
lea ebx, [ebx]
mov eax, ebx
cmp ebx, 0x15b0
jb 0x61cc2f
mov eax, 0x15b0
sub ebx, eax
mov dword [ebp + 0x10], ebx
cmp eax, 0x10
jb 0x61ccd1
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 0x61cc42
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x61cce0
movzx edx, byte [esi]
add ecx, edx
inc esi
add edi, ecx
dec eax
jne 0x61ccd5
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 0x61cc20
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
pop ebp
ret 0xc