joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4252bf
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 0x42531d
mov ecx, dword [0x4fc954]
call fcn.0043eec9
mov dword [ebp - 8], eax
test eax, eax
jne 0x42530c
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x42537c
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 0x42535d
cmp dword [ebp - 4], ebx
je 0x42535d
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
test ebx, ebx
je 0x425354
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.004452a3
add esp, 0x14
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x42536e
mov ecx, dword [0x4fc954]
call fcn.0043ef13
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 0x425383
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 0x4253fc
cmp dword [ebp + 0x10], 0
je 0x4253ce
cmp dword [0x506fb4], 4
jl 0x4253e9
push dword [ebp - 4]
push dword [ebp + 0x10]
push str.Thread__S_created__id_u
push 4
call fcn.004452a3
add esp, 0x10
jmp 0x4253e9
cmp dword [0x506fb4], 4
jl 0x4253e9
push dword [ebp - 4]
push str.Thread_id_u_created
push 4
call fcn.004452a3
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 0x4253fe
xor eax, eax
pop ebx
leave
ret 0xc

Function at 0x425403
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 0x425470
cmp dword [ebp + 0x10], 0
je 0x42544e
cmp dword [0x506fb4], 4
jl 0x425469
push dword [ebp - 4]
push dword [ebp + 0x10]
push str.Thread__S_created__id_u
push 4
call fcn.004452a3
add esp, 0x10
jmp 0x425469
cmp dword [0x506fb4], 4
jl 0x425469
push dword [ebp - 4]
push str.Thread_id_u_created
push 4
call fcn.004452a3
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x4256d4
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 0x425733
test eax, eax
je 0x425733
cmp eax, dword [ebp + 8]
ja 0x425733
movzx ecx, word [edi]
movzx eax, word [ebx]
mov edx, ebx
mov esi, edi
cmp ax, cx
je 0x42571d
movzx ecx, cx
movzx eax, ax
xor ecx, eax
test ecx, 0xffffffdf
jne 0x425733
inc esi
inc esi
movzx ecx, word [esi]
xor eax, eax
cmp ax, cx
je 0x42573c
inc edx
inc edx
movzx eax, word [edx]
test ax, ax
jne 0x425708
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, ebx
jmp 0x425735

Function at 0x425a5a
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 0x425ab9
cmp dword [ebp - 4], ebx
je 0x425ab9
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 0x425abf
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 0x425b1a
push eax
call fcn.00440118
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 [0x492a20]
lea eax, [ebp - 0x400]
push eax
push 0
call fcn.0044613a
xor eax, eax
jmp 0x425b1d
xor eax, eax
inc eax
leave
ret 8
Function at 0x425f9e
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
call fcn.004475dd
test eax, eax
je 0x426054
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push eax
call fcn.0043f4d8
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.0043f4d8
mov eax, dword [0x4fa548]
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], 0x466be8
mov dword [ebp - 0x40], esi
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x426051
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, esi
jmp 0x426053
xor eax, eax
pop esi
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
call fcn.004475dd
test eax, eax
je 0x42610e
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push eax
call fcn.0043f4d8
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.0043f4d8
mov eax, dword [0x4fa548]
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], 0x466c50
mov dword [ebp - 0x40], esi
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x42610b
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, esi
jmp 0x42610d
xor eax, eax
pop esi
leave
ret 8
Function at 0x426112
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
call fcn.004475dd
test eax, eax
je 0x4261c8
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push eax
call fcn.0043f4d8
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.0043f4d8
mov eax, dword [0x4fa548]
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], 0x466c50
mov dword [ebp - 0x40], esi
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x4261c5
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, esi
jmp 0x4261c7
xor eax, eax
pop esi
leave
ret 8
Function at 0x427d78
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
test byte [0x4f8b08], 1
jne 0x427da1
or dword [0x4f8b08], 1
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4f8b04], eax
test byte [0x4f8b08], 2
jne 0x427dc7
or dword [0x4f8b08], 2
push str.GetModuleFileNameExW
push dword [0x4f8b04]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4f8b00], eax
cmp dword [0x4f8b00], 0
jne 0x427dd7
xor eax, eax
jmp 0x427f25
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 0x427dfe
xor eax, eax
jmp 0x427f24
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 0x427f0e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push dword [ebp - 0xc]
lea eax, [ebp - 0x214]
push eax
call esi
test eax, eax
jne 0x427ef7
cmp dword [ebp + 0xc], 0xffffffff
je 0x427e69
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 0x427e69
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], eax
jne 0x427ef7
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x444], ax
lea eax, [ebp - 0x442]
push eax
call fcn.0043f4d8
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 0x427eec
push 0x104
lea ecx, [ebp - 0x444]
push ecx
push 0
push eax
call dword [0x4f8b00]
dec eax
cmp eax, 0x102
ja 0x427ee5
push 0x5c
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
lea eax, [ebp - 0x444]
push eax
je 0x427ed9
push dword [ebp + 8]
jmp 0x427edf
call edi
push dword [ebp - 0xc]
push eax
call esi
test eax, eax
je 0x427f12
push dword [ebp - 4]
call ebx
jmp 0x427ef7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x427f29
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x427e2b
xor esi, esi
jmp 0x427f2f
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 0x427f22
Function at 0x4282d9
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
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 - 4], edi
cmp edi, 0xffffffff
jne 0x428309
xor eax, eax
jmp 0x42839f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x428321
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x428302
inc eax
push esi
push eax
call fcn.0043f698
mov esi, dword [ebp + 0xc]
pop ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push 3
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esi], eax
mov dword [ebp - 8], ebx
call edi
test eax, eax
je 0x42839c
push 3
lea eax, [ebp + 8]
push eax
push dword [esi]
mov byte [ebp + 8], 0xef
mov byte [ebp + 9], 0xbb
mov byte [ebp + 0xa], 0xbf
call fcn.0043f495
add esp, 0xc
test eax, eax
je 0x428373
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [esi]
push dword [ebp - 4]
call edi
test eax, eax
je 0x42838e
mov eax, dword [esi]
mov ecx, dword [ebp - 0xc]
mov byte [ecx + eax], bl
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
jmp 0x42839e
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, 0x3e8
cmp dword [ebp + 0xc], ebx
jae 0x428433
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 0x428469
call esi
sub eax, edi
cmp eax, dword [ebp + 0xc]
jae 0x428464
cmp dword [0x4fac58], 0
je 0x42843f
mov eax, 0x102
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x428470
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push edi
mov edi, dword [0x492a74]
neg edi
sbb edi, edi
not edi
push str.UxTheme.dll
and edi, 0x44ffc4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x428586
push str.SetWindowTheme
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
test eax, eax
je 0x428567
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x428566
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push edi
push edi
push dword [esi]
call dword [ebp - 8]
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4284f0
push 0
push dword [esi]
call ebx
push 5
push dword [esi]
call ebx
push 0x40
lea eax, [ebp - 0x80]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x428550
push str.ComboBox
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x428550
push 0x30
push eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x40], 0x34
call fcn.0043f4d8
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
push 0
push 0x164
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x428550
cmp dword [ebp - 0x10], 0
je 0x428550
push edi
push edi
push dword [ebp - 0x10]
call dword [ebp - 8]
inc dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
lea esi, [eax + ecx*4]
cmp dword [esi], 0
jne 0x4284d1
pop ebx
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
leave
ret 8

Function at 0x428cb9
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], 0x467150
call fcn.0043f4d8
mov ax, word [ebp + 0x14]
add esp, 0x1c
cmp ax, si
je 0x428d1b
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 0x428d51
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 0x428d93
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00424b3c
test eax, eax
je 0x428dcb
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 0x428e02
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x428e04
test dword [esp + 0xc], 0x40000000
je 0x428e02
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 0x428e02
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x428dc6
xor eax, eax
pop esi
ret 8

Function at 0x428e08
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.00424973
push str.Uwe_Sieber
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov esi, 0x4f9c98
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x449ea0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call fcn.00424b3c
mov dword [ebp - 4], eax
mov ebx, 0x44d6b4
test eax, eax
je 0x428eda
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x61c]
push eax
push 0x449d24
push str.NoIniWrite
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x428eda
push 0x4fa0f8
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x428eda
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x428fa0
push esi
call fcn.00424b93
xor edi, edi
cmp eax, edi
je 0x428f29
cmp dword [ebp - 4], edi
je 0x428fa0
lea eax, [ebp - 0x20c]
push eax
call fcn.00425477
push esi
mov edi, eax
mov ebx, edx
call fcn.00425477
cmp ebx, edx
jb 0x428fa0
ja 0x428f17
cmp edi, eax
jbe 0x428fa0
push 0
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x428fa0
push esi
call fcn.00424b6c
test eax, eax
jne 0x428fa0
lea eax, [ebp - 0x414]
push eax
call fcn.00424b3c
test eax, eax
jne 0x428f51
push edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call fcn.00424b3c
test eax, eax
je 0x428f7a
lea eax, [ebp - 0x20c]
push eax
call fcn.00424b3c
test eax, eax
jne 0x428f7a
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 0x4fa0f8
push str.NoIniWrite
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42961e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x429697
cmp word [esi], 0
je 0x429697
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x100
ja 0x429697
cmp word [esi], 0x5c
jne 0x42965a
cmp word [esi + 2], 0x5c
jne 0x42965a
cmp word [esi + 6], 0x5c
jne 0x42965a
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.0042499f
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 0x4296bf
push str.DosDeviceNameExists
push 0x1ac2
push str..Tools.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.004452a3
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop esi
leave
ret 4
Function at 0x4296c4
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, eax
push edi
mov word [ecx], ax
push ebx
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5c
lea eax, [ebp - 0x260]
push eax
call fcn.00424973
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push 0x44a8c8
xor esi, esi
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x429781
push str.53f5630d_b6bf_11d0_94f2_00a0c91efb8b
push ebx
call edi
test eax, eax
jne 0x429781
push esi
push esi
push 3
push esi
push 3
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x42979c
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 9
pop ecx
push esi
xor eax, eax
mov dword [ebp - 0x58], esi
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push 0x28
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x700a0
push dword [ebp + 8]
call ebx
test eax, eax
je 0x4297db
mov eax, dword [ebp - 0x40]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x3c]
jmp 0x4297d6
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4297a3
xor eax, eax
jmp 0x429885
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
xor eax, eax
mov dword [ebp - 0x30], esi
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push 8
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push 0x7405c
push dword [ebp + 8]
call ebx
test eax, eax
je 0x4297db
mov eax, dword [ebp - 0x30]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
jmp 0x429832
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
jne 0x429832
xor eax, eax
mov dword [ebp - 0x28], esi
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push 0x18
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push 0x70000
push dword [ebp + 8]
call ebx
test eax, eax
je 0x429832
mov eax, dword [ebp - 0x18]
mul dword [ebp - 0x14]
push esi
push dword [ebp - 0x1c]
push edx
push eax
call fcn.00447b93
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push edx
push eax
call fcn.00447b93
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 1
jne 0x42986c
cmp dword [ebp - 4], esi
jne 0x42986c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
jne 0x42986c
cmp dword [ebp - 0x10], 2
je 0x429862
push 5
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp - 0x10], eax
jne 0x429869
mov dword [ebp - 8], 6
mov dword [ebp - 4], esi
mov edi, dword [ebp + 0xc]
push 1
push edi
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041a37d
xor eax, eax
cmp word [edi], si
setne al
pop edi
pop esi
pop ebx
leave
ret 8