joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f14a
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4b4a14]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4a28f0
push esi
call fcn.0040afeb
pop ecx
pop ecx
test eax, eax
jne 0x47f178
xor al, al
jmp 0x47f1f5
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0047ee7f
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x47f1b2
push dword [ebp - 0x210]
call fcn.00473a74
xor al, al
jmp 0x47f1f3
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x47f1b8
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x47f1d8
push edx
call fcn.0047f081
pop ecx
test al, al
je 0x47f1a3
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x47f1e6
mov bl, 1
push dword [ebp - 0x210]
call fcn.00473a74
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00402aa5
leave
ret

Function at 0x486383
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b4a14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4863c6
call fcn.00407676
mov dword [eax], 0xf
call fcn.00407689
mov dword [eax], 0xd
call fcn.00405dcb
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402aa5
leave
ret
test eax, eax
jne 0x4863cd
inc eax
jmp 0x4863ba
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4863b8
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4863ba
Function at 0x4871d1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0048714d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x487340
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x487340
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4872f5
jg 0x48722d
test eax, eax
je 0x4872eb
push 1
push 0x1000
call fcn.00405e0f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x487250
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4872e2
push 0x8000
push ebx
call fcn.00403d51
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x487279
jg 0x487274
cmp ecx, 0x1000
jb 0x487279
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004105f3
add esp, 0x10
cmp eax, 0xffffffff
je 0x4872be
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x487274
jl 0x4872a5
test ecx, ecx
jne 0x487266
push dword [ebp - 0xc]
push ebx
call fcn.00403d51
push esi
call fcn.00405e6c
add esp, 0xc
xor ebx, ebx
jmp 0x48734e
cmp byte [edi + 0x24], 0
je 0x4872d5
cmp dword [edi + 0x20], 5
jne 0x4872d5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4872e0
mov ebx, dword [edi + 0x18]
jmp 0x4872e2
xor ebx, ebx
push esi
call fcn.00405e6c
pop ecx
jmp 0x48734e
test ecx, ecx
jg 0x4872b7
jl 0x4872f5
test eax, eax
jae 0x4872b7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041162b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x487315
cmp byte [edi + 0x1c], 0
je 0x4872b7
jmp 0x487346
push ebx
call fcn.0040986e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4872b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x48734e
cmp byte [edi + 0x1c], 0
je 0x48734b
mov ebx, dword [edi + 0x18]
jmp 0x48734e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041162b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48cae0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x48cc65
cmp dword [esi + 0x20], 0
je 0x48cc65
cmp dword [esi + 0x24], 0
je 0x48cc65
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x48cc65
cmp dword [eax], esi
jne 0x48cc65
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x48cb45
cmp eax, 0x39
je 0x48cb45
cmp eax, 0x45
je 0x48cb45
cmp eax, 0x49
je 0x48cb45
cmp eax, 0x5b
je 0x48cb45
cmp eax, 0x67
je 0x48cb45
cmp eax, 0x71
je 0x48cb45
cmp eax, 0x29a
jne 0x48cc65
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x48cb7e
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x48cba0
call fcn.0048ac00
jmp 0x48cba5
call fcn.0048a980
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.0048e5a0
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.00412830
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x4aab2a]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x4aab28]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x4aab2c]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x4aab2e]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x413de0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40d015
lea edi, [esi - 0xc015]
push edi
or ebp, 0xffffffff
jmp 0x413e02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x413e09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x413df8
mov eax, 1
add ebx, ebx
jne 0x413e1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x413e10
jne 0x413e2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413e10
xor ecx, ecx
sub eax, 3
jb 0x413e40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x413eb2
mov ebp, eax
add ebx, ebx
jne 0x413e4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x413e58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x413e7c
inc ecx
add ebx, ebx
jne 0x413e68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x413e5d
jne 0x413e79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413e5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x413e9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x413e8d
jmp 0x413dfe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x413e9c
add edi, ecx
jmp 0x413dfe
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x413eba
cmp byte [edi], 5
jne 0x413eba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x413ebf
lea edi, [esi + 0x11000]
mov eax, dword [edi]
or eax, eax
je 0x413f2e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14448]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x144fc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x413eec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x14500]
or eax, eax
je 0x413f28
mov dword [ebx], eax
add ebx, 4
jmp 0x413f09
call dword [esi + 0x14510]
mov ebp, dword [esi + 0x14504]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x413f62
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x401480
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov edx, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [ecx]
mov ecx, eax
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
xor edx, ecx
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, edx
and ecx, 0xffff
xor edx, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, edx
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
shl ecx, 2
xor edx, ecx
mov ecx, edx
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor edx, ecx
mov ecx, edx
add edx, edx
shr ecx, 0x1f
or ecx, edx
mov edx, ecx
xor edx, eax
and edx, 0xaaaaaaaa
xor eax, edx
xor ecx, edx
mov edx, eax
shr edx, 0x1f
add eax, eax
or edx, eax
mov dword [esp + 0x10], 8
mov ebx, dword [edi]
mov eax, ecx
shl eax, 0x1c
mov esi, ecx
shr esi, 4
or eax, esi
xor eax, ebx
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
mov ebp, dword [ebx*4 + 0x44e410]
mov esi, eax
shr esi, 0x18
and esi, 0x3f
mov esi, dword [esi*4 + 0x44e210]
or esi, ebp
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or esi, dword [ebx*4 + 0x44e610]
and eax, 0x3f
mov ebx, dword [eax*4 + 0x44e810]
mov eax, dword [edi + 4]
or esi, ebx
xor eax, ecx
add edi, 4
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x44e310]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x44e510]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x44e710]
and eax, 0x3f
or ebx, dword [eax*4 + 0x44e910]
or ebx, esi
xor edx, ebx
mov ebx, dword [edi + 4]
add edi, 4
mov eax, edx
shl eax, 0x1c
mov esi, edx
shr esi, 4
or eax, esi
xor eax, ebx
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
mov ebp, dword [ebx*4 + 0x44e410]
mov esi, eax
shr esi, 0x18
and esi, 0x3f
mov esi, dword [esi*4 + 0x44e210]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or esi, ebp
mov ebp, dword [ebx*4 + 0x44e610]
and eax, 0x3f
mov ebx, dword [eax*4 + 0x44e810]
mov eax, dword [edi + 4]
add edi, 4
or esi, ebp
or esi, ebx
xor eax, edx
mov ebx, eax
shr ebx, 0x18
mov ebp, eax
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x44e310]
shr ebp, 0x10
and ebp, 0x3f
add edi, 4
or ebx, dword [ebp*4 + 0x44e510]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x44e710]
and eax, 0x3f
mov ebp, dword [eax*4 + 0x44e910]
mov eax, dword [esp + 0x10]
or ebx, ebp
or ebx, esi
xor ecx, ebx
dec eax
mov dword [esp + 0x10], eax
jne 0x401508
mov eax, ecx
shr ecx, 1
shl eax, 0x1f
or eax, ecx
mov ecx, eax
xor ecx, edx
and ecx, 0xaaaaaaaa
xor edx, ecx
xor eax, ecx
mov ecx, edx
shr edx, 1
shl ecx, 0x1f
or ecx, edx
mov edx, ecx
shr edx, 8
xor edx, eax
and edx, 0xff00ff
xor eax, edx
shl edx, 8
xor ecx, edx
mov edx, ecx
shr edx, 2
xor edx, eax
and edx, 0x33333333
xor eax, edx
shl edx, 2
xor ecx, edx
mov edx, eax
shr edx, 0x10
xor edx, ecx
and edx, 0xffff
xor ecx, edx
shl edx, 0x10
xor eax, edx
mov edx, eax
shr edx, 4
xor edx, ecx
and edx, 0xf0f0f0f
mov esi, edx
shl esi, 4
xor esi, eax
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
xor edx, ecx
pop ebp
mov dword [eax + 4], edx
pop ebx
pop ecx
ret
Function at 0x402d50
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x402d72
push str.Error_opening_log_file_n
push eax
push esi
mov byte [esi + 5], 1
mov byte [esi + 4], al
call fcn.00401e70
add esp, 0xc
pop esi
ret
mov cl, byte [esi + 0x1c]
test cl, cl
mov byte [esi + 4], 1
mov dword [esi + 0x28], 0
jne 0x402deb
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402d87
sub eax, edx
add eax, 5
push ebp
push eax
call fcn.0043326c
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x402dea
mov ecx, dword [esi + 0x18]
mov edx, ebp
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x402da8
push edi
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402db6
mov eax, dword [str..bak]
mov dword [edi], eax
mov cl, byte [0x4407d0]
push ebp
mov byte [edi + 4], cl
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esi + 0x18]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push ebp
call fcn.004336b7
add esp, 4
pop edi
pop ebp
mov eax, dword [esi + 0x18]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x14], eax
jne 0x402e2b
mov ecx, dword [esi + 0x18]
push ecx
push str.Error_opening_log_file__s_n
push 0
push esi
mov byte [esi + 5], 1
mov byte [esi + 4], 0
call fcn.00401e70
add esp, 0x10
mov al, byte [esi + 0x1c]
test al, al
je 0x402e44
mov edx, dword [esi + 0x14]
push 2
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
ret
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
ret

Function at 0x402fd0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x404540
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x100
push ebx
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
mov ebx, ecx
jne 0x40456c
push edi
mov ecx, 5
mov esi, str._no_window_selected_
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
jmp 0x4045ac
push 0x100
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov al, byte [esp + 8]
test al, al
jne 0x4045ac
push esi
lea ecx, [esp + 0xc]
push str.0x_x
push ecx
call fcn.00433854
add esp, 0xc
mov edx, 0x100
sub edx, eax
push edx
lea eax, [esp + eax + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
mov edx, dword [ebx + 4]
lea ecx, [esp + 8]
push ecx
push 0x422
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop esi
pop ebx
add esp, 0x100
ret 4
Function at 0x406ae0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
push ebx
push esi
push str.dfmirage
mov ebx, ecx
call fcn.00406700
mov esi, eax
add esp, 4
test esi, esi
jne 0x406afe
pop esi
pop ebx
pop ecx
ret 4
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.Screen.ForcedBpp
push esi
call edi
push str.Pointer.Enabled
push esi
call edi
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
neg eax
push 0
sbb eax, eax
push str.Cap.DfbBackingMode
and eax, 3
push esi
mov dword [esp + 0x24], eax
call edi
test eax, eax
je 0x406b63
mov edx, dword [esp + 0xc]
push edx
push str..VideoDriver.cpp:_tCant_set__Cap.DfbBackingMode__to__d_n
push 0
push 0x44ff14
call fcn.00401e70
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 4
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
push str.Order.BltCopyBits.Enabled
push esi
mov dword [esp + 0x24], 1
call edi
test eax, eax
je 0x406b8e
mov ecx, dword [esp + 0xc]
push ecx
push str..VideoDriver.cpp:_tCant_set_Order.BltCopyBits.Enabled_to__d_n
jmp 0x406b4b
mov edx, dword [str.DISPLAY]
mov dword [ebx], edx
mov eax, dword [0x44144c]
push esi
mov dword [ebx + 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 4

Function at 0x406f00
Capabilities:
Delete registry value
Set registry value

Disassembly:
push esi
push 0
push 5
mov esi, ecx
call fcn.0040c9e0
add esp, 8
test eax, eax
je 0x406f1b
mov ecx, esi
pop esi
jmp fcn.00406bc0
push str.dfmirage
mov byte [esi], 0
call fcn.00406700
mov esi, eax
add esp, 4
test esi, esi
je 0x406f44
push str.Cap.DfbBackingMode
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
ret

Function at 0x406f50
Capabilities:
Delete registry value
Set registry value

Disassembly:
push esi
mov esi, ecx
call fcn.004064d0
push 0
push 5
call fcn.0040c9e0
add esp, 8
test eax, eax
je 0x406f70
mov ecx, esi
pop esi
jmp fcn.00406bc0
push str.dfmirage
mov byte [esi], 0
call fcn.00406700
mov esi, eax
add esp, 4
test esi, esi
je 0x406f99
push str.Cap.DfbBackingMode
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
ret
Function at 0x407630
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov ecx, dword [ecx + 0x58]
test ecx, ecx
jne 0x407650
push str.._vncBuffer.cpp:_tGetRemotePalette_called_but_no_encoder_set_n
push 8
push 0x44ff14
call fcn.00401e70
add esp, 0xc
xor eax, eax
ret 8
jmp 0x412880
sub esp, 0x18
push esi
push str.._vncEncoder.cpp:_tremote_palette_data_requested_n
push 9
push 0x44ff14
mov esi, ecx
call fcn.00401e70
mov al, byte [esi + 0x13]
add esp, 0xc
test al, al
jne 0x4128ac
mov ecx, esi
call fcn.004120a0
test eax, eax
je 0x4128b3
mov al, byte [esi + 0x23]
test al, al
je 0x4128bc
xor eax, eax
pop esi
add esp, 0x18
ret 8
mov al, byte [esi + 0x13]
test al, al
push ebx
push ebp
push edi
je 0x412987
push str.._vncEncoder.cpp:_tgenerating_BGR233_palette_data_n
push 9
push 0x44ff14
call fcn.00401e70
mov cl, byte [esi + 0x30]
mov eax, dword [esi + 0xc]
mov ebx, 1
shl ebx, cl
lea ebp, [esi + 0xc]
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
je 0x412903
push eax
call fcn.00433646
add esp, 4
lea eax, [ebx*4]
push eax
call fcn.00433763
add esp, 4
test eax, eax
mov dword [ebp], eax
je 0x4129ed
xor edi, edi
test ebx, ebx
jle 0x4129ed
lea ebp, [eax + 1]
jmp 0x412930
mov cl, byte [esi + 0x3c]
movzx ebx, word [esi + 0x38]
mov eax, edi
sar eax, cl
add ebp, 4
and eax, ebx
imul eax, eax, 0xff
cdq
idiv ebx
mov byte [ebp - 5], al
mov cl, byte [esi + 0x3a]
movzx ebx, word [esi + 0x34]
mov eax, edi
sar eax, cl
and eax, ebx
imul eax, eax, 0xff
cdq
idiv ebx
mov byte [ebp - 3], al
mov cl, byte [esi + 0x3b]
movzx ebx, word [esi + 0x36]
mov eax, edi
sar eax, cl
and eax, ebx
imul eax, eax, 0xff
cdq
idiv ebx
inc edi
mov byte [ebp - 4], al
cmp edi, dword [esp + 0x14]
jl 0x412930
jmp 0x4129e9
push str.._vncEncoder.cpp:_tgenerating_8_bit_palette_data_n
push 9
push 0x44ff14
call fcn.00401e70
mov eax, 0xff
mov word [esp + 0x2c], ax
mov word [esp + 0x2a], ax
mov word [esp + 0x28], ax
lea eax, [esi + 0xc]
lea ecx, [esp + 0x24]
push ecx
add esi, 0x10
push esi
push eax
mov byte [esp + 0x33], 1
mov byte [esp + 0x30], 0x20
mov byte [esp + 0x31], 0x18
mov byte [esp + 0x32], 0
mov byte [esp + 0x3a], 0x10
mov byte [esp + 0x3b], 8
mov byte [esp + 0x3c], 0
mov dword [esp + 0x28], eax
call dword [0x44ea30]
add esp, 0x18
mov ebp, dword [esp + 0x10]
mov ebp, dword [ebp]
test ebp, ebp
jne 0x412a13
push str.._vncEncoder.cpp:_tfailed_to_obtain_colour_map_data__n
push ebp
push 0x44ff14
call fcn.00401e70
add esp, 0xc
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x18
ret 8
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x18
ret 8

Function at 0x408e80
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
push ebx
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov ebx, dword [esp + 0x108]
movzx ecx, bl
test byte [esp + ecx + 4], 1
je 0x408ebd
push esi
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push 0
push 1
push 0
push ebx
call esi
push 0
push 3
push 0
push ebx
call esi
pop esi
pop ebx
add esp, 0x100
ret
Function at 0x408ed0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43ef50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 0x78]
mov dword [esp + 8], esi
mov dword [esi], 0x441db8
call fcn.00419790
xor ebx, ebx
lea ecx, [esi + 0x7c]
mov dword [esp + 0x14], ebx
call fcn.00419790
lea ecx, [esi + 0x80]
mov byte [esp + 0x14], 1
call fcn.00419790
lea ecx, [esi + 0x84]
mov byte [esp + 0x14], 2
call fcn.004326f0
lea ecx, [esi + 0xdc]
mov byte [esp + 0x14], 3
call fcn.004326f0
push 0x441d88
push 9
push 0x44ff14
mov byte [esp + 0x20], 4
call fcn.00401e70
mov ecx, dword [esp + 0x18]
add esp, 0xc
or eax, 0xffffffff
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x50], ebx
mov byte [esi + 0x55], bl
mov word [esi + 0x56], bx
mov word [esi + 0x58], bx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xf8], ebx
mov dword [esi + 0xf4], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0xd4], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x408ee7
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43ef50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 0x78]
mov dword [esp + 8], esi
mov dword [esi], 0x441db8
call fcn.00419790
xor ebx, ebx
lea ecx, [esi + 0x7c]
mov dword [esp + 0x14], ebx
call fcn.00419790
lea ecx, [esi + 0x80]
mov byte [esp + 0x14], 1
call fcn.00419790
lea ecx, [esi + 0x84]
mov byte [esp + 0x14], 2
call fcn.004326f0
lea ecx, [esi + 0xdc]
mov byte [esp + 0x14], 3
call fcn.004326f0
push 0x441d88
push 9
push 0x44ff14
mov byte [esp + 0x20], 4
call fcn.00401e70
mov ecx, dword [esp + 0x18]
add esp, 0xc
or eax, 0xffffffff
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x50], ebx
mov byte [esi + 0x55], bl
mov word [esi + 0x56], bx
mov word [esi + 0x58], bx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xf8], ebx
mov dword [esi + 0xf4], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0xd4], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret