joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b64d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x466078]
xor eax, ebp
mov dword [ebp - 4], eax
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.00438fc0
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push str..unverified
push dword [ebp + 8]
call fcn.0041be98
test eax, eax
js 0x41b6ae
push 7
push dword [ebp - 0x258]
call fcn.00403ea6
cmp dword [ebp + 8], 0
jne 0x41b795
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 0xc]
call fcn.00419d32
test eax, eax
js 0x41b795
lea eax, [ebp - 0x260]
push eax
push 0x448970
push dword [ebp - 0x258]
call fcn.00402e54
test eax, eax
js 0x41b795
push esi
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41b794
test byte [ebp - 0x254], 0x10
jne 0x41b77b
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 0x41b753
push 0x2e
pop ecx
cmp cx, word [ebp + eax*2 - 0x22c]
jne 0x41b753
movzx eax, word [ebp + eax*2 - 0x22a]
push 0x52
pop ecx
cmp cx, ax
je 0x41b77b
push 0x72
pop ecx
cmp cx, ax
je 0x41b77b
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x258]
call fcn.00402e54
test eax, eax
js 0x41b77b
push dword [ebp - 0x25c]
call fcn.00405360
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41b70d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
cmp dword [ebp - 0x25c], 0
je 0x41b7a9
push dword [ebp - 0x25c]
call fcn.004027ab
cmp dword [ebp - 0x260], 0
je 0x41b7bd
push dword [ebp - 0x260]
call fcn.004027ab
cmp dword [ebp - 0x258], 0
je 0x41b7d1
push dword [ebp - 0x258]
call fcn.004027ab
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437d83
mov esp, ebp
pop ebp
ret 8
Function at 0x41ecf5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x2c
xor ebx, ebx
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00438fc0
push 0x2c
lea eax, [ebp - 0x34]
push ebx
push eax
call fcn.00438fc0
mov eax, dword [ebp + 0x10]
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x2c]
mov edi, dword [ebp + 0x24]
mov esi, dword [ebp + 0x28]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x34], ecx
xor ecx, ecx
push ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x1c]
push ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x60]
push eax
push 0x41c84d
push ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x20]
push ecx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x41eddc
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 0x466
push str.elevation.cpp
call fcn.00403a8b
push str.Failed_to_create_elevated_cache_thread.
push esi
call fcn.00430fd9
pop ecx
pop ecx
jmp 0x41ee26
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x41e293
push dword [ebp + 0xc]
call fcn.00416c3c
mov esi, eax
test esi, esi
jns 0x41ee06
push str.Failed_to_pump_messages_in_child_process.
push esi
call fcn.00430fd9
pop ecx
pop ecx
jmp 0x41ee1f
push dword [ebp - 8]
push edi
call fcn.0041e9db
mov ecx, dword [ebp + 0x38]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x3c]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
Function at 0x42013e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push edi
push edi
push 1
push edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x42019e
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 0x39
push str.splashscreen.cpp
call fcn.00403a8b
push str.Failed_to_create_modal_event.
jmp 0x420200
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push 0x41fec3
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
test eax, eax
jne 0x42020a
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 0x42
push str.splashscreen.cpp
call fcn.00403a8b
push str.Failed_to_create_UI_thread.
push esi
call fcn.00430fd9
pop ecx
pop ecx
jmp 0x420219
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], edi
je 0x42022c
push dword [ebp - 8]
call esi
mov dword [ebp - 8], edi
cmp dword [ebp - 0xc], edi
je 0x420236
push dword [ebp - 0xc]
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42056b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
lea edi, [ebp - 0x14]
xor eax, eax
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
mov esi, ebx
push ebx
push ebx
push 1
stosd dword es:[edi], eax
push ebx
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4205ca
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.uithread.cpp
call fcn.00403a8b
push str.Failed_to_create_initialization_event.
jmp 0x420623
mov edi, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0x4202ad
push ebx
push ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
test eax, eax
jne 0x420630
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 0x3c
push str.uithread.cpp
call fcn.00403a8b
push str.Failed_to_create_the_UI_thread.
push esi
call fcn.00430fd9
mov eax, dword [ebp - 4]
pop ecx
pop ecx
jmp 0x42064d
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [ebp - 4]
mov dword [edi + 0x3e4], eax
mov eax, ebx
mov dword [ebp - 4], eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42065d
push eax
call edi
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
je 0x420667
push dword [ebp - 8]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x423077
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.004022f7
mov esi, eax
test esi, esi
jns 0x4230a3
push str.Failed_to_copy_file_name.
jmp 0x42318f
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 0x4230ef
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 0x8c
push str.cabextract.cpp
call fcn.00403a8b
push str.Failed_to_create_begin_operation_event.
jmp 0x42318f
push ebx
push ebx
push 1
push ebx
call esi
mov dword [edi + 0x28], eax
test eax, eax
jne 0x423132
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 0x8f
push str.cabextract.cpp
call fcn.00403a8b
push str.Failed_to_create_operation_complete_event.
jmp 0x42318f
push ebx
push ebx
push edi
push 0x422a37
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x20], eax
test eax, eax
jne 0x42317e
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 0x93
push str.cabextract.cpp
call fcn.00403a8b
push str.Failed_to_create_extraction_thread.
jmp 0x42318f
push edi
call fcn.00422e0e
mov esi, eax
test esi, esi
jns 0x423197
push str.Failed_to_wait_for_operation_complete.
push esi
call fcn.00430fd9
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x428451
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x466078]
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 0x4284be
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 0x1fc
push str.msuengine.cpp
call fcn.00403a8b
push str.Failed_to_stop_wusa_service.
push esi
call fcn.00430fd9
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00437d83
mov esp, ebp
pop ebp
ret 4
Function at 0x42b517
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, 0x4485dc
mov eax, dword [edi + 4]
test eax, eax
je 0x42b536
mov edx, dword [eax]
jmp 0x42b543
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x42b541
mov edx, dword [ecx]
jmp 0x42b543
mov edx, ebx
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x42b54c
mov ebx, dword [ecx]
test eax, eax
je 0x42b55e
xor eax, eax
test ecx, ecx
setne al
add eax, 0x20000150
jmp 0x42b56c
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.004073ac
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
add esp, 0x18
push eax
push ebx
call fcn.00405645
test eax, eax
je 0x42b5ea
mov eax, dword [ebp - 4]
test al, 1
je 0x42b5ea
and eax, 0xfffffffe
push eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x42b5ea
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 0x538
push str.apply.cpp
call fcn.00403a8b
push ebx
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.00430fd9
add esp, 0xc
jmp 0x42b668
push esi
lea eax, [edi + 0x20]
push eax
push edi
push fcn.0042b3fc
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x42b668
cmp dword [edi + 0x20], esi
je 0x42b628
mov esi, 0x80070642
push esi
push 0x542
push str.apply.cpp
call fcn.00403a8b
push ebx
push dword [ebp + 0xc]
push str.BA_aborted_copy_of_payload_from:__ls_to:__ls.
jmp 0x42b65f
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 0x546
push str.apply.cpp
call fcn.00403a8b
push ebx
push dword [ebp + 0xc]
push str.Failed_attempt_to_copy_payload_from:__ls_to:__ls.
push esi
call fcn.00430fd9
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42badb
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 4], 0
mov eax, 0x4485dc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 8], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x42bafe
mov eax, dword [ecx]
jmp 0x42bb07
mov edx, dword [esi + 8]
test edx, edx
je 0x42bb07
mov eax, dword [edx]
mov edx, dword [esi + 0xc]
mov dword [ebp + 8], eax
test edx, edx
je 0x42bb16
mov eax, dword [edx]
mov dword [ebp - 8], eax
lea ebx, [ecx + 0x2c]
test ecx, ecx
jne 0x42bb56
mov eax, dword [edx + 0x10]
lea ebx, [edx + 0x40]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0x14]
and dword [ebp - 0x18], 0
lea edi, [ebp - 0x24]
and dword [ebp - 0x14], 0
mov dword [ebp - 0xc], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ecx, ecx
je 0x42bb61
xor eax, eax
test edx, edx
setne al
add eax, 0x20000150
jmp 0x42bb70
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x1c]
jmp 0x42bb29
cmp dword [esi + 8], 0
mov eax, 0x2000014f
lea ecx, [eax + 3]
cmovne eax, ecx
push dword [ebx]
push str.download
push dword [ebp - 8]
push dword [ebp + 8]
push eax
push 2
call fcn.004073ac
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
add esp, 0x18
push eax
push edi
call fcn.00405645
test eax, eax
je 0x42bbf4
mov eax, dword [ebp - 4]
test al, 1
je 0x42bbf4
and eax, 0xfffffffe
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x42bbf4
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 0x568
push str.apply.cpp
call fcn.00403a8b
push edi
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.00430fd9
add esp, 0xc
jmp 0x42bc9d
and dword [ebp - 0x20], 0
mov dword [ebp - 0x24], fcn.0042b3fc
mov dword [ebp - 0x1c], esi
mov eax, dword [ebx]
push 0x62
pop ecx
cmp cx, word [eax]
jne 0x42bc53
push 0x69
pop ecx
cmp cx, word [eax + 2]
jne 0x42bc53
push 0x74
pop ecx
cmp cx, word [eax + 4]
jne 0x42bc53
push 0x73
pop edx
cmp dx, word [eax + 6]
jne 0x42bc53
movzx ecx, word [eax + 8]
mov dword [ebp + 0xc], 0x3a
cmp word [ebp + 0xc], cx
je 0x42bc46
cmp dx, cx
jne 0x42bc53
mov ecx, dword [ebp + 0xc]
cmp cx, word [eax + 0xa]
jne 0x42bc53
push edi
push ebx
lea eax, [ebp - 0x24]
push eax
call fcn.0042f6b1
jmp 0x42bc86
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], 0x42b315
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
call fcn.004353ef
mov esi, eax
test esi, esi
jns 0x42bc9d
push edi
push dword [ebx]
push str.Failed_attempt_to_download_URL:__ls_to:__ls
push esi
call fcn.00430fd9
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42d3fe
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x42d3bc
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x42d3da
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x42d438
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
or byte gs:[eax], al
add byte [eax], al
inc eax
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x42d41f
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x42d428
or byte [eax + ecx], 2
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4
cmp dword [ebp + 0x10], ebx
je 0x42d432
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x42d414
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x42d39e
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x42d485
dec eax
je 0x42d47c
sub eax, 3
je 0x42d473
mov dword [ebp - 4], 0x40
jmp 0x42d4a2
mov dword [ebp - 4], 4
jmp 0x42d488
mov dword [ebp - 4], 0x20
jmp 0x42d488
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x42d4d4
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x42d454
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0042cce5
or bl, 0xd
dec edi
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x42d4e0
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42d427
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x42d3bc
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x42d3da
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x42d438
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
or byte gs:[eax], al
add byte [eax], al
inc eax
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x42d41f
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x42d428
or byte [eax + ecx], 2
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4
cmp dword [ebp + 0x10], ebx
je 0x42d432
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x42d414
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x42d39e
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x42d485
dec eax
je 0x42d47c
sub eax, 3
je 0x42d473
mov dword [ebp - 4], 0x40
jmp 0x42d4a2
mov dword [ebp - 4], 4
jmp 0x42d488
mov dword [ebp - 4], 0x20
jmp 0x42d488
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x42d4d4
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x42d454
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0042cce5
or bl, 0xd
dec edi
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x42d4e0
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43080c
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.004393b0
mov eax, dword [0x466078]
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.00438fc0
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 0x4308a4
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 0xd3
jmp 0x43095b
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 0x430917
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 0xd9
jmp 0x43095b
push 0
cmp dword [ebp - 0x1010], esi
je 0x4309cc
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 0x4309a6
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 0x4308e8
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 0xe1
push str.cryputil.cpp
call fcn.00403a8b
cmp dword [ebp - 0x1008], 0
je 0x43097a
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x100c], 0
je 0x430991
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.00437d83
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 0xec
jmp 0x43095b
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 0x430a11
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 0xf3
jmp 0x43095b
test ebx, ebx
je 0x430965
push 1
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x430965
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 0xfa
jmp 0x43095b