joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418d90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004111e0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x418e5b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x418e5b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x418e0e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x418e19
or bh, 8
and edi, 0x8000000
je 0x418e34
mov eax, dword [0x43e01c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x418e5b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41925b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41927f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41929a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x420a5a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x420a92
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041eed9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041eeb1
jmp 0x420a9e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x42285c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x42289e
call fcn.0042a8f6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42289e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x422895
xor eax, eax
jmp 0x4228a6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004228ac
pop edi
pop esi
pop ebx
ret 4
Function at 0x4050c0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
xor ebp, ebp
push edi
test ebx, ebx
je 0x4050d6
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x405104
push 0x43dcec
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x405161
mov ebx, 0x4469a0
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call esi
mov edi, eax
xor esi, esi
cmp dword [ebx], ebp
jle 0x405161
xor ebp, ebp
lea esp, [esp]
mov eax, dword [edi + esi*4]
push 0x43dcc8
push eax
call fcn.004119e0
add esp, 8
test eax, eax
je 0x405141
mov ecx, dword [edi + esi*4]
push 0x43dcb0
push ecx
call fcn.004119e0
add esp, 8
test eax, eax
je 0x405141
inc esi
cmp esi, dword [ebx]
jl 0x405110
jmp 0x405161
mov edx, dword [ebx]
dec edx
cmp esi, edx
mov ebp, 1
jge 0x40515f
lea ecx, [ecx]
mov eax, dword [edi + esi*4 + 4]
mov dword [edi + esi*4], eax
mov ecx, dword [ebx]
inc esi
dec ecx
cmp esi, ecx
jl 0x405150
dec dword [ebx]
mov edx, dword [esp + 0x14]
push ebp
push edx
call fcn.00404d30
add esp, 8
test eax, eax
je 0x405178
mov ebp, 1
pop edi
xor eax, eax
pop esi
test ebp, ebp
pop ebp
setne al
pop ebx
ret

Function at 0x405450
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x445654]
xor eax, esp
mov dword [esp + 0x9c], eax
push 0x94
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0xc], 0x9c
mov dword [esp + 0x10], 0
call fcn.00412350
add esp, 0xc
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 4]
cmp eax, 6
jb 0x4054b2
mov al, 1
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00411a73
add esp, 0xa0
ret
cmp eax, 5
jne 0x40550a
mov eax, dword [esp + 8]
test eax, eax
je 0x40550a
cmp eax, 1
jne 0x4054e5
cmp word [esp + 0x94], 2
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00411a73
add esp, 0xa0
ret
cmp eax, 2
jne 0x40550a
cmp byte [esp + 0x9a], 1
sete al
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00411a73
add esp, 0xa0
ret
mov ecx, dword [esp + 0x9c]
xor ecx, esp
xor al, al
call fcn.00411a73
add esp, 0xa0
ret
Function at 0x4068e0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x4b8], 0
push edi
jne 0x40693d
push ebp
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.StartTraceW
push edi
call ebp
push str.ControlTraceW
push edi
mov dword [0x4469b0], eax
call ebp
push str.OpenTraceW
push edi
mov dword [0x4469b8], eax
call ebp
push str.ProcessTrace
push edi
mov dword [0x4469b4], eax
call ebp
mov dword [0x4469bc], eax
mov byte [esi + 0x4b8], 1
pop ebp
cmp dword [0x4469b0], 0
jne 0x406950
pop edi
mov eax, 1
pop esi
ret 4
mov dword [esi], 0x4b0
mov dword [esi + 0x2c], 0x20000
mov dword [esi + 0x44], 1
mov dword [esi + 0x40], 0x100
mov dword [esi + 0x28], 1
mov eax, dword [0x43b51c]
mov dword [esi + 0x18], eax
mov ecx, dword [0x43b520]
mov dword [esi + 0x1c], ecx
mov edx, dword [0x43b524]
mov dword [esi + 0x20], edx
mov eax, dword [0x43b528]
lea edi, [esi + 0x78]
mov dword [esi + 0x24], eax
mov eax, str.NT_Kernel_Logger
mov edx, edi
mov dword [esi + 0x70], 0x78
mov dword [esi + 0x6c], 0x280
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4069b0
mov eax, 0x43e7dc
lea edx, [esi + 0x280]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4069d0
mov ecx, esi
call fcn.00405450
test al, al
jne 0x4069f3
or dword [esi + 0x48], 0x10000
jmp 0x406a3e
mov ecx, 0x488
mov edx, 1
mov dword [esi + 0x48], connect
mov word [esi + 0x48], cx
mov byte [esi + 0x4a], 0xff
mov ecx, edx
mov word [esi + 0x48e], dx
mov eax, 9
mov edx, 0xa
mov word [esi + 0x48c], ax
mov word [esi + 0x48a], cx
mov word [esi + 0x488], dx
mov dword [esi + 0x490], 0x10000
cmp byte [esp + 0xc], 0
je 0x406a9e
push esi
push edi
lea eax, [esi + 0x4b0]
push eax
call dword [0x4469b0]
mov edi, eax
test edi, edi
je 0x406a79
cmp edi, 0xb7
je 0x406a79
push edi
push str.Network_trace_initialization_failed
push 0
call fcn.00407950
add esp, 0xc
mov eax, edi
pop edi
pop esi
ret 4
lea ecx, [esp + 0xc]
push ecx
xor edi, edi
push edi
push esi
push 0x4068d0
push edi
push edi
call fcn.00413176
add esp, 0x18
mov dword [esi + 0x4c0], eax
mov eax, edi
pop edi
pop esi
ret 4
mov edx, dword [esi + 0x4bc]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x4b4]
mov ecx, dword [esi + 0x4b0]
push 1
push esi
push edi
push eax
push ecx
call dword [0x4469b8]
mov edx, dword [esi + 0x4c0]
push 0xffffffffffffffff
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x4c0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x4bc]
push ecx
mov dword [esi + 0x4c0], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x407a10
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x18
mov eax, dword [0x445654]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
push 8
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], bl
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], 5
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 0xc]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push 2
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call fcn.00412493
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push eax
push ecx
push esi
push 2
push edx
call edi
test eax, eax
je 0x407aea
cmp ebx, dword [esi]
jae 0x407ae7
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea edi, [esi + 8]
mov edi, edi
mov eax, dword [edi - 4]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call ebp
test eax, eax
je 0x407adc
mov eax, dword [edi]
test al, 4
je 0x407adc
test eax, 0xffffffef
jne 0x407ae4
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x407ac0
cmp ebx, dword [esi]
pop ebp
setne bl
push esi
call fcn.004128c5
mov edx, dword [esp + 0x10]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.00411a73
add esp, 0x18
ret

Function at 0x407b20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x445654]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
mov esi, dword [esp + 0x250]
push 0x207
lea eax, [esp + 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407b68
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00411a73
add esp, 0x248
ret
push 0x3c
lea ecx, [esp + 8]
push 0
push ecx
call fcn.00412350
mov edx, dword [esp + 0x260]
add esp, 0xc
lea ecx, [esp + 4]
lea eax, [esp + 0x40]
push ecx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], str.Runas
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x407bdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00411a73
add esp, 0x248
ret
xor esi, esi
cmp byte [esp + 0x258], 0
je 0x407bf6
mov edx, dword [esp + 0x3c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x248]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00411a73
add esp, 0x248
ret
Function at 0x4083b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
lea eax, [esp + 8]
push eax
push str.SoftwareSysinternalsTCPView
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0x446d78
xor ebx, ebx
push ebx
push ebx
push str.Settings
push edx
mov dword [esp + 0x24], 0xa8
mov dword [0x446d78], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x408415
cmp dword [esp + 0xc], 0xa8
je 0x408559
push 0xa8
push ebx
push 0x446d78
call fcn.00412350
movzx ecx, byte [0x446e59]
imul ecx, ecx, 0x64
add esp, 0xc
mov eax, connect
push 0x446dd4
mov dword [0x446d80], eax
mov dword [0x446d7c], eax
mov al, 1
push 0x3c
add ecx, 0x1c2
push 0x11
mov dword [0x446d84], ecx
mov dword [0x446d88], 0x1f4
mov byte [0x446dd0], bl
mov byte [0x446dd1], bl
mov byte [0x446e15], al
mov byte [0x446e14], al
mov dword [0x446e18], ebx
mov byte [0x446e1c], al
mov dword [0x446e10], 0x3e8
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
push ebx
mov dword [0x446de4], 0x190
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0x48
mov esi, eax
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
push esi
mov dword [0x446dd4], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [0x43e98c]
mov eax, dword [0x43e990]
mov ecx, dword [0x43e994]
mov dword [0x446df0], edx
mov dx, word [0x43e998]
mov dword [0x446df4], eax
mov eax, 0x64
mov dword [0x446df8], ecx
mov word [0x446dfc], dx
mov dword [0x446d8c], eax
mov dword [0x446d90], eax
mov dword [0x446d94], eax
mov dword [0x446d98], eax
mov dword [0x446d9c], eax
mov dword [0x446da0], eax
mov dword [0x446da4], eax
mov dword [0x446da8], eax
mov dword [0x446dac], eax
mov dword [0x446db0], eax
mov dword [0x446db4], eax
mov dword [0x446db8], eax
mov dword [0x446dbc], eax
mov dword [0x446dc0], eax
mov dword [0x446dc4], eax
mov dword [0x446dc8], eax
mov dword [0x446dcc], eax
push 0x446dd4
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
pop esi
mov dword [0x446a28], eax
pop ebx
add esp, 8
ret
Function at 0x409d20
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x164
mov eax, dword [0x445654]
xor eax, esp
mov dword [esp + 0x160], eax
mov ecx, dword [esp + 0x168]
xor eax, eax
mov dword [esp], eax
cmp byte [ecx], al
je 0x409d67
mov eax, dword [esp + 0x16c]
or eax, 0x100
push eax
push 0x160
lea edx, [esp + 8]
push edx
push 0
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [esp]
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.00411a73
add esp, 0x164
ret

Function at 0x409ec0
Capabilities:
Identify system language via api

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov edi, dword [esp + 0x10]
movzx eax, ax
push eax
push edi
call fcn.00409db0
add esp, 0xc
test eax, eax
jne 0x409f00
push esi
push 0x409
push edi
call fcn.00409db0
add esp, 0xc
test eax, eax
jne 0x409f00
push esi
push eax
push edi
call fcn.00409db0
add esp, 0xc
pop edi
pop esi
ret
Function at 0x40af10
Capabilities:
Hide graphical window

Disassembly:
call fcn.004083b0
mov eax, dword [esp + 4]
mov ecx, dword [0x446d84]
mov edx, dword [0x446d80]
push 0
push eax
push 0
push 0
mov dword [0x446d70], eax
mov eax, dword [0x446d88]
push eax
mov eax, dword [0x446d7c]
push ecx
push edx
push eax
push 0x2cf0000
push str.TCPView___Sysinternals:_www.sysinternals.com
push str.TCPViewClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x446e24], eax
test eax, eax
jne 0x40af60
ret
mov ecx, dword [esp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push ecx
push eax
call esi
cmp byte [0x446dd0], 0
je 0x40af83
mov edx, dword [0x446e24]
push 3
push edx
call esi
mov eax, dword [0x446e24]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [0x446dd1], 0
pop esi
je 0x40afd9
mov ecx, dword [0x446e24]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
movzx edx, byte [0x446dd1]
mov eax, dword [0x446e24]
neg edx
sbb edx, edx
and edx, 8
push edx
push 0x9c4d
push eax
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
call fcn.00408c30
mov eax, dword [0x446e24]
ret
Function at 0x40c9b0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x284
mov eax, dword [0x445654]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
mov ebx, dword [esp + 0x28c]
push ebp
push esi
mov esi, dword [esp + 0x298]
push edi
xor ebp, ebp
push 0x38
lea eax, [esp + 0x18]
push ebp
push eax
mov dword [esp + 0x1c], ebp
call fcn.00412350
mov edx, dword [esi + 0x42c]
mov eax, dword [esi + 8]
push 0x104
lea ecx, [esi + 0x221]
push ecx
lea edi, [esi + 0x430]
push edi
push edx
push 1
push 1
push eax
call fcn.0040a790
mov edx, dword [esi + 8]
push 0x104
lea ecx, [esp + 0x1b8]
push ecx
shl edx, 5
add edx, 0x445330
mov byte [esi + 0x220], al
mov eax, dword [esi + 0x440]
push edx
push eax
push 1
call fcn.0040c580
mov eax, dword [esi + 8]
add esp, 0x3c
cmp eax, ebp
je 0x40ca65
cmp eax, 1
je 0x40ca65
mov ecx, 0x2a
mov edx, ecx
mov word [esi + 0x445], cx
mov word [esp + 0x88], dx
jmp 0x40cab8
push 0x104
lea ecx, [esi + 0x445]
push ecx
mov ecx, dword [esi + 0x660]
lea edx, [esi + 0x64d]
push edx
push ecx
push ebp
push 1
push eax
call fcn.0040a790
mov ecx, dword [esi + 0x664]
mov byte [esi + 0x444], al
mov eax, dword [esi + 8]
push 0x104
lea edx, [esp + 0xa8]
push edx
shl eax, 5
add eax, 0x445330
push eax
push ecx
push 1
call fcn.0040c580
add esp, 0x30
mov eax, dword [esi + 0x42c]
mov ecx, dword [esi + 8]
push 0x104
lea edx, [esi + 0x325]
push edx
push edi
push eax
push 1
push ebp
push ecx
call fcn.0040a790
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x440]
push 0x104
lea edx, [esp + 0x1ac]
push edx
shl eax, 5
add eax, 0x445330
push eax
push ecx
push ebp
call fcn.0040c580
mov eax, dword [esi + 8]
add esp, 0x30
cmp eax, ebp
je 0x40cb25
cmp eax, 1
je 0x40cb25
mov edx, 0x2a
mov eax, edx
mov word [esi + 0x549], dx
mov word [esp + 0x88], ax
jmp 0x40cb70
push 0x104
lea ecx, [esi + 0x549]
push ecx
mov ecx, dword [esi + 0x660]
lea edx, [esi + 0x64d]
push edx
push ecx
push ebp
push ebp
push eax
call fcn.0040a790
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x664]
push 0x104
lea edx, [esp + 0xa8]
push edx
shl eax, 5
add eax, 0x445330
push eax
push ecx
push ebp
call fcn.0040c580
add esp, 0x30
push esi
call fcn.0040ab40
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 4
lea edx, [esp + 0x10]
push edx
push 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
push 0x1007
or ebp, 0xffffffff
push ebx
mov dword [esp + 0x20], 0xd
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x40], esi
call edi
cmp eax, ebp
je 0x40cbdd
mov esi, 1
lea ebx, [ebx]
lea eax, [esp + 0x4c]
push eax
push 0
push 0x102e
push ebx
mov dword [esp + 0x64], esi
mov dword [esp + 0x70], ebp
call edi
inc esi
cmp esi, 0x11
jl 0x40cbc0
mov ecx, dword [esp + 0x290]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00411a73
add esp, 0x284
ret
Function at 0x40f230
Capabilities:
Accept command line arguments
Acquire debug privileges
Initialize winsock library

Disassembly:
sub esp, 0x1b4
mov eax, dword [0x445654]
xor eax, esp
mov dword [esp + 0x1b0], eax
push edi
mov edi, dword [esp + 0x1bc]
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push eax
lea ecx, [esp + 8]
push ecx
push 0x43e940
call fcn.004050c0
add esp, 0xc
test eax, eax
je 0x40f2bb
mov eax, dword [esp + 0x1c4]
mov edx, 0x446b40
sub edx, eax
jmp 0x40f290
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40f290
lea edx, [esp + 0x24]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40f2d6
push str.Could_not_initialize_Winsock._n
call fcn.00414192
add esp, 4
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.00411a73
add esp, 0x1b4
ret 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x446d58
call esi
push 0x446e30
call esi
push str.SeDebugPrivilege
call fcn.00407820
add esp, 4
call fcn.0040ae10
mov byte [0x446e59], al
test al, al
jne 0x40f310
call fcn.00407530
mov byte [0x446e59], al
push edi
call fcn.0040f180
add esp, 4
test eax, eax
je 0x40f3b6
mov eax, dword [esp + 0x1cc]
push eax
push edi
call fcn.0040af10
mov esi, eax
add esp, 8
test esi, esi
je 0x40f3b6
push ebx
push ebp
push str.TCPVIEW
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov ebx, eax
call fcn.00407a10
test al, al
je 0x40f35d
push 1
mov ecx, 0x446e68
call fcn.004068e0
mov ebp, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call ebp
test eax, eax
je 0x40f3b4
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
lea ebx, [ebx]
lea edx, [esp + 0x14]
push edx
push ebx
push esi
call edi
test eax, eax
jne 0x40f3a3
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
call ebp
test eax, eax
jne 0x40f380
pop ebp
pop ebx
mov ecx, dword [esp + 0x1b8]
pop esi
pop edi
xor ecx, esp
xor eax, eax
call fcn.00411a73
add esp, 0x1b4
ret 0x10