joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b7b84
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
lea eax, [ebp - 0xd8]
push eax
call fcn.004b64a0
pop ecx
lea edx, [ebp - 0xd8]
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b64b7
add esp, 0xc
push 0xa0
lea ecx, [ebp - 0xd8]
push ecx
lea eax, [ebp - 0x178]
push eax
call fcn.004b49e0
add esp, 0xc
lea edx, [ebp - 0x178]
push edx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004b6552
add esp, 0xc
mov eax, dword [ebp + 0x20]
dec eax
mov ecx, 0x14
xor edx, edx
div ecx
inc eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x4b7d18
push 0x14
push 0
lea ecx, [ebp - 0x38]
push ecx
call fcn.004b49cc
add esp, 0xc
push 0xa0
lea eax, [ebp - 0x178]
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.004b49e0
add esp, 0xc
mov ecx, dword [ebp - 4]
inc ecx
shr ecx, 0x18
mov byte [ebp - 0x24], cl
mov eax, dword [ebp - 4]
inc eax
shr eax, 0x10
mov byte [ebp - 0x23], al
mov edx, dword [ebp - 4]
inc edx
shr edx, 8
mov byte [ebp - 0x22], dl
mov cl, byte [ebp - 4]
inc ecx
mov byte [ebp - 0x21], cl
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 4
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x18]
jae 0x4b7cd2
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0xc]
lea eax, [ebp - 0x24]
push eax
call fcn.004b6552
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x14
lea ecx, [ebp - 0x24]
push ecx
call fcn.004b661e
add esp, 0xc
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov cl, byte [ebp + edx - 0x24]
mov eax, dword [ebp - 0xc]
xor byte [ebp + eax - 0x38], cl
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x14
jb 0x4b7c95
push 0xa0
lea edx, [ebp - 0xd8]
push edx
lea ecx, [ebp - 0x218]
push ecx
call fcn.004b49e0
add esp, 0xc
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x18]
jb 0x4b7c65
xor edx, edx
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 4]
shl ecx, 2
lea ecx, [ecx + ecx*4]
mov dword [ebp - 0xc], ecx
jmp 0x4b7cfb
mov eax, dword [ebp - 8]
mov dl, byte [ebp + eax - 0x38]
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0xc]
mov byte [ecx + eax], dl
inc dword [ebp - 8]
inc dword [ebp - 0xc]
cmp dword [ebp - 8], 0x14
jae 0x4b7d09
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0x20]
jb 0x4b7ce5
inc dword [ebp - 4]
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x4b7c01
mov esp, ebp
pop ebp
ret
Function at 0x4baddc
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040691c
xor eax, eax
push ebp
push 0x4ba2d8
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [esi + 4]
mov word [ebx + 6], ax
movzx eax, word [esi + 6]
mov word [ebx + 8], ax
movzx eax, word [esi + 8]
mov word [ebx + 0xa], ax
movzx eax, word [esi + 0xa]
mov word [ebx + 0x64], ax
mov eax, dword [esi + 0xc]
call fcn.004ba554
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
movzx eax, word [esi + 0x20]
mov word [ebx + 0x22], ax
movzx eax, word [esi + 0x22]
mov word [ebx + 0x24], ax
movzx eax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004b8c7c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004bbc2c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004b8c20
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004bbca8
lea eax, [ebx + 0x50]
call fcn.00405d14
mov byte [ebx + 0x54], 0
mov byte [ebx + 0x56], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ba2df
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040692c
ret
Function at 0x4baee8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040691c
xor eax, eax
push ebp
push 0x4ba3f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 6], 0
movzx eax, word [esi + 4]
mov word [ebx + 8], ax
movzx eax, word [esi + 6]
mov word [ebx + 0xa], ax
movzx eax, word [esi + 8]
mov word [ebx + 0x64], ax
mov eax, dword [esi + 0xa]
call fcn.004ba554
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
movzx eax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x4bafb7
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004b8c7c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004bbc2c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004b8c20
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004bbca8
jmp 0x4bafc9
xor edx, edx
mov eax, ebx
call fcn.004bbc2c
xor edx, edx
mov eax, ebx
call fcn.004bbca8
lea eax, [ebx + 0x50]
call fcn.00405d14
mov byte [ebx + 0x54], 0
mov byte [ebx + 0x56], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ba3fb
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040692c
ret

Function at 0x4c86a4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x170]
mov edx, ebx
mov eax, edi
call fcn.004c8940
mov esi, eax
mov dword [edi + 0x170], esi
and esi, 0xff
add dword [edi + 0x174], esi
imul esi, dword [edi + 0x174], 0x8088405
inc esi
mov dword [edi + 0x174], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x178]
mov eax, edi
call fcn.004c8940
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret

Function at 0x4c8718
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [esi + 0xc0]
cmp byte [eax + 0x4c], 0
jne 0x4c874c
mov edi, ecx
dec edi
test edi, edi
jl 0x4c875d
inc edi
mov eax, esi
call fcn.004c86fc
xor byte [ebx], al
movzx edx, byte [ebx]
mov eax, esi
call fcn.004c86a4
inc ebx
dec edi
jne 0x4c8733
jmp 0x4c875d
lea eax, [esi + 0x3bc]
push eax
push ecx
push ebx
call fcn.004b5160
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x4c970c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c8cfd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x4c98b9
mov eax, dword [ebp - 4]
call fcn.004cb054
cmp ebx, eax
jge 0x4c98b9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x11c]
mov edx, ebx
call fcn.004b852c
mov edx, dword [0x4b9bdc]
call fcn.00404cbc
mov esi, eax
mov eax, esi
call fcn.004bbb8c
test al, al
je 0x4c98af
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4c978e
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4c98a2
xor eax, eax
push ebp
push 0x4c8c9b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004c9c78
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.00420b44
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, esi
call fcn.004065a8
mov eax, dword [ebp - 8]
call fcn.0040653c
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx eax, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004c9a8c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx edx, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c8ce7
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x4c989a
mov eax, dword [ebp - 4]
call fcn.004c9cfc
ret
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x50]
call fcn.00405d68
jmp 0x4c98e7
mov eax, dword [ebp - 8]
call fcn.00405d14
jmp 0x4c98e7
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.0040d904
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x41a620]
call fcn.00412e70
call fcn.004054ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c8d04
lea eax, [ebp - 0x54]
call fcn.00406924
ret
Function at 0x4d4628
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov esi, eax
mov byte [esp], 0
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
mov edi, 1
jmp 0x4d4649
inc edi
mov eax, esi
call fcn.004060c8
cmp edi, eax
jg 0x4d465b
cmp byte [esi + edi - 1], 0x20
je 0x4d4648
mov eax, esi
test eax, eax
je 0x4d4666
sub eax, 4
mov eax, dword [eax]
cmp eax, edi
jl 0x4d4728
cmp byte [esi + edi - 1], 0x2e
je 0x4d474c
jmp 0x4d4728
cmp byte [esi + edi - 1], 0x2e
jne 0x4d46d0
inc dword [esp + 4]
cmp dword [esp + 4], 3
jg 0x4d474c
cmp dword [esp + 8], 0xff
jg 0x4d474c
xor eax, eax
mov dword [esp + 8], eax
mov ebp, esi
test ebp, ebp
je 0x4d46b4
sub ebp, 4
mov ebp, dword [ebp]
cmp ebp, edi
jg 0x4d46bc
mov bl, 1
jmp 0x4d46ca
movzx eax, byte [esi + edi]
add al, 0xd0
sub al, 0xa
setb bl
xor bl, 1
test bl, bl
jne 0x4d474c
jmp 0x4d4727
movzx eax, byte [esi + edi - 1]
add al, 0xd0
sub al, 0xa
jae 0x4d46f5
mov eax, dword [esp + 8]
add eax, eax
lea eax, [eax + eax*4]
movzx edx, byte [esi + edi - 1]
add eax, edx
sub eax, 0x30
mov dword [esp + 8], eax
jmp 0x4d4727
inc edi
mov eax, esi
call fcn.004060c8
cmp edi, eax
jg 0x4d4707
cmp byte [esi + edi - 1], 0x20
je 0x4d46f4
mov dword [esp + 0xc], esi
cmp dword [esp + 0xc], 0
je 0x4d471f
mov eax, dword [esp + 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [esp + 0xc], eax
cmp edi, dword [esp + 0xc]
jle 0x4d474c
jmp 0x4d4737
inc edi
mov eax, esi
call fcn.004060c8
cmp edi, eax
jle 0x4d467e
cmp dword [esp + 4], 3
jne 0x4d474c
cmp dword [esp + 8], 0xff
jg 0x4d474c
mov byte [esp], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4dfc78
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebp, eax
mov esi, 1
xor ebx, ebx
mov eax, ebp
test eax, eax
je 0x4dfc93
sub eax, 4
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
mov edx, eax
add edx, edx
add edx, edx
mov eax, edi
xor ecx, ecx
call fcn.004065a8
cmp esi, dword [esp]
jg 0x4dfdec
inc ebx
mov eax, edi
call fcn.0040653c
movzx edx, byte [ebp + esi - 1]
and dl, 0xfc
movzx edx, dl
shr edx, 2
movzx edx, byte [edx + 0x517538]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 1]
cmp eax, dword [esp]
jg 0x4dfda5
inc ebx
mov eax, edi
call fcn.0040653c
movzx edx, byte [ebp + esi - 1]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [ebp + esi]
and cl, 0xf0
movzx ecx, cl
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + 0x517538]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 2]
cmp eax, dword [esp]
jg 0x4dfd74
inc ebx
mov eax, edi
call fcn.0040653c
movzx edx, byte [ebp + esi]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [ebp + esi + 1]
and cl, 0xc0
movzx ecx, cl
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + 0x517538]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.0040653c
movzx edx, byte [ebp + esi + 1]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + 0x517538]
mov byte [eax + ebx - 1], dl
jmp 0x4dfde0
inc ebx
mov eax, edi
call fcn.0040653c
movzx edx, byte [ebp + esi]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx edx, byte [edx + 0x517538]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.0040653c
mov byte [eax + ebx - 1], 0x3d
jmp 0x4dfde0
inc ebx
mov eax, edi
call fcn.0040653c
movzx edx, byte [ebp + esi - 1]
and dl, 3
movzx edx, dl
shl edx, 4
movzx edx, byte [edx + 0x517538]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.0040653c
mov byte [eax + ebx - 1], 0x3d
inc ebx
mov eax, edi
call fcn.0040653c
mov byte [eax + ebx - 1], 0x3d
add esi, 3
cmp esi, dword [esp]
jle 0x4dfcbc
mov eax, edi
xor ecx, ecx
mov edx, ebx
call fcn.004065a8
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4e0a3c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, 0x30
mov edi, 0x517684
mov ecx, dword [esp]
lea edx, [esp + 0xc]
movzx ebx, byte [edi]
movzx ebx, byte [eax + ebx - 1]
xor bl, byte [ecx]
mov byte [edx], bl
inc edx
inc ecx
inc edi
dec esi
jne 0x4e0a5b
mov esi, 1
mov edx, 0x51778c
mov ecx, esi
dec ecx
mov eax, ecx
add eax, eax
lea eax, [eax + eax*2]
add ecx, ecx
add ecx, ecx
movzx ebx, byte [esp + eax + 0xc]
mov edi, ebx
add edi, edi
movzx ebx, byte [esp + eax + 0x11]
add edi, ebx
movzx ebx, byte [esp + eax + 0xd]
add ebx, ebx
add ebx, ebx
add ebx, ebx
movzx ebp, byte [esp + eax + 0xe]
add ebp, ebp
add ebp, ebp
add ebx, ebp
movzx ebp, byte [esp + eax + 0xf]
add ebp, ebp
add ebx, ebp
movzx eax, byte [esp + eax + 0x10]
add ebx, eax
mov dword [esp + 8], ebx
mov eax, 1
mov ebx, eax
dec ebx
je 0x4e0ad4
dec ebx
je 0x4e0af6
dec ebx
je 0x4e0b18
dec ebx
je 0x4e0b39
jmp 0x4e0b53
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 8
movzx ebx, bl
shr ebx, 3
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x4e0b53
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 4
movzx ebx, bl
shr ebx, 2
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x4e0b53
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 2
movzx ebx, bl
shr ebx, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x4e0b53
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
inc eax
cmp eax, 5
jne 0x4e0ac4
inc esi
add edx, 0x40
cmp esi, 9
jne 0x4e0a77
mov esi, 0x20
mov eax, 0x5176b4
mov edx, dword [esp + 4]
movzx ecx, byte [eax]
movzx ecx, byte [esp + ecx + 0x3b]
mov byte [edx], cl
inc edx
inc eax
dec esi
jne 0x4e0b78
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4e0c20
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov bl, 1
lea esi, [ebp - 0x421]
mov eax, edi
mov edx, ebx
call fcn.004e09d4
mov byte [esi], al
inc ebx
inc esi
cmp bl, 0x41
jne 0x4e0c3c
mov bl, 0x1c
mov esi, 0x5176d4
lea edi, [ebp - 0x41]
movzx edx, byte [esi]
mov eax, dword [ebp - 8]
call fcn.004e09d4
mov byte [edi], al
movzx edx, byte [esi + 0x1c]
mov eax, dword [ebp - 8]
call fcn.004e09d4
mov byte [edi + 0x1c], al
inc edi
inc esi
dec bl
jne 0x4e0c58
mov bl, 1
lea esi, [ebp - 0x3a1]
mov ecx, esi
lea eax, [ebp - 0x421]
mov edx, ebx
call fcn.004e0bb4
inc ebx
add esi, 0x30
cmp bl, 0x11
jne 0x4e0c82
mov bl, 1
mov eax, 0x517604
lea edx, [ebp - 0xa1]
cmp bl, 0x20
ja 0x4e0cbb
movzx ecx, byte [eax]
movzx ecx, byte [ebp + ecx - 0x422]
mov byte [edx], cl
jmp 0x4e0cc8
movzx ecx, byte [eax]
movzx ecx, byte [ebp + ecx - 0x422]
mov byte [edx], cl
inc ebx
inc edx
inc eax
cmp bl, 0x41
jne 0x4e0ca7
mov byte [ebp - 9], 1
lea esi, [ebp - 0x3a1]
cmp byte [ebp + 8], 0
je 0x4e0cf2
lea ecx, [ebp - 0x61]
mov edx, esi
lea eax, [ebp - 0x81]
call fcn.004e0a3c
jmp 0x4e0d19
movzx eax, byte [ebp - 9]
mov edx, 0x11
sub edx, eax
mov eax, edx
add eax, eax
lea eax, [eax + eax*2]
lea edx, [ebp + eax*8 - 0x3d1]
lea ecx, [ebp - 0x61]
lea eax, [ebp - 0x81]
call fcn.004e0a3c
mov bl, 0x20
lea eax, [ebp - 0xa1]
movzx edx, byte [eax]
xor byte [eax + 0x40], dl
inc eax
dec bl
jne 0x4e0d21
push esi
lea esi, [ebp - 0x81]
lea edi, [ebp - 0xa1]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
lea esi, [ebp - 0x61]
lea edi, [ebp - 0x81]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
inc byte [ebp - 9]
add esi, 0x30
cmp byte [ebp - 9], 0x11
jne 0x4e0cda
mov bl, 0x40
mov esi, 0x517644
lea eax, [ebp - 0x3e1]
movzx edx, byte [esi]
cmp dl, 0x20
ja 0x4e0d87
movzx edx, dl
movzx edx, byte [ebp + edx - 0x82]
mov byte [eax], dl
jmp 0x4e0d94
movzx edx, dl
movzx edx, byte [ebp + edx - 0xc2]
mov byte [eax], dl
inc eax
inc esi
dec bl
jne 0x4e0d70
mov bl, 1
lea esi, [ebp - 0x3e1]
movzx ecx, byte [esi]
mov eax, dword [ebp - 4]
mov edx, ebx
call fcn.004e09fc
inc ebx
inc esi
cmp bl, 0x41
jne 0x4e0da2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4e0e98
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, ecx
mov dword [esp], edx
mov esi, eax
movzx edx, byte [esi]
mov byte [esp + 4], dl
shl edx, 7
and dl, 0xff
movzx eax, byte [esi + 1]
movzx ecx, al
shr ecx, 1
or dl, cl
mov byte [esp + 5], dl
shl eax, 6
and al, 0xff
movzx edx, byte [esi + 2]
movzx ecx, dl
shr ecx, 2
or al, cl
mov byte [esp + 6], al
shl edx, 5
and dl, 0xff
movzx eax, byte [esi + 3]
movzx ecx, al
shr ecx, 3
or dl, cl
mov byte [esp + 7], dl
shl eax, 4
and al, 0xff
movzx edx, byte [esi + 4]
shr edx, 4
or al, dl
mov byte [esp + 8], al
movzx eax, byte [esi + 4]
add eax, eax
add eax, eax
add eax, eax
and al, 0xff
movzx edx, byte [esi + 5]
shr edx, 5
or al, dl
mov byte [esp + 9], al
movzx eax, byte [esi + 5]
add eax, eax
add eax, eax
and al, 0xff
movzx edx, byte [esi + 6]
shr edx, 6
or al, dl
mov byte [esp + 0xa], al
movzx eax, byte [esi + 6]
add eax, eax
and al, 0xff
mov byte [esp + 0xb], al
mov ebp, 8
lea eax, [esp + 4]
mov edx, 1
xor esi, esi
mov ecx, edx
movzx ebx, byte [eax]
shl ebx, cl
mov ecx, ebx
xor ecx, esi
and ecx, 1
mov esi, ecx
inc edx
cmp edx, 8
jne 0x4e0f49
movzx edx, byte [eax]
and dl, 0xfe
mov ecx, esi
or dl, cl
mov byte [eax], dl
inc eax
dec ebp
jne 0x4e0f44
mov eax, edi
xor ecx, ecx
mov edx, 8
call fcn.004065a8
push 1
mov eax, edi
call fcn.0040653c
mov edx, eax
lea ecx, [esp + 8]
mov eax, dword [esp + 4]
call fcn.004e0c20
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x504434
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x50395c
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.00504320
mov eax, dword [esi]
call fcn.004081d4
add eax, 0x28
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x40a4b0]
call fcn.0040839c
add esp, 4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.00403e3c
mov ebx, 0x1c
mov eax, dword [ebp - 4]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.00403e3c
add ebx, 0x1c
mov eax, dword [esi]
call fcn.004081d4
mov dword [ebp - 0xc], eax
mov eax, dword [0x51975c]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 4]
mov ecx, ebx
call fcn.004f492c
add ebx, 4
mov eax, dword [ebp - 4]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.0040429c
add ebx, 3
mov eax, dword [ebp - 4]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.004081d4
push eax
lea ecx, [ebp - 4]
mov eax, dword [esi]
xor edx, edx
call fcn.004f4818
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x98]
mov ebx, eax
mov eax, ebx
call fcn.004f47c8
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.004f4924
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x503963
lea eax, [ebp - 4]
mov edx, dword [0x40a4b0]
call fcn.004083a8
ret
Function at 0x4037f1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.00404060
push 0xa
push dword [esp + 4]
push dword [esp + 0x14]
call sub.KERNEL32.dll_FindResourceA
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x403842
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.dll_LoadResource
mov dword [0x40e3e4], eax
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x40e3f8], eax
mov eax, dword [esp + 4]
jmp 0x40384a
push dword [esp]
call fcn.0040aca0
add esp, 8
ret 8

Function at 0x403858
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
push edi
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x403860
mov edx, dword [esp + 0x48]
lea ecx, [esp]
call fcn.00404060
lea edx, [esp + 4]
push edx
push 0
push 5
push 4
push 4
call fcn.0040a8bd
lea edx, [esp + 0xc]
push edx
push 0
push 5
push 4
push 4
call fcn.0040a8bd
lea edx, [esp + 0x14]
push edx
push 0
push 5
push 4
push 4
jmp loc.00415110

Function at 0x404af1
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x404b40
push dword [esp + 0x10]
push 0x404a6f
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x40e4dc]
cmp esi, ebx
je 0x404b94
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x404b38
cmp byte [esi + 0x10], bl
je 0x404b38
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x404b15
jmp 0x404b94
mov esi, dword [0x40e4dc]
cmp esi, ebx
je 0x404b94
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x404b8d
cmp byte [esi + 0x11], bl
je 0x404b6a
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x404b80
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x40e4dc
call fcn.0040a87d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x404b4b
pop ebp
pop edi
pop esi
pop ebx
ret 4