joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b7e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x477070]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x58], eax
mov ebx, ecx
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x54], edx
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x41b923
push esi
call fcn.0043694b
mov edi, eax
add esp, 4
test edi, edi
je 0x41b90d
push edi
push esi
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0x46826c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0x50]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x4c]
push str._d._d._d._d
push eax
call fcn.0041cd80
add esp, 0x18
cmp word [ebp - 0x4c], 0
jne 0x41b878
xor ecx, ecx
jmp 0x41b88f
lea ecx, [ebp - 0x4c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b880
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x4c]
push eax
call fcn.00404c00
mov ecx, dword [ebp - 0x50]
movzx eax, word [ecx + 0x14]
push eax
movzx eax, word [ecx + 0x16]
push eax
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x12]
push eax
lea eax, [ebp - 0x4c]
push str._d._d._d._d
push eax
call fcn.0041cd80
add esp, 0x18
cmp word [ebp - 0x4c], 0
jne 0x41b8cf
xor ecx, ecx
jmp 0x41b8e4
lea ecx, [ebp - 0x4c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b8d5
sub ecx, edx
sar ecx, 1
push ecx
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x58]
call fcn.00404c00
push edi
call fcn.004366b8
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret
mov eax, 0xe
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00436666
mov esp, ebp
pop ebp
ret
Function at 0x41b940
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x477070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x50]
mov dword [ebp - 0x4c], edx
mov ebx, ecx
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x41ba1e
push esi
push edi
call fcn.0043694b
mov esi, eax
add esp, 4
test esi, esi
je 0x41ba08
push esi
push edi
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x46826c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0x48]
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x12]
push eax
lea eax, [ebp - 0x44]
push str._d._d
push eax
call fcn.0041cd80
add esp, 0x10
cmp word [ebp - 0x44], 0
jne 0x41b9c8
xor ecx, ecx
jmp 0x41b9df
lea ecx, [ebp - 0x44]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b9d0
sub ecx, edx
sar ecx, 1
push ecx
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.00404c00
push esi
call fcn.004366b8
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret
pop esi
pop edi
mov eax, 0xe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00436666
mov esp, ebp
pop ebp
ret

Function at 0x41ba40
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x477070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x414]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x46ae34
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop esi
test eax, eax
je 0x41bac8
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x41bac8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret
Function at 0x41bae0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 4], 1
jne 0x41bb30
push 0xe
push 0
push str._ProgramFiles_
mov ecx, esi
call fcn.00401460
cmp eax, 0xffffffff
je 0x41bb58
push 0xe
push str._ProgramW6432_
push 0xe
push eax
mov ecx, esi
call fcn.004087f0
jmp 0x41bb06
push 0x13
push 0
push str._ProgramFiles_x86__
mov ecx, esi
call fcn.00401460
cmp eax, 0xffffffff
je 0x41bb58
push 0xe
push str._ProgramFiles_
push 0x13
push eax
mov ecx, esi
call fcn.004087f0
jmp 0x41bb30
cmp dword [esi + 0x14], 8
jb 0x41bb62
mov eax, dword [esi]
jmp 0x41bb64
mov eax, esi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
mov dword [ebp - 4], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043694b
mov edi, eax
add esp, 4
test edi, edi
je 0x41bbd8
cmp dword [esi + 0x14], 8
jb 0x41bb9b
mov eax, dword [esi]
jmp 0x41bb9d
mov eax, esi
push dword [ebp - 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [edi], 0
jne 0x41bbb2
xor ecx, ecx
jmp 0x41bbc6
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41bbb7
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.00404c00
push edi
call fcn.004366b8
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41bbe0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], edx
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41bcbe
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [ebp - 0xc], ecx
lea eax, [ecx - 1]
cmp eax, 0xffffe
ja 0x41bcab
lea eax, [ecx + 2]
push eax
mov dword [ebp - 8], eax
call fcn.0043694b
mov esi, eax
add esp, 4
test esi, esi
je 0x41bcab
push dword [ebp - 8]
push ebx
push esi
call fcn.00439c60
add esp, 0xc
lea eax, [ebp - 0x10]
push ebx
push eax
push dword [ebp - 0xc]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bc93
cmp byte [esi], 0xff
jne 0x41bc71
cmp byte [esi + 1], 0xfe
jne 0x41bc71
lea eax, [esi + 2]
push eax
jmp 0x41bc72
push esi
mov ecx, dword [ebp - 4]
call fcn.00403010
push esi
call fcn.004366b8
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 0xe
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ebx, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41bcd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov esi, eax
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x41bd91
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, 1
jbe 0x41bd85
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ebx, [edi + 2]
mov dword [ebp - 4], eax
push ebx
call fcn.0043694b
mov esi, eax
add esp, 4
test esi, esi
je 0x41bd79
push ebx
push 0
push esi
call fcn.00439c60
push edi
push dword [ebp - 4]
mov edx, edi
mov ecx, esi
call fcn.0041b670
add esp, 0x14
cmp byte [esi], 0
jne 0x41bd4f
xor ecx, ecx
jmp 0x41bd5d
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41bd54
sub ecx, edx
push ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.004066c0
push esi
call fcn.004366b8
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xe
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41bda0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov edi, eax
push 0xb
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x41be45
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, 1
jbe 0x41be39
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ebx, [esi + 2]
mov dword [ebp - 4], eax
push ebx
call fcn.0043694b
mov edi, eax
add esp, 4
test edi, edi
je 0x41be2d
push ebx
push 0
push edi
call fcn.00439c60
push esi
push dword [ebp - 4]
mov edx, esi
mov ecx, edi
call fcn.0041b670
mov ecx, dword [ebp + 8]
add esp, 0x14
push edi
call fcn.00403010
push edi
call fcn.004366b8
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
pop edi
mov eax, 0xe
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
pop edi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41be50
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [0x477070]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
test edi, edi
je 0x41c043
cmp word [edi], si
je 0x41c043
push edi
lea eax, [esp + 0x46c]
push 0x104
push eax
call fcn.0043efc6
add esp, 0xc
lea eax, [esp + 0x468]
push 0x46b088
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41bee0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.00436666
mov esp, ebp
pop ebp
ret
mov ecx, 0x46b08c
lea eax, [esp + 0x3c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41bf16
test dx, dx
je 0x41bf12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41bf16
add eax, 4
add ecx, 4
test dx, dx
jne 0x41bef0
xor eax, eax
jmp 0x41bf1b
sbb eax, eax
or eax, 1
test eax, eax
je 0x41bff1
mov ecx, 0x46b090
lea eax, [esp + 0x3c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41bf56
test dx, dx
je 0x41bf52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41bf56
add eax, 4
add ecx, 4
test dx, dx
jne 0x41bf30
xor eax, eax
jmp 0x41bf5b
sbb eax, eax
or eax, 1
test eax, eax
je 0x41bff1
push edi
lea eax, [esp + 0x264]
push 0x104
push eax
call fcn.0043efc6
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [esp + 0x10], 0x10
je 0x41bfc3
lea ecx, [esp + 0x260]
call fcn.0041be50
mov esi, eax
test esi, esi
je 0x41bff1
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.00436666
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41c00d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x41c016
cmp esi, 0x12
jne 0x41bee0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
cmp esi, 0x12
cmove esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.00436666
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x674]
mov eax, 3
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00436666
mov esp, ebp
pop ebp
ret
Function at 0x41c060
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x477070]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x41c0bb
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x10], 0
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret

Function at 0x41c0f0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x477070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41c12d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0x80040002
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x41c176
xor esi, esi
jmp 0x41c17e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41c18c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00436666
mov esp, ebp
pop ebp
ret
Function at 0x41c680
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x477070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
mov edi, edx
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x41c6d5
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret
push esi
push 0x104
push edi
call fcn.0043efc6
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
call fcn.00436666
mov esp, ebp
pop ebp
ret

Function at 0x41c700
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x477070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov bl, 1
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x41c75d
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0043efc6
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
setne bl
test bl, bl
je 0x41c7ab
push esi
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov esi, eax
test esi, esi
je 0x41c7ab
movzx eax, word [esi]
test ax, ax
je 0x41c7ab
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathGetCharTypeW]
nop dword [eax]
test bl, bl
je 0x41c798
push eax
call edi
test al, 0xb
movzx eax, word [esi + 2]
setne bl
add esi, 2
test ax, ax
jne 0x41c780
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00436666
mov esp, ebp
pop ebp
ret
Function at 0x41c7c0
Capabilities:
Get file size
Move file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x477070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov byte [ebp - 0x20d], 0
push ebx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x220], ebx
xor esi, esi
push 0x104
push eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x21c], esi
call fcn.0043efc6
push str..bak
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0043f02a
add esp, 0x18
push esi
push esi
push 4
push esi
push esi
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41c955
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x300000
jbe 0x41c90f
cmp edi, 0xffffffff
jae 0x41c90f
push esi
push esi
push 4
push esi
push esi
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x218], eax
cmp eax, 0xffffffff
je 0x41c917
push esi
push esi
lea eax, [edi - 0x300000]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x8000
call fcn.0043694b
add esp, 4
mov edi, eax
push 0
lea eax, [ebp - 0x214]
push eax
push 0x8000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c8da
push 0
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x214]
push edi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41c8e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x41c8ef
cmp dword [ebp - 0x214], 0
ja 0x41c8a0
push edi
call fcn.004366b8
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
mov byte [ebp - 0x20d], 1
push dword [ebp - 0x218]
call edi
jmp 0x41c91d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
cmp byte [ebp - 0x20d], 0
pop edi
je 0x41c943
test esi, esi
jne 0x41c943
push 1
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00436666
mov esp, ebp
pop ebp
ret
Function at 0x41c970
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456d2c
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x477070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x479c28]
cmp eax, dword [ecx + 4]
jle 0x41c9f5
push 0x479c28
call fcn.00436dad
add esp, 4
cmp dword [0x479c28], 0xffffffff
jne 0x41c9f5
push ecx
push str.advapi32.dll
mov ecx, 0x479c30
mov dword [ebp - 4], 0
call fcn.00409270
push 0x458e70
call fcn.00436936
push 0x479c28
mov dword [ebp - 4], 0xffffffff
call fcn.00436d6e
add esp, 8
mov eax, dword [0x479c14]
test eax, eax
jne 0x41ca39
push str.RegDeleteKeyExW
mov ecx, 0x479c30
call fcn.00409390
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x479c14], eax
test eax, eax
jne 0x41ca39
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0x20106
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41ca60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x477070]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00439c60
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx eax, word [ebp - 0xc]
push 0
push 0
push 0xa
push eax
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push str.Checking_if_OS__d._d_SP_d_is_greater_equal_than__d._d_SP_d
push 0x4656cc
push 0x477a14
call fcn.00433950
mov eax, dword [ebp - 0x11c]
add esp, 0x24
cmp eax, 0xa
jbe 0x41cae9
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret
jne 0x41cb01
mov eax, dword [ebp - 0x118]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret
Function at 0x41cb20
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x477070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov dword [ebp - 0x2c], ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, eax
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x41cbdc
cmp dword [ebp - 0x24], 1
je 0x41cbb4
call esi
sub eax, ebx
cmp eax, 0x7530
ja 0x41cb8c
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 0x24], 1
jne 0x41cb46
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret
push str.Service_stopping_timeout_
push 0x4662f8
push 0x477a14
call fcn.00433950
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret
push str.Service_stopped_successfuly_
push 0x4656cc
push 0x477a14
call fcn.00433950
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_while_getting_service_status:__d
push 0x4662f8
push 0x477a14
call fcn.00433950
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00436666
mov esp, ebp
pop ebp
ret