joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54a624
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x54a6be.0
jmp dword [ecx*4 + 0x54a657]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x54a689
sub dl, 8
je 0x54a698
jmp case.0x54a6be.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x54a2d0
jmp case.0x54a6be.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x54a328
jmp case.0x54a6be.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x54a6be.0
movzx ecx, byte [ecx + 0x54a6c5]
jmp dword [ecx*4 + 0x54a6d6]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x54a3d4
jmp case.0x54a6be.0
cmp dl, 3
jne 0x54a703
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x54a428
jmp case.0x54a6be.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x54a3e4
jmp case.0x54a6be.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x54a46c
jmp case.0x54a6be.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x54a72e
sub dl, 8
je 0x54a73a
jmp case.0x54a6be.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x54a498
jmp case.0x54a6be.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x54a504
jmp case.0x54a6be.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x54a759
sub dl, 8
je 0x54a765
jmp case.0x54a6be.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x54a5c0
jmp case.0x54a6be.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x54a5e8
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
mov esi, edx
add esi, dword [eax + 0x44c]
mov dword [ebp - 0x10], esi
mov esi, ecx
test esi, esi
jb 0x54a809
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.005497dc
test eax, eax
je 0x54a809
mov eax, ebx
call fcn.0054a814
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x54a7a2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x54a814
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x54a845
dec al
je 0x54a880
dec al
je 0x54a8c5
dec al
je 0x54a92e
jmp 0x54a9b8
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x54a9b8
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x54a855
jmp 0x54a9b8
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x54a9b8
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x54a890
jmp 0x54a9b8
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x54a9b8
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x54a8f4
xor ebp, ebp
jmp 0x54a904
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x54a90d
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x54a8d5
jmp 0x54a9b8
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x54a9b8
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x54a987
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00547cf0
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x54a942
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5824c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x582767
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x58252b
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00581f7c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040eaf0
cmp al, 1
jne 0x58252b
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.005822a4
test al, al
je 0x5826c6
cmp dword [ebp - 8], 0
jge 0x582549
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00581f7c
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
test eax, eax
invalid
je 0x582576
sub eax, 4
mov eax, dword [eax]
cmp ebx, eax
jge 0x5825a2
cmp dword [ebp - 8], 0
jge 0x5826d1
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00581f7c
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x5826fa
sub eax, 4
mov eax, dword [eax]
cmp eax, dword [ebp - 8]
jg 0x58272b
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 4]
call fcn.00581f7c
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x582728
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005824a4

Function at 0x5965b4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x5965e2
mov eax, ebx
call fcn.00597068
cmp dword [ebx + 0x40], 0
je 0x5965db
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x596653
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x596645
cmp dword [ebx + 8], 0
je 0x596604
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x596616
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x596645
cmp dword [ebx + 8], 0
je 0x5965f7
cmp eax, 3
je 0x596629
dec eax
jne 0x5965f7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x5965f7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x5965f7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x596671
cmp dword [ebx + 0x14], 0xcc
je 0x596671
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0059667c
pop ebx
ret
Function at 0x5a83c8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x5a8419
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x5a8400
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x5a83f0
jmp 0x5a8419
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x5a8401
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5bd424
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.00403668
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret

Function at 0x5bd68c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004051ec
xor eax, eax
push ebp
push 0x5bd7a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
push ebx
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x5bd78f
xor edx, edx
push ebp
push 0x5bd788
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x5bd6dc
sub eax, 4
mov eax, dword [eax]
lea ebx, [eax + 1]
push ebx
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5bd75d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x5bd74c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004051fc
mov edx, esi
mov ecx, ebx
call fcn.004030fc
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 0xc]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bd753
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bd7b0
lea eax, [ebp - 4]
call fcn.00404d6c
ret
Function at 0x5bd7bc
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov byte [ebp - 5], 1
push ebx
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x5bd872
xor eax, eax
push ebp
push 0x5bd86b
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5bd842
xor eax, eax
push ebp
push 0x5bd83b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GlobalSize
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, dword [ebp - 4]
pop ecx
call fcn.00404e5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bd846
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.0040525c
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00404f64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bd876
call sub.user32.dll_CloseClipboard
ret
mov byte [ebp - 5], 0
movzx eax, byte [ebp - 5]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5bd880
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
or edx, edx
je 0x5bd8b8
mov esi, edx
mov ecx, dword [edx - 4]
jecxz 0x5bd8b8
lea edi, [0x5bd8bc]
mov edx, eax
xor eax, eax
cld
lodsb al, byte [esi]
mov ebx, edx
xor ebx, eax
and ebx, 0xff
shl ebx, 2
shr edx, 8
and edx, 0xffffff
xor edx, dword [ebx + edi]
dec ecx
jne 0x5bd899
mov eax, edx
pop edi
pop esi
pop ebx
ret

Function at 0x5d09b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5d0a7f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5d0a62
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
call sub.shell32.dll_SHGetMalloc
test eax, eax
jne 0x5d0a41
lea eax, [ebp - 8]
push eax
push esi
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, ebx
mov edx, 0x104
call fcn.0040548c
mov eax, dword [ebx]
call fcn.004051fc
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
jne 0x5d0a2b
call fcn.0040478c
jmp 0x5d0a69
mov eax, dword [ebx]
call fcn.004051fc
push eax
call sub.KERNEL32.DLL_lstrlenA
mov edx, eax
mov eax, ebx
call fcn.0040548c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d0a69
cmp dword [ebp - 8], 0
je 0x5d0a61
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d0a86
lea eax, [ebp - 4]
call fcn.00406c84
ret

Function at 0x5d1dbc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffc00
mov ebx, eax
push esp
push 0x3ff
call sub.KERNEL32.DLL_GetTempPathA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404e5c
add esp, 0x400
pop ebx
ret
Function at 0x5d41f4
Capabilities:
Create process on windows
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004051ec
xor eax, eax
push ebp
push 0x5d432c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00403668
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x24], 1
mov word [ebp - 0x20], si
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004051fc
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x5d426b
mov byte [ebp - 5], 0
jmp 0x5d4316
test bl, bl
je 0x5d42c1
mov eax, dword [0x5f0300]
mov eax, dword [eax]
call fcn.00492c48
push 0
mov eax, dword [0x5f0300]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffff
mov eax, dword [ebp - 0x60]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
jmp 0x5d42d3
mov eax, dword [0x5f0300]
mov eax, dword [eax]
call fcn.00493348
mov eax, dword [0x5f0300]
mov eax, dword [eax]
cmp byte [eax + 0xa4], 0
je 0x5d42c1
push 0
mov eax, dword [ebp - 0x60]
push eax
call sub.KERNEL32.DLL_TerminateProcess
push 0x64
mov eax, dword [ebp - 0x60]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
cmp eax, 0x102
je 0x5d429a
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x60]
push eax
call sub.KERNEL32.DLL_GetExitCodeProcess
cmp dword [ebp - 0xc], 0
sete byte [ebp - 5]
test bl, bl
je 0x5d4316
push 0
mov eax, dword [0x5f0300]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x5f0300]
mov eax, dword [eax]
call fcn.00492d28
mov eax, dword [0x5f0300]
mov eax, dword [eax]
call fcn.00492e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d4333
lea eax, [ebp - 4]
call fcn.00404d6c
ret
Function at 0x5d4340
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
xor ecx, ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004051ec
mov eax, dword [ebp - 8]
call fcn.004051ec
xor eax, eax
push ebp
push 0x5d444b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00403668
mov dword [ebp - 0x50], 0x44
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x10
push 0
push 0
push 0
push 0x5d4464
push dword [ebp - 4]
push 0x5d4470
push dword [ebp - 8]
lea eax, [ebp - 0x64]
mov edx, 4
call fcn.00405100
mov eax, dword [ebp - 0x64]
call fcn.004051fc
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
je 0x5d4428
push 0xffffffffffffffff
mov eax, dword [ebp - 0x60]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
test eax, eax
jne 0x5d4405
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x60]
push eax
call sub.KERNEL32.DLL_GetExitCodeProcess
test eax, eax
je 0x5d4405
cmp dword [ebp - 0xc], 0
jne 0x5d43f7
mov bl, 1
jmp 0x5d4405
mov eax, dword [ebp - 0xc]
add eax, 0x2000
push eax
call sub.KERNEL32.DLL_SetLastError
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x60]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x5c]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d4452
lea eax, [ebp - 0x64]
call fcn.00404d6c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404d90
ret
Function at 0x5d4cb8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004051ec
xor eax, eax
push ebp
push 0x5d4e39
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
xor edx, edx
mov eax, 2
call fcn.005bb070
mov esi, eax
mov dword [ebp - 0x12c], 0x128
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.005bb090
mov ebx, eax
jmp 0x5d4e05
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00404fdc
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.0040a7cc
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00409624
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00409624
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00405194
je 0x5d4ddc
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00404fdc
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00409624
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00409624
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00405194
jne 0x5d4df6
push 0
mov eax, dword [ebp - 0x124]
push eax
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
push eax
call sub.KERNEL32.DLL_TerminateProcess
mov edi, eax
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.005bb0b0
mov ebx, eax
test ebx, ebx
jne 0x5d4d37
push esi
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d4e40
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404d90
lea eax, [ebp - 4]
call fcn.00404d6c
ret

Function at 0x5daf20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004051ec
xor eax, eax
push ebp
push 0x5dafef
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x14
call sub.user32.dll_GetKeyState
not ax
test al, 1
sete al
neg al
sbb eax, eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5daf67
xor edx, edx
mov al, 0x14
call fcn.005daefc
mov eax, dword [ebp - 4]
test eax, eax
je 0x5daf73
sub eax, 4
mov eax, dword [eax]
mov esi, eax
test esi, esi
jle 0x5dafca
mov edi, 1
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi - 1]
push eax
call sub.user32.dll_VkKeyScanA
mov ebx, eax
movzx eax, bx
shr eax, 8
cmp al, 0xff
je 0x5dafc6
cmp bl, 0xff
je 0x5dafc6
and al, 1
cmp al, 1
jne 0x5dafaa
mov al, 0x10
call fcn.005daedc
mov eax, ebx
xor edx, edx
call fcn.005daefc
movzx eax, bx
shr eax, 8
and al, 1
cmp al, 1
jne 0x5dafc6
mov al, 0x10
call fcn.005daeec
inc edi
dec esi
jne 0x5daf7e
cmp dword [ebp - 8], 0
je 0x5dafd9
xor edx, edx
mov al, 0x14
call fcn.005daefc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5daff6
lea eax, [ebp - 4]
call fcn.00404d6c
ret
Function at 0x5e3888
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffc00
mov ebx, eax
push esp
push 0x3ff
call sub.KERNEL32.DLL_GetTempPathA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404e5c
add esp, 0x400
pop ebx
ret
Function at 0x401fee
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x428040]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [0x482ab8]
xor ecx, ecx
push edi
mov dword [esp + 0xc], ecx
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402063
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.004029b8
lea ecx, [esp + 0x14]
call fcn.00401e1e
cmp eax, 0x8aafdc01
je 0x40207a
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402a45
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x10]
jb 0x40202a
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406c93
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00402d84
push eax
call fcn.00402ffd
mov eax, dword [ebx + 0x24]
pop ecx
mov ecx, dword [esp + 0xc]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402a45
jmp 0x402065