joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1001f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10017830
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10017d2f
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10017860
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10017860
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10017d2f
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10017920
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10017889
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10017895
movsx eax, bl
jmp 0x100178cd
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x100178f6
sub eax, 1
je 0x100178f6
sub eax, 2
jne 0x10017920
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
cmp eax, 0xffffffff
jne 0x100178e1
or ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10017d2f
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10017914
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10017920
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x100178e1
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10017d2f
mov esp, ebp
pop ebp
ret 4
Function at 0x10017ad0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1001f008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10017b8c
cmp byte [esi + 0x3d], 0
je 0x10017b8c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10017b7a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10017b41
sub eax, 1
je 0x10017b45
sub eax, 2
jne 0x10017b7a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10017d2f
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10017b63
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10017b7a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10017d2f
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10017d2f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10017d2f
mov esp, ebp
pop ebp
ret
Function at 0x403189
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x3c
lea eax, [ebp - 0x3c]
mov edi, edx
push eax
mov esi, ecx
call fcn.0040b573
push 0xffffffffffffffff
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x100
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 5
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
neg eax
pop edi
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403a47
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420f84
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x422b3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 4]
mov dword [edi], vtable.Jot::CNoteLinkUri.0
mov dword [ebp - 0x14], esi
mov dword [esi], 0x42b21c
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [0x42b21c]
push 0
push 2
push esi
push 0x42b21c
mov dword [ebp - 4], 0
call dword [eax]
mov eax, dword [esi + 4]
xor ecx, ecx
mov word [eax], cx
lea esi, [edi + 0x10]
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], esi
mov dword [esi], 0x42b21c
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov eax, dword [0x42b21c]
push ecx
push 2
push esi
push 0x42b21c
mov byte [ebp - 4], 2
call dword [eax]
mov eax, dword [esi + 4]
xor ecx, ecx
xor edx, edx
mov word [eax], cx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], 0x80000000
mov dword [edi + 0x38], ecx
mov dword [edi + 0x2c], 0xc
mov dword [edi + 0x30], 7
mov dword [edi + 0x34], 0xffffffff
mov dword [edi + 0x3c], ecx
lea ecx, [edi + 0x40]
mov dword [edi + 0x28], vtable.Ofc::TStrMap_class_MsoCF::CWzInBuffer_T_class_MsoCF::String_struct_MsoCF::WzTraits___class_MsoCF::CFastBuffer_wchar_t__129___.0
lea eax, [ecx + 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], 0x102
mov dword [ecx], 0x42b220
mov dword [ecx + 8], 0x102
mov word [eax], dx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406c19
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421383
mov eax, dword fs:[0]
push eax
sub esp, 0x358
mov eax, dword [0x422b3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x406e88
lea ecx, [ebp - 0x350]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp - 0x354], esi
test esi, esi
jne 0x406c74
or eax, 0xffffffff
jmp 0x406e88
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
xor ebx, ebx
cmp dword [ebp - 0x350], 1
jle 0x406e79
push 1
push 0xffffffffffffffff
push str._startsnotetaking
push 0xffffffffffffffff
push dword [esi + 4]
call fcn.0040b5f6
test eax, eax
jne 0x406e76
cmp dword [ebp - 0x350], 3
jle 0x406e76
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x102
mov dword [ebp - 0x124], 0x42b220
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], 0x102
xor eax, eax
mov word [ebp - 0x114], ax
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 1
mov dword [ebp - 0x22c], 0x102
mov dword [ebp - 0x238], 0x42b220
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], 0x102
xor eax, eax
mov word [ebp - 0x228], ax
push eax
lea eax, [ebp - 0x124]
mov byte [ebp - 4], 3
push eax
push dword [esi + 8]
call fcn.0040b66f
push ebx
lea eax, [ebp - 0x238]
push eax
push dword [esi + 0xc]
call fcn.0040b66f
push ebx
push dword [ebp - 0x120]
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
jne 0x406d75
lea ecx, [ebp - 0x238]
or ebx, 0xffffffff
call fcn.0040142d
lea ecx, [ebp - 0x124]
call fcn.0040142d
jmp 0x406e79
lea eax, [ebp - 0x33c]
mov dword [ebp - 0x340], 0x102
mov dword [ebp - 0x34c], 0x42b220
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x344], 0x102
xor eax, eax
mov word [ebp - 0x33c], ax
lea eax, [ebp - 0x34c]
mov byte [ebp - 4], 5
push eax
push dword [ebp - 0x120]
call fcn.0040518f
push 0
push dword [0x42bf80]
push 0
push 0
push 0
push 0
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x426280
push str.BUTTON
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, eax
push 5
push edi
call esi
push 0
push edi
call esi
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x42b3b0]
lea ecx, [ebp - 0x364]
call fcn.004039b9
push dword [ebp - 0x234]
lea ecx, [ebp - 0x364]
mov byte [ebp - 4], 6
push dword [ebp - 0x348]
call fcn.004013ac
xor ebx, ebx
lea ecx, [ebp - 0x364]
test al, al
setne bl
lea ebx, [ebx*2 - 1]
call fcn.00403cc5
lea ecx, [ebp - 0x34c]
call fcn.0040142d
lea ecx, [ebp - 0x238]
call fcn.0040142d
lea ecx, [ebp - 0x124]
call fcn.0040142d
mov esi, dword [ebp - 0x354]
jmp 0x406e79
or ebx, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040951f
mov esp, ebp
pop ebp
ret 4
Function at 0x4071ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4213c1
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x422b3c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40727a
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40727a
call fcn.004049f1
mov esi, eax
jmp 0x40736a
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40729d
call fcn.004049f1
jmp 0x40735d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4072bb
call fcn.004049f1
jmp 0x40735d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4072dc
mov esi, 0x8007000e
jmp 0x40735f
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004047ac
jmp 0x407306
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x40731d
mov esi, 0x8007000e
jmp 0x40735f
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40733d
call fcn.004049f1
jmp 0x40735d
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00407064
mov esi, eax
test edi, edi
je 0x40736a
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x407390
lea ecx, [ebp - 0x418]
call fcn.004055ac
nop word [eax + eax]
nop dword [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040951f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407ec8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x407ee1
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop word [eax + eax]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407ef5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x407ef0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x407fba
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x407fcf
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407fe0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x408fd1
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x408fe8
mov eax, 0x80070057
mov esp, ebp
pop ebp
ret 8
push esi
push edi
lea eax, [ebp - 0xc]
mov byte [ebp - 8], 1
push eax
xor esi, esi
push 0x4055b6
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x409013
mov edi, 0x80004005
jmp 0x40904e
lea ecx, [ebp - 4]
push ecx
push 0
push 0x4063f4
push eax
push method.Ofc::TMap_unsigned_long_int__void__.virtual_8
call fcn.0040535b
mov esi, dword [ebp - 4]
mov edi, eax
test edi, edi
js 0x40904e
push esi
call fcn.00406224
test al, al
je 0x409043
mov edi, 0x80004005
jmp 0x40904e
push dword [ebp + 0xc]
push esi
call fcn.00405f42
mov edi, eax
test esi, esi
je 0x409058
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4090ec
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
lea eax, [ebp - 0x58]
push esi
push edi
push eax
push 0xffffffffffffffff
call fcn.0040b06a
call fcn.00402f83
call fcn.00402f83
push 0
call fcn.00411b25
add esp, 4
call fcn.00412c58
push 0x14
call fcn.0040b0ce
call fcn.0040b08f
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x409162
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push str.SetProcessDEPPolicy
push edi
call esi
push str.GetSystemDEPPolicy
push edi
mov ebx, eax
call esi
test eax, eax
je 0x409161
test ebx, ebx
je 0x409161
call eax
cmp eax, 2
jne 0x409161
push 1
call ebx
pop ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00406c19
test eax, eax
jne 0x40925e
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.00405292
test al, al
jne 0x4091a3
mov eax, dword [ebp - 4]
test eax, eax
je 0x409198
cmp eax, 0xffffffff
je 0x409198
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x2c]
and eax, 0x80000000
mov dword [ebp - 0x2c], 0
or eax, 0x80000000
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x20], 0x4228f4
call fcn.00407cc9
mov esi, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x409211
cmp esi, 0xffffffff
je 0x40920f
push esi
call edi
xor esi, esi
push 0
push 0x402cf4
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], vtable.Ofc::TMap_unsigned_long_int__void__.0
call fcn.0040d277
lea ecx, [ebp - 0x20]
call fcn.0040c2be
lea ecx, [ebp - 0x2c]
call fcn.00402f91
test esi, esi
je 0x409243
cmp esi, 0xffffffff
je 0x409243
push esi
call edi
call fcn.0040b0a2
call fcn.00402f83
call fcn.00402f83
call fcn.00411be7
call fcn.0040b03b
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40952c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x422b3c], eax
je 0x40954e
cmp dword [0x422b3c], ebx
jne 0x4095e2
push edi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x422b3c
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
test edi, edi
push eax
push dword [ebp - 4]
cmovne ebx, edi
mov edi, 0x422b3c
push 4
push edi
mov dword [0x422b3c], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x422b3c]
not eax
mov dword [0x42b178], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4096a2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x42bb98], 0
je 0x4096ba
mov eax, dword [0x42bb9c]
jmp 0x40978a
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesMicrosoftSecurity
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409709
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x42bb9c
push esi
push esi
push dword [0x42b17c]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409709
cmp dword [ebp - 8], 4
je 0x409763
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
test eax, eax
je 0x40971a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftSecurity
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40976b
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x42bb9c
push esi
push esi
push dword [0x42b17c]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40976b
cmp dword [ebp - 8], 4
jne 0x40976b
mov esi, dword [0x42bb9c]
jmp 0x409771
mov dword [0x42bb9c], esi
cmp dword [ebp - 4], 0
mov byte [0x42bb98], 1
je 0x409787
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40978e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.CLSID
push 0x80000000
mov dword [ebp - 8], ebx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x409820
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x20019
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call edi
test eax, eax
jne 0x409816
push 4
pop edi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x422b80
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409816
cmp dword [ebp + 8], edi
jne 0x409816
mov edi, dword [ebp - 0xc]
cmp edi, 3
ja 0x409816
cmp dword [ebp - 4], ebx
je 0x409822
push dword [ebp - 4]
call esi
jmp 0x409822
cmp dword [ebp - 4], ebx
je 0x409820
push dword [ebp - 4]
call esi
mov edi, ebx
cmp dword [ebp - 8], ebx
je 0x40982c
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a050
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x4281b8
call fcn.0040ad17
push 1
call fcn.0040a223
pop ecx
test al, al
jne 0x409ef9
push 7
call fcn.0040aae2
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0040a1ee
mov byte [ebp - 0x24], al
mov eax, dword [0x42bba0]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x409ef2
test eax, eax
jne 0x409f63
mov dword [0x42bba0], ecx
push 0x4222bc
push 0x4222a4
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x409f46
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40a04a
push 0x4222a0
push 0x422254
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x42bba0], 2
jmp 0x409f68
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040a380
pop ecx
call fcn.0040aad6
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x409f98
push esi
call fcn.0040a2f3
pop ecx
test al, al
je 0x409f98
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0040ad11
call esi
call fcn.0040aadc
mov esi, eax
cmp dword [esi], edi
je 0x409fb6
push esi
call fcn.0040a2f3
pop ecx
test al, al
je 0x409fb6
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.0040abf7
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.0040ac2a
test al, al
jne 0x409fef
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x409ff8
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0040a39d
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x40a04a
call fcn.0040ad5d
ret
call fcn.0040952c
jmp 0x409eda
Function at 0x40de45
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x422b3c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x208
push esi
push 0
push eax
mov dword [ebp - 0x214], 1
call sub.VCRUNTIME140.dll_memset
mov edx, 0x42bfd0
mov dword [ebp - 0x210], esi
add esp, 0xc
mov eax, edx
xor ecx, ecx
cmp dword [eax], 0
je 0x40dea6
add eax, 0x14
inc ecx
cmp eax, 0x42bff8
jl 0x40de91
jmp 0x40dffd
imul esi, ecx, 0x14
add esi, edx
je 0x40dffd
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40dfe1
cmp dword [ebp - 0x214], 1
jne 0x40dfe1
cmp word [ebp - 0x20c], ax
je 0x40dfe1
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x40dfe1
shr eax, 1
mov dword [ebp - 0x210], eax
cmp eax, 0x104
jae 0x40df28
add eax, eax
cmp eax, 0x208
jae 0x40e010
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
jmp 0x40df2e
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040e3a6
mov dword [esi], eax
test eax, eax
je 0x40dfe1
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._GetPerfhostHookVersion_0
push eax
call edi
test eax, eax
jne 0x40df5b
mov eax, dword [ebp + 0x10]
jmp 0x40df5d
call eax
mov dword [esi + 4], eax
cmp eax, 1
jne 0x40df81
push str._InitPerf_4
push dword [esi]
call edi
push str._PerfCodeMarker_12
push dword [esi]
mov dword [esi + 8], eax
call edi
push str._UnInitPerf_4
jmp 0x40dfb5
cmp eax, 2
jne 0x40df96
push str._InitPerf_4
push dword [esi]
call edi
push str._PerfCodeMarker_8
jmp 0x40df73
cmp eax, 3
jne 0x40dfbf
push str._InitPerf_v3_4
push dword [esi]
call edi
push str._PerfCodeMarker_v3_8
push dword [esi]
mov dword [esi + 8], eax
call edi
push str._UnInitPerf_v3_4
push dword [esi]
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0xc], eax
cmp dword [esi + 8], 0
je 0x40dfe1
cmp dword [esi + 0x10], 0
je 0x40dfe1
cmp dword [esi + 0xc], 0
je 0x40dfe1
push dword [0x42c000]
push esi
call fcn.0040de0c
test eax, eax
jns 0x40dffd
cmp dword [esi], 0
je 0x40dfee
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [esi], 0
and dword [esi + 8], 0
and dword [esi + 0xc], 0
and dword [esi + 0x10], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040951f
mov esp, ebp
pop ebp
ret 0xc
call fcn.0040a552
int3