joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c150
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4bbe68
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48]
lea eax, [esp + 0x18]
push eax
mov edi, 0x400
call fcn.00477d50
mov dword [esp + 0x3c], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x41c1a0
lea eax, [edi + 1]
lea ecx, [esp + 0x18]
call fcn.00403440
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x24]
sar ecx, 1
jne 0x41c1bd
call fcn.00480e22
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 4]
push edi
push edx
push ebp
push ecx
call ebx
mov esi, eax
test esi, esi
je 0x41c1e4
cmp esi, 0xea
jne 0x41c205
add edi, 0x400
jmp 0x41c1a0
mov edx, dword [esp + 0x28]
sub edx, dword [esp + 0x24]
sar edx, 1
jne 0x41c1f5
call fcn.00480e22
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
mov edx, dword [esp + 0x24]
mov eax, dword [eax + 4]
push edx
call eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41c216
push eax
call fcn.00480e32
add esp, 4
mov ecx, dword [esp + 0x18]
xor eax, eax
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.00480e32
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0xc

Function at 0x41c460
Capabilities:
Migrate process to active window station

Disassembly:
push 0xffffffffffffffff
push 0x4c13b8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
push str.TvnWindowsApplicationClass
lea ecx, [esi + 0xc]
push ecx
mov dword [esi], vtable.WindowsApplication.0
mov dword [esi + 4], eax
mov dword [esi + 8], 0
call fcn.004049f0
push 0x10000000
push 1
mov dword [esp + 0x5c], 0
push 0x559b6c
mov dword [esi], vtable.LocalWindowsApplication.0
call dword [sym.imp.USER32.dll_OpenWindowStationW]
mov edi, eax
test edi, edi
jne 0x41c4ea
lea edx, [esp + 0xc]
push edx
call fcn.00419ac0
push 0x56e788
lea eax, [esp + 0x10]
push eax
call fcn.004841dc
push edi
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
push edi
test eax, eax
jne 0x41c515
call dword [sym.imp.USER32.dll_CloseWindowStation]
lea ecx, [esp + 0xc]
push ecx
call fcn.00419ac0
push 0x56e788
lea edx, [esp + 0x10]
push edx
call fcn.004841dc
call dword [sym.imp.USER32.dll_CloseWindowStation]
push 0x400001cf
push 1
push 0
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_SetThreadDesktop]
push edi
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x4c
ret 8
Function at 0x41c620
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80
push 0x3c
lea eax, [esp + 8]
push 0
push eax
call fcn.00483dc0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add esp, 0xc
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x3c
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x440
mov dword [esp + 0x14], 0x559b9c
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x41c69b
lea ecx, [esp + 0x40]
push ecx
call fcn.00419ac0
push 0x56e788
lea edx, [esp + 0x44]
push edx
call fcn.004841dc
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x41c6c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push edi
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x41c6fe
lea ecx, [esp + 8]
push ecx
mov edi, eax
call fcn.00419b30
push 0x56e788
lea edx, [esp + 0xc]
push edx
call fcn.004841dc
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41cbc0
Capabilities:
Create process on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c135b
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp eax, ebx
je 0x41cc09
push eax
call edi
mov dword [esi + 0x3c], ebx
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x41cc16
push eax
call edi
mov dword [esi + 0x40], ebx
push 0x44
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.00483dc0
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x4c]
add esp, 0xc
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x7c], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
cmp eax, ebx
jne 0x41cc4f
cmp ecx, ebx
jne 0x41cc4f
cmp edx, ebx
je 0x41cc57
or dword [esp + 0x68], 0x100
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0041cdb0
mov dword [esp + 0xd0], ebx
mov eax, dword [esp + 0x20]
mov edi, eax
cmp eax, dword [esp + 0x24]
jbe 0x41cc7b
call fcn.00480e22
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x41ccd3
call fcn.00480e22
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41cc94
call fcn.00480e22
movzx ecx, byte [esi + 0x54]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
push ebx
push ebx
push ebx
push ecx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41ccd7
lea edx, [esp + 0x84]
push edx
call fcn.00419ac0
push 0x56e788
lea eax, [esp + 0x88]
push eax
call fcn.004841dc
mov eax, dword [eax]
jmp 0x41cc8a
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x40], ecx
mov dword [esi + 0x3c], edx
mov dword [esp + 0x10], vtable.StringStorage.0
cmp eax, ebx
je 0x41ccfe
push eax
call fcn.00480e32
add esp, 4
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00480e32
add esp, 4
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d1f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c12d6
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x44]
mov edx, dword [eax + 4]
lea ebp, [edi + 0x44]
mov ecx, ebp
mov dword [esp + 0x18], vtable.AutoLock.0
mov dword [esp + 0x1c], ebp
call edx
mov bl, 1
lea ecx, [esp + 0x20]
mov dword [esp + 0xa0], 0
mov byte [esp + 0x17], bl
call fcn.00404990
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa0], bl
call fcn.00404990
mov byte [esp + 0xa0], 2
mov eax, dword [edi + 0x34]
cmp eax, 0xffffffff
je 0x41d2b1
cmp byte [edi + 0x3c], 0
je 0x41d2b1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41d29d
lea eax, [esp + 0x20]
push eax
push str.Cannot_close_anonymous_pipe_write_handle.
call fcn.0041af50
add esp, 8
xor bl, bl
mov ecx, dword [edi + 0x34]
mov esi, dword [edi + 0x70]
push ecx
push str.Closed_m_hWrite__p__AnonymousPipe_handle
call fcn.00423a10
add esp, 8
mov eax, dword [edi + 0x38]
mov dword [edi + 0x34], 0xffffffff
cmp eax, 0xffffffff
je 0x41d2fc
cmp byte [edi + 0x3c], 0
je 0x41d2fc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41d2e8
lea edx, [esp + 0x20]
push edx
push str.Cannot_close_anonymous_pipe_read_handle.
call fcn.0041af50
add esp, 8
mov byte [esp + 0x17], 0
mov eax, dword [edi + 0x38]
mov esi, dword [edi + 0x70]
push eax
push str.Closed_m_hRead__p__AnonymousPipe_handle
call fcn.00423a10
add esp, 8
or esi, 0xffffffff
mov dword [edi + 0x38], esi
test bl, bl
je 0x41d347
cmp byte [esp + 0x17], 0
je 0x41d347
lea ecx, [esp + 0x3c]
call fcn.00404ae0
lea ecx, [esp + 0x20]
call fcn.00404ae0
mov dword [esp + 0xa0], esi
mov edx, dword [ebp]
mov eax, dword [edx + 8]
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x58]
call fcn.00404990
mov byte [esp + 0xa0], 3
mov eax, dword [esp + 0x4c]
mov edi, eax
cmp eax, dword [esp + 0x50]
jbe 0x41d369
call fcn.00480e22
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x41d406
call fcn.00480e22
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41d386
call fcn.00480e22
mov esi, dword [esp + 0x30]
cmp esi, dword [esp + 0x34]
jbe 0x41d395
call fcn.00480e22
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x41d40d
call fcn.00480e22
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x41d3ae
call fcn.00480e22
push edi
push esi
lea ecx, [esp + 0x60]
push str.AnonymousPipe::close___funciton_has_failed___s__s_
push ecx
call fcn.004056a0
mov eax, dword [esp + 0x78]
add esp, 0x10
mov esi, eax
cmp eax, dword [esp + 0x6c]
jbe 0x41d3d3
call fcn.00480e22
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x41d411
call fcn.00480e22
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x41d3ec
call fcn.00480e22
push esi
lea edx, [esp + 0x78]
push edx
call fcn.004048f0
push 0x56e6e0
lea eax, [esp + 0x78]
push eax
call fcn.004841dc
mov eax, dword [eax]
jmp 0x41d37c
mov eax, dword [eax]
jmp 0x41d3a4
mov eax, dword [eax]
jmp 0x41d3e2
Function at 0x41e250
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4bfa36
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea edi, [esi + 4]
mov ecx, edi
mov dword [esi], vtable.PipeServer.0
call fcn.00404990
lea ecx, [esi + 0x20]
mov dword [esp + 0x14], 0
call fcn.0041ada0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push edx
mov byte [esp + 0x18], 1
push 0x55a7f0
push edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], 0xffffffff
call fcn.004056a0
add esp, 0xc
mov ecx, esi
call fcn.0041e300
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0x10

Function at 0x41e300
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bdbf8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x41e340
cmp byte [eax + 0x10], 0
jne 0x41e340
lea ebx, [eax + 4]
jmp 0x41e342
xor ebx, ebx
mov edi, dword [esi + 0x14]
cmp edi, dword [esi + 0x18]
jbe 0x41e34f
call fcn.00480e22
mov eax, dword [esi + 8]
test eax, eax
jne 0x41e401
call fcn.00480e22
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41e36b
call fcn.00480e22
push ebx
push 0
push 0x80000
push 0x80000
push 0xff
push 0
push 0x40000003
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x30], eax
cmp eax, 0xffffffff
jne 0x41e40c
lea ecx, [esp + 0x10]
call fcn.00404990
mov dword [esp + 0x58], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x14]
push str.CreateNamedPipe_failed__error_code___d
push eax
call fcn.004056a0
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov esi, eax
cmp eax, dword [esp + 0x24]
jbe 0x41e3ce
call fcn.00480e22
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x41e408
call fcn.00480e22
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x41e3e7
call fcn.00480e22
push esi
lea ecx, [esp + 0x30]
push ecx
call fcn.004048f0
push 0x56e6e0
lea edx, [esp + 0x30]
push edx
call fcn.004841dc
mov eax, dword [eax]
jmp 0x41e361
mov eax, dword [eax]
jmp 0x41e3dd
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e420
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c116c
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x30], 0xffffffff
jne 0x41e45f
call fcn.0041e300
mov edx, dword [esi + 0x30]
xor eax, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x24]
push ecx
push edx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x41e506
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.00404990
push esi
lea eax, [esp + 0x30]
push str.ConnectNamedPipe_failed__error_code___d
push eax
mov dword [esp + 0xdc], 0
call fcn.004056a0
mov eax, dword [esp + 0x48]
add esp, 0xc
mov esi, eax
cmp eax, dword [esp + 0x40]
jbe 0x41e4cf
call fcn.00480e22
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x41e502
call fcn.00480e22
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x41e4e8
call fcn.00480e22
push esi
lea ecx, [esp + 0x4c]
push ecx
call fcn.004048f0
push 0x56e6e0
lea edx, [esp + 0x4c]
push edx
call fcn.004841dc
mov eax, dword [eax]
jmp 0x41e4de
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, eax
cmp edi, 0x217
je 0x41e5f4
cmp edi, 0x3e5
je 0x41e574
lea ecx, [esp + 0x68]
call fcn.00404990
push edi
lea eax, [esp + 0x6c]
push str.ConnectNamedPipe_failed__error_code___d
push eax
mov dword [esp + 0xdc], 2
call fcn.004056a0
add esp, 0xc
lea esi, [esp + 0x68]
call fcn.00404b20
push eax
lea ecx, [esp + 0x88]
push ecx
call fcn.004048f0
push 0x56e6e0
lea edx, [esp + 0x88]
push edx
call fcn.004841dc
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
test eax, eax
je 0x41e586
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x30]
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x41e5f4
call ebx
lea ecx, [esp + 0x48]
mov esi, eax
call fcn.00404990
push esi
lea eax, [esp + 0x4c]
push str.GetOverlappedResult___failed_after_the_ConnectNamedPipe___call__error_code___d
push eax
mov dword [esp + 0xdc], 1
call fcn.004056a0
add esp, 0xc
lea esi, [esp + 0x48]
call fcn.00404b20
push eax
lea ecx, [esp + 0xa8]
push ecx
call fcn.004048f0
push 0x56e6e0
lea edx, [esp + 0xa8]
push edx
call fcn.004841dc
push 0x84
call fcn.00480ed5
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0xd0], 3
test eax, eax
je 0x41e622
mov ecx, dword [esi + 0x30]
push 1
push ecx
push eax
call fcn.0041f560
jmp 0x41e624
xor eax, eax
mov dword [esi + 0x30], 0xffffffff
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e860
Capabilities:
Create thread
Resume thread

Disassembly:
lea ecx, [esi + 8]
push ecx
push 4
push esi
xor eax, eax
push 0x413f30
push eax
mov dword [esi], vtable.Thread.0
mov byte [esi + 0xc], al
push eax
mov byte [esi + 0xd], al
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov dword [esi + 4], eax
mov dword [esi], vtable.CtrlAltDelSimulator.0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne dl
mov byte [esi + 0xc], dl
mov eax, esi
ret
Function at 0x41f030
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4bf9fe
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea eax, [esi + 8]
push eax
push 4
push esi
xor ebx, ebx
push 0x413f30
push ebx
mov dword [esi], vtable.Thread.0
mov byte [esi + 0xc], bl
push ebx
mov byte [esi + 0xd], bl
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
mov dword [esi + 0x10], ecx
lea ecx, [esi + 0x18]
mov dword [esi], vtable.PipeImpersonatedThread.0
mov byte [esi + 0x14], bl
call fcn.00404990
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 1
call fcn.0041ada0
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 2
call fcn.0041ada0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 8
Function at 0x41f980
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4bd9de
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
mov edi, dword [esp + 0x24]
lea eax, [edi + 8]
push eax
push 4
push edi
xor ebx, ebx
push 0x413f30
push ebx
mov dword [edi], vtable.Thread.0
mov byte [edi + 0xc], bl
push ebx
mov byte [edi + 0xd], bl
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
mov dword [esp + 0x1c], ebx
mov dword [edi + 0x10], vtable.ClientInputEventListener.0
mov dword [edi + 0x14], vtable.SenderControlInformationInterface.0
lea ecx, [edi + 0x24]
mov dword [edi], vtable.RfbClient.0
mov dword [edi + 0x10], vtable.RfbClient.1.0
mov dword [edi + 0x14], vtable.RfbClient.2.0
mov dword [edi + 0x18], ebx
mov byte [edi + 0x1c], bl
push ecx
mov dword [edi + 0x20], vtable.LocalMutex.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x44]
mov byte [esp + 0x1c], 1
mov dword [edi + 0x3c], edx
push ebp
lea edx, [edi + 0x48]
push edx
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], ecx
call fcn.0043d010
mov esi, dword [esp + 0x48]
push ebp
lea eax, [edi + 0xe0]
push eax
mov byte [esp + 0x24], 2
call fcn.0043d010
lea ecx, [edi + 0x17c]
push ecx
mov dword [edi + method.LocalMutex.virtual_0], vtable.LocalMutex.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov al, byte [esp + 0x3c]
mov dl, byte [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov byte [edi + 0x1a5], al
mov eax, dword [edi + 4]
mov byte [edi + 0x1a4], dl
mov edx, dword [esp + 0x28]
push eax
mov dword [edi + 0x194], ebx
mov dword [edi + 0x198], ebx
mov dword [edi + 0x19c], ebx
mov dword [edi + 0x1a0], ebx
mov byte [edi + 0x1a6], 1
mov byte [edi + 0x1a7], bl
mov dword [edi + 0x1a8], ebp
mov dword [edi + 0x1ac], ecx
mov dword [edi + 0x1b0], edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne cl
mov byte [edi + 0xc], cl
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x2c
Function at 0x420700
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bf9b8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov word [esp + 0x54], ax
mov dword [esp + 0x28], vtable.Dimension.0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x78], ebx
mov ecx, dword [esi + 0x190]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x44]
push edx
lea edx, [esp + 0x2c]
push edx
call eax
mov dword [esp + 0x58], vtable.Rect.0
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov ecx, dword [0x594964]
mov edx, dword [0x594968]
mov edi, 0x59496c
mov dword [esp + 0x34], vtable.Region.0
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1b]
push ecx
lea edx, [esp + 0x30]
lea ecx, [esi - 0x10]
push edx
lea esi, [esp + 0x64]
mov byte [esp + 0x84], 2
call fcn.004209c0
cmp byte [esp + 0x17], bl
jne 0x420817
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x4207f1
cmp dword [eax], ebx
je 0x4207f1
push eax
call fcn.00481665
add esp, 4
mov cx, word [esp + 0x3a]
mov ax, word [esp + 0x38]
lea edx, [esp + 0x34]
mov word [esp + 0x3e], cx
push edx
lea ecx, [esp + 0x5c]
mov word [esp + 0x40], ax
mov dword [esp + 0x44], edi
call fcn.00462e60
movzx esi, word [ebp + 0xc]
movzx edi, word [ebp + 8]
add esi, dword [esp + 0x60]
add edi, dword [esp + 0x5c]
lea ebx, [esp + 0x1c]
lea eax, [esp + 0x38]
call fcn.00464900
test eax, eax
je 0x4208a1
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x184]
add edi, 0x110
mov edx, dword [edi + 0x90]
mov eax, dword [edx + 4]
lea ebx, [edi + 0x90]
mov ecx, ebx
call eax
lea esi, [esp + 0x1c]
call fcn.0045ccb0
mov ecx, dword [eax]
mov dword [edi + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [edi + 0x14], edx
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x190]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
push eax
mov eax, dword [esp + 0x64]
add eax, esi
mov esi, dword [ebp + 8]
push eax
mov eax, dword [esp + 0x64]
add eax, esi
push eax
call edx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x34], vtable.Region.0
test eax, eax
je 0x4208bf
cmp dword [eax], 0
je 0x4208bf
push eax
call fcn.00481665
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4209c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bf978
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x178]
mov edx, dword [eax + 4]
lea ebx, [edi + 0x178]
mov ecx, ebx
mov dword [esp + 0x10], vtable.AutoLock.0
mov dword [esp + 0x14], ebx
call edx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x18]
push eax
mov edx, edi
mov dword [esp + 0x3c], 0
call fcn.004208e0
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
mov ecx, dword [eax + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [eax + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x10], edx
cmp dword [edi + 0xe4], 5
mov dword [esp + 0x18], vtable.Rect.0
sete al
mov byte [ecx], al
test al, al
je 0x420a67
mov eax, dword [ebp + 0x10]
add edi, 0x13c
add eax, 4
call fcn.00463580
mov dword [esp + 0x38], 0xffffffff
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x420a90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c0f78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
mov dword [esp + 8], vtable.Dimension.0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], eax
mov ecx, dword [esi + 0x18c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0xc]
push edx
call eax
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
push edx
lea eax, [esp + 0x10]
lea ecx, [esi - 0x14]
mov esi, dword [esp + 0x40]
push eax
call fcn.004209c0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 0xc