joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401272
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0x192
push 0x54d38000
push dword [ebp - 8]
push dword [ebp - 0xc]
call sub.ntdll.dll__aulldiv
push eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x404184]
lea ecx, [eax + 0x40505e]
push ecx
lea eax, [eax + 0x405054]
push eax
lea eax, [ebp - 0x38]
push 0x16
push eax
mov dword [ebp - 8], edx
call sub.ntdll.dll__snwprintf
mov eax, dword [ebp + 8]
xor ebx, ebx
add esp, 0x14
cmp eax, ebx
jne 0x4012d0
mov eax, 0x1000
lea ecx, [ebp - 0x38]
push ecx
push eax
push ebx
push 4
push 0x404188
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, ebx
je 0x401333
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 8], ebx
jne 0x401304
call edi
cmp eax, 0xb7
je 0x401304
push 2
pop edi
jmp 0x40132a
push ebx
push ebx
push ebx
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x401322
mov ecx, dword [ebp + 0xc]
mov dword [ecx], esi
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor edi, edi
jmp 0x40133b
call edi
mov edi, eax
cmp edi, ebx
je 0x40133b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40133b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4014a2
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x404170]
mov eax, dword [ecx + 0x3c]
sub esp, 0x2c
add eax, ecx
movzx edx, word [eax + 0x14]
push ebx
push esi
movzx esi, word [eax + 6]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
lea eax, [edx + eax + 0x18]
xor edx, edx
cmp dword [eax + 4], ebx
jne 0x4014d8
cmp dword [eax], 0x7373622e
jne 0x4014d8
mov edx, eax
add eax, 0x28
dec esi
je 0x4014e2
test edx, edx
je 0x4014c9
test edx, edx
je 0x401500
mov eax, dword [edx + 0xc]
test eax, eax
je 0x4014fc
mov edx, dword [edx + 0x10]
test edx, edx
je 0x4014fc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edx
jmp 0x401503
push 0xb
jmp 0x401502
push 2
pop ebx
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x401610
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
and esi, 0xfff
neg esi
sbb esi, esi
shr eax, 0xc
neg esi
add esi, eax
mov eax, dword [ebp - 0x18]
add eax, ecx
mov dword [ebp - 0xc], eax
mov eax, esi
shl eax, 0xc
push eax
call fcn.0040148d
mov ebx, eax
mov dword [ebp - 0x2c], ebx
test ebx, ebx
je 0x401609
lea edx, [edi - 1]
and edx, 1
cmp edx, esi
jae 0x4015df
sub eax, dword [ebp - 0xc]
mov ecx, edx
lea edi, [eax + edi + 0x4051a7]
mov eax, dword [ebp - 0xc]
shl ecx, 0xc
add ecx, ebx
sub eax, ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
sub eax, edx
and dword [ebp - 0x1c], 0
lea eax, [eax + ebx - 0x7e47c82a]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0x400
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 4]
mov eax, dword [eax + ebx]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4015b5
mov ebx, dword [ebp - 0x1c]
sub ebx, dword [ebp - 0x24]
add eax, ebx
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ebx], eax
jmp 0x4015bc
mov dword [ebp - 8], 1
dec dword [ebp - 8]
jne 0x40158c
mov eax, dword [edi + 4]
sub eax, dword [edi + 8]
add ecx, 0x1000
add eax, dword [edi + 0xc]
inc edx
mov dword [0x404180], eax
cmp edx, esi
jb 0x40156c
mov ebx, dword [ebp - 0x2c]
jmp 0x4015e4
mov eax, dword [0x404180]
cmp eax, 0x69b25f44
jne 0x4015fa
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov edx, ebx
call fcn.00402088
jmp 0x401601
mov dword [ebp - 0x14], 0x15
push ebx
call fcn.00401c29
jmp 0x401610
mov dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401b2e
Capabilities:
Check os version

Disassembly:
push esi
mov esi, dword [0x404170]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x40417c], eax
test eax, eax
je 0x401ba0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x401b61
mov ecx, eax
shr ecx, 8
test cl, cl
ja 0x401b63
cmp al, al
jbe 0x401b9b
mov dword [0x40416c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x10047a
mov dword [0x404168], eax
mov dword [0x404170], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [0x404164], eax
test eax, eax
jne 0x401b97
or dword [0x404164], 0xffffffff
xor eax, eax
pop esi
ret
push 0x32
pop eax
pop esi
ret
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x401df1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x20
call fcn.0040148d
mov esi, eax
test esi, esi
je 0x401ec4
mov eax, dword [0x404184]
lea eax, [eax + 0x405014]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov eax, dword [0x404184]
lea eax, [eax + 0x405151]
push eax
push ebx
mov dword [ebp - 4], 0x7f
call edi
mov dword [esi + 0xc], eax
test eax, eax
je 0x401ebc
mov eax, dword [0x404184]
lea eax, [eax + 0x405161]
push eax
push ebx
call edi
mov dword [esi + 0x10], eax
test eax, eax
je 0x401ebc
mov eax, dword [0x404184]
lea eax, [eax + 0x405174]
push eax
push ebx
call edi
mov dword [esi + 0x14], eax
test eax, eax
je 0x401ebc
mov eax, dword [0x404184]
lea eax, [eax + 0x405189]
push eax
push ebx
call edi
mov dword [esi + 0x18], eax
test eax, eax
je 0x401ebc
mov eax, dword [0x404184]
lea eax, [eax + 0x40519f]
push eax
push ebx
call edi
mov dword [esi + 0x1c], eax
test eax, eax
je 0x401ebc
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, esi
call fcn.00401d49
mov dword [ebp - 4], eax
test eax, eax
jne 0x401ebc
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
jmp 0x401ecb
push esi
call fcn.00401c29
jmp 0x401ecb
mov dword [ebp - 4], 8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x401ed5
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx ecx, word [eax + 0x14]
and dword [ebp - 8], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push edi
mov edi, dword [0x404180]
lea esi, [ecx + eax + 0x18]
movzx ecx, word [eax + 6]
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0xc], ecx
lea ecx, [edi - 0x69b25f40]
push ecx
push dword [eax + 0x54]
push dword [ebp + 8]
call ebx
and dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
jbe 0x401fad
cmp dword [ebp - 8], 0
jne 0x401fad
lea eax, [edi - 0x69b25f27]
bt dword [esi + 0x24], eax
jae 0x401f50
lea eax, [edi - 0x69b25f25]
bt dword [esi + 0x24], eax
jae 0x401f48
lea ecx, [edi - 0x69b25f04]
jmp 0x401f74
lea ecx, [edi - 0x69b25f24]
jmp 0x401f74
lea eax, [edi - 0x69b25f26]
bt dword [esi + 0x24], eax
jae 0x401f6e
lea eax, [edi - 0x69b25f25]
bt dword [esi + 0x24], eax
lea ecx, [edi - 0x69b25f42]
jae 0x401f74
lea ecx, [edi - 0x69b25f40]
mov eax, dword [esi + 0xc]
add eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push ecx
push dword [esi + 8]
push eax
call ebx
test eax, eax
jne 0x401f92
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, edi
imul eax, eax, 0x28
inc dword [ebp - 4]
lea esi, [esi + eax + 0x7c211d88]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x401f1e
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402042
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push esi
xor esi, esi
push esi
push 0x400000
push esi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x404160], eax
cmp eax, esi
je 0x402080
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x404170], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call section..text
push dword [0x404160]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100021f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x10003e52
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x65
mov dword [esp + 0x14], esi
call sub.MFC42.DLL_CFormView::CFormView
lea edi, [esi + 0x80]
mov dword [esp + 0x24], 0
mov ecx, edi
call fcn.1000366c
mov dword [edi], 0x10006170
lea edi, [esi + 0xc0]
mov byte [esp + 0x24], 1
mov ecx, edi
call fcn.1000366c
mov dword [edi], 0x100060a0
lea edi, [esi + 0x100]
mov byte [esp + 0x24], 2
mov ecx, edi
call fcn.1000366c
mov dword [edi], 0x100057b0
lea edi, [esi + 0x140]
mov byte [esp + 0x24], 3
mov ecx, edi
call fcn.10003576
lea ebp, [esi + 0x144]
mov byte [esp + 0x24], 4
mov ecx, ebp
call fcn.10003576
lea ebx, [esi + 0x148]
mov byte [esp + 0x24], 5
mov ecx, ebx
call fcn.1000366c
mov dword [ebx], 0x100057b0
lea ebx, [esi + 0x190]
mov byte [esp + 0x24], 6
mov ecx, ebx
call sub.MFC42.DLL_COleDispatchDriver::COleDispatchDriver
lea ecx, [esi + 0x198]
mov byte [esp + 0x24], 7
call sub.MFC42.DLL_COleDispatchDriver::COleDispatchDriver
lea ecx, [esi + 0x1a0]
mov byte [esp + 0x24], 8
call sub.MFC42.DLL_COleDispatchDriver::COleDispatchDriver
lea ecx, [esi + 0x1a8]
mov byte [esp + 0x24], 9
call sub.MFC42.DLL_COleDispatchDriver::COleDispatchDriver
lea ecx, [esi + 0x1b0]
mov byte [esp + 0x24], 0xa
call sub.MFC42.DLL_COleDispatchDriver::COleDispatchDriver
push 0x10053e44
mov ecx, edi
mov byte [esp + 0x28], 0xb
mov dword [esi], 0x10005f90
call sub.MFC42.DLL_CString::operator
push 0x10053e44
mov ecx, ebp
call sub.MFC42.DLL_CString::operator
xor edi, edi
push 1
push edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_COleDispatchDriver::COleDispatchDriver_1
lea eax, [esp + 0x14]
mov byte [esp + 0x24], 0xc
push eax
lea ecx, [esi + 0x198]
call sub.MFC42.DLL_COleDispatchDriver::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0xb
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
push 1
push edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_COleDispatchDriver::COleDispatchDriver_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0xd
push ecx
lea ecx, [esi + 0x1a8]
call sub.MFC42.DLL_COleDispatchDriver::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0xb
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
push 1
push edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_COleDispatchDriver::COleDispatchDriver_1
lea edx, [esp + 0x14]
lea ecx, [esi + 0x1b0]
push edx
mov byte [esp + 0x28], 0xe
call sub.MFC42.DLL_COleDispatchDriver::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0xb
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
push 1
push edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_COleDispatchDriver::COleDispatchDriver_1
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
mov byte [esp + 0x28], 0xf
call sub.MFC42.DLL_COleDispatchDriver::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0xb
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x18c], edi
mov dword [esi + 0x188], edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x41b811
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4602c0]
jne 0x41b81b
repz ret
jmp fcn.0042071c

Function at 0x429c55
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00420da7
and dword [ebp - 4], 0
cmp dword [0x4690f4], 0
mov ebx, eax
jne 0x429d06
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x429db7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x429db7
push eax
call fcn.00420d35
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4690f4], eax
call esi
push eax
call fcn.00420d35
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4690f8], eax
call esi
push eax
call fcn.00420d35
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4690fc], eax
call esi
push eax
call fcn.00420d35
pop ecx
mov dword [0x469104], eax
test eax, eax
je 0x429d06
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00420d35
pop ecx
mov dword [0x469100], eax
mov eax, dword [0x469100]
cmp eax, ebx
je 0x429d5e
cmp dword [0x469104], ebx
je 0x429d5e
push eax
call fcn.00420db0
push dword [0x469104]
mov esi, eax
call fcn.00420db0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x429d5e
test edi, edi
je 0x429d5e
call esi
test eax, eax
je 0x429d55
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x429d55
test byte [ebp - 0xc], 1
jne 0x429d5e
or dword [ebp + 0x10], 0x200000
jmp 0x429d97
mov eax, dword [0x4690f8]
cmp eax, ebx
je 0x429d97
push eax
call fcn.00420db0
pop ecx
test eax, eax
je 0x429d97
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x429d97
mov eax, dword [0x4690fc]
cmp eax, ebx
je 0x429d97
push eax
call fcn.00420db0
pop ecx
test eax, eax
je 0x429d97
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4690f4]
call fcn.00420db0
pop ecx
test eax, eax
je 0x429db7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x429db9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430d49
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [eax + 0x18], 8
jb 0x430d5a
mov eax, dword [eax + 4]
jmp 0x430d5d
add eax, 4
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor esi, esi
push esi
mov ebx, 0x8000080
push ebx
push 3
push esi
push esi
push 0x80000000
push eax
call edi
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x430e2d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x430d95
mov eax, dword [eax + 4]
jmp 0x430d98
add eax, 4
push esi
push ebx
push 2
push esi
push esi
push 0x40000000
push eax
call edi
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x430db9
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x430e2d
mov edi, 0x2800
push edi
call fcn.0041a4fc
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
pop ecx
push esi
lea ecx, [ebp - 4]
push ecx
push edi
mov dword [ebp - 0xc], eax
push eax
jmp 0x430e08
cmp dword [ebp - 4], esi
je 0x430e34
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x430e14
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jne 0x430e14
push esi
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
mov dword [ebp - 4], esi
call ebx
test eax, eax
jne 0x430dd7
push dword [ebp - 0xc]
call fcn.0041b820
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
push dword [ebp - 8]
call esi
push dword [ebp - 0x10]
call esi
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
call fcn.0041b820
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
push dword [ebp - 8]
call esi
push dword [ebp - 0x10]
call esi
mov al, 1
jmp 0x430e2f

Function at 0x430e51
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
cmp dword [esi + 0x18], 8
push edi
lea edi, [esi + 4]
jb 0x430e68
mov eax, dword [edi]
jmp 0x430e6a
mov eax, edi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 8], eax
test eax, eax
je 0x430ed8
push ebx
push eax
call fcn.0041a4fc
cmp dword [esi + 0x18], 8
pop ecx
mov ebx, eax
jb 0x430e8b
mov edi, dword [edi]
push ebx
push dword [ebp - 8]
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x430ece
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x44e290
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x430ece
cmp dword [ebp - 4], 0x34
jne 0x430ece
mov eax, dword [ebp - 0xc]
movzx esi, word [eax + 0xa]
push ebx
call fcn.0041b820
mov ax, si
jmp 0x430ed6
push ebx
call fcn.0041b820
xor eax, eax
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x430f33
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [eax + 0x18], 8
jb 0x430f42
mov eax, dword [eax + 4]
jmp 0x430f45
add eax, 4
push ebx
xor ebx, ebx
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push 0x20106
push ebx
push ebx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x430f69
xor al, al
pop ebx
leave
ret
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [esi + 0x18], 8
lea ecx, [eax + eax + 2]
jb 0x430f81
mov eax, dword [esi + 4]
jmp 0x430f84
lea eax, [esi + 4]
push ecx
push dword [ebp + 0xc]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x430fa6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x430f66
mov bl, 1
jmp 0x430f99

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x4310c2
lea eax, [ebp + 0xc]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4310d8
test al, 0x10
je 0x4310d8
mov bl, 1
jmp 0x4310da
xor bl, bl
push 0
push 1
lea esi, [ebp + 8]
call fcn.0040115a
pop esi
mov al, bl
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x4310fb
lea eax, [ebp + 0xc]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x431111
test al, 0x10
jne 0x431111
mov bl, 1
jmp 0x431113
xor bl, bl
push 0
push 1
lea esi, [ebp + 8]
call fcn.0040115a
pop esi
mov al, bl
pop ebx
pop ebp
ret

Function at 0x4311c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0xc
cmp dword [ebp + 0x20], 8
jae 0x4311da
lea eax, [ebp + 0xc]
push ebx
push esi
lea edx, [ebp - 8]
push edx
movzx edx, byte [ebp + 0x40]
neg edx
sbb edx, edx
and edx, 0x100
or edx, 1
push edx
xor ebx, ebx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43121d
push ebx
push 1
lea esi, [ebp + 8]
call fcn.0040115a
push ebx
push 1
lea esi, [ebp + 0x24]
call fcn.0040115a
xor al, al
pop esi
pop ebx
leave
ret
cmp dword [ebp + 0x38], ebx
je 0x43126a
cmp dword [ebp + 0x3c], 8
mov eax, dword [ebp + 0x28]
jae 0x43122e
lea eax, [ebp + 0x28]
push ebx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x43126a
mov byte [ebp - 1], bl
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 1
lea esi, [ebp + 8]
call fcn.0040115a
push ebx
push 1
lea esi, [ebp + 0x24]
call fcn.0040115a
mov al, byte [ebp - 1]
jmp 0x431219
mov byte [ebp - 1], 1
jmp 0x431246
Function at 0x431270
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x43127f
lea eax, [ebp + 0xc]
push esi
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
push 1
lea esi, [ebp + 8]
call fcn.0040115a
pop esi
pop ebp
ret

Function at 0x43144a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x5000
mov esi, ecx
mov edi, edx
call fcn.0041a4fc
cmp dword [edi + 0x18], 8
pop ecx
mov ebx, eax
jb 0x431471
mov edi, dword [edi + 4]
jmp 0x431474
add edi, 4
push 0x2800
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
call fcn.004018f6
push ebx
call fcn.0041b820
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4314d5
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, 0x202
push esi
call fcn.0041a4fc
push esi
mov dword [ebp - 8], eax
call fcn.0041a4fc
pop ecx
pop ecx
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [eax], ebx
call fcn.00414d52
lea eax, [ebp - 0x28]
call fcn.00431495
cmp dword [eax + 0x18], 8
jb 0x431519
mov eax, dword [eax + 4]
jmp 0x43151c
add eax, 4
mov edi, 0x100
push edi
push dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
push ebx
test eax, eax
push 1
lea esi, [ebp - 0x28]
setne byte [ebp - 1]
call fcn.0040115a
cmp byte [ebp - 1], bl
je 0x431561
push edi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00401f7a
push dword [ebp - 8]
call fcn.0041b820
push dword [ebp - 0xc]
call fcn.0041b820
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x431578
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp byte [0x4695df], bl
jne 0x431604
push edi
push 0x202
call fcn.0041a4fc
mov edi, eax
pop ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 8], ebx
call fcn.00431495
cmp dword [eax + 0x18], 8
jb 0x4315ad
mov eax, dword [eax + 4]
jmp 0x4315b0
add eax, 4
push esi
push 0x100
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
push ebx
test eax, eax
push 1
lea esi, [ebp - 0x24]
setne byte [ebp - 1]
call fcn.0040115a
pop esi
cmp byte [ebp - 1], bl
je 0x4315e6
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push edi
call fcn.0041b820
mov eax, dword [ebp - 8]
shr eax, 0x12
pop ecx
and al, 1
mov byte [0x4695de], al
mov byte [0x4695df], 1
pop edi
jmp 0x431609
mov al, byte [0x4695de]
pop ebx
leave
ret