joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

Function at 0xdea0b1
Capabilities:
Parse pe header

Disassembly:
mov dword [0xe09004], esp
push 0xdea0f4
jmp 0xdea0bf
jmp 0xdea0c4
jmp 0xdea0c8
jmp 0xdea0cb
push dword fs:[0]
jmp 0xdea0d6
jmp 0xdea0d9
jmp 0xdea0dd
jmp 0xdea0e1
jmp 0xdea0e4
mov dword fs:[0], esp
jmp 0xdea0ef
jmp fcn.00dea9c3
Function at 0x401c40
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, ecx
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push fcn.0043f4b0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x401c7a
call fcn.0041e1c0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x401c73
mov eax, dword [ecx]
push 1
call dword [eax + 0x24]
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x401cae
push edi
call fcn.0043daf0
mov ecx, dword [esi + 0x18]
call fcn.0043d650
mov edi, dword [esi + 0x18]
test edi, edi
je 0x401ca6
mov ecx, edi
call fcn.0043c510
push edi
call fcn.00442ac0
add esp, 4
mov dword [esi + 0x18], 0
pop edi
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x401cce
call fcn.00419b30
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x401cc7
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x1c], 0
lea ecx, [esi + 0x34]
call fcn.0043a7e0
call fcn.00449680
push 0xdc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x4d1c10
call fcn.004219a0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401d0b
push 4
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
ret
Function at 0x402580
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00402ef0
test eax, eax
jne 0x4025bf
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push 4
push esi
push 0x4022d0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4025bf
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret
Function at 0x402890
Capabilities:
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9188
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x828
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [ebp + 8]
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x832]
mov word [ebp - 0x834], bx
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
push 0x4c2160
lea eax, [ebp - 0x834]
push 0x800
push eax
call fcn.00402a60
push 5
push ebx
push 0x4d1b48
push esi
push str.open
push ebx
call fcn.00442a80
add esp, 0x28
cmp eax, 0x20
jle 0x40291c
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 dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
mov word [ebp - 0x34], bx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
push ecx
push 0x4b0f8c
push 0x15
push ebx
push 0x4b0f7c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x402974
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x40295f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
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
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x94]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4029a1
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [ebp - 0x14]
push 3
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x402a17
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x24]
push eax
mov word [ebp - 0x24], bx
call edi
cmp eax, ebx
jge 0x4029c6
mov dword [ebp - 0x1c], eax
push esi
mov word [ebp - 0x24], 8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jne 0x4029eb
cmp esi, ebx
je 0x4029eb
mov word [ebp - 0x24], 0xa
mov dword [ebp - 0x1c], 0x8007000e
lea edx, [ebp - 0x34]
mov eax, dword [ebp + 8]
push edx
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 3
push edx
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x24]
push edx
push eax
call dword [ecx + 0xd0]
lea eax, [ebp - 0x24]
push eax
call edi
jmp 0x402a1d
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x34]
push ecx
call edi
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x402a33
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402f00
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x4a91e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push esi
push edi
mov dword [esp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov eax, dword [0x4c2080]
test esi, esi
mov dword [esp + 8], eax
je 0x402f87
mov ecx, esi
shr ecx, 0x10
jne 0x402f4f
and esi, 0xffff
lea ecx, [esp + 8]
push esi
call fcn.00405320
jmp 0x402f87
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x402f87
push edi
lea ecx, [esp + 0xc]
call fcn.004056f0
test eax, eax
je 0x402f87
lea ecx, [edi + edi]
lea edx, [edi + edi + 2]
cmp edx, ecx
jb 0x402f87
mov edi, dword [esp + 8]
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 [0x4c2080]
mov dword [esp + 0x228], 0
mov dword [esp + 0xc], ecx
mov edx, dword [0x4d1ac8]
lea ecx, [esp + 0x20]
push 0x100
push ecx
mov eax, dword [edx + 8]
push 0xba
push eax
mov byte [esp + 0x238], 1
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x402fcc
mov word [esp + 0x20], ax
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x402ffc
lea eax, [esp + 0x20]
test eax, eax
je 0x402feb
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x20]
lea ecx, [esp + 0xc]
push edx
push eax
call fcn.00405750
jmp 0x40304a
push 0x1ff
lea ecx, [esp + 0x10]
mov esi, 0x200
call fcn.00405530
test eax, eax
je 0x40303f
push esi
push eax
push 0xba
call fcn.00405b00
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x40303f
add esi, 0x100
lea ecx, [esp + 0xc]
lea edx, [esi - 1]
push edx
call fcn.00405530
test eax, eax
jne 0x403013
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.004055f0
mov eax, 0x4c2190
test eax, eax
je 0x40305e
push 0x4c2190
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4c2190
push eax
lea ecx, [esp + 0x10]
call fcn.00405810
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x10]
call fcn.00405810
mov eax, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
mov ecx, dword [eax + 0x18]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00409bf0
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], 2
call fcn.00409d40
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x228], 1
call fcn.00409d00
mov eax, dword [esp + 0xc]
mov ecx, dword [0x4c2084]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4030ea
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4030ea
mov eax, dword [esp + 0xc]
add eax, 0xfffffff4
push eax
call fcn.00442ac0
add esp, 4
mov eax, dword [esp + 8]
mov edx, dword [0x4c2084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x403115
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x403115
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.00442ac0
add esp, 4
mov ecx, dword [esp + 0x220]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x224
ret
Function at 0x403910
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, ecx
call fcn.00449680
push 0xdc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x4d1c10
call fcn.004219a0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x403948
push 4
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
ret

Function at 0x403960
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x22c
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x403986
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x22c
ret
mov ecx, 0x8a
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4039bd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x22c
ret
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_wcsstr]
lea ecx, [esp + 0x34]
push 0x4c22f4
push ecx
call edi
add esp, 8
test eax, eax
je 0x4039f0
lea edx, [esp + 0x34]
push str.360Inst_
push edx
call ebx
add esp, 8
test eax, eax
je 0x4039f1
inc ebp
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4039ca
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x22c
ret
Function at 0x404410
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push str.LANGUAGE_DLL
push 0x10c
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4044b7
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4044b7
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, dword [esp + 0x18]
mov ebp, eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esi]
push 0
push 0
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404489
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
lea ecx, [esp + 0x10]
push 0
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4060a0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4a958b
push eax
mov eax, 0x12854
mov dword fs:[0], esp
call fcn.004a2ae0
mov ecx, dword [esp + 0x12864]
mov eax, dword [esp + 0x12868]
push ebx
push ebp
push esi
push edi
and ecx, 0xffff
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4061d7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4061d7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
lea eax, [esi*4]
push eax
mov dword [esp + 0x14], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.0040b580
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
push edi
push esi
push ebp
mov dword [esp + 0x1287c], 0
call fcn.0040ba90
mov esi, dword [esp + 0x1287c]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or ebp, 0xffffffff
cmp esi, ebp
jne 0x40618e
lea ecx, [esp + 0x18]
mov dword [esp + 0x1286c], ebp
call fcn.00493060
xor eax, eax
jmp 0x4061dc
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 0
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call fcn.00442ac0
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x1286c], ebp
call fcn.00493060
mov eax, 1
mov ecx, dword [esp + 0x12864]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12860
ret
Function at 0x406bf0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
xor edi, edi
mov eax, dword [eax]
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x406c23
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406c1c
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x406c30
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0xffffffffffffffff
push 0x4a9662
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x14], esi
lea ecx, [esi + 0x20]
cmp ecx, ebx
je 0x406c61
lea eax, [ecx - 0x20]
jmp 0x406c63
xor eax, eax
push ebp
push edi
push ecx
add eax, 8
push 0x40
push 0xd
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 4], ebx
mov dword [esp + 0x228], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], eax
mov ecx, dword [0x4c2080]
lea edi, [esi + 0x4c]
mov dword [edi], ecx
lea eax, [esp + 0x20]
mov dword [esi], vtable.CBmpButton.0
mov dword [esi + 0x30], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x48], 0xc
mov edx, dword [0x4c2080]
push 0x100
push eax
push 0x9c44
mov byte [esp + 0x234], 2
mov dword [esp + 0x1c], edx
call fcn.00405b00
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x406cef
lea edx, [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
call fcn.00404c50
jmp 0x406d3d
push 0x1ff
lea ecx, [esp + 0x14]
mov ebp, 0x200
call fcn.00405530
cmp eax, ebx
je 0x406d32
push ebp
push eax
push 0x9c44
call fcn.00405b00
mov ecx, ebp
sub ecx, eax
cmp ecx, 1
jg 0x406d32
add ebp, 0x100
lea ecx, [esp + 0x10]
lea edx, [ebp - 1]
push edx
call fcn.00405530
cmp eax, ebx
jne 0x406d06
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.004055f0
mov ecx, dword [edi]
mov eax, dword [esp + 0x10]
cmp ecx, eax
mov byte [esp + 0x228], 3
je 0x406dc3
cmp dword [ecx - 0xc], ebx
jge 0x406d61
mov edx, dword [0x4c2084]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x406d66
cmp dword [eax - 0xc], ebx
jge 0x406da8
mov ebp, dword [eax - 8]
mov ecx, edi
push ebp
mov dword [esp + 0x1c], eax
call fcn.004059f0
test eax, eax
je 0x406dbf
mov edx, dword [edi]
lea eax, [ebp + ebp]
mov dword [esp + 0x14], eax
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [ebp + ebp + 2]
push eax
push ecx
push edx
call fcn.00404a40
mov eax, dword [edi]
mov edx, dword [esp + 0x24]
add esp, 0x10
mov dword [eax - 8], ebp
mov ecx, dword [edi]
mov word [edx + ecx], bx
jmp 0x406dbf
mov ecx, edi
call fcn.00405a90
mov eax, dword [esp + 0x10]
mov dword [edi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov edx, dword [0x4c2084]
lea ecx, [eax - 0xc]
pop edi
cmp ecx, edx
pop ebp
je 0x406df0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x406df0
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.00442ac0
add esp, 4
mov ecx, dword [esp + 0x218]
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], 1
mov dword [esi + 0x38], 4
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], 2
mov dword [esi + 0x44], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x4076f0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x22c
push ebx
push ebp
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
push 0x104
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x407876
mov eax, dword [ebp + 0x54]
mov ecx, 0x190
cmp eax, ebx
je 0x40774a
mov ecx, 0x3bc
mov eax, dword [ebp + 0x4c]
push esi
push eax
push 0x10
push ebx
push ebx
mov eax, dword [ebp + 0x48]
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.GDI32.dll_CreateFontW]
mov ecx, dword [esp + 0x244]
lea edx, [esp + 0x20]
push ecx
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_CopyRect]
mov edi, dword [esp + 0x240]
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x10], ebx
push eax
mov dword [esp + 0x18], ebx
call esi
cmp eax, 0xffffffff
jne 0x4077af
lea ecx, [esp + 0x30]
push ecx
call esi
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x38]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
lea eax, [edx + ecx]
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
mov ecx, eax
mov eax, dword [esp + 0x20]
add eax, edx
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
sar esi, 1
sar eax, 1
sub esi, eax
mov eax, dword [esp + 0x14]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
mov al, byte [esp + 0x248]
test al, 1
mov ebx, ecx
je 0x407809
inc esi
inc ebx
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x50]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
test byte [esp + 0x248], 4
je 0x40782f
push 0x22
jmp 0x407831
push 2
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
push ebx
push esi
lea eax, [esp + 0x44]
push 0
push eax
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_DrawStateW]
mov ecx, dword [esp + 0x18]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x1c]
push edx
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret 0xc
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret 0xc
Function at 0x407d30
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0xffffffffffffffff
push 0x4a973f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
lea ecx, [ebp + 0x40]
mov dword [esp + 0x18], ebp
cmp ecx, ebx
je 0x407d63
lea eax, [ecx - 0x40]
jmp 0x407d65
xor eax, eax
push ecx
add eax, 0x2c
push 0x40
push 0xd
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, ebp
mov dword [esp + 0x224], ebx
call fcn.0043ed70
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x3c], ebx
or eax, 0xffffffff
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], ebx
mov byte [ebp + 0x60], bl
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x5c], eax
mov ecx, dword [esp + 0x22c]
mov byte [esp + 0x224], 3
lea esi, [ebp + 0x68]
mov eax, dword [ecx]
cmp dword [eax - 0xc], ebx
jl 0x407dca
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x407e20
mov eax, dword [0x4c2080]
mov dword [esi], eax
mov ecx, dword [ecx]
cmp ecx, ebx
mov dword [esp + 0x14], ecx
jne 0x407ddf
xor edi, edi
jmp 0x407de8
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push edi
mov ecx, esi
call fcn.004059f0
test eax, eax
je 0x407e20
mov ecx, dword [esp + 0x14]
lea eax, [edi + edi]
mov dword [esp + 0x10], eax
push eax
mov eax, dword [esi]
lea edx, [edi + edi + 2]
push ecx
push edx
push eax
call fcn.00404a40
mov ecx, dword [esi]
mov eax, dword [esp + 0x20]
add esp, 0x10
mov dword [ecx - 8], edi
mov edx, dword [esi]
mov word [eax + edx], bx
mov ecx, dword [0x4c2080]
mov dword [ebp + 0x6c], ecx
mov edx, dword [0x4c2080]
mov dword [ebp + 0x70], edx
mov eax, dword [0x4c2080]
lea esi, [ebp + 0x74]
mov ecx, 0x4d1b48
mov byte [esp + 0x224], 6
test ecx, ecx
mov dword [esi], eax
je 0x407f13
mov edx, ecx
shr edx, 0x10
jne 0x407ed5
xor edi, edi
mov eax, ecx
lea ecx, [esp + 0x1c]
mov di, ax
push 0x100
push ecx
push edi
call fcn.00405b00
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x407e8c
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00404c50
jmp 0x407f13
push 0x1ff
lea ecx, [ebp + 0x74]
mov esi, 0x200
call fcn.00405530
cmp eax, ebx
je 0x407ec9
push esi
push eax
push edi
call fcn.00405b00
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x407ec9
add esi, 0x100
lea ecx, [ebp + 0x74]
lea edx, [esi - 1]
push edx
call fcn.00405530
cmp eax, ebx
jne 0x407ea2
push 0xffffffffffffffff
lea ecx, [ebp + 0x74]
call fcn.004055f0
jmp 0x407f13
push 0x4d1b48
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp edi, ebx
je 0x407f13
push edi
mov ecx, esi
call fcn.004056f0
test eax, eax
je 0x407f13
lea ecx, [edi + edi]
lea eax, [edi + edi + 2]
cmp eax, ecx
jb 0x407f13
mov edi, dword [ebp + 0x74]
mov edx, ecx
mov esi, 0x4d1b48
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 [esp + 0x21c]
pop edi
mov dword [ebp], vtable.CCancelMsgBox.1.0
mov dword [ebp + 0x24], vtable.CCancelMsgBox.0
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x218
ret 4