joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499b30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x80c
mov ecx, dword [esp + 0x810]
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor esi, esi
push eax
push 0xf003f
push esi
push ecx
push SHChangeNotifyRegister
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x499cc6
mov edx, dword [0x554e0c]
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edx
mov dword [esp + 0x24], esi
push esi
mov esi, dword [esp + 0x20]
push 0x554e08
push esi
mov dword [esp + 0x2c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [0x547570]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
lea ecx, [esp + 0x20]
mov edi, esp
test ecx, ecx
mov dword [edi], eax
je 0x499c11
lea edx, [esp + 0x20]
shr edx, 0x10
jne 0x499bdd
xor eax, eax
lea ecx, [esp + 0x20]
mov ax, cx
mov ecx, edi
push eax
call fcn.00413ae0
jmp 0x499c11
lea edx, [esp + 0x20]
push edx
call ebp
mov ebx, eax
test ebx, ebx
je 0x499c11
push ebx
mov ecx, edi
call fcn.00405530
test eax, eax
je 0x499c11
mov edi, dword [edi]
lea ecx, [ebx + ebx]
mov eax, ecx
lea esi, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
call fcn.004ba530
add esp, 4
cmp eax, 1
jne 0x499cbb
lea ecx, [esp + 0x1c]
test ecx, ecx
jne 0x499c2e
xor ebp, ebp
jmp 0x499c37
lea edx, [esp + 0x1c]
push edx
call ebp
mov ebp, eax
mov ebx, dword [esp + 0x824]
push ebp
mov ecx, ebx
call fcn.00405660
test eax, eax
je 0x499c75
mov edi, dword [ebx]
lea eax, [ebp + ebp]
mov ecx, eax
lea esi, [esp + 0x1c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov esi, dword [esp + 0x10]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [eax + edx], 0
test esi, esi
je 0x499c80
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x820]
mov ecx, dword [0x547574]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x499cab
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x499cab
push esi
call fcn.00532222
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80c
ret
test esi, esi
je 0x499cc6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x820]
mov eax, dword [0x547574]
lea ecx, [esi - 0xc]
cmp ecx, eax
je 0x499cf0
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x499cf0
push esi
call fcn.00532222
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80c
ret
Function at 0x4a23b0
Capabilities:
Get file attributes

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x144], 1
jne 0x4a24ef
lea ebx, [esi + 0x1d0]
lea eax, [esp + 8]
push eax
mov ecx, ebx
call fcn.00511000
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4a2420
mov dword [esi + 0x144], 0xfffffffe
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a24ef
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a24ef
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
pop esi
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4a2470
mov eax, dword [esp + 8]
mov dword [esi + 0x144], 0xfffffffe
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a24ef
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a24ef
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
pop esi
pop ebx
pop ecx
ret
push edi
lea edi, [esi + 0xf0]
mov ecx, edi
mov dword [esi + 0x144], 0
call fcn.004f6440
test eax, eax
je 0x4a2496
mov dword [esi + 0x10c], 0
mov eax, dword [esi + 0x38]
push 0
push 0x549974
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowExW]
push ecx
push esp
mov ecx, ebx
mov dword [esi + 0x158], eax
call fcn.00511000
mov ecx, edi
call fcn.004f5fe0
mov eax, dword [esp + 0xc]
mov edx, dword [0x547574]
pop edi
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a24ef
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a24ef
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
pop esi
pop ebx
pop ecx
ret
Function at 0x4a3890
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push 1
mov dword [esi + 0x20c], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x264]
test eax, eax
jne 0x4a38ba
push 0x64
mov ecx, esi
call fcn.004a2370
pop esi
ret
lea eax, [esi + 0x244]
mov dword [esi + 0x264], 0
push eax
push 0
push esi
push 0x4a3900
push 0
push 0
mov dword [eax], 0
mov dword [esi + 0x20c], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x24c], eax
pop esi
ret
Function at 0x4a4bb0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0xe58
mov edx, dword [0x554e0c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x66c]
mov dword [esp + 0x668], edx
rep stosd dword es:[edi], eax
mov ecx, 0xff
lea edi, [esp + 0x26c]
mov dword [esp + 0x268], edx
xor ebp, ebp
rep stosd dword es:[edi], eax
mov ecx, 0x93
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xe6c]
lea ecx, [esp + 0x268]
push eax
push ecx
xor edi, edi
call fcn.00532eca
lea edx, [esp + 0x270]
push 0x547f14
push edx
call fcn.00532eca
lea eax, [esp + 0x278]
lea ecx, [esp + 0x678]
push eax
push ecx
call fcn.00532eca
lea edx, [esp + 0x680]
push 0x5484ac
push edx
call fcn.00532eca
add esp, 0x20
lea eax, [esp + 0x18]
lea ecx, [esp + 0x668]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [esp + 0xe78]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp dword [edx], 0
je 0x4a4db9
mov ebx, dword [esp + 0xe74]
mov ecx, esi
call fcn.004a5900
test byte [esp + 0x18], 0x10
je 0x4a4d52
lea eax, [esp + 0x44]
push 0x548134
push eax
call fcn.005322f9
add esp, 8
test eax, eax
je 0x4a4d6f
lea ecx, [esp + 0x44]
push 0x548138
push ecx
call fcn.005322f9
add esp, 8
test eax, eax
je 0x4a4d6f
mov eax, dword [esp + 0x18]
mov edx, eax
not edx
shr edx, 4
and edx, 1
mov dword [esp + 0x10], edx
jne 0x4a4d6f
and eax, 0x400
mov dword [esp + 0x10], eax
jne 0x4a4d6f
mov edx, dword [esi + 0x25c]
lea eax, [esp + 0x268]
lea ecx, [esp + 0xa68]
inc edx
push eax
push ecx
mov dword [esi + 0x25c], edx
call fcn.00532ef4
lea edx, [esp + 0x4c]
lea eax, [esp + 0xa70]
push edx
push eax
call fcn.00532eca
mov ecx, dword [esp + 0xe88]
mov edx, dword [esp + 0xe80]
add esp, 0x10
lea eax, [esp + 0xa68]
push ecx
push ebx
push edx
push eax
mov ecx, esi
call fcn.004a4bb0
add edi, eax
adc ebp, edx
test ebx, ebx
je 0x4a4d6f
inc dword [ebx]
jmp 0x4a4d6f
mov eax, dword [esp + 0xe70]
test eax, eax
je 0x4a4d6f
mov ecx, dword [eax]
inc ecx
mov dword [eax], ecx
mov eax, dword [esi + 0x25c]
inc eax
mov dword [esi + 0x25c], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
xor ecx, ecx
xor ebx, ebx
or ecx, eax
or edx, ebx
mov ebx, dword [esp + 0x14]
add edi, ecx
lea ecx, [esp + 0x18]
adc ebp, edx
xor eax, eax
push ecx
push ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4a4db9
mov edx, dword [esp + 0xe78]
cmp dword [edx], 0
jne 0x4a4c7b
test ebx, ebx
je 0x4a4dc4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
mov edx, ebp
pop esi
pop ebp
pop ebx
add esp, 0xe58
ret 0x10
Function at 0x4adfd0
Capabilities:
Create thread
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540450
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
lea edi, [esi + 0x14]
push edi
push 0x54deb0
push 0x17
push 0
push 0x54dea0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 4], 0
test eax, eax
jl 0x4ae177
push 1
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
mov eax, dword [edi]
mov ecx, dword [eax]
push 0x40
push eax
call dword [ecx + 0x14]
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x4ae04b
mov edi, dword [edi]
mov edx, dword [edi]
push 0
push edi
call dword [edx + 0x14]
push 1
call ebx
mov eax, dword [esi + 8]
lea edi, [esi + 4]
mov ecx, dword [eax]
push edi
push 0x543614
push eax
call dword [ecx]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0
mov edi, dword [edi]
test edi, edi
je 0x4ae177
mov edx, dword [edi]
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
call dword [edx + 0x1c]
xor edi, edi
cmp dword [ebp - 0x1c], edi
je 0x4ae177
push 1
call ebx
mov dword [esi], edi
mov eax, dword [esi + 8]
mov ecx, dword [eax]
push esi
push 0x5433a4
push 1
push eax
call dword [ecx + 0x3c]
test eax, eax
jl 0x4ae177
cmp dword [esi], edi
je 0x4ae177
push 0x2c
call fcn.00532695
add esp, 4
mov dword [ebp - 0x30], eax
cmp eax, edi
je 0x4ae0cd
push edi
mov ecx, eax
call fcn.00443c80
jmp 0x4ae0cf
xor eax, eax
mov dword [esi + 0xc], eax
mov edx, dword [esi]
push edx
mov ecx, eax
call fcn.004444d0
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc]
add eax, 4
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
push eax
call dword [edx + 4]
mov dword [ebp - 0x18], edi
mov eax, dword [esi + 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.004f05f0
add esp, 8
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, edi
je 0x4ae170
cmp eax, edi
jl 0x4ae166
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edi
lea edx, [ebp - 0x28]
push edx
push edi
push esi
push 0x4ae1a0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x2c], eax
cmp eax, edi
je 0x4ae163
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x4ae14b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x18]
cmp ecx, edi
je 0x4ae170
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b5a80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x1c
mov cl, 0x74
mov eax, dword [0x547570]
mov byte [esp + 5], cl
mov byte [esp + 6], cl
mov cl, 0x77
push ebx
mov byte [esp + 0xf], cl
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], cl
mov cl, 0x2e
mov byte [esp + 0x12], cl
mov byte [esp + 0x19], cl
lea ecx, [esp + 8]
push ebp
mov dl, 0x2f
push esi
test ecx, ecx
push edi
mov dword [esp + 0x10], eax
mov byte [esp + 0x14], 0x68
mov byte [esp + 0x17], 0x70
mov byte [esp + 0x18], 0x3a
mov byte [esp + 0x19], dl
mov byte [esp + 0x1a], dl
mov byte [esp + 0x1f], 0x73
mov byte [esp + 0x20], 0x75
mov byte [esp + 0x21], 0x72
mov byte [esp + 0x22], 0x66
mov byte [esp + 0x23], 0x6f
mov byte [esp + 0x24], 0x6b
mov byte [esp + 0x26], 0x64
mov byte [esp + 0x27], 0x65
mov byte [esp + 0x28], dl
mov byte [esp + 0x29], 0
je 0x4b5b17
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, dword [esp + 0x10]
jmp 0x4b5b19
xor esi, esi
mov ecx, dword [eax - 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, 1
cmp ecx, edi
jg 0x4b5b30
cmp esi, dword [eax - 4]
jle 0x4b5b4b
lea ecx, [esp + 0x10]
call fcn.004124c0
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4b5b97
mov eax, dword [esp + 0x10]
lea ecx, [esi + 1]
mov esi, eax
test ecx, ecx
jne 0x4b5b58
test eax, eax
jne 0x4b5b76
push ecx
push eax
lea eax, [esp + 0x1c]
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x4b5b76
mov word [esi + eax*2 - 2], 0
lea ecx, [esp + 0x10]
call fcn.004055c0
mov ecx, dword [esp + 0x10]
push ecx
call ebx
mov edx, dword [esp + 0x10]
mov dword [edx - 8], eax
mov ecx, dword [esp + 0x10]
mov word [ecx + eax*2], 0
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x30]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x4b5bb5
push ecx
mov dword [ebp], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4b5c12
mov edx, dword [0x547570]
mov esi, eax
test eax, eax
mov dword [ebp], edx
jne 0x4b5bc8
xor ebx, ebx
jmp 0x4b5bcd
push eax
call ebx
mov ebx, eax
mov eax, dword [ebp]
cmp dword [eax - 0xc], edi
jg 0x4b5bda
cmp ebx, dword [eax - 4]
jle 0x4b5bed
mov ecx, ebp
call fcn.004124c0
push ebx
mov ecx, ebp
call fcn.00405530
test eax, eax
je 0x4b5c12
mov edi, dword [ebp]
lea eax, [ebx + ebx]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov dword [ecx - 8], ebx
mov edx, dword [ebp]
mov word [eax + edx], 0
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4b5c41
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b5c41
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4b7960
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x4b79ef
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call esi
test eax, eax
je 0x4b79ef
push ebx
push ebp
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov ebx, dword [sym.imp.USER32.dll_SetCursor]
push eax
call ebx
push 0
mov ebp, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4b79ea
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
call esi
lea eax, [eax + eax + 4]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4b79e4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push eax
mov word [eax], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push ebp
call ebx
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x4b7a00
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ecx
push esi
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4b7b80
push edi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
mov dword [esp + 8], eax
je 0x4b7b74
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x4b7b74
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [ebx]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
jg 0x4b7a59
cmp esi, dword [eax - 4]
jle 0x4b7ac2
mov edx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, edx
je 0x4b7a87
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b7a7f
mov eax, dword [ebx]
sub eax, 0xc
push eax
call fcn.00532222
add esp, 4
mov ecx, dword [0x547570]
mov dword [ebx], ecx
test esi, esi
jne 0x4b7a95
mov edx, dword [0x547570]
mov dword [ebx], edx
jmp 0x4b7ac2
lea eax, [esi + esi + 0xe]
push eax
call fcn.00532695
add esp, 4
test eax, eax
je 0x4b7b63
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
mov dword [ebx], eax
lea eax, [esi + 1]
mov esi, dword [ebx]
test eax, eax
jne 0x4b7acf
test esi, esi
jne 0x4b7ae9
push eax
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x4b7ae9
mov word [esi + eax*2 - 2], 0
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp ecx, 1
jle 0x4b7b4d
mov ecx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, ecx
je 0x4b7b24
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b7b1c
mov ecx, dword [ebx]
sub ecx, 0xc
push ecx
call fcn.00532222
add esp, 4
mov edx, dword [0x547570]
mov dword [ebx], edx
mov eax, dword [esi + 4]
mov ecx, ebx
push eax
call fcn.00405530
test eax, eax
je 0x4b7b4d
mov ecx, dword [esi + 4]
mov edi, dword [ebx]
add esi, 0xc
lea ecx, [ecx + ecx + 2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebx]
mov dword [ecx - 8], eax
mov edx, dword [ebx]
mov word [edx + eax*2], 0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, 1
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop edi
pop esi
pop ecx
ret
mov eax, esi
pop esi
pop ecx
ret
Function at 0x4b98f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004b8060
mov ecx, dword [0x547570]
mov edx, str._help
add esp, 8
mov dword [esp + 0x10], ecx
test edx, edx
jne 0x4b991d
xor esi, esi
jmp 0x4b992a
push str._help
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov ebp, dword [esp + 0x20]
mov ebx, dword [ebp - 8]
lea eax, [esi + ebx]
cmp eax, esi
jl 0x4b9984
cmp eax, ebx
jl 0x4b9984
test eax, eax
je 0x4b9984
push eax
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4b9984
mov edi, dword [esp + 0x10]
lea eax, [esi + esi]
mov ecx, eax
mov esi, str._help
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x10]
lea ecx, [ebx + ebx]
mov esi, ebp
lea edi, [eax + edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.00405440
lea ecx, [esp + 0x10]
call fcn.00405700
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push 3
push 0
push edx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x14]
mov edx, dword [0x547574]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4b99e7
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4b99e7
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4b9a12
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4b9a12
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov ecx, dword [0x547574]
lea eax, [ebp - 0xc]
cmp eax, ecx
je 0x4b9a32
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x4b9a32
push esi
call fcn.00532222
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4ba530
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ba5a8
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x4ba580
call edi
cmp eax, 3
je 0x4ba580
mov ecx, dword [0x547574]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x4ba57a
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4ba57a
push esi
call fcn.00532222
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, dword [0x547574]
lea ecx, [esi - 0xc]
cmp ecx, eax
je 0x4ba5a3
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4ba5a3
push esi
call fcn.00532222
add esp, 4
pop edi
xor eax, eax
pop esi
ret
test al, 0x10
je 0x4ba5d7
mov eax, dword [0x547574]
lea edx, [esi - 0xc]
cmp edx, eax
je 0x4ba5cf
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4ba5cf
push esi
call fcn.00532222
add esp, 4
pop edi
mov eax, 2
pop esi
ret
mov ecx, dword [0x547574]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x4ba5fb
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4ba5fb
push esi
call fcn.00532222
add esp, 4
pop edi
mov eax, 1
pop esi
ret
Function at 0x4c33f0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 8
mov eax, dword [0x547570]
push ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov ecx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
push ebp
push esi
cmp ecx, 1
push edi
mov esi, 0x400
jg 0x4c3419
cmp dword [eax - 4], esi
jge 0x4c347d
mov ebp, dword [eax - 8]
cmp ebp, esi
jle 0x4c3426
test ebp, ebp
mov esi, ebp
je 0x4c3451
lea eax, [esi + esi + 0xe]
push eax
call fcn.00532695
add esp, 4
test eax, eax
je 0x4c3544
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
lea ecx, [ebp + ebp + 2]
lea esi, [ebx + 0xc]
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [esp + 0x10], eax
push ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [eax - 8], ebp
call fcn.00405590
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0x400
push eax
mov edx, dword [ecx + 0x4c]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esp + 0x10]
lea esi, [eax - 0xc]
mov eax, dword [eax - 0xc]
cmp eax, 1
jle 0x4c34d6
lea ecx, [esp + 0x10]
call fcn.004124c0
mov ecx, dword [esi + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4c34d6
mov edx, dword [esi + 4]
mov edi, dword [esp + 0x10]
add esi, 0xc
lea ecx, [edx + edx + 2]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x10]
push 1
mov dword [edx - 8], eax
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x18]
mov word [ecx + eax*2], 0
mov ecx, esp
push edx
call fcn.00405440
call fcn.00520b60
mov eax, dword [esp + 0x18]
mov edx, dword [0x547574]
add esp, 8
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4c3538
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4c3538
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x10
xor eax, eax
jmp 0x4c347d