joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5dd01d
Capabilities:
Encode data using xor

Disassembly:
dec ebx
sub al, byte [eax + 0x4b]
pushal
scasb al, byte es:[edi]
rcl dword [ebx - 0x80], cl
dec ecx
add eax, 0xdeb96ccc
mov byte [eax + 0x33], dh
xor eax, 0x759ff8f7
invalid

Function at 0x5dd1fd
Capabilities:
Encode data using xor

Disassembly:
imul esi, dword [edx + 0x2c], 0x6da73eb1
mov ecx, 0xf3f12c73
imul esi, dword [esi + ebp*4 - 0x8c68c56], 0x7488da53
mov esp, 0xc26d4ac6
cmp eax, 0x73b1926c
invalid
jae 0x5dd1b6
not dword [ebx - 0x26]
mov byte [esp + edi*4 - 0x3a], dh
dec edx
insd dword es:[edi], dx
ret 0x6c3d
jae 0x5dd1d2
not dword [ebx - 0xe]
sal dword [ecx + ebx*8 + 0x1e], 1
mov dword [eax - 0x4e], esi
jae 0x5dd16b
insb byte es:[edi], dx
xor byte [eax - 0x214d0eb2], ah
mov byte [ebx + esi + 0x35], ah
idiv eax
clc
jne 0x5dd17b
insb byte es:[edi], dx
add byte [eax + 0x7d2ebdf2], ah
invalid
lcall 0xb6f3, 0x4a73b96d
jbe 0x5dd1c4
clc
movsd dword es:[edi], dword [esi]
jae 0x5dd197
insb byte es:[edi], dx
xor byte [eax + 0x5ddaf7c2], ah
lodsd eax, dword [esi]
xor dword [ecx - 0xc0e398d], 0x4a84cd5d
invalid
dec ebx
sub al, byte [eax + 0x4b]
pushal
scasb al, byte es:[edi]
ror dword [esi], cl
cmp al, 0xbd
jbe 0x5dd1cf
jnp 0x5dd1c4
rol dh, 1
add eax, 0xbf117d3a
invalid
Function at 0x402660
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x447170]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push edi
push 0
push 2
mov ebx, ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x4026d8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.Failed_to_create_TH_snapshot._System_error__lu
push 1
push 0x2ba
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcHost.cpp
push dword [ebx + 8]
call fcn.0040d3f0
add esp, 0x18
call esi
push eax
push str.Failed_to_create_TH_snapshot._System_error__lu
push 4
call fcn.00403670
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0040e41a
add esp, 0x230
ret
push 0x228
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0040e430
add esp, 0xc
mov dword [esp + 0xc], 0x22c
lea eax, [esp + 0xc]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40273f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.Failed_start_walking_TH_snapshot._System_error__lu
push 1
push 0x2c6
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcHost.cpp
push dword [ebx + 8]
call fcn.0040d3f0
add esp, 0x18
call esi
push eax
push str.Failed_start_walking_TH_snapshot._System_error__lu
push 4
call fcn.00403670
add esp, 0xc
jmp 0x40280b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
push ebp
cmp dword [esp + 0x18], esi
je 0x40275f
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x402748
jmp 0x402767
mov ebp, dword [esp + 0x28]
test ebp, ebp
jne 0x402793
push esi
push str.Failed_find_our_PID__lu_in_TH_snapshot
push 1
push 0x2da
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcHost.cpp
push dword [ebx + 8]
call fcn.0040d3f0
push esi
push str.Failed_find_our_PID__lu_in_TH_snapshot
push 4
call fcn.00403670
add esp, 0x24
jmp 0x40280a
push ebp
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebx + 0x11c], eax
test eax, eax
je 0x4027d1
push ebp
push eax
push str.Open_parent_process__p_for_PID__lu
push 3
push 0x2e2
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcHost.cpp
push dword [ebx + 8]
mov dword [ebx + 0x120], ebp
call fcn.0040d3f0
add esp, 0x1c
jmp 0x40280a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push ebp
push str.Failed_open_parent_process_for_PID__lu._System_error__lu
push 1
push 0x2ea
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcHost.cpp
push dword [ebx + 8]
call fcn.0040d3f0
add esp, 0x1c
call esi
push eax
push ebp
push str.Failed_open_parent_process_for_PID__lu._System_error__lu
push 4
call fcn.00403670
add esp, 0x10
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040e41a
add esp, 0x230
ret
Function at 0x402830
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x21c
mov eax, dword [0x447170]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push edi
mov edi, dword [esp + 0x228]
mov ebx, ecx
push edi
push str.Load_plugins_from__S
push 3
push 0x245
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcHost.cpp
push dword [ebx + 8]
call fcn.0040d3f0
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4028ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.GetFileAttributes_failed_for_path:__S__system_err:__lu_
push 1
push 0x24e
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcHost.cpp
push dword [ebx + 8]
call fcn.0040d3f0
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.GetFileAttributes_failed_for_path:__S__system_err:__lu_
push 0x2b
call fcn.00403670
add esp, 0x10
xor al, al
jmp 0x402947
test al, 0x10
jne 0x40290b
push edi
call fcn.004025d0
add esp, 4
push edi
test al, al
jne 0x4028f9
push str.File__S_is_not_supported
push 1
push 0x25a
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcHost.cpp
push dword [ebx + 8]
call fcn.0040d3f0
push edi
push str.File__S_is_not_supported
push 0x2c
call fcn.00403670
add esp, 0x24
xor al, al
jmp 0x402947
or dword [ebx + 4], 0x10
mov ecx, ebx
call fcn.00401ca0
neg eax
sbb eax, eax
inc eax
jmp 0x402947
test byte [ebx + 4], 8
mov ecx, 0x11
mov eax, 1
cmovne eax, ecx
lea ecx, [esp + 8]
push eax
push edi
push dword [ebx + 8]
call fcn.0040db50
lea eax, [esp + 0xc]
mov dword [esp + 8], vtable.nvc::HostDirectoryEnumerator.0
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x220], ebx
call fcn.0040db90
mov ecx, dword [esp + 0x220]
pop edi
pop ebx
xor ecx, esp
call fcn.0040e41a
add esp, 0x21c
ret 4
Function at 0x405300
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x274
mov eax, dword [0x447170]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
mov ebp, dword [esp + 0x280]
xor eax, eax
push esi
push edi
push 0x206
mov ebx, ecx
mov word [esp + 0x7c], ax
push eax
lea eax, [esp + 0x82]
mov ecx, 0x19
mov esi, str.SOFTWARENVIDIA_CorporationNvContainerModuleMap
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0040e430
add esp, 0xc
mov dword [esp + 0x10], 0x208
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x7c]
push eax
push 0
push 2
push ebp
lea eax, [esp + 0x28]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
test esi, esi
jne 0x4053f9
cmp word [esp + 0x78], ax
je 0x4053f9
push eax
lea eax, [esp + 0x7c]
mov ecx, ebx
push eax
call fcn.00405450
mov edi, eax
test edi, edi
je 0x4053b5
push ebp
push str.Loaded_dependency_module__S
push 3
push 0x92
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcPluginManager.cpp
push dword [ebx]
call fcn.0040d3f0
add esp, 0x18
mov eax, edi
jmp 0x405426
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
lea eax, [esp + 0x7c]
push eax
push str.Failed_to_load_dependency__S._Error__lu
push 1
push 0x99
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcPluginManager.cpp
push dword [ebx]
call fcn.0040d3f0
add esp, 0x1c
call esi
push eax
lea eax, [esp + 0x7c]
push eax
push str.Failed_to_load_dependency__S._Error__lu
push 0x1d
call fcn.00403670
add esp, 0x10
mov eax, edi
jmp 0x405426
push esi
push ebp
push str.Failed_to_map_module__S__result__ld_
push 1
push 0xa2
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcPluginManager.cpp
push dword [ebx]
call fcn.0040d3f0
push esi
push ebp
push str.Failed_to_map_module__S__result__ld_
push 0x1f
call fcn.00403670
add esp, 0x2c
xor eax, eax
mov ecx, dword [esp + 0x280]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040e41a
add esp, 0x274
ret 4
Function at 0x405450
Capabilities:
Get file version info

Disassembly:
sub esp, 0x94
mov eax, dword [0x447170]
xor eax, esp
mov dword [esp + 0x90], eax
movdqu xmm0, xmmword [str.Unknown]
push ebx
mov ebx, dword [esp + 0x9c]
lea eax, [esp + 0x24]
push ebp
push esi
push edi
push 0x70
push 0
push eax
mov ebp, ecx
movdqu xmmword [esp + 0x2c], xmm0
call fcn.0040e430
add esp, 0xc
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x405522
push 0x449a28
push edi
call fcn.0040f964
mov esi, eax
add esp, 8
test esi, esi
je 0x405522
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x405519
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 0
push eax
push 0x43cb68
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x405519
mov ecx, dword [esp + 0x10]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x43cb6c
lea eax, [esp + 0x34]
push 0x40
push eax
call fcn.00406b70
add esp, 0x1c
push esi
call fcn.0040e514
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [esp + 0x10]
push eax
call esi
push 1
push 0
push ebx
call fcn.0040c390
add esp, 0xc
mov edi, eax
lea eax, [esp + 0x18]
push eax
call esi
mov edx, dword [esp + 0x18]
sub edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
sbb ecx, dword [esp + 0x14]
push 0
push 0xa
push ecx
push edx
call fcn.0040f640
mov esi, eax
lea eax, [esp + 0x20]
push esi
push edi
push eax
push ebx
push str.Secure_loading__S____S_at__p_took__lu_microseconds
push 3
push 0x6c
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcPluginManager.cpp
push dword [ebp]
call fcn.0040d3f0
add esp, 0x24
test edi, edi
je 0x4055b7
cmp byte [esp + 0xac], 0
je 0x4055b7
lea eax, [esp + 0x20]
push eax
lea eax, [ebp + 0x298]
push 0x43cc0c
push eax
call fcn.00404790
mov eax, dword [ebp + 0x294]
add esp, 0xc
test eax, eax
je 0x4055b7
mov dword [eax + 0x40], esi
mov ecx, dword [esp + 0xa0]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040e41a
add esp, 0x94
ret 8
Function at 0x406cd0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x43a988
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x447170]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
push dword [esp + 0x28]
push dword [esp + 0x24]
call fcn.00401530
push str.Service_host
push 4
push 0x21
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcServiceHost.cpp
push dword [edi + 8]
mov dword [esp + 0x2c], 0
mov dword [edi], vtable.nvc::ServiceHost.0
mov dword [edi + 0x35c], 0
mov dword [edi + 0x3e0], 0
mov dword [edi + 0x3e4], 0
call fcn.0040d3f0
add esp, 0x14
xorps xmm0, xmm0
movdqu xmmword [edi + 0x340], xmm0
movq qword [edi + 0x350], xmm0
push 0
push 0
push 1
mov dword [edi + 0x358], 0
push 0
mov dword [edi + 0x340], 0x10
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push dword [esp + 0x24]
mov dword [edi + 0x3e0], eax
lea eax, [edi + 0x360]
push 0x40
push eax
call fcn.0040f833
add esp, 0xc
mov ecx, edi
push 0x200
call fcn.00407520
test al, al
je 0x406daf
or dword [edi + 4], 4
push 0x100
mov ecx, edi
call fcn.00407520
test al, al
je 0x406dc3
or dword [edi + 4], 4
push 0
push 0
push 0
push 0x407a70
push 0
push 0
mov dword [0x4493d0], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x406e2b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.Service_host:_failed_to_create_ServiceThread._Error__lu
push 1
push 0x3e
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcServiceHost.cpp
push dword [edi + 8]
call fcn.0040d3f0
add esp, 0x18
call esi
push eax
push str.Service_host:_failed_to_create_ServiceThread._Error__lu
push 0x11
call fcn.00403670
push 0x80
lea eax, [edi + 0x360]
push 0
push eax
call fcn.0040e430
add esp, 0x18
jmp 0x406e32
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x406e64
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
push str.Service_host:_wait_completed_with__lu
push 3
push 0x52
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcServiceHost.cpp
push dword [edi + 8]
call fcn.0040d3f0
add esp, 0x18
jmp 0x406e89
push str.Service_host_failed
push 1
push 0x58
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcServiceHost.cpp
push dword [edi + 8]
call fcn.0040d3f0
push str.Service_host_failed
push 0x12
call fcn.00403670
add esp, 0x1c
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0xc
Function at 0x407520
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x24
mov eax, dword [0x447170]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
lea eax, [esp + 8]
mov esi, ecx
push eax
mov eax, dword [esp + 0x34]
xor bl, bl
or eax, 0x2001f
push eax
call fcn.00407460
test eax, eax
jne 0x4075e9
mov ax, word [0x43d71c]
movdqu xmm0, xmmword [str.Recovery]
mov word [esp + 0x24], ax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0
push 0x10
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 4
push eax
push 0
push dword [esp + 0x20]
movdqu xmmword [esp + 0x30], xmm0
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0xc], 0
je 0x4075e9
push str.Safe_mode_is_ON._Optional_plugins_will_not_be_loaded
push 2
push 0x99
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcServiceHost.cpp
push dword [esi + 8]
call fcn.0040d3f0
add esp, 0x14
mov al, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040e41a
add esp, 0x24
ret 4
mov ecx, dword [esp + 0x28]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.0040e41a
add esp, 0x24
ret 4

Function at 0x407920
Capabilities:
Set registry value

Disassembly:
sub esp, 0x30
mov eax, dword [0x447170]
xor eax, esp
mov dword [esp + 0x2c], eax
mov ax, word [0x43d778]
movdqu xmm0, xmmword [str.ServiceAutoStart]
push ebx
mov word [esp + 0x2c], ax
mov ebx, ecx
push edi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x40]
movdqu xmmword [esp + 0x14], xmm0
or eax, 0x20006
movdqu xmm0, xmmword [0x43d768]
push eax
movdqu xmmword [esp + 0x28], xmm0
call fcn.00407460
mov edi, eax
test edi, edi
jne 0x4079a4
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 4
push edi
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4079e2
push esi
push edi
lea esi, [ebx + 0x360]
push esi
lea eax, [esp + 0x1c]
push eax
push str.Failed_to_save_auto_start_flag__S_to_registry_for_service__S._Error__ld
push 1
push 0xbd
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcServiceHost.cpp
push dword [ebx + 8]
call fcn.0040d3f0
push edi
push esi
lea eax, [esp + 0x3c]
push eax
push str.Failed_to_save_auto_start_flag__S_to_registry_for_service__S._Error__ld
push 0x13
call fcn.00403670
add esp, 0x34
pop esi
mov ecx, dword [esp + 0x34]
pop edi
pop ebx
xor ecx, esp
call fcn.0040e41a
add esp, 0x30
ret 4
Function at 0x408e80
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
je 0x408f34
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ebp
push ebp
call esi
mov ecx, edi
mov ebx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408ea3
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ebx]
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x408ed0
pop edi
pop esi
pop ebp
pop ebx
ret
push ebx
push ebp
call esi
mov esi, eax
cmp word [ebp + esi*2 - 2], 0x5c
je 0x408ee9
mov eax, 0x5c
mov word [ebp + esi*2], ax
inc esi
mov ecx, edi
xor edx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408ef0
sub ecx, ebx
sar ecx, 1
je 0x408f34
lea esi, [esi*2]
add esi, ebp
lea ebx, [ebx]
mov ax, word [edi + edx*2]
lea esi, [esi + 2]
mov word [esi - 2], ax
inc edx
mov eax, edi
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408f21
sub eax, ebx
sar eax, 1
cmp edx, eax
jb 0x408f10
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x408fb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push dword [esp + 8]
push dword [esp + 0x10]
call fcn.0040aa60
mov esi, eax
add esp, 8
test esi, esi
je 0x408ff7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408fdb
test al, 0x50
jne 0x408fdb
mov eax, esi
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x408fee
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
ret
Function at 0x409af0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x114
mov eax, dword [0x447170]
xor eax, esp
mov dword [esp + 0x110], eax
mov ecx, dword [esp + 0x118]
mov dword [esp], 0xa018230
mov dword [esp + 4], 0x1018202
mov dword [esp + 8], 0xb123d300
cmp dword [ecx], 0x10e
mov dword [esp + 0xc], 0x3d4cbcb
mov dword [esp + 0x10], 0x9ef012c8
mov dword [esp + 0x14], 0xac0b9d0a
mov dword [esp + 0x18], 0xb85828f8
mov dword [esp + 0x1c], 0x8689b316
mov dword [esp + 0x20], 0xcd865298
mov dword [esp + 0x24], 0xa283d35b
mov dword [esp + 0x28], 0x1c2e53f7
mov dword [esp + 0x2c], 0x677d3d00
mov dword [esp + 0x30], 0x38699cb
mov dword [esp + 0x34], 0x8aa0b0bd
mov dword [esp + 0x38], 0x7f4e922d
mov dword [esp + 0x3c], 0x34fbd129
mov dword [esp + 0x40], 0x169683e9
mov dword [esp + 0x44], 0x54dc4193
mov dword [esp + 0x48], 0x513e6203
mov dword [esp + 0x4c], 0xe5ae6f0a
mov dword [esp + 0x50], 0x608bf6e8
mov dword [esp + 0x54], 0x41db24f6
mov dword [esp + 0x58], 0xc920ef8e
mov dword [esp + 0x5c], 0x26028dec
mov dword [esp + 0x60], 0xa02fc9d1
mov dword [esp + 0x64], 0x7dd8d9be
mov dword [esp + 0x68], 0x1f59e138
mov dword [esp + 0x6c], 0x8417c037
mov dword [esp + 0x70], 0xcbb34076
mov dword [esp + 0x74], 0x5ae1765a
mov dword [esp + 0x78], 0xa9a5388c
mov dword [esp + 0x7c], 0xbb4c73
mov dword [esp + 0x80], 0x7fd18592
mov dword [esp + 0x84], 0x194d744e
mov dword [esp + 0x88], 0x62623963
mov dword [esp + 0x8c], 0x869c3b8
mov dword [esp + 0x90], 0xfe23f767
mov dword [esp + 0x94], 0x369eab04
mov dword [esp + 0x98], 0xc83a75c9
mov dword [esp + 0x9c], 0xcb8d743
mov dword [esp + 0xa0], 0x12792560
mov dword [esp + 0xa4], 0x7993053e
mov dword [esp + 0xa8], 0x415d5645
mov dword [esp + 0xac], 0x194362f3
mov dword [esp + 0xb0], 0x44ec5ac1
mov dword [esp + 0xb4], 0x95d2d222
mov dword [esp + 0xb8], 0x415cf75d
mov dword [esp + 0xbc], 0x399dbf5
mov dword [esp + 0xc0], 0xc3a4898b
mov dword [esp + 0xc4], 0xa88dad93
mov dword [esp + 0xc8], 0xf03aa90f
mov dword [esp + 0xcc], 0x81eed7a3
mov dword [esp + 0xd0], 0x254b80e7
mov dword [esp + 0xd4], 0xfa8e7d53
mov dword [esp + 0xd8], 0xfc26493d
mov dword [esp + 0xdc], 0x734c31dd
mov dword [esp + 0xe0], 0x89b7cc2d
mov dword [esp + 0xe4], 0x14e8b1b7
mov dword [esp + 0xe8], 0x793d6cd
mov dword [esp + 0xec], 0xf9b701f9
mov dword [esp + 0xf0], 0x922fb435
mov dword [esp + 0xf4], 0xd0b39af5
mov dword [esp + 0xf8], 0xbf088d38
mov dword [esp + 0xfc], 0x65a5b022
mov dword [esp + 0x100], 0x122a9082
mov dword [esp + 0x104], 0x1148a155
mov dword [esp + 0x108], 0x10302ff
mov word [esp + 0x10c], 0x100
je 0x409db4
xor eax, eax
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0040e41a
add esp, 0x114
ret
cmp dword [ecx + 8], 0
jne 0x409d9d
mov ecx, dword [ecx + 4]
lea edx, [esp]
push esi
mov esi, 0x10a
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x409dfa
add ecx, 4
add edx, 4
sub esi, 4
jae 0x409dc6
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x409dfa
mov eax, 1
pop esi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0040e41a
add esp, 0x114
ret
mov ecx, dword [esp + 0x114]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0040e41a
add esp, 0x114
ret
Function at 0x40a0b0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x18
mov eax, dword [0x447170]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x10], ecx
xor edi, edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0x24
mov dword [esp + 0x18], 0x26
mov dword [esp + 0x1c], 0x2a
cmp dword [0x449850], ebx
jne 0x40a159
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 3
push 0x20
push 3
push 1
push 3
push 2
push ebx
push ebx
call esi
push edx
push eax
call esi
push edx
push eax
call esi
push edx
push eax
push 0x23
xor ecx, ecx
mov dword [0x449850], 0x11c
push 0x449850
mov dword [0x449854], 6
mov dword [0x449858], 1
mov word [0x449964], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ecx, dword [esp + 0x10]
neg eax
sbb eax, eax
inc eax
mov dword [0x447164], eax
jmp 0x40a15e
mov eax, dword [0x447164]
test eax, eax
je 0x40a179
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0040e41a
add esp, 0x18
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LocalFree]
test ecx, ecx
je 0x40a2c2
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov esi, eax
test esi, esi
je 0x40a2c2
lea eax, [esi + esi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x10], eax
test eax, eax
je 0x40a2c2
push 0
push eax
push esi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp esi, eax
jbe 0x40a2c2
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
jmp 0x40a1e0
mov eax, dword [esp + ebp*4 + 0x18]
cmp eax, 0x26
jne 0x40a2e0
push 0
push 0
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40a2bc
lea ecx, [esi*2 + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x40a2bc
push esi
push edi
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp esi, eax
jne 0x40a2bc
push edi
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40a265
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call esi
push 0x43d970
push 0x26
call fcn.00408d30
mov edi, eax
add esp, 8
test edi, edi
je 0x40a2bc
jmp 0x40a282
cmp word [edi + esi*2 - 4], 0x5c
je 0x40a27c
push 0x43cb68
lea eax, [esi + 1]
push eax
push edi
call fcn.0040ad70
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a287
sub eax, edx
sar eax, 1
push eax
push edi
push dword [esp + 0x18]
call fcn.00410d90
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
jne 0x40a2bc
push edi
call esi
inc ebp
xor edi, edi
cmp ebp, 3
jl 0x40a1e0
mov ebp, dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call ebp
push dword [esp + 0x10]
call ebp
mov ecx, dword [esp + 0x24]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040e41a
add esp, 0x18
ret
push 0x43d970
push eax
jmp 0x40a255