joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ba960
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5580cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
mov esi, ecx
mov eax, 0x50
push edi
lea ecx, [ebp - 0x1c]
mov dword [esi + 0x658], eax
mov dword [esi + 0x65c], eax
mov dword [esi + 0x660], eax
mov eax, 0xfa
mov dword [esi + 0x668], eax
mov dword [esi + 0x66c], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], esp
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x5ba440
push 0
push str.SoftwareDownloadManagerGrabberDlgLS
push 0x80000001
mov dword [ebp - 4], 0
mov dword [esi + 0x654], 0x96
mov dword [esi + 0x664], 0x64
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4baa52
lea ecx, [ebp - 0x128]
call fcn.00459300
push 1
push str.Cannot_open__create__registry_GetAllDlgLS_subkey._n
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 1
call fcn.004593e0
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0
call fcn.004593d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x18]
push edx
push eax
push 0
push 0
mov ebx, 4
push str.FileName
push ecx
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
jne 0x4baa84
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x654], edx
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
push ecx
push 0
push 0
push str.FileType
push edx
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
jne 0x4baaab
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x658], eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
push ecx
push edx
push 0
push 0
push str.Size
push eax
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
jne 0x4baad2
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x65c], ecx
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x18]
push edx
push eax
push 0
push 0
push 0x59e630
push ecx
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
jne 0x4baaf9
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x660], edx
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
push ecx
push 0
push 0
push 0x59dff4
push edx
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
jne 0x4bab20
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x664], eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
push ecx
push edx
push 0
push 0
push 0x59a2ec
push eax
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
jne 0x4bab47
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x668], ecx
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x18]
push edx
push eax
push 0
push 0
push str.SaveTo
push ecx
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
jne 0x4bab6e
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x66c], edx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bc9c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5582c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x5b5ecc]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push ecx
xor edi, edi
push str._s_tvlda.pdb
push edx
mov dword [esp + 0x30], edi
call fcn.0053091a
mov eax, dword [esp + 0x1c]
add esp, 0xc
push edi
push edi
push 4
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x2c], ebp
jne 0x4bca3a
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], eax
call fcn.00537b04
xor eax, eax
jmp 0x4bcb57
lea ecx, [esp + 0x14]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4bca76
test edi, edi
jne 0x4bca76
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4bca76
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.00537b04
xor eax, eax
jmp 0x4bcb57
mov edx, dword [esp + 0x14]
push 1
push 0
push 0
push edx
call fcn.0051ec30
add ebx, eax
adc edi, edx
mov eax, ebx
or eax, edi
je 0x4bcb3a
push 0
push 0xc
push edi
push ebx
call fcn.0051e210
mov ebp, eax
mov eax, dword [esi + 8]
cmp ebp, eax
jl 0x4bcb03
mov eax, dword [esi + 0xc]
push eax
call fcn.005380ca
lea eax, [ebp + 0x1f4]
mov dword [esi + 8], eax
lea ecx, [eax + eax*2]
shl ecx, 2
push ecx
call fcn.005380a1
mov edi, eax
mov eax, dword [esi + 8]
mov dword [esi + 0xc], edi
add esp, 8
lea ecx, [eax + eax*2]
xor eax, eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4bcb03
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00537b04
xor eax, eax
jmp 0x4bcb57
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push 0
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4bcb33
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00537b04
xor eax, eax
jmp 0x4bcb57
mov dword [esi + 4], ebp
mov ebp, dword [esp + 0x2c]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00537b04
mov eax, 1
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x4bcb70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5582eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
mov ecx, dword [esi + 0x26c]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push eax
add ecx, 0x478
push edi
mov dword [ebp - 4], ebx
call fcn.00483cc0
cmp eax, ebx
jne 0x4bcc37
cmp edi, ebx
jl 0x4bcc37
mov ecx, dword [esi + 0x26c]
cmp edi, dword [ecx + 0xb0]
jge 0x4bcc37
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0xb8], 0x5602e8
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
lea edx, [ebp - 0xb8]
push ebx
push edx
push edi
add ecx, 8
mov byte [ebp - 4], 1
call fcn.00510d00
test al, al
jne 0x4bcc4a
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0
call fcn.0043c730
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4bcc28
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [0x5ba974]
mov eax, dword [ebp - 0x54]
neg ecx
sbb ecx, ecx
lea edx, [esi + 0x2a4]
and ecx, 8
add ecx, 0x18
push ecx
mov ecx, dword [esi + 0x520]
push edx
push eax
push ecx
lea ecx, [esi + 0x5c]
call fcn.004be4a0
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x4bcd69
push eax
call fcn.0053acde
cmp eax, ebx
jne 0x4bcca4
xor eax, eax
jmp 0x4bcca7
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x2a0]
push ebx
push eax
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov ecx, dword [esi + 0x26c]
push edi
add ecx, 0x478
mov ebx, eax
call fcn.004bd360
mov dword [eax], ebx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esi + 0x5f4], 4
jne 0x4bcd69
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jl 0x4bcd69
mov eax, dword [esi + 0x2b8]
test eax, eax
jl 0x4bcd0b
xor eax, eax
cmp eax, dword [esi + 0x2c8]
jge 0x4bcd0b
mov edx, dword [esi + 0x2c4]
cmp dword [edx + eax*4], edi
jne 0x4bcd74
mov ecx, eax
lea eax, [ebp - 0xe8]
push 1
push eax
push ecx
lea ecx, [esi + 0x504]
call fcn.00531bb8
mov edx, dword [esi + 0x520]
lea ecx, [ebp - 0xc8]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0xe8]
lea ecx, [ebp - 0xc8]
push eax
lea edx, [ebp - 0xd8]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4bcd69
mov ecx, dword [esi + 0x520]
lea eax, [ebp - 0xd8]
push 1
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x4bcc28
inc eax
jmp 0x4bccf6
Function at 0x4be320
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov edx, dword [0x5ba8bc]
push edi
mov edi, ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0
push str.startImmediately
push edx
mov dword [esp + 0x20], 4
call esi
test eax, eax
jne 0x4be361
mov eax, dword [esp + 0xc]
test eax, eax
setne al
mov byte [edi + 4], al
mov eax, dword [0x5ba8bc]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0
push str.StImmMsg
push eax
mov dword [esp + 0x20], 4
call esi
test eax, eax
jne 0x4be38c
mov byte [edi + 5], 1
pop edi
pop esi
add esp, 8
ret
Function at 0x4bea70
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558570
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
cmp esi, ebx
mov dword [ebp - 0x10], esp
mov edx, ecx
mov dword [ebp - 4], ebx
je 0x4bec06
mov ecx, 0x58
xor eax, eax
lea edi, [ebp - 0x184]
mov dword [ebp + 0xc], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp + 0xc]
mov ecx, edx
push eax
push 0x566280
push 2
call fcn.004be990
cmp eax, ebx
je 0x4beaec
push 0x410c
lea ecx, [ebp - 0x184]
push 0x160
push ecx
push ebx
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov dword [ebp + 0xc], eax
jmp 0x4beb05
push 0x400c
lea edx, [ebp - 0x184]
push 0x160
push edx
push ebx
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x180]
mov ecx, dword [ebp + 0xc]
push 1
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [ebp + 0x10], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi]
mov dword [ebp + 8], eax
xor eax, eax
push 5
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetSysColorBrush]
lea ecx, [ebp - 0x24]
push eax
push ecx
push edi
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x14]
push 3
push 0
push 0
push 0x30
push 0x30
sub eax, 0x30
push edx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi]
sub eax, 0x30
cdq
sub eax, edx
sar eax, 1
push eax
push edi
call dword [sym.imp.USER32.dll_DrawIconEx]
mov ecx, dword [esi + 4]
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
push 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_GetSysColorBrush]
lea edx, [ebp - 0x24]
push eax
push edx
push edi
call dword [sym.imp.USER32.dll_FrameRect]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ecx, dword [ebp + 8]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call esi
push ebx
call esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4bf630
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push edi
mov edi, ecx
push eax
push 0
push edi
push 0x4bf6a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4bf67f
mov eax, dword [0x5bac2c]
test eax, eax
jne 0x4bf681
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 0
call esi
mov eax, dword [0x5bac2c]
test eax, eax
je 0x4bf65f
mov dword [edi + 0x24], eax
pop esi
mov dword [0x5bac2c], 0
pop edi
pop ecx
ret
xor eax, eax
mov dword [edi + 0x24], eax
mov dword [0x5bac2c], 0
pop edi
pop ecx
ret

Function at 0x4bf970
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558696
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
xor eax, eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [esi + 4], 0x566514
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x11
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0xa
mov dword [ebp - 4], eax
mov dword [esi + 0x28], vtable.CMenu.0
mov dword [esi + 0x2c], eax
mov dword [esi], 0x566510
mov byte [ebp - 4], 2
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
call fcn.00541dd4
call fcn.00541dd4
mov eax, dword [eax + 0xc]
push 0x120
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bfc20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5586e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
cmp dword [esi + 0x20], 0x7530
jg 0x4bfdc9
lea eax, [esi + 0x30]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x20]
lea eax, [ebp - 0x14]
inc edx
lea edi, [esi + 4]
mov ebx, edx
push eax
push ebx
mov ecx, edi
mov dword [esi + 0x20], edx
call fcn.00483cc0
test eax, eax
jne 0x4bfcbb
mov eax, dword [edi + 4]
test eax, eax
jne 0x4bfc97
mov ecx, dword [edi + 8]
push 1
push ecx
mov ecx, edi
call fcn.00497690
mov ecx, edi
call fcn.004c0510
mov edx, dword [ebp - 0x14]
mov dword [eax + 8], ebx
mov dword [eax + 4], edx
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ecx + edx*4]
mov dword [eax], ecx
mov edx, dword [edi + 4]
mov ecx, dword [ebp - 0x14]
mov dword [edx + ecx*4], eax
mov edi, dword [ebp + 8]
mov dword [eax + 0xc], edi
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x4bfd34
mov ecx, esi
call fcn.004bf630
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4bfd8b
mov dword [ebp - 0x6c], eax
mov eax, dword [esi + 0x48]
test eax, eax
mov dword [ebp - 0x70], 0x58
mov dword [ebp - 0x68], 0x2712
mov ecx, 1
je 0x4bfcff
mov ecx, 3
mov dword [ebp - 0x5c], eax
mov edx, dword [0x5badfc]
push 0x40
lea eax, [ebp - 0x58]
or ecx, 4
push edx
push eax
mov dword [ebp - 0x64], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0x8064
push ecx
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov ecx, esi
call fcn.004bfba0
jmp 0x4bfd8b
mov ecx, dword [0x5bac34]
test ecx, ecx
je 0x4bfd8b
push 1
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [0x5bae18]
mov ebx, dword [sym.imp.USER32.dll_AppendMenuA]
mov dword [0x5bac34], 0
mov eax, dword [esi + 0x2c]
push edx
push 0x401
push 0
push eax
call ebx
mov ecx, dword [esi + 0x2c]
push 0
push 0
push 0x800
push ecx
call ebx
mov edx, dword [esi + 0x2c]
push 0
push 0x400
push edx
call dword [sym.imp.USER32.dll_DeleteMenu]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4bfdbf
lea eax, [ebp - 0xb0]
push 0x3f
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x2c]
lea ecx, [ebp - 0xb0]
add edx, 0x401
push ecx
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_AppendMenuA]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c0290
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x40
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x10]
push edi
neg eax
sbb eax, eax
test eax, eax
je 0x4c0333
mov ebp, dword [esp + 0x54]
cmp eax, 0xffffffff
mov edx, eax
jne 0x4c02cd
mov esi, dword [ebx + 0xc]
xor eax, eax
test esi, esi
jbe 0x4c02cd
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
test edx, edx
jne 0x4c02cd
inc eax
add ecx, 4
cmp eax, esi
jb 0x4c02bf
mov ecx, dword [edx]
test ecx, ecx
jne 0x4c02f2
mov eax, dword [edx + 4]
mov edi, dword [ebx + 0xc]
inc eax
cmp eax, edi
jae 0x4c02f2
mov ecx, dword [ebx + 8]
lea esi, [ecx + eax*4]
mov ecx, dword [esi]
test ecx, ecx
jne 0x4c02f2
inc eax
add esi, 4
cmp eax, edi
jb 0x4c02e4
mov edi, dword [edx + 0xc]
mov esi, dword [edx + 8]
cmp edi, ebp
mov eax, ecx
je 0x4c030c
test ecx, ecx
jne 0x4c02ac
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4
lea edx, [esp + 0x10]
push 0x3f
push edx
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [ebx + 0x2c]
lea ecx, [esp + 0x10]
lea eax, [esi + 0x401]
push ecx
push eax
push 0
push eax
push edx
call dword [sym.imp.USER32.dll_ModifyMenuA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4

Function at 0x4c0710
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5587e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebx + 4]
cmp esi, 0xffffffff
je 0x4c076a
mov edx, dword [esp + 0x1c]
push edi
lea eax, [esp + 0x20]
push 0
push eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x20]
push 0
push ecx
push 2
push 0x59890c
push edx
call esi
pop edi
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4c0780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55880b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [edi + 4]
mov dword [ebp - 4], ebx
cmp eax, 0xffffffff
je 0x4c088b
push 0x5ad278
lea ecx, [ebp - 0x14]
call fcn.00537b72
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0x18], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push 1
push ecx
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 2
call fcn.004e1180
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push edx
call fcn.00537f1c
cmp dword [esi + 0x38], ebx
je 0x4c080b
push str._r_nreferer:
lea ecx, [ebp - 0x14]
call fcn.00537ee0
mov eax, dword [esi + 0x38]
lea ecx, [ebp - 0x14]
push eax
call fcn.00537ee0
cmp dword [esi + 0x3c], ebx
je 0x4c0829
push str._r_ncookie:
lea ecx, [ebp - 0x14]
call fcn.00537ee0
mov ecx, dword [esi + 0x3c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00537ee0
mov edx, dword [esi + 0x1f8]
add esi, 0x1f8
cmp dword [edx - 8], ebx
je 0x4c0850
push str._r_npd:
lea ecx, [ebp - 0x14]
call fcn.00537ee0
push esi
lea ecx, [ebp - 0x14]
call fcn.00537f1c
push str._r_n__r_n
lea ecx, [ebp - 0x14]
call fcn.00537ee0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
push ebx
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00537b04
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00537b04
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c10e0
Capabilities:
Parse url

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5588c8
push eax
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov ebp, ecx
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x7d0
cmp ecx, edi
ja 0x4c1305
push ebx
call fcn.004c1070
lea ecx, [ebp + 0x40]
mov byte [ebp + 0x111c], al
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x38], ecx
lea ecx, [ebp + 0x810]
mov dword [ebp + 0x1118], eax
mov dword [ebp + 0x14], ecx
lea ecx, [ebp + 0x110c]
mov dword [ebp + 8], ecx
lea ecx, [ebp + 0x93c]
add esp, 4
lea eax, [ebp + 4]
mov dword [ebp + 0x30], ecx
lea ecx, [ebp + 0x8d8]
mov dword [eax], 0x3c
mov dword [ebp + 0x3c], edi
mov esi, 0x64
mov dword [ebp + 0x34], edi
lea edx, [ebp + 0x874]
mov dword [ebp + 0x20], ecx
push eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x2c], esi
mov dword [ebp + 0xc], 0xa
mov dword [ebp + 0x24], esi
mov dword [ebp + 0x28], edx
mov word [ebp + 0x1c], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x4c1305
push 3
lea edi, [ebp + 0x110c]
push 0x597ff0
push edi
call fcn.0051e650
add esp, 0xc
test eax, eax
je 0x4c1222
push 3
push 0x597fe4
push edi
call fcn.0051e650
add esp, 0xc
test eax, eax
je 0x4c1222
lea eax, [ebp + 0x93c]
push 0x25
push eax
call fcn.0051c7f0
add esp, 8
test eax, eax
je 0x4c1222
mov ecx, 3
mov edi, 0x5ad31c
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4c1300
mov cl, byte [eax + 1]
inc eax
test cl, cl
je 0x4c121d
push 0x25
push eax
call fcn.0051c7f0
add esp, 8
test eax, eax
jne 0x4c11f0
mov esi, 0x64
lea eax, [ebp + 0x40]
lea ecx, [esp + 0x20]
push eax
call fcn.00537b72
lea eax, [ebp + 4]
mov ecx, 0x7d0
mov dword [ebp + 0x3c], ecx
mov dword [ebp + 0x34], ecx
mov dword [eax], 0x3c
push eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x2c], esi
mov dword [ebp + 0xc], 0xa
mov dword [ebp + 0x24], esi
push 0x10000000
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], 0
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x4c128e
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.00537b04
xor eax, eax
jmp 0x4c1305
mov al, byte [ebp + 0x111c]
test al, al
je 0x4c12a9
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x30]
push eax
push ecx
call fcn.004fc050
add esp, 8
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
push 0x597fe4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [ebp + 0x110c]
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 0x38]
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00524fd0
add esp, 8
test eax, eax
jne 0x4c12ef
cmp word [ebp + 0x1c], ax
jne 0x4c12ef
mov word [ebp + 0x1c], 0x6db
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.00537b04
mov eax, 1
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8