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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x61c5be.0
jmp dword [ecx*4 + 0x61c557]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x61c589
sub dl, 8
je 0x61c598
jmp case.0x61c5be.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x61c1f0
jmp case.0x61c5be.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x61c244
jmp case.0x61c5be.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x61c5be.0
movzx ecx, byte [ecx + 0x61c5c5]
jmp dword [ecx*4 + 0x61c5d6]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x61c2e4
jmp case.0x61c5be.0
cmp dl, 3
jne 0x61c603
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x61c33c
jmp case.0x61c5be.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x61c2f8
jmp case.0x61c5be.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x61c380
jmp case.0x61c5be.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x61c62e
sub dl, 8
je 0x61c63a
jmp case.0x61c5be.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x61c3ac
jmp case.0x61c5be.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x61c410
jmp case.0x61c5be.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x61c659
sub dl, 8
je 0x61c665
jmp case.0x61c5be.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x61c4c0
jmp case.0x61c5be.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x61c4e8
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x10], edx
mov esi, ecx
test esi, esi
jb 0x61c707
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0061b72c
test eax, eax
je 0x61c707
mov eax, ebx
call fcn.0061c710
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x61c6a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x61c710
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x61c741
dec al
je 0x61c77c
dec al
je 0x61c7c1
dec al
je 0x61c82a
jmp 0x61c8b4
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x61c8b4
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x61c751
jmp 0x61c8b4
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x61c8b4
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x61c78c
jmp 0x61c8b4
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x61c8b4
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x61c7f0
xor ebp, ebp
jmp 0x61c800
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x61c809
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x61c7d1
jmp 0x61c8b4
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x61c8b4
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x61c883
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00619870
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x61c83e
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x62145c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff800
push ebx
push esi
mov esi, edx
mov ebx, eax
push 0x400
lea eax, [ebp - 0x800]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
lea edx, [ebp - 0x800]
mov eax, esi
call fcn.004092f8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x621cb4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov edi, dword [ebx + 4]
test edi, edi
je 0x621cec
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push edi
call sub.user32.dll_GetWindowTextW
mov ecx, eax
lea edx, [ebp - 0x200]
mov eax, esi
call fcn.004092f8
lea eax, [ebx + 0x30]
mov edx, dword [esi]
call fcn.00409550
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cefe8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x44], eax
xor eax, eax
xor esi, esi
mov dword [ebp - 0x4c], 0x18
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x40], 0x40
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
push 0x20
stosd dword es:[edi], eax
push 1
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x100020
lea eax, [ebp - 4]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
call dword [0x10a14]
push dword [ebp - 4]
lea eax, [ebp - 0x4c]
push 0x1000000
push 0x10
push esi
push eax
push 0xf001f
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x44], esi
call dword [0x10a10]
push 4
push 0x100000
push 1
lea eax, [ebp - 0x14]
push eax
push esi
push 0x3e8
push esi
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [0x10a0c]
push dword [ebp - 4]
call dword [0x10a08]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
mov esi, dword [ecx + eax + 0x78]
push dword [ebp + 8]
add esi, eax
mov edi, dword [esi + 0x1c]
mov ebx, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
add ecx, eax
mov dword [ebp - 0xc], eax
add edi, eax
add ebx, eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x18], ecx
call dword [0x10a04]
and dword [ebp + 0xc], 0
cmp dword [esi + 0x14], 0
jbe 0x4cf109
mov eax, dword [ebp + 0xc]
mov eax, dword [ebx + eax*4]
add eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [0x10a04]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + ecx*2]
add eax, dword [ebp - 0x1c]
push 1
mov eax, dword [edi + eax*4 - 4]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [0x10a00]
test eax, eax
je 0x4cf11d
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 0x14]
jb 0x4cf0bf
xor esi, esi
push dword [ebp - 0x10]
call dword [0x10a08]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
mov esi, dword [ebp + 8]
jmp 0x4cf10b
Function at 0x4d298a
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013cc0f
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x101933d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
call fcn.004ee29a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4d29cc
push 0x80004005
call fcn.004d680a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
call fcn.004ee29a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4d29fb
push 0x80004005
call fcn.004d680a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 4], eax
mov byte [ebp - 4], 1
call fcn.004ee29a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4d2a28
push 0x80004005
call fcn.004d680a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 8], eax
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 2
call fcn.004ee793
mov byte [ebp - 4], 3
call fcn.004ee29a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4d2a61
push 0x80004005
call fcn.004d680a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], 4
call fcn.004ee29a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4d2a8e
push 0x80004005
call fcn.004d680a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x30], eax
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 5
call fcn.005a3d96
lea ecx, [esi + 0xc]
call fcn.004ee7ba
push 0
push 0x10169961
lea ecx, [esi + 0x2c]
call fcn.004d669a
push 0xb
push 0x10169798
lea ecx, [esi + 0x30]
call fcn.004d669a
push 0x2f
push 0x101697a4
lea ecx, [esi + 8]
call fcn.004d669a
push 0x71
push 0x101697d8
lea ecx, [esi + 4]
call fcn.004d669a
push 0xb
push 0x1016984c
mov ecx, esi
call fcn.004d669a
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 4
Function at 0x4d970a
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013e2e0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x101933d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x14], esi
mov dword [esi + 0x14], ebx
mov dword [ebp - 4], 2
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x4d9754
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov dword [esi], 0x1016a444
mov dword [esi + 4], 0x1016a514
mov dword [esi + 0x24], 0xffffffff
mov byte [esi + 0x28], bl
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x18], 0x1016a29c
mov dword [esi + 0x1c], 0x1016a354
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005de871
mov esp, ebp
pop ebp
ret 4
Function at 0x4db45a
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1013cf2b
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x101933d0]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [0x101933d0]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, ecx
push 0
push 0x10169961
mov ecx, ebx
mov dword [esp + 0x20], esi
call fcn.004d669a
mov eax, esi
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4db4ba
sub eax, esi
lea esi, [eax + 1]
push esi
mov dword [esp + 0x18], eax
call fcn.004ecc2e
push esi
mov edi, eax
push 0
push edi
call fcn.005e12fa
mov eax, dword [esp + 0x28]
push esi
push eax
push edi
call fcn.005e4eba
xor esi, esi
mov eax, 0x10
lea ecx, [esp + 0x48]
lea edx, [esp + 0x98]
add esp, 0x1c
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x74], eax
mov byte [esp + 0x6d], 1
mov dword [esp + 0x78], ecx
mov dword [esp + 0xc4], eax
mov byte [esp + 0xbd], 1
mov dword [esp + 0xc8], edx
mov dword [esp + 0x7c], 0x67452301
mov dword [esp + 0x80], 0xefcdab89
mov dword [esp + 0x84], 0x98badcfe
mov dword [esp + 0x88], 0x10325476
mov dword [esp + 0x1c], 0x1016a234
mov eax, dword [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0xf8], 2
call dword [0x1016a240]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x14]
lea ecx, [esp + 0xd0]
push ecx
lea ecx, [esp + 0x20]
call eax
mov edi, edi
movzx ecx, byte [esp + esi + 0xd0]
push ecx
push 0x1016a534
mov edi, ebx
call fcn.004d59fa
inc esi
add esp, 8
cmp esi, 0x10
jl 0x4db58a
mov eax, dword [ebx]
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x4db5bb
push 0x80070057
call fcn.004d680a
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or edx, eax
jge 0x4db5d4
push esi
mov ecx, ebx
call fcn.004d65ca
mov eax, dword [ebx]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.005dfd2a
add esp, 8
cmp eax, 0x50
ja 0x4db5fb
movzx edx, byte [eax + 0x10009ce8]
jmp dword [edx*4 + 0x10009cd8]
call fcn.004edb45
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x4db5b1
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
mov byte [esi + eax], 0
mov edi, dword [esp + 0xc8]
lea ecx, [esp + 0x7c]
cmp edi, ecx
jne 0x4db62a
mov ecx, dword [esp + 0xc4]
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x78]
lea edx, [esp + 0x2c]
cmp edi, edx
jne 0x4db63e
mov ecx, dword [esp + 0x74]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.005de871
mov esp, ebp
pop ebp
ret
Function at 0x4dfe1a
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
call edx
mov edi, dword [esp + 0x2c]
mov ebp, eax
mov eax, dword [esp + 0x38]
mov ecx, eax
and cl, 3
movzx ecx, cl
neg ecx
sbb ecx, ecx
mov esi, dword [esp + 0x28]
not ecx
and ecx, ebp
mov edx, edi
neg edx
sbb edx, edx
and edx, ebp
mov dword [esp + 0x10], edx
mov edx, eax
and dl, 2
movzx edx, dl
neg edx
sbb edx, edx
not edx
and edx, ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
test al, 8
je 0x4dfeae
mov eax, dword [esp + 0x34]
mov ebx, eax
sub ebx, ebp
add esi, ebx
mov ebx, eax
sub ebx, ebp
add edi, ebx
mov ebx, dword [esp + 0x30]
sub eax, ebp
add ebx, eax
mov eax, dword [esp + 0x10]
neg eax
neg ecx
neg edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
jmp 0x4dfeb2
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
jb 0x4dff95
mov ecx, eax
and ecx, 4
and eax, 1
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], eax
jmp 0x4dfed4
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4dff4c
mov ecx, ebp
shr ecx, 2
xor eax, eax
test ecx, ecx
je 0x4dff0c
mov edx, edi
mov edi, ebx
sub edx, esi
mov eax, esi
sub edi, esi
mov dword [esp + 0x28], ecx
mov ebx, dword [edx + eax]
xor ebx, dword [eax]
add eax, 4
dec ecx
mov dword [edi + eax - 4], ebx
jne 0x4dfef1
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add eax, eax
add eax, eax
mov ecx, ebp
sub ecx, eax
je 0x4dff46
lea edx, [eax + ebx]
mov dword [esp + 0x30], edx
lea edx, [eax + edi]
add eax, esi
test ecx, ecx
je 0x4dff46
mov edi, dword [esp + 0x30]
sub edx, eax
sub edi, eax
mov dword [esp + 0x30], ecx
mov cl, byte [edx + eax]
xor cl, byte [eax]
inc eax
dec dword [esp + 0x30]
mov byte [edi + eax - 1], cl
jne 0x4dff32
mov edi, dword [esp + 0x2c]
push ebx
push 0
push ebx
jmp 0x4dff4f
push ebx
push edi
push esi
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp dword [esp + 0x20], 0
je 0x4dff65
inc byte [esi + ebp - 1]
mov eax, dword [esp + 0x34]
add ebx, dword [esp + 0x1c]
add edi, dword [esp + 0x10]
add esi, dword [esp + 0x18]
sub eax, ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], eax
cmp eax, ebp
jae 0x4dfed0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x14
ret 0x14
Function at 0x4e3dca
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1013c888
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x101933d0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov eax, dword [0x101933d0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x4e3f12
cmp byte [edi + 0x49], 0
je 0x4e3f12
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x4e3f05
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x14], 0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 8
cmp ecx, 0x10
jae 0x4e3e4c
lea eax, [esp + 0x14]
mov byte [eax + 8], 0
mov dword [esp + 0x3c], 0
lea ebx, [edi + 0x4c]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
mov edx, eax
cmp ebp, 0x10
jae 0x4e3e70
lea edx, [esp + 0x14]
mov eax, edx
add edx, dword [esp + 0x24]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebp, [esp + 0x10]
push ebp
push edx
push eax
mov eax, dword [esi + 0x18]
push ebx
call eax
sub eax, 0
je 0x4e3e99
dec eax
je 0x4e3e9d
sub eax, 2
lea ecx, [esp + 0x14]
jne 0x4e3f00
jmp 0x4e3f0d
mov byte [edi + 0x49], 0
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov ecx, eax
cmp ebp, 0x10
jae 0x4e3eb0
lea ecx, [esp + 0x14]
mov esi, dword [esp + 0x10]
sub esi, ecx
je 0x4e3edd
cmp ebp, 0x10
jae 0x4e3ec1
lea eax, [esp + 0x14]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.005e3bcc
add esp, 0x10
cmp esi, eax
jne 0x4e3efc
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
cmp byte [edi + 0x49], 0
je 0x4e3f09
test esi, esi
jne 0x4e3e63
push esi
push 8
lea esi, [esp + 0x1c]
call fcn.004dc76a
jmp 0x4e3e5b
lea ecx, [esp + 0x14]
call fcn.004d606a
xor al, al
jmp 0x4e3f14
lea ecx, [esp + 0x14]
call fcn.004d606a
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005de871
add esp, 0x30
ret

Function at 0x4e6c2a
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
jmp 0x4e6c3a
movzx edx, byte [esi + 0x1016b560]
mov eax, edx
shr eax, 7
mov ecx, eax
imul eax, eax, 0x11b
imul ecx, ecx, 0x1b000000
mov ebx, edx
shl ebx, 0x19
xor ecx, ebx
mov ebx, edx
shl ebx, 8
or ebx, edx
shl ebx, 8
or ecx, ebx
lea ebx, [edx + edx]
xor eax, ebx
xor eax, edx
or eax, ecx
xor edx, edx
xor ebx, ebx
or edx, ecx
or eax, ebx
mov dword [esi*8 + 0x1019d9d0], edx
mov dword [esi*8 + 0x1019d9d4], eax
inc esi
cmp esi, 0x100
jl 0x4e6c3a
mov dword [0x1019e1d8], edi
mov dword [0x1019e1dc], edi
mov dword [0x1019e1d0], edi
mov dword [0x1019e1d4], edi
pop edi
pop esi
mov byte [0x101a32c0], 1
pop ebx
ret
Function at 0x4e6cba
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
xor eax, eax
push esi
mov dword [esp + 0x14], eax
push edi
lea ecx, [ecx]
movzx eax, byte [eax + 0x1016b660]
mov ebp, eax
shr ebp, 7
mov dword [esp + 0x1c], ebp
imul ebp, ebp, 0x1b000000
mov ecx, eax
shr ecx, 6
mov esi, ecx
and ecx, 1
mov dword [esp + 0x10], ecx
lea ebx, [eax + eax]
xor ebx, eax
lea ecx, [ebx + ebx]
xor ecx, eax
shl ecx, 0x19
xor ecx, ebp
and esi, 2
mov dword [esp + 0x14], esi
mov edi, eax
shr edi, 5
mov edx, edi
mov esi, edi
and edi, 1
mov ebp, edi
imul ebp, ebp, 0x1b000000
xor ecx, ebp
and esi, 2
mov ebp, esi
imul ebp, ebp, 0x1b000000
xor ecx, ebp
mov ebp, dword [esp + 0x10]
imul ebp, ebp, 0x1b000000
xor ecx, ebp
mov ebp, dword [esp + 0x14]
imul ebp, ebp, 0x1b000000
xor ecx, ebp
and edx, 4
mov ebp, edx
imul ebp, ebp, 0x1b000000
xor ecx, ebp
lea ebp, [ebx*4]
xor ebp, eax
shl ebp, 8
mov ebx, edi
imul ebx, ebx, 0x11b00
xor ebp, ebx
mov ebx, esi
imul ebx, ebx, 0x11b00
xor ebp, ebx
mov ebx, dword [esp + 0x10]
imul ebx, ebx, 0x11b00
xor ebp, ebx
mov ebx, dword [esp + 0x14]
imul ebx, ebx, 0x11b00
xor ebp, ebx
mov ebx, edx
imul ebx, ebx, 0x11b00
xor ebp, ebx
or ecx, ebp
mov ebp, edi
imul edi, edi, 0x11b
imul ebp, ebp, 0x11b0000
lea ebx, [eax*8]
xor ebx, eax
shl ebx, 0x10
xor ebx, ebp
mov ebp, esi
imul ebp, ebp, 0x11b0000
xor ebx, ebp
mov ebp, edx
imul ebp, ebp, 0x11b0000
xor ebx, ebp
or ecx, ebx
mov ebx, dword [esp + 0x1c]
imul ebx, ebx, 0x11b
lea ebp, [eax*4]
xor ebp, eax
add ebp, ebp
xor ebp, ebx
xor ebp, edi
imul esi, esi, 0x11b
imul edx, edx, 0x11b
xor ebp, esi
xor ebp, edx
xor ebp, eax
or eax, ecx
or ebp, ecx
xor edx, edx
or edx, eax
mov eax, dword [esp + 0x18]
xor ecx, ecx
or ebp, ecx
mov dword [eax*8 + 0x1019d1a8], edx
mov dword [eax*8 + 0x1019d1ac], ebp
inc eax
mov dword [esp + 0x18], eax
cmp eax, 0x100
jl 0x4e6cca
pop edi
pop esi
pop ebp
mov byte [0x101a32c1], 1
pop ebx
add esp, 0x10
ret

Function at 0x4e836a
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
movdqa xmm0, xmmword [eax]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
movdqa xmm1, xmmword [edi]
lea edx, [esi - 1]
pxor xmm0, xmm1
movdqa xmmword [eax], xmm0
cmp edx, 1
jbe 0x4e83c1
add edx, 0xfffffffe
shr edx, 1
lea ecx, [edi + 0x10]
inc edx
movdqa xmm1, xmmword [ecx]
movdqa xmm0, xmmword [eax]
aesenc xmm0, xmm1
movdqa xmmword [eax], xmm0
movdqa xmm1, xmmword [ecx + 0x10]
add ecx, 0x20
dec edx
aesenc xmm0, xmm1
movdqa xmmword [eax], xmm0
jne 0x4e839c
movdqa xmm0, xmmword [eax]
add esi, esi
movdqa xmm1, xmmword [edi + esi*8 - 0x10]
lea ecx, [edi + esi*8]
aesenc xmm0, xmm1
movdqa xmmword [eax], xmm0
movdqa xmm1, xmmword [ecx]
pop edi
aesenclast xmm0, xmm1
movdqa xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
ret