joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50c18a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
push esi
mov esi, dword [sym.imp.USER32.dll_GetParent]
push edi
push dword [ebp + 8]
call esi
push eax
call esi
push eax
call fcn.00513eb6
mov esi, eax
lea eax, [ebp - 0x208]
push eax
push 0x104
push 0xd
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_wcslen
pop ecx
cmp word [ebp + eax*2 - 0x20a], 0x5c
jne 0x50c1e4
xor ecx, ecx
mov word [ebp + eax*2 - 0x20a], cx
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x50c227
test byte [ebp - 0x458], 0x10
je 0x50c21e
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.0050c581
push 0
push dword [esi]
call fcn.00513c17
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x50c245
push dword [esi + 0x14]
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.0050c581
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_wcslen
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_wcslen
pop ecx
push eax
push 0xb1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x514d7e
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp + 8]
or eax, 0x4000
push eax
push 0x2b4
lea eax, [ebp - 0x4bc]
push eax
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esp, ebp
pop ebp
ret 4

Function at 0x514dc3
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x514e3f
cmp dword [0x6c7e50], 1
je 0x514e3f
push ebx
mov ebx, 0x6c7e58
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x6c7e74]
and dword [0x6c7e7c], 0
mov dword [0x6c7e78], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x6c7e70]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x6c7e74]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x514e37
push 0
push dword [0x6c7e54]
mov dword [0x6c7e50], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop esi
ret 4
Function at 0x515100
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x6c7978], 0
jne 0x5151d1
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x6c9008
mov dword [0x6c7978], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x640
push eax
push 8
push dword [0x6c3550]
mov dword [0x6c7e3c], eax
mov dword [0x6c797c], 0x1f4
call esi
mov dword [0x6c7e4c], eax
mov eax, dword [0x6c797c]
add eax, eax
push eax
push 8
push dword [0x6c3550]
call esi
xor ebx, ebx
mov dword [0x6c7e48], eax
push 0x6c7e58
mov dword [0x6c7e40], ebx
mov dword [0x6c7e44], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebp
push ebx
call esi
push ebx
push ebx
push ebp
push ebx
mov dword [0x6c7e70], eax
call esi
mov dword [0x6c7e74], eax
cmp dword [0x6c7e70], ebx
je 0x5151c8
test eax, eax
je 0x5151c8
lea eax, [esp + 0xc]
mov dword [0x6c7e50], ebx
push eax
push ebx
push ebx
push 0x514b83
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x6c7e54], eax
jmp 0x5151ce
mov dword [0x6c7e50], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x51524e
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x5152f3
cmp dword [esp + 0xc], 0
je 0x5152f3
cmp dword [0x6c7e50], 1
je 0x5152f3
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x5152f2
push ebp
mov ebp, 0x6c7e58
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x6c7e74]
mov dword [0x6c7e78], esi
mov dword [0x6c7e7c], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x6c7e70]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x6c7e74]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x5152ea
push 0
push dword [0x6c7e54]
mov dword [0x6c7e50], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop edi
pop esi
ret 8
Function at 0x515707
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x51584f
xor ecx, ecx
cmp word [eax], cx
je 0x51584f
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x515760
cmp eax, 3
jne 0x51579a
cmp word [esp + 0xa], 0x3a
jne 0x51579a
cmp eax, 2
jne 0x51577e
lea eax, [esp + 8]
push 0x5deea0
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x51584f
push 0xfffffffffffffffe
pop edi
jmp 0x51584f
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x5157af
cmp ax, bx
jne 0x5157b9
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x5157a2
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x5157f8
test byte [esp + 0x21c], 0x10
je 0x5157df
push 0xfffffffffffffffe
pop edi
jmp 0x5157ef
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x51584d
cmp word [esp + 0x10], bp
jne 0x515806
cmp word [esp + 0x12], bp
je 0x515825
cmp word [esp + 0x10], bx
jne 0x515814
cmp word [esp + 0x12], bx
je 0x515825
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x51584d
cmp word [esp + 0x12], ax
jne 0x51584d
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x51583a
test al, 0x10
je 0x51584d
jmp 0x51584a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x51584d
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x5159a0
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x5159c9
test byte [esp + 8], 2
je 0x5159bd
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x5159cb
xor eax, eax
ret 8

Function at 0x515a4f
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x515a6f
cmp dword [esp + 8], 0
je 0x515a6f
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x515a71
xor eax, eax
ret 8
Function at 0x515c06
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x6c7e84]
push esi
test eax, eax
jne 0x515c2b
push fcn.00515d33
push 0x10
push 0x258
call fcn.0052e964
mov dword [0x6c7e84], eax
push dword [esp + 0xc]
push eax
call fcn.0052e8e3
mov esi, eax
test esi, esi
je 0x515d2c
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x515c4d
mov edi, 0x5c9008
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x515c5d
xor eax, eax
cmp word [ebx], ax
jne 0x515c62
mov ebx, 0x5defdc
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x6c3550]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x515d13
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x515cc3
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x515cc7
push 0x5deea0
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x515cc7
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x515ceb
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x515d01
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x515cff
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x6c3550]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x515d2a
cmp dword [esp + 0x14], 0xffffffff
je 0x515d1e
mov esi, dword [esp + 0x14]
push esi
push dword [0x6c7e84]
call fcn.0052e881
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x515e4d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x515ec5
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x515ea6
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x515ea3
cmp ecx, 0x5c
je 0x515ea3
cmp ecx, 0x2f
jne 0x515eb0
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x515e90
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x515ec7
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x5160cf
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x516245
mov eax, dword [esp + 0x24]
dec eax
je 0x516228
dec eax
jne 0x516245
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00516088
pop ecx
test eax, eax
je 0x516186
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x516149
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x516224
dec ebx
je 0x516220
dec ebx
je 0x5161ff
dec ebx
je 0x5161b9
sub ebx, 4
jne 0x516245
test edi, edi
jne 0x516245
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x516245
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x516149
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x516144
sub edi, 0
je 0x5161f1
dec edi
je 0x5161e3
dec edi
je 0x5161d5
dec edi
jne 0x516245
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x516245
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x516245
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x516245
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x516245
sub edi, 0
je 0x51621c
dec edi
je 0x516218
dec edi
jne 0x516245
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x516245
push 0x3c
jmp 0x516244
push 0x32
jmp 0x516244
push 0x14
jmp 0x516244
push 5
jmp 0x516244
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x516242
cmp eax, 0xa
je 0x51623e
cmp eax, 0x5a
jne 0x516245
push 0x28
jmp 0x516244
push 0x1e
jmp 0x516244
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret

Function at 0x5170fa
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor esi, esi
push dword [0x6c8edc]
call fcn.0052e8bb
mov edi, eax
test edi, edi
je 0x51711d
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
push dword [esp + 0x10]
push esi
call fcn.0052eec0
test esi, esi
je 0x51713a
lea ecx, [esi + 1]
push ecx
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x51713f
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
ret 8
Function at 0x517320
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x6c8edc]
call fcn.0052e8bb
mov esi, eax
test esi, esi
je 0x5173fa
cmp dword [ebp + 0xc], 0
je 0x51736c
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x51735d
cmp dword [esi + 0x1c], 0
jne 0x51735d
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x5173fa
test byte [ebp + 0x10], 3
je 0x517387
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.005181be
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x5173ac
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x5173c0
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x5173dd
test ebx, ebx
je 0x5173d1
push 8
jmp 0x5173e3
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x5173f0
test ebx, ebx
je 0x5173e6
push 3
pop ecx
jmp 0x5173f0
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x517dea
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push 0x5de788
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x517e82
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x517e7f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x517e7f
lea eax, [esi - 1]
push eax
push dword [0x6c8edc]
call fcn.0052e8bb
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x517e81
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x517e76
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x517f69
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x517e5c
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x517f28
push eax
call esi
test al, al
jns 0x517f28
push 0x11
call esi
test al, al
js 0x517f28
push 0x10
call esi
test al, al
js 0x517f28
push 0x12
call esi
test al, al
js 0x517f28
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x517f28
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x517efc
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x517f13
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x517f73
lea eax, [esp + 0x18]
push 0x5c9c78
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x517f73
test ebp, ebp
je 0x517f4c
push 0x11
call esi
test al, al
js 0x517f44
push 0x10
call esi
test al, al
js 0x517f44
push 0x12
call esi
test al, al
jns 0x517f4c
push 1
push ebp
call fcn.00517f7f
test ebx, ebx
je 0x517f60
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x517f73
test edi, edi
je 0x517f73
mov eax, dword [edi + 8]
jmp 0x517f75
and dword [esp + 0x14], 0
jmp 0x517e81
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x519df9
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x519e6e
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x519e17
mov esi, 0x5c9008
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
lea ebp, [eax*2 + 2]
push ebp
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x519e65
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x519e65
push ebp
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov edi, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
ret 4
Function at 0x519e74
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
push esi
mov ebx, esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x519eb5
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x519ead
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x519ead
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
mov ebx, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x519eb8
mov edi, dword [ebp + 8]
push dword [ebp + 8]
push ebx
call fcn.0052eec0
test esi, esi
je 0x519ee0
lea ecx, [ebx*2 + 2]
push ecx
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x519ee5
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x51a4cc
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov edi, ebx
test esi, esi
je 0x51a529
push esi
call dword [esi + 0x58]
mov ecx, dword [esi + 0x80]
mov edi, eax
mov dword [esi + 0x94], ecx
mov ecx, dword [esi + 0x84]
mov dword [esi + 0x98], ecx
test edi, edi
jne 0x51a529
mov eax, dword [esi + 0x70]
test eax, eax
je 0x51a508
push ebx
push esi
call eax
push esi
push ebx
push dword [0x6c3550]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x6c9060]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x6c9064], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x51afa1
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x6c3550]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x6c9060]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x6c9064], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.0051dbd4
mov dword [esi + 0x58], 0x51bbb4
mov eax, esi
mov dword [esi + 0x5c], 0x51bc00
mov dword [esi + 0x10], fcn.0051b755
mov dword [esi + 0x30], 0x51b647
mov dword [esi + 0x64], 0x51bc8a
mov dword [esi + 0x60], 0x51bc42
mov dword [esi + 0x34], 0x51b2f7
mov dword [esi + 0x24], 0x51b2ce
mov dword [esi + 0x28], 0x51b2a3
mov dword [esi + 0x2c], 0x51b1f5
mov dword [esi + 0x44], 0x51b9ba
pop esi
ret 4
Function at 0x520e9e
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov edx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xd4]
mov dword [esp + 4], eax
test edx, edx
je 0x520f54
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
neg eax
add ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push ebp
push edi
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xcc]
mov ebp, edi
imul ecx, ebx
add ecx, dword [esi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x520f34
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 4]
xor byte [ecx], al
add ecx, esi
dec edx
jne 0x520f0f
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec edx
inc ebx
cmp dword [esi + 0xe8], 0
mov dword [esp + 0x3c], edx
jne 0x520f49
add edi, dword [esp + 0x14]
jmp 0x520f4d
add edi, dword [esp + 0x24]
test edx, edx
jne 0x520eed
pop edi
pop ebp
pop ebx
pop esi
pop ecx
pop ecx
ret 0x24

Function at 0x52125f
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], edx
test ebx, ebx
je 0x521339
imul eax, dword [esp + 0x1c], 3
mov ecx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
neg ecx
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x30]
push edi
imul edi, dword [esp + 0x30], 3
mov dword [esp + 0x10], ecx
add eax, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov esi, dword [eax + 0xcc]
imul esi, ebp
mov dword [esp + 0x34], edi
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x28]
test edx, edx
jle 0x52130f
mov ebp, dword [esp + 0x34]
mov ebx, 0xff
sub ebx, dword [esp + 0x40]
mov edi, edx
movzx eax, byte [esi]
movzx ecx, byte [ebp]
imul ecx, dword [esp + 0x40]
imul eax, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc ebp
mov byte [esi], al
inc esi
dec edi
jne 0x5212d7
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec ebx
inc ebp
cmp dword [eax + 0xe8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
jne 0x521326
add edi, ecx
jmp 0x52132a
add edi, dword [esp + 0x24]
mov dword [esp + 0x38], edi
test ebx, ebx
jne 0x5212ad
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x521959
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x521a0e
imul eax, dword [esp + 0x20]
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
neg eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x34]
add eax, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x5219ef
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [ecx], al
add ecx, edi
dec esi
jne 0x5219ca
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x3c], esi
jne 0x521a04
add edx, dword [esp + 0x14]
jmp 0x521a08
add edx, dword [esp + 0x24]
test esi, esi
jne 0x5219a8
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 0x24