joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b8f5
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x33c
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x338], eax
push ebx
push esi
mov esi, ecx
call fcn.00489ff0
test al, al
je 0x48b932
mov ecx, dword [0x5144c8]
push 0x40
lea eax, [esp + 0x3c]
push eax
push 0x3ad7
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [esi + 0x28]
xor ebx, ebx
push ebx
push ebx
push 0x30
lea edx, [esp + 0x44]
push edx
call fcn.00481520
jmp 0x48ba95
mov eax, dword [0x514540]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x514540
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], vtable.CNewGroupDlg.0
call edx
add eax, 0x10
mov dword [esp + 0x30], eax
mov eax, dword [0x514540]
mov edx, dword [eax + 0xc]
mov ecx, 0x514540
call edx
add eax, 0x10
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [esp + 0x18]
call fcn.0048a430
cmp eax, 1
je 0x48b99c
lea ecx, [esp + 0x10]
call fcn.00449dd0
jmp 0x48ba95
mov eax, dword [esp + 0x30]
cmp dword [eax - 0xc], ebx
je 0x48b98e
mov ecx, dword [esp + 0x34]
cmp dword [ecx - 0xc], ebx
je 0x48b98e
push edi
push str..snippet
lea ecx, [esp + 0x38]
call fcn.00413510
mov edx, dword [0x5144c4]
push str.syntax_
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00417280
mov ecx, dword [eax]
add esp, 0xc
push ecx
lea ecx, [esp + 0x10]
call fcn.0040cf30
lea ecx, [esp + 0x10]
call fcn.00412910
mov edx, dword [esp + 0x34]
push edx
lea ecx, [esp + 0x10]
call fcn.00412f70
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48ba29
push 0x3b0b
lea ecx, [esp + 0x40]
call fcn.004207b0
mov ecx, dword [esi + 0x28]
push ebx
push ebx
push 0x30
lea eax, [esp + 0x48]
push eax
call fcn.00481520
jmp 0x48ba82
push edi
lea ecx, [esp + 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x13c]
push edx
push eax
push str.Title
push str.Snippet
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [esp + 0x38]
lea edi, [esi + 0x2c]
push ecx
mov ecx, edi
call fcn.004162d0
lea edx, [esp + 0x38]
push edx
lea ecx, [esi + 0x7c]
mov ebx, eax
call fcn.00443c50
push ebx
mov ecx, edi
call fcn.0041c190
mov ecx, esi
call fcn.0048a8f0
lea ecx, [esp + 0xc]
call fcn.00412910
lea ecx, [esp + 0x14]
call fcn.00449dd0
pop edi
mov ecx, dword [esp + 0x340]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0049e9d2
add esp, 0x33c
ret 0x10
Function at 0x48c1a0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 0x2c]
call fcn.0046f910
mov dword [esp + 8], eax
mov eax, dword [0x514540]
mov edx, dword [eax + 0xc]
mov ecx, 0x514540
call edx
add eax, 0x10
mov dword [esp + 4], eax
push 0
lea eax, [esp + 8]
push eax
push 0x50a
lea ecx, [esp + 0x14]
call fcn.00419bd0
lea ecx, [esp + 4]
push ecx
call fcn.00437720
add esp, 4
push 0
push ecx
mov eax, esp
mov dword [eax], 0
mov edx, dword [esp + 0xc]
push 0
push 0x56000000
push edx
push ecx
mov eax, esp
mov dword [eax], section..data
mov ecx, dword [esi + 0x2c]
call fcn.0048cbb0
push eax
mov ecx, esi
call fcn.0048c120
push 0
push ecx
mov eax, esp
push 0x200
push 0x44300000
push str.about:blank
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], section..data
mov eax, dword [esi + 4]
push eax
lea ecx, [esi + 0x30]
call fcn.0048c0a0
mov ecx, dword [esi + 0x34]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esp + 0x10], 0
je 0x48c280
mov edx, dword [esp + 4]
mov ecx, dword [esi + 0x2c]
push edx
call fcn.00482170
cmp eax, 5
jne 0x48c273
mov eax, 1
mov ecx, dword [esi + 0x2c]
push eax
mov eax, dword [esi + 4]
push eax
call fcn.004822f0
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c2a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
add esp, 8
ret 4

Function at 0x48d7d0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48d7fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop esi
test edx, edx
jg 0x48d81a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
ret
Function at 0x48d880
Capabilities:
Check if file exists
Create process on windows

Disassembly:
sub esp, 0x40
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48d89d
xor al, al
pop esi
add esp, 0x40
ret 4
mov eax, dword [0x514540]
mov edx, dword [eax + 0xc]
push edi
mov ecx, 0x514540
call edx
mov ecx, dword [esi]
add eax, 0x10
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4c]
push eax
push ecx
lea edx, [esp + 0x10]
push str.__fieldsaiKSzn__f__s____s_
push edx
call fcn.00402950
push 0x38
xor edi, edi
lea eax, [esp + 0x24]
push edi
push eax
call fcn.0049e9f0
mov ecx, dword [esi + 4]
mov esi, dword [esp + 0x24]
add esp, 0x1c
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [esp + 0x44]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
test edx, edx
jg 0x48d948
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
pop esi
add esp, 0x40
ret 4
Function at 0x48d9f0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x50
push edi
mov edi, ecx
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48da0a
xor al, al
pop edi
add esp, 0x50
ret
mov eax, dword [edi]
push ebx
push ebp
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.00430d30
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x40]
push ecx
push edx
call fcn.0048e630
mov esi, eax
lea eax, [esp + 0x28]
push eax
push esi
mov dword [esp + 0x28], esi
call fcn.0048e650
mov edx, dword [0x514540]
mov ebx, eax
mov eax, dword [edx + 0xc]
add esp, 0x10
mov ecx, 0x514540
call eax
mov ebp, eax
add ebp, 0x10
mov dword [esp + 0x10], ebp
test ebx, ebx
je 0x48db3e
nop
mov edx, dword [esp + 0x30]
mov ebx, 0xffff0000
test edx, edx
je 0x48dac7
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48da72
sub eax, esi
je 0x48dac7
push edx
lea ecx, [esp + 0x14]
call fcn.0041eef0
mov ebp, dword [esp + 0x10]
push ebp
mov ecx, edi
call fcn.0048d6d0
mov ebx, eax
cmp ebx, 0xffff0000
jne 0x48dac7
lea ecx, [esp + 0x10]
call fcn.0048d820
mov ebp, dword [esp + 0x10]
push 0xffff0002
push ebx
push 0
push 0
push 0
push 0
push 0
push ebp
push 1
lea ecx, [edi + 8]
call fcn.0043e900
mov ebx, eax
mov edx, dword [esp + 0x20]
test edx, edx
je 0x48db24
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48dad4
sub eax, esi
je 0x48db24
push edx
lea ecx, [esp + 0x14]
call fcn.0041eef0
mov ebp, dword [esp + 0x10]
push 0xffff0002
push ebx
push 0
push 0
push 0
push 0
push 0
push ebp
lea esi, [edi + 8]
push 1
mov ecx, esi
call fcn.0043e900
mov ecx, dword [esp + 0x2c]
dec ecx
push ecx
push 0
push 0
push 0
push 0
push 0
push 4
push eax
mov ecx, esi
call fcn.0043e870
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push esi
call fcn.0048e670
add esp, 8
test eax, eax
jne 0x48da60
push esi
call fcn.0048e690
mov eax, dword [edi + 8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 4
push 0xffff0000
push 4
push 0x110a
push eax
call ebx
mov esi, eax
test esi, esi
je 0x48db87
mov ecx, dword [edi + 8]
push esi
push 2
push 0x1102
push ecx
call ebx
mov edx, dword [edi + 8]
push esi
push 1
push 0x110a
push edx
call ebx
mov esi, eax
test esi, esi
jne 0x48db65
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop esi
pop ebp
pop ebx
test edx, edx
jg 0x48dba6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48dbc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
pop edi
add esp, 0x50
ret
Function at 0x48dbd0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x24
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
push 0
mov edi, ecx
mov eax, dword [edi + 8]
push 0
lea esi, [edi + 8]
push 0xb
push eax
call ebx
mov ecx, dword [esi]
push 0xffff0000
push 0
push 0x1101
push ecx
call ebx
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48dc39
push ebp
mov ecx, edi
call fcn.0048d880
test al, al
je 0x48dc39
mov ecx, edi
call fcn.0048d9f0
mov edx, dword [esi]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi]
push 0xffff0000
push 4
push 0x110a
push eax
call ebx
test eax, eax
jne 0x48dc89
mov edx, dword [0x5144c8]
push 0x10
lea ecx, [esp + 0x14]
push ecx
push 0x3ae7
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0xffff0002
push 0xffff0000
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
push 1
mov ecx, esi
call fcn.0043e900
mov ecx, dword [esi]
push 0
push 1
push 0xb
push ecx
call ebx
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049e9d2
add esp, 0x24
ret 4

Function at 0x491b30
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ecx
test ebx, ebx
je 0x491bb8
mov eax, dword [esi + 4]
push edi
mov edi, 0x80000
sub edi, eax
cmp ebx, edi
jbe 0x491bd4
push ebp
mov ebp, dword [esp + 0x14]
test edi, edi
je 0x491b6b
mov ecx, dword [esi]
push edi
add ecx, eax
push ebp
push ecx
call fcn.004a0130
add esp, 0xc
sub ebx, edi
add ebp, edi
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x18]
push edx
push 0x80000
push eax
mov eax, dword [esi + 8]
push eax
call edi
test eax, eax
jne 0x491b8f
call fcn.00404800
mov dword [esi + 4], 0
cmp ebx, 0x80000
jbe 0x491bbd
mov edx, dword [esi + 8]
push 0
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebp
push edx
call edi
test eax, eax
jne 0x491bb6
call fcn.00404800
pop ebp
pop edi
pop esi
pop ebx
ret 8
mov eax, dword [esi]
push ebx
push ebp
push eax
call fcn.004a0130
add esp, 0xc
add dword [esi + 4], ebx
pop ebp
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
push ebx
push ecx
add edx, eax
push edx
call fcn.004a0130
add dword [esi + 4], ebx
add esp, 0xc
pop edi
pop esi
pop ebx
ret 8

Function at 0x491e10
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x491e40
mov ecx, dword [esi]
push 0
lea edx, [esp + 8]
push edx
push eax
mov eax, dword [esi + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x491e39
call fcn.00404800
mov dword [esi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x491e4f
push eax
call fcn.0049f207
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x491e64
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
pop esi
pop ecx
ret
Function at 0x49b160
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push 0
push eax
mov dword [esi + 0x24], 0
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esi + 0x40], 0
je 0x49b198
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx + 8]
push 1
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_BringWindowToTop]
xor eax, eax
pop esi
ret 0x10

Function at 0x49b55c
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x828
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x824], eax
push ebp
mov ebp, dword [esp + 0x830]
push esi
mov esi, ecx
cmp dword [esi + 0x160], 0
je 0x49b6c2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [esi + 0x20], 0
jne 0x49b5ee
sub eax, dword [esi + 0x168]
xor ecx, ecx
mov dword [esp + 8], eax
fild dword [esp + 8]
mov word [esp + 0x1c], cx
test eax, eax
jge 0x49b597
fadd dword [0x4beda4]
fdiv qword [0x4c0690]
mov edx, dword [esp + 0x838]
sub esp, 8
lea eax, [esp + 0x24]
fstp qword [esp]
push ebp
push edx
push 0x3aca
push eax
call fcn.00431910
add esp, 0x18
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
lea edx, [esp + 0xc]
push edx
mov edx, dword [esi + 0x160]
add eax, eax
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x49b5ee
call fcn.00404800
mov eax, dword [esi + 0x160]
test eax, eax
je 0x49b609
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x160], 0
mov ecx, dword [esi + 0x164]
mov eax, dword [esi + 0x15c]
lea edx, [esp + 0xc]
push edx
push ecx
add eax, 8
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 0x4b0
mov dword [esp + 0x1c], 1
mov eax, dword [eax]
push 0x8b1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x49b6c2
mov ecx, dword [esi + 0x15c]
push edi
call fcn.00481510
mov edi, eax
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
push 1
mov ecx, edi
call eax
mov ecx, dword [edi + 0x9c]
test ecx, ecx
je 0x49b68b
movzx edx, byte [esi + 0x21]
movzx eax, byte [esi + 0x1c]
push edx
movzx edx, byte [esi + 0x1d]
push eax
mov eax, dword [esi + 0x10]
push edx
push eax
call fcn.00416180
mov edx, dword [esi + 0x10]
push ebp
push edx
lea eax, [esp + 0x428]
xor ecx, ecx
push 0x3ab0
push eax
mov word [esp + 0x430], cx
call fcn.0042f7e0
mov edx, dword [edi + 8]
add esp, 0x10
lea ecx, [esp + 0x420]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
mov ecx, dword [esp + 0x82c]
pop esi
pop ebp
xor ecx, esp
call fcn.0049e9d2
add esp, 0x828
ret 8
Function at 0x49bad0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
test ecx, ecx
je 0x49bae4
lea esi, [ecx - 0x24]
mov dword [esp + 0x10], esi
jmp 0x49baf0
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x48], 0
mov dword [esp + 0x14], 1
je 0x49bb8d
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, dword [esp + 0x40]
mov edi, eax
push edi
mov ecx, ebx
or ebp, 0xffffffff
call fcn.00402060
test eax, eax
je 0x49bb71
lea edx, [edi + 1]
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [ebx]
mov ebp, eax
test edx, edx
jne 0x49bb48
xor eax, eax
jmp 0x49bb61
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49bb50
sub eax, esi
sar eax, 1
js 0x49bb83
cmp eax, dword [edx - 8]
jg 0x49bb83
mov dword [edx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
cmp ebp, edi
jge 0x49bbe5
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], 0
jmp 0x49bbab
push 0x80070057
call fcn.00401000
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x49bc1a
push 0xffffffffffffffff
add esi, 0x24
call dword [sym.imp.USER32.dll_MessageBeep]
test esi, esi
je 0x49bbbf
lea eax, [esi - 0x24]
jmp 0x49bbc1
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x18
cmp dword [esp + 0x4c], 0
je 0x49bc1a
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
cmp ecx, dword [esp + 0x50]
jle 0x49bc1a
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x1c]
add ecx, 0x24
call fcn.0049b0b0
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x18
Function at 0x49bfd0
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], vtable.WTL::CMessageFilter.0
mov dword [esi], vtable.CGrepDialog.1.0
mov dword [esi + 0x20], vtable.CGrepDialog.0
mov eax, dword [0x514540]
mov edx, dword [eax + 0xc]
push edi
mov ecx, 0x514540
call edx
add eax, 0x10
mov dword [esi + 0x24], eax
mov eax, dword [0x514540]
mov edx, dword [eax + 0xc]
mov ecx, 0x514540
call edx
add eax, 0x10
mov dword [esi + 0x28], eax
mov eax, dword [0x514540]
mov edx, dword [eax + 0xc]
mov ecx, 0x514540
call edx
add eax, 0x10
mov dword [esi + 0x2c], eax
push str.GrepFind
mov dword [esi + 0x3c], ebx
call fcn.00403650
push eax
lea ecx, [esi + 0x40]
call fcn.00416a10
push str.GrepFileType
call fcn.00403650
push eax
lea ecx, [esi + 0x80]
call fcn.00416a10
push str.GrepFolder
call fcn.00403650
push eax
lea ecx, [esi + 0xc0]
call fcn.00416a10
mov eax, dword [esp + 0x10]
mov dword [esi + 0x100], eax
call fcn.00403650
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x18]
push ecx
mov edi, eax
push str.Case
push str.Grep
mov ecx, edi
mov byte [esp + 0x24], bl
call fcn.00403f90
movzx edx, byte [esp + 0x10]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x18]
push eax
push str.Regex
push str.Grep
mov ecx, edi
mov byte [esi + 0x31], dl
mov byte [esp + 0x24], bl
call fcn.00403f90
movzx ecx, byte [esp + 0x10]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x18]
push edx
push str.SubFolder
mov byte [esi + 0x30], cl
push str.Grep
mov ecx, edi
mov byte [esp + 0x24], bl
call fcn.00403f90
movzx eax, byte [esp + 0x10]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x18]
push ecx
push str.UseOutput
push str.Grep
mov ecx, edi
mov byte [esi + 0x32], al
mov byte [esp + 0x24], bl
call fcn.00403f90
movzx edx, byte [esp + 0x10]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x18]
push eax
push str.Invert
push str.Grep
mov ecx, edi
mov byte [esi + 0x34], dl
mov byte [esp + 0x24], bl
call fcn.00403f90
movzx ecx, byte [esp + 0x10]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x18]
push edx
push str.Word
mov byte [esi + 0x33], cl
push str.Grep
mov ecx, edi
mov byte [esp + 0x24], bl
call fcn.00403f90
movzx eax, byte [esp + 0x10]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x18]
push ecx
push str.OnlyFileName
push str.Grep
mov ecx, edi
mov byte [esi + 0x37], al
mov byte [esp + 0x24], bl
call fcn.00403f90
movzx edx, byte [esp + 0x10]
push 0xffffffffffffffff
push 1
lea eax, [esi + 0x36]
push eax
push 0x4c1308
push str.Grep
mov ecx, edi
mov byte [esi + 0x35], dl
call fcn.00403f90
push edi
push 0xbc614e
push str.Encoding
push str.Grep
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x38], eax
cmp eax, 0xbc614e
mov eax, esi
jne 0x49c1ce
mov dword [esi + 0x38], 1
pop edi
pop esi
pop ebx
ret 4
Function at 0x49cc81
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x160], 0
je 0x49cdbd
cmp byte [esi + 0x20], 0
push edi
mov edi, dword [esp + 0x10]
push edi
je 0x49cccf
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esi + 0x160]
push 0
lea ecx, [esp + 0x14]
push ecx
add eax, eax
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edx
call edi
test eax, eax
jne 0x49cd94
call fcn.00404800
jmp 0x49cd94
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esi + 0x160]
push 0
lea ecx, [esp + 0x14]
push ecx
add eax, eax
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edx
call edi
test eax, eax
jne 0x49ccf8
call fcn.00404800
mov eax, dword [0x514540]
mov edx, dword [eax + 0xc]
push ebx
mov ecx, 0x514540
call edx
mov ecx, dword [esp + 0x18]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push eax
inc ecx
push ecx
lea edx, [esp + 0x1c]
push 0x4c13b4
push edx
call fcn.00402950
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx - 0xc]
add esp, 0x10
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [eax + eax]
mov eax, dword [esi + 0x160]
push edx
push ebx
push eax
call edi
test eax, eax
jne 0x49cd51
call fcn.00404800
mov edx, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [edx + edx]
mov edx, dword [esi + 0x160]
push eax
push ecx
push edx
call edi
test eax, eax
jne 0x49cd77
call fcn.00404800
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49cd93
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
pop ebx
mov eax, dword [esi + 0x160]
push 0
lea ecx, [esp + 0x14]
push ecx
push 2
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], 0xa
call edi
pop edi
test eax, eax
jne 0x49cdbd
call fcn.00404800
pop esi
pop ecx
ret 0x14
Function at 0x49dfae
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4da6bc]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0049deed
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0049e9f0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x49dffd
cmp dword [ebp - 0x1c], 5
jb 0x49e015
jmp 0x49e011
cmp dword [ebp - 0x10], 1
jne 0x49e015
cmp dword [ebp - 0x1c], 4
ja 0x49e011
jne 0x49e015
cmp dword [ebp - 0x18], 0
jbe 0x49e015
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4c1464
call fcn.00403d30
test eax, eax
jge 0x49e036
mov byte [0x4dc9c4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0049e9d2
add ebp, 0x78
leave
ret

Function at 0x49e1e8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x514528], 0
push esi
jne 0x49e15b
call fcn.0049e086
test eax, eax
je 0x49e19e
mov eax, dword [0x514528]
cmp eax, 1
jne 0x49e17c
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x49e19e
pop esi
ret
push eax
call dword [0x514530]
test eax, eax
jne 0x49e1e6
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x49e1a2
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x514528]
call dword [0x514530]
mov edi, eax
test edi, edi
je 0x49e1c9
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x49e1e5
lea edi, [esi + 0xff0]
push esi
push dword [0x514528]
call dword [0x51452c]
add esi, 0x10
cmp esi, edi
jb 0x49e1cf
mov eax, esi
pop edi
pop esi
ret
jmp 0x49e148

Function at 0x49e9d2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4da6bc]
jne 0x49e9dc
repz ret
jmp fcn.004a5961