joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c35c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4c35fc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4c35dd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4c35ec
or bl, 4
test esi, 0x20000000
je 0x4c35f7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4c9c38
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4c9c4a
add esp, 0xfffffff0
call fcn.00403ddc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00429c48
mov eax, dword [0x5cbec4]
mov dword [eax + 4], ebx
mov dword [eax], 0x4c9fdc
mov eax, dword [0x5cbed4]
mov dword [eax + 4], ebx
mov dword [eax], 0x4c9fe8
mov eax, ebx
call fcn.004c9ff4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41e4bc]
call fcn.00403a48
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41e4bc]
call fcn.00403a48
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41e4bc]
call fcn.00403a48
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41e4bc]
call fcn.00403a48
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41e4bc]
call fcn.00403a48
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4c64bc
push eax
push 0
push 0
mov eax, dword [0x5cc12c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x47f78c]
call fcn.00480f40
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x47f78c]
call fcn.00480f40
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x47f78c]
call fcn.00480f40
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004ca4ec
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ca380
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ca380
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ca380
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4c9d87
call fcn.00403e34
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4ca164
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ca30f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4ca2f0
mov dl, 1
mov eax, dword [0x41eb20]
call fcn.00403a48
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404968
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4ca2df
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004b6f2c
test al, al
je 0x4ca2d2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4ca320
lea eax, [ebp - 0x254]
call fcn.0040d4e0
push eax
push reloc.shell32.dll_SHChangeNotifyRegister
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4ca2d2
xor eax, eax
push ebp
push 0x4ca2cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4ca358
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4ca2b4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404be0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4ca2b4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404be0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca2d2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4ca1d5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00423b84
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca316
lea eax, [ebp - 0x260]
call fcn.00404968
ret

Function at 0x4cac8c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x5d18a4]
cmp byte [eax + 0xa5], 0
jne 0x4cacfd
cmp dword [0x5d18bc], 0
jne 0x4cacbe
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4cac48
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5d18bc], eax
cmp dword [0x5d18b8], 0
jne 0x4cacd9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x5d18b8], eax
cmp dword [0x5d18c0], 0
jne 0x4cacfd
push esp
push 0
push 0
push 0x4cabec
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5d18c0], eax
pop edx
ret
Function at 0x4cae7c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4cae93
add esp, 0xfffffff0
call fcn.00403ddc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00429c48
mov eax, dword [0x5cc104]
cmp word [eax + 2], 0
jne 0x4caebb
mov eax, dword [0x5cc104]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004cc558
mov eax, dword [0x5cc240]
cmp word [eax + 2], 0
jne 0x4caed5
mov eax, dword [0x5cc240]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004cc750
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41e4bc]
call fcn.00403a48
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41e4bc]
call fcn.00403a48
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], SHILCreateFromPath
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x4802ac]
call fcn.004883c8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4cb05c
mov eax, dword [0x5cbf80]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00488798
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4cccd0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x5cbf80]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00411804
test eax, eax
je 0x4cafca
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040cdb8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0041182c
test eax, eax
je 0x4cafde
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404be0
mov eax, dword [0x5cbd3c]
cmp byte [eax], 0
jne 0x4cb012
mov eax, ebx
call fcn.004cb184
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004cceac
mov eax, ebx
call fcn.004cd8ac
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4cb052
call fcn.00403e34
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cb3f8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x5d18a4]
cmp dword [eax + 0x30], 0
je 0x4cb4a2
cmp dword [ebx + 0x94], 0
jne 0x4cb49c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4cb388
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4cb49c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4cb462
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4cb49c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00420df8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4cb471
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4cbf80
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4cbfb5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404a58
jmp 0x4cbfc2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004049bc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4cd088
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4cd0c9
mov eax, esi
call fcn.004b260c
test al, al
je 0x4cd0c9
mov eax, dword [ebx + 0x84]
call fcn.004b2308
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4cd0c9
push 0
mov eax, dword [ebx + 0x84]
call fcn.004b2308
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4d1f30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004d19b4
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404e44
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4d1f8e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5cc138]
mov dl, 1
mov eax, dword [0x4d18ac]
call fcn.00410a78
call fcn.00404308
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d1f98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404e44
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4d1ff0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5cc4e0]
mov dl, 1
mov eax, dword [0x4d18ac]
call fcn.00410a78
call fcn.00404308
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004d19e4
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4da210
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4da2e8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5d192c], 0
jne 0x4da2cc
lea eax, [ebp - 4]
mov edx, 0x4da300
call fcn.00404a00
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404e44
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4da2cc
mov eax, ebx
call fcn.004027a0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4da2c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4da2af
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4da310
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4da2af
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x5d192c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da2cc
mov eax, dword [ebp - 0xc]
call fcn.004027c0
ret
mov ebx, dword [0x5d192c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da2ef
lea eax, [ebp - 4]
call fcn.00404968
ret

Function at 0x4ef380
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, eax
push 5
push 0
push 0
mov eax, ebx
call fcn.00404e44
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA_1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404e44
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4ef7c5
test al, 0x10
jne 0x4ef7c9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x504b5c
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.005049d0
test al, al
je 0x504b7a
push 0
mov eax, dword [ebx + 0x34]
call fcn.004b2308
push eax
call sub.user32.dll_ShowWindow
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x30]
pop ebx
ret
Function at 0x50ab94
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov edi, esi
mov ebx, dword [edi + 0x22c]
push edi
mov eax, dword [edi]
mov eax, dword [eax + 0x1c8]
push eax
push 0xa
mov cl, byte [0x50ae20]
mov dx, 0x24
mov eax, ebx
call fcn.005060a4
push edi
mov eax, dword [edi]
mov eax, dword [eax + 0x1c8]
push eax
push 0xb
mov cl, byte [0x50ae20]
mov dx, 0x23
mov eax, ebx
call fcn.005060a4
push edi
push 0x52c9c0
push 0x14
mov cl, byte [0x50ae24]
mov dx, 8
mov eax, ebx
call fcn.005060c8
push edi
push 0x52c9c0
push 0x15
mov cl, byte [0x50ae28]
mov dx, 8
mov eax, ebx
call fcn.005060c8
push edi
push fcn.005250fc
push 0x17
mov cl, byte [0x50ae2c]
mov dx, 0x2e
mov eax, ebx
call fcn.005060c8
push edi
push fcn.005250fc
push 0x19
mov cl, byte [0x50ae30]
mov dx, 0x2e
mov eax, ebx
call fcn.005060c8
push edi
push fcn.005250fc
push 0x18
mov cl, byte [0x50ae2c]
mov dx, 0x2d
mov eax, ebx
call fcn.005060c8
push edi
push fcn.005250fc
push 0x16
mov cl, byte [0x50ae30]
mov dx, 0x2d
mov eax, ebx
call fcn.005060c8
push edi
push 0x526804
push 0x35
mov cl, byte [0x50ae20]
mov dx, 0x2d
mov eax, ebx
call fcn.005060c8
push edi
push 0x52cc54
push 0x1a
push 2
push 0
mov cl, byte [0x50ae30]
mov dx, 0x46
mov eax, ebx
call fcn.0050601c
push edi
push 0x52cc54
push 0x1b
push 2
push 0
mov cl, byte [0x50ae30]
mov dx, 0x41
mov eax, ebx
call fcn.0050601c
push edi
mov eax, dword [edi]
mov eax, dword [eax + 0x1cc]
push eax
push 0xb
push 2
push 0
mov cl, byte [0x50ae30]
mov dx, 0x59
mov eax, ebx
call fcn.0050601c
push edi
mov eax, dword [edi]
mov eax, dword [eax + 0x1cc]
push eax
push 8
mov cl, byte [0x50ae30]
mov dx, 8
mov eax, ebx
call fcn.005060c8
push edi
push fcn.005250fc
push 0x2c
mov cl, byte [0x50ae30]
mov dx, 0x41
mov eax, ebx
call fcn.005060c8
push edi
mov eax, dword [edi]
mov eax, dword [eax + 0x1d0]
push eax
push 0x2d
mov cl, byte [0x50ae34]
mov dx, 0x47
mov eax, ebx
call fcn.005060c8
push 0
push 0
push 0
push 0
push 3
mov cl, byte [0x50ae30]
mov dx, 0x4f
mov eax, ebx
call fcn.0050601c
push edi
push 0x52cc54
push 0x1c
push 3
push 0
mov cl, byte [0x50ae30]
mov dx, 0x47
mov eax, ebx
call fcn.0050601c
push edi
push fcn.005250fc
push 0x22
push 3
push 0
mov cl, byte [0x50ae30]
mov dx, 0x4c
mov eax, ebx
call fcn.0050601c
push edi
push fcn.005250fc
push 0x2e
push 3
push 0
mov cl, byte [0x50ae30]
mov dx, 0x55
mov eax, ebx
call fcn.0050601c
push edi
mov eax, dword [edi]
mov eax, dword [eax + 0x1c8]
push eax
push 0x3d
mov cl, byte [0x50ae30]
mov dx, 0xdb
mov eax, ebx
call fcn.005060c8
push edi
mov eax, dword [edi]
mov eax, dword [eax + 0x1c8]
push eax
push 0x3e
mov cl, byte [0x50ae30]
mov dx, 0xdd
mov eax, ebx
call fcn.005060c8
push edi
push 0x52f4a4
push 0
push 0x5b
call sub.user32.dll_VkKeyScanA
mov edx, eax
mov cl, byte [0x50ae30]
mov eax, ebx
call fcn.005060c8
push edi
push 0x52f900
push 0
mov cl, byte [0x50ae30]
mov dx, 0x45
mov eax, ebx
call fcn.005060c8
pop edi
pop esi
pop ebx
ret
Function at 0x51a6a4
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x51a7da
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x51a7f0
mov eax, ebx
call fcn.0040b6e4
test eax, eax
jne 0x51a6ea
mov eax, esi
call fcn.00421ba0
inc eax
mov edx, edi
call fcn.0040bf0c
jmp 0x51a7c4
mov edx, 0x51a800
mov eax, ebx
call fcn.0040b6e4
test eax, eax
jne 0x51a70e
mov eax, dword [esi + 4]
call fcn.00421f00
mov edx, edi
call fcn.0040bf0c
jmp 0x51a7c4
mov edx, 0x51a814
mov eax, ebx
call fcn.0040b6e4
test eax, eax
jne 0x51a736
call fcn.0040eba0
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, edi
call fcn.0040f7b4
jmp 0x51a7c4
mov edx, 0x51a824
mov eax, ebx
call fcn.0040b6e4
test eax, eax
jne 0x51a75b
call fcn.0040eba0
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, edi
call fcn.0040f7cc
jmp 0x51a7c4
mov edx, 0x51a834
mov eax, ebx
call fcn.0040b6e4
test eax, eax
jne 0x51a7bb
mov dword [ebp - 8], 0x104
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404fd0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404e44
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x51a7a7
cmp dword [ebp - 8], 0
jbe 0x51a7a7
mov edx, dword [ebp - 8]
dec edx
lea eax, [ebp - 4]
call fcn.00404fd0
jmp 0x51a7af
lea eax, [ebp - 4]
call fcn.00404968
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.004049bc
jmp 0x51a7c4
mov eax, edi
mov edx, ebx
call fcn.004049bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51a7e1
lea eax, [ebp - 4]
call fcn.00404968
ret
Function at 0x525ce8
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x525ea5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004f6f74
xor eax, eax
push ebp
push 0x525e7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x58]
push 0xd
call sub.user32.dll_IsClipboardFormatAvailable
test eax, eax
je 0x525dfb
call fcn.004a418c
mov edx, dword [eax]
call dword [edx + 0x18]
push 0xd
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x525df4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
je 0x525dcd
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.00405220
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.0040541c
je 0x525dcd
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.0040541c
je 0x525dbe
mov eax, dword [ebp - 0xc]
call fcn.00405304
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 2], 0xd
je 0x525db4
mov eax, dword [ebp - 0xc]
call fcn.00405304
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 2], 0xa
jne 0x525dbe
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x48]
call fcn.004043b4
call fcn.004043b4
jmp 0x525e82
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x525dfb
cmp dword [ebp - 0x10], 0
je 0x525de9
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
call fcn.004a418c
mov edx, dword [eax]
call dword [edx + 0x14]
ret
push 1
call sub.user32.dll_IsClipboardFormatAvailable
test eax, eax
je 0x525e65
call fcn.004a418c
lea edx, [ebp - 0x14]
call fcn.004a3dac
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.00405278
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040541c
je 0x525e65
mov eax, dword [ebp - 8]
call fcn.00405304
mov edx, dword [ebp - 8]
cmp word [edx + eax*2 - 2], 0xd
je 0x525e5b
mov eax, dword [ebp - 8]
call fcn.00405304
mov edx, dword [ebp - 8]
cmp word [edx + eax*2 - 2], 0xa
jne 0x525e65
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x48]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x525e82
mov eax, dword [ebp - 4]
call fcn.004f7030
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x525eac
lea eax, [ebp - 0x14]
call fcn.00404968
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004050d0
ret
Function at 0x527b78
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x527d86
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
lea edx, [ebx + 0x374]
xor ecx, ecx
mov eax, ebx
call fcn.0052a484
push 0
mov eax, dword [ebx + 0x21c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x30]
add dword [ebp - 4], eax
mov dl, 1
mov eax, dword [0x41eb20]
call fcn.00403a48
mov dword [ebp - 0xc], eax
mov eax, ebx
call fcn.00522684
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x527d3f
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, dword [ebx + 0x378]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x527cd3
movzx eax, byte [eax + 0x27]
mov dword [ebp - 0x10], eax
inc esi
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
sub eax, esi
jl 0x527cd3
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x378]
add eax, 0x14
cmp esi, eax
jle 0x527c86
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x527cd3
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
dec edx
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x1c]
mov edx, 0x527d9c
call fcn.00404c54
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
dec edx
mov eax, dword [ebp - 0xc]
pop ecx
mov edi, dword [eax]
call dword [edi + 0x20]
jmp 0x527cd3
mov edx, esi
mov eax, dword [ebp - 0x14]
call fcn.004f8768
test al, al
jne 0x527cd3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + esi*4]
movzx eax, byte [eax + 0x27]
cmp eax, dword [ebp - 0x10]
jl 0x527cd3
lea ecx, [ebp - 0x24]
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.00404c14
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec dword [ebp - 0x18]
jne 0x527c2c
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x527d29
push 0
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004ab5ac
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
call fcn.00405278
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.00527aac
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
call fcn.00404c14
mov edx, dword [ebp - 0x30]
mov eax, ebx
pop ecx
call fcn.00526e98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x527d46
mov eax, dword [ebp - 0xc]
call fcn.00403a78
ret