joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452810
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov dword [0x5d95ec], 0
cmp dword [esi + 0xe93c], 0
mov byte [esi + 0xe940], 1
je 0x4528df
push str.vncDesktop::StopInitWindowthread_:_vncDesktop::Tell_initwindowthread_to_close__n
push 9
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
push 0
push 0
push 0x12
push dword [esi + 0xe39c]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0x7d0
push dword [esi + 0xe93c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4528b3
push str.vncDesktop::StopInitWindowthread_:_vncDesktop::ERROR:__messageloop_blocked__n
push 0
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
push 0
push dword [esi + 0xe93c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xe93c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xe408], 0
mov dword [esi + 0xe93c], 0
pop esi
ret
push str.vncDesktop::StopInitWindowthread_:_vncDesktop::_iniwindowthread_proper_closed__n
push 0
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
push dword [esi + 0xe93c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xe93c], 0
pop esi
ret
push str.vncDesktop::StopInitWindowthread_:_initwindowthread_already_closed__n
push 9
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
pop esi
ret
Function at 0x452900
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5d60c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread__n
push 9
push 0x5d6df8
mov esi, eax
mov byte [edi + 0xe940], 0
call fcn.0041d510
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x100
lea eax, [ebp - 0x104]
push eax
push 2
push esi
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
test eax, eax
je 0x452aba
mov ecx, str.Default
lea eax, [ebp - 0x104]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x452990
test dl, dl
je 0x45298c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x452990
add eax, 2
add ecx, 2
test dl, dl
jne 0x452970
xor eax, eax
jmp 0x452995
sbb eax, eax
or eax, 1
test eax, eax
jne 0x452aa6
push str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_default_desk_n
push 9
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
cmp dword [edi + 0xe93c], 0
jne 0x452a7a
push dword [edi + 0xe398]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [0x5e44e8]
cmp dword [eax + 0x788], 0
je 0x4529dd
call fcn.00432d70
lea eax, [edi + 0xe39c]
push eax
push 0
push edi
push 0x452ad0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x2710
push dword [edi + 0xe398]
mov dword [edi + 0xe93c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x452a73
push str.vncDesktop::StartInitWindowthread_:_ERROR:_initwindowthread_failed_to_start__n
push 9
push 0x5d6df8
call fcn.0041d510
mov eax, dword [edi + 0xe93c]
add esp, 0xc
test eax, eax
je 0x452a5b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0xe93c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xe408], 0
mov dword [edi + 0xe93c], 0
xor al, al
mov byte [edi + 0xe940], al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
push str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_started_n
jmp 0x452a7f
push str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_reactivate_n
push 9
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
mov al, 1
mov byte [edi + 0xe940], al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
push str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_no_default_desk_n
push 9
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0052b789
mov esp, ebp
pop ebp
ret
Function at 0x45a4b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5d60c4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push str.vncEncoder::GetRemotePalette_:_remote_palette_data_requested_n
push 9
push 0x5d6df8
mov esi, ecx
mov dword [esp + 0x24], ebx
call fcn.0041d510
add esp, 0xc
cmp word [esi + 0x38], 0
je 0x45a620
cmp word [esi + 0x34], 0
je 0x45a620
cmp word [esi + 0x36], 0
je 0x45a620
cmp byte [esi + 0x13], 0
jne 0x45a51a
mov ecx, esi
call fcn.0045a6b0
test eax, eax
je 0x45a620
cmp byte [esi + 0x23], 0
jne 0x45a620
cmp byte [esi + 0x13], 0
lea edi, [esi + 0xc]
je 0x45a636
push str.vncEncoder::GetRemotePalette_:_generating_BGR233_palette_data_n
push 9
push 0x5d6df8
call fcn.0041d510
mov cl, byte [esi + 0x30]
mov ebx, 1
mov eax, dword [edi]
add esp, 0xc
shl ebx, cl
test eax, eax
je 0x45a55e
push eax
call fcn.0052fd09
add esp, 4
lea eax, [ebx*4]
push eax
call fcn.00531933
mov ecx, eax
add esp, 4
mov dword [esi + 0xc], ecx
test ecx, ecx
je 0x45a602
xor eax, eax
mov dword [esp + 0x10], eax
test ebx, ebx
jle 0x45a602
inc ecx
mov dword [esp + 0x14], ecx
nop word [eax + eax]
movzx ecx, byte [esi + 0x3c]
xor edx, edx
movzx edi, word [esi + 0x38]
sar eax, cl
and eax, edi
mov ecx, dword [esp + 0x14]
imul eax, eax, 0xff
div edi
xor edx, edx
mov byte [ecx - 1], al
movzx ecx, byte [esi + 0x3a]
movzx edi, word [esi + 0x34]
mov eax, dword [esp + 0x10]
sar eax, cl
and eax, edi
mov ecx, dword [esp + 0x14]
imul eax, eax, 0xff
div edi
xor edx, edx
mov byte [ecx + 1], al
movzx ecx, byte [esi + 0x3b]
mov eax, dword [esp + 0x10]
movzx edi, word [esi + 0x36]
sar eax, cl
and eax, edi
mov ecx, dword [esp + 0x14]
imul eax, eax, 0xff
div edi
mov byte [ecx], al
add ecx, 4
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x45a590
mov ebx, dword [esp + 0x18]
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x45a682
push str.vncEncoder::GetRemotePalette_:_failed_to_obtain_colour_map_data__n
push esi
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0052b789
mov esp, ebp
pop ebp
ret 8
push str.vncEncoder::GetRemotePalette_:_generating_8_bit_palette_data_n
push 9
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
mov dword [esp + 0x1e], 0xff0100
lea eax, [esp + 0x1c]
mov word [esp + 0x1c], 0x1820
mov dword [esp + 0x22], 0xff00ff
mov word [esp + 0x26], 0x810
push eax
lea eax, [esi + 0x10]
mov byte [esp + 0x2c], 0
push eax
push edi
call dword [0x5ba150]
add esp, 0xc
jmp 0x45a606
mov edi, ebx
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x2c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052b789
mov esp, ebp
pop ebp
ret 8
Function at 0x4672f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567abe
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d60c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call fcn.0045a190
mov dword [ebp - 4], 0
push 0x10
mov dword [ebx], vtable.vncEncodeXZ.0
call fcn.0052b79c
mov esi, eax
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
push 0x400
mov dword [esi], vtable.rdr::MemOutStream.0
call fcn.0052b7da
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
add eax, 0x400
mov dword [esi + 8], eax
mov byte [ebp - 4], 0
push 0x80
mov dword [ebx + 0x8c], esi
call fcn.0052b79c
mov edi, eax
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 4
lea esi, [edi + 0x1c]
push 0x60
push 0
push esi
mov dword [edi], vtable.rdr::xzOutStream.0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0x10000
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.0052d9b0
push dword [edi + 0x10]
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x34], 2
mov dword [edi + 0x40], 0
mov dword [edi + 0x3c], 4
mov dword [edi + 0x28], 2
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [esi], 0x400000
mov dword [edi + 0x38], 0xc0
call fcn.0052b7da
mov ecx, dword [edi + 0x10]
add ecx, eax
mov dword [edi + 0x7c], eax
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov byte [ebp - 4], 0
push 0x4004
mov dword [ebx + 0x88], edi
call fcn.0052b7da
mov dword [ebx + 0x90], eax
add esp, 0x20
mov dword [ebx + 0x84], 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x473cd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x401
call fcn.0052b7da
mov ebx, dword [ebp + 8]
add esp, 4
xor ecx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
mov ecx, dword [sym.imp.WS2_32.dll_recv]
nop word [eax + eax]
lea edi, [ebp + 0xb]
mov esi, 1
nop dword [eax + eax]
mov eax, dword [0x5e44e8]
cmp dword [eax + 0xe64], 0
je 0x473d32
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
jne 0x473d3e
mov eax, dword [ebx + 0xc]
cmp eax, 0xffffffff
jne 0x473d3e
xor eax, eax
jmp 0x473d45
mov eax, dword [ebx + 0x10]
cmp eax, 0xffffffff
jne 0x473d3e
or eax, eax
jmp 0x473d45
push 0
push esi
push edi
push eax
call ecx
test eax, eax
jle 0x473d4f
add edi, eax
sub esi, eax
jmp 0x473d5e
je 0x473dcb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x473dae
mov ecx, dword [sym.imp.WS2_32.dll_recv]
test esi, esi
jne 0x473d10
mov al, byte [ebp + 0xb]
cmp al, byte [ebp + 0xc]
je 0x473d9b
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov byte [esi + edx], al
inc edx
mov dword [ebp - 4], edx
cmp edx, 0x3ff
jne 0x473d00
pop edi
mov byte [esi + 0x3ff], 0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov byte [eax + ecx], 0
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.VSocket::ReadExactHTTP_:_HTTP_socket_error:__d_n
push 4
push 0x5d6df8
call fcn.0041d510
add esp, 0x10
jmp 0x473ddf
push str.VSocket::ReadExactHTTP_:_zero_bytes_read3_n
push 4
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.0052b797
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push esi
mov esi, ecx
push dword [esi]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x47417c
push ebx
mov bl, byte [esi]
push ecx
push dword [esi + 4]
movzx eax, bl
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dl, al
mov cl, bl
call fcn.004329b0
push dword [esi]
push str.fake__d_down_n
push 9
push 0x5d6df8
call fcn.0041d510
add esp, 0x18
mov byte [esi + 8], 1
pop ebx
pop esi
ret

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

Disassembly:
push esi
mov esi, ecx
push dword [esi]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4741d0
mov eax, dword [esi + 4]
push ebx
mov bl, byte [esi]
or eax, 2
push ecx
push eax
push 0
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dl, al
mov cl, bl
call fcn.004329b0
push dword [esi]
push str.fake__d_up_n
push 9
push 0x5d6df8
call fcn.0041d510
add esp, 0x18
mov byte [esi + 9], 1
pop ebx
pop esi
ret
Function at 0x474290
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567c7e
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x5d60c4]
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 eax, dword [ebp - 0x118]
mov dword [ebp - 0x118], eax
push 0x18
mov dword [ebp - 0x118], 0x5e4510
mov dword [0x5e4510], 0
mov dword [0x5e4514], 0
call fcn.0052b79c
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x5e4510], eax
mov dword [ebp - 4], 0
push 0x18
mov dword [0x5e4518], 0
mov dword [0x5e451c], 0
call fcn.0052b79c
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x5e4518], eax
mov byte [ebp - 4], 1
mov esi, 0x5d7200
mov edi, 0x62
nop dword [eax + eax]
push esi
mov ecx, 0x5e4510
call fcn.00475580
movzx ecx, byte [esi + 4]
push esi
mov byte [eax], cl
mov ecx, 0x5e4518
call fcn.00475460
movzx ecx, byte [esi + 5]
add esi, 8
mov byte [eax], cl
sub edi, 1
jne 0x474350
push 0x100
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.0052d9b0
add esp, 0xc
nop
movzx eax, byte [edi + 0x5d6c6c]
lea esi, [edi + 0x5d6c6c]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
movzx edx, ax
cmp dx, 0xffff
je 0x474452
mov ecx, edx
movzx ebx, dl
shr ecx, 8
mov al, cl
shl al, 7
mov byte [ebp - 0x100], al
mov al, cl
and al, 0xfe
and cl, 0xfc
shl al, 6
push 0
mov byte [ebp - 0xff], al
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
shl cl, 5
push eax
push 0
push ebx
mov byte [ebp - 0xfe], cl
call dword [sym.imp.USER32.dll_ToAscii]
test eax, eax
jns 0x474452
movzx eax, byte [esi]
push eax
push eax
push str.Found_dead_key_0x_x__c
push 8
push 0x5d6df8
call fcn.0041d510
mov ecx, dword [0x5e4524]
add esp, 0x14
cmp ecx, dword [0x5e4528]
je 0x47442d
mov al, byte [esi]
mov byte [ecx], al
inc dword [0x5e4524]
jmp 0x474439
push esi
push ecx
mov ecx, 0x5e4520
call fcn.0044c240
push 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push ebx
call dword [sym.imp.USER32.dll_ToAscii]
inc edi
cmp edi, 7
jb 0x474390
mov eax, 0x5e4510
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.0052b789
mov esp, ebp
pop ebp
ret
Function at 0x4753e0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov bl, cl
movzx esi, bl
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test eax, 0x8000
je 0x47545a
push 0x5c979c
push str.down
push esi
push str.SetShiftState_:_setshiftstate__d_____s___s__n
push 9
push 0x5d6df8
call fcn.0041d510
add esp, 0x14
push 2
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dl, al
mov cl, bl
call fcn.004329b0
add esp, 8
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test eax, 0x8000
mov ecx, 0x5c979c
mov eax, str.down
cmove eax, ecx
push eax
push esi
push str.SetShiftState_:_new_state__d___s__n
push 9
push 0x5d6df8
call fcn.0041d510
add esp, 0x14
pop esi
pop ebx
ret

Function at 0x475ee0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x5d60c4]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x40c]
call fcn.00426c50
lea eax, [ebp - 0x40c]
push eax
push 0x200
lea eax, [ebp - 0x308]
push eax
push 0x5b9638
push str.path
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x308]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x475f30
sub ecx, edx
jne 0x475f72
push 0x104
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x475f6a
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0052cf50
add esp, 8
test eax, eax
je 0x475f8b
mov byte [eax], 0
lea eax, [ebp - 0x108]
jmp 0x475f78
lea eax, [ebp - 0x308]
push eax
push 0x104
push 0x5d7012
call fcn.0053193e
add esp, 0xc
push 0x5d7012
push 0x200
push 0x5d6e10
call fcn.0053193e
push 0x5bea9c
push 0x200
push 0x5d6e10
call fcn.00531998
push str.WinVNC.log
push 0x200
push 0x5d6e10
call fcn.00531998
add esp, 0x24
mov byte [0x5d7010], 1
cmp byte [0x5d6e00], 0
je 0x475fdf
call fcn.00475ff0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
Function at 0x475ff0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x5d6e10
push esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x476000
sub ecx, edx
jne 0x47602c
push str.Error_opening_log_file_n
push ecx
push 0x5d6df8
mov word [0x5d6e00], 0x100
call fcn.0041d510
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x5d7010], 0
mov byte [0x5d6e00], 1
jne 0x4760b8
mov ecx, 0x5d6e10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x476044
sub ecx, edx
lea eax, [ecx + 5]
push eax
call fcn.0052b7da
mov esi, eax
add esp, 4
mov eax, 0x5d6e10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x476063
sub eax, edx
push 0x5d6e10
add eax, 5
push eax
push esi
call fcn.0053193e
mov ecx, 0x5d6e10
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x476086
sub ecx, edx
push str..bak
lea eax, [ecx + 5]
push eax
push esi
call fcn.00531998
add esp, 0xc
push 1
push esi
push 0x5d6e10
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push esi
call fcn.0052b797
add esp, 4
mov eax, dword [0x5d6e0c]
test eax, eax
je 0x4760d2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5d6e0c], 0
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push 0x5d6e10
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x5d6e0c], eax
cmp eax, 0xffffffff
jne 0x476120
push 0x5d6e10
push str.Error_opening_log_file__s_n
push 0
push 0x5d6df8
mov word [0x5d6e00], 0x100
call fcn.0041d510
mov eax, dword [0x5d6e0c]
add esp, 0x10
cmp byte [0x5d7010], 0
je 0x47613b
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4761d0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc14
mov eax, dword [0x5d60c4]
xor eax, esp
mov dword [esp + 0xc10], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov esi, ecx
mov dword [esp + 0x10], eax
call fcn.00531a36
lea ecx, [esi + 0x320]
add esp, 4
cmp eax, dword [ecx]
jne 0x476212
cmp edx, dword [ecx + 4]
je 0x476228
push ecx
mov dword [ecx], eax
mov dword [ecx + 4], edx
call fcn.00540b8f
add esp, 4
mov ecx, esi
push eax
call fcn.00476150
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0xc]
mov edi, eax
lea eax, [esp + 0x14]
push 0
push ebx
push 0x400
push eax
call fcn.0041e510
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00539905
add esp, 0x1c
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x4762d0
push 0
push 0x400
lea eax, [esp + 0x820]
push eax
push 0x400
push edi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x47629f
push edi
lea eax, [esp + 0x81c]
push str.error_code_0x_08X
push eax
call fcn.0042fed0
add esp, 0xc
push 0x5c9850
lea eax, [esp + 0x14]
push 0x801
push eax
call fcn.00531998
add esp, 0xc
lea eax, [esp + 0x818]
push eax
lea eax, [esp + 0x14]
push 0x801
push eax
call fcn.00531998
add esp, 0xc
cmp byte [esi + 9], 0
je 0x4762e1
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [esi + 0xa], 0
je 0x476315
lea ecx, [esp + 0x10]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4762f0
push 0
lea eax, [esp + 0x10]
sub ecx, edx
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
cmp byte [esi + 8], 0
je 0x47634d
mov edx, dword [esi + 0x14]
test edx, edx
je 0x47634d
lea ecx, [esp + 0x10]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x476330
push 0
lea eax, [esp + 0x10]
sub ecx, esi
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0xc1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052b789
mov esp, ebp
pop ebp
ret 8
Function at 0x4764f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5d60c4]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [0x5e49d0]
push str.RestoreDesktop_:_Restorewallpaper__i_n
push 8
push 0x5d6df8
call fcn.0041d510
mov eax, dword [0x5e49d0]
add esp, 0x10
test eax, eax
je 0x47661a
push dword [0x5e49d4]
push eax
push str.RestoreDesktop_:_Restorewallpaper__i__i_n
push 8
push 0x5d6df8
call fcn.0041d510
add esp, 0x14
cmp dword [0x5e49d4], 0
je 0x4765b3
push esi
push edi
push str.shell32.dll
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4765b1
push str.DllGetVersion
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47659b
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0x14
lea ecx, [ebp - 0x18]
movlpd qword [ebp - 0x14], xmm0
push ecx
movlpd qword [ebp - 0xc], xmm0
call eax
test eax, eax
js 0x47659b
movzx esi, word [ebp - 0x14]
movzx eax, word [ebp - 0x10]
shl esi, 0x10
or esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, 0x40047
jb 0x4765b1
mov cl, 1
call fcn.00426960
pop edi
pop esi
push 2
push 0x5e45d0
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea eax, [ebp - 0x1c]
push eax
push 0x20006
push 0
push str.Control_PanelDesktop
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47661a
mov ecx, 0x5e49d8
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4765f0
sub ecx, edx
push ecx
push 0x5e49d8
push 1
push 0
push str.WallpaperStyle
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x5e49d0], 0
call fcn.0052b789
mov esp, ebp
pop ebp
ret

Function at 0x476dd0
Capabilities:
Find taskbar

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x5b9638
lea edx, [edi + 0x634]
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [esi]
jne 0x476e02
test bl, bl
je 0x476dfe
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x476e02
add eax, 2
add esi, 2
test cl, cl
jne 0x476de2
xor eax, eax
jmp 0x476e07
sbb eax, eax
or eax, 1
test eax, eax
je 0x476e9f
mov eax, str.SYSTEM
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x476e34
test cl, cl
je 0x476e30
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x476e34
add edx, 2
add eax, 2
test cl, cl
jne 0x476e14
xor eax, eax
jmp 0x476e39
sbb eax, eax
or eax, 1
test eax, eax
je 0x476e9f
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x476e5e
inc dword [edi + 0x758]
mov byte [edi + 0x754], al
pop edi
pop esi
pop ebx
ret
cmp byte [edi + 0x754], 0
jne 0x476e6e
mov ecx, edi
call fcn.00477270
mov ecx, edi
call fcn.004777a0
lea eax, [edi + 0x75e]
push eax
lea eax, [edi + 0x270]
push 0x80
push eax
call fcn.0053af67
add esp, 0xc
lea eax, [edi + 0x258]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
pop edi
pop esi
pop ebx
ret