joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4250e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push esi
push str.._vncencoder.cpp_:_remote_palette_data_requested_n
push 9
push 0x490660
mov esi, ecx
call fcn.00401810
add esp, 0xc
cmp byte [esi + 0x13], 0
jne 0x425114
mov ecx, esi
call fcn.00424d60
test eax, eax
jne 0x425114
xor eax, eax
pop esi
add esp, 0x18
ret 8
cmp byte [esi + 0x23], 0
jne 0x42510b
cmp byte [esi + 0x13], 0
push ebx
push ebp
push edi
je 0x4251ec
push str.._vncencoder.cpp_:_generating_BGR233_palette_data_n
push 9
push 0x490660
call fcn.00401810
mov cl, byte [esi + 0x30]
mov eax, dword [esi + 0xc]
mov ebx, 1
shl ebx, cl
lea ebp, [esi + 0xc]
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
je 0x425160
push eax
call fcn.0045dca8
add esp, 4
lea eax, [ebx*4]
push eax
call fcn.0045dbe5
add esp, 4
test eax, eax
mov dword [ebp], eax
je 0x425252
xor edi, edi
test ebx, ebx
jle 0x425252
lea ebp, [eax + 1]
jmp 0x425190
movzx ecx, byte [esi + 0x3c]
movzx ebx, word [esi + 0x38]
mov eax, edi
sar eax, cl
add ebp, 4
and eax, ebx
imul eax, eax, 0xff
cdq
idiv ebx
mov byte [ebp - 5], al
movzx ecx, byte [esi + 0x3a]
movzx ebx, word [esi + 0x34]
mov eax, edi
sar eax, cl
and eax, ebx
imul eax, eax, 0xff
cdq
idiv ebx
mov byte [ebp - 3], al
movzx ecx, byte [esi + 0x3b]
movzx ebx, word [esi + 0x36]
mov eax, edi
sar eax, cl
add edi, 1
and eax, ebx
imul eax, eax, 0xff
cdq
idiv ebx
cmp edi, dword [esp + 0x14]
mov byte [ebp - 4], al
jl 0x425190
jmp 0x42524e
push str.._vncencoder.cpp_:_generating_8_bit_palette_data_n
push 9
push 0x490660
call fcn.00401810
mov eax, 0xff
mov word [esp + 0x2c], ax
mov word [esp + 0x2a], ax
mov word [esp + 0x28], ax
lea eax, [esi + 0xc]
lea ecx, [esp + 0x24]
push ecx
add esi, 0x10
push esi
push eax
mov byte [esp + 0x33], 1
mov byte [esp + 0x30], 0x20
mov byte [esp + 0x31], 0x18
mov byte [esp + 0x32], 0
mov byte [esp + 0x3a], 0x10
mov byte [esp + 0x3b], 8
mov byte [esp + 0x3c], 0
mov dword [esp + 0x28], eax
call dword [0x48db4c]
add esp, 0x18
mov ebp, dword [esp + 0x10]
mov ebp, dword [ebp]
test ebp, ebp
jne 0x425278
push str.._vncencoder.cpp_:_failed_to_obtain_colour_map_data__n
push ebp
push 0x490660
call fcn.00401810
add esp, 0xc
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x18
ret 8
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
lea eax, [edx*4]
push eax
push ebp
push ecx
call fcn.0045d280
add esp, 0xc
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x18
ret 8
Function at 0x4259f0
Capabilities:
Terminate process

Disassembly:
push ebx
xor edx, edx
xor bl, bl
cmp eax, 8
push ebp
mov ebp, dword [esp + 0xc]
je 0x425a32
cmp eax, 0x10
jne 0x425a0a
movzx eax, word [esi]
pop ebp
pop ebx
ret
cmp eax, 0x20
jne 0x425a14
mov eax, dword [esi]
pop ebp
pop ebx
ret
push eax
push str.getBgColour:_bpp__d__n
call fcn.0045f2e6
add eax, 0x40
push eax
call fcn.0045f197
add esp, 0xc
push 1
call fcn.0045f10b
push edi
xor eax, eax
mov ecx, pe_nt_image_headers32
mov edi, 0x490ef8
rep stosd dword es:[edi], eax
xor ecx, ecx
test ebp, ebp
jle 0x425a78
lea edi, [eax + 1]
lea ebx, [ebx]
movzx eax, byte [ecx + esi]
cmp eax, 0x100
jge 0x425a7f
add dword [eax*4 + 0x490ef8], edi
mov eax, dword [eax*4 + 0x490ef8]
cmp eax, edx
jle 0x425a72
mov bl, byte [ecx + esi]
mov edx, eax
add ecx, edi
cmp ecx, ebp
jl 0x425a50
pop edi
pop ebp
movzx eax, bl
pop ebx
ret
push eax
push str.getBgColour
push str._s:_unusual_colour___d_n
call fcn.0045f2e6
add eax, 0x40
push eax
call fcn.0045f197
add esp, 0x10
push edi
call fcn.0045f10b
int3
Function at 0x4274c0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x428
xor eax, eax
cmp byte [ecx + 0x22], al
push ebx
push esi
push edi
setne al
push 0x400
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x38]
push 0
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], eax
call fcn.0045c220
mov esi, dword [esp + 0x448]
xor edi, edi
xor ebx, ebx
add esp, 0xc
test esi, esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
jle 0x427643
push ebp
jmp 0x427517
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x43c]
cmp ebx, edx
jge 0x427642
mov eax, esi
sub eax, edi
xor ecx, ecx
test eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], eax
jle 0x427618
mov eax, edx
sub eax, ebx
add eax, 0xfffffff9
mov dword [esp + 0x2c], eax
mov eax, edi
imul eax, edx
mov dword [esp + 0x1c], eax
jmp 0x42755a
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x2c]
jge 0x427618
add eax, ecx
add eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x197c]
mov ecx, dword [esp + 0x28]
lea eax, [edx + eax*4]
movzx edi, byte [ecx + eax]
movzx ebx, byte [ecx + eax + 1]
movzx ebp, byte [ecx + eax + 2]
add ecx, eax
mov eax, 7
add ecx, 6
add dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
jmp 0x4275a0
movzx esi, byte [ecx - 2]
mov eax, esi
sub eax, edi
cdq
xor eax, edx
sub eax, edx
add dword [esp + eax*4 + 0x38], 1
lea eax, [esp + eax*4 + 0x38]
mov edi, esi
movzx esi, byte [ecx - 1]
mov eax, esi
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
add dword [esp + eax*4 + 0x38], 1
lea eax, [esp + eax*4 + 0x38]
mov ebx, esi
movzx esi, byte [ecx]
mov eax, esi
sub eax, ebp
cdq
xor eax, edx
sub eax, edx
add dword [esp + eax*4 + 0x38], 1
lea eax, [esp + eax*4 + 0x38]
add ecx, 4
sub dword [esp + 0x24], 1
mov ebp, esi
jne 0x4275a0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x43c]
add dword [esp + 0x1c], edx
mov esi, dword [esp + 0x440]
add eax, 1
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
jl 0x427552
cmp edx, esi
jle 0x42762a
add dword [esp + 0x10], esi
mov dword [esp + 0x14], 0
jmp 0x427636
add dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x14]
cmp edi, esi
jl 0x427513
pop ebp
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
mov eax, esi
shl eax, 5
add eax, esi
cdq
idiv edi
cmp eax, 0x5f
jl 0x427668
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x428
ret 8
xor eax, eax
mov ecx, 1
nop
mov edx, dword [esp + ecx*4 + 0x34]
mov ebx, edx
imul ebx, ecx
imul ebx, ecx
add eax, ebx
test edx, edx
je 0x42765a
mov ebx, dword [esp + ecx*4 + 0x30]
add ebx, ebx
cmp edx, ebx
jg 0x42765a
add ecx, 1
cmp ecx, 8
jl 0x427670
cmp ecx, 0x100
jge 0x4276b7
lea esp, [esp]
mov edx, dword [esp + ecx*4 + 0x34]
imul edx, ecx
imul edx, ecx
add ecx, 1
add eax, edx
cmp ecx, 0x100
jl 0x4276a0
lea ecx, [edi + edi*2]
pop edi
sub ecx, esi
xor edx, edx
pop esi
div ecx
pop ebx
add esp, 0x428
ret 8
Function at 0x42a024
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x94]
xor ebx, ebx
cmp eax, ebx
push edi
mov edi, dword [esi + 0x90]
mov dword [esp + 0xc], eax
je 0x42a1b3
cmp eax, 3
jge 0x42a07a
cmp dword [esi + 0x98], ebx
jne 0x42a07a
mov eax, dword [esi + 0x74]
mov ecx, dword [esp + 0x28]
push edi
push eax
call fcn.00449d40
add dword [esi + 0x54], 0xfffffff4
add dword [esi + 0x50], 0xc
pop edi
mov dword [esi + 0x94], ebx
mov dword [esi + 0x90], ebx
pop esi
pop ebx
add esp, 0x18
ret 4
mov ecx, dword [esi + 0x78]
mov edx, dword [esi + 0x74]
push ebp
push 0x491328
lea ebp, [esi + 0xa4]
push ebp
push ecx
push edi
push edx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x98], ebx
call fcn.00406410
mov ebx, dword [ebp]
add esp, 0x14
cmp ebx, edi
mov dword [esp + 0x14], ebx
jbe 0x42a0e9
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x74]
push eax
push ecx
mov ecx, dword [esp + 0x34]
call fcn.00449d40
add dword [esi + 0x54], 0xfffffff4
pop ebp
xor eax, eax
add dword [esi + 0x50], 0xc
pop edi
mov dword [esi + 0x94], eax
mov dword [esi + 0x90], eax
pop esi
pop ebx
add esp, 0x18
ret 4
mov eax, 0x80008001
imul edi
add edx, edi
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dx, word [esp + 0x10]
lea ecx, [eax + edi]
rol dx, 8
rol cx, 8
rol ax, 8
mov word [esp + 0x20], ax
mov word [esp + 0x1c], dx
xor edx, edx
mov dh, byte [esp + 0x16]
mov word [esp + 0x1e], cx
mov eax, ebx
shl eax, 0x10
mov ecx, ebx
and ecx, 0xff00
or eax, ecx
movzx ecx, byte [esi + 0xa7]
shl eax, 8
or eax, edx
mov edx, dword [esp + 0x10]
push edx
push edi
push ebx
push str.._vncEncodeUltra.cpp_:_QUEUEQUEUE__d__d__d_r_n
or eax, ecx
push 9
push 0x490660
mov word [esp + 0x3a], 0
mov dword [esp + 0x3c], 0x900ffff
mov dword [esp + 0x30], eax
call fcn.00401810
mov edi, dword [esp + 0x44]
add esp, 0x18
push 0xc
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.00449d40
push 4
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00449d40
mov edx, dword [ebp]
mov eax, dword [esi + 0x78]
push edx
push eax
mov ecx, edi
call fcn.00449d40
mov ebp, dword [ebp]
add dword [esi + 0x50], 0xc
lea ecx, [ebp + 4]
add dword [esi + 0x54], ecx
add ebp, 0x10
add dword [esi + 0x58], ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4
Function at 0x434af0
Capabilities:
Check mutex on windows

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

Function at 0x434b20
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x434b71
mov cl, byte [esi]
mov eax, dword [esi + 4]
push 0
mov byte [esp + 8], cl
push eax
movzx ecx, cl
push 0
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov edx, dword [esp + 0xc]
push eax
push edx
call dword [sym.imp.USER32.dll_keybd_event]
mov eax, dword [esi]
push eax
push str.fake__d_down_n
push 9
push 0x490660
call fcn.00401810
add esp, 0x10
mov byte [esi + 8], 1
pop esi
pop ecx
ret

Function at 0x434b80
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x434bd4
mov eax, dword [esi + 4]
mov cl, byte [esi]
push 0
or eax, 2
mov byte [esp + 8], cl
push eax
movzx ecx, cl
push 0
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov edx, dword [esp + 0xc]
push eax
push edx
call dword [sym.imp.USER32.dll_keybd_event]
mov eax, dword [esi]
push eax
push str.fake__d_up_n
push 9
push 0x490660
call fcn.00401810
add esp, 0x10
mov byte [esi + 9], 1
pop esi
pop ecx
ret

Function at 0x434be0
Capabilities:
Log keystrokes

Disassembly:
push ecx
push esi
mov esi, ecx
cmp byte [esi + 8], 0
je 0x434c2b
mov eax, dword [esi + 4]
mov cl, byte [esi]
push 0
or eax, 2
push eax
movzx eax, cl
push 0
push eax
mov byte [esp + 0x14], cl
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_keybd_event]
mov edx, dword [esi]
push edx
push str.fake__d_up_n
push 9
push 0x490660
call fcn.00401810
add esp, 0x10
pop esi
pop ecx
ret
cmp byte [esi + 9], 0
je 0x434c6c
mov eax, dword [esi + 4]
mov cl, byte [esi]
push 0
push eax
movzx eax, cl
push 0
push eax
mov byte [esp + 0x14], cl
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_keybd_event]
mov edx, dword [esi]
push edx
push str.fake__d_down_n
push 9
push 0x490660
call fcn.00401810
add esp, 0x10
pop esi
pop ecx
ret
Function at 0x434c70
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push esi
push edi
movzx edi, bl
push edi
call ebp
mov esi, dword [esp + 0x18]
shr eax, 0xf
and eax, 1
je 0x434ca0
test esi, esi
jne 0x434d0d
mov ecx, 0x47bd18
mov eax, str.down
jmp 0x434cae
test esi, esi
je 0x434d0d
mov ecx, str.down
mov eax, 0x47bd18
push ecx
push eax
push edi
push str.._vnckeymap.cpp_:_setshiftstate__d_____s___s__n
push 9
push 0x490660
call fcn.00401810
add esp, 0x18
neg esi
sbb esi, esi
push 0
and esi, 0xfffffffe
add esi, 2
push esi
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push ebx
call dword [sym.imp.USER32.dll_keybd_event]
push edi
call ebp
test eax, 0x8000
mov eax, str.down
jne 0x434cf7
mov eax, 0x47bd18
push eax
push edi
push str.._vnckeymap.cpp_:_new_state__d___s__n
push 9
push 0x490660
call fcn.00401810
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x437600
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
cmp byte [edi + 9], 0
je 0x437615
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [edi + 0xa], 0
je 0x437643
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x437620
push 0
lea ecx, [esp + 0x10]
push ecx
sub eax, edx
push eax
push esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
cmp byte [edi + 8], 0
je 0x437670
mov edx, dword [edi + 0x14]
test edx, edx
je 0x437670
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x437655
push 0
lea ecx, [esp + 0x10]
push ecx
sub eax, edi
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
ret 4

Function at 0x437920
Capabilities:
Delete file

Disassembly:
sub esp, 0x108
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x104], eax
lea eax, [ecx + 0x21a]
lea edx, [esp]
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x437940
push edi
lea edi, [esp + 4]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x437954
mov ax, word [0x485b00]
mov word [edi], ax
lea eax, [esp + 4]
add eax, 0xffffffff
pop edi
nop
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x437970
mov ecx, dword [str.codec.cfg]
mov edx, dword [0x485b08]
mov dword [eax], ecx
mov cx, word [0x485b0c]
mov dword [eax + 4], edx
lea edx, [esp]
push edx
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0045c20d
add esp, 0x108
ret
Function at 0x4379e0
Capabilities:
Move file

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
lea ebp, [esi + 0x18]
mov eax, ebp
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4379f0
sub eax, edx
jne 0x437a17
push str.Error_opening_log_file_n
push eax
push esi
mov byte [esi + 9], 1
mov byte [esi + 8], al
call fcn.00401810
add esp, 0xc
pop esi
pop ebp
pop ecx
ret
cmp byte [esi + 0x218], 0
mov byte [esi + 8], 1
jne 0x437a94
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x437a30
sub eax, edx
add eax, 5
push edi
push eax
call fcn.0045cd98
mov edi, eax
add esp, 4
test edi, edi
je 0x437a93
mov edx, edi
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x437a54
mov eax, edi
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x437a65
mov ecx, dword [str..bak]
push 1
mov dword [eax], ecx
mov dl, byte [0x47bf68]
push edi
push ebp
mov byte [eax + 4], dl
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push edi
call fcn.0045d145
add esp, 4
pop edi
mov ecx, esi
call fcn.004375e0
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x14], eax
jne 0x437ad5
push ebp
push str.Error_opening_log_file__s_n
push 0
push esi
mov byte [esi + 9], 1
mov byte [esi + 8], 0
call fcn.00401810
add esp, 0x10
cmp byte [esi + 0x218], 0
je 0x437af2
mov eax, dword [esi + 0x14]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
pop ebp
pop ecx
ret
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
pop ebp
pop ecx
ret
Function at 0x437e10
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x110
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x10c], eax
push edi
mov edi, dword [esp + 0x118]
push pe_nt_image_headers32
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
je 0x437e6c
mov ecx, dword [esp + 0x11c]
push ecx
push str.Host_name_unavailable
push edi
call fcn.0045d150
add esp, 0xc
pop edi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0045c20d
add esp, 0x110
ret
push ebp
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebp, eax
test ebp, ebp
jne 0x437eab
mov eax, dword [esp + 0x120]
push eax
push str.IP_address_unavailable
push edi
call fcn.0045d150
add esp, 0xc
pop ebp
pop edi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0045c20d
add esp, 0x110
ret
mov byte [edi], 0
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
mov dword [esp + 8], 0
je 0x437f8d
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp word [ebp + 0xa], si
jle 0x437f23
mov edi, edi
mov edx, dword [ebp + 0xc]
mov eax, dword [ebx + edx]
movzx ecx, byte [eax + esi]
push ecx
lea edx, [esp + 0x18]
push 0x4773b8
push edx
call fcn.0045c58a
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x437ef2
mov ecx, dword [esp + 0x128]
sub eax, edx
sub ecx, eax
sub ecx, 1
push ecx
lea edx, [esp + 0x18]
push edx
push edi
call fcn.0045e870
movsx eax, word [ebp + 0xa]
add esi, 1
add esp, 0xc
cmp esi, eax
jl 0x437ed0
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x437f28
sub eax, edx
mov byte [edi + eax - 1], cl
mov ecx, dword [ebp + 0xc]
cmp dword [ebx + ecx + 4], 0
je 0x437f6c
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x437f46
sub eax, edx
mov edx, dword [esp + 0x128]
sub edx, eax
sub edx, 1
push edx
push 0x4773b4
push edi
call fcn.0045e870
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, 1
lea ebx, [eax*4]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
cmp dword [ebx + eax], 0
jne 0x437ec6
pop esi
pop ebx
mov ecx, dword [esp + 0x114]
pop ebp
pop edi
xor ecx, esp
call fcn.0045c20d
add esp, 0x110
ret
Function at 0x4382d0
Capabilities:
Find taskbar

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, ecx
lea ebp, [ebx + 0xa18]
push ebp
push str.._vncmenu.cpp_:__vncMenu::AddTrayIcon___UserName___s_n
push 0
push 0x490660
call fcn.00401810
add esp, 0x10
mov edi, 0x475e64
mov esi, ebp
mov ecx, 1
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x43834d
mov edi, str.SYSTEM
mov esi, ebp
mov ecx, 7
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x43834d
push edx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x438352
mov byte [ebx + 0xb3c], al
mov eax, dword [ebx + 0xb40]
push eax
push str.._vncmenu.cpp_:__vncMenu::AddTrayIcon___User_exists__traywnd_is_not_found_reset_when_counter_reach__i20_n
push 0
push 0x490660
call fcn.00401810
add esp, 0x10
add dword [ebx + 0xb40], 1
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x148]
call eax
test eax, eax
jne 0x43836b
push eax
push eax
mov ecx, ebx
call fcn.00437fb0
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
test eax, eax
je 0x43834d
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c0]
call eax
test eax, eax
je 0x43838d
call fcn.00437df0
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c8]
call eax
test eax, eax
je 0x43834d
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.00437d60
Function at 0x439f40
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4724cb
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x48ea40]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov edi, dword [esp + 0x134]
mov esi, dword [esp + 0x138]
lea ecx, [esp + 0x1c]
call fcn.00405790
push 0
push str.UseRegistry
push str.admin
lea ecx, [esp + 0x28]
mov dword [esp + 0x138], 0
call fcn.00405d70
sub eax, 1
neg eax
sbb eax, eax
inc eax
je 0x43a023
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push esi
mov ebx, 4
push edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x43a002
mov dword [esp + 0x12c], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00437380
mov eax, dword [esp + 0x13c]
jmp 0x43a052
cmp dword [esp + 0x18], ebx
jne 0x439fe5
cmp dword [esp + 0x10], ebx
mov dword [esp + 0x12c], 0xffffffff
lea ecx, [esp + 0x1c]
jne 0x439ff4
mov esi, dword [esp + 0x14]
jmp 0x43a04b
mov eax, dword [esp + 0x13c]
push eax
push esi
push str.admin_auth
lea ecx, [esp + 0x28]
call fcn.00405d70
mov esi, eax
mov dword [esp + 0x12c], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00437380
mov eax, esi
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0045c20d
add esp, 0x120
ret
Function at 0x43a080
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x47250b
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48ea40]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x134]
mov esi, dword [esp + 0x138]
lea ecx, [esp + 0x1c]
call fcn.00405790
push 0
push str.UseRegistry
push str.admin
lea ecx, [esp + 0x28]
mov dword [esp + 0x138], 0
call fcn.00405d70
sub eax, 1
neg eax
sbb eax, eax
inc eax
je 0x43a184
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
push esi
mov edi, pe_nt_image_headers32
push ebx
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], edi
call ebp
test eax, eax
jne 0x43a16c
cmp dword [esp + 0x18], 3
jne 0x43a16c
push edi
mov dword [esp + 0x18], edi
call fcn.0045c2ef
mov edi, eax
add esp, 4
test edi, edi
je 0x43a16c
lea edx, [esp + 0x14]
push edx
push edi
lea eax, [esp + 0x20]
push eax
push 0
push esi
push ebx
call ebp
test eax, eax
jne 0x43a163
cmp dword [esp + 0x18], 3
je 0x43a1a8
push edi
call fcn.0045c39e
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00437380
xor eax, eax
jmp 0x43a1be
push 0x96
call fcn.0045c2ef
add esp, 4
push 0x96
mov edi, eax
push edi
push esi
push str.admin_auth
lea ecx, [esp + 0x2c]
call fcn.00405d90
lea ecx, [esp + 0x1c]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00437380
mov eax, edi
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0045c20d
add esp, 0x11c
ret

Function at 0x43a1f0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x47254b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push edi
mov eax, dword [0x48ea40]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov edi, dword [esp + 0x128]
mov esi, dword [esp + 0x12c]
lea ecx, [esp + 0x10]
call fcn.00405790
push 0
push str.UseRegistry
push str.admin
lea ecx, [esp + 0x1c]
mov dword [esp + 0x12c], 0
call fcn.00405d70
sub eax, 1
neg eax
sbb eax, eax
inc eax
je 0x43a282
push 4
lea eax, [esp + 0x134]
push eax
push 4
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x43a299
mov ecx, dword [esp + 0x130]
push ecx
push esi
push str.admin_auth
lea ecx, [esp + 0x1c]
call fcn.00405d10
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call fcn.00437380
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0045c20d
add esp, 0x118
ret