joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490560
Capabilities:
Check if file exists
Create directory

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, eax
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x490570
sub eax, edx
sar eax, 1
mov ebp, eax
xor ecx, ecx
lea eax, [ebp + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0052680d
mov esi, eax
mov edx, esi
add esp, 4
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4905a5
xor edi, edi
mov byte [esp + 0xf], 1
test ebp, ebp
jl 0x49060e
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp word [esi + edi*2], 0x5c
jne 0x4905ef
xor eax, eax
push esi
mov word [esi + edi*2], ax
call ebx
test eax, eax
jne 0x4905e6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x490608
mov ecx, 0x5c
mov word [esi + edi*2], cx
inc edi
cmp edi, ebp
jle 0x4905c6
pop ebx
push esi
call fcn.0052744f
movzx eax, byte [esp + 0x13]
add esp, 4
pop edi
pop esi
pop ebp
pop ecx
ret
mov byte [esp + 0x13], 0
pop ebx
push esi
call fcn.0052744f
movzx eax, byte [esp + 0x13]
add esp, 4
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x490b10
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
sub esp, 0x420
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebp
mov ebp, dword [esp + 0x428]
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x490b6c
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.005273c3
add esp, 0x420
ret
push ebx
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x226]
push edx
mov word [esp + 0x228], cx
call fcn.0052e300
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0x59b2fc
push eax
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x21c]
push ecx
call ebx
test eax, eax
jne 0x490c77
mov edx, dword [esp + 8]
push esi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x26]
push ecx
mov word [esp + 0x28], ax
call fcn.0052e300
add esp, 0xc
push 0
push 0x26
lea edx, [esp + 0x24]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [esp + 0x1c]
add edi, 0xfffffffe
jmp 0x490c20
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x490c20
lea eax, [esp + 0x1c]
mov ecx, 0x10
mov esi, str.Internet_Exploreriexplore.exe
push eax
rep movsd dword es:[edi], dword [esi]
call ebx
pop edi
pop esi
test eax, eax
jne 0x490c5c
pop ebx
pop ebp
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.005273c3
add esp, 0x420
ret
lea eax, [esp + 0x14]
mov edx, ebp
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x490c66
jmp 0x490c9e
lea eax, [esp + 0x21c]
mov edx, ebp
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x490c84
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x424]
pop ebx
pop ebp
xor ecx, esp
mov eax, 1
call fcn.005273c3
add esp, 0x420
ret
Function at 0x490cc0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x58a1c0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x490cf4
sub eax, edx
sar eax, 1
je 0x490e2e
lea eax, [esp + 0x28]
push eax
call fcn.00490f30
add esp, 4
mov dword [esp + 0x50], 0
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x490d2d
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x490df9
push 1
xor ecx, ecx
push 0x5ad968
lea esi, [esp + 0x14]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], cx
call fcn.00406150
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x5c], 1
call fcn.00403f60
push 2
push 0x5ad96c
mov eax, esi
call fcn.00404070
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x490d90
sub eax, edx
sar eax, 1
push eax
push edi
lea eax, [esp + 0x14]
call fcn.00404070
mov ecx, dword [esp + 0x10]
mov esi, 8
cmp dword [esp + 0x24], esi
jae 0x490dbd
lea ecx, [esp + 0x10]
call fcn.00491680
cmp dword [esp + 0x24], esi
jb 0x490dd5
mov eax, dword [esp + 0x10]
push eax
call fcn.005273b8
add esp, 4
xor ecx, ecx
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], cx
cmp dword [esp + 0x40], esi
jb 0x490e2e
mov edx, dword [esp + 0x2c]
push edx
jmp 0x490e26
push edi
call fcn.00491410
add esp, 4
test eax, eax
jne 0x490e1a
push str.OpenUrl_By_CreateBrowseUrlByDefault_Err
call fcn.004936d0
add esp, 4
mov esi, edi
call fcn.00490e50
cmp dword [esp + 0x40], 8
jb 0x490e2e
mov eax, dword [esp + 0x2c]
push eax
call fcn.005273b8
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.005273c3
add esp, 0x4c
ret
Function at 0x491210
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x58a120
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov edi, edx
mov dword [esp + 0x18], ebx
push 0x206
lea ecx, [esp + 0x26]
mov ebp, 1
mov dword [esp + 0x238], ebp
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov word [esp + 0x2c], ax
call fcn.0052e300
mov eax, dword [esp + 0x24c]
add esp, 0xc
cmp dword [esp + 0x254], 8
jae 0x491297
lea eax, [esp + 0x240]
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x49131a
push ebx
mov ebp, 7
xor eax, eax
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push 0x59b2fc
mov word [esi + 4], ax
call fcn.00406150
mov edi, 8
cmp dword [esp + 0x254], edi
jb 0x4912e8
mov ecx, dword [esp + 0x240]
push ecx
call fcn.005273b8
add esp, 4
xor edx, edx
mov dword [esp + 0x254], ebp
mov dword [esp + 0x250], ebx
mov word [esp + 0x240], dx
cmp dword [esp + 0x270], edi
jb 0x4913e5
mov eax, dword [esp + 0x25c]
push eax
jmp 0x4913dd
mov eax, dword [esp + 0x25c]
mov edi, 8
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x18], ebp
cmp dword [esp + 0x270], edi
jae 0x491342
lea eax, [esp + 0x25c]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, 7
xor ecx, ecx
lea eax, [esp + 0x20]
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
mov word [esi + 4], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x491381
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00406150
cmp dword [esp + 0x254], edi
jb 0x4913b4
mov eax, dword [esp + 0x240]
push eax
call fcn.005273b8
add esp, 4
xor ecx, ecx
mov dword [esp + 0x254], ebp
mov dword [esp + 0x250], ebx
mov word [esp + 0x240], cx
cmp dword [esp + 0x270], edi
jb 0x4913e5
mov edx, dword [esp + 0x25c]
push edx
call fcn.005273b8
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.005273c3
add esp, 0x224
ret
Function at 0x491410
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x58a0dc
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x298]
push 1
xor ebx, ebx
push ebx
push ebx
push ebp
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x491644
push 0x206
lea ecx, [esp + 0x82]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov word [esp + 0x88], ax
call fcn.0052e300
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea edx, [esp + 0x20]
push edx
push 0x20019
push ebx
push 0x59ace8
push accept
call esi
test eax, eax
jne 0x491632
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
push str.shell
push ecx
call esi
test eax, eax
jne 0x491632
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push str.opencommand
push eax
call esi
cmp eax, ebx
jne 0x491632
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
push 0x59b2fc
push ecx
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x3c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
cmp dword [esp + 0x18], ebx
jbe 0x491632
lea edx, [esp + 0x7c]
lea eax, [esp + 0x44]
call fcn.00406240
push ebx
lea ecx, [esp + 0x48]
push ecx
mov edx, str..exe
mov dword [esp + 0x298], ebx
call fcn.004038e0
mov esi, eax
cmp esi, 0xffffffff
je 0x491629
push ebx
lea edx, [esp + 0x48]
push edx
mov edx, 0x5ad968
call fcn.004038e0
mov edi, eax
mov edx, 0x59b2fc
lea eax, [esp + 0x60]
call fcn.00406240
mov byte [esp + 0x290], 1
cmp edi, ebx
jne 0x4915ca
lea eax, [esp + 0x44]
lea ecx, [esi + 5]
push eax
xor edx, edx
lea esi, [esp + 0x2c]
call fcn.00403910
mov byte [esp + 0x290], 2
jmp 0x4915e5
lea edx, [esp + 0x44]
lea ecx, [esi + 4]
push edx
xor edx, edx
lea esi, [esp + 0x2c]
call fcn.00403910
mov byte [esp + 0x290], 3
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esp + 0x6c]
call fcn.00405d70
lea ecx, [esp + 0x28]
call fcn.00406300
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x49160a
lea eax, [esp + 0x64]
push 1
push ebx
push ebp
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x60]
cmp eax, 0x20
ja 0x491636
call fcn.00406300
lea ecx, [esp + 0x44]
call fcn.00406300
xor eax, eax
jmp 0x491649
call fcn.00406300
lea ecx, [esp + 0x44]
call fcn.00406300
mov eax, 1
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.005273c3
add esp, 0x280
ret
Function at 0x491680
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x2068
call fcn.00542a50
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x2060], eax
push esi
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
mov esi, ecx
call fcn.0052e300
xor ecx, ecx
xor eax, eax
push 0x1ffe
push ecx
lea edx, [esp + 0x76]
push edx
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov word [esp + 0x78], cx
call fcn.0052e300
push esi
lea eax, [esp + 0x7c]
push 0x5d234c
push eax
call fcn.00527adc
add esp, 0x24
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [esp + 0x80]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x49172d
pop esi
mov ecx, dword [esp + 0x2060]
xor ecx, esp
call fcn.005273c3
add esp, 0x2068
ret
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
mov ecx, dword [esp + 0x2064]
pop esi
xor ecx, esp
mov eax, 1
call fcn.005273c3
add esp, 0x2068
ret
Function at 0x491870
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x6c
push ebp
push esi
xor esi, esi
push edi
mov ecx, str.EXPLORER.EXE
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], esi
call fcn.00491a10
push eax
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
je 0x4919d6
lea eax, [esp + 0x18]
push eax
push 0xf01ff
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4919d4
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push 1
push 1
push esi
push 0xf01ff
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4919d4
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x491926
push str.WTSGetActiveConsoleSessionId
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49191f
call eax
mov ecx, dword [esp + 0x10]
push 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x4919d4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x44
lea edx, [esp + 0x34]
push 0
push edx
call fcn.0052e300
mov ecx, dword [esp + 0x1c]
add esp, 0xc
xor eax, eax
push 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push ecx
lea edx, [esp + 0x1c]
mov eax, 5
push edx
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x44], str.WinSta0Default
mov word [esp + 0x6c], ax
mov dword [esp + 0x68], 1
mov dword [esp + 0x20], 0
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x4919d4
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x18]
push 0
push edx
push 0x430
push 0
push 0
push 0
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4919d4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4919cd
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov esi, 1
jmp 0x4919d6
xor esi, esi
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4919ec
cmp eax, 0xffffffff
je 0x4919ec
push eax
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4919fc
cmp eax, 0xffffffff
je 0x4919fc
push eax
call edi
test ebp, ebp
jne 0x491a03
push ebp
call edi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x6c
ret
Function at 0x491a10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x648
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x644], eax
push esi
mov esi, ecx
xor eax, eax
push edi
test esi, esi
je 0x491b72
push 0x206
push eax
lea ecx, [esp + 0x44a]
push ecx
mov word [esp + 0x44c], ax
call fcn.0052e300
lea edx, [esp + 0x44c]
add esp, 0xc
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x491a61
lea edx, [esp + 0x440]
push edx
call fcn.00529daa
add esp, 4
push 0x228
mov esi, eax
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0
call fcn.0052e300
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x491b70
lea ecx, [esp + 8]
push ecx
push edi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x491b69
lea ecx, [ecx]
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x242]
push eax
mov word [esp + 0x244], dx
call fcn.0052e300
add esp, 0xc
xor eax, eax
jmp 0x491b00
movzx ecx, word [esp + eax + 0x2c]
mov word [esp + eax + 0x238], cx
add eax, 2
test cx, cx
jne 0x491b00
lea ecx, [esp + 0x238]
push ecx
call fcn.00529daa
add esp, 4
mov ecx, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x491b4d
test dx, dx
je 0x491b49
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x491b4d
add eax, 4
add ecx, 4
test dx, dx
jne 0x491b27
xor eax, eax
jmp 0x491b52
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x491b86
lea edx, [esp + 8]
push edx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x491ad0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x644]
xor ecx, esp
call fcn.005273c3
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x64c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
xor ecx, esp
call fcn.005273c3
mov esp, ebp
pop ebp
ret
Function at 0x492200
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
sub esp, 0x620
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x61c], eax
push esi
xor eax, eax
mov esi, ecx
push 0x206
push eax
lea ecx, [esp + 0x422]
push ecx
mov dword [esp + 0x10], esi
mov word [esp + 0x424], ax
call fcn.0052e300
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x226]
push eax
mov word [esp + 0x228], dx
call fcn.0052e300
lea edx, [esp + 0x430]
add esp, 0x18
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x492263
lea edx, [esp + 0x210]
mov eax, edi
sub edx, edi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x492280
lea ecx, [esp + 0x418]
push ecx
call fcn.00529fdf
lea edx, [esp + 0x214]
push edx
call fcn.00529fdf
add esp, 8
lea edx, [esp + 0x210]
lea ecx, [esp + 0x418]
lea ebx, [ebx]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4922e6
test ax, ax
je 0x4922e2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4922e6
add ecx, 4
add edx, 4
test ax, ax
jne 0x4922c0
xor eax, eax
jmp 0x4922eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4923a6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor esi, esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.0052e300
add esp, 0xc
test esi, esi
jne 0x492336
push edi
lea edx, [esp + 0x14]
push str._s.bak
push edx
call fcn.00527adc
add esp, 0xc
jmp 0x49234a
push esi
push edi
lea eax, [esp + 0x18]
push str._s.bak_d
push eax
call fcn.00527adc
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x492360
lea edx, [esp + 0x10]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0052b524
add esp, 8
lea ecx, [esp + 0x10]
push ecx
call ebx
mov edx, dword [esp + 0xc]
push 0
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
push 0
test eax, eax
jne 0x49239d
lea eax, [esp + 0x18]
push eax
call ebp
cmp esi, 0xa
jge 0x4923a4
inc esi
jmp 0x492303
lea ecx, [esp + 0x18]
push ecx
call ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x620]
pop esi
xor ecx, esp
call fcn.005273c3
add esp, 0x620
ret

Function at 0x492710
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x11c
lea eax, [esp + 4]
push 0
push eax
call fcn.0052e300
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
cmp eax, 6
jb 0x492774
cmp dword [esp + 8], 2
jb 0x492774
mov eax, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.005273c3
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
cmp eax, 0xa
sbb eax, eax
xor ecx, esp
inc eax
call fcn.005273c3
add esp, 0x120
ret
Function at 0x492790
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x11c
lea eax, [esp + 4]
push 0
push eax
call fcn.0052e300
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 0xa
mov ecx, dword [esp + 0x11c]
sbb eax, eax
xor ecx, esp
inc eax
call fcn.005273c3
add esp, 0x120
ret

Function at 0x4927f0
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x140], eax
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.0052e300
add esp, 0xc
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x28], 5
jg 0x49285d
cmp dword [esp + 0x2c], 2
jg 0x49285d
mov eax, 1
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.005273c3
add esp, 0x144
ret
mov ecx, dword [esp + 0x140]
xor ecx, esp
xor eax, eax
call fcn.005273c3
add esp, 0x144
ret
Function at 0x492c80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58d5c8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
call fcn.00492e70
lea eax, [esp + 0x10]
push eax
mov ecx, str.Microsoft_Windows_95
mov dword [esp + 0x3c], 0
call fcn.00404b00
test eax, eax
jne 0x492d16
push 5
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], eax
push str.win95
mov word [esi + 4], cx
call fcn.00406150
cmp dword [esp + 0x28], 8
jb 0x492e47
mov edx, dword [esp + 0x14]
push edx
call fcn.005273b8
add esp, 4
jmp 0x492e47
lea eax, [esp + 0x10]
push eax
mov ecx, str.Microsoft_Windows_98
call fcn.00404b00
test eax, eax
jne 0x492d52
mov edx, str.win98
mov eax, esi
call fcn.00406240
cmp dword [esp + 0x28], 8
jb 0x492e47
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005273b8
add esp, 4
jmp 0x492e47
lea edx, [esp + 0x10]
push edx
mov ecx, str.Microsoft_Windows_2000
call fcn.00404b00
test eax, eax
jne 0x492d6f
mov edx, str.win2000
jmp 0x492e37
lea eax, [esp + 0x10]
push eax
mov ecx, str.Microsoft_Windows_XP
call fcn.00404b00
test eax, eax
jne 0x492d8c
mov edx, 0x5d280c
jmp 0x492e37
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.Microsoft_Windows_XP_Professional_x64_Edition
call fcn.00404b00
test eax, eax
je 0x492d82
lea edx, [esp + 0x10]
push edx
mov ecx, str.Microsoft_Windows_Vista
call fcn.00404b00
test eax, eax
jne 0x492db9
mov edx, str.vista
jmp 0x492e37
lea eax, [esp + 0x10]
push eax
mov ecx, str.Microsoft_Windows_7
call fcn.00404b00
test eax, eax
jne 0x492dd3
mov edx, str.win7
jmp 0x492e37
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.Microsoft_Windows_8
call fcn.00404b00
test eax, eax
jne 0x492ded
mov edx, str.win8
jmp 0x492e37
lea edx, [esp + 0x10]
push edx
mov ecx, str.Microsoft_Windows_8.1
call fcn.00404b00
test eax, eax
je 0x492de6
lea eax, [esp + 0x10]
push eax
mov ecx, str.Microsoft_Windows_10_Insider_Preview
call fcn.00404b00
test eax, eax
jne 0x492e1a
mov edx, str.win10
jmp 0x492e37
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.Microsoft_Windows_10
call fcn.00404b00
mov edx, str.win10
test eax, eax
je 0x492e37
mov edx, str.UnKonw
mov eax, esi
call fcn.00406240
lea ecx, [esp + 0x10]
call fcn.00406300
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.005273c3
add esp, 0x34
ret