joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41118d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
and dword [ebp - 0xc], esi
and dword [ebp - 8], esi
and dword [ebp - 4], esi
xor ebx, ebx
push edi
push 0
lea eax, [ebp - 4]
push eax
push 8
pop eax
sub eax, ebx
push eax
lea eax, [ebp - 0xc]
add eax, ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x4111ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4111d6
xor esi, esi
jmp 0x4111ed
cmp eax, 0x6d
je 0x411252
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x411233
add ebx, dword [ebp - 4]
cmp ebx, 8
jb 0x4111a3
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [edi], ecx
mov dword [edi + 4], eax
test eax, eax
je 0x4112b4
push 0
push eax
call fcn.0043d20c
mov dword [edi + 0xc], eax
test eax, eax
jne 0x411261
mov esi, 0x8007000e
push esi
push 0x32b
push str.pipe.cpp
call fcn.0043bd8c
push str.Failed_to_allocate_data_for_message.
jmp 0x411248
push esi
push 0x320
push str.pipe.cpp
call fcn.0043bd8c
push str.Failed_to_read_message_from_pipe.
push esi
call fcn.0043cb9d
pop ecx
pop ecx
jmp 0x4112b4
xor ecx, ecx
xor eax, eax
xor esi, esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
inc esi
jmp 0x4111fb
push 0
lea ecx, [ebp - 4]
push ecx
push dword [edi + 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4112ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x32f
push str.pipe.cpp
call fcn.0043bd8c
push str.Failed_to_read_data_for_message.
jmp 0x411248
mov dword [edi + 8], 1
cmp dword [edi + 8], 0
jne 0x4112c8
cmp dword [edi + 0xc], 0
je 0x4112c8
push dword [edi + 0xc]
call fcn.0043d2d3
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4112d3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push dword [ebp + 0x14]
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00410e9f
mov esi, eax
test esi, esi
jns 0x411305
push str.Failed_to_allocate_message_to_write.
jmp 0x411366
mov dword [ebp + 0x14], edi
cmp dword [ebp - 4], edi
jbe 0x41136e
push 0
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp - 4]
sub eax, edi
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411333
add edi, dword [ebp + 0x14]
cmp edi, dword [ebp - 4]
jb 0x41130d
jmp 0x41136e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x2f8
push str.pipe.cpp
call fcn.0043bd8c
push str.Failed_to_write_message_type_to_pipe.
push esi
call fcn.0043cb9d
pop ecx
pop ecx
cmp dword [ebp - 8], 0
je 0x41137c
push dword [ebp - 8]
call fcn.0043d2d3
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41173b
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
or ebx, 0xffffffff
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0xc], esi
jne 0x4117c1
push esi
lea eax, [ebp - 8]
push eax
push 1
push str.D:_A__GA___SY__A__GA___BA__A__GRGW0x00100000___WD_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x4117b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x121
push str.pipe.cpp
call fcn.0043bd8c
push str.Failed_to_create_the_security_descriptor_for_the_connection_event_and_pipe.
push esi
call fcn.0043cb9d
pop ecx
pop ecx
jmp 0x411903
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push dword [edi]
push str..pipe_ls
push eax
call fcn.004401aa
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x4117e7
push dword [edi]
push str.Failed_to_allocate_full_name_of_pipe:__ls
jmp 0x41184b
xor ecx, ecx
lea eax, [ebp - 0x14]
cmp dword [ebp - 8], ecx
cmove eax, ecx
push eax
push 1
mov eax, 0x10000
push eax
push eax
push 1
push ecx
push 0x80003
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x411859
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x131
push str.pipe.cpp
call fcn.0043bd8c
push dword [ebp - 4]
push str.Failed_to_create_pipe:__ls
push esi
call fcn.0043cb9d
add esp, 0xc
jmp 0x411902
cmp dword [ebp + 0xc], 0
je 0x4118f6
push dword [edi]
lea eax, [ebp - 4]
push str..pipe_ls.Cache
push eax
call fcn.004401aa
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x411885
push dword [edi]
push str.Failed_to_allocate_full_name_of_cache_pipe:__ls
jmp 0x4118df
push 0
push 1
mov eax, 0x10000
push eax
push eax
push 1
push 0
push 0x80003
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4118f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x13d
push str.pipe.cpp
call fcn.0043bd8c
push dword [ebp - 4]
push str.Failed_to_create_pipe:__ls
push esi
call fcn.0043cb9d
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411902
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x14], ebx
and dword [eax], 0
pop edi
cmp dword [ebp - 4], 0
je 0x411911
push dword [ebp - 4]
call fcn.004408e7
cmp dword [ebp - 8], 0
je 0x411920
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4149ff
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x468004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 0xc]
push 0x208
push 0
push eax
call fcn.0042b200
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x414a7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x468
push str.cache.cpp
call fcn.0043bd8c
push str.Failed_to_get_temp_path_for_working_folder.
jmp 0x414a9c
push esi
lea eax, [ebp - 0x20c]
push eax
push str._ls_ls_
push edi
call fcn.004401aa
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x414aa4
push str.Failed_to_append_bundle_id_on_to_temp_path_for_working_folder.
push esi
call fcn.0043cb9d
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042a6d1
mov esp, ebp
pop ebp
ret 8

Function at 0x4151db
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
mov eax, 0x20000004
push esi
push edi
mov edi, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
cmp dword [ebp + 8], ebx
je 0x41526d
lea eax, [ebp - 4]
push eax
push 0x1a
call fcn.00414954
mov esi, eax
test esi, esi
jns 0x41521e
push str.Failed_to_allocate_administrator_SID.
push esi
call fcn.0043cb9d
mov edi, dword [ebp - 4]
pop ecx
pop ecx
jmp 0x415296
push 2
push 8
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x415265
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x5f0
push str.cache.cpp
call fcn.0043bd8c
push str.Failed_to_initialize_ACL.
jmp 0x415211
mov edi, dword [ebp - 4]
mov eax, 0x20000005
push 0x7d0
push 3
push ebx
lea ecx, [ebp - 0xc]
push ecx
push ebx
push edi
push eax
push 1
push dword [ebp + 0xc]
call fcn.00444c56
push 0x80
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test edi, edi
je 0x4152a0
push edi
call fcn.0043d2d3
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4160a1
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x468004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push 0x250
push eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x254]
push eax
call fcn.0042b200
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push str..unverified
push dword [ebp + 8]
call fcn.00416917
test eax, eax
js 0x416106
push 7
push dword [ebp - 0x258]
call fcn.00443fae
cmp dword [ebp + 8], 0
jne 0x4161e9
lea eax, [ebp - 0x258]
push eax
push esi
call fcn.004149ff
test eax, eax
js 0x4161e9
lea eax, [ebp - 0x260]
push eax
push 0x45572c
push dword [ebp - 0x258]
call fcn.0043d6f0
test eax, eax
js 0x4161e9
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4161e9
test byte [ebp - 0x254], 0x10
jne 0x4161d0
xor eax, eax
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jbe 0x4161a8
push 0x2e
pop ecx
cmp cx, word [ebp + eax*2 - 0x22c]
jne 0x4161a8
movzx eax, word [ebp + eax*2 - 0x22a]
push 0x52
pop ecx
cmp cx, ax
je 0x4161d0
push 0x72
pop ecx
cmp cx, ax
je 0x4161d0
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x258]
call fcn.0043d6f0
test eax, eax
js 0x4161d0
push dword [ebp - 0x25c]
call fcn.0044318c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416162
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x25c], 0
pop esi
je 0x4161fe
push dword [ebp - 0x25c]
call fcn.004408e7
cmp dword [ebp - 0x260], 0
je 0x416212
push dword [ebp - 0x260]
call fcn.004408e7
cmp dword [ebp - 0x258], 0
je 0x416226
push dword [ebp - 0x258]
call fcn.004408e7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a6d1
mov esp, ebp
pop ebp
ret 8
Function at 0x41db4d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
or dword [edi + 0x3c], 0xffffffff
lea eax, [edi + 0x1c]
push eax
call fcn.0044042d
mov esi, eax
test esi, esi
jns 0x41db79
push str.Failed_to_copy_file_name.
jmp 0x41dc65
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call esi
mov dword [edi + 0x24], eax
test eax, eax
jne 0x41dbc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x97
push str.cabextract.cpp
call fcn.0043bd8c
push str.Failed_to_create_begin_operation_event.
jmp 0x41dc65
push ebx
push ebx
push 1
push ebx
call esi
mov dword [edi + 0x28], eax
test eax, eax
jne 0x41dc08
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x9a
push str.cabextract.cpp
call fcn.0043bd8c
push str.Failed_to_create_operation_complete_event.
jmp 0x41dc65
push ebx
push ebx
push edi
push 0x41d50c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x20], eax
test eax, eax
jne 0x41dc54
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x9e
push str.cabextract.cpp
call fcn.0043bd8c
push str.Failed_to_create_extraction_thread.
jmp 0x41dc65
push edi
call fcn.0041d8ed
mov esi, eax
test esi, esi
jns 0x41dc6d
push str.Failed_to_wait_for_operation_complete.
push esi
call fcn.0043cb9d
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x422fec
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x468004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 7
pop ecx
lea edi, [ebp - 0x20]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x423059
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x207
push str.msuengine.cpp
call fcn.0043bd8c
push str.Failed_to_stop_wusa_service.
push esi
call fcn.0043cb9d
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042a6d1
mov esp, ebp
pop ebp
ret 4
Function at 0x4260af
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov ebx, 0x44a520
mov eax, dword [edi + 4]
test eax, eax
je 0x4260ce
mov edx, dword [eax]
jmp 0x4260db
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4260d9
mov edx, dword [ecx]
jmp 0x4260db
mov edx, ebx
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4260e4
mov ebx, dword [ecx]
test eax, eax
je 0x4260f6
xor eax, eax
test ecx, ecx
setne al
add eax, 0x20000150
jmp 0x426104
cmp dword [edi + 8], esi
mov eax, 0x2000014f
lea ecx, [eax + 3]
cmovne eax, ecx
push dword [ebp + 0xc]
push str.copy
push ebx
push edx
push eax
push 2
call fcn.00402297
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
add esp, 0x18
push eax
push ebx
call fcn.00443471
test eax, eax
je 0x426182
mov eax, dword [ebp - 4]
test al, 1
je 0x426182
and eax, 0xfffffffe
push eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x426182
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x54c
push str.apply.cpp
call fcn.0043bd8c
push ebx
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.0043cb9d
add esp, 0xc
jmp 0x426200
push esi
lea eax, [edi + 0x20]
push eax
push edi
push fcn.00425f94
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x426200
cmp dword [edi + 0x20], esi
je 0x4261c0
mov esi, 0x80070642
push esi
push 0x556
push str.apply.cpp
call fcn.0043bd8c
push ebx
push dword [ebp + 0xc]
push str.BA_aborted_copy_of_payload_from:__ls_to:__ls.
jmp 0x4261f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x55a
push str.apply.cpp
call fcn.0043bd8c
push ebx
push dword [ebp + 0xc]
push str.Failed_attempt_to_copy_payload_from:__ls_to:__ls.
push esi
call fcn.0043cb9d
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43bda3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x468004]
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 + 0x10]
push 0x208
push 0
push eax
call fcn.0042b200
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x43be0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x43be78
mov esi, 0x80004005
jmp 0x43be78
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x20e]
je 0x43be37
push 1
push 0x46450c
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0043bc9c
mov esi, eax
test esi, esi
js 0x43be78
mov esi, 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0043bceb
mov esi, eax
test esi, esi
js 0x43be78
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
je 0x43bdec
test edi, edi
je 0x43be78
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.0044042d
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a6d1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43c3cf
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.004490b0
mov eax, dword [0x468004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1014], eax
xor eax, eax
push 0x1000
push eax
mov esi, eax
mov dword [ebp - 0x100c], eax
mov dword [ebp - 0x1008], eax
mov dword [ebp - 0x1010], eax
lea eax, [ebp - 0x1004]
push eax
call fcn.0042b200
add esp, 0xc
lea eax, [ebp - 0x100c]
push 0xf0000040
push dword [ebp + 0xc]
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x43c467
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xde
jmp 0x43c51e
lea eax, [ebp - 0x1008]
push eax
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x100c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x43c4da
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xe4
jmp 0x43c51e
push 0
cmp dword [ebp - 0x1010], esi
je 0x43c58f
push dword [ebp - 0x1010]
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x43c569
push 0
lea eax, [ebp - 0x1010]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43c4ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xec
push str.cryputil.cpp
call fcn.0043bd8c
cmp dword [ebp - 0x1008], 0
je 0x43c53d
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x100c], 0
je 0x43c554
push 0
push dword [ebp - 0x100c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a6d1
mov esp, ebp
pop ebp
ret 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xf7
jmp 0x43c51e
lea eax, [ebp + 0x18]
push eax
push dword [ebp - 0x1014]
push 2
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x43c5d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xfe
jmp 0x43c51e
test ebx, ebx
je 0x43c528
push 1
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x43c528
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x105
jmp 0x43c51e
Function at 0x43c61b
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46aaec
push str.AdvApi32.dll
call fcn.0043bd8f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43c65e
push str.SystemFunction040
push dword [0x46aaec]
call edi
push str.SystemFunction041
push dword [0x46aaec]
mov dword [0x46aaf4], eax
call edi
mov dword [0x46aaf8], eax
jmp 0x43c663
mov eax, dword [0x46aaf8]
cmp dword [0x46aaf4], 0
je 0x43c674
test eax, eax
jne 0x43c71b
push 0x46aaf0
push str.Crypt32.dll
call fcn.0043bd8f
mov esi, eax
test esi, esi
js 0x43c725
push str.CryptProtectMemory
push dword [0x46aaf0]
call edi
cmp dword [0x46aaf4], 0
mov dword [0x46aafc], eax
jne 0x43c6d9
test eax, eax
jne 0x43c6d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x33
push str.cryputil.cpp
call fcn.0043bd8c
jmp 0x43c725
push str.CryptUnprotectMemory
push dword [0x46aaf0]
call edi
cmp dword [0x46aaf8], 0
mov dword [0x46ab00], eax
jne 0x43c71b
test eax, eax
jne 0x43c71b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x38
jmp 0x43c6cd
mov dword [0x46ab04], 1
pop edi
mov eax, esi
pop esi