joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f259
Capabilities:
Read .ini file

Disassembly:
push 0x864
mov eax, 0x5d097f
call fcn.0044ac5a
mov ebx, ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cdq
push edx
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.00458e9c
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x840]
mov dword [ebp - 4], eax
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x828]
push eax
call fcn.00446544
push 0x800
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.0046cf80
lea ecx, [ebx + 0xd4]
add esp, 0xc
cmp dword [ecx + 0x14], 8
jb 0x44f2d0
mov ecx, dword [ecx]
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
push ecx
cmovae eax, dword [ebp - 0x828]
lea ecx, [ebp - 0x810]
push 0x400
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x858]
call fcn.00403040
lea eax, [ebp - 0x828]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x858]
call fcn.004465bf
test al, al
je 0x44f364
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
mov ecx, ebx
cmovae eax, dword [ebp - 0x828]
push eax
push edi
push esi
lea eax, [ebp - 0x870]
push eax
call fcn.0044f56f
push eax
lea ecx, [ebp - 0x840]
call fcn.00406eb0
lea ecx, [ebp - 0x870]
call fcn.00402fe0
jmp 0x44f376
lea eax, [ebp - 0x858]
push eax
lea ecx, [ebp - 0x840]
call fcn.00417ad0
cmp dword [ebp - 0x82c], 8
lea eax, [ebp - 0x840]
cmovae eax, dword [ebp - 0x840]
push eax
call fcn.00474e53
pop ecx
lea ecx, [ebp - 0x858]
mov esi, eax
call fcn.00402fe0
lea ecx, [ebp - 0x840]
call fcn.00402fe0
lea ecx, [ebp - 0x828]
call fcn.00402fe0
mov eax, esi
call fcn.0044ac04
ret 0xc

Function at 0x44f3be
Capabilities:
Read .ini file

Disassembly:
push 0x844
mov eax, 0x5d09d4
call fcn.0044ac5a
mov ebx, ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x828]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x848], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x850], esi
and dword [ebp - 0x84c], 0
push edi
mov dword [ebp - 0x844], eax
call fcn.00403040
and dword [esi + 0x10], 0
lea eax, [ebp - 0x828]
and dword [esi + 0x14], 0
mov ecx, esi
push eax
mov dword [ebp - 4], 1
call fcn.00446544
cmp byte [ebp + 0x18], 0
mov dword [ebp - 0x84c], 1
jne 0x44f491
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0046cf80
lea eax, [ebx + 0xd4]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x44f455
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push edi
push dword [ebp - 0x844]
push dword [ebp - 0x848]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
push eax
call fcn.0047bb55
pop ecx
push eax
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.00403240
lea eax, [ebp - 0x828]
mov ecx, esi
push eax
call fcn.004465bf
test al, al
je 0x44f4d1
push edi
push dword [ebp - 0x844]
lea eax, [ebp - 0x840]
mov ecx, ebx
push dword [ebp - 0x848]
push eax
call fcn.0044f56f
push eax
mov ecx, esi
call fcn.00406eb0
lea ecx, [ebp - 0x840]
call fcn.00402fe0
lea ecx, [ebp - 0x828]
call fcn.00402fe0
mov eax, esi
call fcn.0044ac04
ret 0x14
Function at 0x44f5b5
Capabilities:
Read .ini file

Disassembly:
push 0x838
mov eax, 0x5d0a07
call fcn.0044ac5a
mov edi, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 0x8c]
cmp dword [eax + 0x14], 8
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x844], ecx
jb 0x44f5e0
mov eax, dword [eax]
push eax
push dword [ebp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp esi, dword [ebp + 0x10]
jne 0x44f69d
push 0x6568a4
lea ecx, [ebp - 0x828]
call fcn.00403040
and dword [ebp - 4], 0
lea eax, [ebp - 0x810]
push 0x800
push 0
push eax
call fcn.0046cf80
push dword [ebp + 0x10]
lea eax, [ebp - 0x810]
push 0x5d4a54
push eax
call fcn.00405db0
add esp, 0x18
lea eax, [ebp - 0x810]
cmp byte [edi + 5], 0
mov ecx, edi
push eax
push dword [ebp - 0x844]
lea eax, [ebp - 0x840]
push ebx
push eax
je 0x44f659
call fcn.0044f4e6
jmp 0x44f65e
call fcn.0044f592
push eax
lea ecx, [ebp - 0x828]
call fcn.00406eb0
lea ecx, [ebp - 0x840]
call fcn.00402fe0
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.00474e53
pop ecx
lea ecx, [ebp - 0x828]
mov esi, eax
call fcn.00402fe0
mov eax, esi
call fcn.0044ac04
ret 0xc

Function at 0x44f6a7
Capabilities:
Read .ini file

Disassembly:
push 0x82c
mov eax, 0x5d0a51
call fcn.0044ac5a
mov edi, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0x10]
push 0x800
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x810]
push ecx
mov dword [ebp - 0x838], esi
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x834], ecx
call fcn.0046cf80
lea eax, [edi + 0x8c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x44f704
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push dword [ebp - 0x82c]
push dword [ebp - 0x830]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.00403040
and dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x834], 1
jb 0x44f74a
mov eax, dword [esi]
push ebx
push eax
call fcn.0047c3f2
pop ecx
pop ecx
test eax, eax
jne 0x44f792
cmp byte [edi + 5], 0
lea eax, [ebp - 0x828]
push ebx
push dword [ebp - 0x82c]
mov ecx, edi
push dword [ebp - 0x830]
push eax
je 0x44f77a
call fcn.0044f4e6
jmp 0x44f77f
call fcn.0044f592
push eax
mov ecx, esi
call fcn.00406eb0
lea ecx, [ebp - 0x828]
call fcn.00402fe0
mov eax, esi
call fcn.0044ac04
ret 0x10
Function at 0x45017b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
mov eax, dword [0x664340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, 0x208
lea eax, [ebp - 0x20c]
push ebx
push 0
push eax
mov esi, ecx
call fcn.0046cf80
lea eax, [esi + 0x2c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4501b4
mov eax, dword [eax]
push str.CfgPath
push eax
lea eax, [ebp - 0x20c]
push 0x5dabb8
push eax
call fcn.00405db0
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4501ec
lea eax, [ebp - 0x20c]
push eax
call fcn.00459ec1
pop ecx
push ebx
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.0046cf80
push str.Use.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push 0x5d82b0
push eax
call fcn.00405db0
lea eax, [ebp - 0x61c]
push eax
call fcn.0047bb55
add esp, 0x20
lea ecx, [esi + 0x8c]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.00403240
push ebx
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.0046cf80
push str.UseCache.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push 0x5d82b0
push eax
call fcn.00405db0
lea eax, [ebp - 0x824]
push eax
call fcn.0047bb55
add esp, 0x20
lea ecx, [esi + 0xa4]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.00403240
push ebx
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0046cf80
lea eax, [ebp - 0xa44]
push 0x5d4d60
push eax
call fcn.0045ac5c
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x4502b3
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x414]
push 0x5d6c8c
push eax
call fcn.00405db0
add esp, 0xc
lea ecx, [ebp - 0xa44]
call fcn.00402fe0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4502f1
lea eax, [ebp - 0x414]
push eax
call fcn.00459ec1
pop ecx
push ebx
lea eax, [ebp - 0xa2c]
push 0
push eax
call fcn.0046cf80
push str.UseCache.ini
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xa2c]
push 0x5d82b0
push eax
call fcn.00405db0
lea eax, [ebp - 0xa2c]
push eax
call fcn.0047bb55
add esp, 0x20
lea ecx, [esi + 0xbc]
push eax
lea eax, [ebp - 0xa2c]
push eax
call fcn.00403240
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a851
leave
ret
Function at 0x450976
Capabilities:
Read .ini file

Disassembly:
push 0x23c
mov eax, 0x5d0b4b
call fcn.0044ac5a
mov ebx, ecx
call fcn.0044f059
mov esi, eax
push esi
call fcn.0047bb55
pop ecx
push eax
lea edi, [ebx + 0xd4]
push esi
mov ecx, edi
call fcn.00403240
mov esi, str.BKPDFReader.ini
push esi
call fcn.0047bb55
pop ecx
push eax
push esi
mov ecx, edi
call fcn.004058f0
push str.BKpdf
push 0x5d5d88
push str.BKApp
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.0044f6a7
lea esi, [ebx + 0xec]
push eax
mov ecx, esi
call fcn.00406eb0
lea ecx, [ebp - 0x230]
call fcn.00402fe0
push str.BKpdf
mov ecx, esi
call fcn.00450f23
test al, al
je 0x450a5e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0046cf80
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x450a1d
mov edi, dword [edi]
push edi
push 0x104
lea eax, [ebp - 0x218]
mov edi, str.BKpdf
push eax
push edi
push 0x5d5d88
push str.BKApp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
call fcn.0047bb55
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00403240
jmp 0x450a63
mov edi, str.BKpdf
push edi
mov ecx, esi
call fcn.00450f23
test al, al
je 0x450b23
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0046cf80
and dword [ebp - 0x220], 0
lea eax, [ebx + 0x5c]
and dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x230]
add esp, 0xc
push eax
call fcn.00446544
and dword [ebp - 4], 0
push str.BKPDFReader.ini
call fcn.0047bb55
pop ecx
push eax
push str.BKPDFReader.ini
lea ecx, [ebp - 0x230]
call fcn.004058f0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
push 0x5d5d88
push str.BKApp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
call fcn.0047bb55
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00403240
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00402fe0
push edi
mov ecx, esi
call fcn.00450f23
test al, al
je 0x450b5b
push edi
push 0x5d5d88
push str.BKApp
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.0044f56f
push eax
mov ecx, esi
call fcn.00406eb0
lea ecx, [ebp - 0x248]
call fcn.00402fe0
call fcn.0044ac04
ret
Function at 0x45116d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0bc4
mov eax, dword fs:[0]
push eax
mov eax, 0x1228
call fcn.0044a8a0
mov eax, dword [0x664340]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x669784], 0
mov esi, dword [ebp + 0xc]
jne 0x451271
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0046cf80
lea eax, [ebp - 0x218]
push str.C:LogResLog.dll
push eax
call fcn.0047bb33
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45125b
cmp dword [0x664388], 8
lea ecx, [ebp - 0x1231]
mov eax, 0x664374
cmovae eax, dword [0x664374]
push eax
lea eax, [ebp - 0x1230]
push eax
call fcn.004510ba
and dword [ebp - 4], 0
mov edi, 0x5dac34
push edi
call fcn.0047bb55
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1230]
call fcn.004058f0
cmp dword [ebp - 0x121c], 8
lea eax, [ebp - 0x1230]
cmovae eax, dword [ebp - 0x1230]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0047bb33
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x1230]
call fcn.00402fe0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x669784], eax
test eax, eax
je 0x4512c5
mov edi, 0x6568a4
push edi
call fcn.0047bb55
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00403240
push 0x800
lea eax, [ebp - 0x1218]
push eax
push dword [ebp + 8]
push dword [0x669784]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jle 0x4512c5
lea eax, [ebp - 0x1218]
push eax
call fcn.0047bb55
pop ecx
push eax
lea eax, [ebp - 0x1218]
mov ecx, esi
push eax
call fcn.00403240
mov al, 1
jmp 0x4512c7
xor al, al
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.0044a851
leave
ret

Function at 0x4512e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x664340]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0046cf80
push 0x5d4df4
lea eax, [ebp - 0x20c]
push str.C:log_s.log
push eax
call fcn.00405db0
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0044a851
leave
ret
Function at 0x4514f4
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.0044a8a0
mov eax, dword [0x664340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2008], eax
call fcn.004512e0
test eax, eax
je 0x451628
push esi
push edi
xor edi, edi
push edi
call fcn.00474f26
mov dword [ebp - 0x2014], eax
lea eax, [ebp - 0x2014]
push eax
mov dword [ebp - 0x2010], edx
call fcn.0047a174
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push dword [ebp - 0x2008]
mov ecx, dword [esi + 0x10]
push eax
push dword [esi]
mov eax, dword [esi + 0x14]
inc ecx
push dword [esi + 4]
add eax, 0x76c
push dword [esi + 8]
push dword [esi + 0xc]
push ecx
push eax
lea eax, [ebp - 0x2004]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.0045109c
add esp, 0x28
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
inc ecx
test eax, eax
push 0x5dace0
push ebx
cmovne edi, ecx
call fcn.0047a94d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x451626
test edi, edi
jne 0x4515c9
push esi
push 2
lea eax, [ebp - 0x200c]
mov dword [ebp - 0x200c], 0xfeff
push 1
push eax
call fcn.0047efc9
add esp, 0x10
lea eax, [ebp - 0x2004]
push eax
call fcn.0047bb55
push esi
add eax, eax
push eax
lea eax, [ebp - 0x2004]
push 1
push eax
call fcn.0047efc9
push esi
push 2
lea eax, [ebp - 0x2008]
mov dword [ebp - 0x2008], 0xd
push 1
push eax
call fcn.0047efc9
push esi
push 2
lea eax, [ebp - 0x2008]
mov dword [ebp - 0x2008], 0xa
push 1
push eax
call fcn.0047efc9
push esi
call fcn.0047a74b
add esp, 0x38
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0044a851
leave
ret

Function at 0x451d36
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push 0x38
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x3c
push 0
push eax
call fcn.0046cf80
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x2c], eax
mov eax, 0x200
lea ecx, [eax + 0x40]
cmovne eax, ecx
xor edi, edi
mov dword [ebp - 0x38], eax
inc edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], eax
call fcn.00456d06
test eax, eax
mov ecx, str.runas
lea eax, [ebp - 0x3c]
cmovne ecx, dword [ebp - 0x30]
push eax
mov dword [ebp - 0x30], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x451da8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, edi
cmove eax, ecx
jmp 0x451dbc
cmp dword [ebp + 0x10], 0
je 0x451dba
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, edi
pop edi
leave
ret
Function at 0x451dbf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov edi, 0xf01ff
mov dword [ebp - 8], ebx
push edi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x451f0e
lea eax, [ebp - 0x10]
push eax
push 1
push 1
push ebx
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x451f0e
push str.Kernel32.dll
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x451e59
push 0x5dad08
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x451e52
call eax
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0xc
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x451f0e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.Wtsapi32.dll
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x451f33
push 0x5dad64
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x451ea5
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push ecx
push dword [ebp - 0x14]
call eax
push ebx
push dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
push dword [ebp - 0xc]
test eax, eax
jne 0x451ea3
call esi
jmp 0x451f0e
call esi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.0046cf80
push 0x10
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.0046cf80
add esp, 0x18
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x60], str.WinSta0Default
mov dword [ebp - 0x3c], 1
push 5
pop eax
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp - 4]
push 0x430
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x451f0e
cmp dword [ebp - 4], ebx
je 0x451f0c
push dword [ebp - 4]
call sub.USERENV.dll_DestroyEnvironmentBlock
mov bl, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x451f1d
cmp eax, 0xffffffff
je 0x451f1d
push eax
call esi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x451f2c
cmp ecx, 0xffffffff
je 0x451f2c
push ecx
call esi
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
push ebx
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
jne 0x451ea5
push dword [ebp - 8]
jmp 0x451e9f
Function at 0x45202f
Capabilities:
Create process on windows

Disassembly:
push 0x90
mov eax, 0x5d0c6d
call fcn.0044ac5a
mov eax, dword [ebp + 0x18]
xor esi, esi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0x44
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x9c]
push esi
push eax
mov dword [ebp - 0x44], esi
call fcn.0046cf80
push 0x10
lea eax, [ebp - 0x58]
mov dword [ebp - 0x9c], 0x44
push esi
push eax
call fcn.0046cf80
add esp, 0x18
mov dword [ebp - 0x18], esi
xor eax, eax
mov word [ebp - 0x28], ax
push 7
pop ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
test edi, edi
je 0x452107
push edi
call fcn.0047bb55
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00403240
cmp dword [ebp - 0x30], esi
je 0x452107
mov edi, 0x5d4948
push edi
call fcn.0047bb55
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.00403240
push ebx
call fcn.0047bb55
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.004058f0
mov edi, 0x5d494c
push edi
call fcn.0047bb55
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004058f0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.004058f0
jmp 0x452118
push ebx
call fcn.0047bb55
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.00403240
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x67
call fcn.00451635
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
pop ecx
cmovae eax, dword [ebp - 0x28]
pop ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x9c]
push ecx
push esi
push esi
push esi
push 1
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4521a1
cmp byte [ebp + 0x10], 0
je 0x452171
or eax, 0xffffffff
cmp dword [ebp + 0x14], 0
cmovg eax, dword [ebp + 0x14]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x45218e
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x45218e
mov eax, dword [ebp - 0x44]
mov dword [esi], eax
push dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x54]
call esi
xor esi, esi
inc esi
lea ecx, [ebp - 0x40]
call fcn.00402fe0
lea ecx, [ebp - 0x28]
call fcn.00402fe0
mov eax, esi
call fcn.0044ac04
ret
Function at 0x452924
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x664340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x6568a4
mov dword [ebp - 0xa38], ebx
push edi
call fcn.0047bb55
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.00403240
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0046cf80
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x452b3b
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
call ebx
mov esi, eax
test esi, esi
je 0x452b3b
xor ecx, ecx
lea eax, [esi + 1]
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044a885
mov edi, eax
pop ecx
test edi, edi
je 0x452b3b
lea ecx, [esi*2 + 2]
push ecx
push 0
push edi
call fcn.0046cf80
add esp, 0xc
push edi
push esi
call ebx
test eax, eax
je 0x452b34
mov eax, dword [0x5dada0]
mov ebx, 0x208
mov dword [ebp - 0xc], eax
mov ax, word [0x5dada4]
push ebx
mov word [ebp - 8], ax
call fcn.0044a885
mov esi, eax
pop ecx
test esi, esi
je 0x452b34
push ebx
push 0
push esi
call fcn.0046cf80
movzx eax, word [edi]
add esp, 0xc
mov ebx, edi
push 0x104
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x452a7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x452b1e
push esi
call fcn.0044a88e
push 2
call fcn.0044a885
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x452b1e
push 2
push 0
push esi
call fcn.0046cf80
add esp, 0xc
lea eax, [ebp - 0xc]
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x452b1e
push esi
call fcn.0047bb55
push eax
mov dword [ebp - 0xa34], eax
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00479ace
add esp, 0x10
test eax, eax
je 0x452ab5
movzx eax, word [ebx]
add ebx, 2
test ax, ax
jne 0x452a9d
movzx eax, word [ebx]
test ax, ax
je 0x452b1e
jmp 0x452a1a
push 0x800
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.0046cf80
mov eax, dword [ebp - 0xa34]
lea ecx, [ebp - 0x218]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x5d82b0
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.00454b94
add esp, 0x20
lea eax, [ebp - 0xa18]
lea ecx, [ebp - 0xa30]
push eax
call fcn.00403040
mov ecx, dword [ebp - 0xa38]
push eax
call fcn.00406eb0
lea ecx, [ebp - 0xa30]
call fcn.00402fe0
push edi
call fcn.0044a88e
pop ecx
test esi, esi
je 0x452b30
push esi
call fcn.0044a88e
pop ecx
mov al, 1
jmp 0x452b3d
push edi
call fcn.0044a88e
pop ecx
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a851
leave
ret