joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], ecx
mov ecx, 0x5075dc
push 0
call fcn.0048a41e
mov edi, eax
mov dword [esp + 0x10], 1
test edi, edi
je 0x4396ea
mov ebp, dword [esp + 0x24]
mov eax, ebp
shr eax, 4
mov dword [esp + 0x18], eax
lea ecx, [eax + 1]
movzx eax, cx
mov dword [esp + 0x14], eax
push 0
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
je 0x4395ec
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4395ec
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4395ec
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, ebp
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4395e2
nop dword [eax]
cmp esi, edx
jae 0x4395ec
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4395d0
cmp esi, edx
jae 0x4395ec
cmp word [esi], 0
jne 0x439610
mov ecx, dword [esp + 0x10]
push ecx
inc ecx
mov dword [esp + 0x14], ecx
mov ecx, 0x5075dc
call fcn.0048a41e
mov edi, eax
test edi, edi
je 0x4396ea
mov eax, dword [esp + 0x14]
jmp 0x439590
test edi, edi
je 0x4396ea
mov eax, dword [esp + 0x18]
inc eax
push 6
movzx eax, ax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4396ea
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4396ea
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4396ea
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and ebp, 0xf
jbe 0x43967b
cmp esi, ecx
jae 0x4396ea
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ebp, 1
jne 0x439665
cmp esi, ecx
jae 0x4396ea
movzx eax, word [esi]
test ax, ax
je 0x4396ea
mov ebp, dword [esp + 0x1c]
mov edi, eax
mov ebx, eax
mov ecx, 1
mov edx, dword [ebp]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x4396b1
push edi
mov ecx, ebp
call fcn.0043bef0
mov edx, dword [ebp]
movzx ebx, word [esi]
movzx ecx, bx
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.00496d61
push eax
call fcn.004383a0
mov eax, dword [ebp]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x4396f6
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp]
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4
push 0x80070057
call fcn.0041e2d0
int3
Function at 0x43aa80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbab8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4ff684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov dword [ecx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ecx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ecx - 4], eax
mov eax, dword [ecx]
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov ebx, dword [eax + 4]
add ebx, ecx
mov ecx, ebx
call fcn.0041cc80
mov eax, dword [ebp + 8]
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x3c], 0
mov edi, dword [eax + 4]
mov dword [ebp - 0x1c], edi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4ce328]
mov ecx, edi
call esi
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 2
push eax
call fcn.0043d820
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x4ce328]
mov ecx, edi
call esi
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 0xd], al
test edi, edi
je 0x43ab68
mov edx, dword [edi]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x4ce328]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x43ab65
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x4ce328]
mov ecx, edi
call esi
mov al, byte [ebp - 0xd]
cmp dword [ebx + 0x38], 0
mov byte [ebx + 0x40], al
jne 0x43ab84
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
and eax, 0x13
or eax, 4
mov dword [ebx + 0xc], eax
and ecx, eax
jne 0x43abd0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 4]
mov dword [edx + eax + 0x10], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx + 0xc], eax
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + edx - 4], eax
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x43abdc
mov esi, str.ios_base::badbit_set
jmp 0x43abec
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x20]
push 1
push eax
call fcn.00413a22
add esp, 8
lea ecx, [ebp - 0x34]
push eax
push esi
call fcn.00413871
push 0x4fcca4
lea eax, [ebp - 0x34]
push eax
call fcn.0048aed2
int3
Function at 0x43e2d0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x43e440
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x43e440
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.0043e450
add esp, 4
cmp dword [ebp + 0x14], eax
jb 0x43e440
xor eax, eax
xor edx, edx
mov dword [ebp - 4], eax
cmp ebx, 2
jbe 0x43e3a3
lea edx, [edi + 2]
mov dword [ebp - 8], 2
xor edi, edi
movzx eax, byte [edx - 2]
lea edx, [edx + 3]
shr eax, 2
add edi, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [edx - 5]
movzx eax, byte [edx - 4]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx ecx, byte [edx - 4]
movzx eax, byte [edx - 3]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or ecx, eax
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [ebp - 8]
mov byte [esi + 2], al
add ecx, 3
movzx eax, byte [edx - 3]
and eax, 0x3f
mov dword [ebp - 8], ecx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
mov eax, dword [ebp - 4]
add eax, 3
mov dword [ebp - 4], eax
cmp ecx, ebx
jb 0x43e320
mov dword [ebp - 8], edi
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 8]
sub ebx, eax
add edi, eax
test bl, 2
je 0x43e400
movzx eax, byte [edi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx eax, byte [edi + 1]
and eax, 0xf
pop edi
movzx eax, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
add esi, 4
add edx, 4
mov byte [esi], 0
pop esi
lea eax, [edx + 1]
pop ebx
mov esp, ebp
pop ebp
ret
test bl, 1
je 0x43e433
movzx eax, byte [edi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx eax, byte [edi]
and eax, 3
shl eax, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
mov word [esi + 2], 0x3d3d
add esi, 4
add edx, 4
pop edi
mov byte [esi], 0
lea eax, [edx + 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e5c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbe18
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4ff684]
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 ecx, dword [ebp + 0x10]
mov eax, ecx
mov ebx, dword [ebp + 8]
mov edi, ecx
xor edi, 8
and al, 8
cmove edi, ecx
test ebx, ebx
jne 0x43e608
xor eax, eax
jmp 0x43e69c
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0
push 0
push 0x4dd6b8
call sub.SHELL32.dll_SHGetKnownFolderPath
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0
test eax, eax
jns 0x43e636
xor edi, edi
jmp 0x43e68f
push ebx
push esi
lea eax, [ebp - 0x28]
push 0x4d1a28
push eax
call fcn.0043e480
add esp, 0x10
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 0x14]
mov edi, eax
cmp ecx, 8
jb 0x43e67b
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x28]
call fcn.0041334d
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x43e69a
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
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 - 0x10]
xor ecx, ebp
call fcn.00488f07
mov esp, ebp
pop ebp
ret

Function at 0x43ed20
Capabilities:
Delete registry key

Disassembly:
mov dword [ecx], vtable.CoreTech::internal::CRegKeyImpl.0
jmp fcn.0043ed80

Function at 0x43ed80
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x43edba
cmp byte [esi + 0xc], 0
je 0x43eda3
push 0x4ebcc8
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [esi + 4]
mov byte [esi + 0xc], 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
ret
xor eax, eax
mov dword [esi + 8], eax
pop esi
ret
Function at 0x43fa60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4ff684]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x214], ecx
push ebx
mov dword [ebp - 0x210], eax
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
cmp dword [ebp + 0x14], 0
je 0x43fb70
test eax, eax
jne 0x43fb70
push edi
xor edi, edi
push esi
nop word [eax + eax]
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.0048b4c0
add esp, 0xc
mov dword [ebp - 0x20c], 0x100
lea eax, [ebp - 0x20c]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x204]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
jne 0x43fb46
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x208]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43fb4e
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x214]
push dword [ebp - 0x210]
push dword [ebp + 0xc]
push dword [ebp - 0x208]
call fcn.0043fa60
push dword [ebp - 0x208]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43fb4e
cmp esi, 0x103
je 0x43fb6c
inc edi
test esi, esi
je 0x43fab0
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488f07
mov esp, ebp
pop ebp
ret 0x10
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00488f07
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4421a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 8], ebx
cmp byte [ebx + 0x10], 0
jne 0x442251
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x4421cc
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x442251
mov ecx, dword [ebx + 8]
add ebx, 4
mov byte [ebp + 0xb], 0
mov edx, dword [ebx]
sub ecx, edx
cmp edi, ecx
jae 0x4421f3
lea eax, [edx + edi]
jmp 0x44221d
jbe 0x442220
mov eax, dword [ebx + 8]
sub eax, edx
cmp edi, eax
jbe 0x44220c
lea eax, [ebp + 0xb]
mov ecx, ebx
push eax
push edi
call fcn.00441a20
jmp 0x442220
mov eax, edi
push ebx
sub eax, ecx
push eax
push dword [ebx + 4]
call fcn.00441b00
add esp, 0xc
mov dword [ebx + 4], eax
push dword [ebx]
call fcn.00412f80
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x442232
mov esi, dword [esi]
push eax
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
mov ecx, dword [ebp - 8]
cmp eax, 1
pop edi
sete al
pop esi
mov byte [ecx + 0x10], al
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4492f0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4ff684]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], edi
cmp eax, dword [0x4ff480]
ja 0x4494fd
cmp byte [0x4ff068], 0
jne 0x449466
push 1
push 0x23
push 0x4ff278
push 0
mov byte [0x4ff068], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x449466
push str.McAfee_
push 0x104
push 0x4ff278
call fcn.004257c0
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push 0x4ff278
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44939a
call esi
cmp eax, 0xb7
jne 0x44942d
push 0x4ff070
push 0x104
push 0x4ff278
call fcn.004257c0
push 0
push 0x4ff278
call edi
test eax, eax
jne 0x4493c4
call esi
cmp eax, 0xb7
jne 0x44942d
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0048b4c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x4ff06c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x449446
push 0x5c
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
push eax
push 0x104
push 0x4ff278
call fcn.004257c0
push 0
push 0x4ff278
call edi
test eax, eax
jne 0x449446
call esi
cmp eax, 0xb7
je 0x449446
pop edi
xor eax, eax
pop esi
mov word [0x4ff278], ax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488f07
mov esp, ebp
pop ebp
ret
push str.log.txt
push 0x104
push 0x4ff278
call fcn.004257c0
mov esi, dword [ebp - 0x214]
mov edi, dword [ebp - 0x218]
cmp word [0x4ff278], 0
je 0x4494fd
push 0x4d38c4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push 0x4ff278
push eax
call fcn.00496e9b
mov eax, dword [ebp - 0x210]
add esp, 0xc
test eax, eax
je 0x4494fd
test esi, esi
je 0x4494ce
test edi, edi
je 0x4494ce
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp + 0x14]
push edi
push esi
push eax
push str._r_n_u_tFile:_s_tFunction:_s_tLine:_d_t
push dword [ebp - 0x210]
call fcn.00449510
mov eax, dword [ebp - 0x210]
add esp, 0x18
test ebx, ebx
je 0x4494f4
push dword [ebp - 0x21c]
push 0
push ebx
push eax
call fcn.00418b19
push dword [eax + 4]
push dword [eax]
call fcn.00492a7c
mov eax, dword [ebp - 0x210]
add esp, 0x18
push eax
call fcn.0049646b
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00488f07
mov esp, ebp
pop ebp
ret
Function at 0x44a090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4ff684]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push str.kernel32.dll
mov dword [ebp - 0x208], ebx
mov dword [ebp - 0x20c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x44a21c
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44a21c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44a21c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
je 0x44a21c
cmp word [ecx + 4], 0
jne 0x44a21c
cmp dword [ecx + 0x28], 0xfeef04bd
jne 0x44a21c
movzx eax, word [ecx + 0x32]
movzx ebx, word [ecx + 0x30]
movzx esi, word [ecx + 0x34]
push edi
movzx edi, word [ecx + 0x36]
push 0x200
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.0048b4c0
push esi
push edi
push ebx
push dword [ebp - 0x20c]
lea eax, [ebp - 0x204]
push str._d._d._d._d
push 0x100
push eax
call fcn.00425870
add esp, 0x28
test eax, eax
jns 0x44a1db
push str.Failed_to_format_version
push 0xb0
push str.NWebAdvisor::NXmlUpdater::CSubstitutionManager::GetOsVersion
push str.C:Jenkinsworkspacemer_WebAdvisor_XMLUpdater_master_srcXmlUpdaterSubstitutionManager.cpp
push 1
call fcn.00449540
mov esi, dword [ebp - 0x208]
add esp, 0x14
mov edx, dword [str._UNKNOWN]
xor eax, eax
mov ecx, edx
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
lea edi, [ecx + 2]
mov word [esi], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44a1b0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0041441e
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488f07
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x208]
lea ecx, [ebp - 0x204]
xor eax, eax
lea edx, [ecx + 2]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44a203
sub ecx, edx
lea eax, [ebp - 0x204]
sar ecx, 1
push ecx
push eax
jmp 0x44a1c1
push str.Failed_to_retrieve_kernel_verison
push 0xa9
push str.NWebAdvisor::NXmlUpdater::CSubstitutionManager::GetOsVersion
push str.C:Jenkinsworkspacemer_WebAdvisor_XMLUpdater_master_srcXmlUpdaterSubstitutionManager.cpp
push 1
call fcn.00449540
mov edx, dword [str._UNKNOWN]
add esp, 0x14
mov ecx, edx
mov dword [ebx], 0
xor eax, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44a260
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.0041441e
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00488f07
mov esp, ebp
pop ebp
ret
Function at 0x450ae0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4ff684]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
mov ecx, esi
push edi
mov edi, dword [ebp + 0x1c]
push 0
push 0x4ebcc8
mov dword [ebp - 8], eax
call fcn.0041441e
push 0
push 0x4ebcc8
mov ecx, edi
call fcn.0041441e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x450b8f
test al, 0x10
je 0x450b8f
lea eax, [ebp + 0x20]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x30], eax
xor esi, esi
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x24], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edi
test esi, esi
lea ecx, [ebp - 0x30]
setne al
movzx eax, al
push eax
call fcn.0044fec0
test al, al
jne 0x450baf
inc esi
cmp esi, 2
jl 0x450b64
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488f07
mov esp, ebp
pop ebp
ret
push str.Destination_directory_does_not_exist
push 0xc0
push str.NWebAdvisor::NHttp::NDownloadFile::StoreOnDisk
push str.C:Jenkinsworkspacemer_WebAdvisor_XMLUpdater_master_srcXmlUpdaterHttpsDownloadFile.cpp
push 1
call fcn.00449540
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00488f07
mov esp, ebp
pop ebp
ret
Function at 0x451390
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4ff684]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x451442
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x451442
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0048b4c0
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0048e201
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0048ae2e
add esp, 0x20
test eax, eax
je 0x451404
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
call fcn.00451390
add esp, 4
test al, al
jne 0x451428
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488f07
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x451442
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x451417
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00488f07
mov esp, ebp
pop ebp
ret
Function at 0x456f50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x456f5e
mov eax, dword [eax]
push esi
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [str.FALSE]
test eax, eax
mov esi, dword [ebp + 8]
cmovne edx, dword [str.TRUE]
xor eax, eax
mov ecx, edx
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
lea edi, [ecx + 2]
mov word [esi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456f97
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0041441e
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x461ea0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bead0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4ff684]
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
mov ebx, dword [ebp + 8]
mov esi, dword [edi + 4]
mov dword [ebp - 4], 0
test esi, esi
je 0x461f27
cmp dword [esi], 0
je 0x461f1c
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x461f42
push str.CreateFileTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x461f22
push 0
push 0
push dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push 1
push ebx
call eax
jmp 0x461f3d
cmp dword [esi + 4], 0
jne 0x461f27
or eax, 0xffffffff
jmp 0x461f3d
push 0
push 0x80
push 3
push 0
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x461f49
call fcn.004615f0
jmp 0x461f4d
mov dword [edi], eax
xor eax, eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
jns 0x461f81
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4d98c0
push 0x2d
push str.NWebAdvisor::CFileMemMap::Init
push str.C:Jenkinsworkspacemer_WebAdvisor_XMLUpdater_master_srcXmlUpdaterFileMemMap.h
push 1
call fcn.00449540
add esp, 0x18
xor al, al
jmp 0x462022
mov esi, dword [edi]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, eax
mov dword [edi + 0x10], ecx
test ecx, ecx
jne 0x461fb4
call fcn.004615f0
mov esi, eax
jmp 0x461ffd
mov eax, dword [ebp - 0x18]
push 0
push eax
push 0
push 0
push 4
push ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x20], 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [edi + 8], eax
test eax, eax
jne 0x462020
call fcn.004615f0
push dword [edi + 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], 0
test esi, esi
jns 0x462020
push str.Failed_to_map_file_to_memory
push 0x33
push str.NWebAdvisor::CFileMemMap::Init
push str.C:Jenkinsworkspacemer_WebAdvisor_XMLUpdater_master_srcXmlUpdaterFileMemMap.h
push 1
call fcn.00449540
add esp, 0x14
xor al, al
jmp 0x462022
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.00488f07
mov esp, ebp
pop ebp
ret 4