joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005f0a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x1011008]
je 0x1005f2a
inc eax
cmp eax, 0x12
jb 0x1005f1b
shl eax, 3
cmp edx, dword [eax + 0x1011008]
mov dword [ebp + 8], eax
jne 0x10060c8
mov ecx, dword [0x1012968]
cmp ecx, 1
je 0x100609d
test ecx, ecx
jne 0x1005f5c
cmp dword [0x1011004], 1
je 0x100609d
cmp edx, 0xfc
je 0x10060c8
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1005f97
push 5
pop ecx
mov esi, 0x10025bc
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005fa6
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1005fde
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005fbe
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x10025b8
push ebx
call fcn.01006aa0
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005fe3
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x101100c]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1005ffa
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01006960
mov edx, esp
push 6
pop ecx
mov esi, 0x100259c
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006026
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1006032
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100604b
mov eax, dword [ebp + 8]
mov esi, 0x1002598
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x101100c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006066
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1006072
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1002570
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0100699d
add esp, 0xc
jmp 0x10060c8
mov ecx, dword [eax + 0x101100c]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10060a8
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100699d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1012ad4], ebx
push esi
push edi
jne 0x1006a1d
push 0x1002638
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1006a58
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100262c
push edi
call esi
test eax, eax
mov dword [0x1012ad4], eax
je 0x1006a58
push 0x100261c
push edi
call esi
push 0x1002608
push edi
mov dword [0x1012ad8], eax
call esi
cmp dword [0x1012978], 2
mov dword [0x1012adc], eax
jne 0x1006a1d
push 0x10025ec
push edi
call esi
test eax, eax
mov dword [0x1012ae4], eax
je 0x1006a1d
push 0x10025d4
push edi
call esi
mov dword [0x1012ae0], eax
mov eax, dword [0x1012ae0]
test eax, eax
je 0x1006a62
call eax
test eax, eax
je 0x1006a49
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1012ae4]
test eax, eax
je 0x1006a49
test byte [ebp - 8], 1
jne 0x1006a62
cmp dword [0x1012984], 4
jb 0x1006a5c
or byte [ebp + 0x12], 0x20
jmp 0x1006a81
xor eax, eax
jmp 0x1006a91
or byte [ebp + 0x12], 4
jmp 0x1006a81
mov eax, dword [0x1012ad8]
test eax, eax
je 0x1006a81
call eax
mov ebx, eax
test ebx, ebx
je 0x1006a81
mov eax, dword [0x1012adc]
test eax, eax
je 0x1006a81
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1012ad4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1008564
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.01006960
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10085f9
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x1012978]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x10085f9
cmp eax, 1
je 0x1008611
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10085f9
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x10085ce
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x10085f5
xor eax, eax
inc eax
jmp 0x100862d
cmp esi, ebx
jae 0x10085fd
xor eax, eax
jmp 0x100862d
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1012978]
jmp 0x1008613
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1009104
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x1009143
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push 0
push 0
push 0x10
push 0
push dword [ebp + 0xc]
push eax
call dword [ecx + 0x18]
test eax, eax
jge 0x1009160
cmp eax, 0x80030002
push dword [ebp + 0xc]
jne 0x1009147
push 0x1004f30
push 0x10112a0
call fcn.01009355
add esp, 0xc
xor eax, eax
jmp 0x1009163
push 0x1004ec8
push 0x10112a0
call fcn.01009355
add esp, 0xc
push 1
call fcn.01005eca
mov eax, dword [ebp + 8]
pop ebp
ret 8

Function at 0x1009167
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0xc]
mov esi, 0x10112a0
push 0x1004fe8
push esi
call fcn.01009355
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add esp, 0xc
lea edx, [ebp - 4]
push edx
push 0
push 0x10
push 0
push dword [ebp + 0xc]
push eax
call dword [ecx + 0x10]
test eax, eax
jge 0x10091c0
cmp eax, 0x80030002
jne 0x10091a7
xor eax, eax
jmp 0x10091c3
push dword [ebp + 0xc]
push eax
push 0x1004f88
push esi
call fcn.01009355
add esp, 0x10
push 1
call fcn.01005eca
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0x100a801
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x1013dc8]
push ebx
push esi
push edi
jae 0x100a986
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x1013de0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x14], ebx
je 0x100a986
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x100a855
xor eax, eax
jmp 0x100a99a
test al, 0x20
je 0x100a866
push 2
push edi
push edi
push ecx
call fcn.0100ae5d
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x100a922
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x100a95a
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x418]
cmp ecx, dword [ebp + 0x10]
jae 0x100a8bc
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x100a8ad
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x14]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x100a892
mov edi, eax
lea eax, [ebp - 0x418]
sub edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100a8fc
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x100a905
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x100a886
jmp 0x100a907
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x100a981
cmp dword [ebp + 8], edi
je 0x100a95a
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x100a94f
mov dword [0x1012970], eax
jmp 0x100a98d
push edi
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100a944
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x100a907
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x100a907
push dword [ebp + 8]
call fcn.0100ad48
pop ecx
jmp 0x100a997
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x100a96f
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x100a84e
mov dword [0x101296c], 0x1c
mov dword [0x1012970], edi
jmp 0x100a997
sub eax, dword [ebp - 0x10]
jmp 0x100a99a
and dword [0x1012970], 0
mov dword [0x101296c], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4055e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, str.C:UsersADMINI1AppDataLocalTemp_nsd90E2.tmp
push esi
call fcn.00405a0c
push esi
call fcn.00405593
mov edi, eax
test edi, edi
jne 0x405601
xor eax, eax
jmp 0x405653
push edi
call fcn.00405c6e
test byte [0x42eb78], 0x80
je 0x40561a
mov al, byte [edi]
test al, al
je 0x4055fd
cmp al, 0x5c
je 0x4055fd
sub edi, esi
jmp 0x405632
call fcn.00405d07
test eax, eax
je 0x40562c
test byte [eax], 0x10
je 0x4055fd
push esi
call fcn.00405546
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40561e
call fcn.004054ff
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4056c4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4056e0
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4056e3
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405712
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405756
test edi, edi
jne 0x40571d
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405750
Function at 0x4026c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4bd040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 8]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004af21a
mov esp, ebp
pop ebp
ret
Function at 0x404c80
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b07c0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4bd040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x18]
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 6
jb 0x404d68
cmp dword [ebp + 0x1c], 0xf
lea eax, [ebp + 8]
push ecx
cmova eax, dword [ebp + 8]
push eax
push 6
push str.start
push ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x28]
call fcn.004ae690
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [ebp - 0x14]
add esp, 4
cmp ecx, 0xf
jbe 0x404d23
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404d19
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404d19
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004af678
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x404d59
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404d4f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404d4f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004af678
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
call fcn.00401630
int3

Function at 0x405a20
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4bd040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x260]
mov dword [ebp - 0x250], 0x44
push eax
lea eax, [ebp - 0x250]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
movlpd qword [ebp - 0x24c], xmm0
push eax
movlpd qword [ebp - 0x244], xmm0
movlpd qword [ebp - 0x23c], xmm0
movlpd qword [ebp - 0x234], xmm0
movlpd qword [ebp - 0x22c], xmm0
movlpd qword [ebp - 0x224], xmm0
movlpd qword [ebp - 0x21c], xmm0
movlpd qword [ebp - 0x214], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x405b00
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x7b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x405b21
push 0
push 2
push 0
push 0x7b
call dword [sym.imp.USER32.dll_keybd_event]
mov eax, 1
ret
xor eax, eax
ret
Function at 0x406de0
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0610
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4bd040]
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
cmp dword [ecx + 0x14], 0xf
mov eax, dword [ecx + 0x10]
jbe 0x406e1a
add eax, dword [ecx]
mov ecx, dword [ecx]
jmp 0x406e1c
add eax, ecx
push ecx
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.004418d0
mov edi, eax
cmp dword [edi + 0x14], 7
jbe 0x406e31
mov edi, dword [edi]
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmova ecx, dword [ebp + 8]
add eax, ecx
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp + 8]
cmova ecx, dword [ebp + 8]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.004418d0
cmp dword [eax + 0x14], 7
jbe 0x406e5f
mov eax, dword [eax]
push 0
push 0
push edi
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
cmp ecx, 7
jbe 0x406ea5
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406e9b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406ee5
push ecx
push edx
call fcn.004af678
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 7
jbe 0x406ef5
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406eeb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406eeb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004af678
add esp, 8
mov ecx, dword [ebp + 0x1c]
xor ebx, ebx
test esi, esi
sete bl
cmp ecx, 0xf
jbe 0x406f32
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406f28
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406f28
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004af678
add esp, 8
mov eax, ebx
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.004af21a
mov esp, ebp
pop ebp
ret 0x18
Function at 0x407170
Capabilities:
Execute command
Self delete

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0970
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
mov eax, dword [0x4bd040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 4
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push str.del
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0
movups xmmword [ebp - 0x24], xmm0
call fcn.004ae170
push esi
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x3c]
call fcn.00441cd0
add esp, 4
cmp dword [eax + 0x14], 0xf
jbe 0x4071d3
mov eax, dword [eax]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [ebp - 0x28]
add esp, 4
cmp ecx, 0xf
jbe 0x40720d
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407203
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407245
push ecx
push edx
call fcn.004af678
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
cmp ecx, 0xf
jbe 0x407255
mov edx, dword [ebp - 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40724b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40724b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004af678
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408480
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b09e0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4bd040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x4bdda8], 0
mov esi, dword [0x4bdb94]
jne 0x4084fe
cmp dword [0x4bddac], 0
jne 0x4084fe
movups xmm0, xmmword [0x4bdd84]
sub esp, 0x10
mov eax, esp
sub esp, 0x18
mov ecx, esp
movups xmmword [eax], xmm0
push 0x26
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
push str.You_are_a_unique_star_in_the_universe.
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.004ae170
push 0
push 0
call fcn.00407dc0
test esi, esi
mov esi, dword [sym.imp.GDI32.dll_BitBlt]
je 0x40852a
mov eax, dword [0x4bdda4]
push 0x5a0049
push 0
push 0
push eax
push dword [0x4bdda0]
push dword [0x4bdd9c]
push 0
push 0
push eax
call esi
push 0xcc0020
push 0
push 0
push dword [0x4bdda4]
push dword [0x4bdda0]
push dword [0x4bdd9c]
push 0
push 0
push dword [0x4bdd98]
call esi
push 0x26
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov esi, dword [sym.imp.USER32.dll_keybd_event]
test ax, ax
jns 0x40856e
push 0
push 2
push 0
push 0x26
call esi
push 0x28
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x408585
push 0
push 2
push 0
push 0x28
call esi
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x2c]
movq qword [ebp - 0x1c], xmm0
push eax
movups xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4085c0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0x4bdda8
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0x4bddb0
push dword [0x4bdd94]
call dword [sym.imp.USER32.dll_GetWindowRect]
inc dword [0x4bde3c]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, dword fs:[0x2c]
mov esi, eax
mov edx, dword [ecx]
mov ecx, dword [0x4beb18]
cmp ecx, dword [edx + 4]
jle 0x40862a
push 0x4beb18
call fcn.004af27e
add esp, 4
cmp dword [0x4beb18], 0xffffffff
jne 0x40862a
push 0x4beb18
mov dword [0x4bea78], esi
call fcn.004af22d
add esp, 4
mov eax, dword [0x4bea78]
add eax, 0x3e8
cmp esi, eax
jl 0x408652
mov eax, dword [0x4bde3c]
mov dword [0x4bea78], esi
mov dword [0x4bddc0], eax
mov dword [0x4bde3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af21a
mov esp, ebp
pop ebp
ret 4
Function at 0x4087a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x3c
mov eax, dword [0x4bd040]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
push 0
lea eax, [esp + 0x1c]
movaps xmmword [esp + 0x1c], xmm0
push eax
movq qword [esp + 0x30], xmm0
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4087f6
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0x4bdda8
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0x4bddb0
push dword [0x4bdd94]
call dword [sym.imp.USER32.dll_GetWindowRect]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x4bdd94]
jne 0x4089f9
cmp dword [0x4bddc4], 0
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
jne 0x408898
push 1
call esi
test ax, ax
jns 0x408898
cmp dword [0x4be024], 0
jne 0x4088a5
cmp dword [0x4be014], 0
je 0x40887a
mov ecx, dword [0x4bdda8]
sub ecx, dword [0x4bddb0]
mov eax, dword [0x4bddac]
sub eax, dword [0x4bddb4]
mov dword [0x4bda10], ecx
mov dword [0x4bda14], eax
mov dword [0x4be014], 0
mov dword [0x4be024], 1
xor eax, eax
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004af21a
mov esp, ebp
pop ebp
ret 8
cmp dword [0x4be024], 0
je 0x40898a
push 1
call esi
test ax, ax
jns 0x40898a
mov eax, dword [0x4bddbc]
sub eax, dword [0x4bddb4]
push 1
push eax
mov eax, dword [0x4bddb8]
sub eax, dword [0x4bddb0]
push eax
mov eax, dword [0x4bddac]
sub eax, dword [0x4bda14]
push eax
mov eax, dword [0x4bdda8]
sub eax, dword [0x4bda10]
push eax
push dword [0x4bdd94]
mov dword [0x4bddc4], 1
mov dword [0x4bddcc], 1
call dword [sym.imp.USER32.dll_MoveWindow]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, dword fs:[0x2c]
mov esi, eax
mov edx, dword [ecx]
mov ecx, dword [0x4beab4]
cmp ecx, dword [edx + 4]
jle 0x40894c
push 0x4beab4
call fcn.004af27e
add esp, 4
cmp dword [0x4beab4], 0xffffffff
jne 0x40894c
push 0x4beab4
mov dword [0x4beca8], esi
call fcn.004af22d
add esp, 4
mov eax, esi
sub eax, dword [0x4beca8]
cmp eax, 0x64
jl 0x408973
mov dword [0x4beca8], esi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004af21a
mov esp, ebp
pop ebp
ret 8
mov eax, 1
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004af21a
mov esp, ebp
pop ebp
ret 8
cmp dword [0x4bddc8], 0
mov dword [0x4be024], 0
mov dword [0x4be014], 1
mov dword [0x4bddc4], 0
mov dword [0x4bddcc], 0
jne 0x4089cc
push 1
call esi
test ax, ax
jns 0x4089c8
push 1
jmp 0x4089fb
push 3
jmp 0x4089fb
lea ecx, [esp + 8]
mov dword [esp + 8], 0x50
mov dword [esp + 0xc], 0
call fcn.00441d80
xor eax, eax
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004af21a
mov esp, ebp
pop ebp
ret 8
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x3c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.004af21a
mov esp, ebp
pop ebp
ret 8