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

Disassembly:
push 0xc
mov eax, 0x100aa229
call fcn.100a5688
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x14], edi
and dword [ebp - 0x18], 0
cmp byte [ebp + 0xc], 0
jne 0x100558a9
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.1008eb5d
add eax, 0x10
mov dword [edi], eax
jmp 0x10055915
call fcn.1008e9f3
push eax
lea ecx, [ebp - 0x10]
call fcn.10091a7b
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
and dword [ebp - 4], 0
push eax
call fcn.10091a7b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.10091a7b
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100558fe
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
jmp 0x10055900
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.1008eb5d
add eax, 0x10
lea ecx, [esi - 0x10]
mov dword [edi], eax
call fcn.1008ebf5
mov eax, edi
call fcn.100a5651
ret 0xc

Function at 0x1005597a
Capabilities:
Check if file exists

Disassembly:
push 0x24
mov eax, 0x100ae531
call fcn.100a5688
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.1006f4e2
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x100559d8
lea ecx, [ebp - 0x14]
call fcn.10030831
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.10091a7b
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.10091a7b
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100559ff
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0x10010f90
push ebx
push dword [esi + 4]
push eax
call fcn.1002e335
add esp, 0x14
jmp 0x10055a4e
push dword [ebp - 0x10]
mov ecx, esi
call fcn.10091a7b
push 5
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
jmp 0x10055a3d
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x10055a29
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
call fcn.100a5651
ret 4
Function at 0x10058a74
Capabilities:
Accept command line arguments

Disassembly:
push 0x28
mov eax, 0x100aeab3
call fcn.100a5688
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x28]
xor ebx, ebx
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
mov edi, 0x100216b4
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esi], 0x1001fe70
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov byte [esi + 0x14], bl
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
mov byte [esi + 0x24], bl
call fcn.1006f4e2
push edi
lea ecx, [esi + 0x2c]
mov dword [ebp - 4], ebx
call fcn.1006f4e2
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.10058a19
push eax
push dword [ebp + 0xc]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.10056143
cmp dword [ebp - 0x1c], ebx
je 0x10058af5
push dword [ebp - 0x1c]
call fcn.1009856f
pop ecx
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], 0xa
or dword [esi + 0x84], 0xffffffff
mov byte [esi + 0x70], bl
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x88], ebx
mov byte [ebp - 4], 6
cmp byte [0x100c6870], 1
jne 0x10058b4c
push ebx
push 3
call dword [sym.imp.msi.dll_MsiSetPropertyW]
mov byte [0x100c6870], bl
call dword [sym.imp.kernel32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x34]
call fcn.1002e7ee
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 7
mov edi, 0x102
call fcn.1002ebc5
test al, al
jne 0x10058b73
push 2
pop edi
push ebx
push edi
call dword [sym.imp.msi.dll_MsiSetPropertyW]
push ebx
push esi
push 0x932
push 0x10058cb0
call dword [sym.imp.msi.dll_MsiBeginTransactionW]
push esi
push 0x7fdf
push 0x10058c90
call dword [sym.imp.msi.dll_MsiSetInternalUI]
lea ecx, [ebp - 0x34]
mov dword [esi + 0x88], eax
call fcn.1002eb70
mov eax, esi
call fcn.100a5651
ret 0x14
Function at 0x1005a27b
Capabilities:
Acquire debug privileges

Disassembly:
push 0x14
mov eax, 0x100aed41
call fcn.100a5688
mov esi, ecx
call fcn.10091a7b
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], eax
push 0x10012ca8
call fcn.1006f4e2
mov ecx, esi
call fcn.1005a8be
mov ecx, dword [esi + 0x30]
mov edi, eax
mov ebx, dword [ecx + 0x20]
test ebx, ebx
jne 0x1005a2dd
push 0x10012c0c
lea ecx, [ebp - 0x10]
call fcn.1006f4e2
and dword [ebp - 4], ebx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.10091a7b
push 0x100c5504
lea eax, [ebp - 0x20]
push eax
call fcn.10091a7b
push 0
push 0
push dword [esi + 0x2c]
mov ecx, ebx
call dword [0x100d0614]
call ebx
mov ebx, eax
test ebx, ebx
je 0x1005a306
push ebx
push ecx
mov ecx, dword [esi + 0x34]
xor edx, edx
push 0x10012ccc
inc edx
call fcn.1003211a
mov byte [esi + 0x38], 1
test edi, edi
je 0x1005a322
push 0
push edi
mov ecx, esi
call fcn.10091a7b
push 0x10
push edi
call fcn.10091a7b
pop ecx
pop ecx
call fcn.10059c32
mov esi, dword [eax + 4]
test esi, esi
je 0x1005a33b
push dword [ebp - 0x14]
mov ecx, esi
call dword [0x100d0614]
call esi
mov eax, ebx
call fcn.100a5651
ret

Function at 0x1005adb2
Capabilities:
Query service status

Disassembly:
push 0x34
mov eax, 0x100aee4a
call fcn.100a56bc
mov edi, ecx
mov dword [ebp - 0x40], edi
xor ebx, ebx
call fcn.1008e9f3
push eax
lea ecx, [ebp - 0x38]
call fcn.10091a7b
push 5
pop esi
push esi
push 0x1000af44
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.advapi32.dll_OpenSCManagerW]
test eax, eax
je 0x1005ae59
push 4
push 0x10013340
push eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
mov edx, eax
test edx, edx
je 0x1005ae4b
push 9
pop ecx
xor eax, eax
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push ebx
push edx
call dword [sym.imp.advapi32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1005ae31
cmp dword [ebp - 0x30], 1
je 0x1005ae86
test byte [ebp - 0x2c], 1
jne 0x1005ae86
mov bl, 1
jmp 0x1005ae86
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea eax, [ebp - 0x38]
push 0x10013358
push eax
call fcn.10091a7b
mov edi, dword [ebp - 0x40]
jmp 0x1005ae6e
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 0x100133a0
jmp 0x1005ae65
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 0x100133d8
lea eax, [ebp - 0x38]
push eax
call fcn.10091a7b
mov eax, dword [edi]
add esp, 0xc
push dword [ebp - 0x38]
push esi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.1008ebf5
mov al, bl
call fcn.100a5666
ret
Function at 0x1005ae99
Capabilities:
Accept command line arguments

Disassembly:
push 0x24
mov eax, 0x100aee7f
call fcn.100a5688
mov dword [ebp - 0x18], edx
mov edi, ecx
cmp byte [0x100cfd78], 0
jne 0x1005b07a
call fcn.1005adb2
test al, al
je 0x1005b07a
push ecx
mov ecx, esp
push 0x100216b4
call fcn.1006f4e2
mov ebx, dword [ebp + 8]
push 0xd
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100d0614]
mov ecx, ebx
call esi
push 0x3c
pop esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.kernel32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x30]
call fcn.1002e7ee
and dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.1002ebc5
test al, al
jne 0x1005af14
mov esi, 0x258
mov dword [ebp - 0x10], esi
xor ebx, ebx
inc ebx
push esi
push 0x10013418
push 2
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.1002e335
add esp, 0x14
and dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
push 0
mov eax, dword [eax]
mov esi, dword [eax]
mov ecx, esi
call dword [0x100d0614]
mov ecx, dword [ebp + 8]
call esi
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
mov ecx, dword [ebp + 0x10]
mov al, byte [ecx + 4]
test al, al
jne 0x1005b050
mov ecx, edi
call fcn.1005adb2
test al, al
je 0x1005b036
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x10]
jl 0x1005af30
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100d0614]
mov ecx, dword [ebp + 0xc]
call esi
push 2
pop esi
cmp eax, esi
je 0x1005afdc
cmp eax, 5
mov eax, dword [edi]
je 0x1005afbc
push 0x100136f8
push esi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
mov esi, ebx
mov dword [ebp - 0x10], esi
jmp 0x1005af17
push 0x10013620
push esi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
mov byte [0x100cfd78], bl
jmp 0x1005b06e
push 0x10013554
lea ecx, [ebp - 0x14]
call fcn.1006f4e2
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], bl
call fcn.1006cf67
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov eax, dword [edi]
push 0x10013568
push esi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100d0614]
mov ecx, ebx
call esi
xor eax, eax
jmp 0x1005b06c
mov eax, dword [edi]
push 0x10013524
push 2
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
jmp 0x1005b06a
mov eax, dword [edi]
push 0x100134c0
push 2
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
xor bl, bl
mov al, bl
mov bl, al
lea ecx, [ebp - 0x30]
call fcn.1002eb70
mov al, bl
jmp 0x1005b07c
mov al, 1
call fcn.100a5651
ret 0xc
Function at 0x1005cbc0
Capabilities:
Modify service

Disassembly:
push 0x10
mov eax, 0x100af0e1
call fcn.100a5688
mov ebx, ecx
and dword [ebp - 0x14], 0
call fcn.1008e9f3
push eax
lea ecx, [ebp - 0x10]
call fcn.10091a7b
xor eax, eax
push 0xf003f
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.advapi32.dll_OpenSCManagerW]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x1005cc0c
push 0x1000ff04
lea ecx, [ebp - 0x18]
call fcn.1006f4e2
mov byte [ebp - 4], 1
jmp 0x1005cc7a
push 2
push dword [ebx + 0x10]
push eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1005cc32
push 0x1001404c
lea ecx, [ebp - 0x18]
call fcn.1006f4e2
mov byte [ebp - 4], 2
jmp 0x1005cc7a
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push eax
call dword [sym.imp.advapi32.dll_ChangeServiceConfigW]
test eax, eax
je 0x1005cc69
mov edi, dword [ebx + 0xc]
push 0x10014158
push 4
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
jmp 0x1005cc92
push 0x10013fa0
lea ecx, [ebp - 0x18]
call fcn.1006f4e2
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x10]
call fcn.10091a7b
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
push 0x100141f8
lea ecx, [ebp - 0x18]
call fcn.1006f4e2
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1005ca56
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
call fcn.100a5651
ret
Function at 0x10060cd0
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x100af8e8
call fcn.100a5688
push dword [ecx + 0xc]
lea ecx, [ebp - 0x10]
call fcn.1006f4e2
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
and dword [ebp - 4], 0
push dword [eax]
call fcn.1006f4e2
xor ebx, ebx
lea ecx, [ebp - 0x14]
inc ebx
mov byte [ebp - 4], bl
call fcn.1006e850
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.10091a7b
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10060d49
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.1008eb5d
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
call fcn.10091a7b
lea ecx, [esi - 0x10]
call fcn.1008ebf5
jmp 0x10060d53
mov ecx, dword [ebp + 0xc]
call fcn.1008e407
xor bl, bl
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.1008ebf5
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.1008ebf5
mov al, bl
call fcn.100a5651
ret 8
Function at 0x100614e8
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push 0x18
mov eax, 0x100afa44
call fcn.100a5688
xor eax, eax
push eax
push eax
push eax
push eax
push 0x10015710
mov bh, al
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
test eax, eax
je 0x10061689
push 0
push 0x50
lea ecx, [ebp + 0x4a]
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
lea ecx, [ebp - 0x24]
lea eax, [ebp + 0x1452]
push eax
call fcn.1006f4e2
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp + 0x450]
push eax
lea ecx, [ebp - 0x20]
call fcn.1006f4e2
push esi
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1006eb5a
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
test edi, edi
je 0x1006167e
push 0x100
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x1c]
push 0x10015750
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x1006167e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
setne bh
test bh, bh
je 0x1006167e
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
setne bh
test bh, bh
je 0x1006167e
push 0x32
xor bh, bh
call fcn.10091a7b
pop ecx
push 0
mov edi, eax
mov dword [ebp - 0x10], 0x32
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], edi
push eax
push edi
push 0
push 0x13
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
lea ecx, [ebp - 0x18]
push edi
setne bl
call fcn.1006f4e2
mov byte [ebp - 4], 5
test bl, bl
je 0x10061673
push 0
push 0x10015758
lea ecx, [ebp - 0x18]
call fcn.10091a7b
cmp eax, 0xffffffff
je 0x10061673
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x10], 0x32
rep stosd dword es:[edi], eax
push 0
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
mov edi, dword [ebp - 0x14]
push eax
push edi
push 0
push 1
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
lea ecx, [ebp - 0x14]
push edi
setne bl
call fcn.1006f4e2
test bl, bl
je 0x10061668
push 0
push 0x10015760
lea ecx, [ebp - 0x14]
call fcn.10091a7b
cmp eax, 0xffffffff
je 0x10061668
inc bh
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.1008ebf5
mov al, bh
call fcn.100a5651
ret 0x246c
Function at 0x100638c8
Capabilities:
Check os version
Shutdown system

Disassembly:
push 0x138
mov eax, 0x100afed5
call fcn.100a56bc
push 0x110
xor esi, esi
lea eax, [ebp - 0x130]
push esi
push eax
call fcn.10093d90
add esp, 0xc
mov dword [ebp - 0x134], 0x114
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.kernel32.dll_GetVersionExW]
push 2
pop ebx
test eax, eax
je 0x10063a16
cmp dword [ebp - 0x124], ebx
jne 0x10063a16
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x13c]
push ecx
push 0x28
push eax
call dword [sym.imp.advapi32.dll_OpenProcessToken]
xor edi, edi
inc edi
test eax, eax
je 0x10063984
lea eax, [ebp - 0x144]
push eax
push 0x10015be8
push esi
call dword [sym.imp.advapi32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x144]
push esi
push esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x140]
push esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp - 0x13c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.advapi32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x13c]
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x100216b4
lea ecx, [ebp - 0x138]
call fcn.1006f4e2
mov dword [ebp - 4], esi
cmp dword [ebp - 0x130], 5
ja 0x100639d7
jne 0x100639ab
cmp dword [ebp - 0x12c], 0
ja 0x100639d7
mov eax, dword [ebp - 0x138]
cmp dword [eax - 4], edi
jle 0x100639ca
push dword [eax - 0xc]
lea ecx, [ebp - 0x138]
call fcn.10091a7b
mov eax, dword [ebp - 0x138]
push edi
push esi
push esi
push eax
push esi
call dword [sym.imp.advapi32.dll_InitiateSystemShutdownW]
jmp 0x10063a06
mov eax, dword [ebp - 0x138]
cmp dword [eax - 4], edi
jle 0x100639f6
push dword [eax - 0xc]
lea ecx, [ebp - 0x138]
call fcn.10091a7b
mov eax, dword [ebp - 0x138]
push SysReAllocString
push edi
push esi
push esi
push eax
push esi
call dword [sym.imp.advapi32.dll_InitiateSystemShutdownExW]
mov ecx, dword [ebp - 0x138]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
jmp 0x10063a1e
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
call fcn.100a5666
ret
Function at 0x10063add
Capabilities:
Read file on windows

Disassembly:
push 0x34
mov eax, 0x100aff3d
call fcn.100a5688
mov edi, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
push ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], eax
call fcn.1006f4e2
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.10030aac
push ecx
push 0
push 0x80
push 3
push 1
push SysReAllocString
push dword [eax]
lea ecx, [ebp - 0x28]
call fcn.10091a7b
mov ecx, dword [ebp - 0x18]
mov esi, eax
add ecx, 0xfffffff0
call fcn.1008ebf5
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.1008ebf5
test esi, esi
jns 0x10063bc9
lea ecx, [ebp - 0x14]
call fcn.1008eab0
push ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.1006f4e2
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x14]
push 0x10015eb8
push eax
call fcn.10091a7b
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.1002e190
mov edx, dword [edi]
lea ecx, [ebp - 0x14]
call fcn.1006e4b8
mov esi, dword [edx + 4]
mov ecx, esi
push eax
push 0
call dword [0x100d0614]
mov ecx, edi
call esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
call fcn.10091a7b
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x1c]
call fcn.10091a7b
push 0x100c55f0
lea eax, [ebp - 0x1c]
push eax
call fcn.10091a7b
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
and dword [ebp - 0x20], 0
push 0
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x10063bec
call fcn.1008e258
cmp byte [ebp - 0x10], 0xff
jne 0x10063c09
cmp byte [ebp - 0xf], 0xfe
jne 0x10063c09
test esi, esi
je 0x10063c03
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
call fcn.100a5651
ret
lea ecx, [ebp - 0x14]
call fcn.1008eab0
push ebx
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push 0x10015f08
push eax
call fcn.10091a7b
mov edx, dword [edi]
lea ecx, [ebp - 0x14]
add esp, 0xc
call fcn.1006e4b8
mov esi, dword [edx + 4]
mov ecx, esi
push eax
push 0
call dword [0x100d0614]
mov ecx, edi
call esi
push 0x100093a4
lea ecx, [ebp - 0x18]
call fcn.1006f4e2
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x34]
call fcn.10033056
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.1002e190
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x40]
call fcn.100352a0
push 0x100c575c
lea eax, [ebp - 0x40]
jmp 0x10063bc3
Function at 0x1006405b
Capabilities:
Accept command line arguments

Disassembly:
push 0x28
mov eax, 0x100b0056
call fcn.100a5688
mov esi, edx
mov edi, ecx
lea ecx, [ebp - 0x14]
call fcn.100308bd
and dword [ebp - 4], 0
lea edx, [ebp - 0x14]
push 0x10016258
lea ecx, [ebp - 0x1c]
call fcn.1006eafe
push 0x10016208
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.1006eafe
push 0x100161a8
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.1006eafe
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov eax, dword [edi]
push dword [ebp - 0x10]
push esi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
call dword [sym.imp.kernel32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x34]
call fcn.1002e7ee
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.1002eb94
test al, al
jne 0x1006411e
push 0
push 0x10007088
lea ecx, [ebp - 0x30]
call fcn.1002e39c
test al, al
jne 0x1006411e
push 0x10
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x34]
call fcn.1002eb70
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
call fcn.100a5651
ret
Function at 0x100642b5
Capabilities:
Check if file exists

Disassembly:
push 0x18
mov eax, 0x100b00a1
call fcn.100a5688
mov dword [ebp - 0x1c], edx
mov esi, ecx
mov dword [ebp - 0x24], esi
xor eax, eax
mov edi, 0x100c9520
push eax
push 0x100c9400
push edi
push eax
push esi
mov dword [ebp - 0x14], eax
call fcn.100a698d
xor ebx, ebx
add esp, 0x14
inc ebx
test eax, eax
je 0x10064305
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.10091a7b
mov ecx, ebx
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x10064308
mov byte [ebp - 0xd], bl
jmp 0x1006430c
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0xd], 0
test bl, cl
je 0x1006431b
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
cmp byte [ebp - 0xd], 0
je 0x10064457
push 0
push 0x100c9500
push edi
push 0
push esi
call fcn.100a698d
mov edi, eax
add esp, 0x14
test edi, edi
je 0x1006445f
call fcn.1008e9f3
push eax
lea ecx, [ebp - 0x14]
call fcn.10091a7b
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.10091a7b
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
mov ecx, dword [ebp - 0x18]
mov esi, eax
add ecx, 0xfffffff0
call fcn.1008ebf5
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.10091a7b
test esi, esi
je 0x100643ad
mov esi, eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.10030831
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
push dword [esi]
push dword [eax]
call fcn.10091a7b
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
jmp 0x100643ba
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.10091a7b
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1006444f
push eax
push 0x100c93a0
push 0x100c9520
push eax
push dword [ebp - 0x24]
call fcn.100a698d
add esp, 0x14
test eax, eax
je 0x100643fb
cmp dword [eax + 0x134], 5
je 0x1006444f
push 0x10016358
lea ecx, [ebp - 0x18]
call fcn.1006f4e2
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x20]
call fcn.1006eb5a
mov ebx, dword [ebp - 0x1c]
mov byte [ebp - 4], 5
push dword [eax]
mov ecx, dword [ebx]
push 0
mov edi, dword [ecx + 4]
mov ecx, edi
call dword [0x100d0614]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov ecx, dword [ebp - 0x18]
xor bl, bl
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
lea ecx, [esi - 0x10]
call fcn.1008ebf5
mov al, bl
call fcn.100a5651
ret
mov ebx, dword [ebp - 0x1c]
push 0x10016438
push 0
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, ebx
call esi
xor al, al
jmp 0x10064459