joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004ce1
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x100286d0], 0
mov edi, dword [0x100286c4]
add edi, 0xac6
mov dword [0x100286c4], edi
mov byte [0x100286d4], 0
mov edi, dword [0x100286c8]
add edi, 0x899
mov dword [0x100286c8], edi
mov dword [0x100286cc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10004d6d
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, 0x117c
mov dword [0x100286c4], 0x117c
mov dword [0x100286cc], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x10004d9f
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x100286c8], 0x21f
mov eax, dword [0x100286cc]
add eax, 1
mov dword [0x100286cc], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10004d6d
jmp 0x10004d4a
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x100
add eax, 0xfffff2bb
mov dword [0x100286c8], eax
mov eax, dword [0x100286d0]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + ecx]
add edi, eax
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 0x28], edx
mov edx, ebx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov eax, edi
cdq
mov edi, dword [ebp - 0x28]
idiv edi
mov dword [0x100286d0], edx
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov byte [0x100286d4], bl
mov dword [0x100286c8], 0x19c9
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x100286d4]
mov ecx, dword [0x100286d0]
mov byte [esi + ecx], bl
mov dword [0x100286c8], 0x237e
mov ecx, dword [0x100286cc]
add ecx, 1
mov dword [0x100286cc], ecx
cmp ecx, 0x100
mov dword [ebp - 0x2c], ecx
jge 0x10004d42
mov eax, dword [0x100286c4]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x10004d9f
Function at 0x10004e6d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0xfffff7ea
xor ebx, ebx
mov dword [0x100286cc], 0
mov dword [0x100286d0], 0
mov dword [0x100286d8], 0
mov dword [0x100286c4], 0x1640
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x10004fe7
jmp 0x10004ef1
mov eax, dword [0x100286cc]
mov ecx, dword [0x100286d0]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, 0x100
mov edi, edx
add edi, 1
add ecx, 1
mov dword [ebp - 0x34], eax
mov eax, ecx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x100286cc], edx
mov ecx, dword [ebp - 0x24]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x34]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x3c], edx
cdq
idiv esi
mov dword [0x100286d0], edx
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x3c]
mov cl, byte [ecx + esi]
mov byte [0x100286d4], cl
mov ebx, dword [0x100286c8]
add ebx, 0xfffff1b0
mov dword [0x100286c8], ebx
mov ebx, dword [ebp - 0x24]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x100286d4]
mov edx, dword [0x100286d0]
mov byte [ebx + edx], cl
mov edx, dword [0x100286cc]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x100286d0]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov dword [0x100286c8], 0x494
and ecx, 0xff
mov dword [0x100286d8], ecx
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x38]
mov dl, byte [edx + esi]
xor dl, byte [ebx + ecx]
mov ecx, dword [ebp - 0x20]
mov byte [ecx + esi], dl
mov ecx, dword [0x100286c4]
mov edx, ecx
add edx, 0x126e
mov dword [0x100286c4], edx
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x40], ecx
jne 0x10004eda
mov eax, dword [ebp - 0x40]
add eax, 0xfffff418
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], eax
jmp 0x10004fe7
mov eax, dword [ebp - 0x2c]
mov dword [0x100286c8], eax
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10005156
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [0x100286c4], 0xf07
mov dword [ebp - 0x10], eax
call fcn.10004ff7
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x1000519c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [0x100286c4], 0x1d5b
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x100052b2
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
jmp 0x1000523c
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x100286c4], 0x249e
mov dword [ebp - 0x30], edi
jmp 0x100052b2
mov eax, dword [ebp - 0x40]
mov ecx, eax
mov edx, dword [ebp - 0x44]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x49], bh
mov byte [ebp - 0x4a], cl
je 0x10005281
jmp 0x10005258
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edx
jmp 0x10005211
mov al, byte [ebp - 0x49]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x48]
add edx, 1
mov ah, byte [ebp - 0x4a]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x40], edx
jne 0x10005211
mov al, byte [ebp - 0x4a]
test al, 1
jne 0x100051e9
jmp 0x1000528e
xor eax, eax
mov ecx, dword [ebp - 0x3c]
add ecx, 2
mov edx, dword [ebp - 0x50]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
jb 0x1000523c
mov eax, dword [ebp - 0x30]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10005695
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x100286c4], 0x24bc
mov esi, dword [0x100286c8]
add esi, 0xfffff2ac
mov dword [0x100286c8], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x10005757
mov eax, dword [ebp - 0x34]
mov dword [0x100286c4], 0x761
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.100049db
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x2c], ecx
mov dword [0x100286c4], 0x1e36
mov ecx, dword [ebp - 0x38]
mov dword [edx + 0x40], ecx
cmp ecx, 0
mov dword [ebp - 0x3c], eax
je 0x100057dc
jmp 0x100057bf
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x10006388]
mov dl, byte [eax + 0x10006359]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
jne 0x10005757
lea eax, [ebp - 0x24]
mov dword [0x100286c4], 0x380
mov dword [0x100286c8], 0xffffeaa5
mov dword [ebp - 0x40], eax
call fcn.100053e3
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
call fcn.100054f1
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], ecx
je 0x100057dc
jmp 0x100056ce
mov eax, dword [ebp - 0x38]
add eax, 0x23bb
mov dword [0x100286c4], 0x1327
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
jmp 0x100057dc
mov eax, dword [ebp - 0x3c]
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x4010bf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
jbe 0x4010e7
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
sub ecx, eax
sub edx, eax
push edi
mov edi, dword [ecx + eax]
xor edi, dword [eax]
mov dword [edx + eax], edi
add eax, 4
dec esi
jne 0x4010d8
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x4093bb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
and dword [ebp + 8], 0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
shr eax, 2
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], eax
je 0x409440
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
sub ecx, eax
push edi
lea esi, [eax + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edi, dword [eax + ecx*4]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + esi]
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x18]
push eax
mov dword [ebp + 0x18], edi
mov dword [ebp - 4], ebx
call fcn.004090a9
mov eax, dword [ebp + 0x18]
xor eax, dword [ebp - 8]
add dword [ebp + 8], 2
mov dword [esi - 4], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi], eax
mov eax, dword [ebp + 8]
add esi, 8
cmp eax, dword [ebp - 0x14]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], ebx
jb 0x4093ef
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409442
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40952e
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40952e
push 4
mov ecx, 0x420398
pop edx
mov eax, esi
sub ecx, esi
mov dword [ebp + 8], 0x12
push ebx
mov ebx, dword [ecx + eax]
mov dword [eax], ebx
add eax, edx
dec dword [ebp + 8]
jne 0x40947c
mov eax, 0x4203e0
lea ecx, [esi + 0x48]
mov dword [ebp + 8], edx
mov edx, 0x100
mov ebx, dword [eax]
mov dword [ecx], ebx
add eax, 4
add ecx, 4
dec edx
jne 0x409498
dec dword [ebp + 8]
jne 0x409493
xor edx, edx
mov dword [ebp - 4], 0x12
and dword [ebp + 8], 0
movzx ecx, dx
mov al, byte [ecx + edi]
mov byte [ebp + 0xb], al
lea eax, [ecx + 1]
cdq
push 0x20
pop ebx
idiv ebx
push ebx
mov al, byte [edx + edi]
mov byte [ebp + 0xa], al
lea eax, [ecx + 2]
cdq
idiv ebx
mov al, byte [edx + edi]
mov byte [ebp + 9], al
lea eax, [ecx + 3]
cdq
idiv ebx
mov al, byte [edx + edi]
mov byte [ebp + 8], al
mov eax, dword [ebp + 8]
xor dword [esi], eax
lea eax, [ecx + 4]
cdq
pop ecx
idiv ecx
add esi, 4
dec dword [ebp - 4]
jne 0x4094b3
mov esi, dword [ebp + 0xc]
mov edi, 0x209
pop ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00408d97
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
add esp, 0xc
add esi, 8
dec edi
jne 0x409505
xor eax, eax
inc eax
jmp 0x409530
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x409534
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x20
mov edi, dword [ecx]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, edi
mov ecx, eax
shr ecx, 0x10
movzx edx, ch
xor ebx, ebx
mov bh, byte [edx + 0x4216e0]
movzx ecx, cl
add dword [ebp - 4], 4
xor edx, edx
mov bl, byte [ecx + 0x4215e0]
movzx ecx, ah
mov dh, byte [ecx + 0x4214e0]
movzx eax, al
movzx eax, byte [eax + 0x4213e0]
movzx ecx, dx
shl ebx, 0x10
or ebx, ecx
or ebx, eax
mov ecx, ebx
mov eax, ecx
shr eax, 0x15
shl ecx, 0xb
or eax, ecx
xor eax, dword [esi]
dec dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [esi], edi
mov dword [ecx], eax
jne 0x40954f
mov edx, dword [esi]
pop edi
mov dword [ecx], edx
mov dword [esi], eax
pop esi
pop ebx
leave
ret

Function at 0x4095b9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push edi
xor edi, edi
shr eax, 2
mov dword [ebp + 8], ecx
mov dword [ebp + 0x18], eax
je 0x409623
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
lea esi, [eax + 4]
sub ebx, eax
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00409534
mov ecx, dword [esi - 4]
mov eax, ecx
xor eax, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx + edi*4], eax
mov ecx, dword [esi]
mov eax, ecx
xor eax, dword [ebp - 4]
add esp, 0xc
inc edi
mov dword [ebx + esi], eax
inc edi
add esi, 8
cmp edi, dword [ebp + 0x18]
mov dword [ebp - 4], ecx
jb 0x4095e6
pop esi
pop ebx
pop edi
leave
ret
Function at 0x40975b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [ebp + 0x18]
cmp edx, 0x10
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
jae 0x409795
push edx
push dword [ebp + 0x14]
lea eax, [ebp - 0x20]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.004096e2
add esp, 0x14
leave
ret
shr edx, 4
je 0x40982f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp + 8], eax
sub dword [ebp + 8], ecx
push edi
lea edi, [eax + 0xc]
lea esi, [ecx + 8]
mov dword [ebp + 0x18], edx
mov eax, dword [esi - 4]
push dword [ebp + 0xc]
mov ebx, dword [esi - 8]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x3c], eax
mov eax, dword [esi]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x40]
push eax
push eax
mov dword [ebp - 0x40], ebx
call fcn.00408006
mov eax, dword [ebp - 0x40]
xor eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
mov dword [edi - 0xc], eax
mov eax, dword [ebp - 0x3c]
xor eax, dword [ebp - 0x1c]
add esp, 0xc
mov dword [edi - 8], eax
mov eax, dword [ebp - 0x38]
xor eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], ebx
mov dword [ecx + esi], eax
mov eax, dword [ebp - 0x34]
xor eax, dword [ebp - 0x14]
add esi, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x54]
add edi, 0x10
dec dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
jne 0x4097b6
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40aef3
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
xor eax, eax
pop ebp
ret
Function at 0x40b5f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x40b632
push edi
mov eax, dword [ebp + 8]
lea edx, [eax + esi*4]
mov ecx, dword [edx]
mov eax, ecx
shl ecx, 0x10
shr eax, 0x10
or eax, ecx
mov ecx, eax
shr ecx, 8
mov edi, eax
shl edi, 8
xor ecx, edi
and ecx, 0xff00ff
shl eax, 8
xor ecx, eax
inc esi
cmp esi, dword [ebp + 0xc]
mov dword [edx], ecx
jl 0x40b600
pop edi
pop esi
pop ebp
ret

Function at 0x40b635
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
push 0x40
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x24], ecx
mov dword [eax + 0x20], ecx
push ecx
add eax, 0x28
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
xor eax, eax
pop ebp
ret

Function at 0x40ba99
Capabilities:
Encode data using xor
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp dword [0x421820], edi
je 0x40bbe9
push ebx
mov dword [0x421820], edi
push esi
mov bl, byte [edi + 0x421828]
mov al, bl
and al, 2
neg al
sbb al, al
mov byte [ebp - 1], bl
mov dl, bl
mov esi, edi
and eax, 0xb4
and byte [ebp - 1], 1
sete cl
dec cl
shr dl, 2
and ecx, 0x5a
xor dl, cl
xor dl, al
xor dl, bl
mov byte [ebp - 3], cl
mov cl, bl
shr cl, 1
xor cl, bl
shr cl, 1
cmp byte [ebp - 1], 0
sete bl
dec bl
and ebx, 0xb4
xor cl, bl
xor cl, byte [ebp - 3]
mov bl, byte [edi + 0x421928]
xor cl, al
xor cl, byte [edi + 0x421828]
mov al, bl
and al, 2
neg al
sbb al, al
mov byte [ebp - 1], bl
and eax, 0xb4
and byte [ebp - 1], 1
mov byte [ebp - 3], al
sete al
dec al
and eax, 0x5a
mov byte [ebp - 2], al
mov al, bl
shr al, 2
xor al, byte [ebp - 2]
xor al, byte [ebp - 3]
xor al, bl
mov byte [ebp - 7], al
mov al, bl
shr al, 1
xor al, bl
shr al, 1
cmp byte [ebp - 1], 0
sete bl
dec bl
and ebx, 0xb4
xor al, bl
xor al, byte [ebp - 2]
mov bl, byte [edi + 0x421928]
xor al, byte [ebp - 3]
mov byte [ebp - 0xc], bl
xor al, bl
mov bl, byte [ebp - 7]
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], al
mov byte [ebp - 9], al
mov ebx, dword [ebp - 0xc]
shl esi, 2
mov dword [esi + 0x421a90], ebx
mov bl, byte [edi + 0x421828]
mov byte [ebp - 9], bl
mov byte [ebp - 0xc], cl
mov byte [ebp - 0xb], cl
mov byte [ebp - 0xa], dl
mov ebx, dword [ebp - 0xc]
mov dword [esi + 0x421e90], ebx
mov bl, byte [ebp - 7]
mov byte [ebp - 0xc], bl
mov bl, byte [edi + 0x421928]
mov byte [ebp - 0xb], al
mov byte [ebp - 9], al
mov byte [ebp - 0xa], bl
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x422290], eax
mov al, byte [edi + 0x421828]
mov byte [ebp - 0xc], dl
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], cl
mov byte [ebp - 9], dl
mov eax, dword [ebp - 0xc]
inc edi
cmp edi, 0x100
mov dword [esi + 0x422690], eax
jl 0x40bab6
pop esi
pop ebx
pop edi
leave
ret
Function at 0x40bbec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp - 4], 0
mov eax, dword [ebp + 8]
jne 0x40bc04
mov eax, dword [ebp + 0xc]
push 4
xor edi, eax
pop eax
mov ecx, edi
shr ecx, 0x18
mov bl, cl
and bl, 0x80
neg bl
movzx edx, cl
lea esi, [edx + edx]
sbb ebx, ebx
and ebx, 0x14d
xor ebx, esi
and ebx, 0xff
and cl, 1
neg cl
mov esi, ebx
mov ebx, edx
sbb ecx, ecx
shr ebx, 1
and ecx, 0xa6
xor ecx, ebx
xor ecx, esi
mov ebx, ecx
shl ebx, 8
xor ebx, esi
shl ebx, 8
xor ebx, ecx
xor ebx, edi
shl ebx, 8
xor ebx, edx
dec eax
mov edi, ebx
jne 0x40bc09
inc dword [ebp - 4]
cmp dword [ebp - 4], 2
jl 0x40bbf8
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d7ba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
xor eax, eax
mov edx, dword [ebp + 8]
mov ecx, eax
and ecx, 1
mov ecx, dword [edx + ecx*4]
mov dword [ebp + eax*4 - 0x10], ecx
inc eax
cmp eax, 4
jb 0x40d7c2
mov eax, dword [ebp + 0x18]
cmp eax, 0x10
jae 0x40d7f7
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.0040d743
add esp, 0x14
leave
ret
shr eax, 4
je 0x40d85b
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
sub edi, esi
mov dword [ebp + 0x18], eax
lea edx, [edi + esi]
xor ecx, ecx
mov eax, dword [edx]
mov dword [ebp + ecx - 0x30], eax
mov dword [ebp + ecx - 0x20], eax
add ecx, 4
add edx, 4
cmp ecx, 0x10
jb 0x40d80e
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call fcn.0040ce24
pop ecx
pop ecx
mov edx, esi
xor eax, eax
mov esi, dword [ebp + eax - 0x20]
lea ecx, [ebp + eax - 0x10]
xor esi, dword [ecx]
add eax, 4
mov dword [edx], esi
mov esi, dword [ebp + eax - 0x34]
add edx, 4
cmp eax, 0x10
mov dword [ecx], esi
jb 0x40d835
dec dword [ebp + 0x18]
mov esi, edx
jne 0x40d809
pop edi
pop esi
leave
ret
Function at 0x40f7fb
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x4117ab
call fcn.00410020
sub esp, 0x30
push esi
mov esi, ecx
mov ecx, dword [esi + 0xa8]
lea eax, [ebp - 0x3c]
push eax
call sub.pk77.dll_Ordinal_4851
mov eax, dword [eax + 4]
and dword [ebp - 4], 0
test eax, eax
jne 0x40f821
mov eax, dword [sym.imp.pk77.dll_Ordinal_5770]
mov eax, dword [eax]
jmp 0x40f824
add eax, 4
push eax
push str.attack_has_found_message
call sub.pk77.dll_Ordinal_3412
push eax
call sub.pk77.dll_Ordinal_892
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x30]
push eax
call sub.pk77.dll_Ordinal_9960
add esp, 0xc
mov ecx, dword [esi + 0x8b]
mov edx, dword [ecx + 4]
mov edx, dword [edx + 4]
lea ecx, [edx + ecx + 4]
mov edx, dword [ecx]
push eax
mov byte [ebp - 4], 1
call dword [edx + 0x30]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00401000
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401000
push 1
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.0040f205
mov ecx, dword [esi + 0x8b]
mov edx, dword [ecx + 4]
mov edx, dword [edx + 4]
lea ecx, [edx + ecx + 4]
mov edx, dword [ecx]
push eax
mov dword [ebp - 4], 2
call dword [edx + 0x30]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401000
mov ecx, dword [esi + 0xa8]
lea eax, [ebp - 0x18]
push eax
call sub.pk77.dll_Ordinal_1700
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 3
call sub.pk77.dll_Ordinal_5641
mov eax, dword [esi + 0x8b]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 4]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x24]
push edx
lea edx, [esi + 0x9b]
lea ecx, [ecx + eax + 4]
mov eax, dword [ecx]
push edx
push 0
mov byte [ebp - 4], 4
call dword [eax + 0x28]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.00401000
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call sub.pk77.dll_Ordinal_5641
mov esi, dword [esi + 0x8b]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 5
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
push 0x64
lea ecx, [eax + esi + 4]
call sub.pk77.dll_Ordinal_2186
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.00401000
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.pk77.dll_Ordinal_8615
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret