joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40df8e
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
cmp dword [ebp + 8], 0
je 0x40dfa8
push dword [ebp + 8]
push 0x40df20
call sub.USER32.dll_EnumWindows
jmp 0x40dfdf
mov edi, dword [0x414250]
jmp 0x40dfdb
mov esi, dword [edi]
call sub.KERNEL32.DLL_GetCurrentThreadId
cmp dword [edi + 8], eax
jne 0x40dfd9
push 1
push dword [edi + 0xc]
call sub.USER32.dll_EnableWindow
mov eax, edi
add eax, 8
push eax
push 0x414250
call fcn.00410940
add esp, 8
mov edi, esi
or edi, edi
jne 0x40dfb0
pop edi
pop esi
pop ebp
ret 4

Function at 0x40e140
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
or esi, esi
je 0x40e218
mov dword [ebp - 0x40], esi
push esi
call sub.CRTDLL.dll_strlen
pop ecx
lea edi, [eax + esi - 1]
jmp 0x40e16a
dec edi
cmp edi, esi
jbe 0x40e173
cmp byte [edi], 0x5c
jne 0x40e169
cmp edi, esi
jbe 0x40e1a9
mov byte [edi], 0
push esi
lea eax, [ebp - 0x240]
push eax
call sub.CRTDLL.dll_strcpy
push 0x414266
lea eax, [ebp - 0x240]
push eax
call sub.CRTDLL.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x240]
mov dword [ebp - 0x40], eax
mov byte [edi], 0x5c
jmp 0x40e1ad
and dword [ebp - 0x40], 0
mov eax, dword [ebp + 0x10]
or eax, eax
je 0x40e1bc
cmp byte [eax], 0
je 0x40e1bc
mov dword [ebp - 0x40], eax
xor edi, edi
inc edi
test byte [ebp + 0x14], 2
je 0x40e1c7
xor edi, edi
mov dword [ebp - joySetThreshold], 0x3c
mov dword [ebp - 0x38], reloc.winmm.dll_joySetThreshold
mov dword [ebp - 0x20], edi
lea eax, str.Open
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
call sub.SHELL32.DLL_ShellExecuteExA
mov ebx, eax
or eax, eax
je 0x40e218
cmp dword [ebp - 4], 0
je 0x40e218
test byte [ebp + 0x14], 1
je 0x40e215
push 0xffffffffffffffff
push dword [ebp - 4]
call sub.KERNEL32.DLL_WaitForSingleObject
mov ebx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x366277de
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x53b87752
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40288e
pop dword [ebp - 8]
mov eax, 0xa1ce92c1
add eax, 0x5e7195cd
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x961df9e8
sub dword [ebp - 0x18], 0x47cbb49d
mov dword [ebp - 0x14], 0xda87e6da
add dword [ebp - 0x14], 0x57ab656b
mov dword [ebp - 0x10], 0xfaac224c
sub dword [ebp - 0x10], 0xae5fde1e
mov dword [ebp - 0xc], 0x2a8157b3
sub dword [ebp - 0xc], 0x2a8157b3
lea eax, [ebp - 0x18]
push eax
mov eax, 0x137fe023
sub eax, 0x133f6fbf
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xb9741879
sub dword [ebp - 0x18], 0x4501af23
mov dword [ebp - 0x14], 0x1010cd69
sub dword [ebp - 0x14], 0xcea46bf4
mov dword [ebp - 0x10], 0x28a191fd
add dword [ebp - 0x10], 0x3acdda6f
mov dword [ebp - 0xc], 0x25543692
sub dword [ebp - 0xc], 0x25543692
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3a37a
push 0
call eax
mov ecx, 0x46d570b8
add ecx, 0xb92ae5c4
mov esi, eax
mov edx, 0xc64510f6
sub edx, 0xc60410f6
add edx, dword [ebp - 8]
mov ebx, 0xc42011e5
sub ebx, 0xe3ea5590
mov edi, dword [edx]
add dword [ebp - 4], 0xe86f0930
sub edi, ebx
xor dword [ebp - 4], edi
mov dword [esi], edi
add dword [ebp - 4], ebx
add esi, 0xd5f50b22
sub esi, 0xd5f50b1e
add edx, 0xdedf923d
sub edx, 0xdedf9239
loop 0x4029ab
add eax, 0x94d43c68
sub eax, 0x94d2efa5
mov ebx, eax
add eax, 0xcc9631d8
sub eax, 0xcc9631d3
mov ecx, 0xbe59b085
add ecx, 0x41e64f7b
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x406b60
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x21c
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x15c]
test ecx, ecx
je 0x406b7e
push str.Connection_initiated
call fcn.00415a20
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x168], eax
jne 0x406bb4
push 1
push str.Error_creating_socket
lea ecx, [esp + 0x10]
call fcn.00416690
lea eax, [esp + 8]
push 0x43dbf8
push eax
call fcn.004305d1
lea edi, [esi + 0x58]
push edi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x406c0f
push edi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
jne 0x406c04
push edi
lea ecx, [esp + 0x28]
push str.Failed_to_get_server_address___s_._nDid_you_type_the_host_name_correctly_
push ecx
call fcn.004309ee
add esp, 0xc
lea edx, [esp + 0x24]
lea ecx, [esp + 8]
push 1
push edx
call fcn.00416690
lea eax, [esp + 8]
push 0x43dbf8
push eax
call fcn.004305d1
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x18], eax
mov cx, word [esi + 0x54]
mov word [esp + 0x14], 2
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0x16], ax
mov eax, dword [esi + 0x168]
lea edx, [esp + 0x14]
push 0x10
push edx
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x406c77
add esi, 0x3b38
lea ecx, [esp + 0x24]
push esi
push str.Failed_to_connect_to_server___.255s_
push ecx
call fcn.004309ee
add esp, 0xc
lea edx, [esp + 0x24]
lea ecx, [esp + 8]
push 1
push edx
call fcn.00416690
lea eax, [esp + 8]
push 0x43dbf8
push eax
call fcn.004305d1
mov ecx, dword [esi + 0x54]
push ecx
push edi
push str.Connected_to__s_port__d_n
push 0
push 0x44a3a0
call fcn.004063e0
mov ecx, dword [esi + 0x15c]
add esp, 0x14
test ecx, ecx
je 0x406ca4
push str.Connection_established
call fcn.00415a20
pop edi
pop esi
add esp, 0x21c
ret

Function at 0x406d00
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
mov ecx, dword [ecx + 0x168]
lea eax, [esp]
push 4
push eax
push 1
push 6
push ecx
mov dword [esp + 0x14], 1
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
je 0x406d46
push 1
push str.Error_disabling_Nagles_algorithm
lea ecx, [esp + 0xc]
call fcn.00416690
lea edx, [esp + 4]
push 0x43dbf8
push edx
call fcn.004305d1
add esp, 0x10
ret
Function at 0x41d2d0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
push str.options
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret

Function at 0x41d7b0
Capabilities:
Persist via app paths registry key
Set registry value

Disassembly:
sub esp, 0x328
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push esi
push edi
push eax
push str..vnc
push bind
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x41d7fb
mov ecx, dword [esp + 0xc]
push 0
push str.VncViewer.Config
push 1
push 0
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call edi
jmp 0x41d80f
push str.Failed_to_register_.vnc_extension_n
push 0
push 0x44a3a0
call fcn.004063e0
add esp, 0xc
lea eax, [esp + 0x14]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41d842
push str.Error_getting_vncviewer_filename_n
push eax
push 0x44a3a0
call fcn.004063e0
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x328
ret
lea ecx, [esp + 0x14]
push ecx
push str.Viewer_is__s_n
push 2
push 0x44a3a0
call fcn.004063e0
add esp, 0x10
lea edx, [esp + 0xc]
push edx
push str.VncViewer.Config
push bind
call ebx
test eax, eax
jne 0x41d921
push eax
push str.VNCviewer_Config_File
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
call esi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push str.DefaultIcon
push edx
call ebx
test eax, eax
jne 0x41d8cf
lea eax, [esp + 0x14]
lea ecx, [esp + 0x118]
push eax
push str._s_0
push ecx
call fcn.004309ee
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x118]
push 0
push edx
push 1
push 0
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push str.Shellopencommand
push eax
call ebx
test eax, eax
jne 0x41d91a
lea ecx, [esp + 0x14]
lea edx, [esp + 0x118]
push ecx
push str.__s___config____1_
push edx
call fcn.004309ee
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x118]
push 0
push eax
push 1
push 0
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call edi
mov eax, dword [esp + 0xc]
push eax
call edi
lea ecx, [esp + 0xc]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_vncviewer.exe
push reloc.WSOCK32.dll_bind
call ebx
test eax, eax
jne 0x41d94d
lea edx, [esp + 0x14]
push eax
push edx
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call edi
pop edi
pop esi
pop ebx
add esp, 0x328
ret

Function at 0x41fb70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
lea eax, [esp + 4]
lea ecx, [esp]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 4
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x41fbad
mov eax, dword [esp]
add esp, 8
ret 0xc
Function at 0x41fee0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x50
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp]
push ebx
push esi
push edi
mov edi, dword [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
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, 0x443c90
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x60]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
add esp, 0x50
ret 8

Function at 0x41ff80
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 0xc
Function at 0x41ffa0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
lea eax, [esp + 4]
push ebx
push eax
push str.SoftwareORLVNCviewerSettings
mov ebx, ecx
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x420169
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push edi
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.SkipFullScreenPrompt
push ecx
mov dword [esp + 0x2c], 4
call esi
test eax, eax
mov edi, 1
jne 0x420009
cmp dword [esp + 0xc], edi
sete dl
mov byte [ebx + 0x10d], dl
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.NoToolbar
push eax
call esi
test eax, eax
jne 0x420037
cmp dword [esp + 0xc], edi
sete cl
mov byte [ebx + 0x10c], cl
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.LogToFile
push edx
call esi
test eax, eax
jne 0x420065
cmp dword [esp + 0xc], edi
sete al
mov byte [ebx + 0x374], al
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.HistoryLimit
push ecx
call esi
test eax, eax
jne 0x420090
mov edx, dword [esp + 0xc]
mov dword [ebx + 0x110], edx
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.LocalCursor
push eax
call esi
test eax, eax
jne 0x4200bb
mov ecx, dword [esp + 0xc]
mov dword [ebx + 0x234], ecx
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.LogLevel
push edx
call esi
test eax, eax
jne 0x4200e6
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x370], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.ListenPort
push ecx
call esi
test eax, eax
jne 0x42010e
mov edx, dword [esp + 0xc]
mov dword [ebx + 8], edx
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.LogFileName
push eax
mov dword [esp + 0x2c], 0x104
call esi
test eax, eax
jne 0x42015c
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0x376]
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]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x114
ret
Function at 0x420180
Capabilities:
Set registry value

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push str.SoftwareORLVNCviewerSettings
mov ebx, ecx
push bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebx + 0x234]
push 4
push ecx
push 4
push 0
push str.LocalCursor
push edx
call ebp
mov ecx, dword [esp + 0x10]
lea eax, [ebx + 0x110]
push 4
push eax
push 4
push 0
push str.HistoryLimit
push ecx
call ebp
mov eax, dword [esp + 0x10]
lea edx, [ebx + 0x370]
push 4
push edx
push 4
push 0
push str.LogLevel
push eax
call ebp
lea edi, [ebx + 0x376]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x10]
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]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 1
push eax
push str.LogFileName
push edx
call ebp
mov ecx, dword [esp + 0x10]
lea eax, [ebx + 8]
push 4
push eax
push 4
push 0
push str.ListenPort
push ecx
call ebp
mov al, byte [ebx + 0x374]
xor edx, edx
test al, al
setne dl
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 4
push eax
push 4
push 0
push str.LogToFile
push ecx
call ebp
mov al, byte [ebx + 0x10d]
mov ecx, dword [esp + 0x10]
xor edx, edx
push 4
test al, al
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.SkipFullScreenPrompt
setne dl
push ecx
mov dword [esp + 0x2c], edx
call ebp
mov al, byte [ebx + 0x10c]
mov ecx, dword [esp + 0x10]
xor edx, edx
push 4
test al, al
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.NoToolbar
setne dl
push ecx
mov dword [esp + 0x2c], edx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
Function at 0x421130
Capabilities:
Set registry value

Disassembly:
mov eax, dword [str.VNCviewerBell]
sub esp, 0x104
lea ecx, [esp + 4]
push ebx
push esi
push edi
push eax
push str.AppEventsEventLabels_s
push ecx
call fcn.004309ee
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
add esp, 0xc
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push bind
call esi
test eax, eax
jne 0x4212bb
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push eax
push str.Bell
push 1
push eax
push ecx
call edi
mov edx, dword [esp + 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebx
mov ecx, dword [str.AppEventsSchemesAppsVNCviewer]
lea eax, [esp + 0xc]
push eax
push ecx
push bind
call esi
test eax, eax
jne 0x4212bb
mov edx, dword [str.VNCviewerBell]
mov eax, dword [str.AppEventsSchemesAppsVNCviewer]
push ebp
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s_s
push ecx
call fcn.004309ee
add esp, 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push bind
call esi
mov ecx, dword [esp + 0x10]
push 0
push str.Bell
push 1
push 0
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call ebx
mov eax, dword [str.VNCviewerBell]
mov ecx, dword [str.AppEventsSchemesAppsVNCviewer]
push eax
push ecx
lea edx, [esp + 0x1c]
push str._s_s.current
push edx
call fcn.004309ee
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push bind
call ebp
test eax, eax
je 0x421255
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push bind
call esi
mov ecx, dword [esp + 0x10]
push 0
push str.ding.wav
push 1
push 0
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call ebx
mov eax, dword [str.VNCviewerBell]
mov ecx, dword [str.AppEventsSchemesAppsVNCviewer]
push eax
push ecx
lea edx, [esp + 0x1c]
push str._s_s.default
push edx
call fcn.004309ee
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push bind
call ebp
test eax, eax
pop ebp
je 0x4212b4
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push bind
call esi
mov ecx, dword [esp + 0xc]
push 0
push str.ding.wav
push 1
push 0
push ecx
call edi
mov edx, dword [esp + 0xc]
push edx
call ebx
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x42166b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4216c3
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x44a130
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4216b6
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4216c5
xor eax, eax
pop esi
leave
ret 4
Function at 0x424d20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x424d50
push esi
call fcn.004280f0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x424d49
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x424dd3
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x424dbf
mov eax, dword [esi + 8]
test eax, eax
je 0x424d74
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x424dbb
cmp eax, 2
je 0x424dbf
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x424d67
cmp eax, 3
je 0x424d9a
cmp eax, 1
jne 0x424d67
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x424d67
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x424d67
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00424e00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x424df3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00424e00
add esp, 4
pop esi
ret

Function at 0x431580
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4315a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00435cba
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4315c3
test byte [esp + 8], 2
je 0x4315c3
call fcn.00435d2d
mov dword [eax], 0xd
call fcn.00435d36
mov dword [eax], 5
jmp 0x43159c
xor eax, eax
ret