joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461c40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47ec98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CClientDC::CClientDC
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004613f0
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x50]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call sub.MFC42.DLL_CDC::LPtoDP
mov eax, dword [esi + 0x20]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x461d04
cmp dword [esp + 0x40], 1
jne 0x461d02
cmp ecx, eax
jge 0x461d04
mov eax, ecx
cmp eax, 0xc8
jge 0x461d10
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd4], eax
call fcn.00461ac0
mov ecx, dword [esi + 0x20]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00479fcc
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x462540
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47ed43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0047a2d2
lea edi, [esi + 0x68]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x4b93d8
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x40], eax
mov eax, ebp
mov dword [esi], 0x4b9318
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], 0
mov ecx, dword [eax]
lea edx, [esi + 0x4c]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call sub.MFC42.DLL_CEdit::Create
test eax, eax
je 0x46265c
mov ecx, dword [esp + 0x3c]
call sub.MFC42.DLL_CGdiObject::Detach
mov ecx, dword [esi + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x5c], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x462620
push edi
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, esi
call fcn.00462830
cmp dword [esp + 0x38], 1
jne 0x462655
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x20]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x20]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetFocus
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4648e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x464913
push esi
call fcn.00467a40
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x46490c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x464999
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x464982
mov eax, dword [esi + 8]
test eax, eax
je 0x464937
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46497e
cmp eax, 2
je 0x464982
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46492a
cmp eax, 3
je 0x46495d
cmp eax, 1
jne 0x46492a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x46492a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46492a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004649c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4649a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004649c0
add esp, 4
pop esi
ret

Function at 0x466b80
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.00467f60
push 0x50
push edi
mov dword [esp + 0x18], eax
call fcn.00467f30
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x466bb6
push edi
call fcn.0045fea0
mov eax, dword [edi]
push edi
call dword [eax]
add esp, 8
mov dword [esi], fcn.00466cb0
mov dword [esi + 4], fcn.00466df0
mov dword [esi + 8], fcn.00466e80
mov dword [esi + 0xc], fcn.00466f20
mov dword [esi + 0x10], 0x466fd0
mov dword [esi + 0x14], 0x467030
mov dword [esi + 0x18], 0x467090
mov dword [esi + 0x1c], 0x467220
mov dword [esi + 0x20], 0x4673f0
mov dword [esi + 0x24], fcn.004675d0
mov dword [esi + 0x28], 0x4676c0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], ecx
lea eax, [esi + 0x3c]
mov ecx, 2
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x466c11
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], 0x50
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x466ca3
lea edx, [esp + 0x14]
lea ecx, [esp + 0xc]
push edx
push ecx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x466ca3
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x466c6c
cmp al, 0x4d
jne 0x466c90
mov eax, dword [esp + 0xc]
pop edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
mov dword [esi + 0x2c], edx
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
mov dword [esi + 0x2c], edx
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x46ff20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov al, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
test edx, edx
mov byte [esp + 0x20], al
mov byte [esp + 8], cl
jle 0x47001d
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
and edi, 0xff
and ebp, 0xff
lea eax, [edi + 1]
and eax, 0x800000ff
jns 0x46ff72
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x28], al
xor ecx, ecx
mov edi, dword [esp + 0x28]
and edi, 0xff
mov cl, byte [edi + esi]
lea eax, [edi + esi]
add ecx, ebp
mov dword [esp + 0x18], eax
and ecx, 0x800000ff
jns 0x46ff9e
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ebp, dword [esp + 0x10]
and ebp, 0xff
lea ecx, [esi + ebp]
push ecx
push eax
mov dword [esp + 0x1c], ecx
call fcn.0046ff00
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
add esp, 8
mov dl, byte [eax]
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x46ffdf
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0x20]
and edx, 0xff
mov cl, byte [edx + esi]
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x46ff61
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0x10]
pop edi
mov byte [esi + 0x100], dl
mov byte [esi + 0x101], al
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
mov byte [esi + 0x100], al
mov byte [esi + 0x101], cl
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x472b80
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x4cd55c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x472b93
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x472bd4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x4cd604]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x472c06
mov bl, byte [esp + ecx + 0x4c]
jmp 0x472c0a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x472bfb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x472c28
mov bl, byte [esp + ecx + 0x4c]
jmp 0x472c2c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x472c1d
xor ecx, ecx
mov eax, 0x4cd56c
xor ebx, ebx
mov bl, byte [ecx + 0x4cd614]
cmp byte [esp + ebx + 0x14], 0
je 0x472c57
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x4cd62c]
cmp byte [esp + ebx + 0x14], 0
je 0x472c6e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x472c3e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x472bc7
lea edx, [esp + 0x84]
push edx
call fcn.00472cb0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x479420
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x15c
mov eax, dword [esp + 0x160]
push ebx
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x38]
push str._Msg0001_4__Msg0001__s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x4cf28c]
repne scasb al, byte es:[edi]
mov eax, dword [str.0001]
mov dword [esp + 0x2c], edx
not ecx
dec ecx
mov dword [esp + 0x30], eax
mov ebx, ecx
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
lea eax, [ebx + 0x14]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
mov ecx, 5
lea esi, [esp + 0x30]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea esi, [esp + 0x44]
mov edx, ecx
lea edi, [ebp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 0x10
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x174]
xor esi, esi
mov dword [esp + 0x14], esi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x68]
push eax
push 0
push ecx
lea eax, [edi + 1]
push 0
push eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0x186a0
call sub.WS2_32.dll_select
test eax, eax
jl 0x479532
je 0x479524
lea edx, [esp + 0x68]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x479524
mov ebx, dword [esp + 0x10]
add ebp, esi
sub ebx, esi
push 0
push ebx
push ebp
push edi
mov dword [esp + 0x20], ebx
call sub.WS2_32.dll_send
mov esi, eax
test esi, esi
jl 0x479532
cmp esi, ebx
jge 0x479532
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0xa
mov dword [esp + 0x14], eax
jl 0x4794b9
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x15c
ret
Function at 0x4047f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe24
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x400
lea eax, [ebp - 0x610]
push 0
push eax
mov dword [ebp - 0xe20], edx
mov ebx, ecx
call fcn.00408730
add esp, 0xc
lea eax, [ebp - 0x610]
push ebx
push 0x1ff
push eax
call fcn.00404c8f
mov ecx, ebx
add esp, 0xc
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404840
sub ecx, edx
sar ecx, 1
lea edi, [ebp - 0x60e]
mov esi, 0x41a920
lea edi, [edi + ecx*2]
mov ecx, pe_nt_image_headers32
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x404867
sub ebx, ecx
sar ebx, 1
push 0x10000
lea ebx, [ebx*2 + 0x202]
call fcn.00405b57
add esp, 4
mov esi, eax
push 0x10000
push 0
push esi
call fcn.00408730
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0xe10], ax
lea eax, [ebp - 0xe0e]
push eax
mov dword [ebp - 0xe1c], 0x10000
call fcn.00408730
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
xor edi, edi
push eax
mov dword [ebp - 0xe18], 0
mov dword [ebp - 0xe14], edi
call fcn.00408730
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xe20]
lea eax, [ebp - 0xe10]
push eax
lea eax, [ebp - 0xe18]
push eax
call fcn.00404130
add esp, 8
test eax, eax
je 0x4049ee
lea eax, [ebp - 0xe10]
push eax
push ebx
lea eax, [ebp - 0x610]
mov ebx, 0xbba
push eax
mov edx, ebx
lea ecx, [ebp - 0xe18]
call fcn.00404250
add esp, 0xc
test eax, eax
je 0x4049ee
lea eax, [ebp - 0xe10]
push eax
lea eax, [ebp - 0xe1c]
push eax
push esi
lea edx, [ebp - 0xe14]
lea ecx, [ebp - 0xe18]
call fcn.00404450
add esp, 0xc
test eax, eax
je 0x4049ee
cmp word [ebp - 0xe14], bx
jne 0x4049ee
cmp dword [ebp - 0xe1c], edi
je 0x4049ee
cmp byte [esi], 0
jne 0x4049ee
push 0x41a1a0
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404ceb
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x4169c0
push eax
lea eax, [ebp - 0xe14]
push eax
mov dword [ebp - 0xe14], edi
call fcn.00404ee2
add esp, 0xc
cmp dword [ebp - 0xe14], edi
je 0x4049e9
lea edx, [ebp - 0xe14]
lea ecx, [ebp - 0xe18]
call fcn.00404a20
mov edi, 1
test esi, esi
je 0x4049fb
push esi
call fcn.00405be9
add esp, 4
mov eax, dword [ebp - 0xe18]
test eax, eax
je 0x404a0c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
Function at 0x403080
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x407738
push eax
mov dword fs:[0], esp
sub esp, 0x24
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
jne 0x4031e3
push 8
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x4030c3
mov dword [eax + 4], 0
mov dword [eax], 0x408270
jmp 0x4030c5
xor eax, eax
push ebx
push esi
mov dword [edi + 8], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_CWnd::FromHandle
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
lea ecx, [esp + 0x20]
mov esi, eax
call sub.MFC42.DLL_CDC::CDC
test esi, esi
mov dword [esp + 0x38], 0
jne 0x403105
xor eax, eax
jmp 0x403108
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CDC::Attach
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.00403270
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov edx, dword [esi + 4]
sub eax, ecx
mov ecx, dword [esp + 0x18]
sub ecx, ebx
mov ebx, dword [edi + 8]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebx
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [edi + 8]
test eax, eax
je 0x40315a
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x28]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebx, eax
mov eax, dword [esp + 0x1c]
sub eax, ecx
mov ecx, dword [esp + 0x18]
sub ecx, edx
test esi, esi
jne 0x403183
xor edx, edx
jmp 0x403186
mov edx, dword [esi + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [esp + 0x3c]
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
test ebx, ebx
je 0x4031a8
mov ebx, dword [ebx + 4]
mov edx, dword [esp + 0x24]
push ebx
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CDC::DeleteDC
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [edi + 8]
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call fcn.00407184
pop esi
mov eax, edi
pop ebx
mov ecx, dword [esp + 0x28]
pop edi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x4061b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x407b38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
fld dword [esp + 0x20]
fsub dword [esp + 0x30]
fld dword [esp + 0x1c]
fsub dword [esp + 0x2c]
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp dword [esp]
fstp st(0)
fstp st(0)
call fcn.00402420
lea ecx, [esp + 0x24]
mov dword [esp + 0xc], 0xffffffff
call fcn.00402420
mov ecx, dword [esp + 4]
fld dword [esp]
mov dword fs:[0], ecx
add esp, 0x10
ret 0x20

Function at 0x4068ed
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp dword [0x43fcf4], esi
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
jne 0x406945
cmp dword [0x43fcf8], esi
jne 0x406945
cmp ebx, 0x10
je 0x406a56
cmp ebx, 0x8000
je 0x406a33
cmp dword [0x43fcfc], esi
jne 0x406945
cmp ebx, 0x1c
ja 0x406983
je 0x40697e
cmp ebx, 0x18
jne 0x406945
cmp dword [ebp + 0x10], esi
je 0x406945
push esi
call dword [sym.imp.USER32.dll_SetCursor]
cmp ebx, dword [0x43fd0c]
jne 0x406967
cmp ebx, esi
je 0x406967
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
xor eax, eax
cmp dword [0x43fd04], esi
setne al
jmp 0x406977
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefWindowProcA]
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0x10], esi
jmp 0x4069c6
cmp ebx, 0x48
ja 0x4069a1
je 0x40699b
cmp ebx, 0x20
jne 0x406945
push esi
call dword [sym.imp.USER32.dll_SetCursor]
push 1
pop eax
jmp 0x406977
cmp dword [ebp + 0x10], 3
jmp 0x4069c6
mov eax, ebx
sub eax, 0x100
je 0x406a25
sub eax, 4
je 0x406a25
sub eax, 0xfc
je 0x4069cd
dec eax
je 0x406a25
sub eax, 3
je 0x406a25
sub eax, 3
je 0x406a25
sub eax, 0x11
je 0x406a25
jmp 0x406945
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp - 8]
sub ecx, dword [0x43fd40]
je 0x4069e8
cmp ecx, esi
jge 0x4069e8
neg ecx
mov eax, dword [ebp - 4]
sub eax, dword [0x43fd44]
je 0x4069f9
cmp eax, esi
jge 0x4069f9
neg eax
add ecx, eax
cmp ecx, dword [0x43fc9c]
jbe 0x406945
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 8]
mov dword [0x43fd40], eax
mov eax, dword [ebp - 4]
mov dword [0x43fd44], eax
jmp 0x406945
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
jmp 0x406945
cmp dword [0x43fd1c], esi
je 0x406945
mov eax, dword [0x43fd04]
cmp eax, esi
je 0x406996
push dword [ebp + 8]
call eax
jmp 0x406977
cmp dword [0x43fd1c], esi
je 0x406945
push dword [ebp + 8]
call fcn.00406ed2
test eax, eax
jne 0x406945
push 0x43fd40
call dword [sym.imp.USER32.dll_GetCursorPos]
xor eax, eax
jmp 0x406977
Function at 0x406ed2
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
push ebp
xor ebp, ebp
push esi
cmp dword [0x43fcfc], ebp
push edi
jne 0x406fae
cmp dword [0x43fcf8], ebp
jne 0x406fae
cmp dword [0x43fd04], ebp
je 0x406f9d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x43fd20], ebp
mov esi, eax
je 0x406f23
push esi
push dword [0x43fd24]
call fcn.00406fba
cmp eax, dword [0x43fd20]
jb 0x406f9d
mov eax, dword [0x43fca0]
cmp eax, 0xffffffff
je 0x406f3b
push esi
push eax
call fcn.00406fba
cmp eax, 0xc8
jb 0x406fa7
mov ebx, dword [esp + 0x30]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov esi, 0x113
push 3
push esi
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
mov dword [0x43fcfc], 1
call edi
push 3
push esi
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
call edi
push ebp
push ebp
push 0x8000
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebp
mov dword [0x43fcf8], eax
mov dword [0x43fcfc], ebp
jne 0x406f90
push ebp
call dword [sym.imp.USER32.dll_SetCursor]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x43fca0], eax
jmp 0x406fa7
mov dword [0x43fcf8], 1
mov eax, dword [0x43fcf8]
jmp 0x406fb0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4

Function at 0x406fc5
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x406ff8
push esi
call edi
mov esi, eax
mov al, byte [esi]
test al, al
je 0x406ff0
cmp al, 0x22
jne 0x406fe1
cmp byte [esi], 0x22
jne 0x407006
inc esi
jmp 0x407006
cmp al, 0x20
jbe 0x407006
push esi
call edi
mov esi, eax
cmp byte [esi], 0x20
ja 0x406ffc
mov al, byte [esi]
test al, al
je 0x407017
cmp al, 0x20
ja 0x407017
push esi
call edi
mov esi, eax
jmp 0x407006
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x407031
movzx eax, word [ebp - 0x14]
jmp 0x407034
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00406700
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x407920
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x488090
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
and eax, 0
sub esp, 0x50
mov ecx, dword [esp + 0x68]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
je 0x407c5e
lea eax, [esp + 0x38]
push eax
push ecx
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004273d0
cmp eax, 1
jne 0x407c5e
mov edx, dword [esp + 0x60]
push ebx
push ebp
mov ebp, dword [esp + 0x74]
push esi
push edi
mov eax, dword [ebp]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 4]
mov ecx, dword [ebp + 0xc]
sub ebx, eax
sub ecx, esi
sub edx, 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x74], ecx
mov edi, eax