joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d750
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x1fc
push eax
lea ecx, [ebp - 0x202]
push ecx
mov word [ebp - 0x204], ax
call fcn.004da450
add esp, 0xc
xor eax, eax
jmp 0x41d790
movzx ecx, word [eax + str.SYSTEMCurrentControlSetServicesAeFilterMaintenanceModeInfoStartDateTime]
mov word [ebp + eax - 0x204], cx
add eax, 2
test cx, cx
jne 0x41d790
lea edx, [ebp - 0x204]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x208]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [ebp - 0x204]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x20c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41d80e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d813
mov ecx, dword [ebp - 0x208]
sub eax, edx
sar eax, 1
add eax, eax
push eax
push esi
push 1
push 0
push str.StartDateTime
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x208]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.004d5564
mov esp, ebp
pop ebp
ret

Function at 0x41d860
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesAeFilterMaintenanceModeInfoStartDateTime
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41d89b
xor eax, eax
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0
push str.StartDateTime
push edx
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x41d8f7
shr eax, 1
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d4853
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x41d8f7
lea edx, [ebp - 8]
push edx
push eax
mov eax, dword [ebp - 4]
push 0
push 0
push str.StartDateTime
push eax
call esi
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41f020
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6128
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push edi
mov eax, dword [0x5365f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 4
mov dword [esi + 0x30], edi
mov dword [esi + 8], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0xc], edi
call fcn.004d67b0
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x41f0cf
call fcn.004d4ccc
mov dword [ebx], eax
call fcn.004d4a8b
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
call fcn.004d4db5
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jae 0x41f0ac
inc eax
mov dword [ecx + 4], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004d4ddd
mov dword [esi + 0x30], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f820
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff358
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00433d70
mov dword [ebx + 0x4010c4], eax
lea eax, [ebx + 0x200858]
push eax
call fcn.0044d650
cmp dword [ebx + 0x4010c4], 0
jne 0x41f8f5
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.00431bc0
mov dword [ebp - 4], 0
mov edi, 8
cmp dword [eax + 0x14], edi
jb 0x41f88d
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.00401db0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], edi
jb 0x41f8ad
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004d5559
add esp, 4
mov edi, dword [ebp - 0x30]
xor eax, eax
mov word [ebp - 0x2c], ax
lea eax, [ebx + method.std::bad_alloc.virtual_0]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.00416860
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f8f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x1e8]
mov dword [0x539954], ebx
mov dword [0x539c38], eax
test eax, eax
je 0x41f90f
cmp eax, 2
jne 0x41f93d
push 0x539c40
call fcn.004d7346
add esp, 4
push 1
call fcn.004241c0
push 0x423c70
push 0x36ee80
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x4010d0], eax
lea ecx, [ebx + 0x4010cc]
push ecx
push 0
push 0
push 0x424720
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
mov ecx, esi
mov dword [ebx + 0x4010c8], eax
call fcn.00418300
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
Function at 0x422e10
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5fcd
mov eax, dword fs:[0]
push eax
sub esp, 0xaec
mov eax, dword [0x5365f0]
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
push 0x1fe
xor esi, esi
lea ecx, [ebp - 0x20e]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x210], ax
call fcn.004da450
add esp, 0xc
push str.FaronicsWebAgent_v1
xor edx, edx
mov ecx, str.SendStatus
lea edi, [ebp - 0xad8]
call fcn.0045b880
mov dword [ebp - 4], esi
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [ebp - 0xae8]
push edx
call edi
mov eax, 8
push str.AntiExecutable_v2
mov word [ebp - 0xae8], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [ebp - 0xaf8]
push ecx
mov dword [ebp - 0xae0], eax
call edi
push str.wmiClassName
lea ebx, [ebp - 0xae8]
lea eax, [ebp - 0xad8]
call fcn.0045c000
cmp eax, esi
jl 0x422f41
lea ecx, [ebp - 0xad8]
call fcn.0045c0b0
cmp eax, esi
jl 0x422f32
cmp dword [ebp - 0xad8], esi
je 0x422f1e
mov eax, dword [ebp - 0xacc]
cmp eax, esi
jne 0x422efc
mov eax, 0x80004003
push eax
push str.Could_not_retrieve_WMI_communication_result._Error_code__0x_x
lea eax, [ebp - 0x210]
push eax
jmp 0x422f4e
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push esi
push esi
lea ecx, [ebp - 0xaf8]
push ecx
push esi
push str.ReturnValue
push eax
call edx
cmp eax, esi
jl 0x422eed
mov esi, 1
jmp 0x422f56
mov eax, 0x80004005
push eax
push str.Could_not_retrieve_WMI_communication_result._Error_code__0x_x
lea eax, [ebp - 0x210]
push eax
jmp 0x422f4e
push eax
push str.WMI_communication_failed_while_sending_status_to_console._Error_code__0x_x
lea ecx, [ebp - 0x210]
push ecx
jmp 0x422f4e
push eax
push str.An_error_occured_while_setting_param_WmiClassName._Error_code__0x_x
lea edx, [ebp - 0x210]
push edx
call fcn.004d7ee5
add esp, 0xc
xor eax, eax
cmp ax, word [ebp - 0x210]
je 0x422f6e
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [ebp - 0xae8]
push edx
call edi
lea eax, [ebp - 0xaf8]
push eax
call edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xad8]
push ecx
call fcn.0045bd40
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.004d5564
mov esp, ebp
pop ebp
ret
Function at 0x422fc0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f5f8d
mov eax, dword fs:[0]
push eax
sub esp, 0xaf8
mov eax, dword [0x5365f0]
xor eax, esp
mov dword [esp + 0xaf0], eax
push ebx
push esi
push edi
mov eax, dword [0x5365f0]
xor eax, esp
push eax
lea eax, [esp + 0xb08]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax + 0x4010c4], esi
jne 0x423015
lea eax, [esi + 1]
jmp 0x423187
push 0x1fe
lea edx, [esp + 0x902]
xor ecx, ecx
push esi
push edx
mov dword [esp + 0x1c], esi
mov word [esp + 0x908], cx
call fcn.004da450
add esp, 0xc
push str.FaronicsWebAgent_v1
xor edx, edx
mov ecx, str.SendStatusSynchronous
lea edi, [esp + 0x38]
call fcn.0045b880
mov dword [esp + 0xb10], esi
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0x14]
push eax
call esi
mov ecx, 8
push str.AntiExecutable_v2
mov word [esp + 0x18], cx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x20], eax
call esi
push str.wmiClassName
lea ebx, [esp + 0x18]
mov eax, edi
call fcn.0045c000
test eax, eax
js 0x42312a
mov ecx, edi
call fcn.0045c0b0
test eax, eax
js 0x42311a
cmp dword [esp + 0x34], 0
je 0x423105
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x4230c9
mov eax, 0x80004003
push eax
push str.Could_not_retrieve_WMI_communication_result._Error_code__0x_x
lea ecx, [esp + 0x904]
push ecx
jmp 0x423138
mov ecx, dword [eax]
push 0
push 0
lea edx, [esp + 0x2c]
push edx
push 0
push str.ReturnValue
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
js 0x4230b9
lea esi, [esp + 0x24]
mov ecx, 0x50f9a8
lea eax, [esp + 0x34]
call fcn.0045c080
test eax, eax
js 0x4230b9
mov dword [esp + 0x10], 1
jmp 0x423140
mov eax, 0x80004005
push eax
push str.Could_not_retrieve_WMI_communication_result._Error_code__0x_x
lea ecx, [esp + 0x904]
push ecx
jmp 0x423138
push eax
push str.WMI_communication_failed_while_sending_status_to_console._Error_code__0x_x
lea edx, [esp + 0x904]
push edx
jmp 0x423138
push eax
push str.An_error_occured_while_setting_param_WmiClassName._Error_code__0x_x
lea eax, [esp + 0x904]
push eax
call fcn.004d7ee5
add esp, 0xc
xor ecx, ecx
cmp cx, word [esp + 0x8fc]
je 0x42315a
lea edx, [esp + 0x8fc]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x14]
push eax
call esi
lea ecx, [esp + 0x24]
push ecx
call esi
mov dword [esp + 0xb10], 0xffffffff
lea edx, [esp + 0x34]
push edx
call fcn.0045bd40
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xb08]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xaf0]
xor ecx, esp
call fcn.004d5564
mov esp, ebp
pop ebp
ret 4
Function at 0x424900
Capabilities:
Terminate thread

Disassembly:
cmp dword [esi + 0x4010c8], 0
je 0x424965
mov eax, dword [esi + 0x4010cc]
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov ecx, dword [esi + 0x4010c8]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x424944
mov edx, dword [esi + 0x4010c8]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x4010c8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4010c8], 0
mov dword [esi + 0x4010cc], 0
ret

Function at 0x4250e0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8f62
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5365f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea eax, [edi + 0x68]
mov dword [edi], 0x5101a0
mov dword [ebp - 0x14], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [ebp - 4], ecx
mov dword [eax], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov eax, 1
mov dword [ebp - 4], eax
lea esi, [edi + 0x10]
push esi
push edi
mov dword [ebp - 0x10], eax
call fcn.004261b0
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x14], esi
call fcn.00426840
mov byte [ebp - 4], 3
xor ebx, ebx
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x93d20c]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0xc]
push 0x21
call fcn.00426300
test eax, eax
jne 0x4251f5
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x4251e4
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x4251f5
push ebx
call fcn.0041ef00
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x425380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4448
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5365f0]
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 ebx, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x4253bc
xor eax, eax
jmp 0x42554c
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x4253e5
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x4253e5
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x42554c
cmp dword [edi + 0x54], 0
je 0x425549
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x42540d
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x425433
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.004d7bfa
add esp, 8
cmp eax, 0xffffffff
je 0x425549
mov eax, ebx
jmp 0x42554c
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.004260e0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x425450
mov edx, eax
cmp ebx, 0x10
jae 0x42545c
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x2d]
push edx
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
js 0x42553a
cmp eax, 1
jg 0x4254f0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x42549c
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x4254c5
cmp ebx, 0x10
jae 0x4254ab
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004d6502
add esp, 0x10
cmp esi, eax
jne 0x42553a
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], edx
jne 0x425526
test esi, esi
jne 0x425450
cmp dword [ebp - 0x1c], 0x20
jae 0x42553a
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.00406c50
jmp 0x425445
cmp eax, 3
jne 0x42553a
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.004d7bfa
add esp, 8
cmp eax, 0xffffffff
je 0x425510
mov esi, dword [ebp + 8]
jmp 0x425513
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403fe0
mov eax, esi
jmp 0x42554c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403fe0
mov eax, dword [ebp + 8]
jmp 0x42554c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403fe0
or eax, 0xffffffff
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.004d5564
mov esp, ebp
pop ebp
ret 4
Function at 0x425b60
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8f02
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5365f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea eax, [edi + 0x60]
mov dword [edi], 0x5101b0
mov dword [ebp - 0x14], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [ebp - 4], ecx
mov dword [eax], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov eax, 1
mov dword [ebp - 4], eax
lea esi, [edi + 4]
push esi
push edi
mov dword [ebp - 0x10], eax
call fcn.00426140
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x14], esi
call fcn.00426840
mov byte [ebp - 4], 3
xor ebx, ebx
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x93d20c]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
or eax, 2
push eax
call fcn.00426300
test eax, eax
jne 0x425c7a
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x425c69
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x425c7a
push ebx
call fcn.0041ef00
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4264f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5e48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x426601
cmp byte [edi + 0x49], 0
je 0x426601
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x426592
lea esi, [ebp - 0x2c]
call fcn.004260e0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x42655f
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x426596
dec eax
je 0x42659a
sub eax, 2
je 0x4265f2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403fe0
xor al, al
jmp 0x426603
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x4265aa
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4265d3
cmp ebx, 0x10
jae 0x4265b9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004d6502
add esp, 0x10
cmp esi, eax
jne 0x426583
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4265f2
test esi, esi
jne 0x426553
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.00406c50
jmp 0x42654d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403fe0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
Function at 0x426840
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3283
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5365f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004d4df4
mov dword [ebp - 4], 0
push 4
call fcn.004d67b0
mov edi, eax
add esp, 4
test edi, edi
je 0x4268c4
call fcn.004d4ccc
mov dword [edi], eax
call fcn.004d4a8b
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004d4db5
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4268b6
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004d4ddd
jmp 0x4268c6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 esp, ebp
pop ebp
ret 4

Function at 0x427310
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
mov ebx, ecx
xor edi, edi
push str.In_CAERnswareManager::BackupRegKey__
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], ebx
call fcn.004015d0
add esp, 4
mov ecx, str.fDenyTSConnections
cmp ebx, edi
je 0x42739c
push str.SYSTEMCurrentControlSetControlTerminal_Server
push ebx
push esi
mov edx, str.SoftwareAEBackupRemoteAccess_backup
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00427d40
push edi
lea eax, [ebp - 4]
push eax
push edi
push 2
push edi
push edi
push edi
push str.SYSTEMCurrentControlSetControlTerminal_Server
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4273ba
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push eax
push str.fDenyTSConnections
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x42738a
lea edi, [eax + 1]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push str.SoftwareAEBackupRemoteAccess_backup
push edi
push esi
mov edx, str.SYSTEMCurrentControlSetControlTerminal_Server
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00427d40
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push str.In_CAERnswareManager::DisableRemoteAccess__._RegCreateKeyEx_failed__error_:__ld
mov ecx, esi
call fcn.004015d0
add esp, 8
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret