joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49efc8
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x10]
mov word [ebp - 8], 0x500
push eax
xor ebx, ebx
push ebx
push 8
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x49f03e
call esi
cmp eax, 0x3f0
jne 0x49f021
lea eax, [ebp - 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x49f037
push 1
push dword [ebp - 0x10]
call fcn.0049f126
pop ecx
pop ecx
jmp 0x49f116
test eax, eax
jne 0x49f03e
push ebx
jmp 0x49f028
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x49f064
push ebx
push dword [ebp - 0x10]
call fcn.0049f126
jmp 0x49f113
call esi
cmp eax, 0x7a
jne 0x49f056
push dword [ebp - 0x14]
call fcn.004a1806
pop ecx
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x49f08c
push ebx
jmp 0x49f0fd
cmp byte [ebp + 8], bl
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
mov eax, 0x223
push ebx
push ebx
lea ecx, [eax - 3]
cmovne eax, ecx
push eax
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x49f089
mov edi, ebx
mov byte [ebp - 0x18], bl
cmp dword [esi], ebx
jbe 0x49f0f1
lea ebx, [esi + 4]
push dword [ebp - 0x1c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x49f0dc
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x49f0c3
jmp 0x49f0f1
cmp byte [ebp + 0xc], 0
je 0x49f0ed
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0x18], 0
jne 0x49f0f1
mov byte [ebp - 0x18], 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.0049f126
pop ecx
pop ecx
push 0xc
push esi
mov bl, al
call fcn.004a1ba5
mov al, bl
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a14ba
mov esp, ebp
pop ebp
ret

Function at 0x49f3d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x49fb9b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
mov ebx, ecx
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
test eax, eax
jne 0x49fbbe
xor al, al
jmp 0x49fc58
push eax
call fcn.004a14d0
pop ecx
push eax
push dword [ebp - 4]
mov dword [ebx + 0x40], eax
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x49fbb7
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4e82a8
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x49fbb7
push esi
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push edi
push 0xd
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
lea edi, [ebx + 4]
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
pop edi
pop esi
test eax, eax
je 0x49fc56
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 2
push 4
pop edx
mov dword [ebx + 0x3c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a14d0
xor edx, edx
mov dword [ebx + 0x38], eax
pop ecx
cmp dword [ebx + 0x3c], edx
jbe 0x49fc56
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov eax, dword [eax + edx*4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, dword [ebx + 0x3c]
jb 0x49fc44
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4b01fb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004afea9
Function at 0x4010e0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
mov ecx, eax
shr ecx, 4
xor ecx, esi
and ecx, 0xf0f0f0f
xor esi, ecx
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, esi
and ecx, 0xffff
xor esi, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, esi
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
add ecx, ecx
add ecx, ecx
xor esi, ecx
mov ecx, esi
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor ecx, esi
rol ecx, 1
mov esi, ecx
xor ecx, eax
and ecx, 0xaaaaaaaa
xor esi, ecx
xor ecx, eax
rol ecx, 1
push edi
mov edi, ecx
mov dword [esp + 0x10], 8
jmp 0x401160
mov eax, esi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x455108]
or ecx, dword [ebx*4 + 0x455308]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x455508]
and eax, 0x3f
or ecx, dword [eax*4 + 0x455708]
mov eax, dword [edx]
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x455208]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x455408]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x455608]
and eax, 0x3f
or ebx, dword [eax*4 + 0x455808]
add edx, 4
or ebx, ecx
xor edi, ebx
mov eax, edi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x455108]
or ecx, dword [ebx*4 + 0x455308]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x455508]
and eax, 0x3f
or ecx, dword [eax*4 + 0x455708]
mov eax, dword [edx]
xor eax, edi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x455208]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x455408]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x455608]
and eax, 0x3f
or ebx, dword [eax*4 + 0x455808]
add edx, 4
or ebx, ecx
xor esi, ebx
sub dword [esp + 0x10], 1
jne 0x401160
ror esi, 1
mov eax, esi
xor eax, edi
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, edi
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
lea edx, [ecx*4]
mov ecx, esi
shr ecx, 0x10
xor eax, edx
mov edx, dword [esp + 0x18]
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
pop esi
xor ecx, eax
pop ebp
mov dword [edx + 4], ecx
pop ebx
pop ecx
ret
Function at 0x401b50
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 0x401b65
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [edi + 0xa], 0
je 0x401b93
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401b70
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 0x401bc0
mov edx, dword [edi + 0x18]
test edx, edx
je 0x401bc0
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401ba5
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 0x401e20
Capabilities:
Delete file
Move file

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
xor ebx, ebx
cmp eax, ebx
jne 0x401e46
push str.Error_opening_log_file_n
push ebx
push esi
mov byte [esi + 9], 1
mov byte [esi + 8], bl
call fcn.00401860
add esp, 0xc
pop esi
pop ebx
ret
cmp byte [esi + 0x20], bl
mov byte [esi + 8], 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
jne 0x401eca
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x401e58
sub eax, edx
add eax, 5
push edi
push eax
call fcn.00432007
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x401ec9
mov ecx, dword [esi + 0x1c]
mov edx, edi
jmp 0x401e80
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
cmp al, bl
jne 0x401e80
mov eax, edi
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x401e93
mov ecx, dword [str..bak]
mov dword [eax], ecx
mov dl, byte [0x445730]
push edi
mov byte [eax + 4], dl
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x1c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push edi
call fcn.00432002
add esp, 4
pop edi
mov ecx, dword [esi + 0x1c]
push ebx
push 0x80
push 4
push ebx
push 3
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
jne 0x401f06
mov edx, dword [esi + 0x1c]
push edx
push str.Error_opening_log_file__s_n
push ebx
push esi
mov byte [esi + 9], 1
mov byte [esi + 8], bl
call fcn.00401860
add esp, 0x10
cmp byte [esi + 0x20], bl
je 0x401f1c
mov eax, dword [esi + 0x18]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
pop ebx
ret
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
pop ebx
ret
Function at 0x4024c0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x100
push ebx
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
mov ebx, ecx
jne 0x4024ec
push edi
mov ecx, 5
mov esi, str._no_window_selected_
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
jmp 0x40252b
push 0x100
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [esp + 8], 0
jne 0x40252b
push esi
lea ecx, [esp + 0xc]
push str.0x_x
push ecx
call fcn.004324fb
add esp, 0xc
mov edx, 0x100
sub edx, eax
push edx
lea eax, [esp + eax + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
mov edx, dword [ebx + 4]
lea ecx, [esp + 8]
push ecx
push 0x422
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop esi
pop ebx
add esp, 0x100
ret 4

Function at 0x404570
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
push ebx
push esi
push str.dfmirage
mov ebx, ecx
call fcn.004044a0
mov esi, eax
add esp, 4
test esi, esi
jne 0x40458e
pop esi
pop ebx
pop ecx
ret 4
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.Screen.ForcedBpp
push esi
call edi
push str.Pointer.Enabled
push esi
call edi
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
neg eax
push 0
sbb eax, eax
push str.Cap.DfbBackingMode
and eax, 3
push esi
mov dword [esp + 0x24], eax
call edi
test eax, eax
je 0x4045dd
mov edx, dword [esp + 0xc]
push edx
push str..VideoDriver.cpp:_tCant_set__Cap.DfbBackingMode__to__d_n
jmp 0x404606
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
push str.Order.BltCopyBits.Enabled
push esi
mov dword [esp + 0x24], 1
call edi
test eax, eax
je 0x40461e
mov ecx, dword [esp + 0xc]
push ecx
push str..VideoDriver.cpp:_tCant_set_Order.BltCopyBits.Enabled_to__d_n
push 0
push 0x457788
call fcn.00401860
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 4
mov edx, dword [str.DISPLAY]
mov dword [ebx], edx
mov eax, dword [0x446154]
push esi
mov dword [ebx + 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 4
Function at 0x404f60
Capabilities:
Delete registry value
Set registry value

Disassembly:
push esi
push str.dfmirage
mov byte [ecx], 0
call fcn.004044a0
mov esi, eax
add esp, 4
test esi, esi
je 0x40467a
push str.Cap.DfbBackingMode
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
ret
sub esp, 0x24c
push edi
lea eax, [esp + 0xa8]
push eax
mov byte [ecx], 0
lea ecx, [esp + 8]
push ecx
push str.DemoForge_Mirage_Driver
xor edi, edi
push str.Mirage_Driver
mov dword [esp + 0x14], edi
call fcn.004047b0
add esp, 0x10
test eax, eax
jne 0x404c78
push str.DemoForge_Mirage_Driver
push str.Mirage_Driver
push str..VideoDriver.cpp:_tNo__s_or__s_found._n
push edi
push 0x457788
call fcn.00401860
add esp, 0x14
pop edi
add esp, 0x24c
ret
push esi
push 0x9c
lea edx, [esp + 0x14]
push edi
push edx
call fcn.004326b0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0xffffffffffffffff
push edi
mov word [esp + 0x40], 0x9c
mov word [esp + 0x42], di
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
push str.dfmirage
mov dword [esp + 0x3c], 0x1c0000
mov byte [esp + 0x14], 0
call fcn.004044a0
mov esi, eax
add esp, 4
cmp esi, edi
je 0x404db1
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push edi
push str.Attach.ToDesktop
push esi
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x404cfb
push str..VideoDriver.cpp:_tCant_set_Attach.ToDesktop_to_0x1_n
push edi
push 0x457788
call fcn.00401860
add esp, 0xc
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push ebp
push str.Cap.DfbBackingMode
push esi
call ebx
push str.Order.BltCopyBits.Enabled
push esi
call ebx
lea edx, [esp + 0x10]
push edx
push str.ChangeDisplaySettingsExA
push str.User32.DLL
mov dword [esp + 0x1c], edi
call fcn.00404750
mov ebp, eax
add esp, 0xc
cmp ebp, edi
je 0x404daf
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov ebx, eax
cmp ebx, edi
je 0x404d63
push 0x2000000
push edi
push edi
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov edi, eax
test edi, edi
je 0x404d67
push edi
call dword [sym.imp.USER32.dll_SetThreadDesktop]
jmp 0x404d67
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x80], 0x18
jne 0x404d7c
mov dword [esp + 0x80], 0x20
push 0
push 1
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xc8]
push ecx
call dword [esp + 0x24]
push ebx
call dword [sym.imp.USER32.dll_SetThreadDesktop]
push edi
call dword [sym.imp.USER32.dll_CloseDesktop]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebp
pop ebx
pop esi
pop edi
add esp, 0x24c
ret
push esi
push 0
push 5
mov esi, ecx
call fcn.0040a730
add esp, 8
test eax, eax
mov ecx, esi
pop esi
je 0x404f7b
jmp 0x404c20
jmp 0x404650

Function at 0x404f80
Capabilities:
Delete registry value
Set registry value

Disassembly:
push esi
mov esi, ecx
call fcn.004043e0
mov ecx, esi
pop esi
jmp fcn.00404f60
Function at 0x4051e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov ecx, dword [ecx + 0x58]
test ecx, ecx
jne 0x405200
push str.._vncBuffer.cpp:_tGetRemotePalette_called_but_no_encoder_set_n
push 8
push 0x457788
call fcn.00401860
add esp, 0xc
xor eax, eax
ret 8
jmp 0x41b170
sub esp, 0x18
push esi
push str.._vncEncoder.cpp:_tremote_palette_data_requested_n
push 9
push 0x457788
mov esi, ecx
call fcn.00401860
add esp, 0xc
cmp byte [esi + 0x13], 0
jne 0x41b1a4
mov ecx, esi
call fcn.0041aa00
test eax, eax
jne 0x41b1a4
xor eax, eax
pop esi
add esp, 0x18
ret 8
cmp byte [esi + 0x23], 0
jne 0x41b19b
cmp byte [esi + 0x13], 0
push ebx
push ebp
push edi
je 0x41b27c
push str.._vncEncoder.cpp:_tgenerating_BGR233_palette_data_n
push 9
push 0x457788
call fcn.00401860
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 0x41b1f0
push eax
call fcn.00431f74
add esp, 4
lea eax, [ebx*4]
push eax
call fcn.0043205b
add esp, 4
test eax, eax
mov dword [ebp], eax
je 0x41b2e2
xor edi, edi
test ebx, ebx
jle 0x41b2e2
lea ebp, [eax + 1]
jmp 0x41b220
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 0x41b220
jmp 0x41b2de
push str.._vncEncoder.cpp:_tgenerating_8_bit_palette_data_n
push 9
push 0x457788
call fcn.00401860
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 [0x45597c]
add esp, 0x18
mov ebp, dword [esp + 0x10]
mov ebp, dword [ebp]
test ebp, ebp
jne 0x41b308
push str.._vncEncoder.cpp:_tfailed_to_obtain_colour_map_data__n
push ebp
push 0x457788
call fcn.00401860
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.00431870
add esp, 0xc
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x18
ret 8

Function at 0x406c40
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
push ebx
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov ebx, dword [esp + 0x108]
movzx ecx, bl
test byte [esp + ecx + 4], 1
je 0x406c7d
push esi
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push 0
push 1
push 0
push ebx
call esi
push 0
push 3
push 0
push ebx
call esi
pop esi
pop ebx
add esp, 0x100
ret
Function at 0x407910
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x444268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
mov ebx, ecx
push esi
lea ebp, [ebx + 0xe8]
push edi
mov ecx, ebp
mov dword [esp + 0x14], ebp
call fcn.004285a0
mov di, word [esp + 0x28]
movzx eax, di
mov dword [esp + 0x28], eax
add eax, 4
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], eax
call fcn.00432007
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov esi, eax
push ecx
lea eax, [esi + 4]
push edx
rol di, 8
push eax
mov byte [esi], 0x84
mov word [esi + 2], di
call fcn.00431870
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 0x2c]
add esp, 0x10
push eax
push esi
call fcn.00417bc0
push esi
call fcn.00432002
add esp, 4
mov ecx, ebp
mov dword [esp + 0x20], 0xffffffff
call fcn.004285b0
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x4079f0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x444268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
mov ebx, ecx
push esi
lea ebp, [ebx + 0xe8]
push edi
mov ecx, ebp
mov dword [esp + 0x14], ebp
call fcn.004285a0
mov di, word [esp + 0x28]
movzx eax, di
mov dword [esp + 0x28], eax
add eax, 4
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], eax
call fcn.00432007
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov esi, eax
push ecx
lea eax, [esi + 4]
push edx
rol di, 8
push eax
mov byte [esi], 0x85
mov word [esi + 2], di
call fcn.00431870
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 0x2c]
add esp, 0x10
push eax
push esi
call fcn.00417bc0
push esi
call fcn.00432002
add esp, 4
mov ecx, ebp
mov dword [esp + 0x20], 0xffffffff
call fcn.004285b0
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x407b30
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x444268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
mov ebp, ecx
push esi
lea ebx, [ebp + 0xe8]
push edi
mov ecx, ebx
mov dword [esp + 0x14], ebx
call fcn.004285a0
mov di, word [esp + 0x28]
movzx eax, di
mov dword [esp + 0x28], eax
add eax, 6
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], eax
call fcn.00432007
mov edx, dword [esp + 0x30]
mov esi, eax
rol di, 8
movzx eax, di
mov word [esi + 4], ax
mov word [esi + 2], ax
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esi + 6]
push edx
push ecx
mov byte [esi], 0x83
mov byte [esi + 1], 0
call fcn.00431870
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x2c]
add esp, 0x10
push eax
push esi
call fcn.00417bc0
push esi
call fcn.00432002
add esp, 4
mov ecx, ebx
mov dword [esp + 0x20], 0xffffffff
call fcn.004285b0
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x408020
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x104], 0
je 0x4080e0
push edi
push 0x2000
mov dword [esp + 0xc], 0
mov dword [esi + 0x324], 0x2000
call fcn.00432007
mov ecx, dword [esi + 0x324]
mov edx, dword [esi + 0x108]
add esp, 4
push 0
mov edi, eax
lea eax, [esp + 0xc]
push eax
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [esp + 8]
je 0x4080bf
test eax, eax
jne 0x4080bf
mov eax, dword [esi + 0x318]
push eax
mov ecx, esi
call fcn.00407aa0
lea ecx, [esi + 0x214]
push ecx
push str.._vncClient.cpp:_tfile_download_complete:__s_n
push 1
push 0x457788
call fcn.00401860
mov edx, dword [esi + 0x108]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [esi + 0x104], 0
pop esi
pop ecx
ret
push edi
push eax
mov ecx, esi
call fcn.00407b30
push edi
call fcn.00432002
mov eax, dword [0x457850]
push 0
push esi
push eax
call fcn.00415900
add esp, 0x10
pop edi
pop esi
pop ecx
ret
Function at 0x40a960
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x443f7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x3c]
mov dword [esp + 8], esi
call fcn.00428580
xor edi, edi
lea ecx, [esi + 0x4f8]
mov dword [esp + 0x14], edi
call fcn.0040ed10
mov ecx, dword [esp + 0xc]
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x4bc], edi
mov dword [esi + 0x4d4], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi], edi
mov dword [esi + 0x4d8], edi
mov dword [esi + 0x4e4], edi
mov dword [esi + 0x4e8], edi
mov dword [esi + 0x4dc], edi
mov dword [esi + 0x4e0], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x4ec], edi
mov dword [esi + 0x4fc], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x18], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x443f7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x3c]
mov dword [esp + 8], esi
call fcn.00428580
xor edi, edi
lea ecx, [esi + 0x4f8]
mov dword [esp + 0x14], edi
call fcn.0040ed10
mov ecx, dword [esp + 0xc]
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x4bc], edi
mov dword [esi + 0x4d4], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi], edi
mov dword [esi + 0x4d8], edi
mov dword [esi + 0x4e4], edi
mov dword [esi + 0x4e8], edi
mov dword [esi + 0x4dc], edi
mov dword [esi + 0x4e0], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x4ec], edi
mov dword [esi + 0x4fc], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x18], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret