joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4447c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554e7d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5ec3c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push str.state:_r_n
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
call fcn.00419cf0
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00419340
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x444887
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x44487d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4448e5
push ecx
push edx
call fcn.0050a4c5
add esp, 8
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4448c9
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4448bf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4448ea
push ecx
push edx
call fcn.0050a4c5
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050a47b
mov esp, ebp
pop ebp
ret 4
call fcn.00522dda
call fcn.00522dda
int3
Function at 0x448d40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555420
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x5ec3c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00448f40
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x448da4
mov byte [ebp - 0x91], 1
jmp 0x448f0b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004f1370
add esp, 4
test al, al
jne 0x448dc7
mov byte [ebp - 0x91], al
jmp 0x448f0b
push 0x50
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.0050cdd0
push 0x30
lea eax, [ebp - 0x70]
mov dword [ebp - 0x78], vtable.NInstaller::CCatalogCabParser.0
push 0
push eax
call fcn.0050cdd0
xorps xmm0, xmm0
mov dword [ebp - 0x70], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
mov ecx, esp
push eax
call fcn.0041f0a0
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x78]
call fcn.00449c20
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.0044a3f0
lea ecx, [ebp - 0x90]
mov byte [ebp - 0x91], al
call fcn.004196c0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x78], vtable.NInstaller::CCatalogCabParser.0
cmp ecx, 0x10
jb 0x448ea0
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x448e96
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x448f35
push ecx
push edx
call fcn.0050a4c5
add esp, 8
mov eax, dword [ebp - 0x68]
xor esi, esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
test eax, eax
je 0x448ed4
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x448ecd
call fcn.00425d70
mov esi, eax
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x448ef6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x448eef
test esi, esi
js 0x448eef
call fcn.00425d70
mov dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x448f0b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x28]
call fcn.004196c0
mov al, byte [ebp - 0x91]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050a47b
mov esp, ebp
pop ebp
ret 4
call fcn.00522dda
int3
Function at 0x44ad70
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55578b
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5ec3c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x80]
mov esi, dword [ebp + 0xc]
push 0x40
push 0
mov dword [ebp - 0x88], edi
push eax
mov dword [ebp - 0x84], vtable.CMD5Checksum.0
call fcn.0050cdd0
add esp, 0xc
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0x67452301
mov dword [ebp - 0x34], 0xefcdab89
mov dword [ebp - 0x30], 0x98badcfe
mov dword [ebp - 0x2c], 0x10325476
push dword [ebp + 0x10]
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0
push esi
call fcn.0044d510
xorps xmm0, xmm0
lea ecx, [ebp - 0x3f]
movups xmmword [ebp - 0x28], xmm0
xor edx, edx
nop
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x18], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x17], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x16], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x15], al
add edx, 4
cmp edx, 8
jb 0x44ae10
mov edx, dword [ebp - 0x40]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0x84]
push eax
push 0x5ee600
call fcn.0044d510
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x84]
call fcn.0044d510
xor edx, edx
lea ecx, [ebp - 0x37]
nop
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x28], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x27], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x26], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x25], al
add edx, 4
cmp edx, 0x10
jb 0x44ae80
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x88]
call fcn.0044d1b0
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov esi, dword [ebp - 0x88]
mov ecx, esi
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44aee0
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00419c40
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x44af12
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
mov edx, dword [edx + 4]
call edx
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.0050a47b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44ca30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44ca8b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x44ca8b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x44ca78
cmp esi, edx
jae 0x44ca8b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x44ca66
cmp esi, edx
jae 0x44ca8b
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4504f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555efb
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x5ec3c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], edx
mov esi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0050cdd0
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x45072f
sub esp, 8
mov eax, esp
sub esp, 8
mov edx, esp
mov dword [eax], 0x5cc850
mov dword [eax + 4], 6
lea eax, [ebp - 0x218]
mov ecx, eax
mov dword [edx], eax
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x450580
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x240]
call fcn.00450370
mov edi, eax
add esp, 0x10
cmp esi, edi
je 0x4505d0
mov ecx, esi
call fcn.004196c0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x240]
call fcn.004196c0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4505e5
mov eax, dword [esi]
mov byte [ebp - 0x224], 0
lea edx, [ebp - 0x220]
push dword [ebp - 0x224]
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x220], eax
call fcn.00451240
mov edx, dword [ebp - 0x228]
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], 0
call fcn.00450d80
add esp, 4
mov byte [ebp - 0x219], al
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], 0xffffffff
call fcn.004196c0
cmp byte [ebp - 0x219], 0
je 0x45072f
sub esp, 8
mov ecx, esi
mov eax, esp
mov dword [eax], 0x5c9a68
mov dword [eax + 4], 0xa
cmp dword [esi + 0x14], 8
jb 0x450665
mov ecx, dword [esi]
sub esp, 8
lea edi, [ecx + 2]
mov edx, esp
mov dword [edx], ecx
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x450670
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x240]
call fcn.00450370
mov edi, eax
add esp, 0x10
cmp esi, edi
je 0x4506c0
mov ecx, esi
call fcn.004196c0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x240]
call fcn.004196c0
cmp dword [esi + 0x14], 8
jb 0x4506d3
mov esi, dword [esi]
mov byte [ebp - 0x220], 0
lea edx, [ebp - 0x224]
push dword [ebp - 0x220]
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x224], esi
call fcn.00451240
mov edx, dword [ebp - 0x228]
lea ecx, [ebp - 0x258]
mov dword [ebp - 4], 1
call fcn.00450d80
add esp, 4
mov byte [ebp - 0x219], al
lea ecx, [ebp - 0x258]
call fcn.004196c0
cmp byte [ebp - 0x219], 0
setne al
jmp 0x450731
xor al, al
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.0050a47b
mov esp, ebp
pop ebp
ret
Function at 0x450d80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55602d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5ec3c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x450dc0
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x450e09
test eax, 0x400
je 0x450e09
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x450ddd
mov eax, dword [esi]
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x18]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], eax
call fcn.00451240
add esp, 4
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00450110
lea ecx, [ebp - 0x30]
call fcn.004196c0
cmp dword [esi + 0x14], 8
jb 0x450e11
mov esi, dword [esi]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x450e44
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x450e44
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
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 0x452c40
Capabilities:
Get session information
Get session user name
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55644e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5ec3c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0
push 7
movups xmmword [esi], xmm0
push 0x5cc9e0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00419c40
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
jne 0x452ccd
push str.Error_retrieving_session_id_for_generating_log_name.
jmp 0x452d25
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 5
push eax
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x452d20
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x452d20
mov eax, dword [ebp - 0x14]
cmp eax, 2
jbe 0x452d0a
shr eax, 1
dec eax
push eax
push ecx
mov ecx, esi
call fcn.0041d900
push dword [ebp - 0x18]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
jmp 0x452d2b
push str.WTSQuerySessionInformation_failed_to_retrieve_the_size_of_the_current_user_name_for_the_log_name.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x18]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
jmp 0x452d2b
push str.WTSQuerySessionInformation_failed_to_retrieve_current_user_name_for_the_log_name.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050a47b
mov esp, ebp
pop ebp
ret
Function at 0x453750
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5565dd
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x5ec3c8]
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 dword [ebp - 0x1c], edx
mov ebx, ecx
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jne 0x45381e
call fcn.0044f060
push 1
lea ecx, [ebp - 0x160]
push ecx
mov ecx, eax
call fcn.0044f5c0
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], str.SystemUtils.cpp
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x14], 0x74
call fcn.0041a580
mov edx, str.GetEnvironmentVariable_failed:
lea ecx, [ebp - 0x160]
call fcn.0041a5e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x160]
call fcn.004301e0
lea ecx, [ebp - 0x108]
call fcn.0044dd10
lea eax, [ebp - 0x108]
mov dword [ebp - 4], edi
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004f317c
add esp, 4
xor al, al
jmp 0x453966
xor ecx, ecx
mov edx, 2
mul edx
push 0x5b417e
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050a503
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
test esi, esi
jne 0x4538b3
call fcn.0044f060
push 1
lea ecx, [ebp - 0xc0]
push ecx
mov ecx, eax
call fcn.0044f5c0
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], str.SystemUtils.cpp
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x1c], 0x7b
call fcn.0041a580
mov edx, str.failed_to_allocate_buffer
lea ecx, [ebp - 0xc0]
call fcn.0041a5e0
lea ecx, [ebp - 0x68]
call fcn.0044dd10
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x68], vtable.std::ios_base.0
call fcn.004f317c
add esp, 4
xor bl, bl
jmp 0x453964
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x45393b
call fcn.0044f060
push 1
lea ecx, [ebp - 0xc0]
push ecx
mov ecx, eax
call fcn.0044f5c0
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], str.SystemUtils.cpp
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x1c], 0x82
call fcn.0041a580
mov edx, str.GetEnvironmentVariable_failed:
lea ecx, [ebp - 0xc0]
call fcn.0041a5e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0xc0]
call fcn.004301e0
lea ecx, [ebp - 0x68]
call fcn.0044dd10
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 3
push eax
mov dword [ebp - 0x68], vtable.std::ios_base.0
call fcn.004f317c
add esp, 4
xor bl, bl
jmp 0x45395b
mov edx, esi
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x453940
mov ecx, dword [ebp - 0x1c]
sub edx, edi
sar edx, 1
push edx
push esi
call fcn.0041d900
mov bl, 1
push esi
call fcn.0050aa90
add esp, 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.0050a47b
mov esp, ebp
pop ebp
ret
Function at 0x454fb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x5ec3c8]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push 0
lea eax, [esp + 0xc]
mov dword [esp + 8], 0x5c8168
push eax
push 0
push 0x20106
push 1
push 0
push 0
push str.SOFTWAREMcAfeeWebAdvisorPendingReboot
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x455001
xor bl, bl
jmp 0x45501a
push 0
push 0
push 1
push 0
push 0
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, dword [esp + 8]
mov dword [esp + 4], 0x5c8168
test eax, eax
je 0x455031
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xc]
mov al, bl
pop ebx
xor ecx, esp
call fcn.0050a47b
mov esp, ebp
pop ebp
ret

Function at 0x455050
Capabilities:
Get common file path
Get startup folder

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 0x556804
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x260
mov eax, dword [0x5ec3c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x23c], esi
push 0x208
lea eax, [ebp - 0x220]
mov dword [ebp - 0x23c], esi
push 0
push eax
mov dword [ebp - 0x240], 0
call fcn.0050cdd0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0
push 0x18
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4550f4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x4551fe
sub esp, 8
mov eax, esp
sub esp, 8
mov edx, esp
mov dword [eax], str._McRebootA5E6DEAA56_.lnk
mov dword [eax + 4], 0x18
lea eax, [ebp - 0x220]
mov ecx, eax
mov dword [edx], eax
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x455120
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x238]
call fcn.00450370
add esp, 0x10
mov dword [ebp - 4], 0
cmp dword [ebp - 0x228], 0x104
jae 0x455170
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x270]
call fcn.0041f0a0
mov byte [ebp - 4], 1
mov ecx, 2
jmp 0x4551a9
xorps xmm0, xmm0
mov dword [ebp - 0x248], 0
xor eax, eax
mov dword [ebp - 0x244], 7
movups xmmword [ebp - 0x258], xmm0
mov word [ebp - 0x258], ax
lea eax, [ebp - 0x258]
mov dword [ebp - 4], 2
mov ecx, 4
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x23c], ecx
mov ecx, esi
push eax
call fcn.0041f0a0
mov eax, dword [ebp - 0x23c]
or eax, 1
test al, 4
je 0x4551e4
and eax, 0xfffffffb
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x23c], eax
call fcn.004196c0
mov eax, dword [ebp - 0x23c]
test al, 2
je 0x4551f3
lea ecx, [ebp - 0x270]
call fcn.004196c0
lea ecx, [ebp - 0x238]
call fcn.004196c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050a47b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4557e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55687d
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push ebx
push esi
push edi
mov eax, dword [0x5ec3c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
mov dword [ebp - 0x10], esi
call fcn.004f3843
add esp, 4
test eax, eax
jne 0x4559da
mov dword [ebp - 4], eax
mov edi, dword [esi + 0x30]
test edi, edi
jne 0x4558a1
sub esp, 8
call fcn.004585f0
mov edi, eax
add esp, 8
test edi, edi
jne 0x45589e
call fcn.0044f060
push 1
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, eax
call fcn.0044f5c0
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], str.c:jenkinsworkspaceebAdvisor_WABinary_release_4.1.1_srcincludesResourceManager.h
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x14], 0x125
call fcn.0041a580
mov edx, str.Failed_to_load_Resource.dll
lea ecx, [ebp - 0xb8]
call fcn.0041a5e0
lea ecx, [ebp - 0x60]
call fcn.0044dd10
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.004f317c
add esp, 4
jmp 0x4558a1
mov dword [esi + 0x30], edi
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004f3868
add esp, 4
test edi, edi
jne 0x45592e
call fcn.0044f060
push 1
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, eax
call fcn.0044f5c0
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], str.c:jenkinsworkspaceebAdvisor_WABinary_release_4.1.1_srcincludesResourceManager.h
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x14], 0x82
call fcn.0041a580
mov edx, str.Failed_to_load_resource_dll
lea ecx, [ebp - 0xb8]
call fcn.0041a5e0
lea ecx, [ebp - 0x60]
call fcn.0044dd10
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.004f317c
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
call fcn.004559f0
movzx eax, ax
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
jne 0x4559b1
mov ecx, dword [ebp - 0x10]
xor esi, esi
and ecx, 0x3ff
mov dword [ebp - 0x10], ecx
nop dword [eax + eax]
mov eax, esi
shl eax, 0xa
or eax, ecx
push eax
push dword [ebp + 0xc]
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
jne 0x4559b1
mov ecx, dword [ebp - 0x10]
inc esi
cmp si, 0x20
jb 0x455960
mov esi, dword [ebp + 0xc]
push eax
push esi
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
jne 0x4559b1
push 0x409
push esi
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
je 0x455918
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
push ebx
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
call fcn.004f3949
int3