joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4279cc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4279e3
add esp, 0xfffffff0
call fcn.00402d98
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0040f6d0
mov dl, 1
mov eax, dword [0x40a238]
call fcn.00402ba4
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, dword [0x40a238]
call fcn.00402ba4
mov dword [ebx + 0x88], eax
xor eax, eax
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x40], 0x80000018
mov dword [ebx + 0x58], 0x1f4
mov dword [ebx + 0x5c], 0x32
mov dword [ebx + 0x60], 0x9c4
mov byte [ebx + 0x68], 0
mov byte [ebx + 0x7d], 1
mov dl, 1
mov eax, dword [0x410c44]
call fcn.00417a78
mov esi, eax
mov dword [ebx + 0x78], esi
push 0x427b3c
mov eax, dword [0x440948]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00417e10
mov eax, dword [ebx + 0x78]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x429160
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x440948]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
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.00408800
test eax, eax
je 0x427ac4
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00406ce8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00408828
test eax, eax
je 0x427ad8
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x6c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040385c
mov eax, dword [0x4408b8]
cmp byte [eax], 0
jne 0x427b09
mov eax, ebx
call fcn.00427c20
mov byte [ebx + 0x3d], 1
mov byte [ebx + 0x3e], 1
mov byte [ebx + 0x3f], 1
mov byte [ebx + 0x7e], 1
xor eax, eax
mov dword [ebx + 0x80], eax
cmp byte [ebp - 1], 0
je 0x427b31
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x427e74
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4416b0]
cmp dword [eax + 0x24], 0
je 0x427f04
cmp dword [ebx + 0x74], 0
jne 0x427f01
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x427e08
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x70]
cmp dword [eax + 8], 0
je 0x427f01
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 0x427ed0
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x70]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x427f01
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x70]
call fcn.0040b2a8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x427edc
inc dword [ebx + 0x74]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x4287ec
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x84], 0
je 0x428821
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403714
jmp 0x42882b
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.004036c8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4293d0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x64]
test esi, esi
je 0x429408
mov eax, esi
call fcn.0041e5d4
test al, al
je 0x429408
mov eax, dword [ebx + 0x64]
call fcn.0041e43c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x429408
push 0
mov eax, dword [ebx + 0x64]
call fcn.0041e43c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x42e544
Capabilities:
Open clipboard

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 4], 0
jne 0x42e57d
mov eax, dword [0x4409e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebx + 8], eax
test eax, eax
jne 0x42e570
push ebx
push 0x42e584
call fcn.004232b4
mov dword [ebx + 8], eax
mov byte [ebx + 0xc], 1
mov eax, dword [ebx + 8]
push eax
call sub.user32.dll_OpenClipboard
mov byte [ebx + 0xd], 0
inc dword [ebx + 4]
pop ebx
ret

Function at 0x42e5a4
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042e544
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42e616
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x42e5ea
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.004037e4
jmp 0x42e5f1
mov eax, ebx
call fcn.00403630
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e61d
cmp dword [ebp - 8], 0
je 0x42e60d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
call fcn.0042e518
ret
Function at 0x42e624
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42e702
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0042e544
xor edx, edx
push ebp
push 0x42e6e5
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x42e6ae
mov edx, ebx
mov eax, dword [0x4108b4]
call fcn.0041494c
test al, al
je 0x42e69e
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.00414820
call fcn.004031ac
jmp 0x42e6ec
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x42e669
lea edx, [ebp - 8]
mov eax, dword [0x44091c]
call fcn.0040462c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x405d88]
call fcn.00407e38
call fcn.0040310c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e6ec
mov eax, dword [ebp - 4]
call fcn.0042e518
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e709
lea eax, [ebp - 8]
call fcn.00403630
ret

Function at 0x42e710
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042e544
xor eax, eax
push ebp
push 0x42e768
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e76f
mov eax, dword [ebp - 4]
call fcn.0042e518
ret

Function at 0x42e778
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042e544
xor edx, edx
push ebp
push 0x42e7cd
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e7d4
mov eax, dword [ebp - 4]
call fcn.0042e518
ret
Function at 0x42e844
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042e544
xor eax, eax
push ebp
push 0x42e8b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0042e4fc
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.00414920
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x42e8a3
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e8c0
mov eax, dword [ebp - 4]
call fcn.0042e518
ret

Function at 0x42e8c8
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042e544
xor eax, eax
push ebp
push 0x42e93d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0042e4fc
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x5c]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x42e927
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e944
mov eax, dword [ebp - 4]
call fcn.0042e518
ret
Function at 0x42fd14
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x204], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42feab
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.0042f7e4
mov eax, dword [ebp - 0x204]
lea edx, [esi + 1]
call fcn.00408660
cmp al, 2
jne 0x42fd5a
dec esi
mov eax, ebx
call fcn.0042faf8
test al, al
je 0x42fe4b
test esi, esi
jge 0x42fd6f
xor esi, esi
lea edi, [esi + 1]
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.0042f7e4
mov eax, dword [ebp - 0x204]
call fcn.004038ac
cmp edi, eax
jge 0x42fdb6
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.0042f7e4
mov eax, dword [ebp - 0x204]
mov al, byte [eax + edi - 1]
mov edx, dword [0x440a88]
and eax, 0xff
bt dword [edx], eax
jae 0x42fdb6
inc edi
mov eax, dword [ebx + 0x138]
cmp esi, eax
jl 0x42fdc4
mov esi, eax
mov edi, esi
mov ecx, edi
mov edx, edi
mov eax, ebx
call fcn.0042fcf0
cmp edi, esi
je 0x42fe43
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x200]
mov byte [eax], 0
inc eax
dec edx
jne 0x42fdea
mov byte [ebp - 0x1f0], 0x81
mov byte [ebp - 0x1db], 0x81
lea eax, [ebp - 0x200]
push eax
call sub.user32.dll_SetKeyboardState
push 1
push 0x25
push pe_nt_image_headers32
mov eax, ebx
call fcn.0041e43c
push eax
call sub.user32.dll_SendMessageA
push 1
push 0x25
push 0x101
mov eax, ebx
call fcn.0041e43c
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_SetKeyboardState
mov dword [ebx + 0x140], esi
jmp 0x42fe92
test esi, esi
jge 0x42fe51
xor esi, esi
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.0042f7e4
mov eax, dword [ebp - 0x204]
call fcn.004038ac
cmp esi, eax
jl 0x42fe87
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.0042f7e4
mov eax, dword [ebp - 0x204]
call fcn.004038ac
mov esi, eax
mov ecx, esi
mov edx, esi
mov eax, ebx
call fcn.0042fcf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42feb2
lea eax, [ebp - 0x204]
call fcn.00403630
ret
Function at 0x433c30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov ebx, dword [eax + 0x118]
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x433db6
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x150]
mov eax, dword [ebx + 0x10]
call fcn.00411f98
cmp byte [ebp + 8], 0
je 0x433c89
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebx + 0x10]
call fcn.00411e68
jmp 0x433c97
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 0x10]
call fcn.00411e68
mov eax, dword [ebx + 0x10]
call fcn.00411f90
dec eax
jle 0x433cdd
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x10]
call fcn.00411e60
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
push 0
lea eax, [ebp - 0x24]
push eax
mov edi, dword [ebx + 0x10]
mov eax, edi
call fcn.00411f90
push eax
push 0x12200
call sub.gdi32.dll_ExtCreatePen
mov edx, eax
mov eax, edi
call fcn.00411f28
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax - 8]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x28]
call dword [ebx + 0x24]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + esi*4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
shr ecx, 1
add edx, ecx
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, esi
xor eax, 1
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + eax*4]
mov dword [ebp - 0x14], edx
add eax, 2
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x18], eax
lea eax, [esi + 2]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 4]
add eax, dword [edx]
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [esi + ebx]
mov edx, dword [ebp - 0xc]
mov dword [edi + eax*4], edx
mov eax, esi
xor eax, 1
mov edx, eax
add edx, ebx
mov ecx, dword [ebp - 0x14]
mov dword [edi + edx*4], ecx
add ebx, 2
lea edx, [esi + ebx]
mov ecx, dword [ebp - 0xc]
mov dword [edi + edx*4], ecx
add eax, ebx
mov edx, dword [ebp - 0x18]
mov dword [edi + eax*4], edx
add ebx, 2
inc dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x28]
call dword [ecx + 0x24]
mov edx, dword [ebp - 4]
add eax, dword [edx]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jle 0x433d3f
shr ebx, 2
push ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 0xc]
push eax
push edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x118]
call fcn.00412764
push eax
call sub.gdi32.dll_PolyPolyline
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x517028
push 0x517024
push 0x517020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x517028]
push dword [0x517024]
push dword [0x517020]
mov dword [0x517014], esp
call fcn.0048e200
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
mov ecx, 2
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x4012a6
push edi
mov dword [ebp - 4], 3
jmp 0x4012c1
push 0x32
call sub.KERNEL32.dll_Sleep
push 0
call sub.USER32.DLL_OpenClipboard
mov dword [ebp - 8], eax
cmp eax, 0
jne 0x4012de
mov edi, dword [ebp - 4]
sub edi, 1
mov dword [ebp - 4], edi
cmp edi, 0
jg 0x4012ba
mov eax, dword [ebp - 8]
pop edi
leave
ret

Function at 0x4012e4
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, 3
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x4012ef
push edi
mov dword [ebp - 4], 0
call fcn.0040129c
cmp eax, 0
je 0x40136a
push dword [ebp + 8]
call fcn.00491d08
add esp, 4
mov edi, eax
add edi, 1
push edi
push 0x2000
call sub.KERNEL32.dll_GlobalAlloc
mov dword [ebp - 8], eax
cmp eax, 0
je 0x401365
push dword [ebp - 8]
call sub.KERNEL32.dll_GlobalLock
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.00491c91
add esp, 8
push dword [ebp - 8]
call sub.KERNEL32.dll_GlobalUnlock
call sub.USER32.DLL_EmptyClipboard
push dword [ebp - 8]
push 1
call sub.USER32.DLL_SetClipboardData
mov dword [ebp - 4], 1
call sub.USER32.DLL_CloseClipboard
mov eax, dword [ebp - 4]
pop edi
leave
ret
Function at 0x4019f2
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov ecx, 0x84
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x401a00
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov word [ebp + 0xc], di
call sub.KERNEL32.dll_GetCommandLineA
mov dword [ebp - 4], eax
mov edi, dword [ebp - 4]
cmp byte [edi], 0x22
jne 0x401a39
mov edi, dword [ebp - 4]
mov esi, edi
add esi, 1
mov dword [ebp - 4], esi
mov bl, byte [edi]
mov byte [ebp - 0x209], bl
jmp 0x401a40
mov byte [ebp - 0x209], 0x20
mov dword [ebp - 8], 0
dec word [ebp + 0xc]
jmp 0x401a6c
mov edi, dword [ebp - 8]
mov esi, edi
add esi, 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 4]
mov ebx, esi
add ebx, 1
mov dword [ebp - 4], ebx
mov bl, byte [esi]
mov byte [ebp + edi - 0x208], bl
mov edi, dword [ebp - 4]
movsx ebx, byte [edi]
cmp ebx, 0
je 0x401a8b
movsx edx, byte [ebp - 0x209]
cmp ebx, edx
je 0x401a8b
movzx edi, word [ebp + 0xc]
cmp dword [ebp - 8], edi
jl 0x401a4d
mov edi, dword [ebp - 8]
mov byte [ebp + edi - 0x208], 0
push 0x3a
lea edi, [ebp - 0x208]
push edi
call sub.CRTDLL.DLL_strchr
add esp, 8
cmp eax, 0
jne 0x401abe
cmp byte [ebp - 0x208], 0x5c
jne 0x401ad5
cmp byte [ebp - 0x207], 0x5c
jne 0x401ad5
lea edi, [ebp - 0x208]
push edi
push dword [ebp + 8]
call fcn.00491c91
add esp, 8
jmp 0x401bde
push dword [ebp + 8]
push 0x100
call sub.KERNEL32.dll_GetCurrentDirectoryA
cmp byte [ebp - 0x208], 0x5c
jne 0x401b1e
push 0x5c
push dword [ebp + 8]
call sub.CRTDLL.DLL_strchr
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401b07
mov edi, dword [ebp - 4]
mov byte [edi], 0
lea edi, [ebp - 0x208]
push edi
push dword [ebp + 8]
call sub.CRTDLL.DLL_strcat
add esp, 8
jmp 0x401bde
cmp byte [ebp - 0x208], 0x2e
jne 0x401ba1
cmp byte [ebp - 0x207], 0x2e
jne 0x401ba1
cmp byte [ebp - 0x206], 0x5c
jne 0x401ba1
lea edi, [ebp - 0x208]
mov dword [ebp - 4], edi
jmp 0x401b6d
push 0x5c
push dword [ebp + 8]
call sub.CRTDLL.DLL_strrchr
add esp, 8
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x401b69
mov edi, dword [ebp - 0x210]
mov byte [edi], 0
add dword [ebp - 4], 3
mov edi, dword [ebp - 4]
cmp byte [edi], 0x2e
jne 0x401b81
cmp byte [edi + 1], 0x2e
jne 0x401b81
cmp byte [edi + 2], 0x5c
je 0x401b44
push 0x517104
push dword [ebp + 8]
call sub.CRTDLL.DLL_strcat
add esp, 8
push dword [ebp - 4]
push dword [ebp + 8]
call sub.CRTDLL.DLL_strcat
add esp, 8
jmp 0x401bde
lea edi, [ebp - 0x208]
mov dword [ebp - 4], edi
cmp byte [ebp - 0x208], 0x2e
jne 0x401bc0
cmp byte [ebp - 0x207], 0x5c
jne 0x401bc0
add dword [ebp - 4], 2
push 0x517104
push dword [ebp + 8]
call sub.CRTDLL.DLL_strcat
add esp, 8
push dword [ebp - 4]
push dword [ebp + 8]
call sub.CRTDLL.DLL_strcat
add esp, 8
push 0x5c
push dword [ebp + 8]
call sub.CRTDLL.DLL_strrchr
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401bfb
mov edi, dword [ebp - 4]
mov byte [edi + 1], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4027d1
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
mov ecx, 2
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x4027db
push edi
push 0x5171bf
call sub.USER32.DLL_RegisterClipboardFormatA
mov dword [ebp - 4], eax
cmp eax, 0
je 0x402836
push 0
push dword [ebp + 8]
call dword [0x50be3c]
mov dword [ebp - 8], eax
cmp eax, 0
je 0x402836
push 0
call sub.USER32.DLL_OpenClipboard
cmp eax, 0
je 0x40282e
call sub.USER32.DLL_EmptyClipboard
push dword [ebp - 8]
push dword [ebp - 4]
call sub.USER32.DLL_SetClipboardData
call sub.USER32.DLL_CloseClipboard
jmp 0x402836
push dword [ebp - 8]
call sub.KERNEL32.dll_GlobalFree
pop edi
leave
ret
Function at 0x4032a5
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
mov ecx, 2
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x4032af
push edi
mov dword [ebp - 4], 1
jmp 0x4032de
mov edi, dword [ebp - 4]
cmp byte [edi + 0x4e63e4], 1
jne 0x4032db
mov edi, dword [ebp - 4]
mov byte [edi + 0x4e63e4], 2
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xc8
jle 0x4032c3
mov dword [0x4a1cbc], 0
push 0
push 0x4031c0
call sub.USER32.DLL_EnumWindows
mov dword [ebp - 8], 1
jmp 0x40332b
mov edi, dword [ebp - 8]
cmp byte [edi + 0x4e63e4], 2
jne 0x403328
mov edi, dword [ebp - 8]
mov byte [edi + 0x4e63e4], 0
mov dword [0x4a1cbc], 1
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xc8
jle 0x403306
mov eax, dword [0x4a1cbc]
pop edi
leave
ret
Function at 0x403645
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov ecx, 0x97
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x403653
push ebx
push esi
push edi
mov dword [ebp - 4], 0
push 0x4a2fa4
lea edi, [ebp - 0x258]
push edi
call fcn.00491c91
add esp, 8
push str.modulesuniTFTs.bmp
lea edi, [ebp - 0x258]
push edi
call sub.CRTDLL.DLL_strcat
add esp, 8
lea edi, [ebp - 0x152]
push edi
lea edi, [ebp - 0x258]
push edi
call sub.KERNEL32.dll_FindFirstFileA
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
je 0x4038af
cmp dword [0x4aec64], 0
jle 0x4036dd
mov edi, dword [0x4aec64]
sub edi, 1
shl edi, 7
lea edi, [edi + 0x4b42b4]
push edi
lea edi, [ebp - 0x258]
push edi
call fcn.00491c91
add esp, 8
push 0x500
push 0
push 0x4b42b4
call sub.CRTDLL.DLL_memset
add esp, 0xc
cmp dword [ebp - 4], 0xa
jge 0x403754
push 0x540c4b
lea edi, [ebp - 0x126]
push edi
call sub.CRTDLL.DLL_strstr
add esp, 8
mov dword [ebp - 0x158], eax
cmp eax, 0
je 0x403754
mov edi, dword [ebp - 0x158]
movsx ebx, byte [edi + 7]
test byte [ebx + str._________h______________________H], 4
je 0x403754
lea edi, [ebp - 0x126]
push edi
push str.modules_s
mov edi, dword [ebp - 4]
mov esi, edi
add esi, 1
mov dword [ebp - 4], esi
shl edi, 7
lea edi, [edi + 0x4b42b4]
push edi
call fcn.00491c0d
add esp, 0xc
lea edi, [ebp - 0x152]
push edi
push dword [ebp - 0x25c]
call sub.KERNEL32.dll_FindNextFileA
cmp eax, 0
jne 0x4036f1
push dword [ebp - 0x25c]
call sub.KERNEL32.dll_FindClose
cmp dword [ebp - 4], 1
jle 0x403796
push 0x403632
push pe_nt_image_headers32
push dword [ebp - 4]
push 0x4b42b4
call sub.CRTDLL.DLL_qsort
add esp, 0x10
mov dword [ebp - 4], 0
mov edi, dword [ebp - 4]
add edi, 1
push edi
push 0x540c3c
lea edi, [ebp - 0x14]
push edi
call fcn.00491c0d
add esp, 0xc
push 0x4a24a4
mov edi, dword [ebp - 4]
shl edi, 7
lea edi, [edi + 0x4b42b4]
push edi
lea edi, [ebp - 0x14]
push edi
push str.MODULE
call sub.KERNEL32.dll_WritePrivateProfileStringA
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jl 0x40379d
movzx edi, word [0x4bf2a8]
push edi
movzx edi, word [0x4bf298]
push edi
push str._dx_d
lea edi, [ebp - 0x14]
push edi
call fcn.00491c0d
add esp, 0x10
mov dword [ebp - 4], 0
lea edi, [ebp - 0x258]
push edi
mov edi, dword [ebp - 4]
shl edi, 7
lea edi, [edi + 0x4b42b4]
push edi
call sub.CRTDLL.DLL_strcmp
add esp, 8
cmp eax, 0
jne 0x40383d
mov edi, dword [ebp - 4]
add edi, 1
mov dword [0x4a1cac], edi
mov dword [0x4aec64], edi
jmp 0x403880
lea edi, [ebp - 0x14]
push edi
mov edi, dword [ebp - 4]
shl edi, 7
lea edi, [edi + 0x4b42b4]
push edi
call sub.CRTDLL.DLL_strstr
add esp, 8
cmp eax, 0
je 0x403877
cmp dword [0x4aec64], 0
jne 0x403877
mov edi, dword [ebp - 4]
add edi, 1
mov dword [0x4a1cac], edi
mov dword [0x4aec64], edi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jl 0x403807
push dword [0x4aec64]
push 0x540c2c
lea edi, [ebp - 0x14]
push edi
call fcn.00491c0d
add esp, 0xc
push 0x4a24a4
lea edi, [ebp - 0x14]
push edi
push 0x540c29
push str.MODULE
call sub.KERNEL32.dll_WritePrivateProfileStringA
pop edi
pop esi
pop ebx
leave
ret