joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413020
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x498e04]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x110], ecx
push 0xff
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
mov byte [ebp + ecx - 0x108], 0
push str.CABINET.dll
lea edx, [ebp - 0x108]
push edx
call fcn.00413660
add esp, 8
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x110]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x110]
cmp dword [edx + 4], 0
jne 0x413119
push 0xff
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
mov byte [ebp + ecx - 0x108], 0
push str.CABINET.dll
lea edx, [ebp - 0x108]
push edx
call fcn.00413660
add esp, 8
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x110]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x110]
cmp dword [edx + 4], 0
jne 0x413119
push 0x483874
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x110]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x110]
cmp dword [edx + 4], 0
jne 0x413119
xor eax, eax
jmp 0x41311e
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449ce2
mov esp, ebp
pop ebp
ret

Function at 0x413770
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b720
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x498e04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x28]
call fcn.00418580
mov dword [ebp - 4], 0
push 0
push 1
lea eax, [ebp - 0x40]
push eax
call fcn.00426520
add esp, 0xc
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x54]
call fcn.00418800
push eax
lea ecx, [ebp - 0x28]
call fcn.00418b10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004186d0
push str.wbemwmic.exe
lea ecx, [ebp - 0x28]
call fcn.00419440
lea ecx, [ebp - 0x28]
call fcn.00418810
push eax
push str.NWmicW::init____1__path:_.256S_r_n
push 3
call fcn.00414a20
add esp, 0xc
push 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x44], esp
lea edx, [ebp - 0x28]
push edx
call fcn.00419080
mov dword [ebp - 0x58], eax
call fcn.0041dec0
add esp, 0x1c
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 1
je 0x413854
push str.NWmicW::init____2__ret_FALSE_r_n
push 3
call fcn.00414a20
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004186d0
mov eax, dword [ebp - 0x48]
jmp 0x41388c
push str.NWmicW::init____3__ret_TRUE_r_n
push 3
call fcn.00414a20
add esp, 8
push 0
push str.C:ProgramData
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x4c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004186d0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4140c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b82b
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x498e04]
xor eax, ebp
mov dword [ebp - 0x40], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x48350c
mov ecx, dword [ebp + 0xc]
call fcn.0042c3f0
mov eax, dword [ebp + 8]
push eax
push str.NWmicW::readFile____1__file_name:_s_r_n
push 3
call fcn.00414a20
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push closesocket
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x41414d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NWmicW::readFile____2__open_file_fail_err:_d_r_n
push 3
call fcn.00414a20
add esp, 0xc
xor eax, eax
jmp 0x41425e
lea edx, [ebp - 0x30]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
jne 0x414188
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NWmicW::readFile____3__get_attribute_fail_err:_d_r_n
push 3
call fcn.00414a20
add esp, 0xc
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41425e
mov byte [ebp - 0x444], 0
push 0x3ff
push 0
lea edx, [ebp - 0x443]
push edx
call fcn.00449d00
add esp, 0xc
push 0x400
push 0
lea eax, [ebp - 0x444]
push eax
call fcn.00449d00
add esp, 0xc
push 0
lea ecx, [ebp - 0x3c]
push ecx
push 0x3fe
lea edx, [ebp - 0x444]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x414251
cmp dword [ebp + 0x10], 0
je 0x4141f7
lea ecx, [ebp - 0x444]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0042c3f0
jmp 0x414251
push 0x1000
lea edx, [ebp - 0x444]
push edx
lea eax, [ebp - 0x454]
push eax
call fcn.00424770
add esp, 0xc
mov dword [ebp - 0x458], eax
mov ecx, dword [ebp - 0x458]
mov dword [ebp - 0x45c], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x45c]
call fcn.0042c070
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0042c3f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x454]
call fcn.0042bef0
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.00449ce2
mov esp, ebp
pop ebp
ret
Function at 0x414280
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1068
call fcn.0044a2a0
mov eax, dword [0x498e04]
xor eax, ebp
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x1060], 0
push 0xfff
push 0
lea eax, [ebp - 0x105f]
push eax
call fcn.00449d00
add esp, 0xc
mov dword [ebp - 0x1068], 0
mov dword [ebp - 0x1064], str.CMD.EXE
push 0x44
push 0
lea ecx, [ebp - 0x58]
push ecx
call fcn.00449d00
add esp, 0xc
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], 0
mov byte [ebp - 0x1060], 0
push str.COMSPEC
call fcn.0044d629
add esp, 4
mov dword [ebp - 0x1068], eax
cmp dword [ebp - 0x1068], 0
je 0x41432c
push 0x1000
mov edx, dword [ebp - 0x1068]
push edx
lea eax, [ebp - 0x1060]
push eax
call fcn.004143e0
add esp, 0xc
jmp 0x414347
push 0x1000
mov ecx, dword [ebp - 0x1064]
push ecx
lea edx, [ebp - 0x1060]
push edx
call fcn.004143e0
add esp, 0xc
push str.__c
lea eax, [ebp - 0x1060]
push eax
call fcn.004117c0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x1060]
push edx
call fcn.004117c0
add esp, 8
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x58]
push ecx
mov ecx, 0x49a610
call fcn.00418810
push eax
push 0
push 0x20
push 0
push 0
push 0
lea edx, [ebp - 0x1060]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4143a2
xor eax, eax
jmp 0x4143c7
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0x5c]
xor ecx, ebp
call fcn.00449ce2
mov esp, ebp
pop ebp
ret
Function at 0x416810
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x47baa1
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x498e04]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
mov dword [esp + 0x1c], esi
mov eax, dword [ebx + 4]
cmp eax, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
je 0x416916
mov edi, dword [esp + 0x4c]
cmp edi, esi
je 0x416916
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x20]
push edx
push esi
push edi
push eax
mov dword [esp + 0x30], 1
call ebp
cmp eax, 0xea
je 0x41689c
cmp eax, esi
je 0x41689c
mov esi, dword [esp + 0x48]
push 0x48e349
mov ecx, esi
call fcn.004185b0
jmp 0x416926
mov eax, dword [esp + 0x14]
add eax, 1
push eax
call fcn.00448fa1
mov ecx, dword [esp + 0x18]
add ecx, 1
push ecx
mov esi, eax
push 0
push esi
call fcn.00449d00
mov ecx, dword [ebx + 4]
add esp, 0x10
lea edx, [esp + 0x14]
push edx
push esi
lea eax, [esp + 0x20]
push eax
push 0
push edi
push ecx
call ebp
test eax, eax
jne 0x416887
push esi
lea ecx, [esp + 0x24]
call fcn.004185b0
mov edi, 1
push esi
mov dword [esp + 0x44], edi
call fcn.0044a9ac
mov esi, dword [esp + 0x4c]
add esp, 4
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.00419080
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], edi
mov byte [esp + 0x40], 0
call fcn.004186d0
jmp 0x416926
mov esi, dword [esp + 0x48]
push 0x48e349
mov ecx, esi
call fcn.004185b0
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8

Function at 0x416940
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
push edi
lea edi, [eax + 1]
jmp 0x416950
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x416950
mov ecx, dword [ecx + 4]
sub eax, edi
push eax
mov eax, dword [esp + 0x10]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
add eax, 1
pop esi
ret 8
Function at 0x416a00
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x424
mov eax, dword [0x498e04]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x438]
mov eax, dword [esp + 0x444]
xor ebp, ebp
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x28]
push ecx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
lea edx, [esp + 0x34]
push edx
push ebp
push ebp
push ebp
push edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x416b54
mov ebx, dword [esp + 0x440]
lea esp, [esp]
cmp dword [esp + 0x18], ebp
je 0x416b60
push 0x400
lea eax, [esp + 0x34]
push ebp
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], 0x400
call fcn.00449d00
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x416b6d
mov esi, 0xf003f
call fcn.0041b210
test eax, eax
je 0x416adb
mov esi, ebx
neg esi
sbb esi, esi
and esi, 0xffffff00
add esi, 0xf023f
lea ecx, [esp + 0x14]
push ecx
push esi
push ebp
lea edx, [esp + 0x3c]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416b54
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push ebx
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x30]
push edx
call fcn.00416a00
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebp
je 0x416b32
cmp dword [esp + 0x20], ebp
jne 0x416b32
lea ecx, [esp + 0x30]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x416b79
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x34]
push eax
push ebp
push ebp
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x416a70
mov ecx, dword [esp + 0x10]
mov dword [ecx], 1
jmp 0x416b83
mov edx, dword [esp + 0x10]
mov dword [edx], ebp
mov eax, 1
jmp 0x416b85
mov eax, dword [esp + 0x10]
mov dword [eax], 1
jmp 0x416b83
mov edx, dword [esp + 0x10]
mov dword [edx], 1
xor eax, eax
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00449ce2
add esp, 0x424
ret 0x10
Function at 0x416ba0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 4]
xor ebx, ebx
cmp eax, ebx
jne 0x416bba
pop edi
xor eax, eax
pop ebx
add esp, 0x14
ret 8
push ebx
push ebx
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
push ebx
push ebx
push ebx
push ebx
push eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x416bb0
mov eax, dword [esp + 8]
add eax, 0x64
push esi
push eax
call fcn.0044c06b
mov ecx, dword [esp + 0x10]
add esp, 4
lea edx, [esp + 0x10]
push edx
mov esi, eax
mov eax, dword [esp + 0x28]
push esi
push ebx
add ecx, 0x64
push ebx
mov dword [esp + 0x20], ecx
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push esi
je 0x416c41
call fcn.0044c12e
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0x14
ret 8
mov edx, dword [esi]
mov eax, dword [esp + 0x2c]
mov dword [eax], edx
call fcn.0044c12e
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
add esp, 0x14
ret 8

Function at 0x416c60
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx + 4]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
add eax, 1
ret 8

Function at 0x417370
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x47bb71
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x498e04]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 8], 0
call fcn.00418580
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x10], eax
call fcn.00418780
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00418810
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
mov esi, dword [esp + 0x40]
jne 0x417400
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00419080
jmp 0x41740c
push 0x48e349
mov ecx, esi
call fcn.004185b0
lea ecx, [esp + 0x18]
mov dword [esp + 8], 1
mov byte [esp + 0x38], 0
call fcn.004186d0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret 0xc

Function at 0x417510
Capabilities:
Query or enumerate registry key

Disassembly:
push ecx
mov ecx, dword [ecx + 4]
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push ecx
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x417545
or eax, 0xffffffff
pop ecx
ret
mov eax, dword [esp]
add eax, 1
pop ecx
ret
Function at 0x41a6b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00449d00
add esp, 0xc
xor eax, eax
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x68]
push eax
push 0
push 8
push 0
push 0
push 0
push ecx
push 0
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x41a717
or eax, 0xffffffff
add esp, 0x58
ret
mov edx, dword [esp + 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 4]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x41a746
mov dword [esp], 0xffffffff
mov edx, dword [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
mov eax, dword [esp + 4]
pop esi
add esp, 0x58
ret

Function at 0x41aa00
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push 0x44
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00449d00
add esp, 0xc
xor eax, eax
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x64]
push eax
push 0
push 8
push 0
push 0
push 0
push ecx
push 0
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x64], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x41aa63
add esp, 0x54
ret
mov edx, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov eax, 1
pop esi
add esp, 0x54
ret
Function at 0x41ace0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x498e04]
xor eax, esp
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x10]
sub ecx, 0
mov eax, 0x63
je 0x41ae40
sub ecx, 1
je 0x41adf4
sub ecx, 1
jne 0x41ae40
mov ecx, dword [esp + 4]
cmp ecx, 4
jae 0x41ad4d
mov eax, 0x5b
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00449ce2
add esp, 0x98
ret
jne 0x41ad74
cmp dword [esp + 8], 0
jne 0x41ae40
mov eax, 5
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00449ce2
add esp, 0x98
ret
cmp ecx, 5
jne 0x41add7
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x41ad99
lea eax, [ecx + 6]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00449ce2
add esp, 0x98
ret
cmp ecx, 1
jne 0x41adb6
lea eax, [ecx + 6]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00449ce2
add esp, 0x98
ret
cmp ecx, 2
jne 0x41ae40
lea eax, [ecx + 6]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00449ce2
add esp, 0x98
ret
cmp ecx, 6
jne 0x41ae40
lea eax, [ecx + 3]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00449ce2
add esp, 0x98
ret
cmp dword [esp + 4], 4
jne 0x41ae40
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x41ae1b
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00449ce2
add esp, 0x98
ret
cmp ecx, 0xa
jne 0x41ae38
lea eax, [ecx - 7]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00449ce2
add esp, 0x98
ret
cmp ecx, 0x5a
jne 0x41ae40
lea eax, [ecx - 0x56]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00449ce2
add esp, 0x98
ret

Function at 0x41ae90
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x498e04]
xor eax, esp
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, 2
cmp dword [esp + 0x10], eax
jne 0x41aee8
cmp dword [esp + 4], 6
jb 0x41aee8
cmp dword [esp + 8], eax
jb 0x41aee8
mov eax, 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00449ce2
add esp, 0x98
ret
mov ecx, dword [esp + 0x94]
xor ecx, esp
xor eax, eax
call fcn.00449ce2
add esp, 0x98
ret

Function at 0x41af00
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x498e04]
xor eax, esp
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x10], 2
jne 0x41af3f
cmp dword [esp + 4], 6
jne 0x41af3f
mov eax, 1
cmp dword [esp + 8], eax
je 0x41af41
xor eax, eax
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00449ce2
add esp, 0x98
ret
Function at 0x41b690
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x47c2c0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x498e04]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
push 0
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], 1
call fcn.00418810
push eax
lea ecx, [esp + 0x24]
call fcn.00418810
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push eax
call edi
mov esi, eax
test esi, esi
jne 0x41b710
push 0x80
lea ecx, [esp + 0x38]
call fcn.00418810
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
lea ecx, [esp + 0x38]
call fcn.00418810
push eax
lea ecx, [esp + 0x24]
call fcn.00418810
push eax
call edi
mov esi, eax
test esi, esi
je 0x41b720
lea ecx, [esp + 0x1c]
call fcn.00418810
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call fcn.004186d0
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], 0xffffffff
call fcn.004186d0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret

Function at 0x41c370
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x47c549
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x498e04]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov esi, dword [esp + 0x1c]
mov ecx, esi
mov dword [esp + 0x14], 0
call fcn.00418580
push 0x103
mov ecx, esi
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 1
call fcn.00418780
push 0x104
mov ecx, esi
call fcn.00418810
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x41e510
Capabilities:
Create directory
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x47c818
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x498e04]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
push 0
sub esp, 0x18
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov dword [esp + 0x30], 0
call fcn.00419080
call fcn.0041dec0
add esp, 0x1c
cmp eax, 1
je 0x41e585
test eax, eax
je 0x41e5aa
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.004186d0
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
push 0x80
lea ecx, [esp + 0x1c]
call fcn.00418800
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x18]
call fcn.00418800
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [esp + 0x1c]
call fcn.00418800
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41e55f
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.004186d0
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
Function at 0x41ee10
Capabilities:
Get disk information

Disassembly:
sub esp, 0x228
mov eax, dword [0x498e04]
xor eax, esp
mov dword [esp + 0x224], eax
push ebp
mov ebp, dword [esp + 0x230]
xor eax, eax
push esi
push edi
mov edi, dword [esp + 0x23c]
push 0x206
push eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov word [esp + 0x2e], ax
mov word [esp + 0x30], ax
lea eax, [esp + 0x32]
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], 0
mov word [esp + 0x20], 0
call fcn.00449d00
lea ecx, [esp + 0x20]
push 0x4859ac
push ecx
call fcn.0041d9a0
add esp, 0x14
cmp word [esp + 0x14], 0x5b
mov esi, 0x41
je 0x41eefe
mov ebp, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea esp, [esp]
push 0x104
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
call ebp
lea eax, [esp + 0x28]
lea edx, [eax + 2]
jmp 0x41eec0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41eec0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
call fcn.0044f9d1
add esp, 0xc
test eax, eax
jne 0x41eee9
cmp word [esp + 0x28], ax
jne 0x41ef24
mov ax, si
add esi, 1
cmp ax, 0x5b
mov word [esp + 0x14], ax
jne 0x41eea0
mov ebp, dword [esp + 0xc]
push 0x48350c
mov ecx, ebp
call fcn.0042bd90
pop edi
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00449ce2
add esp, 0x228
ret
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.0042be40
mov ecx, dword [esp + 0x230]
pop edi
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.00449ce2
add esp, 0x228
ret