joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7b79e8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00409208
mov eax, dword [ebp - 8]
call fcn.00409208
xor eax, eax
push ebp
push 0x7b7b93
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [edi + 0x94], 0
je 0x7b7ae5
lea eax, [ebp - 0x10]
mov edx, dword [edi + 0x7c]
call fcn.0040954c
xor ebx, ebx
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.007b5000
test al, al
je 0x7b7ad4
lea edx, [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push dword [ebp - 0xc]
push 0x7b7bb4
push 0x7b7bb4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a56c
lea eax, [ebp - 0xc]
mov ecx, 0x7b7bb4
mov edx, 0x7b7bc4
call fcn.0079e7d0
test al, al
jne 0x7b7a73
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.0040a384
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.0040a384
mov eax, dword [ebp - 0x14]
call fcn.00409628
add eax, eax
push eax
mov eax, dword [ebp - 0x14]
call fcn.00409e4c
push eax
push 7
push 0
mov eax, dword [ebp - 0x18]
call fcn.00409e4c
push eax
mov eax, dword [edi + 0x8c]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete bl
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.007b5000
jmp 0x7b7b6b
lea eax, [ebp - 0xc]
mov edx, dword [edi + 0x7c]
call fcn.0040954c
xor ebx, ebx
cmp byte [edi + 0x9c], 0
jne 0x7b7b6b
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.007b5000
test al, al
jne 0x7b7b19
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.007b5000
jmp 0x7b7b6b
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, edi
call fcn.007b393c
mov esi, eax
mov byte [esi + 0x10], 4
mov dl, 1
mov eax, dword [0x4446a4]
call fcn.004531b0
mov ebx, eax
mov dword [esi + 0x14], ebx
mov edx, dword [ebp + 8]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 8]
mov bl, 1
mov byte [edi + 0x85], 1
cmp byte [edi + 0x84], 0
jne 0x7b7b5f
mov eax, edi
call fcn.007b6eb0
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.007b5000
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7b7b9a
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004091e4
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00409184
ret
Function at 0x7b7bcc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00409208
mov eax, dword [ebp - 8]
call fcn.00409208
mov eax, dword [ebp + 8]
call fcn.00409208
xor eax, eax
push ebp
push 0x7b7d24
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp byte [edi + 0x94], 0
je 0x7b7c78
lea eax, [ebp - 0x10]
mov edx, dword [edi + 0x7c]
call fcn.0040954c
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.007b5000
test al, al
je 0x7b7c67
mov eax, dword [ebp + 8]
call fcn.0040961c
inc eax
add eax, eax
push eax
mov eax, dword [ebp + 8]
call fcn.0040a278
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.0040a278
push eax
mov eax, dword [edi + 0x8c]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete bl
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.007b5000
jmp 0x7b7d01
lea eax, [ebp - 0xc]
mov edx, dword [edi + 0x7c]
call fcn.0040954c
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.007b5000
test al, al
jne 0x7b7ca1
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.007b5000
jmp 0x7b7d01
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, edi
call fcn.007b393c
mov esi, eax
mov byte [esi + 0x10], 3
mov eax, dword [ebp + 8]
call fcn.0040961c
inc eax
add eax, eax
call fcn.004048f0
mov ebx, eax
mov dword [esi + 0x14], ebx
mov eax, dword [ebp + 8]
call fcn.0040961c
mov ecx, eax
mov edx, dword [ebp + 8]
mov eax, ebx
call fcn.00425628
mov bl, 1
mov byte [edi + 0x85], 1
cmp byte [edi + 0x84], 0
jne 0x7b7cf5
mov eax, edi
call fcn.007b6eb0
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.007b5000
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7b7d2b
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00409184
lea eax, [ebp + 8]
call fcn.00409124
ret
Function at 0x7b7d88
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00409208
mov eax, dword [ebp - 8]
call fcn.00409208
xor eax, eax
push ebp
push 0x7b7f0e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x94], 0
je 0x7b7e64
lea eax, [ebp - 0xc]
mov edx, dword [ebx + 0x7c]
call fcn.0040954c
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.007b5000
test al, al
je 0x7b7e53
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040a278
push eax
mov eax, dword [ebx + 0x8c]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x7b7e53
cmp dword [ebp - 0x18], 3
jne 0x7b7e53
cmp dword [ebp - 0x14], 8
jne 0x7b7e53
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040a278
push eax
mov eax, dword [ebx + 0x8c]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
sete byte [ebp - 0xd]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.007b5000
jmp 0x7b7eeb
mov byte [ebp - 0xd], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov ebx, eax
test ebx, ebx
je 0x7b7ee0
movzx eax, byte [ebx + 0x10]
cmp al, 6
jne 0x7b7e94
mov eax, dword [ebx + 0x18]
mov dword [esi], eax
mov eax, dword [ebx + 0x1c]
mov dword [esi + 4], eax
mov byte [ebp - 0xd], 1
jmp 0x7b7eeb
cmp al, 2
jne 0x7b7ea4
fild dword [ebx + 0x14]
fstp qword [esi]
wait
mov byte [ebp - 0xd], 1
jmp 0x7b7eeb
cmp al, 3
jne 0x7b7ed3
lea eax, [ebp - 0x1c]
mov edx, dword [ebx + 0x14]
call fcn.0040a2e0
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
mov edx, esi
call fcn.007b1130
cmp dword [ebp - 0x14], 0
jle 0x7b7eeb
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
jmp 0x7b7eeb
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
jmp 0x7b7eeb
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7b7f15
lea eax, [ebp - 0x1c]
call fcn.00409124
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00409184
ret
Function at 0x7b7f24
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00409208
mov eax, dword [ebp - 8]
call fcn.00409208
xor eax, eax
push ebp
push 0x7b803c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [esi + 0x94], 0
je 0x7b7fb5
lea eax, [ebp - 0x10]
mov edx, dword [esi + 0x7c]
call fcn.0040954c
xor ebx, ebx
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.007b5000
test al, al
je 0x7b7fa7
push 8
lea eax, [ebp + 8]
push eax
push 3
push 0
mov eax, dword [ebp - 8]
call fcn.0040a278
push eax
mov eax, dword [esi + 0x8c]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete bl
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.007b5000
jmp 0x7b8021
lea eax, [ebp - 0xc]
mov edx, dword [esi + 0x7c]
call fcn.0040954c
xor ebx, ebx
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.007b5000
test al, al
jne 0x7b7fe0
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.007b5000
jmp 0x7b8021
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, esi
call fcn.007b393c
mov byte [eax + 0x10], 6
mov edx, dword [ebp + 8]
mov dword [eax + 0x18], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edx
mov bl, 1
mov byte [esi + 0x85], 1
cmp byte [esi + 0x84], 0
jne 0x7b8015
mov eax, esi
call fcn.007b6eb0
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.007b5000
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7b8043
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00409184
ret

Function at 0x7d4a68
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x7d4b43
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_GetKeyboardLayout
mov edi, eax
and edi, 0xffff
push 0
push 0
push 0x1004
push edi
call sub.KERNEL32.DLL_GetLocaleInfoW
mov esi, eax
lea eax, [ebp - 4]
mov edx, esi
call fcn.0040a40c
push esi
mov eax, dword [ebp - 4]
call fcn.0040a278
push eax
push 0x1004
push edi
call sub.KERNEL32.DLL_GetLocaleInfoW
call sub.KERNEL32.DLL_GetACP
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00423db0
mov esi, eax
push 0
push 0
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
call fcn.00409634
push eax
mov eax, ebx
call fcn.00409bd0
push eax
push 5
push esi
call sub.KERNEL32.DLL_MultiByteToWideChar
mov edi, eax
mov eax, dword [ebp - 8]
mov edx, edi
call fcn.0040a1c8
push edi
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00409e4c
push eax
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
call fcn.00409634
push eax
mov eax, ebx
call fcn.00409bd0
push eax
push 5
push esi
call sub.KERNEL32.DLL_MultiByteToWideChar
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7d4b4a
lea eax, [ebp - 4]
call fcn.00409124
ret
Function at 0x7dc7c4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0xa486a4], 0
jne 0x7dc7db
call fcn.007dc780
mov eax, edi
dec eax
test eax, eax
jl 0x7dc803
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0xa482a4]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x7dc7e5
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x7df168
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.0x7df202.0
jmp dword [ecx*4 + 0x7df19b]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x7df1cd
sub dl, 8
je 0x7df1dc
jmp case.0x7df202.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x7deed4
jmp case.0x7df202.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x7def2c
jmp case.0x7df202.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x7df202.0
movzx ecx, byte [ecx + 0x7df209]
jmp dword [ecx*4 + 0x7df21a]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x7def84
jmp case.0x7df202.0
cmp dl, 3
jne 0x7df247
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x7defd8
jmp case.0x7df202.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x7def94
jmp case.0x7df202.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x7df01c
jmp case.0x7df202.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x7df272
sub dl, 8
je 0x7df27e
jmp case.0x7df202.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x7df038
jmp case.0x7df202.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x7df0a4
jmp case.0x7df202.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x7df29d
sub dl, 8
je 0x7df2a9
jmp case.0x7df202.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x7df114
jmp case.0x7df202.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x7df13c
mov ecx, dword [eax + 0x468]
mov edx, dword [ebx + 0x1c]
dec edx
imul ecx, edx
add ecx, dword [eax + 0x450]
mov dword [ebp - 0xc], ecx
mov eax, dword [eax + 0x454]
mov dword [ebp - 8], eax
mov esi, edx
test esi, esi
jb 0x7df339
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.007de538
test eax, eax
je 0x7df339
mov eax, ebx
call fcn.007df344
mov eax, dword [ebp - 8]
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
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x7df2d9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x7df344
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 0x7df375
dec al
je 0x7df3b0
dec al
je 0x7df3f5
dec al
je 0x7df45e
jmp 0x7df4e8
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x7df4e8
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 0x7df385
jmp 0x7df4e8
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x7df4e8
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 0x7df3c0
jmp 0x7df4e8
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x7df4e8
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 0x7df424
xor ebp, ebp
jmp 0x7df434
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 0x7df43d
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 0x7df405
jmp 0x7df4e8
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x7df4e8
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 0x7df4b7
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.007dc80c
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 0x7df472
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x8413dc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x841644
push dword fs:[eax]
mov dword fs:[eax], esp
cmp word [ebx + 4], 0xd
jne 0x841448
mov eax, dword [ebx + 8]
call fcn.0053c90c
movzx edx, word [0x841654]
cmp dx, ax
jne 0x841448
cmp byte [esi + 0x30c], 0
je 0x841448
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebx + 4]
push eax
push 0x102
mov eax, esi
call fcn.004ad7c0
push eax
call sub.user32.dll_SendMessageW
mov word [ebx + 4], 0
jmp 0x84162e
xor edi, edi
mov eax, dword [0xa3fd98]
cmp byte [eax], 0
je 0x84160b
movzx eax, word [ebx + 4]
add eax, 0xfffffff8
sub ax, 2
jb 0x84160b
sub ax, 3
je 0x84160b
sub ax, 0xe
je 0x84160b
lea eax, [ebp - 4]
mov edx, 5
call fcn.0040a1c8
lea eax, [ebp - 0x104]
push eax
call sub.user32.dll_GetKeyboardState
test eax, eax
je 0x84160b
test byte [ebp - 0xf3], 0x80
jne 0x84160b
movzx edi, word [ebx + 4]
push 0
push 5
mov eax, dword [ebp - 4]
call fcn.00409e4c
push eax
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebx + 8]
push eax
push edi
call dword [0xa486fc]
mov edi, eax
cmp edi, 1
jle 0x841562
lea eax, [ebp - 4]
mov edx, edi
call fcn.0040a1c8
cmp word [esi + 0x3d0], 0
je 0x841548
cmp dword [esi + 0x3d4], 1
jl 0x84153d
lea eax, [esi + 0x3cc]
mov edx, dword [ebp - 4]
call fcn.00409578
mov byte [esi + 0x3d8], 1
push 0
movzx eax, word [esi + 0x3d0]
push eax
push 0x102
mov eax, esi
call fcn.004ad7c0
push eax
call sub.user32.dll_SendMessageW
mov word [esi + 0x3d0], 0
xor eax, eax
mov dword [esi + 0x3d4], eax
jmp 0x84160b
inc dword [esi + 0x3d4]
jmp 0x84160b
lea eax, [esi + 0x3cc]
mov edx, dword [ebp - 4]
call fcn.00409578
mov byte [esi + 0x3d8], 1
jmp 0x84160b
cmp word [esi + 0x3d0], 0
je 0x8415e8
cmp edi, 1
jne 0x8415e8
mov eax, dword [ebp - 4]
movzx edx, word [eax]
movzx ecx, word [esi + 0x3d0]
mov eax, dword [esi + 0x3c8]
call fcn.007d6af8
mov edx, eax
lea eax, [esi + 0x3cc]
call fcn.00409db0
mov eax, dword [esi + 0x3cc]
mov edx, 0x84165c
call fcn.0040a024
jne 0x8415dd
lea eax, [ebp - 4]
mov edx, 2
call fcn.0040a1c8
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov edx, dword [ebp - 4]
mov word [edx + 2], ax
mov eax, dword [ebp - 4]
movzx edx, word [esi + 0x3d0]
mov word [eax], dx
lea eax, [esi + 0x3cc]
mov edx, dword [ebp - 4]
call fcn.00409578
mov word [esi + 0x3d0], 0
jmp 0x84160b
test edi, edi
jle 0x84160b
lea eax, [ebp - 4]
mov edx, edi
call fcn.0040a1c8
lea eax, [esi + 0x3cc]
mov edx, dword [ebp - 4]
call fcn.00409578
mov byte [esi + 0x3d8], 1
test edi, edi
jg 0x84161a
mov edx, ebx
mov eax, esi
call fcn.004ac3b8
jmp 0x84162e
mov edx, ebx
mov eax, esi
call fcn.004ac3b8
mov word [ebx + 4], 0
xor eax, eax
mov dword [ebx + 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x84164b
lea eax, [ebp - 4]
call fcn.0040916c
ret
Function at 0x884dbc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0xa49590], 0
jne 0x884dd3
call fcn.00884d78
mov eax, edi
dec eax
test eax, eax
jl 0x884dfb
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0xa49190]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x884ddd
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x887a70
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.0x887b0a.0
jmp dword [ecx*4 + 0x887aa3]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x887ad5
sub dl, 8
je 0x887ae4
jmp case.0x887b0a.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x88773c
jmp case.0x887b0a.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x887790
jmp case.0x887b0a.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x887b0a.0
movzx ecx, byte [ecx + 0x887b11]
jmp dword [ecx*4 + 0x887b22]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x887830
jmp case.0x887b0a.0
cmp dl, 3
jne 0x887b4f
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x887888
jmp case.0x887b0a.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x887844
jmp case.0x887b0a.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x8878cc
jmp case.0x887b0a.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x887b7a
sub dl, 8
je 0x887b86
jmp case.0x887b0a.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x8878f8
jmp case.0x887b0a.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x88795c
jmp case.0x887b0a.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x887ba5
sub dl, 8
je 0x887bb1
jmp case.0x887b0a.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x887a0c
jmp case.0x887b0a.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x887a34
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 0x887c53
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.00886c78
test eax, eax
je 0x887c53
mov eax, ebx
call fcn.00887c5c
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 0x887bec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8