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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
mov ebx, ecx
je 0x49cab8
cmp dword [esi + 0x14], 8
jb 0x49ca8a
mov eax, dword [esi]
jmp 0x49ca8c
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49cab8
cmp dword [esi + 0x14], 8
jb 0x49ca9f
mov esi, dword [esi]
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
push esi
push 7
push 2
call edx
neg eax
sbb eax, eax
pop esi
inc eax
pop ebx
pop ebp
ret 4
pop esi
mov al, 1
pop ebx
pop ebp
ret 4

Function at 0x49cac0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5097eb
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
mov edi, ecx
mov dword [ebp - 0x240], edi
jne 0x49cb05
mov al, 1
jmp 0x49cc7f
cmp dword [esi + 0x14], 8
mov byte [ebp - 0x239], 0
jb 0x49cb16
mov eax, dword [esi]
jmp 0x49cb18
mov eax, esi
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x49cb37
cmp eax, 0x50
je 0x49cb37
cmp eax, 0xb7
jne 0x49cc79
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x21a]
push ecx
mov word [ebp - 0x21c], ax
call fcn.004e41d0
add esp, 0xc
xor edx, edx
push 0xffffffffffffffff
push edx
push esi
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], dx
call fcn.00406a40
mov eax, dword [ebp - 0x238]
mov esi, 8
mov dword [ebp - 4], 0
cmp dword [ebp - 0x224], esi
jae 0x49cba1
lea eax, [ebp - 0x238]
mov ecx, dword [edi]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x2c]
push 0
push 0
call eax
test eax, eax
jne 0x49cc61
cmp dword [ebp - 0x224], esi
mov esi, dword [ebp - 0x238]
jae 0x49cbcb
lea esi, [ebp - 0x238]
lea eax, [ebp - 0x21c]
mov ecx, eax
xor edi, edi
mov edx, 0x105
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffef9]
test ecx, ecx
je 0x49cbfe
movzx ecx, word [esi + eax]
test cx, cx
je 0x49cbfe
mov word [eax], cx
add eax, 2
dec edx
jne 0x49cbe0
jmp 0x49cc02
test edx, edx
jne 0x49cc0a
sub eax, 2
mov edi, 0x8007007a
xor edx, edx
mov word [eax], dx
test edi, edi
js 0x49cc61
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x49cc61
push 0x52b258
push 0x105
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0042c070
test eax, eax
js 0x49cc61
mov edx, dword [ebp - 0x240]
mov ecx, dword [edx]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
lea edx, [ebp - 0x21c]
push edx
push 0
push 0
call eax
test eax, eax
sete byte [ebp - 0x239]
cmp dword [ebp - 0x224], 8
jb 0x49cc79
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00406fa9
add esp, 4
mov al, byte [ebp - 0x239]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret 4
Function at 0x49cca0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x20]
push str.Readerplug_insTest_Tools_aaFEAT.api
push eax
call fcn.004155f0
add esp, 8
cmp dword [ebp - 0x10], 0
je 0x49cce3
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x49ccd4
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49cce3
mov bl, 1
jmp 0x49cce5
xor bl, bl
cmp dword [ebp - 0xc], 8
jb 0x49ccf7
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406fa9
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret

Function at 0x49cd10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509868
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x20019
push str.SoftwareAdobeAcrobat_Reader11.0Privileged
push 0x80000001
lea ecx, [ebp - 0x38]
call fcn.0040aa40
lea eax, [ebp - 0x30]
push eax
push str.bAllowTestDomains
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
call fcn.0040ab30
test eax, eax
jne 0x49cd8b
cmp dword [ebp - 0x30], eax
je 0x49cd8b
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0040abf0
mov al, 1
jmp 0x49cdf6
lea ecx, [ebp - 0x2c]
push str.Readerplug_insTest_Tools_aaFEAT.api
push ecx
call fcn.004155f0
add esp, 8
cmp dword [ebp - 0x1c], 0
je 0x49cdbd
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x49cdae
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49cdbd
mov bl, 1
jmp 0x49cdbf
xor bl, bl
cmp dword [ebp - 0x18], 8
jb 0x49cdd1
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406fa9
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 0xffffffff
call fcn.0040abf0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x49ce10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x41c], ebx
test byte [0x556bac], 1
push esi
mov esi, dword [ebp + 8]
jne 0x49ce65
or dword [0x556bac], 1
xor eax, eax
push 0x50feb0
mov dword [0x556ba4], 7
mov dword [0x556ba0], ebx
mov word [0x556b90], ax
call fcn.00404f03
add esp, 4
cmp byte [0x556b8c], bl
jne 0x49cf2e
lea ecx, [ebp - 0x418]
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionAeDebug
push 0x80000002
mov byte [0x556b8c], 1
mov dword [ebp - 0x418], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49cf2e
push 0x410
lea edx, [ebp - 0x414]
push ebx
push edx
mov dword [ebp - 0x41c], ebx
call fcn.004e41d0
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x41c]
push edx
push ebx
push str.Debugger
push eax
mov dword [ebp - 0x420], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49cf21
lea eax, [ebp - 0x414]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x49cf00
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x414]
push ecx
mov ecx, 0x556b90
call fcn.004063e0
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
push ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x556b90
mov ecx, esi
mov word [esi], ax
call fcn.00406a40
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x49cf60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507968
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
test byte [0x556bd0], 1
mov dword [ebp - 0x30], ebx
jne 0x49cfc7
or dword [0x556bd0], 1
xor eax, eax
push 0x50ff30
mov dword [0x556bc8], 7
mov dword [0x556bc4], ebx
mov word [0x556bb4], ax
call fcn.00404f03
add esp, 4
cmp byte [0x556bb0], bl
jne 0x49d033
push ebx
push str.WerFault.exe
lea ecx, [ebp - 0x2c]
push 0x29
push ecx
mov byte [0x556bb0], 1
call fcn.0042c160
add esp, 0x10
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
je 0x49d01a
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x49cffe
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49d01a
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x2c]
push edx
mov ecx, 0x556bb4
call fcn.00406a40
cmp dword [ebp - 0x18], 8
mov dword [ebp - 4], 0xffffffff
jb 0x49d033
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406fa9
add esp, 4
push 0xffffffffffffffff
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push ebx
mov word [esi], cx
push 0x556bb4
mov ecx, esi
call fcn.00406a40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret

Function at 0x49d070
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507968
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
test byte [0x556bf4], 1
mov dword [ebp - 0x30], ebx
jne 0x49d0d7
or dword [0x556bf4], 1
xor eax, eax
push 0x50ff70
mov dword [0x556bec], 7
mov dword [0x556be8], ebx
mov word [0x556bd8], ax
call fcn.00404f03
add esp, 4
cmp byte [0x556bd4], bl
jne 0x49d143
push ebx
push str.DWwin.exe
lea ecx, [ebp - 0x2c]
push 0x25
push ecx
call fcn.0042c160
add esp, 0x10
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
je 0x49d123
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x49d107
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49d123
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x2c]
push edx
mov ecx, 0x556bd8
call fcn.00406a40
cmp dword [ebp - 0x18], 8
mov byte [0x556bd4], 1
mov dword [ebp - 4], 0xffffffff
jb 0x49d143
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406fa9
add esp, 4
push 0xffffffffffffffff
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push ebx
mov word [esi], cx
push 0x556bd8
mov ecx, esi
call fcn.00406a40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x49d650
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5099b2
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x23c], ebx
test esi, esi
je 0x49d712
cmp word [esi], bx
je 0x49d712
xor eax, eax
mov word [ebp - 0x234], ax
mov eax, esi
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49d6b3
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.004063e0
lea ecx, [ebp - 0x234]
push 0
mov ebx, 1
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x23c], ebx
call fcn.00416de0
add esp, 8
test al, al
jne 0x49d712
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49d712
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov byte [ebp - 0x235], bl
test eax, eax
jne 0x49d719
mov byte [ebp - 0x235], 0
test bl, 1
je 0x49d736
cmp dword [ebp - 0x220], 8
jb 0x49d736
mov edx, dword [ebp - 0x234]
push edx
call fcn.00406fa9
add esp, 4
cmp byte [ebp - 0x235], 0
je 0x49d794
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00402c49
add esp, 0xc
test eax, eax
jne 0x49d794
push str.Common
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x49d794
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49d794
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x49d794
mov al, 1
jmp 0x49d796
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x49db40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509ba6
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x88], edi
test byte [0x556c1c], 1
jne 0x49dbae
or dword [0x556c1c], 1
xor eax, eax
push 0x50fef0
mov dword [0x556c14], 7
mov dword [0x556c10], edi
mov word [0x556c00], ax
call fcn.00404f03
add esp, 4
cmp byte [0x556bfc], 0
jne 0x49dd4d
lea ecx, [ebp - 0x64]
push ecx
mov byte [0x556bfc], 1
call fcn.0049ce10
add esp, 4
mov dword [ebp - 4], edi
cmp dword [ebp - 0x54], edi
je 0x49dd34
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.0046e170
add esp, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], edi
je 0x49dd22
lea ecx, [ebp - 0x2c]
push edi
push ecx
xor bl, bl
call fcn.00416de0
add esp, 8
test al, al
je 0x49dcfa
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x49dc1a
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
jne 0x49dc32
push str..exe
lea ecx, [ebp - 0x2c]
call fcn.0042bf20
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x49dc3e
lea eax, [ebp - 0x2c]
push str.drwtsn32.exe
push eax
call fcn.00408866
add esp, 8
test eax, eax
jne 0x49dc7f
push edi
push str.drwtsn32.exe
lea edx, [ebp - 0x48]
push 0x29
push edx
call fcn.0042c160
add esp, 0x10
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00406360
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0040a440
jmp 0x49dcfa
lea ecx, [ebp - 0x84]
call fcn.0045f0c0
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.0045f3d0
test al, al
je 0x49dce7
lea ecx, [ebp - 0x8c]
call fcn.0045f050
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x48]
push 1
push edx
mov byte [ebp - 4], 5
call fcn.0046daa0
add esp, 0xc
lea ecx, [ebp - 0x48]
mov bl, al
call fcn.0040a440
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.0045f0a0
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.0045f120
test bl, bl
je 0x49dd22
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x49dd06
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49dd22
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x556c00
call fcn.00406a40
cmp dword [ebp - 0x18], 8
jb 0x49dd34
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00406fa9
add esp, 4
cmp dword [ebp - 0x50], 8
mov dword [ebp - 4], 0xffffffff
jb 0x49dd4d
mov edx, dword [ebp - 0x64]
push edx
call fcn.00406fa9
add esp, 4
push 0xffffffffffffffff
push edi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
push 0x556c00
mov ecx, esi
mov word [esi], ax
call fcn.00406a40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x4a67d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x4a68f1
cmp byte [edi + 0x49], bl
je 0x4a68f1
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4a68e5
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x4a6845
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x4a685d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4a6886
dec eax
je 0x4a688a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x4a68e0
jmp 0x4a68ec
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x4a689a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4a68c3
cmp ebx, 0x10
jae 0x4a68a9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004e7892
add esp, 0x10
cmp esi, eax
jne 0x4a68dd
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4a68e9
test esi, esi
jne 0x4a6851
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00450050
jmp 0x4a684b
lea ecx, [ebp - 0x2c]
call fcn.0043b5d0
xor al, al
jmp 0x4a68f3
lea ecx, [ebp - 0x2c]
call fcn.0043b5d0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x4ab9b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b5e7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x553948]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], eax
je 0x4ab9fe
mov dword [ebx], 0x531f30
mov dword [ebx + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov dword [ebx + edx], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx]
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
call fcn.0045a9d0
lea esi, [ebx + 0x10]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.0045b8e0
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x4aba50
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.00449660
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov ecx, esi
mov dword [ebp - 4], 2
mov dword [ebx + edx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.0045b320
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x556c24]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b6540
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x14]
xor al, al
mov byte [ebp - 1], al
test ecx, ecx
je 0x4b6556
mov dword [ecx], 0
push ebx
push esi
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x4b6565
mov dword [esi], 0
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x10], 0
je 0x4b665a
push 0
push ebx
call fcn.00416de0
add esp, 8
test al, al
jne 0x4b6657
mov ecx, ebx
call fcn.0041a1e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b6657
mov ecx, ebx
call fcn.0041a1e0
push eax
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x4b6657
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x10], 0
mov dword [ebp + 0x18], 0
jne 0x4b65c5
xor eax, eax
jmp 0x4b65ca
call fcn.0041a1e0
cmp byte [ebp + 0x24], 0
push edi
mov edi, str.runas
jne 0x4b65db
mov edi, str.open
push 0
mov ecx, esi
neg ecx
sbb ecx, ecx
lea edx, [ebp + 0x18]
and ecx, edx
mov edx, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x14]
push ecx
push str.exefile
push edx
push 1
push eax
mov ecx, ebx
call fcn.0041a1e0
push eax
mov eax, dword [ebp + 0x20]
push edi
push eax
call fcn.00465640
add esp, 0x28
pop edi
test al, al
je 0x4b6657
test esi, esi
je 0x4b664d
cmp dword [ebp + 0x18], 0
je 0x4b664d
push 1
push 0
push 0
call fcn.0049c990
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov ecx, dword [ebp + 0x18]
add esp, 4
push eax
mov eax, dword [edx]
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x4b664d
mov dword [esi], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x4b77b0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c8f0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 9
xor ebx, ebx
xor eax, eax
push str..pipe_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.004063e0
lea edx, [esi + 0x204]
mov eax, edx
mov dword [ebp - 4], ebx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b7810
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040e6e0
mov eax, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x4b7839
lea eax, [ebp - 0x2c]
push ebx
push 0x7d0
push 0x1000
push 0x1000
push 1
push ebx
push 0x80003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4b78fa
cmp eax, ebx
je 0x4b78fa
lea ecx, [esi + 8]
push ecx
lea edx, [ebp - 0x6c]
push edx
mov byte [ebp - 0x7a], bl
mov dword [ebp - 0x78], ebx
mov byte [ebp - 0x74], bl
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x7c], pe_nt_image_headers32
call fcn.0045e050
push esi
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x6c]
push ecx
mov byte [ebp - 4], 1
call fcn.0045e520
add esp, 0x14
test al, al
je 0x4b78e4
cmp dword [esi], ebx
je 0x4b78e4
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], bl
call fcn.0043b680
cmp dword [ebp - 0x18], edi
jb 0x4b78c4
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406fa9
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], bl
call fcn.0043b680
cmp dword [ebp - 0x18], edi
jb 0x4b790b
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x4b7903
cmp dword [ebp - 0x18], edi
jb 0x4b790b
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00406fa9
add esp, 4
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x4b791c
push eax
call edi
mov dword [esi], ebx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4b792e
push eax
call edi
mov dword [esi + 4], 0xffffffff
xor al, al
jmp 0x4b78c6