joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413300
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff50
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xac], ecx
invalid
invalid

Function at 0x413844
Capabilities:
Find taskbar
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x413a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
xor eax, eax
call fcn.0040272c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.004053d4
mov edx, dword [ebp - 4]
mov eax, 0x41aae8
call fcn.00403770
mov eax, 0x41ab14
mov edx, 0x413a3c
call fcn.00403770
cmp byte [0x41ab59], 0
jne 0x4138af
mov eax, dword [0x41aae8]
push eax
mov ecx, 0x413aec
mov edx, 0x413afc
mov eax, 0x80000002
call fcn.0040689c
mov eax, 0x41ab14
mov edx, 0x413b44
call fcn.00403770
cmp byte [0x41ab59], 0
je 0x4138d1
call fcn.00413eb8
jmp 0x413a09
mov eax, 0x41ab14
mov edx, 0x413ba0
call fcn.00403770
xor ebx, ebx
push 0
push 0x413c00
call sub.user32.dll_FindWindowA
mov ebx, eax
test ebx, ebx
jne 0x413900
push 0x3e8
call sub.kernel32.dll_Sleep
jmp 0x4138e2
mov eax, 0x41ab14
mov edx, 0x413c18
call fcn.00403770
push 0xea60
call sub.kernel32.dll_Sleep
push 0
push 0x413c3c
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0x413c44
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
mov eax, 0x41ab14
mov edx, 0x413c58
call fcn.00403770
test esi, esi
jne 0x413955
push 0x413cb4
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
test esi, esi
je 0x4139c9
push 0x413cc0
push esi
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x4139c9
call eax
push 0xbb8
call sub.kernel32.dll_Sleep
push 0
push 0xd
push pe_nt_image_headers32
push ebx
call sub.user32.dll_SendMessageA
push 0x1f4
call sub.kernel32.dll_Sleep
push 0
push 0xd
push 0x101
push ebx
call sub.user32.dll_SendMessageA
push 0xc8
call sub.kernel32.dll_Sleep
mov eax, 0x413cd8
call fcn.00404d98
push 0x3e8
call sub.kernel32.dll_Sleep
mov eax, 0x41ab14
mov edx, 0x413ce8
call fcn.00403770
mov edx, 0x413d64
mov eax, 0x41ab6c
mov ecx, 0xbb8
call fcn.00406610
test al, al
je 0x413a09
call fcn.00413eb8
mov eax, 0x41ab14
mov edx, 0x413d94
call fcn.00403770
call fcn.00416c18
mov eax, 0x41ab14
mov edx, 0x413e48
call fcn.00403770
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413a2b
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403740
ret
Function at 0x41706c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
xor eax, eax
push ebp
push 0x417172
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41ab14
mov edx, 0x417188
call fcn.00403770
cmp dword [0x41ab60], 0
jne 0x4170ad
call fcn.00416f04
push 2
push 0
push 0
mov eax, dword [0x41ab60]
push eax
call sub.kernel32.dll_SetFilePointer_1
cmp eax, 0xffffffff
jne 0x4170c8
call fcn.00416f04
lea edx, [ebp - 0xc]
mov al, byte [0x41ab5a]
call fcn.00405410
push dword [ebp - 0xc]
push 0x417260
push dword [ebp - 4]
push 0x41726c
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403954
mov eax, 0x41ab14
mov edx, 0x417278
call fcn.00403770
mov byte [0x41ab5a], 0
mov eax, 0x41ab14
mov edx, 0x4172f0
call fcn.00403770
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00403894
push eax
lea eax, [ebp - 4]
call fcn.00403aec
push eax
mov eax, dword [0x41ab60]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x417145
mov dword [ebp - 8], 0xffffffff
mov eax, 0x41ab14
mov edx, 0x417310
call fcn.00403770
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417179
lea eax, [ebp - 0xc]
call fcn.0040371c
lea eax, [ebp - 4]
call fcn.0040371c
ret

Function at 0x4f0680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4f5080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4f50a1
mov eax, 0xff
call fcn.004f0680
xor byte [esi], al
inc esi
dec ebx
jne 0x4f5091
pop esi
pop ebx
ret
Function at 0x4012ce
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, edx
mov edi, ecx
mov ecx, esi
call fcn.00401280
mov ebx, eax
test edi, edi
je 0x4013d2
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x4013d2
cmp ebx, dword [esp + 0x1c]
ja 0x4013d2
xor ecx, ecx
test esi, esi
je 0x4013a8
mov dword [esp + 0x10], ebp
cmp ecx, esi
jae 0x401317
movzx edx, byte [ecx + edi]
inc ecx
jmp 0x401319
xor edx, edx
cmp ecx, esi
jae 0x401324
movzx ebp, byte [ecx + edi]
inc ecx
jmp 0x401326
xor ebp, ebp
cmp ecx, esi
jae 0x401331
movzx eax, byte [ecx + edi]
inc ecx
jmp 0x401333
xor eax, eax
shl edx, 8
add edx, ebp
mov ebp, dword [esp + 0x10]
shl edx, 8
add edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
inc dword [esp + 0x10]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp], al
mov eax, edx
mov ebp, dword [esp + 0x10]
shr eax, 0xc
and eax, 0x3f
inc dword [esp + 0x10]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp], al
mov eax, edx
mov ebp, dword [esp + 0x10]
and edx, 0x3f
shr eax, 6
and eax, 0x3f
inc dword [esp + 0x10]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp], al
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [esp + 0x10]
mov byte [edx], al
inc edx
mov dword [esp + 0x10], edx
cmp ecx, esi
jb 0x401310
mov ebp, dword [esp + 0x18]
push 3
xor edx, edx
mov eax, esi
pop ecx
div ecx
mov ecx, dword [edx*4 + 0x432a38]
test ecx, ecx
jle 0x4013c8
lea eax, [ebx - 1]
add eax, ebp
mov byte [eax], 0x3d
dec eax
dec ecx
jne 0x4013c1
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
mov al, 1
jmp 0x4013d4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x401cb7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov esi, edx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401ce4
xor al, al
jmp 0x401d20
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp esi, 1
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401d27
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov esi, edx
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401d8f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x401d88
cmp eax, dword [ebp + 8]
ja 0x401d88
push ebx
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x401d8f
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x401d91
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402fc3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42ac76
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x437280]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x437280]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4030fd
cmp byte [ebx + 0x45], 0
je 0x4030fd
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x403023
xor al, al
jmp 0x4030ff
xor eax, eax
mov dword [esp + 0x2c], 0xf
push eax
push 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], eax
mov byte [esp + 0x20], al
call fcn.0040334d
and dword [esp + 0x40], 0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
lea esi, [esp + 0x1c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x403088
dec eax
je 0x40308c
dec eax
dec eax
je 0x4030ea
xor bl, bl
jmp 0x4030ec
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x4030cb
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0041074f
add esp, 0x10
cmp esi, eax
jne 0x403084
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
cmp byte [ebx + 0x45], 0
je 0x4030ea
test esi, esi
jne 0x40304e
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00402d0a
jmp 0x403046
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.00402e7b
mov al, bl
jmp 0x4030ff
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040f167
mov esp, ebp
pop ebp
ret
Function at 0x4038fd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403954
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403945
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x403941
cmp esi, ecx
jae 0x403945
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x403931
cmp esi, ecx
jb 0x403949
xor eax, eax
jmp 0x403953
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4045bd
Capabilities:
Receive http response

Disassembly:
sub esp, 0xc
and dword [esp], 0
and dword [esp + 4], 0
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor edi, edi
xor esi, esi
mov ebx, edx
test ebp, ebp
je 0x404669
test ebx, ebx
je 0x404669
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x404669
mov eax, dword [esp + 0x10]
test esi, esi
jne 0x40460d
add eax, 2
push eax
call fcn.00410f1e
pop ecx
mov esi, eax
mov ecx, esi
jmp 0x404624
mov ecx, dword [esp + 0x14]
add ecx, 2
add eax, ecx
push eax
push esi
call fcn.00410fb0
mov esi, eax
pop ecx
pop ecx
lea ecx, [esi + edi]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
add dword [esp + 0x14], eax
push edx
push eax
push ecx
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
add edi, dword [esp + 0x18]
test eax, eax
je 0x404674
cmp dword [esp + 0x18], 0
je 0x404659
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4045f5
test esi, esi
je 0x404669
mov eax, dword [esp + 0x20]
mov byte [esi + edi], 0
mov dword [ebx], esi
mov dword [eax], edi
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push esi
call fcn.0040f9b3
and dword [ebx], 0
xor eax, eax
pop ecx
jmp 0x40466c
Function at 0x4055b8
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x437280]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x405646
push ebx
push edi
lea eax, [ebp - 0x10]
xor edi, edi
push eax
push str.SeShutdownPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push edi
push edi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push edi
push dword [ebp - 0x18]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40562a
push ebx
push edi
push edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
test eax, eax
jne 0x40562e
xor eax, eax
jmp 0x405644
push edi
push edi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], edi
push ecx
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, ebx
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f167
mov esp, ebp
pop ebp
ret

Function at 0x405654
Capabilities:
Contain obfuscated stackstrings
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x437280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x44]
mov dword [ebp - 0x40], 0x74666f53
push eax
push 0xf003f
xor ebx, ebx
mov dword [ebp - 0x3c], 0x65726177
push ebx
lea eax, [ebp - 0x40]
mov dword [ebp - 0x38], 0x63694d5c
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 0x34], 0x6f736f72
mov dword [ebp - 0x30], 0x575c7466
mov dword [ebp - 0x2c], 0x6f646e69
mov dword [ebp - 0x28], 0x435c7377
mov dword [ebp - 0x24], 0x65727275
mov dword [ebp - 0x20], 0x6556746e
mov dword [ebp - 0x1c], 0x6f697372
mov dword [ebp - 0x18], 0x75525c6e
mov dword [ebp - 0x14], 0x636e6f6e
mov word [ebp - 0x10], 0x65
mov dword [ebp - 0xc], 0x72646d63
mov word [ebp - 8], 0x6e75
mov byte [ebp - 6], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405710
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
push 1
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f167
mov esp, ebp
pop ebp
ret
Function at 0x406533
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xb4
mov eax, dword [0x437280]
xor eax, ebp
mov dword [ebp + 0x70], eax
push esi
mov esi, dword [0x438a68]
push edi
push 0xf0
push 0x65
xor edi, edi
mov dword [ebp - 0x18], ecx
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x406650
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406650
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406650
push ebx
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x40664f
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x1c], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x4065f0
push esi
lea ecx, [ebp - 0x14]
call fcn.00406734
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
xor ecx, ecx
cmp eax, 0xffffffff
lea eax, [ebp - 0x10]
cmove edi, ecx
cmp dword [ebp - 0x14], eax
je 0x406644
push dword [ebp - 0x14]
call fcn.0040f9b3
pop ecx
jmp 0x406644
mov ecx, 0x1234
cmp cx, ax
jne 0x406644
or dword [ebp - 0x3c], 0xffffffff
lea ecx, [ebp - 0x14]
push esi
mov dword [ebp - 0x40], 1
call fcn.00406734
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x10]
cmp dword [ebp - 0x14], eax
je 0x406624
push dword [ebp - 0x14]
call fcn.0040f9b3
pop ecx
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x18]
push 0
push 0x401
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
add esi, dword [ebp - 0x1c]
test edi, edi
jne 0x40658e
pop ebx
mov ecx, dword [ebp + 0x70]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040f167
lea esp, [ebp + 0x74]
pop ebp
ret 4
Function at 0x40a92d
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42b29d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x437280]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x18]
push ecx
push esi
mov eax, dword [esi]
call dword [eax + 0xc]
test eax, eax
js 0x40aaa9
mov eax, dword [esp + 0x18]
xor ebx, ebx
push 0xc
pop ebp
movzx edi, word [eax + 0x2c]
and dword [0x4386b4], ebx
mov dword [0x4386b8], edi
test edi, edi
je 0x40a9f8
xor ecx, ecx
mov eax, edi
mul ebp
push 0x438aa4
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.004115a6
pop ecx
pop ecx
mov dword [esp + 0x30], eax
and dword [esp + 0x28], ebx
test eax, eax
je 0x40a9d3
push 0x40a916
push 0x40a91f
push edi
lea ebx, [eax + 4]
mov dword [eax], edi
push ebp
push ebx
call fcn.00411d2e
jmp 0x40a9d5
xor ebx, ebx
or dword [esp + 0x28], 0xffffffff
test ebx, ebx
jne 0x40a9f2
push dword [esp + 0x18]
mov eax, dword [esi]
push esi
call dword [eax + 0x4c]
mov eax, 0x8007000e
jmp 0x40aaab
mov edi, dword [0x4386b8]
xor ebp, ebp
test edi, edi
jle 0x40aa99
mov edi, ebx
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
push ebp
push esi
call dword [eax + 0x14]
test eax, eax
js 0x40aa89
xor eax, eax
mov dword [esp + 0x30], eax
push eax
push eax
push eax
mov dword [esp + 0x34], 1
lea eax, [esp + 0x3c]
mov ecx, dword [esi]
push eax
mov eax, dword [esp + 0x24]
push dword [eax]
push esi
call dword [ecx + 0x30]
test eax, eax
js 0x40aa6f
mov eax, dword [esp + 0x30]
and dword [esp + 0x30], 0
mov dword [esp + 0x1c], eax
cmp dword [edi], eax
je 0x40aa59
push dword [edi]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x1c]
mov dword [edi], eax
push dword [edi]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [esp + 0x14]
mov dword [edi + 4], eax
mov eax, dword [ecx]
mov dword [edi + 8], eax
jmp 0x40aa73
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x50]
or dword [esp + 0x28], 0xffffffff
push dword [esp + 0x30]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc ebp
add edi, 0xc
cmp ebp, dword [0x4386b8]
jl 0x40aa04
push dword [esp + 0x18]
mov dword [0x4386b4], ebx
mov eax, dword [esi]
push esi
call dword [eax + 0x4c]
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x40de14
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x124
mov eax, dword [0x437280]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x12c]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x1c], ecx
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0xc], ebp
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call fcn.0040ddb6
mov esi, eax
test esi, esi
jne 0x40def3
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
push dword [esp + 0x28]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
call ebp
test eax, eax
jne 0x40decb
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0040de14
mov esi, eax
test esi, esi
jne 0x40def3
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call ebp
test eax, eax
je 0x40de90
jmp 0x40decd
xor esi, esi
cmp dword [esp + 0xc], 0
je 0x40dee2
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.0040dfc5
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x40df04
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040f167
add esp, 0x124
ret 4
Function at 0x41fad0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x437280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004193e6
mov dword [ebp - 0x14], eax
cmp dword [0x439850], esi
jne 0x41fbc3
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41fb50
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41fca3
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41fca3
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41fca3
push eax
call ebx
push 0x430950
push edi
mov dword [0x439850], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x439854], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x439858], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x439860], eax
test eax, eax
je 0x41fbc0
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43985c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41fbe8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41fbdb
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41fbfd
push 4
pop eax
jmp 0x41fca5
cmp dword [ebp - 0x14], esi
je 0x41fbfd
push dword [0x439850]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41fbe2
mov eax, dword [0x43985c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41fc5b
cmp dword [0x439860], edi
je 0x41fc5b
push eax
call ebx
push dword [0x439860]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41fc5b
test eax, eax
je 0x41fc5b
call ecx
test eax, eax
je 0x41fc50
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41fc50
test byte [ebp - 8], 1
jne 0x41fc5b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41fc8b
mov eax, dword [0x439854]
cmp eax, edi
je 0x41fc88
push eax
call ebx
test eax, eax
je 0x41fc88
call eax
mov esi, eax
test esi, esi
je 0x41fc88
mov eax, dword [0x439858]
cmp eax, edi
je 0x41fc88
push eax
call ebx
test eax, eax
je 0x41fc88
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x439850]
call ebx
test eax, eax
je 0x41fca3
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41fca5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f167
mov esp, ebp
pop ebp
ret
Function at 0x401160
Capabilities:
Check mutex on windows
Log keystrokes via polling
Set console window title

Disassembly:
push esi
push edi
push str.LocalKaseyaPaste
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4011bf
push str.Kaseya_Paste
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
push 4
call edi
test ax, ax
je 0x4011b9
push 0xa
call esi
call fcn.004011e0
push 0x118
call esi
push 0x14
call esi
jmp 0x4011a0
push 0
push str.Startup_Error
push str.Kaseya_Paste_is_already_Running_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
or eax, 0xffffffff
pop esi
ret