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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434e26
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x43ffa8]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x42420c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x42420c
call fcn.004225f0
mov esi, eax
jmp 0x4242fc
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x42422f
call fcn.004225f0
jmp 0x4242ef
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x42424d
call fcn.004225f0
jmp 0x4242ef
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x42426e
mov esi, 0x8007000e
jmp 0x4242f1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00422330
jmp 0x424298
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4242af
mov esi, 0x8007000e
jmp 0x4242f1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4242cf
call fcn.004225f0
jmp 0x4242ef
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00423f90
mov esi, eax
test edi, edi
je 0x4242fc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x424315
lea ecx, [ebp - 0x418]
call fcn.00422d10
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 - 0x14]
xor ecx, ebp
call fcn.00433bb2
mov esp, ebp
pop ebp
ret 0x10
Function at 0x424c40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x424c59
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424c65
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x424c60
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x424ca0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x424cb5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x424cc0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424cc0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x424db0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x424dd1
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x423800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x424dfa
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], edi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4251f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x43ffa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x200
call fcn.00433a9d
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [ebp - 0x10]
push eax
push str.SoftwareAdobeAdobe_AcrobatDCLanguageNext
push SysReAllocString
mov dword [ebp - 4], 0
call edi
test eax, eax
je 0x42529f
lea eax, [ebp - 0x10]
push eax
push str.SoftwareAdobeAdobe_AcrobatDCLanguageNext
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x42529f
lea eax, [ebp - 0x10]
push eax
push str.SoftwareAdobeAcrobat_ReaderDCLanguageNext
push SysReAllocString
call edi
test eax, eax
je 0x42529f
lea eax, [ebp - 0x10]
push eax
push str.SoftwareAdobeAcrobat_ReaderDCLanguageNext
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x42529f
lea eax, [ebp - 0x10]
push eax
push str.SoftwareAdobeAcrobat_ReaderDCLanguageCurrent
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x4253ac
push 0x200
push 0
push esi
mov dword [ebp - 0x14], 0x200
call fcn.00433c26
sub dword [ebp - 0x14], 2
lea eax, [ebp - 0x14]
add esp, 0xc
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
shr eax, 1
test edi, edi
jne 0x4253ac
cmp dword [ebp - 0x18], 1
jne 0x4253ac
cmp eax, 4
jb 0x4253ac
mov ebx, dword [sym.imp.MSVCR120.dll__wcsicmp]
add eax, 0xfffffffc
push 0x436efc
lea edi, [esi + eax*2]
push edi
call ebx
add esp, 8
test eax, eax
je 0x4253a8
push 0x436f04
push edi
call ebx
add esp, 8
test eax, eax
je 0x4253a8
movzx eax, word [edi]
mov ebx, dword [sym.imp.MSVCR120.dll_iswalpha]
push eax
call ebx
add esp, 4
test eax, eax
je 0x4253ac
movzx eax, word [edi + 2]
push eax
call ebx
add esp, 4
test eax, eax
je 0x4253ac
movzx eax, word [edi + 4]
push eax
call ebx
add esp, 4
test eax, eax
je 0x4253ac
cmp word [edi + 6], 0
jne 0x4253ac
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov edx, 4
sub edi, ecx
nop
lea eax, [edx + 0x7ffffffa]
test eax, eax
je 0x42538e
movzx eax, word [edi + ecx]
test ax, ax
je 0x42538e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x425370
jmp 0x425392
test edx, edx
jne 0x42539a
sub ecx, 2
mov ebx, 0x8007007a
xor eax, eax
mov word [ecx], ax
test ebx, ebx
js 0x4253ac
lea edi, [eax + 1]
jmp 0x4253af
xor edi, edi
jmp 0x4253af
or edi, 0xffffffff
push esi
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
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 0x4265e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042d720
add esp, 8
test eax, eax
jne 0x426603
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x10
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
test esi, esi
je 0x4266ad
lea ecx, [ebp - 0x10]
call fcn.0042daf0
push 1
push edi
push esi
lea ecx, [ebp - 0x10]
call fcn.0042e9a0
test al, al
jne 0x42663d
lea ecx, [ebp - 0x10]
call fcn.0042dcd0
lea eax, [edi + 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426642
sub ecx, edx
sar ecx, 1
je 0x426696
movzx eax, word [esi + ecx*2 - 2]
cmp eax, 0x2e
je 0x426696
cmp ecx, 1
jbe 0x42666f
cmp word [esi + ecx*2 - 4], 0x2e
jne 0x42666f
cmp eax, 0x5c
je 0x426696
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42669b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.0042dcd0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov edi, 1
lea ecx, [ebp - 0x10]
call fcn.0042dcd0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov edi, 1
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x426710
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
call fcn.0042d720
add esp, 8
test eax, eax
jne 0x426738
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x1c
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [eax + 8]
call fcn.0042a4b0
add esp, 0xc
test al, al
jne 0x42675c
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0x1c
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
cmp edx, 0xffffffff
jne 0x42677c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebp + 0x20], 0
jne 0x426797
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
xor eax, eax
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebp - 4], 0
je 0x4267a8
mov eax, 1
mov esp, ebp
pop ebp
ret 0x1c
cmp edx, 0x7fffffff
ja 0x42679d
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
xor eax, eax
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x426a10
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042d720
add esp, 8
test eax, eax
jne 0x426a33
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x20]
push ebx
push esi
xor esi, esi
push edi
mov dword [eax], esi
call fcn.0042daf0
mov ebx, dword [ebp + 0x18]
mov edx, ebx
mov edi, dword [ebp + 0x14]
and edx, 4
mov dword [ebp + 0x18], edx
jne 0x426a5a
test bl, 2
je 0x426a72
push 0
push 1
push edi
lea ecx, [ebp - 0x20]
call fcn.0042e9a0
test al, al
je 0x426bfa
mov edx, dword [ebp + 0x18]
test edi, edi
je 0x426bfa
cmp word [edi], si
je 0x426bfa
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp + 0x18], eax
jmp 0x426a90
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426a90
sub ecx, dword [ebp + 0x18]
sar ecx, 1
cmp word [edi + ecx*2 - 2], 0x2e
je 0x426bfa
test edx, edx
je 0x426ac1
mov edx, 0xc0000000
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], 2
jmp 0x426afb
test bl, 2
je 0x426adf
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
jne 0x426bfa
mov edx, 0xc0000000
mov dword [ebp + 0x10], esi
jmp 0x426af4
test bl, 1
je 0x426bfa
mov edx, SysReAllocString
mov dword [ebp + 0x10], 1
mov dword [ebp + 0x14], 3
mov eax, ebx
mov dword [ebp - 4], edx
and eax, 0x28
cmp al, 0x28
je 0x426bfa
mov ecx, ebx
mov eax, ebx
and ecx, 8
and eax, 0x20
add ecx, ecx
or ecx, eax
mov eax, 0x80
shl ecx, 0x17
test bl, 0x40
push 0
mov ebx, 0x4000100
cmovne eax, ebx
or ecx, eax
push ecx
push dword [ebp + 0x14]
mov dword [ebp - 8], ecx
push 0
push dword [ebp + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x18], eax
cmp eax, 0xffffffff
je 0x426bb8
mov ebx, dword [ebp - 8]
test ebx, 0x10000000
je 0x426bd6
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x426b74
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x426bd3
mov eax, dword [ebp - 8]
xor ecx, ecx
or ecx, dword [ebp - 0xc]
or eax, 0
mov dword [ebp - 0xc], eax
ja 0x426b8c
cmp ecx, 0xee6b280
jbe 0x426bd3
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
and ebx, 0xefffffff
push ebx
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x18], eax
cmp eax, 0xffffffff
jne 0x426bd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.0042dcd0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x426bff
push dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 8]
add eax, 8
push eax
call fcn.0042a3f0
add esp, 0xc
test al, al
jne 0x426bff
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
lea ecx, [ebp - 0x20]
call fcn.0042dcd0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x426c20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042d720
add esp, 8
test eax, eax
jne 0x426c41
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x1c
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [eax + 8]
call fcn.0042a4b0
add esp, 0xc
test al, al
jne 0x426c65
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0x1c
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
test ebx, ebx
je 0x426ceb
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x426ceb
push dword [ebp + 0x18]
push 0
push 0x11
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov dword [esi], eax
test eax, eax
jne 0x426c95
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push edi
lea ecx, [ebp + 0x10]
xor edi, edi
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x426ce0
push eax
push ebx
push dword [ebp + 0x18]
mov dword [ebx], edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x426cc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
test edi, edi
je 0x426ce0
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov dword [esi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
pop esi
mov eax, 0x57
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x426d00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042d720
add esp, 8
test eax, eax
jne 0x426d23
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x10
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
test edi, edi
je 0x426d7e
lea ecx, [ebp - 0x10]
call fcn.0042daf0
push esi
push 1
push edi
lea ecx, [ebp - 0x10]
call fcn.0042e9a0
test al, al
jne 0x426d59
lea ecx, [ebp - 0x10]
call fcn.0042dcd0
pop edi
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x426d6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.0042dcd0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov esi, 1
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x426d90
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042d720
add esp, 8
test eax, eax
jne 0x426db3
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x10
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
test edi, edi
je 0x426e0d
lea ecx, [ebp - 0x10]
call fcn.0042daf0
push esi
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.0042e9a0
test al, al
jne 0x426de8
lea ecx, [ebp - 0x10]
call fcn.0042dcd0
pop edi
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret 0x10
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x426dfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.0042dcd0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov esi, 1
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x426e20
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push edi
push ebx
call fcn.0042d720
add esp, 8
test eax, eax
jne 0x426e49
pop edi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push esi
lea ecx, [ebp - 0x10]
call fcn.0042daf0
push 0
push 1
push dword [ebp + 0x18]
lea ecx, [ebp - 0x10]
call fcn.0042e9a0
test al, al
je 0x426eeb
push 0
push 1
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x10]
call fcn.0042e9a0
test al, al
je 0x426eeb
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push dword [edx]
mov eax, dword [ecx]
push edi
push ebx
push ecx
call dword [eax + 0x30]
mov esi, eax
test esi, esi
jne 0x426ef0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call dword [sym.imp.MSVCR120.dll__wrename]
mov ecx, dword [ebp + 8]
add esp, 8
mov esi, eax
mov eax, dword [ecx]
push dword [ebp + 0x14]
push 1
test esi, esi
jne 0x426ecf
push dword [ebp + 0x1c]
push edi
push ebx
push ecx
call dword [eax + 0x2c]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0042dcd0
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push dword [ebp + 0x18]
push edi
push ebx
push ecx
call dword [eax + 0x2c]
lea ecx, [ebp - 0x10]
call fcn.0042dcd0
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov esi, 1
lea ecx, [ebp - 0x10]
call fcn.0042dcd0
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x426f10
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042d720
add esp, 8
test eax, eax
jne 0x426f31
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x18
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push dword [esi + 8]
call fcn.0042a4b0
add esp, 0xc
test al, al
jne 0x426f57
mov eax, 0x57
pop esi
mov esp, ebp
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [esi]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x60]
test eax, eax
jne 0x426f7e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
inc eax
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x427000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042d720
add esp, 8
test eax, eax
jne 0x427021
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x18
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [eax + 8]
call fcn.0042a4b0
add esp, 0xc
test al, al
jne 0x427045
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0x18
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
test ebx, ebx
je 0x4270b7
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x4270b7
cmp word [esi], 1
jne 0x4270aa
cmp dword [esi + 4], 1
jne 0x4270aa
cmp dword [esi + 0x14], 0
jne 0x4270aa
push edi
lea eax, [ebp + 0x10]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov edi, eax
test edi, edi
jne 0x4270a1
push eax
push ebx
mov dword [ebx], eax
push dword [esi + 0x10]
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x427098
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop esi
mov eax, 0x57
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x427970
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x43ffa8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push eax
push ecx
call fcn.0042d720
add esp, 8
test eax, eax
jne 0x4279b1
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00433bb2
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4279e1
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindClose]
movzx eax, si
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00433bb2
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
movzx esi, cx
mov ecx, dword [ebp - 4]
movzx eax, si
xor ecx, ebp
pop esi
call fcn.00433bb2
mov esp, ebp
pop ebp
ret 0x10

Function at 0x427b00
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [eax + 8]
call fcn.0042a4f0
add esp, 0xc
test al, al
jne 0x427b28
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x427bd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [eax + 8]
call fcn.0042a4f0
add esp, 0xc
test al, al
jne 0x427bfa
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x427c2a
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 8], 4
jne 0x427c1f
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x427c40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [eax + 8]
call fcn.0042a4f0
add esp, 0xc
test al, al
jne 0x427c68
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0x14
push esi
mov esi, dword [ebp + 0x18]
test esi, esi
jne 0x427c7a
lea eax, [esi + 0x57]
pop esi
mov esp, ebp
pop ebp
ret 0x14
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x427cfb
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x427cf2
push eax
push 0
push 0x11
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov dword [esi], eax
test eax, eax
jne 0x427cc4
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret 0x14
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x427cf2
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x427d10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [eax + 8]
call fcn.0042a4f0
add esp, 0xc
test al, al
jne 0x427d38
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0x10
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret 0x10