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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x448010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x444]
xor edi, edi
push eax
push 0x20119
push edi
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov dword [ebp - 0x444], edi
mov dword [ebp - 0x440], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d46a
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x43c], edi
push eax
push edi
push edi
push str.CurrentMajorVersionNumber
push dword [ebp - 0x444]
mov dword [ebp - 0x448], edi
mov dword [ebp - 0x450], 4
call esi
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x448]
push eax
push edi
push edi
push str.CurrentMinorVersionNumber
push dword [ebp - 0x444]
call esi
mov ecx, dword [ebp - 0x43c]
test ecx, ecx
jne 0x41d3a7
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x44c], 0x20
push eax
lea eax, [ebp - 0x24]
push eax
push edi
push edi
push str.CurrentVersion
push dword [ebp - 0x444]
call esi
lea ecx, [ebp - 0x24]
call fcn.0040153f
cmp eax, 3
jne 0x41d3a1
movzx ecx, word [ebp - 0x24]
movzx eax, word [ebp - 0x20]
sub ecx, 0x30
sub eax, 0x30
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 0x448], eax
jmp 0x41d3a7
mov ecx, dword [ebp - 0x43c]
mov eax, dword [ebp - 0x448]
mov dword [0x449bac], eax
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x438]
mov dword [0x449ba8], ecx
push eax
push edi
push edi
push str.CurrentBuildNumber
push dword [ebp - 0x444]
mov dword [ebp - 0x454], 0x208
call esi
test eax, eax
jne 0x41d403
or dword [ebp - 0x44c], 0xffffffff
lea edx, [ebp - 0x44c]
push 0xa
lea ecx, [ebp - 0x438]
call fcn.0040145e
pop ecx
mov dword [0x449bb0], eax
lea eax, [ebp - 0x458]
mov dword [ebp - 0x458], 0x208
push eax
lea eax, [ebp - 0x230]
push eax
push edi
push edi
push str.CSDVersion
push dword [ebp - 0x444]
call esi
test eax, eax
jne 0x41d45b
push ecx
lea edx, [ebp - 0x230]
mov ecx, 0x449bb8
call fcn.004012bf
pop ecx
lea ecx, [ebp - 0x230]
call fcn.0040153f
movzx eax, word [ebp + eax*2 - 0x232]
sub eax, 0x30
mov dword [0x449bb4], eax
call fcn.00422d6f
mov byte [0x449cbd], al
call fcn.0041d48e
cmp dword [ebp - 0x444], edi
je 0x41d47e
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004246ea
mov esp, ebp
pop ebp
ret
Function at 0x41e469
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
mov dword [esp + 0x10], ebp
cmp ebp, 0xffffffff
je 0x41e4a5
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41e4b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x41e5b7
lea eax, [edi + 1]
push 0x43a4f1
push eax
call fcn.00424bbb
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41e4d0
push 8
pop ebx
jmp 0x41e5b0
push ebx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41e4f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x41e5b0
mov ebp, dword [esp + 0x20]
mov ecx, ebp
call fcn.00404fb9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41e5ac
mov edi, dword [esp + 0x1c]
mov ecx, edi
push str.utf_8
mov byte [eax + esi], bl
call fcn.0040b9f8
test eax, eax
jne 0x41e529
push 0xfde9
jmp 0x41e5a2
push str.utf_16
mov ecx, edi
call fcn.0040b9f8
test eax, eax
jne 0x41e556
mov edi, dword [esp + 0x18]
shr edi, 1
call fcn.0040522e
push eax
push edi
push esi
lea ecx, [esp + 0x2c]
call fcn.0040a186
lea eax, [esp + 0x20]
jmp 0x41e58b
push str.ISO_8859_1
mov ecx, edi
call fcn.0040b9f8
test eax, eax
jne 0x41e56d
push 0x6faf
jmp 0x41e5a2
push str.US_ASCII
mov ecx, edi
call fcn.0040b9f8
test eax, eax
jne 0x41e5a1
push dword [esp + 0x18]
lea ecx, [esp + 0x24]
push esi
call fcn.0041fffe
push eax
mov ecx, ebp
call fcn.00409e7f
mov ecx, dword [esp + 0x20]
lea ecx, [ecx - 0x10]
call fcn.004052ff
jmp 0x41e5ac
push ebx
mov edx, ebp
mov ecx, esi
call fcn.0041a487
pop ecx
mov ebp, dword [esp + 0x10]
push esi
call fcn.00424704
pop ecx
test ebp, ebp
je 0x41e5c2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret 0xc

Function at 0x41e96f
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov ebx, ecx
mov ecx, edi
call fcn.0041ffc0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov byte [ebx + 0x10], 1
cmp byte [ebx + 0x40], cl
mov ebp, eax
cmovne ecx, ebp
mov dword [esp + 0x24], ecx
call fcn.0040522e
push eax
lea ecx, [esp + 0x18]
call fcn.004028b4
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x2c]
call fcn.0041e8d0
mov byte [ebx + 0x10], 0
mov esi, eax
test ebp, ebp
je 0x41e9e9
cmp dword [esp + 0x24], ebp
mov eax, 0x2ee2
cmovne esi, eax
test esi, esi
jne 0x41e9ff
mov esi, dword [ebx + 4]
cmp esi, dword [edi]
je 0x41e9fd
mov ecx, edi
call fcn.0041ffc0
mov dword [edi], esi
xor esi, esi
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004052ff
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x41ea17
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
push dword [edi + 0x64]
lea ebx, [edi + 0x38]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebp, dword [esp + 0x20]
push ebp
push dword [esp + 0x20]
mov byte [edi + 0x41], 0
push dword [esp + 0x20]
mov dword [edi + 0x34], 3
push dword [esp + 0x20]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x41eaa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41eaa5
jmp 0x41ea8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41ea93
push ebx
lea ecx, [edi + 0xc]
call fcn.00423134
lea ecx, [edi + 0xc]
call fcn.0042311d
test al, al
jne 0x41eaac
push 0xa
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x41ea61
cmp dword [edi + 0x30], 0
mov eax, dword [edi + 0x2c]
je 0x41eaa5
test eax, eax
jle 0x41eaa3
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov eax, 0xe0000008
jmp 0x41eaa5

Function at 0x41eab3
Capabilities:
Query remote server for available data

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
push dword [edi + 0x64]
lea ebx, [edi + 0x38]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebp, dword [esp + 0x18]
xor eax, eax
push eax
push eax
push ebp
push dword [esp + 0x20]
mov byte [edi + 0x41], al
mov dword [edi + 0x34], 8
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x41eb3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41eb3c
jmp 0x41eb25
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41eb2a
push ebx
lea ecx, [edi + 0xc]
call fcn.00423134
lea ecx, [edi + 0xc]
call fcn.0042311d
test al, al
jne 0x41eb43
push 0xa
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x41eaf8
cmp dword [edi + 0x30], 0
mov eax, dword [edi + 0x2c]
je 0x41eb3c
test eax, eax
jle 0x41eb3a
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, 0xe0000008
jmp 0x41eb3c
Function at 0x41ed96
Capabilities:
Connect network resource

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x24], esi
call fcn.0040522e
push eax
lea ecx, [esp + 0x1c]
call fcn.004028b4
call fcn.0040522e
push eax
lea ecx, [esp + 0x18]
call fcn.004028b4
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x60]
mov ebx, dword [esp + 0x60]
xor ebp, ebp
mov edi, ebp
call fcn.0040ad8c
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x41ede1
mov eax, dword [ecx]
call dword [eax]
mov esi, dword [esp + 0x60]
test ebx, ebx
je 0x41ee34
push 0x20
lea eax, [esp + 0x34]
push ebp
push eax
call fcn.00425780
xor eax, eax
mov dword [esp + 0x4c], ebp
inc eax
add esp, 0xc
mov dword [esp + 0x34], eax
cmp dword [esi - 4], eax
jle 0x41ee19
push dword [esi - 0xc]
lea ecx, [esp + 0x64]
call fcn.00404d3d
mov esi, dword [esp + 0x60]
push ebp
push ebx
push dword [esp + 0x6c]
lea eax, [esp + 0x3c]
mov dword [esp + 0x50], esi
push eax
mov dword [esp + 0x5c], ebp
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov edi, eax
test edi, edi
jne 0x41ee54
push dword [esp + 0x6c]
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x2c]
call fcn.0040b343
mov edi, eax
pop ecx
test edi, edi
je 0x41ef15
cmp edi, 0x52e
je 0x41ee6d
cmp edi, 0x56
je 0x41ee6d
cmp edi, 0x89a
jne 0x41ef21
push str.Local_Network_Server
lea ecx, [esp + 0x24]
call fcn.00404f61
call fcn.0040522e
push eax
lea ecx, [esp + 0x20]
call fcn.004028b4
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
push ebp
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x6c]
push ebp
call fcn.0041fe6a
mov ecx, dword [esp + 0x1c]
mov bl, al
neg bl
sbb bl, bl
add ecx, 0xfffffff0
call fcn.004052ff
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.004052ff
add bl, 1
jne 0x41ef1d
mov ebx, dword [esp + 0x18]
cmp dword [ebx - 4], 1
jle 0x41eeea
push dword [ebx - 0xc]
lea ecx, [esp + 0x1c]
call fcn.00404d3d
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], eax
cmp dword [eax - 4], 1
jle 0x41ede5
push dword [eax - 0xc]
lea ecx, [esp + 0x18]
call fcn.00404d3d
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], eax
jmp 0x41ede5
mov eax, dword [esp + 0x68]
mov dword [eax], ebp
jmp 0x41ef1f
mov ebp, edi
mov edi, ebp
lea ecx, [esi - 0x10]
call fcn.004052ff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004052ff
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004052ff
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x18
Function at 0x41fb0a
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00425780
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
push ecx
push 0
push 0
push dword [eax]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x41fb46
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41fb50
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x4200dd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x448010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0xc
push 0
push eax
call fcn.00425780
add esp, 0xc
lea eax, [ebp - 0x18]
push 0
push eax
push 0xa
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
jne 0x42011d
xor al, al
jmp 0x420153
cmp dword [ebp - 0x18], 0xa
jne 0x420119
push ebx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.00404f61
push str._aiu_
lea ecx, [ebp - 0x14]
call fcn.0040a0e8
mov ecx, dword [ebp - 0x14]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.004052ff
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004246ea
mov esp, ebp
pop ebp
ret 8

Function at 0x420163
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x448010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push 6
push 0
push eax
call fcn.00425780
add esp, 0xc
lea eax, [ebp - 0x14]
push 0
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
jne 0x4201a3
xor al, al
jmp 0x4201d9
cmp dword [ebp - 0x14], 5
jne 0x42019f
push ebx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040aa4a
push str._aiu_
lea ecx, [ebp - 0x10]
call fcn.0040a0e8
mov ecx, dword [ebp - 0x10]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.004052ff
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004246ea
mov esp, ebp
pop ebp
ret 8
Function at 0x420430
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
mov edx, dword [0x448e14]
push ebx
push ebp
mov ebp, ecx
push esi
push ecx
lea ebx, [ebp + 4]
mov ecx, dword [ebx]
call fcn.00410f54
mov ecx, ebx
call fcn.0040f7a9
mov eax, dword [ebp + 0x28]
push dword [eax]
push dword [ebx]
call dword [sym.imp.USER32.dll_SetWindowTextW]
call fcn.0040522e
push eax
lea ecx, [esp + 0x10]
call fcn.004028b4
push 0xdc
lea ecx, [esp + 0x10]
call fcn.00404cca
push 0x40a
push dword [ebx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [esp + 0xc]
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebx]
lea ecx, [ebp + 0x40]
call fcn.00422cc1
push dword [ebx]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [esp + 0x10]
push eax
xor eax, eax
push eax
push ebp
push 0x4204cf
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esi - 0x10]
mov dword [ebp + 0x30], eax
call fcn.004052ff
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
pop ecx
ret 0x10

Function at 0x420976
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push esi
push 0x420a41
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x4209ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4209cf
cmp byte [ebp + 0x10], 0
je 0x4209cd
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp + 0x10]
jmp 0x4209cf
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x4213ae
Capabilities:
Check os version

Disassembly:
sub esp, 0x148
mov eax, dword [0x448010]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x15c]
lea eax, [esp + 0x10]
push 0x30
pop esi
push esi
xor ebp, ebp
mov ebx, ecx
push ebp
push eax
call fcn.00425780
push 0x110
lea eax, [esp + 0x54]
mov dword [esp + 0x50], 0x114
push ebp
push eax
call fcn.00425780
add esp, 0x18
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x421411
cmp dword [esp + 0x44], 6
jae 0x421414
push 0x2c
pop esi
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebp
call dword [sym.imp.USER32.dll_GetParent]
or dword [esp + 0x14], 1
mov dword [esp + 0x18], eax
mov eax, dword [0x448e14]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x10]
push eax
push ebp
push 0x432
push dword [ebx]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x48], ebp
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004246ea
add esp, 0x148
ret 0x10
Function at 0x4220c3
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
lea eax, [ecx - 0x20]
neg esi
sbb esi, esi
and esi, eax
cmp byte [ecx + 0x1c], 0
je 0x422105
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esp + 0xc], 2
jne 0x4220f5
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x42210c
cmp dword [esp + 0xc], 0
jne 0x422105
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 1
je 0x422123
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
lea ecx, [esi + 0x20]
push eax
call fcn.00422129
xor eax, eax
pop esi
ret 0x10

Function at 0x422a8d
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x448010]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
and dword [ebp - 0x18], 0
push ebx
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x422b09
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
xor ecx, ecx
mov dword [ebp - 8], 2
push ecx
push ecx
push ecx
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push ecx
push dword [ebp - 0x1c]
inc ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x422b09
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x422b0b
xor bl, bl
cmp dword [ebp - 0x1c], 0
je 0x422b1a
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004246ea
mov esp, ebp
pop ebp
ret
Function at 0x423621
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
cmp byte [edi + 0x2a], 0
jne 0x42363e
cmp word [edi + 0x1a], bp
jbe 0x42368b
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
call fcn.0041a75b
mov esi, eax
test esi, esi
je 0x423662
push ecx
push esi
push ecx
mov ecx, edi
call fcn.004239bb
mov eax, esi
jmp 0x42377f
lea esi, [edi + 0x2c]
push esi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x42367f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x423651
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
je 0x423675
lea eax, [edi + 0x1a]
cmp word [eax], bp
jbe 0x4236bd
lea ecx, [esp + 0x18]
push ecx
push eax
call ebx
test eax, eax
je 0x423675
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
js 0x4236bd
mov eax, 0xe0000013
jmp 0x42377f
mov ebp, dword [esp + 0x2c]
mov ecx, dword [ebp]
sub ecx, 0x10
call fcn.0040ab13
add eax, 0x10
lea ecx, [esp + 0x2c]
push str..part
mov dword [esp + 0x30], eax
call fcn.004028da
push 0
xor dl, dl
lea ecx, [esp + 0x30]
call fcn.0040b60a
mov esi, dword [esp + 0x30]
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x42375e
cmp byte [edi + 0x18], 0
je 0x42371a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42371a
lea eax, [esp + 0x2c]
push eax
call fcn.00423814
mov ebx, eax
test ebx, ebx
jne 0x42375e
push 2
pop ecx
xor eax, eax
cmp byte [edi + 0x3c], al
cmovne eax, ecx
push eax
mov eax, dword [esp + 0x2c]
push 0
push edi
push 0x423789
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x423756
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x42376a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ecx
push ebx
push ecx
mov ecx, edi
call fcn.004239bb
jmp 0x423775
push ecx
push ecx
mov ecx, edi
call fcn.00423998
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.004052ff
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x9b29b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x9c704c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
xor ebx, ebx
cmp edi, ebx
je 0x9b2ac3
cmp esi, ebx
je 0x9b2ac3
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x9b29e0
sub eax, edx
sar eax, 1
je 0x9b2ac3
push 0x206
lea ecx, [esp + 0xe]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x14], ax
call fcn.009b8ef0
add esp, 0xc
cmp dword [esp + 0x218], ebx
jne 0x9b2a4a
cmp dword [0x9c8070], 3
jne 0x9b2a4a
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [0x9c3020]
push 0x9c4c5c
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.009b53d5
add esp, 0xc
jmp 0x9b2a5a
lea edx, [esp + 8]
push edx
push 0x104
call dword [0x9c308c]
push esi
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.009b53d5
push 0x9c4c60
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
call fcn.009b5727
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, ebx
je 0x9b2ac3
push eax
push 1
push 0x200
push edi
call fcn.009b5a1a
mov eax, dword [esp + 0x14]
push eax
call fcn.009b5aae
add esp, 0x14
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.009b53c6
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.009b53c6
add esp, 0x210
ret

Function at 0x9b2b80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x9c704c]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0xe]
xor eax, eax
push edi
push ecx
mov word [esp + 0x14], ax
call fcn.009b8ef0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x9b2c32
lea edx, [esp + 8]
push edx
push 0x104
call dword [0x9c308c]
push 0x9c4c80
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.009b53d5
push 0x9c4c9c
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.009b5727
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x9b2c17
push eax
push 1
push 0x200
push esi
call fcn.009b5c8c
mov eax, dword [esp + 0x14]
push eax
call fcn.009b5aae
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.009b53c6
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
mov eax, edi
pop edi
xor ecx, esp
call fcn.009b53c6
add esp, 0x210
ret
Function at 0x9b3e10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x9c5320
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.009b5727
add esp, 0xc
test eax, eax
je 0x9b3e34
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.009b627e
mov eax, dword [esp + 0x1c]
push eax
call fcn.009b64a0
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov edi, eax
call fcn.009b627e
mov edx, dword [esp + 0x38]
lea ebp, [edi + edx]
push ebp
call fcn.009b609c
mov esi, eax
mov eax, dword [esp + 0x30]
push eax
push 1
push edi
push esi
call fcn.009b5a1a
mov ecx, dword [esp + 0x40]
push ecx
call fcn.009b5aae
mov eax, dword [esp + 0x50]
lea ebx, [esi + edi]
call fcn.009b3ef0
mov edx, dword [esp + 0x4c]
push 0x9c5328
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.009b5727
add esp, 0x40
test eax, eax
je 0x9b3eb5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x10]
push ecx
push 1
push ebp
push esi
call fcn.009b5c8c
mov edx, dword [esp + 0x20]
push edx
call fcn.009b5aae
add esp, 0x14
test esi, esi
je 0x9b3edd
push esi
call fcn.009b6166
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret