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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56333b
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 0x5c6ff0
push 0
push str.SoftwareDownloadManagerGrabberDlgLS
push reloc.WSOCK32.dll_accept
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 0x4c28d2
lea ecx, [ebp - 0x128]
call fcn.0045eaa0
push 1
push str.Cannot_open__create__registry_GetAllDlgLS_subkey._n
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 1
call fcn.0045eb80
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0
call fcn.0045eb70
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 0x4c2904
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 0x4c292b
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 0x4c2952
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 str.Status
push ecx
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
jne 0x4c2979
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 str.Description
push edx
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
jne 0x4c29a0
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 0x5a65c8
push eax
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
jne 0x4c29c7
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 0x4c29ee
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 0x4c4840
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x563538
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x5c2a74]
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.0053afda
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 0x4c48ba
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], eax
call fcn.005421be
xor eax, eax
jmp 0x4c49d7
lea ecx, [esp + 0x14]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4c48f6
test edi, edi
jne 0x4c48f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4c48f6
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.005421be
xor eax, eax
jmp 0x4c49d7
mov edx, dword [esp + 0x14]
push 1
push 0
push 0
push edx
call fcn.005291e0
add ebx, eax
adc edi, edx
mov eax, ebx
or eax, edi
je 0x4c49ba
push 0
push 0xc
push edi
push ebx
call fcn.00528840
mov ebp, eax
mov eax, dword [esi + 8]
cmp ebp, eax
jl 0x4c4983
mov eax, dword [esi + 0xc]
push eax
call fcn.00542796
lea eax, [ebp + 0x1f4]
mov dword [esi + 8], eax
lea ecx, [eax + eax*2]
shl ecx, 2
push ecx
call fcn.0054276d
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 0x4c4983
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.005421be
xor eax, eax
jmp 0x4c49d7
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 0x4c49b3
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.005421be
xor eax, eax
jmp 0x4c49d7
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.005421be
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 0x4c49f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56355b
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.004c83c0
cmp eax, ebx
jne 0x4c4ab7
cmp edi, ebx
jl 0x4c4ab7
mov ecx, dword [esi + 0x26c]
cmp edi, dword [ecx + 0xb0]
jge 0x4c4ab7
mov eax, dword [0x5c2a74]
mov dword [ebp - 0xb8], 0x56b594
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.0051b270
test al, al
jne 0x4c4aca
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0
call fcn.0043fb90
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 0x4c4aa8
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [0x5c7564]
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.004c6320
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x4c4be9
push eax
call fcn.005453b0
cmp eax, ebx
jne 0x4c4b24
xor eax, eax
jmp 0x4c4b27
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.004c51e0
mov dword [eax], ebx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esi + 0x5f4], 4
jne 0x4c4be9
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jl 0x4c4be9
mov eax, dword [esi + 0x2b8]
test eax, eax
jl 0x4c4b8b
xor eax, eax
cmp eax, dword [esi + 0x2c8]
jge 0x4c4b8b
mov edx, dword [esi + 0x2c4]
cmp dword [edx + eax*4], edi
jne 0x4c4bf4
mov ecx, eax
lea eax, [ebp - 0xe8]
push 1
push eax
push ecx
lea ecx, [esi + 0x504]
call fcn.0053c278
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 0x4c4be9
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 0x4c4aa8
inc eax
jmp 0x4c4b76
Function at 0x4c61a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov edx, dword [0x5c74b0]
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 0x4c61e1
mov eax, dword [esp + 0xc]
test eax, eax
setne al
mov byte [edi + 4], al
mov eax, dword [0x5c74b0]
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 0x4c620c
mov byte [edi + 5], 1
pop edi
pop esi
add esp, 8
ret
Function at 0x4c68f0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5637e0
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 0x4c6a86
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 0x571af0
push 2
call fcn.004c6810
cmp eax, ebx
je 0x4c696c
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 0x4c6985
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 0x4c74e0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push edi
mov edi, ecx
push eax
push 0
push edi
push 0x4c7550
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4c752f
mov eax, dword [0x5c7828]
test eax, eax
jne 0x4c7531
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 0
call esi
mov eax, dword [0x5c7828]
test eax, eax
je 0x4c750f
mov dword [edi + 0x24], eax
pop esi
mov dword [0x5c7828], 0
pop edi
pop ecx
ret
xor eax, eax
mov dword [edi + 0x24], eax
mov dword [0x5c7828], 0
pop edi
pop ecx
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563906
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], 0x571d84
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], 0x571d80
mov byte [ebp - 4], 2
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
call fcn.0054c4a1
call fcn.0054c4a1
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 0x4c7b30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563970
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 0x4c7cd9
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.004c83c0
test eax, eax
jne 0x4c7bcb
mov eax, dword [edi + 4]
test eax, eax
jne 0x4c7ba7
mov ecx, dword [edi + 8]
push 1
push ecx
mov ecx, edi
call fcn.00445550
mov ecx, edi
call fcn.004c8400
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 0x4c7c44
mov ecx, esi
call fcn.004c74e0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4c7c9b
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 0x4c7c0f
mov ecx, 3
mov dword [ebp - 0x5c], eax
mov edx, dword [0x5c7a54]
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.004c7ab0
jmp 0x4c7c9b
mov ecx, dword [0x5c7830]
test ecx, ecx
je 0x4c7c9b
push 1
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [0x5c7a70]
mov ebx, dword [sym.imp.USER32.dll_AppendMenuA]
mov dword [0x5c7830], 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 0x4c7ccf
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 0x4c81a0
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 0x4c8243
mov ebp, dword [esp + 0x54]
cmp eax, 0xffffffff
mov edx, eax
jne 0x4c81dd
mov esi, dword [ebx + 0xc]
xor eax, eax
test esi, esi
jbe 0x4c81dd
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
test edx, edx
jne 0x4c81dd
inc eax
add ecx, 4
cmp eax, esi
jb 0x4c81cf
mov ecx, dword [edx]
test ecx, ecx
jne 0x4c8202
mov eax, dword [edx + 4]
mov edi, dword [ebx + 0xc]
inc eax
cmp eax, edi
jae 0x4c8202
mov ecx, dword [ebx + 8]
lea esi, [ecx + eax*4]
mov ecx, dword [esi]
test ecx, ecx
jne 0x4c8202
inc eax
add esi, 4
cmp eax, edi
jb 0x4c81f4
mov edi, dword [edx + 0xc]
mov esi, dword [edx + 8]
cmp edi, ebp
mov eax, ecx
je 0x4c821c
test ecx, ecx
jne 0x4c81bc
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 0x4c8600
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x563a50
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 0x4c865a
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 0x5a495c
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 0x4c8670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563a7b
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 0x4c877b
push 0x5b9d3c
lea ecx, [ebp - 0x14]
call fcn.0054222c
mov eax, dword [0x5c2a74]
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.004ea0e0
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push edx
call fcn.005425d6
cmp dword [esi + 0x38], ebx
je 0x4c86fb
push str._r_nreferer:
lea ecx, [ebp - 0x14]
call fcn.0054259a
mov eax, dword [esi + 0x38]
lea ecx, [ebp - 0x14]
push eax
call fcn.0054259a
cmp dword [esi + 0x3c], ebx
je 0x4c8719
push str._r_ncookie:
lea ecx, [ebp - 0x14]
call fcn.0054259a
mov ecx, dword [esi + 0x3c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0054259a
mov edx, dword [esi + 0x20c]
add esi, 0x20c
cmp dword [edx - 8], ebx
je 0x4c8740
push str._r_npd:
lea ecx, [ebp - 0x14]
call fcn.0054259a
push esi
lea ecx, [ebp - 0x14]
call fcn.005425d6
push str._r_n__r_n
lea ecx, [ebp - 0x14]
call fcn.0054259a
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.005421be
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.005421be
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 0x4c9a50
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x563ba0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfac
push ebx
mov edx, dword [0x5c74b0]
push ebp
mov ebp, ecx
push esi
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x7e8]
push eax
push ecx
push 0
push 0
mov esi, 0x7d0
push str.Extensions
push edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4c9aac
xor eax, eax
jmp 0x4c9baa
mov ebx, dword [esp + 0xfcc]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, esi
jae 0x4c9baa
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x10], esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x30000000
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x1c]
and ecx, 3
lea eax, [esp + 0x1c]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
lea ecx, [esp + 0x7e8]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, ebp
call fcn.004c9920
mov ebp, eax
test ebp, ebp
jne 0x4c9ba8
push 0x3f
push ebx
call fcn.00526d60
add esp, 8
test eax, eax
je 0x4c9ba8
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x30000000
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x1c]
and ecx, 3
mov dword [esp + 0x14], 0x7d0
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
lea ecx, [esp + 0x18]
push 0x3f
push ecx
call fcn.00526d60
add esp, 8
test eax, eax
je 0x4c9ba8
mov ecx, dword [esp + 0x14]
mov byte [eax], 0
lea edx, [esp + 0x7e8]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.004c9920
mov ebp, eax
mov eax, ebp
mov ecx, dword [esp + 0xfbc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xfb8
ret 4