joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aa140
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x320
push ebp
push esi
mov esi, dword [esp + 0x330]
push edi
xor edi, edi
push esi
mov dword [esp + 0x10], edi
call fcn.00464ab0
add esp, 4
push str.netapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x4aa305
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push str.NetApiBufferFree
push ebp
call esi
push str.NetGetDCName
mov edi, eax
push ebp
mov dword [esp + 0x20], edi
call esi
push str.NetUserGetInfo
push ebp
mov ebx, eax
call esi
test eax, eax
mov dword [esp + 0x20], eax
je 0x4aa2ec
test ebx, ebx
je 0x4aa2ec
test edi, edi
je 0x4aa2ec
mov eax, dword [esp + 0x334]
push 0x40
push eax
or edi, 0xffffffff
mov dword [esp + 0x1c], 0
call fcn.00583420
mov esi, eax
add esp, 8
test esi, esi
je 0x4aa221
lea ecx, [esp + 0x24]
push ecx
call fcn.00464ab0
lea edx, [esp + 0x28]
push edx
lea eax, [esi + 1]
push 0xffffffffffffffff
push eax
call fcn.0048ea30
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
call ebx
lea edx, [esp + 0x24]
push edx
mov ebx, eax
call fcn.00464cc0
sub esi, dword [esp + 0x338]
add esp, 4
test ebx, ebx
mov edi, esi
jne 0x4aa2df
lea eax, [esp + 0x24]
push eax
call fcn.00464ab0
mov edx, dword [esp + 0x338]
lea ecx, [esp + 0x28]
push ecx
push edi
push edx
call fcn.0048ea30
mov edx, dword [esp + 0x24]
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
push 1
push eax
push edx
call dword [esp + 0x30]
test eax, eax
jne 0x4aa2d2
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x10]
test esi, esi
je 0x4aa282
cmp word [esi], 0
je 0x4aa282
mov ecx, dword [esp + 0x338]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
call fcn.0048e900
add esp, 0xc
jmp 0x4aa2bc
push 0x104
lea edx, [esp + 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, dword [esp + 0x338]
push esi
lea eax, [esp + 0x12c]
push 2
push eax
call fcn.0048e900
push 0xffffffffffffffff
push str._users_default
push esi
call fcn.00464ad0
add esp, 0x18
mov ecx, dword [esp + 0x338]
mov eax, dword [esp + 0x1c]
mov edx, dword [ecx]
push eax
mov dword [esp + 0x14], edx
call dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
call fcn.00464cc0
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4aa2ec
push eax
call dword [esp + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
test eax, eax
pop ebx
jne 0x4aa36d
mov esi, dword [esp + 0x334]
mov edi, eax
mov eax, dword [esp + 0x330]
cmp byte [eax], 0x2a
je 0x4aa361
push str.system.ini
push 0x104
lea edx, [esp + 0x28]
push edx
push 0x5debc4
push eax
push str.Password_Lists
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x4aa361
push 0x104
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 3
lea ecx, [esp + 0x24]
push ecx
push esi
call fcn.00464ad0
mov eax, dword [esi]
add esp, 0xc
pop edi
pop esi
pop ebp
add esp, 0x320
ret
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x320
ret
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x320
ret
Function at 0x4b3d60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
push edi
mov edi, dword [esp + 0x20]
cmp eax, dword [edi]
jle 0x4b3d8b
lea ecx, [esp + 8]
push esi
push ecx
call fcn.004ae500
add esp, 8
test eax, eax
jne 0x4b3ddf
mov ecx, dword [edi]
mov esi, edi
jmp 0x4b3d9f
lea edx, [esp + 8]
push edi
push edx
call fcn.004ae500
add esp, 8
test eax, eax
jne 0x4b3ddf
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
jle 0x4b3db7
mov edx, dword [esp + 0x14]
mov edi, dword [esi + 0xc]
mov edi, dword [edi + eax*4]
xor dword [edx + eax*4], edi
inc eax
cmp eax, ecx
jl 0x4b3da5
lea eax, [esp + 8]
push eax
call fcn.004b5370
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push ecx
push edx
call fcn.004b4780
lea eax, [esp + 0x14]
push eax
call fcn.004897e0
add esp, 0x10
xor eax, eax
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4b9750
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jle 0x4b9766
mov ecx, dword [esp + 4]
xor eax, dword [ecx]
add ecx, 4
dec edx
jne 0x4b975e
ret
Function at 0x4c6da0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, dword [esi]
xor eax, eax
mov al, byte [ecx]
xor edx, edx
test al, al
setne dl
push edi
lea ecx, [ecx + 1]
mov dword [esi], ecx
dec edx
mov edi, edx
mov edx, eax
and edx, 0xff
test al, 0x80
jne 0x4c6de3
push ebx
xor eax, eax
mov al, byte [ecx]
shl edx, 7
mov ebx, eax
and ebx, 0xff
add edx, ebx
and al, 0x80
inc ecx
test al, al
mov dword [esi], ecx
je 0x4c6dc8
pop ebx
lea eax, [edx - 0x80]
xor eax, edi
pop edi
pop esi
ret

Function at 0x4cd250
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x48
mov eax, dword [ecx + 0xc]
push ebx
xor ebx, ebx
push ebp
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x28], bl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x40], ebx
mov dword [esp + 8], ebx
jle 0x4cd326
push esi
mov esi, dword [esp + 0x58]
push edi
mov eax, dword [esi]
push ebp
mov ecx, esi
call dword [eax + 0x20]
movsx eax, word [eax + 4]
mov edx, dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x64]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x38]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
mov edi, ecx
jle 0x4cd310
mov edx, dword [esp + 0x28]
xor eax, eax
mov al, byte [edx]
shl eax, 7
cmp ecx, 0xc8
jle 0x4cd2ca
mov edi, 0x64
dec edi
js 0x4cd2de
inc edi
imul eax, eax, 0xf4243
xor ebx, ebx
mov bl, byte [edx]
xor eax, ebx
inc edx
dec edi
jne 0x4cd2ce
cmp ecx, 0xc8
jle 0x4cd302
lea edx, [edx + ecx - 0xc8]
mov edi, 0x64
imul eax, eax, 0xf4243
xor ebx, ebx
mov bl, byte [edx]
xor eax, ebx
inc edx
dec edi
jne 0x4cd2f2
mov ebx, dword [esp + 0x10]
xor ecx, eax
xor ecx, ebp
xor ebx, ecx
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0xc]
inc ebp
cmp ebp, eax
jl 0x4cd28a
test ebx, ebx
pop edi
pop esi
jne 0x4cd329
or ebx, 0xffffffff
mov al, byte [esp + 0x48]
test al, al
je 0x4cd33e
mov eax, dword [esp + 0x40]
push eax
call fcn.005837cf
add esp, 4
mov al, byte [esp + 0x28]
test al, al
je 0x4cd353
mov ecx, dword [esp + 0x20]
push ecx
call fcn.005837cf
add esp, 4
pop ebp
mov eax, ebx
pop ebx
add esp, 0x48
ret 8
Function at 0x4cf500
Capabilities:
Create thread

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
call fcn.004cf6c0
push 0x205c
call fcn.004783d0
mov ebx, dword [esp + 0x44]
mov esi, eax
xor eax, eax
mov ecx, 0x817
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x3c]
add esp, 4
mov dword [esi + 0x10], ebx
mov dword [esi], eax
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea ecx, [esp + 0x1c]
push str.cp_d
push ecx
call edi
call sub.KERNEL32.dll_GetCurrentThreadId
mov ebp, dword [esp + 0x48]
push esi
push str.file_lx
push ebp
mov dword [esi + 0x1c], eax
call edi
push ebx
push esi
push ebp
push 0x5bb370
call fcn.00441f10
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x28
test bl, 2
mov dword [esi + 0xc], eax
je 0x4cf5fb
mov eax, dword [esi]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, dword [esp + 0x10]
and eax, 0xffffffe7
or eax, 2
mov dword [esp + 0x10], eax
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push 0
push 1
push 1
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x2c], eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x38], eax
call edi
lea edx, [esp + 0x14]
push edx
push 0
push esi
push 0x4cf980
push 0x100
push 0
mov dword [esi + 0x3c], eax
call ebp
push 2
push eax
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test bl, 4
je 0x4cf649
push 0
push 1
push 1
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x28], eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
push 0x4cfa50
push 0x100
push 0
call ebp
push 2
push eax
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esi + 0xc]
push str.auto
push str._translation
push ecx
push 0
call fcn.00445e60
mov edx, dword [esi + 0xc]
push 0x5adc84
push str._eofchar
push edx
push 0
call fcn.00445e60
mov eax, dword [0x5e0920]
mov ecx, dword [eax]
add esp, 0x20
test ecx, ecx
je 0x4cf691
mov ecx, dword [esi + 0xc]
push str.unicode
push str._encoding
push ecx
jmp 0x4cf69f
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x18]
push edx
push str._encoding
push eax
push 0
call fcn.00445e60
mov eax, dword [esi + 0xc]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x4cfe40
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx]
push esi
push edi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4cfea2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4cfe8d
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [ebx]
push 1
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x4cfea2
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4d0040
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov esi, dword [esp + 0x14]
lea ebx, [esi + 0x68]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x9c]
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
sub ecx, ebp
mov dword [esi + 0x9c], ecx
mov ecx, dword [esp + 0x20]
push edi
push ecx
xor eax, eax
push ebp
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4d00d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x3e5
je 0x4d00bb
sub eax, 0x7c
je 0x4d00d5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x20]
mov edx, dword [esi]
push 1
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x4d00d5
pop edi
pop esi
pop ebp
pop ebx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [esi + 0x9c]
sub ecx, ebp
add edx, ecx
push ebx
mov dword [esi + 0x9c], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x4d0570
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call fcn.004d0220
push 0xa0
call fcn.004783d0
mov ebx, dword [esp + 0x24]
mov esi, eax
xor ebp, ebp
xor eax, eax
mov ecx, 0x28
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x1c]
mov dword [esi + 0xc], ebx
mov dword [esi], edi
mov dword [esi + 8], ebp
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], 1
mov dword [esi + 0x9c], ebp
mov dword [esi + 0x98], ebp
mov dword [esi + 0x20], 0xa
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esi + 0x38], eax
mov eax, 0x1000
push esi
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x24]
push str.file_lx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x2c]
push ebx
push esi
push ecx
push 0x5bb3c0
call fcn.00441f10
mov edx, dword [esi + 0x34]
add esp, 0x20
mov dword [esi + 8], eax
mov eax, dword [esi + 0x30]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetupComm]
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
push 0x5dfec0
push edi
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
lea ecx, [esi + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
test bl, 2
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
je 0x4d0647
push ebp
push ebp
push 1
push ebp
call edi
mov dword [esi + 0x4c], eax
test bl, 4
je 0x4d0697
push ebp
push ebp
push 1
push ebp
call edi
push ebp
push 1
push 1
push ebp
mov dword [esi + 0x60], eax
call edi
push ebp
push ebp
push ebp
push ebp
mov dword [esi + 0x80], eax
call edi
push ebp
push ebp
push ebp
push ebp
mov dword [esi + 0x84], eax
call edi
lea edx, [esp + 0x10]
push edx
push ebp
push esi
push 0x4d06d0
push 0x100
push ebp
mov dword [esi + 0x88], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x64], eax
mov eax, dword [esi + 8]
push str.auto
push str._translation
push eax
push ebp
call fcn.00445e60
mov ecx, dword [esi + 8]
push 0x5adc84
push str._eofchar
push ecx
push ebp
call fcn.00445e60
mov eax, dword [esi + 8]
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4d9050
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
call ebx
mov edi, eax
add edi, 0xfa
call ebx
cmp eax, edi
jae 0x4d90a5
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 0
push 0x201
push 0x201
push 0
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
jne 0x4d90a5
push 1
push 0x202
push 0x202
push eax
lea ecx, [esp + 0x1c]
push ecx
call esi
call ebx
cmp eax, edi
jb 0x4d9072
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x526700
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov eax, dword [0x5e0124]
sub esp, 0x2c
push esi
xor esi, esi
cmp eax, esi
jne 0x52682e
lea eax, [esp + 8]
push eax
mov dword [0x5e0124], 1
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
jne 0x52674d
mov ecx, dword [0x5debe0]
push str.Unable_to_load_common_controls__
call dword [ecx + 0x10]
add esp, 4
call fcn.005268a0
cmp eax, 2
mov dword [0x5e092c], 0x5cb120
je 0x52676b
mov dword [0x5e092c], 0x5cb100
push edi
mov edi, dword [esp + 0x38]
push 0x5e00f8
mov dword [0x5e00f8], 3
mov dword [0x5e0100], esi
mov dword [0x5e0104], esi
mov dword [0x5e0108], edi
mov dword [0x5e0114], esi
mov dword [0x5e0118], esi
mov dword [0x5e011c], 0x5cb188
mov dword [0x5e00fc], 0x526f40
mov dword [0x5e010c], esi
mov dword [0x5e0110], esi
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x5267d9
mov edx, dword [0x5debe0]
push str.Unable_to_register_TkChild_class
call dword [edx + 0x10]
add esp, 4
push 4
lea eax, [esp + 0xc]
push eax
push 0x20001004
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
and eax, 0xffff
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x52681f
mov edx, dword [esp + 8]
push 2
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x52681f
mov eax, dword [esp + 0x14]
push eax
call fcn.00527bd0
add esp, 4
push edi
push 0x526840
call fcn.004d7e90
add esp, 8
pop edi
pop esi
add esp, 0x2c
ret

Function at 0x5268a0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov eax, dword [0x5e012c]
sub esp, 0x164
test eax, eax
jne 0x5269ca
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x18]
cmp eax, 2
mov dword [0x5e012c], eax
mov ecx, 1
jne 0x5269c4
cmp dword [esp + 0xc], 5
jne 0x5269c4
cmp dword [esp + 0x10], ecx
jne 0x5269c4
push edi
xor eax, eax
mov ecx, 0x32
lea edi, [esp + 0xa0]
rep stosd dword es:[edi], eax
lea ecx, [esp + 4]
push ecx
push 0x20019
push eax
push str.Control_PanelAppearance
push reloc.WS2_32.dll_accept
mov dword [esp + 0x1c], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
je 0x526941
mov dword [0x5e0130], 2
mov eax, dword [0x5e012c]
add esp, 0x164
ret
mov ecx, dword [esp]
push ebx
push esi
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xa8]
push eax
push 0
push 0
push str.Current
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, str.Windows_Standard
lea eax, [esp + 0xa4]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x5269a3
test cl, cl
je 0x52699f
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x5269a3
add eax, 2
add esi, 2
test cl, cl
jne 0x52697b
xor eax, eax
jmp 0x5269a8
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
mov eax, dword [0x5e012c]
setne cl
pop esi
pop ebx
inc ecx
mov dword [0x5e0130], ecx
add esp, 0x164
ret
mov dword [0x5e0130], ecx
add esp, 0x164
ret
Function at 0x526e80
Capabilities:
Open clipboard

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x510]
test eax, eax
je 0x526f2a
mov eax, dword [eax + 0x14]
push edi
push eax
call fcn.00528280
add esp, 4
mov edi, eax
call dword [sym.imp.USER32.dll_GetClipboardOwner]
cmp eax, edi
jne 0x526eca
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 1
push esi
call fcn.0052b980
add esp, 8
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esi + 0x500]
mov edx, dword [esi + 0x508]
mov eax, dword [esi + 0x510]
push ecx
push edx
push eax
call fcn.005020f0
mov ecx, dword [esi + 0x504]
mov edx, dword [esi + 0x508]
mov eax, dword [esi + 0x510]
push ecx
push edx
push eax
call fcn.005020f0
mov ecx, dword [esi + 0x510]
push ecx
call fcn.004d59e0
mov edx, dword [esi + 0x510]
mov eax, dword [0x5debe0]
push edx
call dword [eax + 0x368]
add esp, 0x20
mov dword [esi + 0x510], 0
pop edi
pop esi
ret
Function at 0x528580
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x60
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [esp + 0x6c]
mov edx, dword [edi + 0x5c]
inc edx
push 0
push eax
mov dword [edi + 0x5c], edx
call fcn.00528280
add esp, 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x98]
and ecx, 0xfffffffe
mov eax, ecx
test eax, 0x10000
mov dword [esi + 0x98], ecx
je 0x5285ff
mov eax, dword [edi + 0x5c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x12
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edi
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x18], ecx
mov edx, dword [esi + 0x14]
lea eax, [esp + 8]
push eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 0
call fcn.004d7410
add esp, 4
pop edi
pop esi
add esp, 0x60
ret
Function at 0x52b980
Capabilities:
Write clipboard data

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xd4
push ebx
push ebp
push esi
mov esi, dword [eax + 0x51c]
test esi, esi
push edi
je 0x52b9a4
cmp dword [esi], 0x1f
je 0x52b9a4
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x52b998
xor edi, edi
test esi, esi
je 0x52b9d0
mov edx, dword [esi + 8]
test edx, edx
je 0x52b9d0
mov ecx, dword [edx + 4]
mov eax, dword [edx]
add edi, ecx
add ecx, eax
cmp eax, ecx
jae 0x52b9c9
cmp byte [eax], 0xa
jne 0x52b9c4
inc edi
inc eax
cmp eax, ecx
jb 0x52b9be
mov edx, dword [edx + 8]
test edx, edx
jne 0x52b9b1
mov ecx, dword [0x5debe0]
inc edi
push edi
call dword [ecx + 0x14]
add esp, 4
test esi, esi
mov ebp, eax
mov ecx, ebp
je 0x52ba12
mov edi, dword [esi + 8]
test edi, edi
je 0x52ba12
mov eax, dword [edi]
mov esi, dword [edi + 4]
add esi, eax
cmp eax, esi
jae 0x52ba0b
cmp byte [eax], 0xa
jne 0x52ba01
mov byte [ecx], 0xd
inc ecx
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
cmp eax, esi
jb 0x52b9f8
mov edi, dword [edi + 8]
test edi, edi
jne 0x52b9ed
mov byte [ecx], 0
call fcn.005268a0
cmp eax, 2
lea eax, [esp + 0x10]
push eax
jne 0x52badd
mov ecx, dword [0x5debe0]
call dword [ecx + 0x1f0]
mov eax, dword [0x5debe0]
lea edx, [esp + 0x14]
push edx
push 0xffffffffffffffff
push ebp
call dword [eax + 0x594]
mov ecx, dword [0x5debe0]
push ebp
call dword [ecx + 0x18]
mov edx, dword [esp + 0x28]
add esp, 0x14
add edx, 2
push edx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x52ba8c
mov ecx, dword [0x5debe0]
lea eax, [esp + 0x10]
push eax
call dword [ecx + 0x1e8]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
lea ecx, [edx + 2]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [0x5debe0]
lea ecx, [esp + 0x10]
push ecx
call dword [edx + 0x1e8]
add esp, 4
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret
mov ecx, dword [0x5debe0]
push 0xffffffffffffffff
push ebp
push 0
call dword [ecx + 0x53c]
mov edx, dword [0x5debe0]
push ebp
call dword [edx + 0x18]
mov eax, dword [esp + 0x28]
add esp, 0x14
inc eax
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x52bb31
mov edx, dword [0x5debe0]
lea ecx, [esp + 0x10]
push ecx
call dword [edx + 0x1e8]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
inc ecx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [0x5debe0]
lea eax, [esp + 0x10]
push eax
call dword [ecx + 0x1e8]
add esp, 4
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret