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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x43885b
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x43884a
jg 0x4387b0
test edx, edx
je 0x43884a
nop dword [eax]
call fcn.0043a030
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x438807
jg 0x4387c7
test esi, esi
je 0x438807
cmp ebx, eax
jg 0x4387d7
jl 0x4387d1
cmp edi, esi
jae 0x4387d7
mov esi, edi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0xc]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push dword [esp + 0x18]
call fcn.004859e0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x10]
jmp 0x43882c
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x438844
mov eax, dword [esp + 0x10]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
mov byte [eax], cl
mov ecx, dword [esp + 0xc]
add eax, esi
mov dword [esp + 0x10], eax
test ebx, ebx
jg 0x4387b0
jl 0x438844
test edi, edi
jne 0x4387b0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x43887d
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
jmp 0x43887f
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x438935
jg 0x43889a
test esi, esi
je 0x438935
test eax, eax
jl 0x4388e3
jg 0x4388a4
test ebx, ebx
je 0x4388e3
cmp edi, eax
jg 0x4388b4
jl 0x4388ae
cmp esi, ebx
jae 0x4388b4
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [esp + 0x14]
push dword [ebp + 8]
call fcn.004859e0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 0x2c]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x1c]
add dword [eax], ebx
jmp 0x4388ea
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test edi, edi
jl 0x438935
jg 0x4388f4
test esi, esi
je 0x438935
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x438935
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
cmp dword [ebx], eax
jne 0x438920
mov edx, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edx, dword [ebx + 0x4c]
push edx
push esi
push 1
push dword [esp + 0x1c]
call fcn.0048ff28
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x438cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4e506c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x438ce0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046de82
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x438d1c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x438d1c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046de82
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x438e03
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x438d44
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x438d77
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00490082
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046de82
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x28], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x438e03
cmp eax, 1
jle 0x438dd6
cmp eax, 3
jne 0x438e03
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0043dd10
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046de82
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x438df3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0048fb49
add esp, 0x10
cmp edi, eax
jne 0x438e03
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x438d07
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046de82
mov esp, ebp
pop ebp
ret 4
Function at 0x439b90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4e506c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x439c3f
cmp byte [esi + 0x3e], 0
je 0x439c3f
mov eax, dword [esi]
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x439bf5
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 0x439c07
sub eax, 1
je 0x439c0b
sub eax, 2
je 0x439c3f
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046de82
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x439c28
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0048fb49
add esp, 0x10
cmp edi, eax
jne 0x439bf5
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046de82
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0046de82
mov esp, ebp
pop ebp
ret

Function at 0x43a150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4e506c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x43a1f3
cmp byte [esi + 0x3d], 0
je 0x43a1f3
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x43a1a9
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 0x43a1bb
sub eax, 1
je 0x43a1bf
sub eax, 2
je 0x43a1f3
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046de82
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x43a1dc
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0048fb49
add esp, 0x10
cmp edi, eax
jne 0x43a1a9
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046de82
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0046de82
mov esp, ebp
pop ebp
ret
Function at 0x43aa30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1ff0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4e506c]
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.0046e3b1
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0046ab52
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 0x43afc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1ff0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4e506c]
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_char__struct_std::char_traits_char__.0
call fcn.0046e3b1
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0046ab52
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 0x4413a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4e506c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x4c9ea4
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 0x441478
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x441478
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x441478
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 0x441478
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x441478
push ebx
push dword [ebp - 0x10]
push eax
call fcn.004859e0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x441478
push 0x10
xor edi, edi
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x441476
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 0x441478
xor esi, esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x44148c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 8], 0
test edi, edi
je 0x441497
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.0046de82
mov esp, ebp
pop ebp
ret
Function at 0x442e00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b29d0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4e506c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SOFTWAREMalwarebytesmbam
push 0x80000001
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x442f13
cmp byte [0x4e5ac4], al
push 4
setne al
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 4
push esi
push str.dtopicon
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x442e99
push dword [ebp - 0x1c]
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x442f82
mov dword [ebp - 4], 0
call fcn.004039d0
mov ecx, eax
test ecx, ecx
je 0x442f9f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push str.Error_calling_RegSetValueExW__0x_08X_
push eax
call fcn.0040f620
mov esi, dword [ebp - 0x14]
add esp, 0xc
mov edx, 0x33c
mov ecx, str.c:jenkinsworkspacembam_windows_a_mb4_mbsetup_srcmbsetupmbutils.cpp
push esi
call fcn.004412b0
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 0x442f08
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x442f82
mov dword [ebp - 4], 3
call fcn.004039d0
mov ecx, eax
test ecx, ecx
je 0x442fa9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 4
push str.Error_calling_RegCreateKeyExW__0x_08X_
push eax
call fcn.0040f620
mov esi, dword [ebp - 0x14]
add esp, 0xc
mov edx, 0x345
mov ecx, str.c:jenkinsworkspacembam_windows_a_mb4_mbsetup_srcmbsetupmbutils.cpp
push esi
call fcn.004412b0
add esp, 4
add esi, 0xfffffff0
mov dword [ebp - 4], 5
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x442f82
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 esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046de82
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403b40
push 0x80004005
call fcn.00403b40
int3
Function at 0x443760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4e506c]
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, ecx
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x224], 0
push 0
push eax
call fcn.004864f0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x4437e4
xor al, al
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.0046de82
mov esp, ebp
pop ebp
ret
call fcn.004039d0
mov ecx, eax
test ecx, ecx
je 0x443933
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x443826
movzx eax, ax
lea ecx, [ebp - 0x220]
push eax
call fcn.00412d40
jmp 0x443852
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x443830
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.0040c5f0
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x220]
mov eax, dword [esi - 0xc]
lea ecx, [eax - 1]
test ecx, ecx
js 0x443929
cmp ecx, eax
jg 0x443929
cmp word [esi + ecx*2], 0x5c
jne 0x443890
push 1
push ecx
lea ecx, [ebp - 0x220]
call fcn.00449b80
mov esi, dword [ebp - 0x220]
mov eax, dword [ebx]
lea edi, [esi - 0x10]
mov edx, dword [edi + 4]
cmp dword [eax - 0xc], edx
jl 0x4438d3
push edx
push 0
lea eax, [ebp - 0x228]
mov ecx, ebx
push eax
call fcn.004363a0
mov byte [ebp - 4], 2
mov dword [ebp - 0x224], 1
test esi, esi
je 0x44393d
push esi
push dword [eax]
call fcn.0048c547
add esp, 8
test eax, eax
jne 0x4438d3
mov bl, 1
jmp 0x4438d5
xor bl, bl
mov dword [ebp - 4], 1
or esi, 0xffffffff
test byte [ebp - 0x224], 1
je 0x443909
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x443909
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 5
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x443922
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
jmp 0x4437c8
push 0x80070057
call fcn.00403b40
push 0x80004005
call fcn.00403b40
push 0x80004005
call fcn.00403b40
int3
Function at 0x443950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2b31
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4e506c]
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, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
call fcn.004039d0
mov ecx, eax
test ecx, ecx
je 0x443af1
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
push 0
push 0
push 0x4b853c
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
or edi, 0xffffffff
test eax, eax
jne 0x443aab
mov edx, dword [ebp - 0x18]
test edx, edx
jne 0x4439dc
xor ecx, ecx
jmp 0x4439f0
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4439e1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.0040c5f0
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
mov eax, dword [esi - 0xc]
lea ecx, [eax - 1]
test ecx, ecx
js 0x443ae7
cmp ecx, eax
jg 0x443ae7
cmp word [esi + ecx*2], 0x5c
jne 0x443a38
push 1
push ecx
lea ecx, [ebp - 0x14]
call fcn.00449b80
mov esi, dword [ebp - 0x14]
mov eax, dword [ebx]
mov edx, dword [esi - 0xc]
cmp dword [eax - 0xc], edx
jl 0x443a76
push edx
push 0
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.004363a0
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c], 1
test esi, esi
je 0x443afb
push esi
push dword [eax]
call fcn.0048c547
add esp, 8
test eax, eax
jne 0x443a76
mov bl, 1
jmp 0x443a78
xor bl, bl
mov dword [ebp - 4], 1
test byte [ebp - 0x1c], 1
je 0x443aa3
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x443aa3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x443aab
mov bl, 1
jmp 0x443aad
xor bl, bl
add esi, 0xfffffff0
mov dword [ebp - 4], 6
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x443ac9
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.0046de82
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403b40
push 0x80004005
call fcn.00403b40
push 0x80004005
call fcn.00403b40
int3
Function at 0x44a710
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3157
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e506c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0x48
call fcn.0046e3b1
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
lea esi, [edi + 0xc]
mov dword [edi + 4], 1
lea ecx, [esi + 4]
mov dword [edi + 8], 1
xor eax, eax
mov dword [edi], vtable.std::_Ref_count_obj_class_MBAMService_.0
mov dword [esi], vtable.MBAMService.0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov dword [ebp - 0x14], esi
mov word [ecx], ax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
push 0xb
mov byte [ebp - 4], 8
push str.MBAMService
mov byte [esi + 0x34], 1
call fcn.004078c0
xorps xmm0, xmm0
mov eax, ebx
movq qword [ebx], xmm0
mov dword [ebx], esi
mov dword [ebx + 4], 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
Function at 0x44e4c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4e506c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x44e578
push 0x228
lea eax, [ebp - 0x234]
push ebx
push eax
call fcn.004864f0
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x44e55f
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp dword [ebp - 0x230], edi
je 0x44e557
lea eax, [ebp - 0x238]
push eax
push esi
call ebx
test eax, eax
jne 0x44e525
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046de82
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x220]
jmp 0x44e53d
push str.Process32First___failed
mov edx, 0x76
mov ecx, str.c:jenkinsworkspacembam_windows_a_mb4_mbsetup_srcmbsetup_setuputils.cpp
call fcn.004412b0
add esp, 4
jmp 0x44e53d
push str.CreateToolhelp32Snapshot___failed
mov edx, 0x7d
mov ecx, str.c:jenkinsworkspacembam_windows_a_mb4_mbsetup_srcmbsetup_setuputils.cpp
call fcn.004412b0
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046de82
mov esp, ebp
pop ebp
ret
Function at 0x459310
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 0x4b4300
mov eax, dword fs:[0]
push eax
push ebx
push ecx
push esi
mov eax, dword [0x4e506c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00458e30
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.004561b0
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