joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54d6a0
Capabilities:
Encrypt data via sspi

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0xffffffff
push edi
mov edi, eax
je 0x54d6bc
cmp dword [esi + 0x28], 0xffffffff
jne 0x54d6e6
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 0x20]
mov esi, dword [ebp + 8]
push eax
push ecx
push ecx
mov eax, esp
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
push eax
push esi
mov eax, edi
call fcn.00542f60
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [esi + 0x30]
add ebx, dword [esi + 0x34]
add ebx, dword [esi + 0x2c]
cmp dword [esi + 0x44], ebx
jae 0x54d70f
mov eax, dword [esi + 0x40]
push eax
call fcn.0069c8fa
add esp, 4
push ebx
call fcn.0069c0de
mov dword [esi + 0x40], eax
add esp, 4
mov dword [esi + 0x44], ebx
mov eax, dword [esi + 0x40]
mov ebx, dword [esi + 0x2c]
mov ecx, dword [ebp + 0x10]
add ebx, eax
test edi, edi
mov dword [esp + 0x14], eax
mov eax, edi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
ja 0x54d744
mov eax, dword [ebp + 8]
mov dword [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x10]
mov edi, dword [esi + 0x34]
cmp eax, edi
jae 0x54d74d
mov edi, eax
mov edx, dword [esp + 0xc]
push edi
push edx
push ebx
call fcn.006a4bd0
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x34], eax
add esp, 0xc
lea eax, [edi + ebx]
mov dword [esp + 0x48], eax
xor eax, eax
push eax
mov dword [esp + 0x44], edx
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], ecx
lea eax, [esi + 0x24]
lea ecx, [esp + 0x34]
push eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x48], 1
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], 6
mov dword [esp + 0x30], 4
mov dword [esp + 0x34], ecx
call sub.Secur32.dll_EncryptMessage
test eax, eax
jne 0x54d820
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
mov edx, dword [ebp + 0x14]
push edx
mov edx, dword [esi + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x18]
add eax, dword [esp + 0x2c]
push ecx
push ecx
mov ecx, esp
mov dword [ecx], edx
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00542f60
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x54d832
add dword [esp + 0xc], edi
sub dword [esp + 0x10], edi
jne 0x54d740
mov eax, dword [ebp + 8]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x54dd10
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
sub esp, 0x40
push esi
push 0x38
mov esi, eax
lea eax, [esp + 0xc]
push 0
push eax
call fcn.006a1300
lea eax, [esi + 0x250]
add esp, 0xc
cmp dword [eax], 0
mov dword [esp + 8], 4
mov dword [esp + 0x38], 0x10
mov dword [esp + 0x28], 0xaa0
je 0x54dd56
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
push 0
add esi, 0x254
push esi
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
push 0
call dword [sym.imp.Secur32.dll_AcquireCredentialsHandleW]
test eax, eax
sete al
pop esi
add esp, 0x40
ret
Function at 0x550d30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x624
push ebx
mov ebx, dword [esp + 0x630]
cmp word [ebx], 0
push ebp
mov ebp, dword [esp + 0x630]
push esi
push edi
mov edi, eax
jne 0x550d5f
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x624
ret 8
cmp word [edi], 0
je 0x550d50
mov edx, ebx
lea esi, [esp + 0x18]
call fcn.004ad160
mov dx, word [esp + 0x18]
xor ecx, ecx
xor esi, esi
test dx, dx
movzx eax, dx
je 0x550d9f
cmp ax, 0x2e
jne 0x550d89
mov esi, ecx
movzx eax, word [esp + ecx*2 + 0x1a]
add ecx, 1
test ax, ax
jne 0x550d81
test esi, esi
je 0x550d9f
mov word [esp + esi*2 + 0x18], ax
push 0x6bc0cc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x228]
push ecx
mov eax, edi
call fcn.004ad3a0
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x550ddb
push 0
lea eax, [esp + 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x428]
push ecx
mov eax, str.7za32
call fcn.004a6a60
test al, al
jne 0x550dfc
mov esi, ebp
lea edi, [esp + 0x14]
call fcn.0049a060
lea edx, [esp + 0x220]
push edx
push ebx
push ebp
lea edi, [esp + 0x20]
call fcn.0049a210
cmp dword [esp + 0x14], 0
pop edi
pop esi
pop ebp
sete al
pop ebx
add esp, 0x624
ret 8

Function at 0x551090
Capabilities:
Delete registry key

Disassembly:
push ecx
lea eax, [esp]
push eax
push 1
push 0
push str.SoftwareNCH_SoftwareSuiteProgramsDebut
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5510c7
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareNCH_SoftwareSuiteProgramsDebut
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
pop ecx
ret
Function at 0x5510d0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x418
push ebp
xor ebp, ebp
cmp dword [str.NCHeditsound], ebp
mov dword [esp + 4], 0x6c5da0
je 0x5511d3
push ebx
push esi
push edi
mov eax, dword [esp + 0x10]
mov ebx, dword [eax + 4]
movzx ecx, word [ebx]
cmp cx, bp
mov eax, ebx
je 0x551113
cmp cx, 0x2c
je 0x551113
movzx ecx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x551101
sub eax, ebx
sar eax, 1
mov esi, eax
cmp esi, 0x103
jbe 0x551126
mov eax, 0x103
lea edi, [eax + eax]
push edi
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.006a4bd0
add esp, 0xc
cmp word [ebx + esi*2], bp
mov word [esp + edi + 0x18], bp
mov eax, esi
je 0x551148
lea eax, [esi + 1]
cmp word [esp + 0x18], bp
lea ebx, [ebx + eax*2]
je 0x5511b4
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.SoftwareNCH_SoftwareSuiteExtensions_s_s
mov esi, 0x104
lea edi, [esp + 0x22c]
call fcn.004af0d0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 1
push ebp
mov eax, edi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5511b4
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [esp + 0x220], bp
je 0x5511b4
mov edx, edi
push edx
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp word [ebx], bp
jne 0x5510f7
mov eax, dword [esp + 0x10]
add eax, 0xc
cmp dword [eax], ebp
mov dword [esp + 0x10], eax
jne 0x5510f0
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x418
ret
Function at 0x5513a0
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes

Disassembly:
sub esp, 0xe38
push esi
lea esi, [esp + 0xa2c]
call fcn.004a6e10
test al, al
jne 0x5513c4
call fcn.004a6ea0
test al, al
je 0x55153c
push edi
lea eax, [esp + 0xa30]
push eax
push str._s_shellmenu
mov esi, 0x104
lea edi, [esp + 0x10]
call fcn.004af0d0
mov ecx, edi
push ecx
push str._s_shellmenu.dll
lea edi, [esp + 0xc48]
call fcn.004af0d0
add esp, 0x10
lea edx, [esp + 0x828]
push edx
call fcn.004c4840
lea eax, [esp + 0x828]
push eax
push str._s_shellmenu.dll
lea edi, [esp + 0x628]
call fcn.004af0d0
lea ecx, [esp + 0x830]
push ecx
push str._s_shellmenuA.msix
lea edi, [esp + 0x220]
call fcn.004af0d0
lea edx, [esp + 0x838]
push edx
push str._s_shellmenuB.msix
lea edi, [esp + 0x430]
call fcn.004af0d0
add esp, 0x18
call fcn.0054f340
cmp ax, 6
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
jb 0x551477
lea eax, [esp + 0xc34]
push eax
call esi
cmp eax, 0xffffffff
jne 0x551507
mov eax, str.shellmenua
call fcn.0054ef60
mov eax, str.shellmenub
call fcn.0054ef60
lea ecx, [esp + 0x61c]
push ecx
call esi
cmp eax, 0xffffffff
je 0x5514c7
lea edx, [esp + 4]
push edx
call esi
cmp eax, 0xffffffff
jne 0x5514af
lea ecx, [esp + 4]
call fcn.004ad6d0
push 0
lea eax, [esp + 0xc38]
push eax
lea ecx, [esp + 0x624]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea edx, [esp + 0x20c]
push edx
call esi
cmp eax, 0xffffffff
je 0x5514e7
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x210]
call fcn.0054ec60
lea ecx, [esp + 0x414]
push ecx
call esi
cmp eax, 0xffffffff
je 0x551507
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x418]
call fcn.0054ec60
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x61c]
push eax
call esi
lea ecx, [esp + 0x20c]
push ecx
call esi
lea edx, [esp + 0x414]
push edx
call esi
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
pop esi
add esp, 0xe38
ret

Function at 0x551550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x208
lea eax, [esp]
push eax
mov eax, str.shellmenu
call fcn.004a6a60
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x55157b
lea ecx, [esp]
call fcn.004ad730
mov eax, str.shellmenua
call fcn.0054ef60
mov eax, str.shellmenub
call fcn.0054ef60
add esp, 0x208
ret
Function at 0x5515a0
Capabilities:
Delete registry key

Disassembly:
sub esp, 8
call fcn.00496830
test al, al
je 0x551626
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
call fcn.00551090
lea eax, [esp]
push eax
push 1
push 0
push str.SoftwareNCH_SoftwareSuitePrograms_
push SysReAllocStringLen
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x551619
mov edx, dword [esp]
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x20]
push ecx
push eax
push eax
push eax
push edx
mov dword [esp + 0x34], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 4], 0
seta al
test al, al
jne 0x551626
call fcn.00551550
add esp, 8
jmp fcn.005510d0
add esp, 8
ret

Function at 0x551950
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x410
lea eax, [esp]
push eax
call fcn.00551650
cmp word [esp], 0
je 0x5519a6
push esi
push edi
lea ecx, [esp + 8]
push ecx
push str.SOFTWAREClassesCLSID_sLocalServer32
mov esi, 0x104
lea edi, [esp + 0x218]
call fcn.004af0d0
add esp, 8
cmp word [esp + 0x210], 0
pop edi
pop esi
je 0x5519a6
lea edx, [esp + 0x208]
push edx
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
add esp, 0x410
ret

Function at 0x556520
Capabilities:
Hide graphical window

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x1a]
push esi
push edi
push 0
push 0x50000000
push 0x6bc354
push 0x257f
mov edx, 0x6bc0cc
call fcn.0051c9e0
mov eax, dword [ebx + 0x1a]
push 0x257f
push eax
mov ecx, ebx
call fcn.004840a0
mov eax, dword [ebx + 0x1a]
cmp byte [eax + 0x2d], 0
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
je 0x556577
mov ecx, dword [eax + 4]
push 1
push ecx
mov eax, 0x257f
call fcn.004f6c00
jmp 0x55658b
mov edx, dword [eax + 4]
push 0
push 0x257f
push edx
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [ebx + 0x1a]
mov eax, dword [edi + 4]
push 0x257f
push eax
call esi
test eax, eax
je 0x5565ab
push 0x6bc0cc
push eax
lea esi, [ebx + 0x1e]
call fcn.0051b1d0
mov esi, dword [ebx + 0x1a]
push 0
push 0
push ebx
push 0x57b920
push 0x112
add esi, 0x28
call fcn.0051d2c0
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x557dc0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
push esi
mov esi, eax
mov eax, dword [esi]
push 0x104
lea edx, [esp + 8]
push edx
lea ecx, [eax + 1]
push eax
mov eax, dword [esi + 4]
push eax
mov dword [esi], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x557dfa
mov word [esi + 0x628], 0
pop esi
add esp, 0x208
ret
lea eax, [esi + 0x41c]
add esi, 8
push esi
lea ecx, [esp + 8]
call fcn.00401730
pop esi
add esp, 0x208
ret
Function at 0x575b70
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
cmp byte [edi + 4], 0
je 0x575bc4
mov eax, edi
call fcn.00575bd0
test al, al
jne 0x575b8d
mov byte [edi + 4], al
xor al, al
add esp, 8
push esi
lea esi, [edi + 7]
call fcn.0048bd10
mov edx, dword [edi]
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x6664736c
mov eax, dword [edx + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 8], 4
pop esi
mov byte [edi + 4], 0
jne 0x575b87
mov al, 1
add esp, 8
ret

Function at 0x575c20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push edi
mov edi, ecx
cmp byte [edi + 4], 0
je 0x575c75
push 0xffffffffffffffff
push 4
push eax
call fcn.0048ee30
test al, al
je 0x575c71
fld dword [ebp + 8]
mov eax, dword [edi]
push 0
fstp dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [eax + 0x10]
push 4
lea edx, [esp + 0x14]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0xc], 4
jne 0x575c71
call fcn.0048ef40
test al, al
jne 0x575c75
mov byte [edi + 4], 0
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x575c80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
cmp byte [esi + 4], 0
mov dword [esp + 4], 0
je 0x575cb5
mov edx, dword [esi]
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [edx + 0x10]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp], edi
je 0x575cb5
mov byte [esi + 4], 0
mov esp, ebp
pop ebp
ret
Function at 0x57ab20
Capabilities:
Get file size

Disassembly:
mov edx, dword [ecx]
sub esp, 8
lea eax, [esp]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x57ab3c
mov dword [esp + 4], eax
add esp, 8
ret
mov ecx, dword [esp + 4]
mov eax, dword [esp]
mov dword [esp + 4], ecx
add esp, 8
ret

Function at 0x57b980
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, 1
mov dword [esi], eax
mov byte [esi + 4], bl
mov word [esi + 5], bx
cmp dword [esi + 7], 0
je 0x57b9b3
mov eax, dword [esi + 7]
test eax, eax
mov ecx, dword [eax]
mov dword [esi + 7], ecx
je 0x57b9ad
push eax
call fcn.0069d0cc
add esp, 4
cmp dword [esi + 7], 0
jne 0x57b998
mov eax, dword [esi]
cmp dword [eax + 0x10], 0xffffffff
jne 0x57b9c8
mov byte [esi + 4], 0
xor al, al
pop ebx
add esp, 0xc
ret 8
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x12], edx
push 0xc
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0x6664736c
mov word [esp + 0x14], bx
mov word [esp + 0x1a], bx
mov eax, dword [eax + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x14], 0xc
jne 0x57b9bb
mov ecx, dword [esp + 0x18]
push ecx
push esi
call fcn.005b28e0
test al, al
je 0x57b9bb
mov al, bl
pop ebx
add esp, 0xc
ret 8
Function at 0x58fa10
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
push ebx
push esi
push edi
mov edi, eax
push 0x6e1774
xor esi, esi
push str.Encoding__s_image
lea eax, [esp + 0x78]
mov word [esp + 0x78], si
call fcn.00483050
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
add esp, 8
push esi
lea ecx, [esp + 0x74]
push ecx
mov ecx, edi
call edx
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
cmp dword [ebx], 1
mov dword [esp + 0x14], esi
je 0x58faa5
push 0x50
call fcn.0069e704
add esp, 4
cmp eax, esi
jne 0x58fafa
call fcn.004b05b0
xor edi, edi
mov ecx, dword [ebx + 8]
push ecx
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x34]
push edx
mov eax, 1
mov dword [esp + 0x1c], edi
call fcn.004d3de0
push esi
push esi
push esi
lea eax, [esp + 0x3c]
call fcn.004d0d70
mov edx, ebx
mov ecx, edi
call fcn.004d6750
mov ebx, edi
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov edi, dword [ebp + 0xc]
lea edx, [esp + 0x10]
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
push edx
lea esi, [esp + 0x34]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], 0x59a66a95
mov dword [esp + 0x40], 0x18
mov dword [esp + 0x48], 1
call fcn.005bf110
mov eax, dword [esp + 0x10]
test eax, eax
je 0x58fb08
mov edi, dword [ebp + 8]
mov dword [edi], eax
jmp 0x58fc19
mov ecx, eax
call fcn.004d0af0
mov edi, eax
jmp 0x58fa74
mov esi, dword [esp + 0x34]
lea esi, [esi + esi*2]
mov eax, esi
and eax, 1
add esi, eax
push esi
mov dword [esp + 0x20], esi
call fcn.0069c0de
add esp, 4
push esi
push 0
push eax
mov dword [esp + 0x1c], eax
call fcn.006a1300
add esp, 0xc
push 0
mov eax, ebx
lea edi, [esp + 0x24]
call fcn.004d3900
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x58fc03
cmp ebx, dword [esp + 0x20]
jb 0x58fc03
cmp ebx, dword [esp + 0x24]
ja 0x58fc03
cmp dword [esp + 0x34], 0
jbe 0x58fba2
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x34]
mov esi, ebx
add eax, 1
sub esi, dword [esp + 0x10]
mov ecx, ebx
lea ebx, [ebx]
movzx edx, byte [ecx]
mov byte [eax - 1], dl
movzx edx, byte [esi + eax]
mov byte [eax], dl
movzx edx, byte [ecx + 2]
mov byte [eax + 1], dl
add ecx, 3
add eax, 3
sub edi, 1
jne 0x58fb80
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov edi, dword [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edx + 0x10]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x18], esi
jne 0x58fbce
add ebx, dword [esp + 0x2c]
jmp 0x58fb44
mov ebx, dword [ebp + 8]
push edi
mov dword [ebx], 2
call fcn.0069c8fa
mov esi, dword [esp + 0x18]
add esp, 4
test esi, esi
je 0x58fbf8
mov ecx, esi
call fcn.004d0c50
push esi
call fcn.0069d0cc
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x10]
mov edi, dword [ebp + 8]
push ecx
mov dword [edi], 0
call fcn.0069c8fa
add esp, 4
mov esi, dword [esp + 0x14]
test esi, esi
je 0x58fc31
mov ecx, esi
call fcn.004d0c50
push esi
call fcn.0069d0cc
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5ad2c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
mov eax, ebx
and eax, 0x3c00
cmp eax, 0x1800
push edi
mov edi, dword [esp + 0x14]
je 0x5ad2e0
mov ecx, 3
jmp 0x5ad2ea
cmp di, 0x20
jae 0x5ad30b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, esi
call fcn.00573b60
pop edi
pop ebx
pop ecx
ret 0x10
push 0x20008
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x5ad340
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.00573b60
pop edi
pop ebx
pop ecx
ret 0x10
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 0x53d]
push esi
mov word [esp + 0x18], di
mov word [esp + 0x1a], 0
call fcn.005ada40
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
pop edi
mov eax, 1
pop ebx
pop ecx
ret 0x10

Function at 0x5ad380
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x10
push esi
push 0x10
mov esi, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [esp + 0x1c]
test ax, ax
setl al
mov byte [esp + 0xc], al
mov eax, dword [esp + 0x18]
and eax, 0x3c00
cmp eax, 0x400
jne 0x5ad3b6
mov edx, dword [esp + 0x20]
mov dword [esp + 8], edx
jmp 0x5ad3d2
cmp eax, 0x1c00
jne 0x5ad3ca
test ecx, ecx
je 0x5ad3ca
mov edx, dword [ecx + 4]
mov dword [esp + 8], edx
jmp 0x5ad3d2
mov dword [esp + 8], 0
cmp eax, 0x400
jne 0x5ad3df
mov dword [esp + 0x18], ecx
jmp 0x5ad3fa
cmp eax, 0x1c00
jne 0x5ad3f2
test ecx, ecx
je 0x5ad3f2
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
jmp 0x5ad3fa
mov dword [esp + 0x18], 0
fild dword [esp + 0x18]
lea eax, [esp + 0x18]
fstp dword [esp + 0x18]
fild dword [esp + 8]
fstp dword [esp + 0x1c]
call fcn.005c1d50
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, esi
call fcn.005adb40
push ecx
mov eax, esp
mov dword [eax], 0
mov edx, dword [esi + 8]
mov dword [eax], edx
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov ecx, esi
call edx
mov eax, 1
pop esi
add esp, 0x10
ret 0x10

Function at 0x5ad8f0
Capabilities:
Open clipboard

Disassembly:
mov eax, dword [edx + 0x545]
mov ecx, dword [edx + 0x549]
sub esp, 0xc
cmp eax, ecx
je 0x5ad97f
push esi
push edi
mov esi, eax
jb 0x5ad90b
mov esi, ecx
cmp eax, ecx
jbe 0x5ad911
mov ecx, eax
mov eax, dword [edx + 0x535]
mov edx, dword [edx + 0x531]
test edx, edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
jne 0x5ad93e
mov edx, 0x6bc0cc
push esi
sub ecx, esi
push edx
lea esi, [esp + 0x10]
call fcn.0048a5e0
mov esi, dword [esp + 8]
test esi, esi
mov edi, esi
jne 0x5ad95a
mov edi, 0x6bc0cc
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
call fcn.004edb40
call dword [sym.imp.USER32.dll_CloseClipboard]
push esi
call fcn.0069c8fa
add esp, 4
pop edi
pop esi
add esp, 0xc
ret
Function at 0x5b2600
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x24]
test edi, edi
jbe 0x5b2691
cmp edi, 0x2000
mov esi, edi
jb 0x5b2623
mov esi, 0x2000
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x10]
push 0
lea eax, [esp + 0x20]
push eax
push esi
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x1c]
cmp eax, esi
jne 0x5b26a2
sub edi, eax
mov ecx, edi
add ebp, eax
test ecx, ecx
mov eax, dword [ebx]
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
jge 0x5b265c
fadd qword [0x7235b8]
mov edx, dword [esp + 0x24]
fild dword [esp + 0x24]
test edx, edx
jge 0x5b266e
fadd qword [0x7235b8]
fdivp st(1)
mov eax, dword [eax + 0x24]
sub esp, 8
mov ecx, ebx
fld1
fsubrp st(1)
fstp qword [esp]
call eax
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
test al, al
jne 0x5b26b3
test edi, edi
ja 0x5b2614
mov eax, dword [esp + 0x18]
mov dword [eax], 0
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
mov eax, dword [esp + 0x18]
mov dword [eax], 2
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword [eax], 1
pop ebx
ret 0x14
Function at 0x5bd510
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0xc]
push ecx
mov word [eax], 0x4d42
mov eax, dword [esi + 8]
push 2
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x4d42
mov ecx, dword [eax + 0x10]
push edx
push ecx
call edi
cmp dword [esp + 8], 2
je 0x5bd556
pop edi
mov dword [ebx], 2
mov eax, ebx
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 8]
push 0
lea edx, [esp + 0xc]
push edx
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov edx, dword [ecx + 0x10]
push eax
push edx
call edi
cmp dword [esp + 8], 4
jne 0x5bd548
mov edx, dword [esi + 8]
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov eax, dword [edx + 0x10]
push ecx
push eax
call edi
cmp dword [esp + 8], 4
jne 0x5bd548
mov eax, dword [esi + 8]
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov ecx, dword [eax + 0x10]
push edx
push ecx
call edi
cmp dword [esp + 8], 4
jne 0x5bd548
pop edi
mov dword [ebx], 0
mov eax, ebx
pop ebx
pop ecx
ret 4