joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402488
Capabilities:
Copy file
Delete file
Link many functions at runtime

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0xc8
mov ebx, ecx
mov esi, dword [esp + 0xdc]
movzx eax, byte [esp + 0xe0]
test eax, eax
jne 0x4024df
lea ebp, [ebx + 0x1c8]
mov edi, ebp
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4024c1
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x4024b9
push eax
push 0
push ebp
call fcn.0046e690
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx + 0x1c4], eax
jmp 0x402577
mov ebp, 1
mov dword [esp], ebx
mov ebx, esi
lea esi, [esp + 4]
mov edi, ebx
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x4024ef
mov edi, ebx
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x40250d
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x402505
mov edx, ebp
inc ebp
mov byte [esp + eax], 0
lea eax, [esp + 4]
lea ecx, [esp + 4]
push edx
push ecx
push 0x4970f4
push eax
call fcn.00463577
add esp, 0x10
lea eax, [esp + 4]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
mov eax, 0
setne al
cmp ebp, 0x63
jg 0x4026d0
test eax, eax
je 0x4024e9
mov ebx, dword [esp]
lea ebp, [ebx + 0x1c8]
mov esi, ebp
lea edi, [esp + 4]
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x402560
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx + 0x1c4], eax
test eax, eax
je 0x4026c1
push 0x497100
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x28c], eax
push 0x49710c
push dword [ebx + 0x1c4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x294], eax
push 0x497114
push dword [ebx + 0x1c4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x290], eax
push 0x497120
push dword [ebx + 0x1c4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x298], eax
push 0x49712c
push dword [ebx + 0x1c4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x29c], eax
push 0x497138
push dword [ebx + 0x1c4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x2a0], eax
push 0x497148
push dword [ebx + 0x1c4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x2a4], eax
push 0x497158
push dword [ebx + 0x1c4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x2a8], eax
push 0x497164
push dword [ebx + 0x1c4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x2ac], eax
cmp dword [ebx + 0x294], 0
je 0x4026a3
cmp dword [ebx + 0x290], 0
je 0x4026a3
cmp dword [ebx + 0x298], 0
je 0x4026a3
cmp dword [ebx + 0x29c], 0
je 0x4026a3
cmp dword [ebx + 0x2a0], 0
je 0x4026a3
cmp dword [ebx + 0x2a4], 0
je 0x4026a3
cmp dword [ebx + 0x2a8], 0
je 0x4026a3
push 1
mov ecx, ebx
call fcn.00402260
mov eax, 1
add esp, 0xc8
pop ebx
pop ebp
pop esi
pop edi
ret 8
push dword [ebx + 0x1c4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movsx eax, byte [ebx + 0x1c8]
test eax, eax
je 0x4026c1
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
add esp, 0xc8
pop ebx
pop ebp
pop esi
pop edi
ret 8
mov ebx, dword [esp]
jmp 0x402554
Function at 0x406120
Capabilities:
Find taskbar

Disassembly:
push esi
call fcn.00439fe8
cmp eax, 4
jne 0x406132
mov eax, 1
pop ecx
ret
call fcn.00439fe8
cmp eax, 5
je 0x40612b
call fcn.0044487c
test eax, eax
jne 0x406164
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x481ea8
push 0x10000000
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4061ba
xor eax, eax
pop ecx
ret
push 0
push 0x4974d8
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40618e
mov dword [esp], 0
lea edx, [esp]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp]
test eax, eax
jne 0x406192
xor eax, eax
pop ecx
ret
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [0x481ea4], eax
test eax, eax
je 0x40618e
push 0x481ea8
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, 2
pop ecx
ret

Function at 0x4061c4
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov dword [0x481ea4], eax
mov dword [0x481ea8], eax
call fcn.00406120
cmp eax, 1
jne 0x4061f7
mov eax, 1
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4745f0]
movzx edx, word [0x4745f4]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x14]
mov word [ebp - 0x18], dx
push ecx
push ebx
push ebx
push 2
push dword [0x481ea8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40622d
xor eax, eax
mov ebx, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x406265
mov esi, dword [ebp - 0x14]
mov eax, esi
call fcn.004639e0
and esp, 0xfffffff0
mov eax, esp
mov ebx, eax
test ebx, ebx
je 0x406265
lea edx, [ebp - 0x14]
push edx
push esi
push ebx
push 2
push dword [0x481ea8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x406271
xor eax, eax
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
lea esi, [ebp - 0x1c]
xor ecx, ecx
lea edx, [ebp - 0x10]
push edx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x220
push 0x20
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x406265
xor esi, esi
xor eax, eax
cmp dword [ebx], 0
jbe 0x4062bd
mov dword [ebp - 4], edi
mov edi, ebx
mov ebx, eax
push dword [ebp - 0x10]
push dword [edi + ebx*8 + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4062fa
inc ebx
cmp ebx, dword [edi]
jb 0x4062a4
mov edi, dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [0x481ea4]
test eax, eax
je 0x4062d6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x481ea8]
test eax, eax
je 0x4062e6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
mov eax, 0
mov ebx, dword [ebp - 8]
setne al
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
mov esi, 1
jmp 0x4062bd
Function at 0x40a36c
Capabilities:
Get file version info

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0xc
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
test esi, esi
je 0x40a418
test ebp, ebp
je 0x40a418
lea eax, [esp]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x40a3a5
xor eax, eax
add esp, 0xc
pop ebx
pop ebp
pop esi
pop edi
ret
push edi
call fcn.004639c5
mov ebx, eax
add esp, 4
push ebx
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 8]
lea edx, [esp + 4]
push edx
push ecx
push 0x497bc0
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40a3ec
lea ecx, [esp + 8]
lea edx, [esp + 4]
push edx
push ecx
push 0x497be8
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40a40d
push dword [esp + 0x28]
push dword [esp + 0xc]
push ebp
call fcn.00463d50
push ebx
call fcn.00463168
mov eax, 1
add esp, 0x1c
pop ebx
pop ebp
pop esi
pop edi
ret
mov byte [ebp], 0
push ebx
call fcn.00463168
pop ecx
xor eax, eax
add esp, 0xc
pop ebx
pop ebp
pop esi
pop edi
ret
Function at 0x4134bc
Capabilities:
Clear file content
Timestomp file

Disassembly:
push edi
push esi
sub esp, 0x18
mov esi, ecx
movzx eax, byte [esi + 0x2e1]
test eax, eax
jne 0x4134d4
add esp, 0x18
pop esi
pop edi
ret
mov byte [esi + 0x2e1], 0
push dword [esi + 0x2c8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [esi + 0x2c8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea edi, [esi + 0x2ac]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x41350b
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x413503
test eax, eax
je 0x41359b
push edi
call fcn.004642e5
lea edx, [esi + 0x2af]
mov word [esp + 6], ax
push edx
call fcn.004642e5
lea edx, [esi + 0x2b2]
mov word [esp + 0xe], ax
push edx
call fcn.004642e5
lea edx, [esi + 0x2b7]
mov word [esp + 0xc], ax
push edx
call fcn.004642e5
lea edx, [esi + 0x2ba]
mov word [esp + 0x18], ax
push edx
call fcn.004642e5
add esp, 0x14
xor edx, edx
mov word [esp + 0xa], ax
lea eax, [esp]
lea edi, [esp + 0x10]
mov word [esp + 0xe], dx
mov word [esp + 0xc], dx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edi, [esp + 0x10]
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push edx
push edi
push dword [esi + 0x2c8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [esi + 0x2c8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x168]
mov ecx, esi
push eax
call fcn.004135e0
mov eax, dword [esi + 0x2c4]
test eax, eax
je 0x4135c6
push eax
call fcn.00463168
pop ecx
mov eax, dword [esi + 0x2c0]
test eax, eax
je 0x4135d7
push eax
call fcn.00463168
pop ecx
add esp, 0x18
pop esi
pop edi
ret

Function at 0x4135e0
Capabilities:
Delete file

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x310
mov ebp, ecx
movzx eax, byte [ebp + 0x2e0]
test eax, eax
jne 0x4136ea
push 0x5c
mov eax, dword [esp + 0x328]
push eax
call fcn.00463550
mov ebx, eax
add esp, 8
mov edi, 0x499340
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x413626
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x41361e
inc ebx
push eax
push 0x499340
push ebx
call fcn.00463f60
add esp, 0xc
test eax, eax
jne 0x4136ea
lea esi, [esp + 4]
mov edi, dword [esp + 0x324]
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x413649
lea eax, [esp + 4]
push 0x5c
push eax
call fcn.00463550
lea ebx, [eax + 1]
mov dword [esp + 8], eax
push 0x2d
push ebx
call fcn.00463fb0
add esp, 0x10
inc eax
lea esi, [esp + 0x20c]
mov edi, eax
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x41367b
lea eax, [esp + 0x20c]
push 0x2e
push eax
call fcn.00463550
add esp, 8
test ebx, ebx
mov byte [eax], 0
je 0x4136a5
mov eax, dword [esp]
mov byte [eax + 1], 0
lea edi, [esp + 4]
lea edx, [esp + 0x20c]
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x4136ba
lea edx, [esp + 4]
mov eax, dword [esp + 0x324]
mov ecx, dword [ebp + 0x164]
push eax
push edx
call fcn.00448010
mov eax, dword [esp + 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
add esp, 0x310
pop ebx
pop ebp
pop esi
pop edi
ret 4
Function at 0x4141e0
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0xc
xor esi, esi
xor edi, edi
xor ebp, ebp
mov dword [esp], 0
push 0x2000
call fcn.004639c5
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41429a
mov dword [esp + 8], edi
mov edi, dword [esp + 0x20]
lea edx, [esp]
push 0
push edx
push 0x2000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41423b
cmp dword [esp], 0
je 0x414248
mov edx, 1
mov dword [esp + 8], edx
jmp 0x414248
cmp dword [esp], 0
jne 0x414248
mov esi, 1
jmp 0x414277
xor edx, edx
push edx
push edx
push edx
call fcn.00449b8c
mov dword [esp + 0x10], eax
push dword [esp + 0xc]
push ebx
push eax
call fcn.00449b8c
add esp, 0x18
mov dword [esp + 4], eax
mov ecx, ebp
mov edx, dword [esp + 4]
add ecx, dword [esp + 0x24]
mov dword [ecx], edx
add ebp, 4
test esi, esi
je 0x414213
mov edi, dword [esp + 8]
xor edx, edx
push edx
push edx
push edx
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call fcn.00463168
pop ecx
test edi, edi
je 0x4142a9
mov eax, 0xffffffff
add esp, 0xc
pop ebx
pop ebp
pop esi
pop edi
ret 0xc
mov eax, ebp
add esp, 0xc
pop ebx
pop ebp
pop esi
pop edi
ret 0xc
Function at 0x414988
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471ab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov eax, dword [ecx]
mov dword [ebp - 0x14], ecx
call dword [eax + 0x24]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040276c
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
movzx edx, byte [eax + 0x43e]
test edx, edx
jne 0x4149f2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040275c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
movzx edx, byte [eax + 0x43d]
test edx, edx
mov byte [eax + 0x43e], 0
jne 0x414a27
mov eax, 7
lea edx, [ebp - 0x2c]
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 0x2c], al
mov ecx, dword [ebx + 0xe8]
mov byte [ebp - 0x2b], 6
push eax
push 0xc
push edx
call fcn.00446684
jmp 0x414a47
mov eax, 7
lea edx, [ebp - 0x2c]
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 0x2c], al
mov ecx, dword [ebx + 0xe8]
mov byte [ebp - 0x2b], al
push eax
push 0xc
push edx
call fcn.00446684
mov eax, ebx
push dword [eax + 0x428]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov eax, dword [eax + 0x2c0]
test eax, eax
je 0x414a68
push eax
call fcn.00463168
pop ecx
mov eax, ebx
mov eax, dword [eax + 0x2c4]
test eax, eax
je 0x414a7b
push eax
call fcn.00463168
pop ecx
mov eax, ebx
add eax, 0x2e2
mov dword [ebp - 0x14], eax
push 0x5c
push eax
call fcn.00463550
mov ebx, eax
add esp, 8
mov edi, 0x499340
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x414aa9
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x414aa1
inc ebx
push eax
push 0x499340
push ebx
call fcn.00463f60
add esp, 0xc
test eax, eax
jne 0x414adc
push 0x2c
mov eax, dword [ebp - 0x14]
push eax
call fcn.00463550
add esp, 8
test eax, eax
je 0x414ad2
mov byte [eax], 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040275c
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x414dd0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
sub esp, 0x100
movzx ebp, byte [esp + 0x108]
lea eax, [esp]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
movzx eax, byte [esp + ebp]
test al, 1
jne 0x414df9
add esp, 0x100
pop ebp
ret
xor eax, eax
push eax
push 1
push eax
push ebp
call dword [sym.imp.USER32.dll_keybd_event]
xor eax, eax
push eax
push 3
push eax
push ebp
call dword [sym.imp.USER32.dll_keybd_event]
add esp, 0x100
pop ebp
ret
Function at 0x414e34
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
sub esp, 0x118
lea eax, [esp + 0x10]
push pe_nt_image_headers32
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
je 0x414e71
mov eax, dword [esp + 0x124]
push eax
push 0x498f40
mov edx, dword [esp + 0x128]
push edx
call fcn.00463d50
add esp, 0x124
pop ebp
ret
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x414f94
mov edx, dword [esp + 0x120]
mov byte [edx], 0
xor edx, edx
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x414f8c
xor ebp, ebp
mov dword [esp], ebx
mov dword [esp + 4], esi
mov esi, eax
mov ebx, edx
mov dword [esp + 8], edi
mov edi, dword [esp + 0x120]
xor eax, eax
movsx edx, word [esi + 0xa]
test edx, edx
jle 0x414f22
mov dword [esp + 0xc], ebx
mov ebx, eax
jmp 0x414ec9
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x110]
mov ecx, dword [ebp + ecx]
movzx ecx, byte [ebx + ecx]
push ecx
push 0x498f70
push edx
call fcn.00463577
add esp, 0xc
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x414ef9
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x414ef1
lea edx, [esp + 0x110]
neg eax
add eax, dword [esp + 0x124]
dec eax
push eax
push edx
push edi
call fcn.004642f0
add esp, 0xc
inc ebx
movsx edx, word [esi + 0xa]
cmp ebx, edx
jl 0x414ec6
mov ebx, dword [esp + 0xc]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x414f34
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x414f2c
mov byte [eax + edi - 1], 0
mov ecx, dword [esi + 0xc]
cmp dword [ebp + ecx + 4], 0
je 0x414f71
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x414f55
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x414f4d
neg eax
add eax, dword [esp + 0x124]
dec eax
push eax
push 0x498f74
push edi
call fcn.004642f0
add esp, 0xc
mov ecx, dword [esi + 0xc]
inc ebx
lea ebp, [ebx + ebx]
add ebp, ebp
cmp dword [ecx + ebp], 0
jne 0x414eb4
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
add esp, 0x118
pop ebp
ret
mov eax, dword [esp + 0x124]
push eax
push 0x498f58
mov edx, dword [esp + 0x128]
push edx
call fcn.00463d50
add esp, 0x124
pop ebp
ret
Function at 0x4193e0
Capabilities:
Create thread
Power down monitor

Disassembly:
push esi
push ebx
push esi
mov esi, ecx
movzx ebx, byte [esp + 0x10]
push 0x497024
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x49702c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4195b0
mov ecx, esi
call fcn.0041a774
test eax, eax
je 0x419424
mov ecx, dword [esi + 0xdbb0]
mov eax, dword [ecx]
push 0
call dword [eax + 0x230]
call fcn.00439fe8
cmp eax, 1
jne 0x41943d
mov eax, dword [esi + 0xe110]
test eax, eax
je 0x419456
push ebx
call eax
jmp 0x419456
mov ecx, dword [esi + 0xdbb0]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x114]
mov dword [esi + 0xe0e8], 1
mov ecx, dword [esi + 0xdbb0]
mov eax, dword [ecx]
call dword [eax + 0x1c0]
test eax, eax
je 0x4195aa
test ebx, ebx
je 0x419521
mov ecx, dword [esi + 0xdbb0]
mov eax, dword [ecx]
call dword [eax + 0x234]
test eax, eax
jne 0x4194e0
push 0
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
xor edx, edx
lea eax, [esi + 0xe0dc]
push edx
push eax
push edx
push 0x50
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
xor eax, eax
push eax
push eax
push 0x64
push 0x52
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
xor eax, eax
push eax
push eax
push 1
push 0x56
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 2
push 0xf170
push 0x112
push dword [esi + 0xdbb8]
call dword [sym.imp.USER32.dll_SendMessageA]
pop ecx
pop ebx
pop esi
ret 4
xor edx, edx
lea eax, [esp]
push eax
push edx
push edx
push 0x4012a0
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0xdbac], 0
mov eax, 0
setne al
mov byte [esi + 0xe0e0], al
mov dword [esi + 0xdbac], 0
pop ecx
pop ebx
pop esi
ret 4
mov ecx, dword [esi + 0xdbb0]
mov eax, dword [ecx]
call dword [eax + 0x234]
test eax, eax
jne 0x41957f
mov edx, dword [esi + 0xe0dc]
test edx, edx
je 0x41954a
xor eax, eax
push eax
push eax
push edx
push 0x52
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
xor eax, eax
push eax
push eax
push eax
push 0x56
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0xffffffffffffffff
push 0xf170
push 0x112
push dword [esi + 0xdbb8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esi + 0xe0dc], 0
pop ecx
pop ebx
pop esi
ret 4
push 0
push 0x497018
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x41959d
xor edx, edx
push edx
push edx
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
movzx eax, byte [esi + 0xe0e0]
mov dword [esi + 0xdbac], eax
pop ecx
pop ebx
pop esi
ret 4
mov ecx, dword [esi + 0xdbb0]
mov eax, dword [ecx]
push 0
call dword [eax + 0x230]
jmp 0x419409
Function at 0x419dd0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push edi
push esi
push ebp
push ebx
mov esi, ecx
mov edi, dword [esp + 0x14]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x419dec
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x419de4
mov edi, eax
lea edx, [edi + edi + 1]
push edx
call fcn.004639c5
mov ebx, eax
add esp, 4
xor ebp, ebp
xor ecx, ecx
test edi, edi
jle 0x419e27
mov eax, dword [esp + 0x14]
movsx edx, byte [ecx + eax]
cmp edx, 0xa
jne 0x419e1d
mov edx, ebp
inc ebp
mov byte [edx + ebx], 0xd
movsx edx, byte [ecx + eax]
mov byte [ebp + ebx], dl
inc ecx
inc ebp
cmp ecx, edi
jl 0x419e09
mov byte [ebp + ebx], 0
inc ebp
push dword [esi + 0xdbb8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x419e7e
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x419e7e
push ebp
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x419e7e
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
mov edi, ebx
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x419e64
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
call fcn.00463168
pop ecx
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
pop ebp
pop esi
pop edi
ret 4
Function at 0x41b998
Capabilities:
Create process on windows
Terminate process

Disassembly:
push edi
push ebx
sub esp, 0x158
mov ebx, ecx
cmp dword [esp + 0x164], 0
jne 0x41b9dc
mov eax, dword [ebx + 0xe0f8]
test eax, eax
je 0x41bb3e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov dword [ebx + 0xe0f8], eax
mov dword [ebx + 0xe0d8], eax
add esp, 0x158
pop ebx
pop edi
ret 4
xor edx, edx
lea eax, [esp]
mov dword [ebx + 0xe0f8], edx
push 0x104
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x41ba2d
lea eax, [esp]
push 0x5c
push eax
call fcn.00463550
add esp, 8
test eax, eax
je 0x41bb3e
mov byte [eax], 0
lea edi, [esp]
mov edx, 0x49c780
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x41ba23
xor eax, eax
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], eax
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], eax
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], eax
mov dword [esp + 0x104], 0x44
xor ecx, ecx
lea edi, [esp]
lea edx, [esp + 0x104]
lea eax, [esp + 0x148]
push eax
push edx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x41bb01
push 0x49c7a0
push 0
push 0x481eac
call fcn.00407ffc
add esp, 0xc
mov dword [ebx + 0xe0d8], 0
add esp, 0x158
pop ebx
pop edi
ret 4
push 0x49c800
push 0
push 0x481eac
call fcn.00407ffc
add esp, 0xc
mov dword [ebx + 0xe0d8], 1
push 0x2710
push dword [esp + 0x14c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [esp + 0x148]
mov dword [ebx + 0xe0f8], eax
add esp, 0x158
pop ebx
pop edi
ret 4
Function at 0x41bf3c
Capabilities:
Create thread

Disassembly:
push ebx
sub esp, 0x34
mov ebx, ecx
movzx eax, word [0x481eec]
test eax, eax
jne 0x41bfc7
mov dword [esp], 0x30
xor edx, edx
mov eax, dword [0x494b0c]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x418458
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
push edx
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x20], eax
xor eax, eax
lea edx, [esp]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], str.WinVNC_desktop_sink
mov dword [esp + 0x2c], eax
push edx
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov word [0x481eec], ax
movzx eax, ax
test eax, eax
jne 0x41bfc7
push 0x49bb20
push 0
push 0x481eac
call fcn.00407ffc
xor eax, eax
add esp, 0x40
pop ebx
ret
xor edx, edx
mov eax, accept
push edx
push dword [0x494b0c]
push edx
push edx
push 0xc8
push 0x190
push eax
push eax
push 0xcf0000
push 0x499fe0
push str.WinVNC_desktop_sink
push edx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebx + 0xdbb8], eax
test eax, eax
je 0x41c05d
push ebx
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
push dword [ebx + 0xdbb8]
call dword [sym.imp.USER32.dll_SetClipboardViewer]
mov dword [ebx + 0xdbc0], eax
mov ecx, ebx
mov byte [ebx + 0xb8], 0
call fcn.0041a774
test eax, eax
je 0x41c053
xor edx, edx
lea eax, [esp + 0x30]
push eax
push edx
push dword [ebx + 0xdbb8]
push 0x4183ac
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x34
pop ebx
ret
push 0x49bb80
push 0
push 0x481eac
call fcn.00407ffc
xor eax, eax
add esp, 0x40
pop ebx
ret