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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x65d0c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x41f28f
cmp byte [esi + 0x3e], 0
je 0x41f28f
mov eax, dword [esi]
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x41f245
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
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 edx
sub eax, 0
je 0x41f257
sub eax, 1
je 0x41f25b
sub eax, 2
je 0x41f28f
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057380b
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x41f278
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00583702
add esp, 0x10
cmp edi, eax
jne 0x41f245
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057380b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0057380b
mov esp, ebp
pop ebp
ret

Function at 0x41fc20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5360
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x65d0c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00573d8c
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00571571
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x427d30
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x65d0c8]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, ecx
mov dword [esp + 8], 0
mov ecx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0xc], ecx
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call fcn.00427c40
mov esi, eax
test esi, esi
je 0x427db1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x427d98
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0057380b
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push dword [esp + 0x2c]
call edi
test eax, eax
jne 0x427e19
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00427d30
mov esi, eax
test esi, esi
jne 0x427e6b
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x2c]
call edi
test eax, eax
je 0x427de0
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x427e32
push eax
call esi
mov dword [esp + 0x10], 0
push dword [esp + 0xc]
mov ecx, ebx
mov dword [esp + 0x18], 0
call fcn.00427ec0
mov ecx, dword [esp + 0x10]
mov edi, eax
test ecx, ecx
je 0x427e52
push ecx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0057380b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x427d98
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057380b
mov esp, ebp
pop ebp
ret 4
Function at 0x428bc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7983
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x65d0c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], 0
push 0x404
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.00577100
add esp, 0xc
mov dword [ebp - 0x424], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], esi
test esi, esi
jne 0x428c79
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], eax
test esi, esi
jne 0x428c79
call fcn.004270d0
mov edi, eax
jmp 0x428d95
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x428c9c
call fcn.004270d0
jmp 0x428d88
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
test ebx, ebx
jne 0x428cba
call fcn.004270d0
jmp 0x428d88
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x428], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x428cdb
mov edi, 0x8007000e
jmp 0x428d8a
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x428dd0
jb 0x428cf9
cmp eax, 0xffffffff
ja 0x428dd0
cmp eax, 0x400
jbe 0x428d0e
push eax
lea ecx, [ebp - 0x424]
call fcn.004270a0
jmp 0x428d34
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x428d34
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
jne 0x428d4b
mov edi, 0x8007000e
jmp 0x428d8a
push edi
push dword [ebp - 0x424]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x428d6b
call fcn.004270d0
jmp 0x428d88
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.00428a60
mov edi, eax
test esi, esi
je 0x428d95
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x428db0
lea ecx, [ebp - 0x424]
call fcn.00427080
nop
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0057380b
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00403f80
int3
Function at 0x42acd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x65d0c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x63b290
mov ebx, ecx
xor esi, esi
push edx
push ebx
mov dword [ebp - 0x10], ebx
xor edi, edi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x42ada8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x42ada8
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42ada8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push 0x42
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x42ada8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x42ada8
push ebx
push dword [ebp - 0x10]
push eax
call fcn.00576510
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x42ada8
push 0x10
xor edi, edi
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x42ada6
xorps xmm0, xmm0
mov dword [ebp - 0xc], edi
lea ecx, [ebp - 0xc]
movups xmmword [esi], xmm0
mov eax, dword [ebp - 8]
push ecx
push eax
mov dword [esi], vtable.Gdiplus::Bitmap.0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
jmp 0x42ada8
xor esi, esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x42adbc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 8], 0
test edi, edi
je 0x42adc7
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057380b
mov esp, ebp
pop ebp
ret
Function at 0x431680
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7e08
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x65d0c8]
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 edi, ecx
xor bl, bl
mov esi, str._nosurvey__uninstall__skipuninstallwebpage
test dl, dl
mov eax, str._nosurvey__uninstall
cmove esi, eax
mov dword [ebp - 4], 0
call fcn.00404250
mov ecx, eax
test ecx, ecx
je 0x431820
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
push dword [0x666470]
push str.running_the_uninstaller_at__s_with_parameters__s_and_wait_for_it_to_exit...
push eax
call fcn.0041f400
push dword [ebp - 0x14]
mov edx, 0x18b
mov ecx, 0x63ecc8
call fcn.0042abe0
mov eax, dword [0x666470]
add esp, 0x14
mov dword [ebp - 0x40], eax
xorps xmm0, xmm0
mov eax, dword [0x666464]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x50]
push eax
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0x63bdd0
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4317b5
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi]
lea eax, [ebp - 0x14]
push str....the_uninstaller_exited_with_exit_code__d
push eax
call fcn.0041f400
mov esi, dword [ebp - 0x14]
add esp, 0xc
mov edx, 0x19d
mov ecx, 0x63ecc8
push esi
call fcn.0042abe0
mov bl, 1
jmp 0x4317e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push str...._unable_to_run_the_uninstaller__ShellExecuteEx___failed_with_error_code__u
push eax
call fcn.0041f400
mov esi, dword [ebp - 0x14]
add esp, 0xc
mov edx, 0x1a3
mov ecx, 0x63ecc8
push esi
call fcn.0042abe0
add esp, 4
add esi, 0xfffffff0
mov dword [ebp - 4], 2
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x431802
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.0057380b
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403f80
int3

Function at 0x432550
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
push 0
push 0
mov esi, edx
mov edi, ecx
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [ebp + 8]
mov edx, esi
mov byte [0x6663c4], 1
mov ecx, edi
call fcn.00431cc0
add esp, 4
pop edi
pop esi
pop ebp
ret
Function at 0x436a20
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8560
mov eax, dword fs:[0]
push eax
push ebx
push ecx
push esi
mov eax, dword [0x65d0c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004379a0
mov ecx, dword [ebx + 8]
mov esi, eax
mov dword [ebp - 4], 0
mov word [esi + 0xc], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
movups xmm0, xmmword [ecx]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [esi + 0x20], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
push 0
mov byte [esi + 0x28], 0
call fcn.004388d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8

Function at 0x43fff0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8b08
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x65d0c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push 0
push 1
push str.MBSetup
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
test edi, edi
jne 0x4400e4
lea ecx, [ebp - 0x30]
call fcn.0043fe00
mov dword [ebp - 4], edi
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x44004d
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x665180
call fcn.004177a0
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_setuputilities.cpp
mov ecx, eax
call fcn.00416940
mov edx, 0x63bb2c
mov ecx, eax
call fcn.00416940
push 0x231
mov ecx, eax
call fcn.004150f0
mov edx, str.:_Error_on_WinHttpOpen:
mov ecx, eax
call fcn.00416940
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0041a2c0
push eax
call fcn.00416cb0
mov edx, dword [ebp - 0x1c]
add esp, 4
cmp edx, 8
jb 0x4400e0
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4400d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x440166
push edx
push ecx
call fcn.00573d6d
add esp, 8
xor eax, eax
jmp 0x44014b
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
lea eax, [ebp - 0x14]
push 4
push eax
push 0x54
push edi
mov dword [ebp - 0x18], 0x2a0
mov dword [ebp - 0x14], 0xaa0
call esi
test eax, eax
jne 0x440149
push 4
lea eax, [ebp - 0x18]
push eax
push 0x54
push edi
call esi
test eax, eax
jne 0x440149
mov edx, str.Error_on_WinHttpSetOption_SECURE_PROTOCOLS_:
mov ecx, 0x665180
call fcn.00416940
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0041a2c0
push eax
call fcn.00416cb0
add esp, 4
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x44014b
mov eax, edi
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.0057380b
mov esp, ebp
pop ebp
ret
call fcn.0057f56e
int3
Function at 0x446cc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9183
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x65d0c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.mb::common::crypto::EVPHashAlgorithm.0
mov dword [esi + 4], 0
push 0x48
mov byte [ebp - 4], 1
call fcn.00573d8c
add esp, 4
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [esi + 4]
mov dword [esi + 4], eax
test ecx, ecx
je 0x446da2
push 0x48
push ecx
call fcn.00573d6d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x447280
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9183
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x65d0c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.mb::common::crypto::EVPHashAlgorithm2.0
mov dword [esi + 4], 0
push 0x48
mov byte [ebp - 4], 1
call fcn.00573d8c
add esp, 4
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [esi + 4]
mov dword [esi + 4], eax
test ecx, ecx
je 0x447362
push 0x48
push ecx
call fcn.00573d6d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44a350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9718
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x65d0c8]
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, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test edx, edx
je 0x44a42e
mov edi, dword [ebp + 8]
test edi, edi
je 0x44a42e
push 0
lea eax, [ebp - 0x14]
push eax
push edi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44a3b0
cmp dword [ebp - 0x14], edi
je 0x44a456
test esi, esi
je 0x44a42a
mov edx, ebx
lea ecx, [ebp - 0x2c]
call fcn.0044ed50
mov ecx, eax
mov dword [ebp - 4], 0
cmp dword [ecx + 0x14], 8
jb 0x44a3cf
mov ecx, dword [ecx]
mov eax, dword [esi]
push ecx
push str.Error_writting_to_file_:__s
push str.FileStreamUtils
push 4
push 0xbb
push str.e:jenkinsworkspace_n_mbcommon_srcmbcommon_filestreamutils_win32.cpp
push str.mb::common::io::FileStreamUtils::Write
push esi
call dword [eax + 0x10]
mov edx, dword [ebp - 0x18]
add esp, 0x20
cmp edx, 8
jb 0x44a42a
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44a420
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44a474
push edx
push ecx
call fcn.00573d6d
add esp, 8
xor al, al
jmp 0x44a458
test esi, esi
je 0x44a456
mov eax, dword [esi]
push str.Skipping_writting_zero_byte_buffer__this_may_be_an_empty_file_
push str.FileStreamUtils
push 4
push 0xb3
push str.e:jenkinsworkspace_n_mbcommon_srcmbcommon_filestreamutils_win32.cpp
push str.mb::common::io::FileStreamUtils::Write
push esi
call dword [eax + 0x10]
add esp, 0x1c
mov al, 1
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.0057380b
mov esp, ebp
pop ebp
ret
call fcn.0057f56e
int3
Function at 0x44a5a0
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9748
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x65d0c8]
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, dword [ebp + 0x20]
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], 0
jb 0x44a5ed
mov eax, dword [esi]
push 0xf0000000
xor ecx, ecx
mov dword [esi + 0x10], 0
push 1
push ecx
mov word [eax], cx
lea eax, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x44a729
lea eax, [ebp - 0x80]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push 0
test eax, eax
jne 0x44a63e
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x44a729
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
add eax, eax
push eax
push ecx
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
test eax, eax
je 0x44a717
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0x14
push eax
lea eax, [ebp - 0x24]
push eax
push 2
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x44a715
mov edi, dword [ebp - 0x84]
cmp edi, 0x14
ja 0x44a715
push 0x52
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00577100
add esp, 0xc
xor edx, edx
test edi, edi
je 0x44a6dc
nop dword [eax]
movzx ecx, byte [ebp + edx - 0x24]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebp + edx*4 - 0x78], ax
movzx eax, word [ecx*2 + str.0123456789abcdef]
mov word [ebp + edx*4 - 0x76], ax
inc edx
cmp edx, edi
jb 0x44a6b0
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea edx, [ebp - 0x78]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x44a6f6
sub edx, ecx
lea eax, [ebp - 0x78]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.004183e0
mov bl, 1
jmp 0x44a72b
push 0
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor bl, bl
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x44a761
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44a757
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44a781
push edx
push ecx
call fcn.00573d6d
add esp, 8
mov al, bl
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.0057380b
mov esp, ebp
pop ebp
ret 0x1c
call fcn.0057f56e
int3
Function at 0x44ad80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x65d0c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
cmp dword [esi + 0x14], 8
jb 0x44adac
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
lea eax, [ebp - 0x10]
push eax
push 0x101
push ecx
push str.SoftwareMicrosoftCryptography
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44ae4a
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push str.MachineGuid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44ae41
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x44ae41
push edi
push eax
call fcn.005740be
mov edi, eax
add esp, 4
test edi, edi
je 0x44ae40
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push str.MachineGuid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44ae37
mov eax, dword [ebp - 0xc]
mov ecx, esi
shr eax, 1
dec eax
push eax
push edi
call fcn.004183e0
push edi
call fcn.00573d7b
add esp, 4
pop edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0057380b
mov esp, ebp
pop ebp
ret 4