joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426885
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
jne 0x4268ee
cmp dword [ebp - 4], esi
je 0x4268ee
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
push dword [ebp - 4]
mov dword [ebp + 8], 4
mov dword [ebp + 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x4268f5
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
jmp 0x4268f5
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp edi, esi
pop edi
sete al
pop esi
leave
ret 0x10

Function at 0x426902
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea ecx, [ebp - 4]
push ecx
xor eax, eax
push 2
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call esi
mov edi, eax
cmp edi, 5
jne 0x426960
mov ecx, dword [0x503504]
call fcn.00442720
mov dword [ebp - 8], eax
test eax, eax
jne 0x426950
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4269f9
lea eax, [ebp - 4]
push eax
push 2
push 0
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, 3
je 0x42696a
cmp edi, 2
jne 0x4269a5
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, 5
jne 0x4269a5
cmp dword [ebp - 8], 0
jne 0x426999
mov ecx, dword [0x503504]
call fcn.00442720
mov dword [ebp - 8], eax
test eax, eax
je 0x426941
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x4269db
cmp dword [ebp - 4], esi
je 0x4269db
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x4269eb
mov ecx, dword [0x503504]
call fcn.0044276a
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp edi, esi
sete al
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x426a37
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea ecx, [ebp - 4]
push ecx
xor eax, eax
mov edi, 0x20006
push edi
push eax
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
mov ebx, eax
cmp ebx, 5
jne 0x426a95
mov ecx, dword [0x503504]
call fcn.00442720
mov dword [ebp - 8], eax
test eax, eax
jne 0x426a84
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x426af4
lea eax, [ebp - 4]
push eax
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ebx, eax
test ebx, ebx
jne 0x426ad5
cmp dword [ebp - 4], ebx
je 0x426ad5
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
test ebx, ebx
je 0x426acc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.RegDeleteValue__s___s___err_u
push 1
call fcn.004487a4
add esp, 0x14
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x426ae6
mov ecx, dword [0x503504]
call fcn.0044276a
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test ebx, ebx
sete al
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x426afb
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x426b74
cmp dword [ebp + 0x10], 0
je 0x426b46
cmp dword [0x50da14], 4
jl 0x426b61
push dword [ebp - 4]
push dword [ebp + 0x10]
push str.Thread__S_created__id_u
push 4
call fcn.004487a4
add esp, 0x10
jmp 0x426b61
cmp dword [0x50da14], 4
jl 0x426b61
push dword [ebp - 4]
push str.Thread_id_u_created
push 4
call fcn.004487a4
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x426b76
xor eax, eax
pop ebx
leave
ret 0xc

Function at 0x426b7b
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x426be8
cmp dword [ebp + 0x10], 0
je 0x426bc6
cmp dword [0x50da14], 4
jl 0x426be1
push dword [ebp - 4]
push dword [ebp + 0x10]
push str.Thread__S_created__id_u
push 4
call fcn.004487a4
add esp, 0x10
jmp 0x426be1
cmp dword [0x50da14], 4
jl 0x426be1
push dword [ebp - 4]
push str.Thread_id_u_created
push 4
call fcn.004487a4
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x426e4c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push ebx
call esi
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp + 8], eax
call esi
cmp dword [ebp + 8], 0
je 0x426eab
test eax, eax
je 0x426eab
cmp eax, dword [ebp + 8]
ja 0x426eab
movzx ecx, word [edi]
movzx eax, word [ebx]
mov edx, ebx
mov esi, edi
cmp ax, cx
je 0x426e95
movzx ecx, cx
movzx eax, ax
xor ecx, eax
test ecx, 0xffffffdf
jne 0x426eab
inc esi
inc esi
movzx ecx, word [esi]
xor eax, eax
cmp ax, cx
je 0x426eb4
inc edx
inc edx
movzx eax, word [edx]
test ax, ax
jne 0x426e80
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, ebx
jmp 0x426ead

Function at 0x4271f6
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x427255
cmp dword [ebp - 4], ebx
je 0x427255
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x42725b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x4272b6
push eax
call fcn.00443f98
push eax
lea eax, [ebp - 0x400]
push str.ShellExecute_failed:__S
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x10
push dword [0x498aa0]
lea eax, [ebp - 0x400]
push eax
push 0
call fcn.0044961d
xor eax, eax
jmp 0x4272b9
xor eax, eax
inc eax
leave
ret 8
Function at 0x427794
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
call fcn.0044abe4
test eax, eax
je 0x42784a
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push eax
call fcn.00442d2f
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x54
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00442d2f
mov eax, dword [0x5010bc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], eax
add esp, 0xc
xor esi, esi
lea eax, [ebp - 0x58]
inc esi
push eax
mov dword [ebp - 0x58], 0x58
mov dword [ebp - 0x4c], str.Text_Files__.txt_
mov dword [ebp - 0x24], 0x9080e
mov dword [ebp - 0x1c], 0x46a594
mov dword [ebp - 0x40], esi
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x427847
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, esi
jmp 0x427849
xor eax, eax
pop esi
leave
ret 8

Function at 0x42784e
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
call fcn.0044abe4
test eax, eax
je 0x427904
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push eax
call fcn.00442d2f
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x54
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00442d2f
mov eax, dword [0x5010bc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], eax
add esp, 0xc
xor esi, esi
lea eax, [ebp - 0x58]
inc esi
push eax
mov dword [ebp - 0x58], 0x58
mov dword [ebp - 0x4c], str.XML_Files__.xml_
mov dword [ebp - 0x24], 0x9080e
mov dword [ebp - 0x1c], 0x46a600
mov dword [ebp - 0x40], esi
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x427901
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, esi
jmp 0x427903
xor eax, eax
pop esi
leave
ret 8
Function at 0x427908
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
call fcn.0044abe4
test eax, eax
je 0x4279be
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push eax
call fcn.00442d2f
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x54
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00442d2f
mov eax, dword [0x5010bc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], eax
add esp, 0xc
xor esi, esi
lea eax, [ebp - 0x58]
inc esi
push eax
mov dword [ebp - 0x58], 0x58
mov dword [ebp - 0x4c], str.XML_Files__.xml_
mov dword [ebp - 0x24], 0x9080e
mov dword [ebp - 0x1c], 0x46a600
mov dword [ebp - 0x40], esi
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x4279bb
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, esi
jmp 0x4279bd
xor eax, eax
pop esi
leave
ret 8
Function at 0x42964e
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
test byte [0x4ff5f0], 1
jne 0x429677
or dword [0x4ff5f0], 1
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4ff5ec], eax
test byte [0x4ff5f0], 2
jne 0x42969d
or dword [0x4ff5f0], 2
push str.GetModuleFileNameExW
push dword [0x4ff5ec]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ff5e8], eax
cmp dword [0x4ff5e8], 0
jne 0x4296ad
xor eax, eax
jmp 0x4297fb
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
call edi
push 0
push 2
mov dword [ebp - 0xc], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4296d4
xor eax, eax
jmp 0x4297fa
push ebx
push esi
lea ecx, [ebp - 0x238]
push ecx
push eax
mov dword [ebp - 0x238], 0x22c
call sub.KERNEL32.dll_Process32FirstW
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4297e4
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push dword [ebp - 0xc]
lea eax, [ebp - 0x214]
push eax
call esi
test eax, eax
jne 0x4297cd
cmp dword [ebp + 0xc], 0xffffffff
je 0x42973f
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x42973f
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], eax
jne 0x4297cd
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x444], ax
lea eax, [ebp - 0x442]
push eax
call fcn.00442d2f
add esp, 0xc
push dword [ebp - 0x230]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
test eax, eax
je 0x4297c2
push 0x104
lea ecx, [ebp - 0x444]
push ecx
push 0
push eax
call dword [0x4ff5e8]
dec eax
cmp eax, 0x102
ja 0x4297bb
push 0x5c
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
lea eax, [ebp - 0x444]
push eax
je 0x4297af
push dword [ebp + 8]
jmp 0x4297b5
call edi
push dword [ebp - 0xc]
push eax
call esi
test eax, eax
je 0x4297e8
push dword [ebp - 4]
call ebx
jmp 0x4297cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4297ff
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x429701
xor esi, esi
jmp 0x429805
push dword [ebp - 4]
call ebx
push dword [ebp - 8]
call ebx
mov eax, dword [ebp - 0x230]
pop esi
pop ebx
pop edi
leave
ret 8
mov esi, dword [ebp - 0x230]
push dword [ebp - 8]
call ebx
mov eax, esi
jmp 0x4297f8
Function at 0x429baf
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
jne 0x429bde
xor eax, eax
jmp 0x429c6b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x429bf6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x429bd7
add eax, 2
push esi
push eax
call fcn.00442eef
mov esi, dword [ebp + 0xc]
pop ecx
push ebx
lea ecx, [ebp - 4]
push ecx
push 3
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esi], eax
mov dword [ebp - 4], ebx
call edi
test eax, eax
je 0x429c68
push 3
push 0x46aa24
push dword [esi]
call fcn.00442cec
add esp, 0xc
test eax, eax
je 0x429c3f
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [esi]
push dword [ebp + 8]
call edi
test eax, eax
je 0x429c5a
mov eax, dword [esi]
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], bl
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x429c6a
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 8

Function at 0x429ce9
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, 0x3e8
cmp dword [ebp + 0xc], ebx
jae 0x429cff
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
call esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x429d35
call esi
sub eax, edi
cmp eax, dword [ebp + 0xc]
jae 0x429d30
cmp dword [0x501804], 0
je 0x429d0b
mov eax, 0x102
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42a496
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa5c
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0xa5c]
push dword [ebp + 8]
push str.__s___s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x38
stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
push esi
push eax
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], 0x46aad8
call fcn.00442d2f
mov ax, word [ebp + 0x14]
add esp, 0x1c
cmp ax, si
je 0x42a4f8
or dword [ebp - 0x28], 1
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xa5c]
push esi
push esi
push esi
push esi
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
cmp ebx, esi
je 0x42a52e
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0xc]
call edi
xor eax, eax
cmp ebx, esi
pop edi
pop esi
setne al
pop ebx
leave
ret 0x10
Function at 0x42a570
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.004262b4
test eax, eax
je 0x42a5a8
push 0
push 0x2000000
push 3
push 0
push 7
push dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x42a5df
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x42a5e1
test dword [esp + 0xc], 0x40000000
je 0x42a5df
push 0
push 0x2000000
push 1
push 0
push 7
push dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x42a5df
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x42a5a3
xor eax, eax
pop esi
ret 8

Function at 0x42a5e5
Capabilities:
Copy file
Create directory
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push ebx
push esi
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x414]
push eax
push str._ALLUSERSPROFILE_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x5c
lea eax, [ebp - 0x414]
push eax
call fcn.004260eb
push str.Uwe_Sieber
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov esi, 0x5007f0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x44d220
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call fcn.004262b4
mov dword [ebp - 4], eax
mov ebx, 0x450eac
test eax, eax
je 0x42a6b7
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x61c]
push eax
push 0x44d0ac
push str.NoIniWrite
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x42a6b7
push 0x500c58
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x42a6b7
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x42a77d
push esi
call fcn.0042630b
xor edi, edi
cmp eax, edi
je 0x42a706
cmp dword [ebp - 4], edi
je 0x42a77d
lea eax, [ebp - 0x20c]
push eax
call fcn.00426bef
push esi
mov edi, eax
mov ebx, edx
call fcn.00426bef
cmp ebx, edx
jb 0x42a77d
ja 0x42a6f4
cmp edi, eax
jbe 0x42a77d
push 0
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x42a77d
push esi
call fcn.004262e4
test eax, eax
jne 0x42a77d
lea eax, [ebp - 0x414]
push eax
call fcn.004262b4
test eax, eax
jne 0x42a72e
push edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call fcn.004262b4
test eax, eax
je 0x42a757
lea eax, [ebp - 0x20c]
push eax
call fcn.004262b4
test eax, eax
jne 0x42a757
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
push 0x500c58
push str.NoIniWrite
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42ae2a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x42aea3
cmp word [esi], 0
je 0x42aea3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x100
ja 0x42aea3
cmp word [esi], 0x5c
jne 0x42ae66
cmp word [esi + 2], 0x5c
jne 0x42ae66
cmp word [esi + 6], 0x5c
jne 0x42ae66
add esi, 8
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5c
lea eax, [ebp - 0x208]
push eax
call fcn.00426117
push 0x104
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
neg eax
sbb eax, eax
neg eax
jmp 0x42aecb
push str.DosDeviceNameExists
push 0x1b28
push str..Tools.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.004487a4
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop esi
leave
ret 4
Function at 0x42b55b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
mov esi, dword [ebp + 8]
push str.DeviceCdRom
push esi
call fcn.00426e06
test eax, eax
je 0x42b594
add esi, 0x1a
push esi
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
or dword [eax], 0xffffffff
xor eax, eax
inc eax
jmp 0x42b70d
push str.DeviceFloppy
push esi
call fcn.00426e06
test eax, eax
je 0x42b5a8
add esi, 0x1c
jmp 0x42b57a
cmp dword [0x500aa8], 6
jae 0x42b5b8
xor eax, eax
jmp 0x42b70d
push str.HarddiskVolume
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x42b5b1
push edi
push esi
push str.GetNt6VolumeDeviceAndPartitionNumber__s_...
push 3
call fcn.004487a4
mov eax, dword [0x498a9c]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00442eef
mov edi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
add esp, 0x10
xor esi, esi
jmp 0x42b638
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42b6f5
push dword [ebp - 4]
call fcn.00442f64
add dword [0x498a9c], 0x1000
mov eax, dword [0x498a9c]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00442eef
pop ecx
pop ecx
mov ecx, dword [0x498a9c]
dec ecx
push ecx
push eax
push esi
mov dword [ebp - 4], eax
call edi
mov dword [ebp - 8], eax
cmp eax, esi
je 0x42b5fc
push ebx
xor ebx, ebx
cmp eax, esi
jle 0x42b6e3
mov eax, dword [ebp - 4]
lea esi, [eax + ebx*2]
cmp word [esi], 0
je 0x42b6e3
push str.Harddisk
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
cmp eax, esi
jne 0x42b6cf
push str.Partition
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x42b6cf
push 0x104
lea eax, [ebp - 0x214]
push eax
push esi
call edi
test eax, eax
je 0x42b6cf
cmp dword [0x50da14], 5
jl 0x42b6bb
lea eax, [ebp - 0x214]
push eax
push esi
push str.___s___s
push 5
call fcn.004487a4
add esp, 0x10
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x42b712
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [ebx + eax + 1]
cmp ebx, dword [ebp - 8]
jl 0x42b659
push str._not_found
push 3
call fcn.004487a4
pop ecx
pop ecx
xor esi, esi
jmp 0x42b747
call fcn.00445dc2
push eax
push str._qdd_all__err_S
push 3
call fcn.004487a4
add esp, 0xc
xor eax, eax
pop edi
pop esi
leave
ret 0xc
mov edi, dword [sym.imp.SHLWAPI.dll_StrToIntW]
lea eax, [esi + 0x10]
push eax
call edi
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
add eax, 0x12
push eax
call edi
mov ecx, dword [ebp + 0x10]
push eax
mov dword [ecx], eax
push dword [ebx]
push esi
push str._found__s____pDevNum_i_pPartNum_i
push 3
call fcn.004487a4
xor esi, esi
add esp, 0x14
inc esi
push dword [ebp - 4]
call fcn.00442f64
pop ecx
mov eax, esi
pop ebx
jmp 0x42b70c