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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x631aca], 0
je 0x47f713
cmp byte [ebp + 8], 0
je 0x47f816
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.SOFTWAREAdobeAdobe_AcrobatDCInstaller_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47f80f
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x47f80f
cmp byte [0x631aca], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 4
jne 0x47f78d
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.bIsSingleClientApp
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47f78d
cmp dword [ebp - 0xc], 4
jne 0x47f78d
cmp dword [ebp - 8], eax
setne byte [0x631ac9]
cmp byte [0x631ac9], 0
je 0x47f806
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.bIsSCAcroAppInstalled
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47f7cd
cmp dword [ebp - 0xc], 4
jne 0x47f7cd
cmp dword [ebp - 8], eax
setne byte [0x631ac8]
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.SCAPackageLevel
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47f806
mov eax, dword [0x62b004]
cmp dword [ebp - 0xc], 4
cmove eax, dword [ebp - 8]
mov dword [0x62b004], eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x631aca], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret
Function at 0x47f870
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a155c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x62cf50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [ebp + 0xc]
lea esi, [edi + 0x38]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
mov dword [esi], 0
mov dword [esi + 4], 0
push 0x18
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
lfence
call fcn.00406b5e
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor ecx, ecx
mov dword [ebp - 4], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 7
mov word [edi + 0x40], cx
mov dword [edi + 0x68], ecx
mov dword [edi + 0x6c], 7
mov word [edi + 0x58], cx
xor eax, eax
mov dword [edi + 0x80], ecx
mov dword [edi + 0x84], 7
mov word [edi + 0x70], ax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
lea eax, [edi + 0x14]
push eax
mov byte [ebp - 4], 3
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], ecx
mov dword [edi], ecx
mov byte [edi + 0xc], cl
mov byte [edi + 0x88], cl
mov dword [edi + 0x8c], ecx
mov dword [edi + 0x90], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x47f979
mov edx, ecx
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x47f960
sub edx, esi
sar edx, 1
push edx
push ecx
lea ecx, [edi + 0x40]
call fcn.00409db0
test ebx, ebx
je 0x47f99b
mov edx, ebx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x47f982
sub edx, esi
lea ecx, [edi + 0x58]
sar edx, 1
push edx
push ebx
call fcn.00409db0
call fcn.0047f320
cmp eax, 0x68
jl 0x47f9da
push 0x5b4660
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x47f9da
push str.GetNamedPipeServerProcessId
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNamedPipeClientProcessId
push esi
mov dword [edi + 0x8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x90], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4804f0
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x14], eax
xor esi, esi
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x48062f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push 0x190000
push 3
push esi
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48058f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x48061a
push dword [ebp + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x48061a
push esi
push 0x190000
push 3
push esi
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x48061a
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x48060e
cmp dword [ebp + 0x24], esi
je 0x4805da
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx + 0x8c]
test ebx, ebx
je 0x4805da
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push edi
mov ecx, ebx
call dword [0x5b1854]
call ebx
test eax, eax
je 0x4805da
mov eax, dword [ebp - 8]
test eax, eax
je 0x4805da
cmp eax, dword [ebp + 0x24]
je 0x4805da
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 8], eax
jne 0x48060e
push 0
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x48060e
push 0
push dword [ebp - 0x10]
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
mov esi, eax
cmp edi, 0xffffffff
je 0x48061a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004016cd
mov esp, ebp
pop ebp
ret 0x20
Function at 0x480b90
Capabilities:
Check if file exists
Check mutex on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0x635558
push 0x208
call fcn.0041e564
mov esi, eax
add esp, 8
test esi, esi
je 0x480d61
push edi
push 0x208
push 0
push esi
call fcn.0056aed0
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.0056aed0
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0056aed0
add esp, 0x24
mov dword [ebp - 0x420], 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
push 0x105
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
push 0x105
lea eax, [ebp - 0x41c]
push eax
push 0x5b485c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x480c92
mov edi, dword [ebp - 0x420]
xor ecx, ecx
nop dword [eax]
cmp ecx, 0x103
je 0x480c8c
mov eax, 0xcccccccd
mul edi
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub edi, eax
mov ax, word [edi*2 + str.0123456789]
mov edi, edx
mov word [esi + ecx*2], ax
inc ecx
test edi, edi
jne 0x480c60
xor eax, eax
mov word [esi + ecx*2], ax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x480cd2
push str.GlobalARM_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x480d3e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.thsnYaVieBoda
push 0x104
push esi
lfence
call fcn.004471d0
mov edi, str..pipe32B6B37A_4A7D_4e00_95F2_6F0BF3DE3E00
mov edx, 0x104
mov ecx, ebx
sub edi, ebx
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x480cfe
movzx eax, word [edi + ecx]
test ax, ax
je 0x480cfe
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x480ce0
test edx, edx
lea eax, [ecx - 2]
pop edi
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x480d61
push esi
push 0x104
push ebx
call fcn.004471d0
test eax, eax
js 0x480d61
push esi
lfence
call fcn.0041e935
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x480cbf
cmp dword [ebp + 0xc], 0
jne 0x480cbf
push str.TsnIorcAeBoda
jmp 0x480cc4
mov ecx, dword [ebp - 4]
mov eax, 8
pop esi
xor ecx, ebp
pop ebx
call fcn.004016cd
mov esp, ebp
pop ebp
ret
Function at 0x480d80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push esi
push 0x190000
push 3
push esi
push esi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x480dd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0xd
pop esi
cmove eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 3
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x480e08
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x480e1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, 0xd
test esi, esi
cmove esi, eax
jmp 0x480eb0
cmp dword [ebp + 0x10], esi
je 0x480eb0
push edi
mov dword [ebp - 0xc], esi
xor edi, edi
nop
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x480e78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, 0xd
test esi, esi
cmove esi, eax
cmp esi, 0xe8
jne 0x480e83
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
jl 0x480e30
jmp 0x480e83
cmp dword [ebp - 8], 4
je 0x480e87
mov esi, 0xd
test esi, esi
jne 0x480eaf
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp - 0xc]
inc ecx
cmp eax, ecx
mov dword [ebp - 8], eax
push edx
lea eax, [ebp - 0x10]
mov esi, 0xd
push eax
push 4
lea eax, [ebp - 8]
cmove esi, edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004016cd
mov esp, ebp
pop ebp
ret
Function at 0x487620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1de6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x430], 0
push 0x404
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.0056aed0
add esp, 0xc
mov dword [ebp - 0x420], 0
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call fcn.00409830
mov esi, eax
mov dword [ebp - 0x428], esi
test esi, esi
jne 0x4876d6
push 2
push eax
push edi
call fcn.00409830
mov esi, eax
mov dword [ebp - 0x428], eax
test esi, esi
jne 0x4876d6
call fcn.00484b60
mov edi, eax
jmp 0x4877c4
push dword [ebp - 0x424]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4876f4
call fcn.00484b60
jmp 0x4877b7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x487712
call fcn.00484b60
jmp 0x4877b7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x42c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x487733
mov edi, 0x8007000e
jmp 0x4877b9
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x420]
push eax
lfence
call fcn.00484970
jmp 0x487760
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x487777
mov edi, 0x8007000e
jmp 0x4877b9
push edi
lfence
push dword [ebp - 0x420]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x48779a
call fcn.00484b60
jmp 0x4877b7
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.00487470
mov edi, eax
test esi, esi
je 0x4877c4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x4877dd
lea ecx, [ebp - 0x420]
call fcn.00485d90
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret 0x10
Function at 0x48fb00
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x20019
push 0
push 0x5b7930
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48fb4f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48fb89
push str.Application
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret
Function at 0x48ffe0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2506
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x428], ecx
mov eax, dword [ebp + 8]
lea esi, [ecx + 4]
push esi
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x440], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp - 0x424]
mov dword [ebp - 4], 0
test edi, edi
je 0x4900df
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0056aed0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
jle 0x4900df
cmp eax, 0x103
jae 0x4900df
lea eax, [ebp - 0x218]
push str.STATIC
push eax
call fcn.0040d741
add esp, 8
test eax, eax
jne 0x4900df
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
lfence
call fcn.0056aed0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x4900df
cmp eax, 0x103
jae 0x4900df
lea eax, [ebp - 0x420]
push str.swBrowser
push eax
call fcn.0040d741
add esp, 8
test eax, eax
sete bl
jmp 0x4900e1
xor bl, bl
mov edi, dword [ebp - 0x428]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x43c]
push eax
lea ecx, [edi + 0x34]
call fcn.004270b0
mov ecx, dword [ebp - 0x434]
cmp byte [ecx + 0xd], 0
jne 0x490114
mov eax, dword [ebp - 0x424]
cmp eax, dword [ecx + 0x10]
jae 0x490192
cmp dword [edi + 0x38], 0xaaaaaaa
je 0x4901c1
mov edi, dword [edi + 0x34]
lea eax, [ebp - 0x424]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x428]
add eax, 0x34
mov dword [ebp - 0x430], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x42c], 0
push 0x18
lfence
call fcn.00406b5e
mov ecx, dword [ebp - 0x424]
add esp, 4
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x428]
push eax
push dword [ebp - 0x438]
mov byte [eax + 0x14], 0
push dword [ebp - 0x43c]
mov dword [eax], edi
lea ecx, [ecx + 0x34]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov word [eax + 0xc], 0
call fcn.00411290
mov ecx, eax
mov byte [ecx + 0x14], bl
push esi
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret 4
call fcn.0047ea70
int3
Function at 0x490940
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a257b
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x440], ax
lea eax, [ebp - 0x440]
push eax
push 1
push 0
push str.4021007
call fcn.0040e3b0
add esp, 0x10
movzx eax, ax
cmp word [ebp - 0x440], 0
je 0x4909b9
lea eax, [ebp - 0x440]
push eax
push 0
push 0
push str.4021007
call fcn.0040e3b0
add esp, 0x10
movzx eax, ax
test ax, ax
jne 0x4909c5
xor al, al
jmp 0x490b75
xor bl, bl
test esi, esi
je 0x490b73
cmp esi, 0xffff
je 0x490b73
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x490b73
cmp dword [0x631bf4], 0
je 0x490b73
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x43c], 0
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x490b73
mov eax, dword [ebp - 0x43c]
test eax, eax
je 0x490b73
cmp eax, dword [0x631bf4]
jne 0x490b73
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0056aed0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
jle 0x490b73
cmp eax, 0x103
jae 0x490b73
push dword [0x62b3f4]
lea eax, [ebp - 0x218]
push eax
call fcn.0040d741
add esp, 8
test eax, eax
jne 0x490b73
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
lfence
call fcn.0056aed0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, eax
test esi, esi
jle 0x490ade
cmp esi, 0x103
jae 0x490adc
push dword [0x62b3f0]
lea eax, [ebp - 0x420]
push eax
call fcn.0040d741
add esp, 8
test eax, eax
je 0x490af3
test esi, esi
jne 0x490b73
mov eax, dword [0x62b3f0]
cmp word [eax], 0
jne 0x490b73
push dword [ebp - 0x43c]
lea eax, [ebp - 0x438]
push eax
call fcn.00471670
add esp, 8
cmp dword [ebp - 0x428], 0
mov dword [ebp - 4], 0
je 0x490b4e
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push dword [0x62b3f8]
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.0040d741
add esp, 8
test eax, eax
jne 0x490b4e
lea ecx, [ebp - 0x438]
mov bl, 1
call fcn.0040a580
jmp 0x490b73
mov ecx, dword [ebp - 0x424]
mov dword [ebp - 4], 1
cmp ecx, 8
jb 0x490b73
inc ecx
push ecx
push dword [ebp - 0x438]
lea ecx, [ebp - 0x438]
call fcn.0040a5e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret
Function at 0x492090
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2663
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x62cf50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], edi
mov dword [edi + 0x24], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x2c], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x24]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x14], eax
mov al, byte [ebp + 0x28]
mov byte [ebp - 4], 1
mov dword [edi + 0xc], ebx
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], esi
mov byte [edi + 0x20], al
mov dword [edi + 0x30], 0
test al, al
jne 0x492171
xor ecx, ecx
test esi, esi
je 0x49212f
add edx, 0xc
cmp dword [edx], ecx
cmova ecx, dword [edx]
lea edx, [edx + 0x10]
sub esi, 1
jne 0x492122
mov eax, 0x100000
cmp ecx, eax
cmova ecx, eax
mov dword [edi + 0x28], ecx
lea eax, [ecx + 0xa]
push eax
call fcn.00415d06
mov esi, eax
add esp, 4
mov eax, dword [edi + 0x24]
cmp eax, esi
je 0x49215d
push eax
call fcn.0041e935
add esp, 4
mov dword [edi + 0x24], esi
push 0
call fcn.0041e935
add esp, 4
cmp dword [edi + 0x24], 0
je 0x492226
xor ecx, ecx
mov dword [ebp - 0x10], ebx
mov eax, ebx
mov edx, 0x40
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00415d06
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4921c2
push 0x492440
push 0x492030
push dword [ebp + 0x14]
mov dword [eax], ebx
lea ebx, [eax + 4]
push 0x40
push ebx
call fcn.0055290e
jmp 0x4921c4
xor ebx, ebx
mov eax, dword [edi + 0x2c]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x492205
test eax, eax
je 0x492200
push 0x492440
push dword [eax - 4]
lea esi, [eax - 4]
mov byte [ebp - 4], 3
push 0x40
push eax
call fcn.00440124
mov eax, dword [esi]
shl eax, 6
add eax, 4
push eax
push esi
call fcn.00552a12
add esp, 8
mov byte [ebp - 4], 1
mov dword [edi + 0x2c], ebx
mov eax, ebx
test eax, eax
je 0x492226
mov ecx, edi
call fcn.00492680
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
lea ecx, [ebp - 0x1c]
call fcn.00492240
push 0x614c8c
lea eax, [ebp - 0x1c]
push eax
call fcn.00569fb7
int3
Function at 0x492be0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 4], 0
jg 0x492c28
jl 0x492c0c
mov edx, dword [ebp - 0x14]
cmp dword [edx], 0x7fffffff
ja 0x492c28
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0xffffffff
jg 0x492c2d
jl 0x492c28
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0x80000001
jae 0x492c2d
jmp 0x492ccc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 8]
test eax, eax
je 0x492c49
mov dword [ebp - 0x1c], 0
jmp 0x492c50
mov dword [ebp - 0x1c], 2
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x492ccc
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0xc]
jae 0x492ccc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp + 0x14]
push eax
call fcn.00491b90
add esp, 8
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x492cbf
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jae 0x492cc1
jmp 0x492ccc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
jmp 0x492c6f
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret