joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ca70
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xc4
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0xc0], eax
xor eax, eax
push esi
push 0x9c
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
call fcn.00462100
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x9c
call esi
test eax, eax
jne 0x40cb00
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], 0x94
call esi
test eax, eax
jne 0x40cb00
pop esi
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.0045c77f
add esp, 0xc4
ret
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40cb24
lea ecx, [esp + 4]
push ecx
call eax
jmp 0x40cb2f
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x38]
sub eax, 2
jne 0x40cbc6
mov eax, dword [esp + 0x2c]
cmp eax, 6
jne 0x40cb62
cmp dword [esp + 0x30], 0
jne 0x40cbc6
pop esi
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.0045c77f
add esp, 0xc4
ret
cmp eax, 5
jne 0x40cbc6
mov eax, dword [esp + 0x30]
cmp eax, 2
jne 0x40cbb8
cmp byte [esp + 0xc2], 1
jne 0x40cb9d
cmp word [esp + 4], 9
jne 0x40cb9d
mov eax, 7
pop esi
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.0045c77f
add esp, 0xc4
ret
mov eax, 5
pop esi
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.0045c77f
add esp, 0xc4
ret
cmp eax, 1
je 0x40cb9d
test eax, eax
mov eax, 5
je 0x40cbcb
mov eax, 4
mov ecx, dword [esp + 0xc4]
pop esi
xor ecx, esp
call fcn.0045c77f
add esp, 0xc4
ret

Function at 0x40cdc0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
test ebx, ebx
je 0x40ce6a
push edi
lea eax, [esp + 0xc]
push eax
push str.mv2.dll
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x40cde6
pop edi
add esp, 0xc
ret
push esi
push edi
call fcn.0045c88a
add esp, 4
mov esi, eax
push esi
push edi
push 0
push str.mv2.dll
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push str.StringFileInfo040904b0ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40ce32
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push str.StringFileInfo000004b0ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40ce56
mov edx, dword [esp + 8]
push 0x200
push edx
push ebx
call fcn.0045d9c0
push esi
call fcn.0045c7c2
add esp, 0x10
pop esi
mov eax, 1
pop edi
add esp, 0xc
ret
push esi
mov byte [ebx], 0
call fcn.0045c7c2
add esp, 4
pop esi
xor eax, eax
pop edi
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret
Function at 0x40de80
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push 1
mov ecx, ebp
call fcn.00401630
mov eax, dword [esp + 0x10]
add eax, 0xfffffff8
add esp, 4
test eax, eax
jle 0x40deef
push ebx
lea ebx, [eax - 1]
shr ebx, 3
lea esi, [eax + edi]
inc ebx
mov eax, esi
call fcn.00401bf0
movzx eax, byte [esi - 8]
movzx ecx, byte [esi - 7]
xor byte [esi], al
xor byte [esi + 1], cl
movzx edx, byte [esi - 6]
movzx eax, byte [esi - 5]
movzx ecx, byte [esi - 4]
xor byte [esi + 2], dl
xor byte [esi + 3], al
xor byte [esi + 4], cl
movzx edx, byte [esi - 3]
movzx eax, byte [esi - 2]
movzx ecx, byte [esi - 1]
xor byte [esi + 5], dl
xor byte [esi + 6], al
xor byte [esi + 7], cl
add esi, 0xfffffff8
sub ebx, 1
jne 0x40dea8
pop ebx
mov esi, edi
mov eax, edi
call fcn.00401bf0
movzx edx, byte [ebp]
xor byte [edi], dl
movzx eax, byte [ebp + 1]
xor byte [edi + 1], al
movzx ecx, byte [ebp + 2]
xor byte [edi + 2], cl
movzx edx, byte [ebp + 3]
xor byte [edi + 3], dl
movzx eax, byte [ebp + 4]
xor byte [edi + 4], al
movzx ecx, byte [ebp + 5]
xor byte [edi + 5], cl
movzx edx, byte [ebp + 6]
xor byte [edi + 6], dl
movzx eax, byte [ebp + 7]
xor byte [edi + 7], al
pop esi
pop ebp
ret
Function at 0x410db0
Capabilities:
Delete file

Disassembly:
sub esp, 0x12c
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x128], eax
push 0x105
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00462100
push 0x104
lea ecx, [esp + 0x30]
push esi
push ecx
call fcn.0045dea8
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
add esp, 0x18
mov dword [esp], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
lea ecx, [esp]
lea edx, [esp + 0x20]
mov eax, 0x654
push ecx
mov dword [esp + 8], 3
mov dword [esp + 0xc], edx
mov word [esp + 0x14], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, dword [esp + 0x128]
neg eax
sbb eax, eax
xor ecx, esp
inc eax
call fcn.0045c77f
add esp, 0x12c
ret
Function at 0x4131e0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x104
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x100], eax
lea eax, [esp]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
movzx ecx, bl
test byte [esp + ecx], 1
je 0x413221
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
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0045c77f
add esp, 0x104
ret

Function at 0x413240
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x110
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x10c], eax
push 0x100
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
je 0x413290
push 0x100
push str.Host_name_unavailable
push edi
call fcn.0045d9c0
add esp, 0xc
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0045c77f
add esp, 0x110
ret
push ebp
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebp, eax
test ebp, ebp
jne 0x4132cb
push 0x100
push str.IP_address_unavailable
push edi
call fcn.0045d9c0
add esp, 0xc
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0045c77f
add esp, 0x110
ret
mov byte [edi], 0
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
mov dword [esp + 4], 0
je 0x41339e
push ebx
push esi
xor ebx, ebx
xor eax, eax
xor esi, esi
cmp ax, word [ebp + 0xa]
jge 0x41333a
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebx + ecx]
movzx eax, byte [edx + esi]
push eax
lea ecx, [esp + 0x14]
push 0x47bee0
push ecx
call fcn.0045c8ef
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413312
sub eax, edx
mov edx, 0xff
sub edx, eax
push edx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0045db40
movsx ecx, word [ebp + 0xa]
inc esi
add esp, 0xc
cmp esi, ecx
jl 0x4132f0
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413340
sub eax, edx
mov byte [edi + eax - 1], cl
mov edx, dword [ebp + 0xc]
cmp dword [ebx + edx + 4], 0
je 0x41337f
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413360
sub eax, edx
mov ecx, 0xff
sub ecx, eax
push ecx
push 0x47bee4
push edi
call fcn.0045db40
add esp, 0xc
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 0xc]
inc eax
lea ebx, [eax*4]
cmp dword [ebx + edx], 0
mov dword [esp + 0xc], eax
jne 0x4132e6
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop ebp
xor ecx, esp
call fcn.0045c77f
add esp, 0x110
ret
Function at 0x417a40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x471647
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x489348]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push esi
call fcn.00410030
lea eax, [esi + 0x18]
push eax
mov dword [esp + 0x18], 0
call fcn.00410030
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 1
push ecx
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
call fcn.00410030
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x418720
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebp
xor ebp, ebp
mov byte [esp + 7], 0
mov dword [esp + 8], ebp
push edi
push 0
lea eax, [esp + 0x10]
push eax
push 0x2000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esp + 0xc]
test eax, eax
jne 0x418757
test edi, edi
je 0x41875b
mov byte [esp + 0xb], 1
jmp 0x41875b
test edi, edi
je 0x41877d
xor eax, eax
xor edx, edx
xor ecx, ecx
call fcn.00456210
mov ecx, eax
mov eax, edi
mov edx, esi
call fcn.00456210
mov ecx, dword [esp + 0x14]
mov dword [ecx + ebp], eax
add ebp, 4
jmp 0x418730
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call fcn.0045d506
add esp, 4
cmp byte [esp + 0xb], 0
pop edi
je 0x4187a5
or eax, 0xffffffff
pop ebp
add esp, 8
ret 4
mov eax, ebp
pop ebp
add esp, 8
ret 4

Function at 0x4187f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [esi + 0x2f5], 0
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, eax
je 0x4188fd
cmp byte [esi + 0x2f4], 0
jne 0x4188cf
cmp edi, 0x2000
jg 0x4188fd
cmp ebp, 2
sete al
mov bl, 1
test al, al
je 0x41885c
mov eax, dword [esi + 0x2dc]
push 1
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4188c8
mov eax, edi
add dword [esi + 0x2f0], eax
inc dword [esi + 0x2e8]
pop edi
pop ebp
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 0x2d4]
mov edx, dword [esi + 0xec]
push ecx
push edx
mov ecx, edi
call fcn.0044a3e0
test eax, eax
je 0x4188dd
test ebp, ebp
jne 0x41887b
xor bl, bl
mov eax, dword [esi + 0x2d4]
mov dword [esp + 0x14], 0x2000
test bl, bl
je 0x4188ac
mov edx, dword [esi + 0x2d8]
mov ecx, edi
lea edi, [esp + 0x14]
call fcn.00456470
test eax, eax
jne 0x4188c8
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x2d8]
mov edx, dword [esi + 0x2dc]
push 0
lea ecx, [esi + 0x2ec]
push ecx
push edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4188eb
mov byte [esi + 0x2f4], 1
mov eax, esi
call fcn.00418910
pop edi
pop ebp
pop ebx
pop ecx
ret 4
mov eax, esi
mov byte [esi + 0x2f4], 1
call fcn.00418910
mov eax, dword [esi + 0x2ec]
add dword [esi + 0x2f0], eax
inc dword [esi + 0x2e8]
pop edi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x418910
Capabilities:
Clear file content
Delete file
Timestomp file

Disassembly:
sub esp, 0x20
push ebx
push esi
mov esi, eax
cmp byte [esi + 0x2f5], 0
push edi
je 0x418a40
mov eax, dword [esi + 0x2dc]
push eax
mov byte [esi + 0x2f5], 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [esi + 0x2dc]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea edx, [esi + 0x2c0]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418951
sub eax, edi
je 0x4189e8
push edx
call fcn.0045e024
lea edx, [esi + 0x2c3]
push edx
mov word [esp + 0x22], ax
call fcn.0045e024
mov word [esp + 0x26], ax
lea eax, [esi + 0x2c6]
push eax
call fcn.0045e024
lea ecx, [esi + 0x2cb]
push ecx
mov word [esp + 0x28], ax
call fcn.0045e024
lea edx, [esi + 0x2ce]
push edx
mov word [esp + 0x34], ax
call fcn.0045e024
mov word [esp + 0x36], ax
xor eax, eax
add esp, 0x14
lea edx, [esp + 0x10]
mov word [esp + 0x26], ax
push edx
lea eax, [esp + 0x1c]
xor ecx, ecx
push eax
mov word [esp + 0x2c], cx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [esp + 0x10]
push ecx
mov edx, ecx
push edx
mov eax, ecx
mov ecx, dword [esi + 0x2dc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edx, dword [esi + 0x2dc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebx, [esi + 0x17c]
push esi
call fcn.00419120
cmp byte [esi + 0x2f4], 0
je 0x418a1a
cmp byte [esi + 0x2f6], 0
je 0x418a1a
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x2d8]
test eax, eax
je 0x418a2d
push eax
call fcn.0045d506
add esp, 4
mov esi, dword [esi + 0x2d4]
test esi, esi
je 0x418a40
push esi
call fcn.0045d506
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x418936
Capabilities:
Delete file
Timestomp file

Disassembly:
sub esp, 0x20
push ebx
push esi
mov esi, eax
cmp byte [esi + 0x2f5], 0
push edi
je 0x418a40
mov eax, dword [esi + 0x2dc]
push eax
mov byte [esi + 0x2f5], 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [esi + 0x2dc]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea edx, [esi + 0x2c0]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418951
sub eax, edi
je 0x4189e8
push edx
call fcn.0045e024
lea edx, [esi + 0x2c3]
push edx
mov word [esp + 0x22], ax
call fcn.0045e024
mov word [esp + 0x26], ax
lea eax, [esi + 0x2c6]
push eax
call fcn.0045e024
lea ecx, [esi + 0x2cb]
push ecx
mov word [esp + 0x28], ax
call fcn.0045e024
lea edx, [esi + 0x2ce]
push edx
mov word [esp + 0x34], ax
call fcn.0045e024
mov word [esp + 0x36], ax
xor eax, eax
add esp, 0x14
lea edx, [esp + 0x10]
mov word [esp + 0x26], ax
push edx
lea eax, [esp + 0x1c]
xor ecx, ecx
push eax
mov word [esp + 0x2c], cx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [esp + 0x10]
push ecx
mov edx, ecx
push edx
mov eax, ecx
mov ecx, dword [esi + 0x2dc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edx, dword [esi + 0x2dc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebx, [esi + 0x17c]
push esi
call fcn.00419120
cmp byte [esi + 0x2f4], 0
je 0x418a1a
cmp byte [esi + 0x2f6], 0
je 0x418a1a
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x2d8]
test eax, eax
je 0x418a2d
push eax
call fcn.0045d506
add esp, 4
mov esi, dword [esi + 0x2d4]
test esi, esi
je 0x418a40
push esi
call fcn.0045d506
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x418d30
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4709d8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
push edi
mov eax, dword [0x489348]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
call edx
mov ebp, eax
push ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x2c], 0
cmp byte [esi + 0x452], 0
je 0x418e53
cmp byte [esi + 0x451], 0
mov edi, dword [esi + 0xec]
mov al, 7
mov byte [esi + 0x452], 0
mov byte [esp + 0x18], al
jne 0x418db1
mov byte [esp + 0x19], 6
cmp byte [edi + 0xc], 0
je 0x418dd6
mov ecx, dword [edi + 8]
cmp byte [ecx + 0x21], 0
jmp 0x418dc2
mov byte [esp + 0x19], al
cmp byte [edi + 0xc], 0
je 0x418dd6
mov edx, dword [edi + 8]
cmp byte [edx + 0x21], 0
je 0x418dd6
mov byte [esp + 0x13], al
mov ecx, 1
lea eax, [esp + 0x13]
call fcn.0044a300
mov ecx, 0xc
lea eax, [esp + 0x18]
call fcn.0044a300
mov eax, dword [esi + 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x2d4]
test eax, eax
je 0x418e04
push eax
call fcn.0045d506
add esp, 4
mov eax, dword [esi + 0x2d8]
test eax, eax
je 0x418e17
push eax
call fcn.0045d506
add esp, 4
add esi, 0x2f7
push 0x5c
push esi
call fcn.0045e2ff
push 9
inc eax
push str._UVNCDIR_
push eax
call fcn.0045df4e
add esp, 0x14
test eax, eax
jne 0x418e53
push 0x2c
push esi
call fcn.0045e2ff
add esp, 8
test eax, eax
je 0x418e4c
mov byte [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret

Function at 0x418e70
Capabilities:
Get common file path

Disassembly:
sub esp, 8
push ebx
lea eax, [esp + 8]
push eax
xor bl, bl
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x418e8e
xor al, al
pop ebx
add esp, 8
ret 8
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x418eca
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov ecx, dword [esp + 4]
test eax, eax
mov eax, dword [esp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
setne bl
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, bl
pop ebx
add esp, 8
ret 8
Function at 0x419120
Capabilities:
Delete file

Disassembly:
sub esp, 0x310
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x30c], eax
push ebp
mov ebp, dword [esp + 0x318]
cmp byte [ebp + 0x2f4], 0
jne 0x419216
push 0x5c
push ebx
call fcn.0045e2ff
push 9
inc eax
push str._UVNCDIR_
push eax
call fcn.0045df4e
add esp, 0x14
test eax, eax
jne 0x419216
lea edx, [esp + 0x108]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x419175
push esi
push edi
lea eax, [esp + 0x110]
push 0x5c
push eax
call fcn.0045e2ff
mov esi, eax
inc esi
push 0x2d
push esi
call fcn.0045e0eb
inc eax
lea edx, [esp + 0x1c]
add esp, 0x10
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4191a5
lea ecx, [esp + 0xc]
push 0x2e
push ecx
call fcn.0045e2ff
add esp, 8
mov byte [eax], 0
test esi, esi
je 0x4191c8
mov byte [esi], 0
lea eax, [esp + 0xc]
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4191d0
lea edi, [esp + 0x110]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4191e1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
lea edx, [esp + 0x114]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x178]
push edx
call fcn.0044beb0
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov ecx, dword [esp + 0x310]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0045c77f
add esp, 0x310
ret 4
Function at 0x41c110
Capabilities:
Create thread

Disassembly:
sub esp, 0x38
push ebx
xor ebx, ebx
cmp word [0x4a66f8], bx
jne 0x41c198
mov eax, dword [0x4a5458]
push ebx
mov dword [esp + 0xc], 0x30
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0x41cc40
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], str.WinVNC_desktop_sink
mov dword [esp + 0x38], ebx
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov word [0x4a66f8], ax
cmp ax, bx
jne 0x41c198
push str.._vncdesktop.cpp_:_failed_to_register_window_class_n
xor ecx, ecx
mov eax, 0x48b3f0
call fcn.00401000
add esp, 4
xor eax, eax
pop ebx
add esp, 0x38
ret
mov edx, dword [0x4a5458]
push ebx
push edx
push ebx
push ebx
push 0xc8
push 0x190
push accept
push accept
push 0xcf0000
push str.WinVNC
push str.WinVNC_desktop_sink
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [esi + 0xdbd8], eax
cmp eax, ebx
jne 0x41c1dd
push str.._vncdesktop.cpp_:_failed_to_create_hook_window_n
jmp 0x41c182
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [esi + 0xdbd8]
push eax
call dword [sym.imp.USER32.dll_SetClipboardViewer]
mov dword [esi + 0xdbe0], eax
mov eax, dword [esi + 0xe0d8]
mov byte [esi + 0xb8], bl
cmp eax, ebx
je 0x41c24e
cmp dword [eax + 8], ebx
jne 0x41c22d
mov dword [esi + 0xe10c], 1
mov dword [esi + 0xe110], 1
mov eax, 1
pop ebx
add esp, 0x38
ret
mov edx, dword [esi + 0xdbd8]
lea ecx, [esp + 4]
push ecx
push ebx
push edx
push 0x41c050
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebx
add esp, 0x38
ret

Function at 0x41c7c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov eax, ebp
push edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c7d0
sub eax, edx
mov edi, eax
lea eax, [edi + edi + 1]
push eax
call fcn.0045cadd
mov ebx, eax
add esp, 4
xor esi, esi
xor eax, eax
test edi, edi
jle 0x41c809
cmp byte [eax + ebp], 0xa
jne 0x41c7fd
mov byte [esi + ebx], 0xd
inc esi
mov cl, byte [eax + ebp]
mov byte [esi + ebx], cl
inc eax
inc esi
cmp eax, edi
jl 0x41c7f2
mov edx, dword [esp + 0x14]
mov byte [esi + ebx], 0
mov eax, dword [edx + 0xdbd8]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41c862
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x41c862
inc esi
push esi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x41c862
push edi
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov cl, byte [esi]
mov byte [eax], cl
inc esi
inc eax
test cl, cl
jne 0x41c848
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
call fcn.0045d506
add esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x41d270
Capabilities:
Create thread
Power down monitor

Disassembly:
sub esp, 8
push edi
push str.user32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SetLayeredWindowAttributes
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x41d2a1
mov ecx, dword [esi + 0xdbd0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x26c]
push 0
call edx
mov ecx, dword [esi + 0xdbd0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x270]
call edx
mov ecx, str.true
test eax, eax
jne 0x41d2bf
mov ecx, str.false
mov eax, 0x47d8ac
test bl, bl
jne 0x41d2cd
mov eax, 0x47d8b0
push ecx
push eax
push str.._vncdesktop.cpp_:_SetBlankMonitor:_monitor__s__using_alpha__s_n
mov ecx, 9
mov eax, 0x48b3f0
call fcn.00401000
mov ecx, dword [esi + 0xdbd0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1e0]
add esp, 0xc
call edx
test eax, eax
je 0x41d430
mov ecx, dword [esi + 0xdbd0]
test bl, bl
je 0x41d3d6
mov eax, dword [ecx]
mov edx, dword [eax + 0x270]
call edx
test eax, eax
je 0x41d379
mov eax, dword [esi + 0xe0d8]
test eax, eax
je 0x41d33b
cmp dword [eax + 8], 0
jne 0x41d379
mov eax, 1
mov dword [esi + 0xe10c], eax
mov dword [esi + 0xe110], eax
lea edx, [esp + 8]
push edx
push 0
push 0
push 0x4014c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0xdbcc], 0
mov dword [esi + 0xdbcc], 0
setne al
mov byte [esi + 0xe100], al
pop edi
add esp, 8
ret
cmp dword [0x48a140], 2
je 0x41d33b
push 0
push 0x100
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov edi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
lea eax, [esi + 0xe0fc]
push eax
push 0
push 0x50
call edi
push 0
push 0
push 0x64
push 0x52
call edi
push 0
push 0
push 1
push 0x56
call edi
mov ecx, dword [esi + 0xdbd8]
push 2
push 0xf170
push 0x112
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
add esp, 8
ret
mov edx, dword [ecx]
mov eax, dword [edx + 0x270]
call eax
test eax, eax
je 0x41d435
mov eax, dword [esi + 0xe0d8]
test eax, eax
je 0x41d405
cmp dword [eax + 8], 0
jne 0x41d435
mov eax, 1
mov dword [esi + 0xe10c], eax
mov dword [esi + 0xe110], eax
push 0
push str.blackscreen
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x41d423
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
movzx ecx, byte [esi + 0xe100]
mov dword [esi + 0xdbcc], ecx
pop edi
add esp, 8
ret
cmp dword [0x48a140], 2
je 0x41d405
mov eax, dword [esi + 0xe0fc]
mov edi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x41d457
push 0
push 0
push eax
push 0x52
call edi
push 0
push 0
push 0
push 0x56
call edi
mov eax, dword [esi + 0xdbd8]
test eax, eax
je 0x41d47e
push 0xffffffffffffffff
push 0xf170
push 0x112
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push str.blackscreen
mov dword [esi + 0xe0fc], 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x41d430
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
add esp, 8
ret