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

Disassembly:
push 0xffffffffffffffff
push 0x49ed1b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4c13e0]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c13e0]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
mov eax, dword [esp + 0x254]
xor ebx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
lea edx, [esp + 0x14]
push edx
push 8
push ebx
push str.Software360TotalSecurity_srvtpi
mov dword [esp + 0x25c], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x409ea2
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
xor ebp, ebp
lea ecx, [ecx]
lea eax, [esp + 0x2c]
push eax
push ebx
push ebx
push ebx
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x48]
push edx
push ebp
push edi
mov dword [esp + 0x48], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x409e97
xor esi, esi
lea esp, [esp]
mov eax, dword [esi + 0x4c3e6c]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00477ed1
add esp, 8
test eax, eax
je 0x409e8a
add esi, 4
cmp esi, 4
jb 0x409e10
xor edi, edi
xor esi, esi
mov edx, dword [esi + 0x4c3e44]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00477ed1
add esp, 8
test eax, eax
je 0x409e57
add esi, 0x14
inc edi
cmp esi, 0x28
jb 0x409e34
jmp 0x409e6c
mov ecx, dword [esp + 0x24]
lea ebx, [edi + edi*4]
mov dword [ecx + edi*4], 1
lea ebx, [ebx*4 + 0x4c3e44]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0x38]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.00409b60
mov edi, dword [esp + 0x14]
xor ebx, ebx
inc ebp
cmp ebp, 0x200
jl 0x409de0
cmp edi, ebx
je 0x409ea2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00476dfd
add esp, 0x23c
ret 4
Function at 0x40a010
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x49e9c8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c13e0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x58]
cmp dword [eax + 0x7c], 0
jne 0x40a145
lea ebx, [eax + 0x34]
push esi
call fcn.00409390
test eax, eax
jne 0x40a145
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a072
mov edi, esi
call fcn.00402550
test eax, eax
je 0x40a145
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x40a145
push str.CreateTrayClient
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a13e
lea ecx, [esp + 0x18]
push ecx
push 1
mov dword [esp + 0x20], 0
call eax
mov ebp, eax
test ebp, ebp
je 0x40a13e
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x5c]
jb 0x40a134
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x84]
mov dword [esp + 0x5c], 0
test eax, eax
je 0x40a134
mov edx, dword [ebp]
mov edx, dword [edx + 8]
lea ecx, [esp + 0x5c]
push ecx
push eax
mov ecx, ebp
call edx
test eax, eax
je 0x40a134
lea eax, [esp + 0x1c]
push eax
call fcn.0040a160
mov dword [esp + 0x50], 0
mov dword [esp + 0x1c], edi
mov edx, esi
lea edi, [esp + 0x20]
call fcn.00403890
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x1c]
push eax
mov esi, ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call fcn.00408f10
lea eax, [esp + 0x1c]
call fcn.0040a1d0
mov eax, ebp
jmp 0x40a147
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 8
Function at 0x40b920
Capabilities:
Enumerate processes
Query or enumerate registry value

Disassembly:
sub esp, 0x654
mov eax, dword [0x4c13e0]
xor eax, esp
mov dword [esp + 0x650], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x452]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 1
mov word [esp + 0x454], ax
call fcn.0047c020
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x44c]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x4a7458
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeTray.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40b9ae
xor eax, eax
mov ecx, dword [esp + 0x650]
xor ecx, esp
call fcn.00476dfd
add esp, 0x654
ret
push ebp
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 0
push 2
mov dword [esp + 0x18], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40b9e7
lea edx, [esp + 0x18]
push edx
push ebp
mov dword [esp + 0x20], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40b9ff
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x650]
xor ecx, esp
call fcn.00476dfd
add esp, 0x654
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, edi
lea eax, [esp + 0x48]
push str.QHSafeTray.exe
push eax
call fcn.00477ed1
add esp, 8
test eax, eax
jne 0x40bab8
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40bab8
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x10], eax
jne 0x40bab8
mov ecx, dword [esp + 0x2c]
push ecx
push 0
push 0x410
call ebx
mov esi, eax
test esi, esi
je 0x40bab8
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x25a]
push eax
mov word [esp + 0x25c], dx
call fcn.0047c020
add esp, 0xc
push 0x104
lea ecx, [esp + 0x254]
push ecx
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x40bab5
lea edx, [esp + 0x250]
push edx
lea eax, [esp + 0x45c]
push eax
call fcn.00477ed1
add esp, 8
test eax, eax
je 0x40bacd
push esi
call edi
lea ecx, [esp + 0x24]
push ecx
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40ba10
jmp 0x40bad8
mov edx, dword [esp + 0x2c]
push esi
mov dword [esp + 0x18], edx
call edi
push ebp
call edi
mov ecx, dword [esp + 0x660]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
pop ebp
xor ecx, esp
call fcn.00476dfd
add esp, 0x654
ret
Function at 0x40bb00
Capabilities:
Enumerate processes
Query or enumerate registry value

Disassembly:
sub esp, 0x64c
mov eax, dword [0x4c13e0]
xor eax, esp
mov dword [esp + 0x648], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x44a]
push ecx
mov dword [esp + 0x10], 1
mov word [esp + 0x44c], ax
call fcn.0047c020
xor eax, eax
add esp, 0xc
lea edx, [esp + 8]
push edx
mov dword [0x4c8e80], eax
mov dword [0x4c8e84], eax
mov dword [0x4c8e88], eax
mov dword [0x4c8e8c], eax
mov dword [0x4c8e90], eax
mov dword [0x4c8e94], eax
mov dword [0x4c8e98], eax
mov dword [0x4c8e9c], eax
mov dword [0x4c8ea0], eax
mov dword [0x4c8ea4], eax
mov dword [0x4c8ea8], eax
mov dword [0x4c8eac], eax
mov dword [0x4c8eb0], eax
mov dword [0x4c8eb4], eax
mov dword [0x4c8eb8], eax
lea eax, [esp + 0x444]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0x4a7458
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeTray.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40bccc
push esi
push eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 4], esi
cmp esi, 0xffffffff
je 0x40bccb
lea edx, [esp + 0x10]
push edx
push esi
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40bc0c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [esp + 0x648]
xor ecx, esp
call fcn.00476dfd
add esp, 0x64c
ret
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, 0x4c8e80
lea eax, [esp + 0x40]
push str.QHSafeTray.exe
push eax
call fcn.00477ed1
add esp, 8
test eax, eax
jne 0x40bcb2
mov ecx, dword [esp + 0x24]
push ecx
push eax
push 0x410
call edi
mov esi, eax
test esi, esi
je 0x40bcae
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x252]
push eax
mov word [esp + 0x254], dx
call fcn.0047c020
add esp, 0xc
push 0x104
lea ecx, [esp + 0x24c]
push ecx
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x40bcab
lea edx, [esp + 0x248]
push edx
lea eax, [esp + 0x454]
push eax
call fcn.00477ed1
add esp, 8
test eax, eax
jne 0x40bcab
mov ecx, dword [esp + 0x24]
mov dword [ebx], ecx
add ebx, 4
push esi
call ebp
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40bc20
push esi
call ebp
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x648]
xor ecx, esp
call fcn.00476dfd
add esp, 0x64c
ret

Function at 0x40de50
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx]
push 0
push eax
push edx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40de89
mov eax, dword [esp + 0xc]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xd
pop ecx
ret 8
Function at 0x40de90
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40defe
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x40decf
cmp eax, 2
jne 0x40deea
mov eax, dword [esp]
test esi, esi
je 0x40def8
test eax, eax
je 0x40def3
test al, 1
jne 0x40deea
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40def8
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8

Function at 0x40f4c0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
lea eax, [esp + 0x10]
push eax
push ebp
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x40f4e4
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push edi
push esi
call fcn.004770ed
mov edi, eax
add esp, 4
test edi, edi
jne 0x40f4fc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push edi
push esi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40f537
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x4a6f74
push edi
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [esp + 0x24]
mov ebx, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
push edi
call fcn.004771b7
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret

Function at 0x40f550
Capabilities:
Get system information on windows

Disassembly:
cmp dword [0x4c9d14], 6
jne 0x40f567
cmp dword [0x4c9d18], 1
jne 0x40f567
jmp 0x40f570
xor eax, eax
ret
sub esp, 0x24
xor eax, eax
push str.GetNativeSystemInfo
push 0x4a7ae4
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f5bc
lea ecx, [esp]
push ecx
call eax
jmp 0x40f5c6
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp]
cmp ax, 9
je 0x40f5db
cmp ax, 6
je 0x40f5db
xor eax, eax
add esp, 0x24
ret
mov eax, 1
add esp, 0x24
ret
Function at 0x4121d0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x49e518
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c13e0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebp + 0x20]
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [eax - 0xc], esi
jne 0x412210
xor eax, eax
jmp 0x4122b7
xor edi, edi
mov dword [esp + 0x2c], edi
push esi
push 0x80
push 4
push esi
push 3
push SysReAllocString
push eax
mov dword [esp + 0x40], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41229f
call fcn.00408010
cmp eax, esi
jne 0x412209
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 0x18], esi
jne 0x412287
cmp eax, 0x64
jb 0x412287
push esi
push esi
lea ecx, [esp + 0x34]
push ecx
call fcn.00415ca0
test eax, eax
jne 0x412287
lea ebx, [ebp + 0x24]
lea esi, [eax + 0x64]
mov ecx, ebx
lea edx, [esp + 0x2c]
call fcn.00407fd0
test eax, eax
jne 0x412287
mov ebx, dword [ebx]
cmp ebx, 1
je 0x4122a7
cmp ebx, 2
je 0x4122a7
mov ecx, ebp
call fcn.004124c0
mov esi, eax
test edi, edi
je 0x41229b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4122b7
mov edi, eax
mov dword [esp + 0x2c], edi
jmp 0x41223f
test edi, edi
je 0x4122b2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x4122d0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x498310
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x4c13e0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x2c]
push eax
mov byte [esp + 0x1b], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412354
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41233a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4
push 0x64
lea ebp, [ebx + 0x24]
push 0
push ebp
call fcn.0047c020
add esp, 0xc
lea edi, [ebx + 4]
push edi
mov dword [ebp], 2
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x158]
mov edx, dword [ecx + 4]
lea esi, [ebx + 0x140]
push edx
mov ecx, esi
call fcn.00414780
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [eax], eax
mov esi, dword [esi + 0x18]
push edi
mov dword [esi + 8], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x2c]
cmp dword [eax - 0xc], 0
jne 0x4123ba
mov byte [esp + 0x17], 0
xor edi, edi
mov dword [esp + 0x18], edi
push edi
push 0x80
push 4
push edi
push 1
push 0x40000000
push eax
mov byte [esp + 0x40], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4124ac
call fcn.00408010
test eax, eax
jne 0x412456
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LockFile]
test eax, eax
je 0x412456
push 0
push 0
lea eax, [esp + 0x20]
push eax
call fcn.00415ca0
test eax, eax
jne 0x41243b
lea ecx, [esp + 0x18]
push ecx
lea ecx, [eax + 0x64]
mov edx, ebp
call fcn.00415c70
test eax, eax
jne 0x41243b
push eax
push 0x64
lea esi, [esp + 0x20]
call fcn.00415c10
test eax, eax
jne 0x41243b
mov byte [esp + 0x17], 1
cmp edi, 0xffffffff
je 0x41244f
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
cmp byte [esp + 0x17], 0
jne 0x41245d
mov eax, ebx
call fcn.00412640
movzx esi, byte [esp + 0x17]
test edi, edi
je 0x41246d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412495
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4
mov edi, eax
mov dword [esp + 0x18], edi
jmp 0x4123ee
Function at 0x415240
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x498d98
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4c13e0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00415440
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x415296
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.004154f0
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00415440
cmp dword [esp + 0x24], 8
jb 0x4152df
mov edx, dword [esp + 0x10]
push edx
call fcn.00476df2
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x415b70
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push edi
mov edi, eax
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0xc]
push 0
push eax
push ecx
push 2
push 0
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
jne 0x415baa
call fcn.00408010
pop edi
add esp, 0x10
ret
mov ecx, dword [esp + 8]
push 0
push ecx
mov dword [esi + 0x10], 0
mov edx, dword [esi + 0x10]
push edx
mov dword [esi + 4], ecx
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x14]
push ecx
push 4
push eax
mov dword [esi + 0x18], 4
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esi], eax
test eax, eax
jne 0x415bff
call fcn.00408010
mov edx, dword [esi + 8]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, edi
pop edi
add esp, 0x10
ret
xor eax, eax
pop edi
add esp, 0x10
ret

Function at 0x415c70
Capabilities:
Write file on windows

Disassembly:
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [eax]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x415c92
call fcn.00408010
ret 4
xor eax, eax
ret 4
Function at 0x419820
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49c590
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x4c13e0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.00436940
lea ecx, [esp + 0x24]
xor edi, edi
push ecx
mov dword [esp + 0x4c], edi
call fcn.00436940
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 4
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
lea esi, [esp + 0x1c]
mov byte [esp + 0x58], 1
call fcn.00417740
mov esi, dword [esp + 0x1c]
sub esi, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
sar esi, 2
cmp eax, edi
je 0x41989e
push eax
call fcn.00476df2
add esp, 4
mov edx, dword [esp + 0x24]
push edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.00476df2
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, edi
je 0x4198c8
push eax
call fcn.00476df2
add esp, 4
mov eax, dword [esp + 0xc]
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call fcn.00476df2
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x41c2c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x498868
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4c13e0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.0041d4d0
push eax
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x70], 0
call fcn.0041d530
add esp, 0x10
push 0x4b499c
lea eax, [esp + 0x30]
push eax
call fcn.0047c31b
int3
Function at 0x424c60
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x49cf44
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4c13e0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4c8f08
call esi
push 0x4c8ef0
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
call esi
push ebx
push ebx
push ebx
push ebx
mov dword [0x4c3390], eax
call esi
push 0x4c77c0
push 0x20
mov dword [0x4c338c], eax
call fcn.004776f3
mov esi, eax
add esp, 8
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], ebx
cmp esi, ebx
je 0x424cdd
push esi
call fcn.00436c10
jmp 0x424cdf
xor esi, esi
push 0x4c77c0
push 0x20
mov dword [0x4c8fa0], esi
call fcn.004776f3
mov esi, eax
add esp, 8
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], 1
cmp esi, ebx
je 0x424d38
push 4
call fcn.00476efa
add esp, 4
cmp eax, ebx
je 0x424d26
mov dword [eax], esi
mov dword [esi], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
jmp 0x424d3a
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
jmp 0x424d3a
xor esi, esi
lea eax, [esp + 0xc]
push eax
push 4
push ebx
push 0x424960
push ebx
push ebx
mov dword [0x4c8fa4], esi
mov dword [esp + 0x24], ebx
call fcn.00477643
or ecx, 0xffffffff
add esp, 0x18
mov dword [0x4c3394], eax
cmp eax, ecx
je 0x424d99
cmp dword [0x4c3390], ecx
je 0x424d99
cmp dword [0x4c338c], ecx
je 0x424d99
mov byte [0x4c8f6a], 1
mov byte [0x4c8f69], bl
lea eax, [ecx + 2]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x424e50
Capabilities:
Terminate thread

Disassembly:
cmp byte [0x4c8f6a], 0
mov byte [0x4c8f69], 1
je 0x424eb1
mov eax, dword [0x4c3390]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [0x4c3394]
push 0xbb8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x424e94
mov edx, dword [0x4c3394]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x4c3394]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4c3394], 0xffffffff
mov byte [0x4c8f6a], 0
ret