joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4029d0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
lea esi, [ebx + 0xbd8]
push edi
push esi
call fcn.00403960
mov ebp, dword [sym.imp.MSVCRT.dll_wcscat]
push 0x41b9d8
push esi
call ebp
mov edi, dword [sym.imp.MSVCRT.dll__wmkdir]
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x402a13
push esi
push str.CExtractManager::SetDirectory:_set_TEMP___s_
push 0x41a040
call fcn.0040c930
add esp, 0xc
push str.image_
push esi
call ebp
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x402a38
push esi
push str.CExtractManager::SetDirectory:_set_TEMP_image___s_
push 0x41a040
call fcn.0040c930
add esp, 0xc
mov ecx, 0x82
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
mov ecx, ebx
call fcn.00403960
push esi
push str.CExtractManager::SetDirectory:_TEMP___s_
push 0x41a040
call fcn.0040c930
lea esi, [ebx + 0x7c8]
push 0x104
push esi
call fcn.0040d130
push 0x41b9d8
push esi
call ebp
mov edi, dword [sym.imp.MSVCRT.dll__wmkdir]
push esi
call edi
add esp, 0x20
test eax, eax
jne 0x402a97
push esi
push str.CExtractManager::SetDirectory:_set_WIN___s_
push 0x41a040
call fcn.0040c930
add esp, 0xc
push esi
push str.CExtractManager::SetDirectory:_WIN___s_
push 0x41a040
call fcn.0040c930
add esp, 0xc
lea esi, [ebx + 0x9d0]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41b9d8
push esi
call ebp
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x402ae1
push esi
push str.CExtractManager::SetDirectory:_set_SYS32___s_
push 0x41a040
call fcn.0040c930
add esp, 0xc
push esi
push str.CExtractManager::SetDirectory:_SYS32___s_
push 0x41a040
call fcn.0040c930
lea esi, [ebx + 0xde0]
push 0x104
push esi
call fcn.0040d130
push str.Softcamp
push esi
call ebp
push esi
call edi
add esp, 0x20
test eax, eax
jne 0x402b27
push esi
push str.CExtractManager::SetDirectory:_set_SDS___s_
push 0x41a040
call fcn.0040c930
add esp, 0xc
push str._sds_
push esi
call ebp
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x402b4c
push esi
push str.CExtractManager::SetDirectory:_set_SDS___s_
push 0x41a040
call fcn.0040c930
add esp, 0xc
push esi
push str.CExtractManager::SetDirectory:_SDS___s_
push 0x41a040
call fcn.0040c930
add esp, 0xc
lea esi, [ebx + 0xfe8]
mov ecx, ebx
push esi
call fcn.00403ad0
push esi
push str.CExtractManager::SetDirectory:_CUR___s_
push 0x41a040
call fcn.0040c930
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x402d60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x41436b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
push esi
mov esi, ecx
push edi
xor eax, eax
mov al, byte [esi + 0x237]
lea edi, [esi + 0x228]
xor ecx, ecx
push eax
mov cl, byte [edi]
push ecx
push str.CExtractManager::ExtractDoc:__Enc__msPackedSecuAcl_szDocEnc:___02X___02X_
push 0x41a040
call fcn.0040c930
mov cl, byte [esi + 0x27d]
mov al, byte [esi + 0x27c]
xor edx, edx
mov byte [esp + 0x19], cl
mov ecx, dword [esi + 0x2b0]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
add esp, 0x10
mov dword [esp + 0x20], edx
mov byte [esp + 8], al
mov al, byte [esi + 0x278]
mov dword [esp + 0x24], edx
mov dl, byte [esi + 0x283]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 8]
mov byte [esp + 0xa], dl
mov edx, dword [esi + 0x2b8]
mov byte [esp + 0xb], al
mov eax, dword [esi + 0x2bc]
push ecx
push str.CExtractManager::ExtractDoc:_SOM_FILE_HEADER_SAVE__PRINT__ACCESSCOUNT__SELFDEL__:__s
push 0x41ba48
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
call fcn.0040c890
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add esp, 0xc
push edx
push eax
push ecx
push str.CExtractManager::ExtractDoc:_SOM_FILE_HEADER_ACCESSCOUNT__d__DATE:___d___d_
push 0x41ba48
call fcn.0040c890
add esp, 0x14
lea ecx, [esp + 0x28]
call fcn.0040d700
push 0x20
push 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x1b4], 0
call fcn.0040d8a0
push 0x10
lea ecx, [esp + 0x30]
call fcn.0040d6e0
lea edx, [esp + 0x18]
lea eax, [esp + 8]
push edx
push eax
lea ecx, [esp + 0x30]
call fcn.0040d7b0
mov eax, dword [esp + 0x1b4]
mov ecx, dword [esi + 0x21c]
mov edx, eax
push edi
shl edx, 5
add edx, eax
lea eax, [eax + edx*4]
lea edx, [esp + 0x1c]
shl eax, 2
push edx
mov edx, dword [eax + ecx + 0x204]
mov eax, dword [eax + ecx + 0x200]
push edx
push eax
lea ecx, [esi + 0x11f0]
mov edx, dword [esp + 0x1c8]
push ecx
push edx
lea ecx, [esi + 4]
call fcn.004046a0
pop edi
pop esi
test eax, eax
jne 0x402f0a
push str.CExtractManager::ExtractDoc:__Fail_
push 0x41a040
call fcn.0040c930
lea ecx, [esp + 0x28]
add esp, 8
neg ecx
sbb ecx, ecx
lea eax, [esp + 0x24]
and ecx, eax
mov dword [esp + 0x1a4], 0xffffffff
call fcn.0040d6d0
xor eax, eax
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
add esp, 0x1a8
ret 8
lea ecx, [esp + 0x20]
lea edx, [esp + 0x24]
neg ecx
sbb ecx, ecx
mov dword [esp + 0x1a4], 0xffffffff
and ecx, edx
call fcn.0040d6d0
mov ecx, dword [esp + 0x19c]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x1a8
ret 8
Function at 0x403960
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41440b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x934
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
call fcn.0040d130
add esp, 8
lea ecx, [esp + 0x218]
mov dword [esp + 0x218], 0x114
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov esi, dword [sym.imp.MSVCRT.dll_wcscpy]
test eax, eax
je 0x403a9e
cmp dword [esp + 0x228], 2
jne 0x403a0d
push 1
lea edx, [esp + 0x14]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
push 0x1c
push edx
push eax
rep stosd dword es:[edi], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x10]
push str.SOM_
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll__wmkdir]
add esp, 0xc
jmp 0x403a9e
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [esp + 0x330]
call fcn.0040ccd0
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0x944], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x32c]
push eax
call fcn.0040ce70
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
push ecx
call esi
add esp, 8
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString
lea edx, [esp + 0x10]
push 0x41c154
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll__wmkdir]
add esp, 0xc
lea ecx, [esp + 0x32c]
mov dword [esp + 0x944], 0xffffffff
call fcn.0040cd60
mov edx, dword [esp + 0x94c]
lea ecx, [esp + 0x10]
push ecx
push edx
call esi
mov ecx, dword [esp + 0x944]
add esp, 8
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x940
ret 4
Function at 0x403fd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x5c]
xor eax, eax
mov dword [esp + 0x11], eax
push 0x41a460
mov word [esp + 0x19], ax
push edi
mov byte [esp + 0x18], bl
mov byte [esp + 0x1f], al
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x404055
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.CExtractManager::InitSomInfo:_fopen_error__s___d_
push 0x41a040
call fcn.0040c930
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 4
push ebx
push 0x3e8
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea ecx, [esp + 0x2c]
push 0x11
push ecx
call edi
push esi
push 1
lea edx, [esp + 0x5c]
push 7
push edx
call edi
push esi
push 1
lea eax, [esp + 0x44]
push 1
push eax
call edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x40
mov ecx, 0x11
mov edi, str.SOMDOCUMENTNORMAL
lea esi, [esp + 0x18]
xor edx, edx
mov dword [ebp + 0x1408], ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4040b8
mov dword [ebp + 0x1408], ebx
jmp 0x40410a
mov ecx, 0x11
mov edi, str.SOMDOCUMENTOLESOM
lea esi, [esp + 0x18]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4040d8
mov dword [ebp + 0x1408], 1
jmp 0x40410a
mov ecx, 0x11
mov edi, str.SOMDOCUMENTSIMPLE
lea esi, [esp + 0x18]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4040f8
mov dword [ebp + 0x1408], 2
jmp 0x40410a
push str.CExtractManager::InitSomInfo:_somType_Check_Error__
push 0x41a040
call fcn.0040c930
add esp, 8
mov al, byte [esp + 0x10]
mov dword [ebp + 0x140c], ebx
cmp al, 0x52
jne 0x40412d
pop edi
mov dword [ebp + 0x140c], ebx
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x48
ret 4
cmp al, 0x41
jne 0x40414a
pop edi
mov dword [ebp + 0x140c], 1
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x48
ret 4
push str.CExtractManager::InitSomInfo:_somEncType_Check_Error__
push 0x41a040
call fcn.0040c930
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 4
Function at 0x40aca0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x414b10
push eax
mov dword fs:[0], esp
sub esp, 0x20
push edi
mov edi, ecx
push 6
mov ecx, 0x425008
call fcn.004054c0
test eax, eax
je 0x40ad91
mov eax, dword [0x423b7c]
test eax, eax
jne 0x40ad91
lea ecx, [esp + 0xc]
call fcn.00410a50
mov ecx, 0x425008
mov dword [esp + 0x2c], 0
call fcn.00405500
push eax
lea ecx, [esp + 0x10]
call fcn.00410af0
test eax, eax
jne 0x40ad80
push esi
lea eax, [esp + 0xc]
push str.SOMWT001
push eax
mov ecx, 0x425780
call fcn.0040eb80
mov esi, dword [eax]
lea ecx, [esp + 8]
push str.SOMER035
push ecx
mov ecx, 0x425780
mov byte [esp + 0x38], 1
call fcn.0040eb80
mov eax, dword [eax]
mov edx, dword [edi + 4]
push 0x10
push esi
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.00410a90
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00410a90
mov ecx, dword [esp + 0x24]
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x40bbf0
Capabilities:
Access peb ldr_data
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x414d38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push esi
mov esi, ecx
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
lea ecx, [esp + 8]
mov dword [esp + 0xc], eax
lea edx, [esp + 0x18]
mov dword [esp + 0x10], eax
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x30], eax
push eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x38], 0x44
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40bcbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess:_CreateProcess_Error____Code:_d_
push 0x41a040
call fcn.0040c930
add esp, 0xc
lea ecx, [esp + 0x6c]
push str.SOMER011
push ecx
mov ecx, 0x425780
call fcn.0040eb80
push eax
lea ecx, [esi + 0x804]
mov dword [esp + 0x68], 0
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 4
mov ecx, dword [esp + 0x5c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 4
Function at 0x40c890
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1800
call fcn.004140b0
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x180c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1810]
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_vsprintf]
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x811]
mov byte [esp + 0x810], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1814]
add esp, 0xc
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
lea edx, [esp + 0x804]
push eax
push ecx
push 0x41fb8c
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [esp + 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x1800
ret

Function at 0x40c930
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x3000
call fcn.004140b0
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x300c]
stosw word es:[edi], ax
lea eax, [esp + 0x3010]
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_vswprintf]
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x1012]
mov word [esp + 0x1010], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x3014]
add esp, 0xc
stosw word es:[edi], ax
lea eax, [esp + 4]
lea edx, [esp + 0x1004]
push eax
push ecx
push str.__s___s
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
lea eax, [esp + 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
add esp, 0x3000
ret

Function at 0x40cdc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x414eef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [esi + 4]
lea edi, [esi + 0x40e]
lea ebp, [esi + 0x20e]
push edi
lea ecx, [esi + 0xe]
push ebp
add esi, 8
push ecx
push esi
push eax
mov dword [esp + 0x30], 1
call dword [sym.imp.MSVCRT.dll__wsplitpath]
add esp, 0x14
lea ecx, [esp + 0xc]
push ebp
call sub.MFC42u.DLL_CString::operator_1
push edi
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::operator
mov esi, dword [esp + 0x24]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00413a4e
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x40ce70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x414f1f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [esi + 4]
lea edi, [esi + 0xe]
lea ebp, [esi + 8]
lea ecx, [esi + 0x40e]
add esi, 0x20e
push ecx
push esi
push edi
push ebp
push eax
mov dword [esp + 0x30], 1
call dword [sym.imp.MSVCRT.dll__wsplitpath]
add esp, 0x14
lea ecx, [esp + 0xc]
push ebp
call sub.MFC42u.DLL_CString::operator_1
push edi
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::operator
mov esi, dword [esp + 0x24]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00413a4e
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x40cf20
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x40cf4a
pop edi
pop esi
pop ebx
add esp, 8
ret
push esi
call sub.MFC42u.DLL_operatornew
mov ecx, dword [esp + 0x10]
add esp, 4
mov ebx, eax
push ebx
push esi
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x40cf6d
pop edi
pop esi
pop ebx
add esp, 8
ret
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push 0x41b9d8
push ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40cfa8
push ebx
call sub.MFC42u.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, 0xd
push ebx
rep movsd dword es:[edi], dword [esi]
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x40d010
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x418]
lea ecx, [esp + 0x14]
push eax
push str.Applications_s
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
lea edx, [esp + 0x20]
push str.ShellReadCommand
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 0x14
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
push 0x20019
push 0
push ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40d084
pop edi
xor eax, eax
pop esi
add esp, 0x40c
ret
mov esi, dword [esp + 0x41c]
mov edx, dword [esp + 0x420]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x10]
push ecx
push 0
push 0x425240
push edx
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40d0d5
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
add esp, 0x40c
ret
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
push str.__1_
push esi
call edi
add esp, 8
test eax, eax
jne 0x40d104
push 0x41fc20
push esi
call edi
add esp, 8
test eax, eax
je 0x40d109
mov word [eax], 0
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
pop edi
mov eax, 1
pop esi
add esp, 0x40c
ret

Function at 0x40d280
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d2dd
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 4]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp]
test eax, eax
je 0x40d2d6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret
mov eax, dword [esp]
test eax, eax
je 0x40d2ec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret
Function at 0x40d3f0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi], eax
je 0x40d4f0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SFC_SKEY_SecretKey_New
push eax
call edi
mov ecx, dword [esi]
push str.SFC_SKEY_SecretKey_Free
push ecx
mov dword [esi + 4], eax
call edi
mov edx, dword [esi]
push str.SFC_SKEY_SecretKey_FromBinary
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi]
push str.SFC_CIPHER_CTX_New
push eax
call edi
mov ecx, dword [esi]
push str.SFC_CIPHER_CTX_Free
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi]
push str.SFC_Cipher_Encrypt_Init
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi]
push str.SFC_Cipher_Encrypt_Update
push eax
call edi
mov ecx, dword [esi]
push str.SFC_Cipher_Encrypt_Final
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi]
push str.SFC_Cipher_Decrypt_Init
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi]
push str.SFC_Cipher_Decrypt_Update
push eax
call edi
mov ecx, dword [esi]
push str.SFC_Cipher_Decrypt_Final
push ecx
mov dword [esi + 0x28], eax
call edi
mov ecx, dword [esi + 4]
mov dword [esi + 0x2c], eax
test ecx, ecx
pop edi
je 0x40d4f0
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40d4f0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40d4f0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x40d4f0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x40d4f0
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x40d4f0
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x40d4f0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40d4f0
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x40d4f0
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x40d4f0
test eax, eax
je 0x40d4f0
mov eax, 1
pop esi
ret 4
xor eax, eax
pop esi
ret 4
Function at 0x40fbe0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esi + 0x10]
push ebx
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [esi + 4], edx
repne scasb al, byte es:[edi]
not ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 8], 1
test edx, edx
pop edi
pop esi
sete al
pop ebx
ret 8

Function at 0x40fc30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x88
push esi
mov esi, ecx
push edi
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x98]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x10]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
jne 0x40fcb0
mov edi, dword [esp + 0x98]
mov eax, ecx
lea esi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x88
ret 0xc
pop edi
xor eax, eax
pop esi
add esp, 0x88
ret 0xc

Function at 0x40fcc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x88
push esi
mov esi, ecx
push edi
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x98]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x10]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
jne 0x40fd40
mov edi, dword [esp + 0x98]
mov eax, ecx
lea esi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x88
ret 0xc
pop edi
xor eax, eax
pop esi
add esp, 0x88
ret 0xc
Function at 0x40fe20
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x428
mov ecx, 0x82
xor eax, eax
push ebp
push esi
mov esi, dword [esp + 0x434]
push edi
lea ebp, [esi + 0x210]
mov edi, ebp
rep stosd dword es:[edi], eax
mov edx, dword [esi]
test edx, edx
je 0x40fed3
mov ecx, 0x109
lea edi, [esp + 0x10]
mov dword [esp + 0xc], eax
push edx
rep stosd dword es:[edi], eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x40fed3
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x428
push eax
push edi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x40fecc
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__wcsicmp]
add esi, 8
lea ecx, [esp + 0x30]
push ecx
push esi
call ebx
add esp, 8
test eax, eax
je 0x40feaa
lea edx, [esp + 0x10]
push edx
push edi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
je 0x40fecb
jmp 0x40fe8a
lea eax, [esp + 0x230]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
lea ecx, [esp + 0x234]
push eax
push ecx
push ebp
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0x10
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
add esp, 0x428
ret 4