joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x46a75199
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..rsrc
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x46f5172e
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.004014fb
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x401ca0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x84, 0
sub ebp, 0x82
mov esi, eax
mov edx, dword [0x404080]
or dl, 1
imul edx, eax
mov eax, dword [0x404080]
sub eax, edx
mov ebx, esi
mov edx, eax
mov eax, 0x404084
call fcn.00401be9
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, esi
or al, 0x40
mov edi, 0x4034ed
push eax
sub edi, fcn.00402c97
push edi
push fcn.00402c97
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x401d1c
mov eax, fcn.00402c97
mov ebx, esi
mov edx, edi
call fcn.00401be9
mov edx, 0x1c000
mov eax, 0x404084
mov ebx, esi
call section.AUTO
lea edx, [ebp - 2]
mov eax, esi
mov dword [ebp - 2], 1
call fcn.0040189e
lea edx, [esi + 0x1c000]
add edx, esi
lea eax, [esi - 1]
lea ebx, [ebp - 2]
and eax, 0x404084
call fcn.00402c97
lea esp, [ebp + 0x82]
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x40c0a5
Capabilities:
Print debug messages
Set environment variable

Disassembly:
push esi
push 0xff78
push 0x40
mov esi, ecx
call dword [0x41704c]
mov edx, dword [esi]
mov ecx, eax
call fcn.0040fc69
mov edx, dword [0x41740c]
mov ecx, eax
call fcn.0040fc69
mov edx, dword [0x41740c]
mov ecx, eax
call fcn.0040fc69
mov edx, dword [0x41740c]
mov ecx, eax
pop esi
jmp fcn.0040fc69
Function at 0x40ea07
Capabilities:
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 2
pop esi
push str.ry5squyx
push str.s3ykm8l6
call edi
sub esi, 1
jne 0x40ea1c
push str.WTMR_vw2k9cb7
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push str.regf5p8hyeo
push 0x80000001
call ebx
push 0x5c
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push str.h7s40k26
push str.00qcs588
mov esi, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push 0x20019
push esi
push str.regmh0yux4u
push 0x80000001
call ebx
push str.MTXp6l6fzp9
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40eaba
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push str.869hbxmr
push str.mzrzrmth
call edi
jmp 0x40eadb
push str.log:_h0f07nyn
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.reg8b6exg06
push 0x80000001
call ebx
push str.WTMR_y3th0kix
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.log:_2jej4iqq
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test esi, esi
je 0x40eb03
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
jmp 0x40eb09
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.ev_q4ucthp9
xor esi, esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x150]
push eax
push str.s_r78eaf68
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.SMPHR_sjuk8jtd
push 1
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push esi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x40eb7a
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.regv0i092fq
push 0x80000001
call ebx
jmp 0x40eb86
push str.qqfkypih
push str.90qzqyhk
call edi
mov edi, str.Awaken1337chert
push edi
push esi
push 0x1f0001
call dword [0x417170]
test eax, eax
jne 0x40ebaa
push edi
push esi
push esi
call dword [0x417108]
xor eax, eax
inc eax
jmp 0x40ebac
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40edab
Capabilities:
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x39c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
push edi
push 0x997
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.SMPHR_g7hsdhtp
push 1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push str.log:_lgtpy4hq
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x40ee11
push str.iv485re1
push str.6wechbbs
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.WTMR_8pnw7ntn
push 1
push edi
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
test eax, eax
je 0x40ee2e
push eax
call edi
push str.WTMR_9yw1kuzr
push 1
push 0
call esi
push str.log:_7xb6ksmv
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call edi
push str.3gp23vm9
push str.6etsi2yf
call ebx
lea eax, [ebp - 0x148]
push eax
push str.s_ejb64jwq
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.XMLpcg40jzc
push 1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push str.log:_aeda9ywt
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.MTXk54wajkl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40eeac
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push str.ev_u5latmcd
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea eax, [ebp - 0x398]
push eax
push dword [ebp - 4]
call dword [0x417020]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
setne cl
pop esi
mov eax, ecx
pop ebx
leave
ret
Function at 0x40f7fa
Capabilities:
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push str.ev_mwlckks4
xor ebx, ebx
mov dword [ebp - 8], edx
push ebx
push 1
push ebx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push str.g80ghyj7
push str.9dn9ixt6
call edi
push str.WTMR_xllvi1zq
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.log:_ad0nnw50
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
test esi, esi
je 0x40f864
push esi
call ebx
push str.MTXfv57b89w
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40f88c
push str.rqosfwwo
push str.2nzstxud
call edi
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push str.WTMR_dl2pyuqr
push 1
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push eax
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push 0x798
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push str.XMLx9w8e9ar
push 1
push esi
push esi
call edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 1
push eax
call esi
call ebx
push str.SMPHR_f8nyo2d9
push 1
xor ebx, ebx
push ebx
push ebx
call edi
push ebx
push 1
push eax
call esi
test eax, eax
jne 0x40f90a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.regnnjwwep9
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [ebp - 4]
push ebx
call dword [0x417090]
lea eax, [eax*2 + 0x80]
push eax
push 0x40
call dword [0x41704c]
mov ecx, dword [ebp + 8]
mov esi, eax
mov edi, dword [ebp + 0xc]
cmp ecx, edi
jge 0x40f941
mov edx, esi
mov ax, word [ebx + ecx*2]
inc ecx
mov word [edx], ax
lea edx, [edx + 2]
cmp ecx, edi
jl 0x40f932
xor eax, eax
mov word [esi + edi*2 + 2], ax
mov edi, dword [ebp - 8]
push esi
push dword [edi]
call dword [0x417144]
mov dword [edi], eax
test esi, esi
je 0x40f961
push esi
call dword [0x4170cc]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x419098]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x401013
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x401054
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x419140]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x401086
mov bl, byte [esp + ecx + 0x4c]
jmp 0x40108a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x40107b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4010a8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4010ac
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x40109d
xor ecx, ecx
mov eax, 0x4190a8
xor ebx, ebx
mov bl, byte [ecx + 0x419150]
cmp byte [esp + ebx + 0x14], 0
je 0x4010d7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x419168]
cmp byte [esp + ebx + 0x14], 0
je 0x4010ee
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4010be
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x401047
lea edx, [esp + 0x84]
push edx
call fcn.00401130
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4016b0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, ecx
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x4016d5
push str.Error_opening_log_file_n
push edi
push ebp
mov byte [ebp + 5], 1
mov byte [ebp + 4], 0
call fcn.00401950
add esp, 0xc
pop edi
pop ebp
ret
mov al, byte [ebp + 0x14]
push ebx
test al, al
mov byte [ebp + 4], 1
jne 0x40175e
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 4
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40175e
mov edi, dword [ebp + 0x10]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, ebx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..bak
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
mov ecx, dword [ebp + 0x10]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
pop ebx
jne 0x40179f
mov edx, dword [ebp + 0x10]
mov byte [ebp + 5], 1
push edx
push str.Error_opening_log_file__s_n
push 0
push ebp
mov byte [ebp + 4], 0
call fcn.00401950
add esp, 0x10
mov al, byte [ebp + 0x14]
test al, al
je 0x4017b9
mov eax, dword [ebp + 0xc]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
pop ebp
ret
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop ebp
ret
Function at 0x4017f0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
sub esp, 0x404
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call dword [sym.imp.MSVCRT.dll_time]
mov edx, dword [esi + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteConsoleA]
lea ecx, [esi + 0x18]
add esp, 4
cmp eax, edx
je 0x401884
push ecx
mov dword [ecx], eax
call dword [sym.imp.MSVCRT.dll_ctime]
mov ebx, eax
mov al, byte [esi + 5]
add esp, 4
test al, al
je 0x401833
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, byte [esi + 6]
test al, al
je 0x40185a
lea eax, [esp + 0x10]
push 0
push eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call ebp
mov al, byte [esi + 4]
test al, al
je 0x401884
mov edx, dword [esi + 0xc]
test edx, edx
je 0x401884
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x41c]
mov eax, dword [esp + 0x418]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_vsprintf]
mov al, byte [esi + 5]
add esp, 0xc
test al, al
je 0x4018b4
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, byte [esi + 6]
test al, al
je 0x4018e1
lea eax, [esp + 0x10]
push 0
push eax
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x20]
push ecx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call ebp
mov al, byte [esi + 4]
test al, al
je 0x401911
mov esi, dword [esi + 0xc]
test esi, esi
je 0x401911
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
push 0
dec ecx
push edx
lea eax, [esp + 0x1c]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret 8

Function at 0x404960
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
lea eax, [esp]
push esi
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov esi, dword [esp + 0x108]
mov ecx, esi
and ecx, 0xff
test byte [esp + ecx + 4], 1
je 0x4049a2
push edi
mov edi, dword [sym.imp.USER32.dll_keybd_event]
push 0
push 1
push 0
push esi
call edi
push 0
push 3
push 0
push esi
call edi
pop edi
pop esi
add esp, 0x100
ret
Function at 0x407a10
Capabilities:
Capture screenshot

Disassembly:
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov esi, ecx
push ebp
call dword [sym.imp.USER32.dll_GetDC]
cmp eax, ebp
mov dword [esi + 0x20], eax
je 0x407b03
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push eax
mov dword [esi + 0x44], ebp
mov dword [esi + 0x40], ebp
call edi
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x20]
push 0xa
push eax
call edi
mov ecx, dword [esi + 0x48]
push eax
push ecx
push 0x41ac98
push 9
push 0x41d688
mov dword [esi + 0x4c], eax
call fcn.00401950
mov edx, dword [esi + 0x20]
add esp, 0x14
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, ebp
mov dword [esi + 0x1c], eax
jne 0x407a81
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41ac50
jmp 0x407af5
mov eax, dword [esi + 0x20]
push 0x26
push eax
call edi
test al, 1
jne 0x407aa9
mov ecx, dword [0x41d398]
push 0x10
push ecx
push 0x41ac10
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov edx, dword [esi + 0x1c]
push 0x26
push edx
call edi
test al, 0x80
jne 0x407ad0
mov eax, dword [0x41d398]
push 0x10
push eax
push 0x41abc8
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
mov eax, dword [esi + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
cmp eax, ebp
mov dword [esi + 0x24], eax
jne 0x407b0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41ab80
push ebp
push 0x41d688
call fcn.00401950
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0x41ab40
push 9
push 0x41d688
call fcn.00401950
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x1c]
add esp, 0xc
lea ebx, [esi + 0x54]
mov word [esi + 0x62], bp
push ebp
push ebx
push ebp
push 1
push ebp
mov ebp, dword [sym.imp.GDI32.dll_GetDIBits]
push ecx
push edx
mov dword [ebx], 0x28
call ebp
test eax, eax
jne 0x407b4a
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
push 0
push ebx
push 0
push 1
push 0
push eax
push ecx
call ebp
test eax, eax
jne 0x407b66
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x41ab00
push 9
push 0x41d688
call fcn.00401950
mov edx, dword [esi + 0x20]
add esp, 0xc
push 0xe
push edx
call edi
push eax
push str.D:SMC_srcconsole_vncwinvnc_vncDesktop.cpp_:_DBG:
push 9
push 0x41d688
call fcn.00401950
mov eax, dword [esi + 0x1c]
add esp, 0x10
push 0xe
push eax
call edi
push eax
push 0x41aa68
push 9
push 0x41d688
call fcn.00401950
mov ecx, dword [esi + 0x1c]
add esp, 0x10
push 0xe
push ecx
call edi
cmp eax, 1
je 0x407bde
mov edx, dword [0x41d398]
push 0x10
push edx
push 0x41aa1c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esi + 0x5c]
push 0x26
cdq
xor eax, edx
sub eax, edx
neg eax
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x1c]
push eax
call edi
not eax
shr eax, 8
and eax, 1
pop edi
mov dword [esi + 0x50], eax
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x4085b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword [ecx + 0xc]
push ebx
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x408624
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x408624
mov esi, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x408624
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
ret 4

Function at 0x40c2d0
Capabilities:
Check mutex on windows

Disassembly:
push str.WinVNC_Win32_Instance_Mutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
jne 0x40c2e4
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
ret

Function at 0x40c340
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push esi
push edi
mov edi, ebx
and edi, 0xff
push edi
call ebp
mov esi, dword [esp + 0x18]
shr eax, 0xf
and eax, 1
je 0x40c3d1
test esi, esi
jne 0x40c3cc
mov ecx, 0x41b94c
test eax, eax
mov eax, 0x41b948
jne 0x40c37c
mov eax, 0x41b94c
push ecx
push eax
push edi
push 0x41b8fc
push 9
push 0x41d688
call fcn.00401950
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 2
push esi
push ebx
call fcn.0040c310
add esp, 0x20
push edi
call ebp
test ah, 0x80
mov eax, 0x41b948
jne 0x40c3b6
mov eax, 0x41b94c
push eax
push edi
push 0x41b8bc
push 9
push 0x41d688
call fcn.00401950
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
ret
test esi, esi
je 0x40c3cc
mov ecx, 0x41b948
jmp 0x40c36e