joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a820
Capabilities:
Schedule task via itaskservice

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x4338fc
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push esi
push edi
mov eax, dword [0x448090]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
lea eax, [esp + 0x18]
push eax
push 0x4357ec
push 1
push 0
push 0x43586c
mov dword [esp + 0xb4], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x41aa39
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0x54]
push eax
call esi
movdqa xmm0, xmmword [esp + 0x54]
lea eax, [esp + 0x44]
push eax
movdqa xmmword [esp + 0x68], xmm0
call esi
movdqa xmm0, xmmword [esp + 0x44]
lea eax, [esp + 0x34]
push eax
movdqa xmmword [esp + 0x78], xmm0
call esi
movdqa xmm0, xmmword [esp + 0x34]
lea eax, [esp + 0x24]
push eax
movdqa xmmword [esp + 0x88], xmm0
call esi
mov byte [esp + 0xa0], 4
movdqa xmm0, xmmword [esp + 0x64]
mov eax, dword [esp + 0x18]
sub esp, 0x10
mov edx, dword [eax]
mov ecx, esp
sub esp, 0x10
movq qword [ecx], xmm0
movsd xmm0, qword [esp + 0x8c]
movq qword [ecx + 8], xmm0
movdqa xmm0, xmmword [esp + 0x94]
mov ecx, esp
sub esp, 0x10
movq qword [ecx], xmm0
movsd xmm0, qword [esp + 0xac]
movq qword [ecx + 8], xmm0
movdqa xmm0, xmmword [esp + 0xb4]
mov ecx, esp
sub esp, 0x10
movq qword [ecx], xmm0
movsd xmm0, qword [esp + 0xcc]
movq qword [ecx + 8], xmm0
movq xmm0, qword [esp + 0x64]
mov ecx, esp
push eax
movq qword [ecx], xmm0
movq xmm0, qword [esp + 0x70]
movq qword [ecx + 8], xmm0
call dword [edx + 0x28]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edi, eax
lea eax, [esp + 0x24]
push eax
call esi
lea eax, [esp + 0x34]
push eax
call esi
lea eax, [esp + 0x44]
push eax
call esi
lea eax, [esp + 0x54]
push eax
call esi
test edi, edi
js 0x41aa39
mov dword [esp + 0x1c], 0
mov byte [esp + 0xa0], 5
mov esi, dword [esp + 0x18]
push 0x43c884
lea ecx, [esp + 0x24]
call fcn.00419740
mov byte [esp + 0xa0], 6
mov eax, dword [eax]
test eax, eax
je 0x41a9b7
mov ecx, dword [eax]
jmp 0x41a9b9
xor ecx, ecx
mov eax, dword [esi]
lea edx, [esp + 0x1c]
push edx
push ecx
push esi
call dword [eax + 0x1c]
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0xa0], 5
call fcn.004197e0
test esi, esi
js 0x41aa1f
push dword [ebp + 8]
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x24]
call fcn.00419740
mov byte [esp + 0xa0], 7
mov ecx, dword [eax]
test ecx, ecx
je 0x41a9fe
mov ecx, dword [ecx]
jmp 0x41aa00
xor ecx, ecx
mov eax, dword [esi]
push 0
push ecx
push esi
call dword [eax + 0x3c]
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.004197e0
test esi, esi
js 0x41aa1f
mov esi, 1
jmp 0x41aa21
xor esi, esi
mov byte [esp + 0xa0], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41aa3b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x41aa3b
xor esi, esi
mov dword [esp + 0xa0], 0xffffffff
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x41aa54
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41adf0
Capabilities:
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4339d8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x448020]
mov ecx, 0x448020
mov eax, dword [eax + 0xc]
mov byte [ebp - 0x20], 0
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [0x448020]
mov ecx, 0x448020
mov eax, dword [eax + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
lea eax, [ebp - 0x50]
push eax
movdqa xmmword [ebp - 0x50], xmm0
movdqa xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
or esi, 0xffffffff
cmp word [ebp - 0x50], 9
jne 0x41af78
lea ecx, [ebp - 0x20]
call fcn.0041aad0
test eax, eax
js 0x41af4e
cmp byte [ebp - 0x20], 0
je 0x41af75
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xa
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
push eax
call fcn.004028c0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x14], eax
push 2
push 0x43d5e4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004032b0
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push dword [edi - 0xc]
push edi
call fcn.004032b0
mov esi, dword [ebp - 0x14]
push esi
lea ecx, [ebp - 0x44]
call fcn.00414960
lea edx, [ebp - 0x44]
mov ecx, str.PckUEFI
call fcn.00402bf0
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41af44
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x44]
call fcn.00414a00
jmp 0x41af78
push eax
push str.failed_get_UEFI_statistic__hres__0x_h
push 3
push 3
push 0x56
push str.UEFIFirmwareStatCollector::SendReport
push str.UEFIFirmwareStatCollector.cpp
lea ecx, [ebp - 0x38]
call fcn.0041e2e0
push eax
call fcn.0041e500
add esp, 0x14
mov edi, dword [ebp - 0x18]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41af98
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x41afb2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x41cf00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x433c78
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, edx
mov eax, ecx
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x41cf61
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x40], esi
test edi, edi
je 0x41cf92
push edi
lea ecx, [esp + 0x28]
call fcn.00410640
test al, al
je 0x41cf8e
call fcn.004080f0
mov esi, dword [esp + 0x24]
push esi
push edi
push 0
push dword [esp + 0x2c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41d007
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0x43c884
push esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41d007
cmp dword [esp + 0x14], 0x34
jne 0x41d007
mov ecx, dword [esp + 0x18]
cmp dword [ecx], 0xfeef04bd
jne 0x41d007
movzx eax, word [ecx + 0xa]
mov word [ebx], ax
movzx eax, word [ecx + 8]
mov word [ebx + 2], ax
movzx eax, word [ecx + 0xe]
mov word [ebx + 4], ax
movzx eax, word [ecx + 0xc]
mov word [ebx + 6], ax
mov edi, 1
jmp 0x41d009
xor edi, edi
test esi, esi
je 0x41d016
push esi
call fcn.00420629
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d120
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433d47
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.CInstActionBase.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x14], 0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
push esi
lea ecx, [esi + 0x1c]
mov dword [esi + 0x18], eax
call fcn.0040f0c0
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
lea ecx, [esi + 0x4c]
mov dword [esi + 0x48], 0
call fcn.00403130
push dword [ebp + 0x10]
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 3
call fcn.00403130
push dword [ebp + 0x14]
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 4
call fcn.00403130
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x64], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x68], eax
mov eax, dword [0x448020]
mov ecx, 0x448020
call dword [eax + 0xc]
push 0
add eax, 0x10
push 0
mov dword [esi + 0x70], eax
mov eax, dword [ebp + 0x20]
push 1
push 0
mov dword [esi + 0x74], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
xorps xmm0, xmm0
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0
movq qword [ebp - 0x34], xmm0
movq qword [ebp - 0x2c], xmm0
movq qword [ebp - 0x24], xmm0
movq qword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xor eax, eax
mov ecx, 9
cmp cx, word [ebp - 0x38]
sete al
mov dword [esi + 0x6c], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x41d260
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4332c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov eax, dword [0x448020]
mov ecx, 0x448020
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x41d2ca
push 0x104
lea ecx, [ebp - 0x14]
call fcn.004026b0
mov esi, dword [ebp - 0x14]
push esi
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push dword [esi - 8]
push esi
call fcn.00420547
add esp, 8
test eax, eax
js 0x41d3a7
cmp eax, dword [esi - 8]
jg 0x41d3a7
xor ecx, ecx
mov dword [esi - 0xc], eax
push 1
mov word [esi + eax*2], cx
push 0x43c884
lea ecx, [ebp - 0x14]
call fcn.004032b0
test edi, edi
jne 0x41d316
xor ecx, ecx
jmp 0x41d32f
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x41d320
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d320
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x14]
call fcn.004032b0
mov esi, dword [ebp - 0x14]
xorps xmm0, xmm0
lea edx, [ebp - 0x1c]
mov ecx, esi
movq qword [ebp - 0x1c], xmm0
call fcn.0041cf00
test eax, eax
jne 0x41d356
xor edi, edi
jmp 0x41d372
movzx eax, word [ebp - 0x1c]
cmp eax, ebx
ja 0x41d36d
jne 0x41d369
movzx eax, word [ebp - 0x1a]
cmp eax, dword [ebp + 8]
jae 0x41d36d
xor edi, edi
jmp 0x41d372
mov edi, 1
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d393
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 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
push 0x80070057
call fcn.00402950
int3
Function at 0x41d3c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433d78
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x38
lea eax, [ebp - 0x5c]
push 0
push eax
mov dword [ebp - 0x60], 0x3c
call fcn.00421940
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x50], eax
push eax
mov dword [ebp - 0x5c], 0x40
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov eax, dword [0x448020]
mov ecx, 0x448020
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
test edx, edx
je 0x41d45b
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x41d440
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d440
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00402440
jmp 0x41d46c
lea eax, [ebp - 0x10]
push str._q__norestart
push eax
call fcn.004025d0
add esp, 8
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x4c], esi
mov dword [ebx + 0x5c], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x41d534
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x18]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x41d534
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
xor edi, edi
mov dword [ebp - 0x14], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x41d529
mov eax, dword [ebp - 0x14]
cmp eax, 0xbc2
jne 0x41d4e5
mov dword [ebx + 0x48], 1
mov dword [ebx + 0x5c], 0x2710
mov edi, 1
jmp 0x41d4fc
test eax, eax
jne 0x41d4f5
mov dword [ebx + 0x5c], 0x2710
lea edi, [eax + 1]
jmp 0x41d4fc
mov dword [ebx + 0x5c], 6
push dword [ebx + 0x48]
lea ecx, [ebp - 0x24]
push eax
push dword [ebp + 8]
push str.Prerequisite_install_path__retCode__RebootRequired_:__s___u___i
push 1
push 3
push 0x7f
push str.CInstActionBase::PackageInstall
push str.InstAction.cpp
call fcn.0041e2e0
push eax
call fcn.0041e500
add esp, 0x1c
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41d536
xor edi, edi
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d557
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 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 8
Function at 0x41e530
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ecx + 0x44], 0xffffffff
mov dword [ebp - 4], ecx
jne 0x41e548
mov eax, 0x80040101
mov esp, ebp
pop ebp
ret 8
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp edi, esi
je 0x41e5b6
cmp dword [ebp + 8], esi
je 0x41e5b6
push ebx
mov dword [ebp + 0xc], esi
cmp edi, esi
jbe 0x41e58e
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x41e56b
mov ecx, dword [ebp - 4]
push 0
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov edx, edi
sub edx, esi
push edx
lea edx, [esi + eax]
mov eax, dword [ecx + 0x44]
push edx
push eax
call ebx
test eax, eax
je 0x41e599
add esi, dword [ebp + 0xc]
cmp esi, edi
jb 0x41e568
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41e590
pop ebx
and eax, 0xffff
pop edi
or eax, 0x80070000
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, 0x80070057
pop esi
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431a07
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov eax, dword [0x448020]
mov edx, dword [eax + 0xc]
mov ecx, 0x448020
mov byte [ebp - 4], 2
call edx
add eax, 0x10
mov dword [esi + 0x40], eax
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 3
mov dword [esi + 0x44], 0xffffffff
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], 0x10400
call fcn.0041f830
lea eax, [esi + 0x5c]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
push edi
mov dword [eax + 0x10], ecx
push eax
mov byte [ebp - 4], 4
mov dword [eax + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x41ea28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x41ea20
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
jge 0x41ea28
push eax
call fcn.00402950
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41edb0
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431a80
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [0x448020]
mov edx, dword [eax + 0xc]
mov ecx, 0x448020
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [0x448020]
mov edx, dword [eax + 0xc]
mov ecx, 0x448020
mov dword [ebp - 4], 0
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0041ebb0
mov esi, dword [ebx + 0x34]
dec esi
mov edi, eax
test esi, esi
jle 0x41ee85
lea ecx, [ebp - 0x14]
lea eax, [esi - 1]
push ecx
push eax
mov ecx, ebx
mov dword [ebp - 0x18], eax
call fcn.0041ea40
mov edi, eax
test edi, edi
js 0x41ee7e
lea edx, [ebp - 0x10]
push edx
push esi
mov ecx, ebx
call fcn.0041ea40
mov edi, eax
test edi, edi
js 0x41ee7e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x41ee7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41ee7e
cmp eax, 3
je 0x41ee7e
test eax, eax
jle 0x41ee7c
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov esi, dword [ebp - 0x18]
test esi, esi
jg 0x41ee20
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41eea8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41eece
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 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 0x41f1b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431b10
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x448020]
mov edx, dword [eax + 0xc]
mov ecx, 0x448020
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
call fcn.0041fca0
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0041edb0
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, esi
call fcn.0041ea40
mov ebx, dword [ebp - 0x10]
mov edi, eax
test edi, edi
js 0x41f2ca
lea ecx, [ebp - 0x10]
push ecx
mov ecx, esi
call fcn.0041eef0
mov edi, eax
test edi, edi
js 0x41f2ca
push 0
push 0x80000080
push 2
lea ecx, [ebp - 0x34]
call fcn.0041fd10
push eax
push 5
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x44], eax
cmp eax, 0xffffffff
je 0x41f2ca
cmp dword [esi + 0x30], 0
jne 0x41f287
push 0
lea edx, [ebp - 0x14]
push edx
push 2
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.0041fcc0
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f2b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
and ecx, 0x80000000
cmp ecx, 0x80000000
je 0x41f2f0
test eax, eax
jle 0x41f2ee
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.0041fcc0
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f31f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 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 0x41f890
Capabilities:
Check os version
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x448090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x118], 0x114
call fcn.00421940
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41f966
cmp dword [ebp - 0x114], 5
push edi
jne 0x41f8f3
cmp dword [ebp - 0x110], 1
mov edi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
je 0x41f8f8
mov edi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 0x18
push edi
push 0
push esi
call ebx
test eax, eax
jne 0x41f953
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x41f92e
push 8
push 0x18
push edi
push 0
push esi
call ebx
test eax, eax
jne 0x41f953
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], 0
test eax, eax
jle 0x41f942
and eax, 0xffff
or eax, 0x80070000
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fe49
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fe49
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41f944
mov ecx, dword [ebp - 4]
and eax, 0xffff
xor ecx, ebp
or eax, 0x80070000
pop esi
call fcn.0041fe49
mov esp, ebp
pop ebp
ret