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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
test ecx, ecx
je 0x4d19e4
lea esi, [ecx - 0x40]
mov dword [ebp - 4], esi
jmp 0x4d19ee
mov dword [ebp - 4], 0
mov esi, dword [ebp - 4]
cmp dword [ebp + 0x14], 0
mov ecx, dword [esi + 4]
mov dword [ebp - 8], 1
je 0x4d1ab3
mov eax, dword [ebp + 8]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [ebx]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or edx, eax
mov dword [ebp - 0xc], 0xffffffff
jge 0x4d1a3e
push esi
mov ecx, ebx
call fcn.00401400
mov eax, dword [ebx]
test esi, esi
js 0x4d1aa9
cmp esi, dword [eax - 8]
jg 0x4d1aa9
mov dword [eax - 0xc], esi
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + esi*2], dx
test eax, eax
je 0x4d1a97
lea ecx, [esi + 1]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [ebx]
mov dword [ebp - 0xc], eax
test edx, edx
jne 0x4d1a71
xor eax, eax
jmp 0x4d1a87
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d1a76
sub eax, edi
sar eax, 1
js 0x4d1aa9
cmp eax, dword [edx - 8]
jg 0x4d1aa9
mov dword [edx - 0xc], eax
mov edx, dword [ebx]
xor ecx, ecx
mov word [edx + eax*2], cx
pop edi
cmp dword [ebp - 0xc], esi
jge 0x4d1aff
mov esi, dword [ebp - 4]
mov dword [ebp - 8], 0
jmp 0x4d1acb
push 0x80070057
call fcn.004011d0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4d1b2d
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
add esi, 0x40
je 0x4d1add
lea eax, [esi - 0x40]
jmp 0x4d1adf
xor eax, eax
mov edx, dword [ebp + 8]
mov eax, dword [eax + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp dword [ebp + 0x18], 0
je 0x4d1b2d
mov ecx, dword [ebx]
mov edx, dword [ecx - 0xc]
cmp edx, dword [ebp + 0x1c]
jle 0x4d1b2d
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
push edx
add ecx, 0x40
push eax
call fcn.004d1560
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4d2ca0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x654916
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea eax, [esi + 8]
mov dword [esi + 4], ebx
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], ebx
mov dword [ebp - 4], 1
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [ebp - 4], 2
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x20], eax
mov dword [ebp - 4], 4
lea ecx, [esi + 0x2c]
mov dword [esi + 0x24], ebx
push ecx
mov dword [esi + 0x28], ebx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov dword [ebp - 4], 5
lea edi, [esi + 0x3c]
push edi
mov byte [edi + 0x10], bl
mov dword [edi + 0x14], ebx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov dword [edi + 0x18], vtable.dockwins::CVC7LikeExCaption::CPinButton.0
mov dword [edi + 0x2c], 1
mov dword [edi + 0x30], vtable.dockwins::CVC7LikeExCaption::CCloseButton.0
mov al, byte [edi + 0x10]
cmp al, bl
sete cl
cmp al, cl
je 0x4d2d4b
mov byte [edi + 0x10], cl
mov edx, dword [0x7145bc]
add edx, 5
mov dword [edi + 0x14], edx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4d32c1
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x28], 0
je 0x4d3340
lea eax, [esi + 0x80]
push eax
call fcn.004d0ab0
mov bl, al
test bl, bl
jne 0x4d32f5
push 0x3f2
push str.d:projects_staffcop_rev_sdkcontrolswtldockingwindowsDockingWindow.h
push str.bRes
call fcn.00614d2b
add esp, 0xc
jmp 0x4d330d
push 0
push 0x80
lea ecx, [esi + 0x2c]
push ecx
mov ecx, esi
call fcn.004d2fc0
mov bl, al
test bl, bl
jne 0x4d3328
push 0x3f6
push str.d:projects_staffcop_rev_sdkcontrolswtldockingwindowsDockingWindow.h
push str.bRes
call fcn.00614d2b
add esp, 0xc
test bl, bl
je 0x4d334c
mov edx, dword [esi + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4d334c
pop esi
mov eax, 1
pop ebx
ret
mov dword [esi + 0x84], 0
jmp 0x4d3328
pop esi
xor eax, eax
pop ebx
ret

Function at 0x4d4570
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 8], ebx
xor esi, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x10], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4d45bf
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4d45c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x4d45d8
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x4d45ed
push 0x6d0f54
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], esi
call fcn.0060fb01
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d5c40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65b1e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x48]
push ebx
lea ecx, [edi + 0x40]
mov dword [ebp - 0x14], edi
call fcn.004593e0
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x4d5c84
push str._html__r_n_head__r_n_meta_http_equiv_Content_Type__content_text_html__charsetutf_8_____r_n_title_Access_Denied__title__r_n_t_t_t_t_t_____head__r_n_body__r_n_h1_Access_to_this_page_is_forbidden__h1__r_n_p__small_Protected_by_StaffCop_Standard__small___p__r_n__body__r_n__html__r_n
mov ecx, ebx
call fcn.00405830
mov eax, dword [edi + 0x4c]
cmp dword [eax - 4], 1
jle 0x4d5c99
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [edi + 0x4c]
call fcn.00401370
mov esi, dword [edi + 0x4c]
push 0x672b60
push esi
call fcn.00614a04
mov esi, eax
add esp, 8
test esi, esi
je 0x4d5d39
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4d5cbe
xor eax, eax
jmp 0x4d5cea
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4d5cd1
xor eax, eax
jmp 0x4d5cea
lea edi, [eax + eax]
mov eax, edi
call fcn.006123b0
mov eax, esp
push 3
push edi
push ebx
push eax
call fcn.00403a80
mov edi, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00415220
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
push esi
push ecx
push 1
push eax
call fcn.006161f6
push esi
call fcn.0061466b
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d5d39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 4]
push 1
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
lea esp, [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4d5d60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x654d58
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x48]
push edi
lea ecx, [esi + 0x40]
call fcn.004593e0
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x4d5dae
push str._html__r_n_head__r_n_meta_http_equiv_Content_Type__content_text_html__charsetutf_8_____r_n_title_Access_Denied__title__r_n__head__r_n_body__r_n_h1_Access_to_this_page_is_forbidden__h1__r_n_p__small_Protected_by_StaffCop_Standard__small___p__r_n__body__r_n__html__r_n
mov ecx, edi
call fcn.00405830
mov edi, dword [edi]
mov ecx, dword [esi + 0x40]
push edi
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi + 0x4c]
cmp dword [eax - 4], 1
jle 0x4d5dc3
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esi + 0x4c]
call fcn.00401370
mov eax, dword [esi + 0x4c]
push 0x672b60
push eax
call fcn.00614a04
mov edi, eax
add esp, 8
test edi, edi
je 0x4d5f04
mov eax, dword [esi + 0x48]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4d5e17
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4d5dfb
xor eax, eax
jmp 0x4d5e17
add eax, eax
mov dword [ebp - 0x1c], eax
call fcn.006123b0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov eax, esp
push 3
push ecx
push edx
push eax
call fcn.00403a80
push eax
lea ecx, [ebp - 0x18]
call fcn.00415220
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 0xc]
push edi
push ecx
push 1
push eax
call fcn.006161f6
push edi
call fcn.0061466b
mov ecx, dword [esi + 4]
add esp, 0x14
lea eax, [ebp - 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
sub dword [ebp - 0x24], 0x30
add dword [ebp - 0x2c], 0x58
push str.file:__localhost_
lea ecx, [ebp - 0x14]
call fcn.0040bea0
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00401710
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x10]
push edx
push 0x67350c
lea ecx, [esi + 0x44]
call fcn.004c4890
mov edx, dword [esi + 0x44]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0
push edx
mov edx, dword [ebp - 0x14]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4d5ebb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d5ede
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d5f04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4d6010
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 0x20]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4d607e
push esi
lea ecx, [eax + eax + 2]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4d6077
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [edi + 0x20]
mov edx, eax
lea ecx, [ecx]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x4d6040
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
xor eax, eax
pop edi
ret 0x10
xor eax, eax
pop edi
ret 0x10
Function at 0x4d66f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDC]
push esi
mov esi, ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x35c]
push edi
push ecx
call ebx
lea edx, [ebp - 0x4c]
mov edi, eax
push edx
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [esi + 0x35c]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x35c]
push 0x400
lea eax, [ebp - 0x84c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp - 8]
cdq
sub eax, edx
mov edx, dword [esi + 0x36c]
mov edi, eax
push edx
sar edi, 1
call ebx
lea ecx, [ebp - 0x4c]
push ecx
push eax
mov dword [ebp + 0x14], eax
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov edx, dword [ebp + 0x14]
mov eax, dword [esi + 0x36c]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x36c]
push 0x400
lea eax, [ebp - 0x84c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [0x71476c], 0
jne 0x4d68a1
mov edx, dword [esi + 0x368]
push edx
call ebx
lea ecx, [ebp - 0x4c]
push ecx
push eax
mov dword [ebp + 0x14], eax
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov edx, dword [ebp + 0x14]
mov eax, dword [esi + 0x368]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x368]
push 0x400
lea eax, [ebp - 0x84c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
push 0x40
push 0x19
push eax
sub eax, edi
add edx, 0xffffffe7
push edx
dec eax
push eax
mov eax, dword [esi + 0x368]
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 0x360]
push ecx
call ebx
lea edx, [ebp - 0x4c]
mov ebx, eax
push edx
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [esi + 0x360]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x360]
push 0x400
lea eax, [ebp - 0x84c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push 0x40
push 0x17
lea edx, [eax - 1]
push edx
mov edx, dword [esi + 0x360]
add ecx, 0xffffffe8
push ecx
sub eax, edi
add eax, 0xa
push eax
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4d6a40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
mov esi, ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 0x360]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x18]
push ecx
push edx
call edi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov ebx, dword [sym.imp.USER32.dll_PtInRect]
push eax
push ecx
lea edx, [ebp - 0x18]
push edx
call ebx
test eax, eax
je 0x4d6acf
mov ecx, dword [0x716738]
push 0x80
lea eax, [ebp - 0x118]
push eax
push 0x258
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
push 1
push 0
push 0
lea edx, [ebp - 0x118]
push edx
push 0x66f294
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esi + 0x368]
lea ecx, [ebp - 0x18]
push ecx
push edx
call edi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push eax
push ecx
lea edx, [ebp - 0x18]
push edx
call ebx
test eax, eax
jne 0x4d6abb
mov ecx, dword [ebp + 0x14]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4d76b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652e58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [ebp + 0x10]
shr eax, 0x10
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x4d76f9
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebp + 0x14], ebx
xor edi, edi
mov dword [ebp - 4], edi
push ebx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x4d7849
push esi
push 0x30
lea edx, [ebp - 0x40]
push 0
push edx
call fcn.006100a0
push pe_nt_image_headers32
lea eax, [ebp - 0x150]
push 0
push eax
mov dword [ebp - 0x40], 0x30
call fcn.006100a0
add esp, 0x18
lea ecx, [ebp - 0x154]
push ecx
mov dword [ebp - 0x154], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4d7774
mov eax, dword [ebp - 0x150]
cmp eax, 5
jae 0x4d777b
cmp eax, 4
jne 0x4d7774
cmp dword [ebp - 0x14c], 0x5a
jae 0x4d777b
mov dword [ebp - 0x40], 0x2c
lea eax, [ebp - 0x40]
push eax
push 1
push edi
lea edx, [ebp - 0x21c]
push ebx
mov dword [ebp - 0x18], 0x64
mov dword [ebp - 0x3c], 0x3f
mov dword [ebp - 0x1c], edx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test dword [ebp - 0x38], 0x100
jne 0x4d7838
push 0x10
call fcn.00611c8b
mov esi, eax
add esp, 4
test esi, esi
je 0x4d7838
mov eax, dword [ebp - 0x38]
or eax, 0x100
mov dword [ebp - 0x38], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x34]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4d77e0
add ecx, 0xfffffd88
jmp 0x4d77e2
xor ecx, ecx
push esi
lea edx, [ebp - 0x40]
push edx
call fcn.004cccb0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005fb5ce
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x4d7827
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x40]
push edx
push 1
push edi
push ebx
mov dword [ebp - 0x20], esi
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
push ebx
inc edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp edi, eax
jl 0x4d7716
pop esi
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x10]
push eax
add ecx, 0x20
mov dword [ebp + 0x10], ebx
call fcn.00594900
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4db660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x655503
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0x1fa0
call fcn.005fb5ce
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp edi, esi
jne 0x4db6f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x4db6d4
and eax, 0xffff
or eax, 0x80070000
push str.hFile
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040de50
push 0x6ba4dc
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0060fb01
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x84]
call fcn.004d9fe0
mov byte [ebp - 4], 2
nop
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, 0xfd0
sub eax, esi
add eax, eax
push eax
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + esi*2]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov ebx, eax
shr ebx, 1
add ebx, esi
add dword [ebp - 0x24], eax
test eax, eax
je 0x4db7cd
xor esi, esi
mov dword [ebp - 0x14], esi
lea ebx, [ebx]
mov edi, ebx
sub edi, esi
mov eax, dword [ebp - 0x18]
lea eax, [eax + esi*2]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push eax
lea ecx, [ebp - 0x84]
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xffffffff
je 0x4db795
test eax, eax
je 0x4db7c0
add esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
jb 0x4db7bc
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x4db7c0
lea eax, [edi + edi]
cmp eax, 0xfd0
ja 0x4db78e
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0xfd0
mov edx, dword [ebp - 0x18]
push edx
call fcn.0060fbd3
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x14], esi
jmp 0x4db7c0
test eax, eax
jg 0x4db750
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
jne 0x4db710
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.004d9f70
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4db7f3
push eax
call fcn.00611a0b
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4db820
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dc8b0
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
mov esi, ecx
mov eax, dword [esi + 0x298]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4dc8e2
push 0x32
push eax
call edi
cmp eax, 0x102
jne 0x4dc8e2
mov eax, dword [esi + 0x298]
push 0x4d
push eax
call ebx
mov eax, dword [esi + 0x29c]
test eax, eax
je 0x4dc903
push 0x32
push eax
call edi
cmp eax, 0x102
jne 0x4dc903
mov ecx, dword [esi + 0x29c]
push 0x4d
push ecx
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10

Function at 0x4ddbc0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
test ecx, ecx
je 0x4ddbd7
lea esi, [ecx - 0x258]
mov dword [ebp - 4], esi
jmp 0x4ddbe1
mov dword [ebp - 4], 0
mov esi, dword [ebp - 4]
cmp dword [ebp + 0x14], 0
mov ecx, dword [esi + 4]
mov dword [ebp - 8], 1
je 0x4ddcad
mov eax, dword [ebp + 8]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [ebx]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or edx, eax
mov dword [ebp - 0xc], 0xffffffff
jge 0x4ddc31
push esi
mov ecx, ebx
call fcn.00401400
mov eax, dword [ebx]
test esi, esi
js 0x4ddca3
cmp esi, dword [eax - 8]
jg 0x4ddca3
mov dword [eax - 0xc], esi
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + esi*2], dx
test eax, eax
je 0x4ddc91
lea ecx, [esi + 1]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [ebx]
mov dword [ebp - 0xc], eax
test edx, edx
jne 0x4ddc64
xor eax, eax
jmp 0x4ddc81
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ddc70
sub eax, edi
sar eax, 1
js 0x4ddca3
cmp eax, dword [edx - 8]
jg 0x4ddca3
mov dword [edx - 0xc], eax
mov edx, dword [ebx]
xor ecx, ecx
mov word [edx + eax*2], cx
pop edi
cmp dword [ebp - 0xc], esi
jge 0x4ddcff
mov esi, dword [ebp - 4]
mov dword [ebp - 8], 0
jmp 0x4ddcc5
push 0x80070057
call fcn.004011d0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4ddd30
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
add esi, 0x258
je 0x4ddcdd
lea eax, [esi - 0x258]
jmp 0x4ddcdf
xor eax, eax
mov edx, dword [ebp + 8]
mov eax, dword [eax + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp dword [ebp + 0x18], 0
je 0x4ddd30
mov ecx, dword [ebx]
mov edx, dword [ecx - 0xc]
cmp edx, dword [ebp + 0x1c]
jle 0x4ddd30
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
push edx
add ecx, 0x258
push eax
call fcn.004dc910
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18