joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f680
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4570b8]
cmp byte [eax + 0xc], 0
je 0x43f7ed
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43f7e6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x458bb8], 0
jne 0x43f6d4
push 0x43f7f4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43f7fc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bb8], eax
cmp dword [0x456af0], 0
jne 0x43f7cf
push 0x43f80c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x456af0], eax
cmp dword [0x456af0], 0
je 0x43f7cf
push 0x43f818
mov eax, dword [0x456af0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bbc], eax
push 0x43f828
mov eax, dword [0x456af0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bc0], eax
push 0x43f83c
mov eax, dword [0x456af0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bc4], eax
push 0x43f854
mov eax, dword [0x456af0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bc8], eax
push 0x43f86c
mov eax, dword [0x456af0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bcc], eax
push 0x43f880
mov eax, dword [0x456af0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bd0], eax
push 0x43f898
mov eax, dword [0x456af0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bd4], eax
push 0x43f8b0
mov eax, dword [0x456af0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bd8], eax
push 0x43f8cc
mov eax, dword [0x456af0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bdc], eax
push 0x43f8d8
mov eax, dword [0x456af0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458be0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f7ed
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404278
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44359f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004044e0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44b3ec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b43c]
test si, 4
je 0x44b400
or bl, 1
test si, 8
je 0x44b40a
or bl, 4
test si, 1
je 0x44b414
or bl, 8
test si, 2
je 0x44b41e
or bl, 0x10
test si, 0x10
je 0x44b428
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b437
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44b440
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b478]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b459
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b468
or bl, 4
test esi, 0x20000000
je 0x44b473
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x451a94
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x451aa6
add esp, 0xfffffff0
call fcn.00403870
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420438
mov eax, dword [0x456dd4]
mov dword [eax + 4], ebx
mov dword [eax], 0x451e38
mov eax, dword [0x456de0]
mov dword [eax + 4], ebx
mov dword [eax], 0x451e44
mov eax, ebx
call fcn.00451e50
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4163f8]
call fcn.004034f4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4163f8]
call fcn.004034f4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4163f8]
call fcn.004034f4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4163f8]
call fcn.004034f4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4163f8]
call fcn.004034f4
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44e318
push eax
push 0
push 0
mov eax, dword [0x456ef8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x421dc8]
call fcn.0042320c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x421dc8]
call fcn.0042320c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x421dc8]
call fcn.0042320c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00452270
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45214c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45214c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45214c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451be3
call fcn.004038c8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x451f30
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4520db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4520bc
mov dl, 1
mov eax, dword [0x4168e8]
call fcn.004034f4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404278
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4520ab
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043f9e0
test al, al
je 0x45209e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4520ec
lea eax, [ebp - 0x254]
call fcn.00408e5c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45209e
xor eax, eax
push ebp
push 0x452097
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x452124
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x452080
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044e0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x452080
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45209e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x451fa1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041aa44
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4520e2
lea eax, [ebp - 0x260]
call fcn.00404278
ret

Function at 0x452a10
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x458bfc]
cmp byte [eax + 0xa5], 0
jne 0x452a81
cmp dword [0x458c14], 0
jne 0x452a42
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4529cc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x458c14], eax
cmp dword [0x458c10], 0
jne 0x452a5d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x458c10], eax
cmp dword [0x458c18], 0
jne 0x452a81
push esp
push 0
push 0
push 0x452970
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x458c18], eax
pop edx
ret
Function at 0x452b78
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x452b8f
add esp, 0xfffffff0
call fcn.00403870
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420438
mov eax, dword [0x456ee8]
cmp word [eax + 2], 0
jne 0x452bb7
mov eax, dword [0x456ee8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004541ac
mov eax, dword [0x456f78]
cmp word [eax + 2], 0
jne 0x452bd1
mov eax, dword [0x456f78]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004543a4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4163f8]
call fcn.004034f4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4163f8]
call fcn.004034f4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x422578]
call fcn.004281c4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x452d58
mov eax, dword [0x456e2c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00428594
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x454914
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x456e2c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040b0f8
test eax, eax
je 0x452cc6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004087a4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040b120
test eax, eax
je 0x452cda
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004044e0
mov eax, dword [0x456d4c]
cmp byte [eax], 0
jne 0x452d0e
mov eax, ebx
call fcn.00452e80
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00454af0
mov eax, ebx
call fcn.004554a0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x452d4e
call fcn.004038c8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4530f4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x458bfc]
cmp dword [eax + 0x30], 0
je 0x45319e
cmp dword [ebx + 0x94], 0
jne 0x453198
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x453084
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x453198
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45315e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x453198
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418a98
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45316d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453c7c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x453cb1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404368
jmp 0x453cbe
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042cc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454ccc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454d0d
mov eax, esi
call fcn.0043b160
test al, al
je 0x454d0d
mov eax, dword [ebx + 0x84]
call fcn.0043ae5c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454d0d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043ae5c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x402c1f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6292ec]
jne 0x402c29
repz ret
jmp fcn.00406056

Function at 0x409cab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6292ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004044ac
and dword [ebp - 0x14], 0
cmp dword [0x62af90], 0
mov dword [ebp - 0x18], eax
jne 0x409d5e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409e06
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409e06
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x62af90], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x62af94], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x62af98], eax
call edi
push eax
call esi
mov dword [0x62afa0], eax
test eax, eax
je 0x409d5e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x62af9c], eax
mov eax, dword [0x62af9c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409db7
cmp dword [0x62afa0], ecx
je 0x409db7
push eax
call esi
push dword [0x62afa0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409db7
test ebx, ebx
je 0x409db7
call edi
test eax, eax
je 0x409dae
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x409dae
test byte [ebp - 8], 1
jne 0x409db7
or dword [ebp + 0x10], 0x200000
jmp 0x409dea
mov eax, dword [0x62af94]
cmp eax, dword [ebp - 0x18]
je 0x409dea
push eax
call esi
test eax, eax
je 0x409dea
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409dea
mov eax, dword [0x62af98]
cmp eax, dword [ebp - 0x18]
je 0x409dea
push eax
call esi
test eax, eax
je 0x409dea
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x62af90]
call esi
test eax, eax
je 0x409e06
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409e08
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402c1f
leave
ret
Function at 0x406128
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40614d
mov dword [0x40a0f4], eax
add esp, 0xfffffff8
push 0x4060ec
push eax
call fcn.00407c20
jmp 0x406152
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x406168
mov dword [0x409054], 0x40624c
jmp 0x406172
mov dword [0x409054], 0x406200
leave
ret

Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x715b30a8
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3095037e
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401aa0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x40e068]
test eax, eax
je 0x401adf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401adf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401adf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401adf
cmp dword [ecx + 0x74], 0xe
jbe 0x401adf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40d5a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d5cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d5cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x425000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x425175
cmp dword [esp + 0x54], 0x40
jne 0x425175
cmp word [esp + 0x10], 0x5a4d
jne 0x425175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x425175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x42b960
push esi
call ebx
test eax, eax
je 0x425175
cmp dword [esp + 0x54], 0xf8
jne 0x425175
cmp dword [0x42b960], 0x4550
jne 0x425175
mov eax, dword [0x42b976]
test ah, 0x20
jne 0x425175
mov edx, dword [0x42ba80]
xor eax, eax
mov ax, word [0x42b966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x42ba58], eax
je 0x425175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x42ba6c], eax
xor eax, eax
mov ax, word [0x42b966]
mov edx, dword [0x42ba58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x425175
cmp dword [esp + 0x54], edi
jne 0x425175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x42ba80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x42b9b4]
cmp edx, eax
ja 0x425175
mov edi, dword [0x42ba58]
mov ecx, dword [0x42b988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x425175
xor eax, eax
push 2
mov ax, word [0x42b966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x425175
cmp dword [edi - 0x20], ebx
ja 0x425175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x427769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42b190
cmp edx, dword [eax]
je 0x42778b
add eax, 8
inc ecx
cmp eax, 0x42b220
jl 0x42777c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42b190]
jne 0x4278b9
mov eax, dword [0x42bbb0]
cmp eax, 1
je 0x427893
test eax, eax
jne 0x4277bc
cmp dword [0x42b0e4], 1
je 0x427893
cmp edx, 0xfc
je 0x4278b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4277f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00428670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00428490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x427836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00428490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42a45c
push edi
call fcn.00428f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00428670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00428680
lea eax, [ebp - 0xa0]
push 0x42a43c
push eax
call fcn.00428680
push dword [esi + 0x42b194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00428680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00428e75
add esp, 0x2c
pop edi
jmp 0x4278b9
lea eax, [ebp + 8]
lea esi, [esi + 0x42b194]
push 0
push eax
push dword [esi]
call fcn.00428490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, reloc.kernel32.dll_OutputDebugStringW
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
jmp fcn.00431219
Function at 0x40225a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x465c14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x108]
xor ebx, ebx
push eax
push 0xf003f
push ebx
push str.SOFTWAREWinSock2Kaseya_Agent_LSP
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4022b4
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042345f
leave
ret
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, 0x100
push eax
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.00427a90
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push ebx
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x4022a1
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SOFTWAREWinSock2Kaseya_Agent_LSP
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor eax, eax
jmp 0x402294