joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426620
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
xor edi, edi
mov byte [ebp - 1], 0
mov dword [ebp - 8], edi
push 0
lea eax, [ebp - 8]
push eax
push 0x2000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x426652
cmp dword [ebp - 8], eax
je 0x426658
mov byte [ebp - 1], 1
jmp 0x426658
cmp dword [ebp - 8], 0
je 0x42667c
push 0
push 0
push 0
call fcn.004922b0
mov ecx, dword [ebp - 8]
push ecx
push esi
push eax
call fcn.004922b0
mov edx, dword [ebp + 8]
add esp, 0x18
mov dword [edi + edx], eax
add edi, 4
jmp 0x426630
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call fcn.004a9011
add esp, 4
cmp byte [ebp - 1], 0
je 0x4266a2
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x426710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [esi + 0x3a1], 0
push ebx
push edi
mov edi, eax
mov byte [ebp - 1], 1
je 0x426735
cmp byte [esi + 0x3a0], 0
je 0x42673f
mov ecx, esi
call fcn.00426860
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
test edi, edi
jns 0x42674d
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp edi, 0x2000
jg 0x426735
cmp dword [ebp + 8], 2
mov bl, 1
sete al
test al, al
je 0x426795
mov eax, dword [esi + 0x388]
push 1
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x426838
mov ecx, esi
mov byte [esi + 0x3a0], bl
call fcn.00426860
mov al, byte [ebp - 1]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x380]
mov edx, dword [esi + 0x10c]
push ecx
mov ecx, edi
call fcn.00460b80
cmp eax, 0xffffffff
sete al
mov byte [ebp - 1], al
test al, al
je 0x42684f
cmp dword [ebp + 8], 0
jne 0x4267c2
xor bl, bl
mov dword [ebp + 8], 0x2000
test bl, bl
je 0x426810
mov edx, dword [esi + 0x380]
mov ecx, dword [esi + 0x384]
push edi
push edx
lea eax, [ebp + 8]
push eax
push ecx
call fcn.00492520
add esp, 0x10
test eax, eax
je 0x426805
mov ecx, esi
mov byte [esi + 0x3a0], 1
call fcn.00426860
mov al, byte [ebp - 1]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x384]
jmp 0x426816
mov eax, dword [esi + 0x380]
push 0
lea edx, [esi + 0x398]
push edx
push edi
push eax
mov eax, dword [esi + 0x388]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4267ec
mov edi, dword [esi + 0x398]
add dword [esi + 0x39c], edi
inc dword [esi + 0x394]
mov al, byte [ebp - 1]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
mov byte [esi + 0x3a0], 1
call fcn.00426860
jmp 0x426832
Function at 0x426e00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6748
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
call edx
mov esi, eax
push esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 0x66
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp byte [ebx + 0x4fe], 0
jne 0x426e5d
push esi
jmp 0x426fcc
mov ecx, dword [ebx + 0x108]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1dc]
call edx
imul eax, eax, 0x3e8
mov edi, dword [ebx + 0x10c]
push eax
call fcn.00460690
mov esi, dword [ebx + 0x10c]
or edi, 0xffffffff
cmp byte [ebx + 0x4fd], 0
mov byte [ebx + 0x4fe], 0
mov al, 7
mov word [ebp - 0x1c], 0x607
je 0x426ea6
mov word [ebp - 0x1c], 0x707
cmp dword [esi + 8], edi
je 0x426f41
cmp byte [esi + 0x1a], 0
jne 0x426ee7
cmp byte [esi + 0x18], 0
je 0x426ee7
mov ecx, dword [esi + 0x10]
cmp byte [ecx + 0x21], 0
je 0x426ee7
mov byte [ebp - 0x1d], al
mov ecx, 1
lea eax, [ebp - 0x1d]
mov edx, esi
call fcn.004609b0
mov ecx, 0xc
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.004609b0
jmp 0x426f41
cmp byte [esi + 0x18], 0
mov ecx, 0xc
je 0x426f37
mov edx, dword [esi + 0x10]
cmp byte [edx + 0x21], 0
je 0x426f37
cmp byte [esi + 0x68], 0
je 0x426f1d
mov eax, dword [esi + 0x64]
add eax, dword [esi + 0x6c]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov edx, dword [ebp - 0x18]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 8], edx
add dword [esi + 0x6c], ecx
jmp 0x426f41
push ecx
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
call fcn.00460e80
mov ecx, dword [ebp - 0x24]
jmp 0x426f3a
lea eax, [ebp - 0x1c]
push ecx
push eax
call fcn.00460700
mov eax, dword [ebx + 0x4e8]
cmp eax, edi
je 0x426f58
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x4e8], edi
mov eax, dword [ebx + 0x380]
xor esi, esi
cmp eax, esi
je 0x426f73
push eax
call fcn.004a9011
add esp, 4
mov dword [ebx + 0x380], esi
mov eax, dword [ebx + 0x384]
cmp eax, esi
je 0x426f8c
push eax
call fcn.004a9011
add esp, 4
mov dword [ebx + 0x384], esi
add ebx, 0x3a4
push 0x5c
push ebx
call fcn.004ab543
push 9
inc eax
push str._UVNCDIR_
push eax
call fcn.004a93c0
add esp, 0x14
test eax, eax
jne 0x426fc8
push 0x2c
push ebx
call fcn.004ab543
add esp, 8
cmp eax, esi
je 0x426fc1
mov byte [eax], 0
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
Function at 0x427320
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp byte [eax + 0x3a0], 0
push esi
push edi
mov dword [ebp - 0x320], eax
jne 0x42742e
push 0x5c
push ebx
call fcn.004ab543
push 9
inc eax
push str._UVNCDIR_
push eax
call fcn.004a93c0
add esp, 0x14
test eax, eax
jne 0x42742e
lea edx, [ebp - 0x31c]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x427376
lea eax, [ebp - 0x31c]
push 0x5c
push eax
call fcn.004ab543
lea esi, [eax + 1]
push 0x2d
push esi
call fcn.004aa4de
inc eax
lea edx, [ebp - 0x114]
add esp, 0x10
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4273a5
lea ecx, [ebp - 0x114]
push 0x2e
push ecx
call fcn.004ab543
add esp, 8
mov byte [eax], 0
test esi, esi
je 0x4273ca
mov byte [esi], 0
lea eax, [ebp - 0x114]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4273d2
lea edi, [ebp - 0x31c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4273e2
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x320]
mov eax, dword [eax + 0x224]
push ebx
lea edx, [ebp - 0x31c]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.00463190
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret 4
Function at 0x42da90
Capabilities:
Terminate thread

Disassembly:
push ecx
cmp dword [esi + 0xe17c], 0
mov byte [esi + 0xe180], 1
mov eax, 9
mov ecx, 0x4ecb00
je 0x42db56
push str.vncdesktopsink.cpp_:_vncDesktop::Tell_initwindowthread_to_close__n
call fcn.00403230
mov eax, dword [esi + 0xdbb0]
add esp, 4
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ecx, dword [esi + 0xe17c]
push 0x7d0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x4ecb00
cmp eax, 0x102
jne 0x42db2e
push str.vncdesktopsink.cpp_:_vncDesktop::ERROR:__messageloop_blocked__n
xor eax, eax
call fcn.00403230
mov edx, dword [esi + 0xe17c]
add esp, 4
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0xe17c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xdc08], 0
mov dword [esi + 0xe17c], 0
pop ecx
ret
push str.vncdesktopsink.cpp_:_vncDesktop::_iniwindowthread_proper_closed__n
xor eax, eax
call fcn.00403230
mov ecx, dword [esi + 0xe17c]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xe17c], 0
pop ecx
ret
push str.vncdesktopsink.cpp_:_initwindowthread_already_closed__n
call fcn.00403230
add esp, 4
pop ecx
ret
Function at 0x42db70
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
xor ebx, ebx
mov edi, eax
push str.vncdesktopsink.cpp_:_StartInitWindowthread__n
lea eax, [ebx + 9]
mov ecx, 0x4ecb00
mov byte [esi + 0xe180], bl
call fcn.00403230
add esp, 4
lea eax, [ebp - 0x10c]
push eax
push pe_nt_image_headers32
lea ecx, [ebp - 0x108]
push ecx
push 2
push edi
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
test eax, eax
je 0x42dd29
mov ecx, str.Default
lea eax, [ebp - 0x108]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42dc00
cmp dl, bl
je 0x42dbfc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42dc00
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x42dbe0
xor eax, eax
jmp 0x42dc05
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
mov ecx, 0x4ecb00
mov eax, 9
jne 0x42dd1c
push str.vncdesktopsink.cpp_:_StartInitWindowthread_default_desk_n
call fcn.00403230
add esp, 4
cmp dword [esi + 0xe17c], ebx
jne 0x42dcee
mov edx, dword [esi + 0xdbac]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 0xdbb0]
push eax
push ebx
push esi
push 0x42dd40
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0xdbac]
push 0x2710
push ecx
mov dword [esi + 0xe17c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
mov ecx, 0x4ecb00
mov eax, 9
jne 0x42dcca
push str.vncdesktopsink.cpp_:_ERROR:_initwindowthread_failed_to_start__n
call fcn.00403230
mov eax, dword [esi + 0xe17c]
add esp, 4
cmp eax, ebx
je 0x42dcb4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0xe17c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xdc08], ebx
mov dword [esi + 0xe17c], ebx
mov byte [esi + 0xe180], bl
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
push str.vncdesktopsink.cpp_:_StartInitWindowthread_started_n
call fcn.00403230
mov byte [esi + 0xe180], 1
add esp, 4
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
push str.vncdesktopsink.cpp_:_StartInitWindowthread_reactivate_n
mov eax, 9
mov ecx, 0x4ecb00
call fcn.00403230
mov byte [esi + 0xe180], 1
add esp, 4
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
push str.vncdesktopsink.cpp_:_StartInitWindowthread_no_default_desk_n
call fcn.00403230
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
Function at 0x435720
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x20], eax
push str.vncencoder.cpp_:_remote_palette_data_requested_n
mov eax, 9
mov ecx, 0x4ecb00
call fcn.00403230
add esp, 4
cmp byte [esi + 0x13], 0
jne 0x435767
mov eax, esi
call fcn.004358f0
test eax, eax
je 0x4358a6
cmp byte [esi + 0x23], 0
jne 0x4358a6
cmp byte [esi + 0x13], 0
mov eax, 9
mov ecx, 0x4ecb00
je 0x435845
push str.vncencoder.cpp_:_generating_BGR233_palette_data_n
call fcn.00403230
mov cl, byte [esi + 0x30]
mov eax, dword [esi + 0xc]
mov ebx, 1
shl ebx, cl
lea edi, [esi + 0xc]
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
test eax, eax
je 0x4357b5
push eax
call fcn.004aa14e
add esp, 4
lea ecx, [ebx*4]
push ecx
call fcn.004aa188
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x43588b
xor edi, edi
test ebx, ebx
jle 0x43588b
lea ebx, [eax + 1]
lea esp, [esp]
movzx ecx, byte [esi + 0x3c]
movzx edx, word [esi + 0x38]
mov eax, edi
sar eax, cl
movzx ecx, word [esi + 0x38]
and eax, edx
imul eax, eax, 0xff
cdq
idiv ecx
add ebx, 4
mov byte [ebx - 5], al
movzx ecx, byte [esi + 0x3a]
movzx edx, word [esi + 0x34]
mov eax, edi
sar eax, cl
movzx ecx, word [esi + 0x34]
and eax, edx
imul eax, eax, 0xff
cdq
idiv ecx
mov byte [ebx - 3], al
movzx ecx, byte [esi + 0x3b]
movzx edx, word [esi + 0x36]
mov eax, edi
sar eax, cl
movzx ecx, word [esi + 0x36]
and eax, edx
imul eax, eax, 0xff
cdq
idiv ecx
inc edi
mov byte [ebx - 4], al
cmp edi, dword [ebp - 0x1c]
jl 0x4357e0
jmp 0x43588b
push str.vncencoder.cpp_:_generating_8_bit_palette_data_n
call fcn.00403230
add esp, 4
lea eax, [esi + 0xc]
lea edx, [ebp - 0x14]
push edx
add esi, 0x10
mov ecx, 0xff
push esi
push eax
mov dword [ebp - 0x14], 0x1001820
mov dword [ebp - 0xe], 0xff00ff
mov word [ebp - 0x10], cx
mov word [ebp - 0xa], 0x810
mov byte [ebp - 8], 0
mov dword [ebp - 0x18], eax
call dword [0x4ebeec]
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
test eax, eax
jne 0x4358bb
push str.vncencoder.cpp_:_failed_to_obtain_colour_map_data__n
mov ecx, 0x4ecb00
call fcn.00403230
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
lea edx, [ecx*4]
push edx
push eax
mov eax, dword [ebp - 0x20]
push eax
call fcn.004b29a0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret 8
Function at 0x436ef0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5268
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4ea5e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
xor edi, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x64], 6
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [ebp - 4], edi
push 0x414
mov dword [esi], vtable.vncEncodeTight.0
mov dword [esi + 0x1984], edi
mov dword [esi + 0x1988], edi
call fcn.004a8a24
mov dword [esi + 0x197c], eax
mov dword [esi + 0x198c], edi
add esp, 4
mov dword [esi + 0x1968], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43acc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5fb8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4ea5e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
xor ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x64], 6
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [ebp - 4], ebx
push 0x20001
mov dword [esi], vtable.vncEncodeUltra.0
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x94], 0x20000
call fcn.004a8a24
add esp, 4
mov dword [esi + 0x7c], eax
cmp eax, ebx
jne 0x43ad8a
push str.vncEncodeUltra.cpp_:_Memory_error
lea eax, [ebx + 9]
mov ecx, 0x4ecb00
call fcn.00403230
add esp, 4
mov ecx, dword [esi + 0x94]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + ecx + 8]
push ecx
call fcn.004a8a24
add esp, 4
mov dword [esi + 0x80], eax
cmp dword [esi + 0x7c], ebx
jne 0x43add0
push str.vncEncodeUltra.cpp_:_Memory_error
mov eax, 9
mov ecx, 0x4ecb00
call fcn.00403230
add esp, 4
mov eax, esi
mov byte [esi + 0xa8], bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43bec0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5f88
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4ea5e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
xor ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x64], 6
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [ebp - 4], ebx
push 0x20001
mov dword [esi], vtable.vncEncodeZlib.0
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0xe0], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov byte [esi + 0xcc], bl
mov dword [esi + 0xdc], 0x20000
call fcn.004a8a24
add esp, 4
mov dword [esi + 0x80], eax
cmp eax, ebx
jne 0x43bfa5
push str.vncEncodeZlib.cpp_:_Memory_error
lea eax, [ebx + 9]
mov ecx, 0x4ecb00
call fcn.00403230
add esp, 4
mov ecx, dword [esi + 0xdc]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + ecx + 8]
push ecx
call fcn.004a8a24
add esp, 4
mov dword [esi + 0x84], eax
cmp dword [esi + 0x80], ebx
jne 0x43bfee
push str.vncEncodeZlib.cpp_:_Memory_error
mov eax, 9
mov ecx, 0x4ecb00
call fcn.00403230
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43d330
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5f58
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ea5e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
xor edi, edi
or eax, 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x64], 6
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [ebp - 4], edi
push 0x20001
mov dword [esi], vtable.vncEncodeZlibHex.0
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0xf0], edi
mov dword [esi + 0xf4], edi
mov dword [esi + 0xf8], 0x20000
mov dword [esi + 0x88], eax
mov dword [esi + 0xc0], eax
call fcn.004a8a24
add esp, 4
mov dword [esi + 0xf0], eax
cmp eax, edi
jne 0x43d402
push str.vncEncodeZlibHex.cpp_:_Memory_error
lea eax, [edi + 9]
mov ecx, 0x4ecb00
call fcn.00403230
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x445f90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5f26
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4ea5e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
xor ebx, ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x40], ebx
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x50], ebx
mov dword [edi + 0x64], 6
mov dword [edi + 0x68], 0xffffffff
mov dword [edi + 0x6c], ebx
mov dword [edi + 0x70], ebx
mov dword [edi + 0x74], ebx
mov dword [ebp - 4], ebx
push 0x10
mov dword [edi], vtable.vncEncodeZRLE.0
call fcn.004a90a2
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
cmp esi, ebx
je 0x44604a
mov byte [ebp - 4], 2
push 0x400
mov dword [esi], vtable.rdr::MemOutStream.0
call fcn.004a8a24
add esp, 4
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
add eax, 0x400
mov dword [esi + 8], eax
jmp 0x44604c
xor esi, esi
mov byte [ebp - 4], bl
push 0x20
mov dword [edi + 0x80], esi
call fcn.004a90a2
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x446076
push 0xffffffffffffffff
push ebx
mov esi, eax
call fcn.004633b0
jmp 0x446078
xor eax, eax
mov byte [ebp - 4], bl
push 0x4004
mov dword [edi + 0x7c], eax
call fcn.004a8a24
mov dword [edi + 0x84], eax
add esp, 4
mov dword [edi + 0x78], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4465c0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5ed1
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x124]
push ecx
xor ebx, ebx
push ebx
push ebx
lea edx, [ebp - 0x11c]
mov dword [ebp - 0x118], eax
push edx
inc eax
push eax
mov dword [ebp - 0x11c], 1
mov dword [ebp - 0x124], 2
mov dword [ebp - 0x120], ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jg 0x446635
xor eax, eax
jmp 0x4466da
lea eax, [ebp - 0x190]
push eax
mov dword [ebp - method.omni_thread.virtual_0], vtable.omni_thread.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 1
lea esi, [ebp - 0x194]
call fcn.00480c30
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - method.vncHTTPConnectThread.virtual_0], vtable.vncHTTPConnectThread.0
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 1
mov dword [ebp - 0x130], ecx
push edi
mov ecx, esi
call fcn.00446980
cmp dword [edi + 8], ebx
jl 0x4466b2
push str.vsocket.cpp_:_shutdown_socket_n
mov eax, 0xa
mov ecx, 0x4ecb00
call fcn.00403230
mov edx, dword [edi + 8]
add esp, 4
push 2
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov esi, edi
call fcn.00460250
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
lea ecx, [ebp - 0x194]
mov dword [ebp - 4], 0xffffffff
call fcn.00480cc0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret