joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4756b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [esp + 8], 0
je 0x4756c0
mov eax, esi
call fcn.00452570
jmp 0x4756cd
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 4]
test eax, eax
js 0x475728
je 0x475728
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebp
push 1
push 0x8000012f
mov edi, eax
call fcn.00401330
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call ebx
test eax, eax
je 0x475725
add edi, dword [esp + 0x10]
call ebp
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x475725
push 1
push 0x8000012f
call fcn.00401330
add esp, 8
push esi
call ebx
test eax, eax
jne 0x475704
pop edi
pop ebp
pop ebx
mov eax, esi
ret
Function at 0x475900
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e60
call fcn.00490e40
mov eax, dword [esp + 0x8e68]
push ebx
push ebp
mov ebp, dword [esp + 0x8e6c]
push esi
mov esi, ecx
mov cl, byte [edx]
xor ebx, ebx
cmp cl, 0x41
je 0x47592b
cmp cl, 0x61
jne 0x47597c
cmp byte [edx + 1], bl
jne 0x47597c
cmp byte [edi], bl
jne 0x47597c
cmp byte [eax], bl
jne 0x47597c
cmp byte [esi], bl
jne 0x47597c
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp esi, ebx
je 0x47595d
cmp byte [ebp + 0xc6], bl
jne 0x47595d
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x47595d
xor esi, esi
cmp byte [esp + 0x8e7c], bl
je 0x475970
cmp esi, ebx
je 0x475970
mov dword [ebp + 0xa0], esi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
cmp cl, bl
jne 0x47599d
cmp byte [edi], bl
jne 0x47599d
cmp byte [eax], bl
jne 0x47599d
cmp byte [esi], bl
jne 0x47599d
mov eax, ebp
call fcn.00475af0
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
push esi
push edi
push edx
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x828], 0x498839
mov byte [esp + 0xc45], bl
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc4c], ebx
mov dword [esp + 0xc50], ebx
mov dword [esp + 0xc54], ebx
mov dword [esp + 0xc58], ebx
mov dword [esp + 0xc5c], ebx
mov dword [esp + 0xc68], ebx
mov dword [esp + 0xc6c], ebx
call fcn.00476560
test eax, eax
je 0x475aae
test byte [esp + 0xc], 2
mov al, byte [esp + 0x8e78]
mov ecx, dword [esp + 0x8e80]
mov edx, dword [esp + 0x8e84]
mov byte [esp + 0xc35], al
mov dword [esp + 0xc44], ecx
mov dword [esp + 0xc48], edx
je 0x475aba
mov eax, dword [esp + 0x828]
cmp eax, 0xffff
je 0x475a86
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x475aae
cmp byte [ebp + 0xc6], bl
jne 0x475a7f
mov eax, dword [esp + 0x828]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x475a7f
mov ecx, dword [esp + 0x828]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
je 0x475aae
mov eax, dword [esp + 0x828]
cmp dword [esp + 0xc5c], eax
je 0x475a9f
lea esi, [esp + 0xc]
mov dword [esp + 0xc5c], eax
call fcn.004769a0
push ebx
lea edx, [esp + 0x10]
push edx
call fcn.00476a60
test eax, eax
jne 0x475aca
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
lea eax, [esp + 0xc]
push eax
push 0x475b60
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0xc3c]
cmp byte [esp + 0x8e7c], bl
je 0x475ae4
cmp eax, ebx
je 0x475ae4
mov dword [ebp + 0xa0], eax
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
Function at 0x475cd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x8018
call fcn.00490e40
push ebx
push ebp
mov ebp, dword [esp + 0x8028]
push esi
push edi
mov edi, dword [esp + 0x802c]
mov esi, ecx
test edi, edi
je 0x475cf9
mov ecx, edi
call fcn.00412b70
cmp dword [esp + 0x8038], 0
jne 0x475d0e
mov dword [esp + 0x8038], 0x1f4
cmp dword [esp + 0x803c], 1
jge 0x475d23
mov dword [esp + 0x803c], 0x32
cmp ebp, 1
jge 0x475d2d
mov ebp, 1
test esi, esi
je 0x475efa
mov ebx, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
lea eax, [esp + 0x20]
push eax
push 0x7d0
push 2
push 0
push 0
push 0x406
push esi
call ebx
test eax, eax
je 0x475efa
cmp ebp, dword [esp + 0x20]
jg 0x475efa
push 0x8000
xor eax, eax
mov ecx, esi
lea edi, [esp + 0x1c]
call fcn.00472d30
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
je 0x475ef3
dec ebp
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x24], eax
jmp 0x475da0
lea ecx, [esp + 0x14]
push ecx
push 0x7d0
push 2
push 0
push ebp
push 0x403
push esi
call ebx
test eax, eax
je 0x475e17
mov edx, 0x7fff
cmp word [esp + 0x14], dx
ja 0x475e6e
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push edi
push ebp
push 0x402
push esi
call ebx
test eax, eax
je 0x475e17
movzx ecx, word [esp + 0x14]
mov eax, dword [esp + 0x18]
push 0
inc ecx
push ecx
lea edx, [esp + 0x30]
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x475e69
mov edx, dword [esp + 0x8034]
lea eax, [esp + 0x28]
call fcn.00475250
test al, al
jne 0x475e94
cmp dword [esp + 0x802c], 0
jne 0x475e78
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x475ec7
mov edi, dword [esp + 0x8038]
test edi, edi
js 0x475e4e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x24]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x475eac
mov edx, dword [esp + 0x803c]
push 1
push edx
call fcn.00401330
mov edi, dword [esp + 0x24]
add esp, 8
jmp 0x475da0
mov byte [esp + 0x28], 0
cmp dword [esp + 0x802c], 0
je 0x475ec7
mov eax, dword [esp + 0x802c]
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x34]
push edx
push eax
call fcn.00474550
mov esi, eax
jmp 0x475ecc
mov eax, dword [0x4aaa1c]
push 1
push 0
push 0xffffffffffffffff
push 0x498884
push eax
call fcn.00474550
jmp 0x475e6e
mov ecx, dword [0x4aaa1c]
push 1
push 0
push 0xffffffffffffffff
push 0x499ee8
push ecx
call fcn.00474550
mov edi, dword [esp + 0x1c]
mov esi, 1
push 0x8000
push 0
push edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
mov edi, dword [esp + 0x802c]
mov eax, 0x499ee8
test edi, edi
jne 0x475f08
mov eax, 0x49a030
mov ecx, dword [0x4a6920]
cmp byte [ecx + 0xe4], 0
jne 0x475f35
mov edx, dword [0x4aaa1c]
push 1
push 0
push 0xffffffffffffffff
push eax
push edx
call fcn.00474550
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
mov ecx, dword [0x4ac5f0]
push 0x498839
push 0
push eax
call fcn.0042d0e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
Function at 0x4769a0
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov ecx, dword [esi + 0xc50]
test ecx, ecx
je 0x476a57
mov eax, dword [esi]
test eax, eax
je 0x476a57
push edi
test al, 1
jne 0x4769c9
mov eax, dword [esi + 0x80c]
cmp byte [eax], 0
je 0x4769e2
push 0x7fff
lea edi, [esi + 0xc58]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x4769e2
mov byte [edi], al
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x4769fd
mov edx, dword [esi + 0xc50]
lea ecx, [esi + 0xc54]
push ecx
push edx
call edi
test byte [esi], 0x20
je 0x476a38
mov ecx, dword [esi + 0xc50]
lea eax, [esp + 4]
push eax
push ecx
call edi
test eax, eax
je 0x476a38
movzx edx, byte [esi + 0xc28]
mov ecx, dword [esp + 4]
push edx
lea eax, [esi + 0x8d58]
call fcn.0044e220
add esp, 4
test eax, eax
jne 0x476a38
mov byte [esi + 0x8d58], al
test byte [esi], 8
pop edi
je 0x476a57
mov ecx, dword [esi + 0xc50]
push 0x101
lea eax, [esi + 0x8c57]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClassNameA]
pop ecx
ret

Function at 0x477180
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e5c
call fcn.00490e40
mov eax, dword [esp + 0x8e60]
mov eax, dword [eax + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x47722d
mov dword [esp + 0xc44], eax
lea eax, [esp + 4]
push eax
push 0x4778c0
mov dword [esp + 0xc], ebx
mov dword [esp + 0x818], 0x498839
mov byte [esp + 0xc35], bl
mov dword [esp + 0xc38], ebx
mov dword [esp + 0xc3c], ebx
mov dword [esp + 0xc40], ebx
mov dword [esp + 0xc44], ebx
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc58], ebx
mov dword [esp + 0xc5c], ebx
mov byte [esp + 0xc50], cl
mov dword [esp + 0xc54], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0xc34], ebx
je 0x47722d
mov ecx, dword [0x4a6920]
mov eax, dword [ecx + 0x54]
cmp eax, 0xffffffff
jle 0x47722d
push 1
push eax
call fcn.00401330
add esp, 8
mov eax, 1
pop ebx
add esp, 0x8e5c
ret 4
Function at 0x477240
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x47725c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4a6920]
push eax
push esi
mov ecx, edi
call fcn.00477700
cmp byte [edi], 0
mov dword [esp + 0x10], eax
je 0x477293
test eax, eax
jne 0x477297
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
call fcn.00477350
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x477316
test esi, esi
je 0x477316
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push 1
push 0x8000012f
mov ebx, eax
call fcn.00401330
mov edi, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call edi
test eax, eax
je 0x4772f5
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x4772f5
push 1
push 0x8000012f
call fcn.00401330
add esp, 8
push esi
call edi
test eax, eax
jne 0x4772d0
mov edx, dword [0x4a6920]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x47730e
push 1
push eax
call fcn.00401330
add esp, 8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x477330
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push edi
call fcn.00477350
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.004774d0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x4774d0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e68
call fcn.00490e40
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x477650
xor cl, cl
mov eax, edi
call fcn.00477670
test eax, eax
jne 0x477505
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e68
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
mov eax, dword [0x4a6920]
push eax
push ebp
mov ecx, edi
call fcn.00477700
test eax, eax
je 0x477528
xor eax, eax
mov dword [0x4ac220], eax
jmp 0x47752d
mov eax, dword [0x4ac220]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x824], 0x498839
mov dword [esp + 0xc44], ebx
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc4c], ebx
mov dword [esp + 0xc64], ebx
mov dword [esp + 0xc68], ebx
cmp byte [esp + 0x8e7c], bl
je 0x477573
mov byte [esp + 0xc41], bl
cmp eax, ebx
je 0x47757b
mov byte [esp + 0xc41], 1
mov ecx, dword [0x4ac21c]
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0xc54], eax
lea eax, [esp + 0x18]
push eax
push 0x4777d0
mov dword [esp + 0xc58], ecx
mov dword [esp + 0xc60], edx
call esi
mov eax, dword [esp + 0xc48]
cmp eax, ebx
je 0x477628
lea ecx, [esp + 0x10]
push ecx
push 0x476370
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x4775e5
mov edx, dword [esp + 0xc48]
call fcn.00476e90
mov dword [esp + 0xc48], esi
mov eax, dword [esp + 0xc48]
call fcn.004753f0
mov edx, dword [esp + 0xc48]
call fcn.00476e90
mov edx, dword [0x4a6920]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x477650
push 1
push eax
call fcn.00401330
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e68
ret 4
mov eax, dword [0x4ac220]
cmp eax, ebx
je 0x477650
cmp eax, 1
setg al
mov dword [0x4ac220], ebx
cmp al, bl
je 0x477650
mov edx, ebp
call fcn.00476e90
push ebx
mov ecx, edi
call fcn.004774d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8e68
ret 4
Function at 0x48b754
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a5d90]
jne 0x48b75e
repz ret
jmp fcn.00490087

Function at 0x48e0d4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a5d90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00488742
and dword [ebp - 0x14], 0
cmp dword [0x4a8a54], 0
mov dword [ebp - 0x18], eax
jne 0x48e187
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x48e22f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x48e22f
mov esi, dword [fcn.004842b0]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4a8a54], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4a8a58], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a8a5c], eax
call edi
push eax
call esi
mov dword [0x4a8a64], eax
test eax, eax
je 0x48e187
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4a8a60], eax
mov eax, dword [0x4a8a60]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.004842b4]
cmp eax, ecx
je 0x48e1e0
cmp dword [0x4a8a64], ecx
je 0x48e1e0
push eax
call esi
push dword [0x4a8a64]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x48e1e0
test ebx, ebx
je 0x48e1e0
call edi
test eax, eax
je 0x48e1d7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x48e1d7
test byte [ebp - 8], 1
jne 0x48e1e0
or dword [ebp + 0x10], 0x200000
jmp 0x48e213
mov eax, dword [0x4a8a58]
cmp eax, dword [ebp - 0x18]
je 0x48e213
push eax
call esi
test eax, eax
je 0x48e213
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x48e213
mov eax, dword [0x4a8a5c]
cmp eax, dword [ebp - 0x18]
je 0x48e213
push eax
call esi
test eax, eax
je 0x48e213
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a8a54]
call esi
test eax, eax
je 0x48e22f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x48e231
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048b754
leave
ret
Function at 0x403070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
mov edi, dword [esp + 0x14]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
jne 0x403098
pop edi
pop ebp
pop ebx
ret
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4030ae
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4030a5
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4030e2
nop dword [eax + eax]
cmp esi, ecx
jae 0x4030a5
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4030d0
cmp esi, ecx
jae 0x4030a5
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
ret
Function at 0x403100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push edi
mov edi, dword [esp + 0x10]
mov ebx, ecx
push edi
call fcn.0040f3e6
mov ebp, eax
test ebp, ebp
jne 0x40311b
pop edi
pop ebp
pop ebx
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4031f6
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40314b
xor esi, esi
jmp 0x403192
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403192
push dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x403182
nop dword [eax + eax]
cmp esi, ecx
jae 0x403186
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x403170
cmp esi, ecx
jb 0x40318a
xor esi, esi
jmp 0x403192
xor eax, eax
cmp word [esi], ax
cmove esi, eax
test esi, esi
je 0x4031f6
mov eax, dword [ebx]
mov ecx, 1
movzx edi, word [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x4031b4
push edi
mov ecx, ebx
call fcn.004035a0
movzx ecx, word [esi]
lea eax, [esi + 2]
push ecx
push eax
push edi
push dword [ebx]
call fcn.00559793
add esp, 0x10
cmp eax, 0x50
ja case.0x4031d3.1
movzx eax, byte [eax + 0x403224]
jmp dword [eax*4 + 0x403214]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x403204
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
pop esi
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop ebp
pop ebx
ret 4
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
ret 4
call fcn.0040ed4f
push 0x80070057
call fcn.004037b0
call fcn.0040ed35
nop
fidiv dword [ecx]
inc eax
add bh, bh
xor dword [eax], eax
push cs
xor al, byte [eax]
push cs
xor al, byte [eax]
add byte [ebx], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add dword [ebx], eax
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add ah, cl
int3
Function at 0x407080
Capabilities:
Capture screenshot
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [esp + 0x28]
mov ebx, ecx
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4070a7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x28]
mov edi, eax
mov dword [esp + 0x1c], edi
mov ebx, dword [edx + 0xc]
mov ebp, dword [edx + 4]
sub ebx, ebp
mov eax, dword [edx]
mov ecx, dword [edx + 8]
sub ecx, eax
mov dword [esp + 0x28], eax
push ebx
push ecx
push esi
mov dword [esp + 0x24], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
call edi
push 0xcc0020
push ebp
push dword [esp + 0x30]
mov ebp, dword [esp + 0x20]
mov esi, eax
push ebp
push ebx
push dword [esp + 0x2c]
mov ebx, dword [esp + 0x34]
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
push ebx
call edi
mov esi, dword [esp + 0x20]
mov edi, eax
push ebp
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [esp + 0x2c], 0
je 0x40715a
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40715a
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push str.Black_Pic_Tmp.bmp
lea eax, [esi + 0x24c]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00409950
add esp, 0xc
push dword [eax]
push edi
call fcn.004071b0
mov edx, dword [esp + 0x28]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407197
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x407ae0
Capabilities:
Accept command line arguments
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5742f5
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x5d9000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
call fcn.0040f20f
mov ecx, eax
test ecx, ecx
je 0x407c65
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test esi, esi
je 0x407b64
test esi, 0xffff0000
jne 0x407b4e
movzx eax, si
lea ecx, [ebp - 0x10]
push eax
call fcn.00403100
jmp 0x407b70
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407b53
sub ecx, edx
sar ecx, 1
jmp 0x407b66
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.00403350
mov dword [ebp - 4], 1
or ebx, 0xffffffff
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jl 0x407c35
push str._SavePath:
push esi
call fcn.00555d3e
add esp, 8
test eax, eax
je 0x407c35
sub eax, esi
sar eax, 1
cmp eax, ebx
je 0x407c35
lea ecx, [eax + 0xa]
mov eax, dword [esi - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00409f80
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407bd4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 8], 0
je 0x407c1a
lea ecx, [ebp - 0x4c]
call fcn.00401c80
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.00401dc0
push ecx
push edi
lea ecx, [ebp - 0x4c]
call fcn.00404de0
test eax, eax
jns 0x407c12
mov ecx, dword [ebp - 0x18]
push 0
push 0
push str.Save_Bmp_File_Error_
call fcn.004126a6
lea ecx, [ebp - 0x4c]
call fcn.00401d20
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x407c35
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x407c51
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004037b0
int3