joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020f0
Capabilities:
Delete service
Print debug messages
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
push str.Enter_UnloadDriver:
mov edi, eax
call esi
push edi
call esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
jne 0x402138
push str.OpenSCManager___Faild___n
call esi
push str.Leave_UnloadDriver
xor ebx, ebx
call esi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x1c
ret
push str.OpenSCManager___ok____n
call esi
push 0xf01ff
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x40215d
push str.OpenService___Faild____n
call esi
xor ebx, ebx
jmp 0x4021a2
push str.OpenService___ok____n
call esi
lea eax, [esp + 0x10]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40217d
push str.Failed_to_stop_service._n
jmp 0x402182
push str.ControlService___ok___n
call esi
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x402196
push str.DeleteSrevice___Faild___n
jmp 0x40219b
push str.DelServer:DeleteSrevice___ok___n
call esi
mov ebx, 1
test edi, edi
je 0x4021ad
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str.Leave_UnloadDriver
call esi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x1c
ret

Function at 0x4021d0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
xor eax, eax
push str.kernel32.dll
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x402275
push str.Failed_to_get_kernel32.dll_handle_n
call fcn.0040486a
add esp, 4
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x18]
movzx ecx, word [esp]
push eax
push ecx
push str.Current_OS_is__d_ProcessorType:__d_n
call fcn.0040486a
mov eax, dword [esp + 0xc]
add esp, 0xc
cmp ax, 6
je 0x402294
cmp ax, 9
je 0x402294
cmp ax, 7
je 0x402294
mov eax, dword [esp + 0x18]
cmp eax, 0x898
je 0x402294
cmp eax, 0x21d8
je 0x402294
push str.Current_OS_is_not_64bit._n
call fcn.0040486a
add esp, 4
xor eax, eax
add esp, 0x24
ret
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40228c
push str.Failed_to_get_GetNativeSystemInfo_n
jmp 0x402211
lea ecx, [esp]
push ecx
call eax
jmp 0x402223
push str.Current_OS_is_64bit._n
call fcn.0040486a
add esp, 4
mov eax, 1
add esp, 0x24
ret
Function at 0x4022b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x30
mov eax, dword [0x4197b8]
xor eax, esp
mov dword [esp + 0x2c], eax
xor eax, eax
push esi
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov word [esp + 0x2d], ax
mov byte [esp + 0x2f], al
mov dword [esp + 4], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov byte [esp + 0x24], 0
mov dword [esp + 0x1c], 0x20
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x40237f
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.CurrentBuild
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x40237f
lea edx, [esp + 0x10]
push str.10240
push edx
call fcn.0040480c
add esp, 8
test eax, eax
jne 0x40237a
lea eax, [esp + 0x10]
push str.10586
push eax
call fcn.0040480c
add esp, 8
test eax, eax
jne 0x40237a
xor esi, esi
jmp 0x40237f
mov esi, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x40238e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004043be
add esp, 0x30
ret
Function at 0x403a20
Capabilities:
Unmount volume via ioctl

Disassembly:
sub esp, 0x20
mov eax, dword [0x4197b8]
xor eax, esp
mov dword [esp + 0x1c], eax
mov ecx, dword [str.._:]
mov edx, dword [0x416cc8]
mov ax, word [esp + 0x24]
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push 0x20000000
mov dword [esp + 0x20], ecx
mov ecx, dword [0x416ccc]
push 3
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x416cd4]
push ebp
mov dword [esp + 0x2c], edx
mov dx, word [0x416cd0]
push 3
mov dword [esp + 0x24], ecx
mov word [esp + 0x34], ax
mov word [esp + 0x24], ax
mov word [esp + 0x38], dx
mov edx, dword [0x416cd8]
push 0xc0000000
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, eax
test esi, esi
je 0x403aac
cmp esi, 0xffffffff
jne 0x403ab6
mov ebp, 0x23
jmp 0x403b48
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0
lea ecx, [esp + 0x18]
push ecx
push 5
push 0x80
call ebx
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
push 0
push 0x90018
push esi
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push 0
push 0x8000e010
push esi
call edi
test eax, eax
jne 0x403b06
mov ebp, 0x101101e
jmp 0x403b47
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
push 0
push 0x90020
push esi
call edi
push 0
lea edx, [esp + 0x28]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
jne 0x403b37
mov ebp, 0x111101e
jmp 0x403b47
push 0
lea eax, [esp + 0x18]
push eax
push 5
push 0x80
call ebx
pop ebx
test esi, esi
je 0x403b6f
cmp esi, 0xffffffff
je 0x403b6f
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push 0
push 0x9001c
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.004043be
add esp, 0x20
ret

Function at 0x403b90
Capabilities:
Get disk information

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
xor edi, edi
mov esi, 1
mov ecx, edi
shl esi, cl
test ebx, esi
je 0x403bbb
lea ecx, [edi + 0x41]
call fcn.00403950
test eax, eax
je 0x403bbb
or ebp, esi
add edi, 1
cmp edi, 0x1a
jb 0x403ba0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x403bd0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x18
xor eax, eax
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
push eax
push 0x28
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
test esi, esi
je 0x403c57
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov esi, eax
test esi, esi
je 0x403c57
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, eax
test esi, esi
je 0x403c57
mov esi, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x403c66
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x18
ret

Function at 0x403c70
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4197b8]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push edi
push 0x228
lea eax, [esp + 0x10]
push 0
push eax
mov edi, 0xfffffffe
call fcn.004089f0
add esp, 0xc
push 0
push 2
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x403d05
push ebx
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.KERNEL32.dll_Process32FirstW
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea esp, [esp]
lea edx, [esp + 0x30]
push edx
push str.explorer.exe
call ebx
test eax, eax
je 0x403cf9
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0x22c
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x403cd0
jmp 0x403cfd
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004043be
add esp, 0x230
ret
Function at 0x4043be
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4197b8]
jne 0x4043c8
repz ret
jmp fcn.004060f4

Function at 0x40922c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x419a68]
je 0x409247
inc edi
cmp edi, 0x17
jb 0x409238
cmp edi, 0x17
jae 0x4093c7
push ebp
push 3
call fcn.0040f6f7
cmp eax, 1
pop ecx
je 0x409393
push 3
call fcn.0040f6f7
test eax, eax
pop ecx
jne 0x40927b
cmp dword [0x419024], 1
je 0x409393
cmp ebx, 0xfc
je 0x4093c6
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x41a780
push ebp
call fcn.0040800a
add esp, 0xc
test eax, eax
je 0x4092b1
push esi
push esi
push esi
push esi
push esi
call fcn.00405c09
add esp, 0x14
push 0x104
mov esi, 0x41a799
push esi
push 0
mov byte [0x41a89d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4092f5
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040800a
add esp, 0xc
test eax, eax
je 0x4092f5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00405c09
add esp, 0x14
push esi
call fcn.00408070
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40933a
push esi
call fcn.00408070
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41aa94
push 0x4149f4
sub ecx, eax
push ecx
push eax
call 0x40a976
add esp, 0x14
test eax, eax
je 0x40933a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00405c09
add esp, 0x14
jmp 0x40933c
xor esi, esi
push 0x4149f0
push ebx
push ebp
call fcn.0040a8be
add esp, 0xc
test eax, eax
je 0x40935c
push esi
push esi
push esi
push esi
push esi
call fcn.00405c09
add esp, 0x14
push dword [edi*8 + 0x419a6c]
push ebx
push ebp
call fcn.0040a8be
add esp, 0xc
test eax, eax
je 0x40937e
push esi
push esi
push esi
push esi
push esi
call fcn.00405c09
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040f53a
add esp, 0xc
jmp 0x4093c6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4093c6
cmp ebp, 0xffffffff
je 0x4093c6
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x419a6c]
push dword [esi]
call fcn.00408070
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40f53a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00405670
xor ebx, ebx
cmp dword [0x41ad80], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40f610
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40f6f0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40f6f0
push eax
call fcn.00405602
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41ad80], eax
call esi
push eax
call fcn.00405602
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41ad84], eax
call esi
push eax
call fcn.00405602
mov dword [0x41ad88], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00408fb9
test eax, eax
pop ecx
pop ecx
je 0x40f5de
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405c09
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40f610
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00405602
cmp eax, ebx
pop ecx
mov dword [0x41ad90], eax
je 0x40f610
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405602
pop ecx
mov dword [0x41ad8c], eax
mov eax, dword [0x41ad8c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40f695
cmp dword [0x41ad90], ecx
je 0x40f695
push eax
call fcn.00405679
push dword [0x41ad90]
mov esi, eax
call fcn.00405679
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40f695
cmp edi, ebx
je 0x40f695
call esi
cmp eax, ebx
je 0x40f662
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f662
test byte [ebp - 0x18], 1
jne 0x40f695
lea eax, [ebp - 0x10]
push eax
call fcn.00408ff0
test eax, eax
pop ecx
je 0x40f67d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405c09
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40f68c
or dword [ebp + 0x10], 0x200000
jmp 0x40f6d0
or dword [ebp + 0x10], 0x40000
jmp 0x40f6d0
mov eax, dword [0x41ad84]
cmp eax, dword [ebp - 8]
je 0x40f6d0
push eax
call fcn.00405679
cmp eax, ebx
pop ecx
je 0x40f6d0
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40f6d0
mov eax, dword [0x41ad88]
cmp eax, dword [ebp - 8]
je 0x40f6d0
push eax
call fcn.00405679
cmp eax, ebx
pop ecx
je 0x40f6d0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41ad80]
call fcn.00405679
cmp eax, ebx
pop ecx
je 0x40f6f0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f6f2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x406720
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f9058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x2c]
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x30]
push edi
mov edi, dword [esi + 0x4c]
mov ebp, dword [esi + 0x50]
push eax
call fcn.004db023
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [0x5748d0]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0
push ecx
push edx
push eax
push esi
call fcn.0050b050
add esp, 0x10
test eax, eax
je 0x40688b
mov ecx, dword [0x5748d0]
mov dword [esp + 0x34], ecx
lea edx, [esp + 0x34]
mov ecx, esi
push edx
mov byte [esp + 0x30], 1
call fcn.004d8b65
mov eax, dword [0x5748d0]
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x10]
push edi
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 2
call fcn.004d3419
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], 3
call fcn.004dbd12
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004dbbcb
lea edx, [esp + 0xc]
lea ecx, [esp + 0x38]
push edx
call fcn.004dbff8
mov eax, dword [esp + 0x34]
mov eax, dword [eax - 8]
dec eax
cmp ebp, eax
jge 0x40682c
lea ecx, [esp + 0x10]
push ebp
push ecx
lea ecx, [esp + 0x3c]
call fcn.004d32e4
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], 4
call fcn.004dbff8
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004dbbcb
mov edx, dword [esp + 0x38]
mov ecx, esi
push edx
call fcn.004db1ab
mov ecx, esi
call fcn.004db359
mov eax, dword [esp + 0xc]
mov edx, dword [esi + 0x1c]
mov eax, dword [eax - 8]
add eax, edi
and eax, 0xffff
mov ecx, eax
shl ecx, 0x10
or ecx, eax
push ecx
push 0
push 0x142
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
mov ecx, esi
call fcn.004068c0
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 1
call fcn.004dbbcb
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 0
call fcn.004dbbcb
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004dbbcb
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 8

Function at 0x40bf00
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x40
push esi
mov esi, dword [esp + 0x48]
push edi
push eax
mov ecx, esi
call fcn.004e2ec2
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x40bf51
lea ecx, [esp + 8]
push 0x20
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 0x50]
lea eax, [esp + 8]
push edx
push eax
mov dword [esp + 0x58], 0
call fcn.004bfcf0
mov ecx, dword [esp + 0x5c]
add esp, 8
fstp dword [ecx]
pop edi
pop esi
add esp, 0x40
ret
mov edx, dword [esp + 0x54]
sub esp, 8
lea eax, [esp + 0x10]
fld dword [edx]
fstp qword [esp]
push str._.02f
push eax
call fcn.004bfc81
add esp, 0x10
lea ecx, [esp + 8]
push ecx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
pop esi
add esp, 0x40
ret
Function at 0x414240
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4fb11b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebp, [esi + 0x10]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [ebp], method.CCommandLineInfo.virtual_0
mov dword [ebp + 4], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
push 0xa
push ebx
mov ecx, ebp
mov byte [esp + 0x24], 1
mov dword [esi], method.CCommandLineInfo.virtual_0
call fcn.00429680
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x24], ebx
push 0x640
mov dword [esp + 0x20], 2
mov dword [esi], method.CCommandLineInfo.virtual_0
mov dword [esi + 0xc], 0x64
call fcn.004db904
mov edx, eax
add esp, 4
mov ecx, 0x190
xor eax, eax
mov edi, edx
push edx
rep stosd dword es:[edi], eax
push ebx
mov ecx, ebp
call fcn.004907e0
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x24]
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 4], 0x64
mov dword [esi + 0x28], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x3c], ecx
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x41bbd0
Capabilities:
Get file attributes

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [esi]
push edi
mov dword [esi + 0xb0], edi
call dword [eax + 0x18]
test eax, eax
jne 0x41bc2b
mov edx, dword [edi]
lea ecx, [esi + 0x38]
push ebx
push ecx
push edx
call fcn.0041beb0
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 8
push eax
call ebx
and eax, 1
mov dword [esi + 0x5c], eax
mov ecx, dword [edi + 4]
lea eax, [esi + 0x74]
push eax
push ecx
call fcn.0041beb0
mov edi, dword [edi + 4]
add esp, 8
push edi
call ebx
and eax, 1
pop ebx
mov dword [esi + 0x98], eax
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x41bcc0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4fb888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [esp + 0x4c]
push esi
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
mov eax, dword [ecx + eax*4 + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 1
lea ecx, [esp + 4]
mov dword [esi + 0x5c], eax
call fcn.0041b6d0
mov eax, dword [esi + 0x38]
lea ecx, [esp + 4]
push ecx
push eax
mov dword [esp + 0x50], 0
call fcn.0041beb0
mov eax, dword [esp + 0x2c]
add esp, 8
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41bd49
lea ecx, [esp + 4]
mov dword [esp + 0x48], 0xffffffff
call fcn.0041b760
xor eax, eax
pop esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret 4
mov esi, dword [esi + 0x58]
mov ecx, dword [esi - 8]
test ecx, ecx
je 0x41bd68
push esi
push eax
call fcn.004bf701
add esp, 8
test eax, eax
je 0x41bd68
mov esi, 1
jmp 0x41bd6a
xor esi, esi
lea ecx, [esp + 4]
mov dword [esp + 0x48], 0xffffffff
call fcn.0041b760
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x48
ret 4

Function at 0x41bd90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fb8e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push esi
push edi
mov edi, ecx
lea ecx, [esp + 8]
lea esi, [edi + 0x38]
push esi
call fcn.004db938
lea eax, [esi + 4]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x50], 0
call fcn.004db938
lea ecx, [esi + 8]
mov byte [esp + 0x4c], 1
push ecx
lea ecx, [esp + 0x14]
call fcn.004db938
lea edx, [esi + 0xc]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x50], 2
call fcn.004db938
lea eax, [esi + 0x10]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x50], 3
call fcn.004db938
lea ecx, [esi + 0x14]
mov byte [esp + 0x4c], 4
push ecx
lea ecx, [esp + 0x20]
call fcn.004db938
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 0x20]
mov byte [esp + 0x4c], 5
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.004db938
mov eax, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
mov cx, word [esi + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0x30]
lea eax, [esi + 0x34]
mov word [esp + 0x34], cx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x50], 6
mov dword [esp + 0x3c], edx
call fcn.004db938
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x40], ecx
add edi, 0x74
mov ecx, esi
push edi
mov dword [esp + 0x50], 7
call fcn.0041bfc0
lea edx, [esp + 8]
mov ecx, edi
push edx
call fcn.0041bfc0
lea ecx, [esp + 8]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0041b760
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x48
ret
Function at 0x41e8b0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4fbc10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebp
push edi
mov edi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.00417b40
mov eax, dword [0x5748d0]
mov dword [esp + 0x34], 0
mov dword [esp + 8], eax
lea ecx, [esp + 8]
mov byte [esp + 0x34], 1
push ecx
lea ecx, [esp + 0x10]
call fcn.00417bc0
mov ebp, eax
test ebp, ebp
jne 0x41e931
lea ecx, [esp + 8]
mov byte [esp + 0x34], al
call fcn.004dbbcb
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.00417ba0
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov ecx, dword [edi + 0xdc]
xor eax, eax
cmp ebp, ecx
jne 0x41e942
mov eax, 1
lea eax, [eax + eax*2]
push esi
push str.Patched
lea esi, [eax + eax*4]
shl esi, 2
lea ecx, [esi + edi + 0x48]
call fcn.004dbd62
mov edx, edi
lea ecx, [esi + edi + 0x40]
sub edx, esi
add edx, 0x7c
push edx
call fcn.004dbd12
lea ecx, [esi + edi + 0x44]
call fcn.004dbb53
lea ecx, [esi + edi + 0x38]
call fcn.004dbb53
mov dword [esi + edi + 0x68], 0xb
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax + 0x60]
mov edx, dword [ebp]
mov dword [ebp + 0x130], 1
mov eax, dword [esp + 0xc]
push 0
push eax
mov ecx, ebp
call dword [edx + 0x5c]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call fcn.0041ee10
test eax, eax
pop esi
mov byte [esp + 0x34], 0
lea ecx, [esp + 8]
jne 0x41e9f1
call fcn.004dbbcb
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.00417ba0
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
call fcn.004dbbcb
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.00417ba0
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret