joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404bd0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x208
mov eax, dword [0x44dc1c]
xor eax, esp
mov dword [esp + 0x204], eax
push ebp
mov ebp, dword [esp + 0x210]
test ebp, ebp
je 0x404ddb
mov eax, 0x457dd8
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404c00
sub eax, edx
sar eax, 1
je 0x404ddb
mov eax, ebp
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404c20
sub eax, edx
sar eax, 1
je 0x404ddb
push 0xff
push ebp
lea eax, [esp + 0x10]
push pe_nt_image_headers32
push eax
call fcn.0042400b
add esp, 0x10
cmp byte [esp + 0x214], 0
je 0x404c6f
lea ecx, [esp + 8]
push 0x2e
push ecx
call fcn.004244ad
add esp, 8
test eax, eax
je 0x404c6f
mov word [eax], 0
push ebx
push edi
xor ebx, ebx
mov edi, 0x44f240
lea edx, [esp + 0x10]
push edx
push edi
call fcn.00423cbc
add esp, 8
test eax, eax
je 0x404c9d
add edi, 0x208
add ebx, 1
cmp edi, str.._AVout_of_range_std__
jl 0x404c78
jmp 0x404cbd
mov eax, ebx
imul eax, eax, 0x208
mov ecx, dword [eax + 0x44f238]
mov dword [esi + 0x1204], ecx
mov edx, dword [eax + 0x44f23c]
mov dword [esi + 0x1208], edx
push 0x3ff
lea eax, [esp + 0x14]
push eax
lea ebx, [esi + 0x800]
push 0x400
push ebx
call fcn.0042400b
mov al, byte [esp + 0x22c]
add esp, 0x10
test al, al
mov byte [esi + 0x1200], al
je 0x404d42
push ebp
push 0x457dd8
push str._s_s
push 0x400
push esi
call fcn.0042482a
add esp, 0x14
mov ecx, dword [esi + 0x1208]
mov edx, dword [esi + 0x1204]
push ecx
push edx
push ebx
push str.Add___s____0x_04x_____d_
mov ecx, 0x45a600
call fcn.00412540
add esp, 0x10
mov al, 1
pop edi
pop ebx
pop ebp
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.0042397a
add esp, 0x208
ret 8
push 0x800
push 0
push esi
call fcn.004260b0
push str.start_here.htm
push ebp
push 0x457dd8
push str._s_s_s
push 0x400
push esi
call fcn.0042482a
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x24
push esi
call edi
test eax, eax
jne 0x404d05
push 0x800
push eax
push esi
call fcn.004260b0
push str.troubleshooting.htm
push ebp
push 0x457dd8
push str._s_s_s
push 0x400
push esi
call fcn.0042482a
add esp, 0x24
push esi
call edi
test eax, eax
jne 0x404d05
push ebp
push 0x457dd8
push str.Target_manual_file_was_not_found_under___s_s_
mov ecx, 0x45a600
call fcn.00412540
push 0x800
push 0
push esi
call fcn.004260b0
add esp, 0x18
xor al, al
jmp 0x404d28
mov ecx, dword [esp + 0x208]
pop ebp
xor ecx, esp
xor al, al
call fcn.0042397a
add esp, 0x208
ret 8
Function at 0x405b10
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x43c068
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x44dc1c]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
push str.CI3DeleteFile
mov ecx, 0x45a600
call fcn.00412540
add esp, 4
xor esi, esi
mov dword [ebp - 4], esi
cmp edi, esi
je 0x405c8e
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x405b72
sub eax, edx
sar eax, 1
je 0x405c8e
push 0x800
push esi
lea eax, [ebp]
push eax
call fcn.004260b0
add esp, 0xc
push edi
lea ecx, [ebp - 0x18]
call fcn.004025b0
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x18]
call fcn.00406f50
mov edi, eax
call fcn.00406fd0
push 0x3ff
mov ecx, dword [ebp - 0x18]
push ecx
push 0x400
lea edx, [ebp]
push edx
call fcn.0042400b
add esp, 0x10
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405c62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x405c19
lea ecx, [ebp]
push ecx
push str.Delete_File____s_
mov ecx, esi
mov edx, 0x45a600
call fcn.00412400
add esp, 8
mov dword [ebp - 0x1c], esi
push 0x4499d0
lea edx, [ebp - 0x1c]
push edx
call fcn.0042623c
sub eax, 2
je 0x405c5d
sub eax, 3
je 0x405c42
sub eax, 0x1b
je 0x405c51
lea eax, [ebp]
push eax
push str.Delete_File____s_
mov ecx, esi
mov edx, 0x45a600
call fcn.00412400
add esp, 8
jmp 0x405c62
push 0x80
lea ecx, [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp]
call fcn.00405d10
mov esi, eax
jmp 0x405c5f
xor esi, esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405c85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
jmp 0x405ce9
mov eax, 0x57
jmp 0x405ceb
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.0042397a
add ebp, 0x804
mov esp, ebp
pop ebp
ret
Function at 0x405d10
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00426290
push 0xffffffffffffffff
push 0x43b6c0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44dc1c]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x405eb0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405d67
sub eax, edx
sar eax, 1
je 0x405eb0
push 0x5c
push edi
call fcn.00424764
add esp, 8
mov esi, eax
cmp esi, ebx
je 0x405eb0
push 0x800
push ebx
lea eax, [ebp]
push eax
call fcn.004260b0
add esp, 0xc
lea ecx, [ebp]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x405dcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
push 0x4499d0
lea edx, [ebp - 0x1c]
push edx
call fcn.0042623c
push 0x800
push ebx
lea eax, [ebp + 0x800]
push eax
call fcn.004260b0
add esp, 0xc
lea ecx, [ebp + 0x800]
push ecx
push ebx
add esi, 2
push esi
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405e13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push 0x4499d0
lea eax, [ebp - 0x24]
push eax
call fcn.0042623c
push 3
lea ecx, [ebp + 0x800]
push ecx
push edi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
test eax, eax
jne 0x405e40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
push 0x4499d0
lea edx, [ebp - 0x20]
push edx
call fcn.0042623c
push 4
push ebx
lea eax, [ebp + 0x800]
push eax
call esi
test eax, eax
jne 0x405e67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
push 0x4499d0
lea ecx, [ebp - 0x18]
push ecx
call fcn.0042623c
lea edx, [ebp + 0x800]
push edx
push edi
push str.__s__file_was_moved_to___s__and_it_will_be_deleted_after_reboot__
mov ecx, 0x45a600
call fcn.00412540
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.0042397a
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x405e8b
Function at 0x406a80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x808
mov eax, dword [0x44dc1c]
xor eax, esp
mov dword [esp + 0x804], eax
push ebx
push 0x800
lea eax, [esp + 0xc]
push 0
push eax
mov bl, 1
call fcn.004260b0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x406bb1
push 0x458dd8
lea edx, [esp + 0xc]
push edx
push str._sMANUAL_s
push 0x400
push 0x4585d8
call fcn.0042482a
mov eax, 0x4595d8
add esp, 0x14
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406af0
sub eax, edx
sar eax, 1
je 0x406b52
push 0x5c
push 0x4595d8
call fcn.00424764
add esp, 8
test eax, eax
je 0x406b19
add eax, 2
jmp 0x406b1e
mov eax, 0x4595d8
push eax
push 0x4585d8
push str._s_s
push 0x400
push 0x459dd8
call fcn.0042482a
push 0x2e
push 0x459dd8
call fcn.00424764
add esp, 0x1c
test eax, eax
je 0x406b6e
mov word [eax], 0
jmp 0x406b6e
push 0x4585d8
push str._sCommon
push 0x400
push 0x459dd8
call fcn.0042482a
add esp, 0x10
push 0x4585d8
push str.Manual_Temp_Dire_:___s_
mov ecx, 0x45a600
call fcn.00412540
push 0x459dd8
push str.Destination_Common:___s_
mov ecx, 0x45a600
call fcn.00412540
add esp, 0x10
mov al, bl
pop ebx
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.0042397a
add esp, 0x808
ret
push str.Get_Temp_Path_fail__
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x45a600
call fcn.00412400
mov ecx, dword [esp + 0x80c]
add esp, 4
mov al, bl
pop ebx
xor ecx, esp
call fcn.0042397a
add esp, 0x808
ret
Function at 0x4092e0
Capabilities:
Create directory

Disassembly:
mov eax, 0x1018
call fcn.00426290
mov eax, dword [0x44dc1c]
xor eax, esp
mov dword [esp + 0x1014], eax
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, ecx
cmp esi, ebx
push edi
mov dword [esp + 0x18], 0x5c
mov dword [esp + 0x14], ebx
je 0x40946d
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409320
sub eax, edx
sar eax, 1
je 0x40946d
cmp byte [esp + 0x102c], bl
jne 0x40936e
push 0x5c
push esi
call fcn.00424764
add esp, 8
cmp eax, ebx
je 0x40946d
sub eax, esi
sar eax, 1
push eax
push esi
lea eax, [esp + 0x828]
push 0x400
push eax
call fcn.0042400b
add esp, 0x10
jmp 0x409384
push esi
lea ecx, [esp + 0x824]
push 0x400
push ecx
call fcn.004245b9
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x828]
push ecx
call fcn.004244cf
add esp, 0xc
cmp eax, ebx
je 0x409469
push eax
lea edx, [esp + 0x24]
push 0x400
push edx
call fcn.004245b9
add esp, 0xc
push 0x442a24
lea eax, [esp + 0x24]
push 0x400
push eax
call fcn.004249ad
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
call fcn.004244cf
add esp, 0xc
cmp eax, ebx
je 0x409467
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x409400
sub ecx, esi
sar ecx, 1
je 0x409467
push eax
lea eax, [esp + 0x24]
push 0x400
push eax
call fcn.004249ad
add esp, 0xc
push 0x442a24
lea ecx, [esp + 0x24]
push 0x400
push ecx
call fcn.004249ad
add esp, 0xc
push ebx
lea edx, [esp + 0x24]
push edx
call edi
test eax, eax
jne 0x409450
call ebp
cmp eax, 0xb7
jne 0x40946d
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
call fcn.004244cf
add esp, 0xc
cmp eax, ebx
jne 0x4093f7
mov bl, 1
mov al, bl
jmp 0x40946f
xor al, al
mov ecx, dword [esp + 0x1024]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042397a
add esp, 0x1018
ret 4
Function at 0x412250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b690
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1810
call fcn.00426290
mov eax, dword [0x44dc1c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0x800
xor ebx, ebx
push ebx
lea eax, [ebp - 0x1818]
push eax
call fcn.004260b0
add esp, 0xc
push 0x800
push ebx
lea ecx, [ebp - 0x1018]
push ecx
call fcn.004260b0
add esp, 0xc
push 0x800
push ebx
lea edx, [ebp - 0x818]
push edx
call fcn.004260b0
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [esi], ebx
je 0x4122d7
mov al, 1
jmp 0x4123b5
push 0x400
lea eax, [ebp - 0x1818]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x412305
mov byte [ebp - 0x181a], bl
push 0x449aec
lea ecx, [ebp - 0x181a]
push ecx
call fcn.0042623c
push 0x5c
lea edx, [ebp - 0x1818]
push edx
call fcn.00424764
add esp, 8
mov edi, eax
cmp edi, ebx
je 0x412321
add edi, 2
jmp 0x412326
mov edi, str.SSLog
lea eax, [ebp - 0x1018]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea ecx, [ebp - 0x1018]
push ecx
push str._s_s.log
lea edx, [ebp - 0x818]
call fcn.004047b0
add esp, 0xc
push ebx
push 0x80
push 4
push ebx
push 1
push 0xc0000000
lea edx, [ebp - 0x818]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x41237d
mov byte [ebp - 0x1819], bl
mov byte [esi + 0x204], 1
push str.Manual_Viewer
push pe_nt_image_headers32
lea eax, [esi + 4]
push eax
call fcn.004245b9
add esp, 0xc
mov ecx, esi
call fcn.00412730
mov byte [ebp - 0x1819], 1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1819]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042397a
mov esp, ebp
pop ebp
ret
Function at 0x412400
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b660
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4008
call fcn.00426290
mov eax, dword [0x44dc1c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
cmp dword [esi], 0
je 0x41250c
mov dword [ebp - 4], 0
push 0x2000
push 0
lea eax, [ebp - 0x2014]
push eax
call fcn.004260b0
push 0x2000
push 0
lea ecx, [ebp - 0x4014]
push ecx
call fcn.004260b0
lea edx, [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x1000
lea ecx, [ebp - 0x2014]
push ecx
call fcn.00424251
add esp, 0x28
test edi, edi
je 0x4124de
push 0
push 0
lea edx, [ebp - 0x4018]
push edx
push 0x409
push edi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [ebp - 0x4018]
test eax, eax
je 0x4124de
push eax
push edi
lea eax, [esi + 4]
push eax
push str.___s___Error_Code___d_:_s
lea edx, [ebp - 0x4014]
call fcn.00412b50
add esp, 0x10
mov ecx, dword [ebp - 0x4018]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea edx, [ebp - 0x2014]
mov ecx, esi
call fcn.00412620
test edi, edi
je 0x412505
lea edx, [ebp - 0x4014]
mov ecx, esi
call fcn.00412620
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042397a
mov esp, ebp
pop ebp
ret

Function at 0x412a40
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00426290
push 0xffffffffffffffff
push 0x43b530
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x44dc1c]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, edx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
cmp dword [esi], ebx
jne 0x412a94
xor eax, eax
jmp 0x412b11
cmp byte [esi + 0x20c], bl
jne 0x412a90
mov dword [ebp - 4], ebx
mov byte [esi + 0x20c], 1
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0x1000
push ebx
lea ecx, [ebp]
push ecx
call fcn.004260b0
add esp, 0xc
push ebx
push ebx
push 0x1000
lea edx, [ebp]
push edx
push 0xffffffffffffffff
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x412ae0
sub eax, edx
push ebx
lea ecx, [ebp - 0x18]
push ecx
push eax
lea edx, [ebp]
push edx
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
mov byte [esi + 0x20c], bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.0042397a
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
Function at 0x412d40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b4f0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x44dc1c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], ebx
je 0x412e7f
cmp dword [ebp + 0x14], ebx
je 0x412e7f
cmp edx, ebx
je 0x412dd2
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x412d94
sub eax, esi
sar eax, 1
je 0x412dd2
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push edx
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x412dd8
mov dword [ebp - 0x24], eax
push 0x4499d0
lea edx, [ebp - 0x24]
push edx
call fcn.0042623c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00415a30
mov esi, eax
mov dword [ebp - 0x20], esi
mov edx, dword [ebp + 0x14]
push edx
push ebx
push esi
call fcn.004260b0
add esp, 0x10
cmp esi, ebx
jne 0x412e0d
mov dword [ebp - 0x28], 0xe
push 0x4499d0
lea eax, [ebp - 0x28]
push eax
call fcn.0042623c
lea ecx, [ebp + 0x14]
push ecx
push esi
lea edx, [ebp - 0x1c]
push edx
push ebx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x412e3f
mov dword [ebp - 0x2c], edi
push 0x4499d0
lea edx, [ebp - 0x2c]
push edx
call fcn.0042623c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x18]
cmp eax, ecx
je 0x412e5f
cmp ecx, 1
jne 0x412e76
cmp eax, 2
jne 0x412e76
mov eax, dword [ebp + 0x14]
push eax
push esi
push eax
mov eax, dword [ebp + 0x10]
push eax
jmp 0x412e69
mov eax, dword [ebp + 0x14]
push eax
push esi
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00423dba
add esp, 0x10
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x412ec0
mov dword [ebp - 0x30], 0x57
push 0x4499d0
lea edx, [ebp - 0x30]
push edx
call fcn.0042623c
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, 0x412ebb
ret
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x412ed3
cmp eax, dword [ebp + 8]
je 0x412ed3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x412ee3
push eax
call fcn.00415a35
add esp, 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
Function at 0x412f00
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x43b4c0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x44dc1c]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x80c]
mov dword [ebp - 0x28], eax
mov esi, edx
mov dword [ebp - 0x2c], ecx
mov edi, 0x1000
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x413076
mov dword [ebp - 0x18], eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x1c]
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x412f96
mov dword [ebp - 0x30], eax
push 0x4499d0
lea eax, [ebp - 0x30]
push eax
call fcn.0042623c
mov dword [ebp - 0x20], ebx
cmp ebx, dword [ebp - 0x1c]
jge 0x413028
push 0x800
push 0
lea ecx, [ebp]
push ecx
call fcn.004260b0
add esp, 0xc
push 0x400
lea edx, [ebp]
push edx
push ebx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x413020
lea ecx, [ebp]
push ecx
push edi
push esi
call fcn.004245b9
add esp, 0xc
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412fe0
sub eax, edx
sar eax, 1
or edx, 0xffffffff
sub edx, eax
add edi, edx
mov dword [ebp - 0x34], edi
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413000
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x413020
add dword [eax], 1
add ebx, 1
jmp 0x412f96
mov word [esi], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41304e
cmp eax, dword [ebp - 0x28]
je 0x41304e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.0042397a
add ebp, 0x804
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x24], 0x57
push 0x4499d0
lea eax, [ebp - 0x24]
push eax
call fcn.0042623c
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x41309e
ret
Function at 0x4130c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b4a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x44dc1c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
cmp eax, edx
jne 0x413115
mov dword [ebp - 0x1c], 0x57
push 0x4499d0
lea eax, [ebp - 0x1c]
push eax
call fcn.0042623c
mov dword [ebp - 0x18], ecx
mov esi, dword [ebp + 0x14]
push esi
push eax
mov eax, dword [ebp + 0x18]
push eax
push edx
mov edx, dword [ebp + 0xc]
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41314a
cmp eax, dword [ebp + 8]
je 0x41314a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
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 0x4140b0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x43b940
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x44dc1c]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
test edi, edi
je 0x4141fe
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414100
sub eax, edx
sar eax, 1
je 0x4141fe
push 0x800
push 0
lea eax, [ebp]
push eax
call fcn.004260b0
push 0x3ff
push edi
push 0x400
lea ecx, [ebp]
push ecx
call fcn.0042400b
add esp, 0x1c
lea ecx, [ebp]
call fcn.004152e0
mov ecx, 0x446550
lea edx, [ebp]
call fcn.00415490
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4141f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x41419b
lea eax, [ebp]
push eax
push str.Delete_File____s_
mov ecx, esi
mov edx, 0x45a600
call fcn.00412400
add esp, 8
mov dword [ebp - 0x18], esi
push 0x4499d0
lea ecx, [ebp - 0x18]
push ecx
call fcn.0042623c
sub eax, 2
je 0x4141f0
sub eax, 3
je 0x4141cb
sub eax, 0x1b
je 0x4141da
lea edx, [ebp]
push edx
push str.Delete_File____s_
mov ecx, esi
mov edx, 0x45a600
call fcn.00412400
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x414241
push 0x80
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp]
call fcn.00414ab0
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x414241
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x414241
mov eax, 0x57
jmp 0x414243
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.0042397a
add ebp, 0x804
mov esp, ebp
pop ebp
ret