joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408f80
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push edi
lea eax, [esp + 0xc]
push eax
xor ebp, ebp
push ebx
mov dword [esp + 0x14], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebp
jne 0x408faa
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push esi
push edi
call fcn.0041383a
mov esi, eax
add esp, 4
cmp esi, ebp
jne 0x408fc4
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push esi
push edi
push ebp
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x408ffe
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x42838c
push esi
call sub.VERSION.dll_VerQueryValueW
mov ebp, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov dword [0x43447c], ecx
mov edx, dword [eax + 0xc]
mov dword [0x434480], edx
push esi
call fcn.0041375d
add esp, 4
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x409060
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x432adc]
xor eax, esp
mov dword [esp + 0x25c], eax
cmp dword [0x434484], 0
jne 0x4091b0
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push edi
push str.kernel32.dll
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409104
xor ecx, ecx
push str.GetNativeSystemInfo
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
call ebx
test eax, eax
je 0x4090d7
lea ecx, [esp + 0x10]
push ecx
call eax
jmp 0x4090e2
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x10]
mov ecx, 9
cmp cx, ax
je 0x4090fa
mov edx, 6
cmp dx, ax
jne 0x409104
mov dword [0x434690], 1
push 0x11c
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00413920
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40913f
mov ecx, 0x47
lea esi, [esp + 0x34]
mov edi, 0x434360
rep movsd dword es:[edi], dword [esi]
push str.RtlGetVersion
push 0x428390
call ebp
push eax
call ebx
test eax, eax
je 0x40918d
lea edx, [esp + 0x150]
push edx
mov dword [esp + 0x154], 0x11c
call eax
test eax, eax
jl 0x40918d
mov eax, dword [esp + 0x15c]
cmp eax, dword [0x43436c]
jbe 0x40918d
mov ecx, 0x47
lea esi, [esp + 0x150]
mov edi, 0x434360
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword [0x434484], eax
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.00413904
add esp, 0x260
ret
mov ecx, dword [esp + 0x25c]
xor ecx, esp
mov eax, 1
call fcn.00413904
add esp, 0x260
ret
Function at 0x4091f0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x426b2b
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x432adc]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
mov eax, dword [0x432adc]
xor eax, esp
push eax
lea eax, [esp + 0x42c]
mov dword fs:[0], eax
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebx, dword [esp + 0x43c]
push str...360verify.dll
push 0x434698
lea eax, [esp + 0x228]
push eax
xor edi, edi
call esi
test eax, eax
je 0x409263
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4092e2
push 0x206
lea eax, [esp + 0x1e]
xor edx, edx
push edi
push eax
mov word [esp + 0x24], dx
call fcn.00413920
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push 0x80000002
mov dword [esp + 0x2c], 0x208
mov dword [esp + 0x28], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [esp + 0x18], di
je 0x40932b
push str.360verify.dll
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x228]
push edx
call esi
test eax, eax
je 0x40932b
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40932b
mov dword [esp + 0x10], edi
push edi
push 1
lea ecx, [esp + 0x228]
push ecx
mov dword [esp + 0x440], edi
call fcn.00401000
mov esi, eax
cmp esi, edi
je 0x409327
push str.GetCIDW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x409320
mov edx, dword [esp + 0x440]
push edx
push ebx
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
jmp 0x40932d
xor eax, eax
mov ecx, dword [esp + 0x42c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.00413904
add esp, 0x428
ret
Function at 0x409360
Capabilities:
Listen for remote procedure calls

Disassembly:
sub esp, 8
push esi
push edi
xor edi, edi
cmp dword [0x434484], edi
jne 0x40937c
call fcn.00409060
test eax, eax
je 0x4094a6
mov eax, dword [0x434364]
cmp eax, 6
ja 0x409399
jne 0x4094a6
cmp dword [0x434368], 2
jb 0x4094a6
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push 1
push str.D:_A__GA___AU__A__GA___AC_
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0x14
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x4093c7
pop edi
xor eax, eax
pop esi
add esp, 8
ret
cmp dword [esp + 8], edi
je 0x4093bf
push str.rpcrt4.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4093ef
push eax
push str.rpcrt4.dll
call fcn.00401060
test eax, eax
je 0x40948b
push str.RpcServerRegisterIf3
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40948b
mov edx, dword [esp + 8]
mov eax, dword [0x432ad4]
push edx
push 0
push 0xffffffffffffffff
push 0x4d2
push 0x10
push 0
push 0
push eax
call esi
mov ecx, dword [esp + 8]
mov edx, dword [0x432ad8]
push ecx
push 0
push 0xffffffffffffffff
push 0x4d2
push 0x10
push 0
push 0
push edx
call esi
test eax, eax
jne 0x40948b
cmp word [0x434488], di
jne 0x40945d
push 0x104
push 0x434488
call fcn.004091f0
add esp, 8
mov eax, dword [esp + 8]
push eax
push 0x434488
push 0x28
push str.ncalrpc
call dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
test eax, eax
jne 0x40948b
push 1
push 0x28
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
test eax, eax
jne 0x40948b
lea edi, [eax + 1]
mov eax, dword [esp + 8]
test eax, eax
je 0x40951b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
add esp, 8
ret
cmp word [0x434488], di
jne 0x4094c1
push 0x104
push 0x434488
call fcn.004091f0
add esp, 8
push 0
push 0x434488
push 0x28
push str.ncalrpc
call dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
test eax, eax
jne 0x4093bf
mov ecx, dword [0x432ad4]
mov esi, dword [sym.imp.RPCRT4.dll_RpcServerRegisterIf]
push eax
push eax
push ecx
call esi
mov edx, dword [0x432ad8]
push 0
push 0
push edx
call esi
push 0
push 0x28
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
test eax, eax
je 0x409516
cmp eax, 0x6b1
jne 0x4093bf
mov edi, 1
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x409700
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x238
mov eax, dword [0x432adc]
xor eax, esp
mov dword [esp + 0x234], eax
push edi
mov edi, dword [esp + 0x240]
mov dword [esp + 8], 0
test edi, edi
jne 0x409740
xor eax, eax
pop edi
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.00413904
add esp, 0x238
ret
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
push 0x22c
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x14], esi
call fcn.00413920
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4097d2
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push ebp
mov ebp, dword [esp + 0x250]
lea ebx, [ebx]
xor esi, esi
cmp dword [edi], esi
je 0x4097af
cmp esi, ebp
jae 0x4097af
mov edx, dword [edi + esi*4]
push edx
lea eax, [esp + 0x40]
push eax
call ebx
test eax, eax
jne 0x4097c4
inc esi
cmp dword [edi + esi*4], eax
jne 0x409796
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x409790
jmp 0x4097cc
mov dword [esp + 0x14], 1
mov esi, dword [esp + 0x10]
pop ebp
pop ebx
cmp esi, 0xffffffff
je 0x4097de
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x23c]
mov eax, dword [esp + 0xc]
pop esi
pop edi
xor ecx, esp
call fcn.00413904
add esp, 0x238
ret

Function at 0x409820
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x210
mov eax, dword [0x432adc]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
xor ebx, ebx
cmp dword [0x4348b0], ebx
je 0x409858
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00413904
add esp, 0x210
ret
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00413920
add esp, 0xc
push str.dlproc.dll
push 0x434698
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x40990d
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40990d
push esi
push 0
push 0
lea eax, [esp + 0x14]
push eax
call fcn.00401120
mov esi, eax
test esi, esi
je 0x40990c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ScanFlashFile
push esi
call edi
push str.InitFlashScan
push esi
mov dword [0x4348a8], eax
call edi
mov dword [0x4348ac], eax
pop edi
cmp dword [0x4348a8], ebx
je 0x40990c
test eax, eax
je 0x40990c
mov eax, 1
push 0
push eax
push 0x4348a4
mov dword [0x4348b0], eax
mov ebx, eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x40990c
push 4
lea ecx, [esp + 0xc]
push ecx
call dword [0x4348ac]
mov ebx, eax
pop esi
mov ecx, dword [esp + 0x210]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00413904
add esp, 0x210
ret
Function at 0x409e10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x432adc]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x16]
push ecx
xor esi, esi
mov word [esp + 0x18], ax
call fcn.00413920
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push 0x80000002
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x409e91
xor eax, eax
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00413904
add esp, 0x218
ret
lea edx, [esp + 0xc]
push edx
call fcn.004017c0
test eax, eax
je 0x409ea4
mov esi, 1
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00413904
add esp, 0x218
ret

Function at 0x40b2b0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x40b2d0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x40b2e4
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x40b310
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x40b326
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40b333
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x40b990
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x432adc]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 4]
push edi
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
push ecx
xor ebx, ebx
or esi, 0x2001f
push esi
push ebx
push edx
push eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov edi, eax
cmp edi, ebx
jne 0x40ba0f
xor eax, eax
cmp ecx, ebx
je 0x40b9f7
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
and esi, 0x300
mov edi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
cmp eax, ebx
je 0x40ba33
cmp ecx, ebx
je 0x40ba1a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00413904
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x44]
push edx
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x40ba9a
jmp 0x40ba60
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.0040b990
mov edi, eax
cmp edi, ebx
jne 0x40bae9
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x40ba60
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40baad
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
mov dword [esp + 0x18], ebx
call fcn.0040b1f0
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40bad0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00413904
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40baf8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00413904
mov esp, ebp
pop ebp
ret 4
Function at 0x40e0b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x426e90
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x432adc]
xor eax, ebp
mov dword [ebp + 0x404], 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 + 0x410]
mov edi, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x418]
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x40e132
call fcn.0040b0c0
mov edi, eax
jmp 0x40e214
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40e14b
call fcn.0040b0c0
jmp 0x40e20b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x40e166
call fcn.0040b0c0
jmp 0x40e20b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x18], edi
cmp eax, edi
jae 0x40e19c
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40e18a
lea ecx, [ebp]
call fcn.0040b930
lea ecx, [ebp - 0x20]
call fcn.004091d0
mov eax, 0x8007000e
jmp 0x40e226
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.0040c9b0
mov dword [ebp - 4], 1
jmp 0x40e1c8
mov eax, dword [ebp]
test eax, eax
jne 0x40e1d6
mov edi, 0x8007000e
jmp 0x40e20d
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40e1ef
call fcn.0040b0c0
jmp 0x40e20b
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040dba0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x40e224
lea ecx, [ebp]
call fcn.0040b930
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 + 0x404]
xor ecx, ebp
call fcn.00413904
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x411b40
Capabilities:
Create thread
Terminate process

Disassembly:
sub esp, 0x24c
mov eax, dword [0x432adc]
xor eax, esp
mov dword [esp + 0x248], eax
push edi
mov edi, dword [esp + 0x254]
push 0xffffffffffffffff
call sub.IMM32.dll_ImmDisableIME
call fcn.00409e10
test eax, eax
je 0x411cca
push esi
xor esi, esi
push esi
push 1
push section.Shared
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x411cc9
mov ecx, 0x434698
call fcn.004095a0
call fcn.00409820
test eax, eax
je 0x411cc9
push ebx
push ebp
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0x404
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push esi
push edi
push esi
mov ecx, 0x4348b8
call fcn.0040af00
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x4348b8
mov dword [esp + 0x1c], vtable.WTL::CMessageLoop.0
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.0040d830
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
push esi
push esi
push 0x411a40
push esi
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, esi
je 0x411c29
push eax
call ebp
push 0x40a5d0
push 0x493e0
push 0x100
push esi
call dword [sym.imp.USER32.dll_SetTimer]
push 0x208
lea edx, [esp + 0x54]
push esi
push edx
mov dword [0x4348b4], eax
call fcn.00413920
add esp, 0xc
push 0x104
lea eax, [esp + 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x411c79
lea ecx, [esp + 0x50]
push ecx
call fcn.00408f80
add esp, 4
push esi
push esi
push esi
push 0x409ec0
push esi
push esi
call ebx
cmp eax, esi
je 0x411c8c
push eax
call ebp
lea ecx, [esp + 0x18]
call fcn.0040ae60
mov ecx, 0x4348b8
call fcn.0040dff0
mov ecx, 0x4348b8
call fcn.0040df90
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0x18]
call fcn.0040bdd0
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x24c]
pop edi
xor ecx, esp
xor eax, eax
call fcn.00413904
add esp, 0x24c
ret 0x10
Function at 0x4123e0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x427668
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x432adc]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, ecx
test byte [0x434924], 1
mov byte [esp + 0x17], 0
jne 0x41242b
or dword [0x434924], 1
push 0x427c20
call fcn.00414bcb
add esp, 4
push 0x4f4
call fcn.004144a5
mov esi, eax
add esp, 4
test esi, esi
je 0x412508
mov ecx, esi
call fcn.00411f30
push 0xc
mov dword [esi], vtable.CTransportPipe.0
call fcn.0041383a
mov edi, eax
add esp, 4
test edi, edi
je 0x41250c
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x1c]
call fcn.004019d0
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call edx
test al, al
sete bl
cmp dword [esp + 0x30], 8
mov dword [esp + 0x3c], 0xffffffff
jb 0x4124aa
mov eax, dword [esp + 0x1c]
push eax
call fcn.00413752
add esp, 4
xor ecx, ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], cx
test bl, bl
jne 0x41250c
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push 0
mov ecx, esi
call eax
test al, al
je 0x41250c
mov ecx, dword [ebp + 8]
push 0
push 0
push edi
push 0x4120c0
mov dword [edi + 4], ecx
mov edx, dword [ebp + 0xc]
push 0
push 0
mov dword [edi + 8], edx
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41250c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x17], 1
jmp 0x412532
xor al, al
jmp 0x412536
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
mov ecx, esi
call edx
mov ecx, esi
call fcn.00412030
push esi
call fcn.00413752
add esp, 4
test edi, edi
je 0x412532
push edi
call fcn.0041375d
add esp, 4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
Function at 0x4126e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x128
mov eax, dword [0x432adc]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push esi
mov esi, dword [esp + 0x134]
push 0x110
xor ebx, ebx
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.00413920
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4127a2
cmp dword [esp + 0x1c], 6
jb 0x4127bb
push ebx
lea edx, [esp + 0xc]
push edx
push 1
push 0x429eb0
mov dword [esp + 0x18], ebx
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x4127a2
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
test eax, eax
je 0x412797
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x138]
push ecx
push ebx
push ebx
push ebx
push 0x10
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
test eax, eax
jne 0x412797
mov bl, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00413904
add esp, 0x128
ret
mov ecx, dword [esp + 0x12c]
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.00413904
add esp, 0x128
ret

Function at 0x412972
Capabilities:
Connect pipe

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x498]
xor ebx, ebx
cmp eax, ebx
jne 0x412987
pop esi
xor al, al
pop ebx
pop ecx
ret
push edi
lea edi, [esi + 0x49c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4129e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x4129e2
cmp eax, 0x3e5
jne 0x4129e4
mov eax, dword [esi + 0x4b0]
mov ecx, dword [esi + 0x4ac]
push eax
push ecx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4129e4
mov eax, dword [esi + 0x498]
push ebx
lea edx, [esp + 0x10]
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4129e4
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
pop ecx
ret