joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4137b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
cmp dword [edi + 0x14], 8
jb 0x4137c2
mov edi, dword [edi]
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x4137d9
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 1
push ebx
call fcn.004bc2b0
mov esi, eax
add esp, 8
test esi, esi
je 0x413852
push esi
push ebx
push dword [ebp - 8]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x413849
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x413849
cmp dword [ebp - 4], 0
je 0x413849
push 0x14
call fcn.00481836
add esp, 4
test eax, eax
je 0x413852
mov edx, dword [ebp - 4]
movzx ecx, word [edx + 2]
push ecx
movzx ecx, word [edx]
push ecx
push esi
mov ecx, eax
call fcn.00413630
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.004bbc6e
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414190
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov edi, ecx
mov dword [ebp - 0x224], eax
movzx eax, word [edi + 8]
mov word [ebp - 0x14], ax
movzx eax, word [edi + 0xc]
mov word [ebp - 0x12], ax
call esi
mov word [ebp - 0x10], ax
movzx eax, word [edi + 0xc]
mov word [ebp - 0xe], ax
movzx eax, word [edi + 8]
mov word [ebp - 0xc], ax
mov eax, 0x4e4
mov word [ebp - 0xa], ax
call esi
mov word [ebp - 8], ax
xor esi, esi
mov eax, 0x4e4
mov word [ebp - 6], ax
lea ebx, [ebx]
movzx eax, word [ebp + esi*2 - 0x12]
movzx ecx, word [ebp + esi*2 - 0x14]
add esi, 2
push ebx
push eax
push ecx
push 0x50fdf4
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004c031b
add esp, 0x1c
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [edi + 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x414264
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x41427e
cmp esi, 8
jb 0x414200
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret 8
cmp word [edx], 0
jne 0x4142a8
mov ecx, dword [ebp - 0x224]
xor eax, eax
push eax
push edx
call fcn.00407560
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4142b0
mov ecx, dword [ebp - 0x224]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.00407560
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret 8
Function at 0x41d450
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x52fe80]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x5569d0]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.004bbca6
add esp, 4
mov edi, 0x100
jmp 0x41d4b0
mov esi, dword [0x55d2a8]
xor dl, dl
test esi, esi
jle 0x41d4e8
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x41d4e3
mov eax, dword [esi*4 + 0x55d2b0]
test eax, eax
je 0x41d4e3
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x41d4c0
dec edi
test edi, edi
jle 0x41d4f1
test dl, dl
jne 0x41d4b0
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret

Function at 0x41f8c8
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68
mov eax, dword [0x52fe80]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esp + 4]
push edi
mov edi, dword [ebp + 8]
push 0x58
push 0
push eax
call fcn.004bf240
push dword [ebp + 0x10]
and dword [esp + 0x2c], 0
lea ecx, [esp + 0x18]
and dword [esp + 0x28], 0
mov edx, esi
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.0041f998
push 8
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x78]
call fcn.00420131
mov edx, dword [esp + 0x2c]
push 0x38
pop ecx
shr edx, 3
and edx, 0x3f
push 0x78
sub ecx, edx
pop eax
sub eax, edx
cmp edx, 0x38
mov edx, 0x556b70
cmovb eax, ecx
lea ecx, [esp + 0x1c]
push eax
call fcn.0041f998
push 8
lea edx, [esp + 0x80]
lea ecx, [esp + 0x24]
call fcn.0041f998
push 0x10
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.00420131
mov ecx, dword [esp + 0x8c]
add esp, 0x20
pop edi
pop esi
xor ecx, esp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
Function at 0x420a8c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
test edx, edx
je 0x420b54
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x420b53
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x420b53
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x420b53
mov dword [edx], esi
mov dword [ebx], esi
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push edi
mov dword [ecx], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x420b53
push eax
call fcn.004bae68
mov edi, eax
pop ecx
test edi, edi
je 0x420b53
push edi
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x420b4c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x50f8e4
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x420b4c
cmp dword [ebp - 8], esi
jbe 0x420b49
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov edx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, dword [ecx + 0x10]
mov dword [edx], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor esi, esi
inc esi
push edi
call fcn.004bbca6
pop ecx
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x421024
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor eax, eax
mov edi, ecx
push 0x286
push eax
mov word [ebp - 0x28c], ax
lea eax, [ebp - 0x28a]
push eax
call fcn.004bf240
add esp, 0xc
lea eax, [ebp - 0x28c]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.kdumpcfg.dat
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4211be
test al, 0x10
jne 0x4211be
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea eax, [ebp - 0x28c]
push eax
xor ebx, ebx
inc ebx
push ebx
push str.autorecovery
push 0x510860
call esi
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x28c]
push eax
push 0
push str.checkbrowsercrash
push 0x510860
call esi
mov dword [edi + 8], eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push str.checkbsod
push 0x510860
call esi
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push str.checkdriverversion
push 0x510860
call esi
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push str.deletedump
push 0x510860
call esi
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push str.enablereport
push 0x510860
call esi
mov dword [edi], eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push str.scanissuefile
push 0x510860
call esi
mov dword [edi + 4], eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push str.silentreport
push 0x510860
call esi
mov dword [edi + 0x18], eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push str.checkonlinesolution
push 0x510860
call esi
mov dword [edi + 0x20], eax
lea eax, [ebp - 0x28c]
push eax
push 6
push str.bsoddelayhour
push 0x510860
call esi
mov dword [edi + 0x24], eax
lea eax, [ebp - 0x28c]
push eax
push 0xffff
push 0x510954
push 0x510860
call esi
mov dword [edi + 0x28], eax
mov eax, ebx
pop esi
jmp 0x4211ec
and dword [edi + 8], 0
xor ebx, ebx
inc ebx
mov dword [edi + 0x24], 6
mov dword [edi + 0x10], ebx
xor eax, eax
mov dword [edi + 0xc], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x28], 0xffff
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
Function at 0x421a60
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push 0x294
mov eax, 0x4ef730
call fcn.004bcfcf
mov ebx, ecx
push 0x50f8e4
call fcn.00406da0
push 0x50f8e8
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00424515
add esp, 0xc
and dword [ebp - 4], 0
lea ecx, [ebp - 0x294]
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push ecx
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x421b81
xor eax, eax
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x298], eax
mov byte [ebp - 4], 1
test byte [ebp - 0x294], 0x10
jne 0x421b04
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406c40
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00409790
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00402a40
lea eax, [ebp - 0x294]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x421acd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x29c]
mov edi, dword [ebp - 0x2a0]
sub eax, edi
push 0x18
cdq
pop ecx
idiv ecx
mov esi, eax
cmp esi, 0x1e
jbe 0x421b72
test esi, esi
je 0x421b72
push edi
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.00412410
add esp, 0xc
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00402a40
add edi, 0x18
dec esi
jne 0x421b3c
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 0
call fcn.00409810
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00402a40
call fcn.004bcf7e
ret
Function at 0x424e5c
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x80], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x7c], eax
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x74], edi
test eax, eax
je 0x424fe3
test edi, edi
je 0x424fe3
lea ecx, [ebp - 0x68]
call fcn.00424bae
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x88]
push ecx
push 4
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x6c], eax
push ecx
push 8
push eax
mov dword [ebp - 0x70], 1
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
xor ebx, ebx
test eax, eax
je 0x424fd7
cmp dword [ebp - 0x70], 1
je 0x424ef9
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], ebx
push eax
push 1
push 2
push ebx
push 0xb
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x424fd7
cmp dword [esi + 8], ebx
jne 0x424f77
push ecx
push ecx
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call fcn.00425de0
test al, al
jne 0x424f27
cmp dword [ebp - 0x70], 1
je 0x424fd7
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x424fd7
push 8
xor eax, eax
lea edi, [ebp - 0xa8]
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xa8], 0x20
cmp dword [eax - 0xc], ebx
jne 0x424f51
lea ecx, [ebp - 0x68]
call fcn.00424d09
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
mov edi, dword [ebp - 0x74]
test eax, eax
je 0x424f77
mov eax, dword [ebp - 0x8c]
mov dword [esi + 8], eax
push ebx
push dword [ebp - 0x6c]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x424fd7
push dword [ebp - 0x7c]
push edi
push ebx
push dword [ebp - 0x78]
push dword [ebp + 0x18]
push ebx
push ebx
push ebx
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x70], 1
mov edi, eax
je 0x424fc2
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x78]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
setne bl
lea ecx, [ebp - 0x68]
call fcn.00424c1d
mov al, bl
jmp 0x424fe5
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret 0x28
Function at 0x425490
Capabilities:
Acquire debug privileges
Enumerate process modules

Disassembly:
push 0x1c
mov eax, 0x4efb54
call fcn.004bcf9c
mov edi, ecx
xor esi, esi
mov dword [edi + 0x10], esi
call fcn.00425db5
lea ecx, [ebp - 0x28]
call fcn.004965b9
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call fcn.00496e23
push str.SeDebugPrivilege
lea ecx, [ebp - 0x28]
call fcn.00496856
mov eax, 0xc8
push ecx
lea ebx, [eax + 0x14]
mov ecx, edi
push ebx
call fcn.00425d69
movzx eax, al
test eax, eax
je 0x42553b
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x10]
push ecx
shl eax, 2
push eax
push dword [edi]
mov dword [ebp - 0x10], esi
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x42550f
mov eax, dword [ebp - 0x10]
shr eax, 2
cmp ebx, eax
jb 0x4254cd
push ecx
push eax
mov ecx, edi
call fcn.00425d69
jmp 0x425547
mov ecx, edi
call fcn.00425db5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x425534
call esi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x425547
mov esi, 0x80004005
jmp 0x425547
mov ecx, edi
call fcn.00425db5
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004965f3
mov eax, esi
call fcn.004bcf6a
ret

Function at 0x425588
Capabilities:
Acquire debug privileges

Disassembly:
push 0x20
mov eax, 0x4efb7f
call fcn.004bcf9c
mov ebx, ecx
lea ecx, [ebp - 0x2c]
call fcn.004965b9
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00496e23
push str.SeDebugPrivilege
lea ecx, [ebp - 0x2c]
call fcn.00496856
and dword [ebp - 0x10], 0
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00425577
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x4255ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x425660
mov edi, 0x80004005
jmp 0x425667
cmp dword [ebx + 0x18], 0
mov edi, 0x80004005
jne 0x425656
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x425620
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42561c
call fcn.00424a9b
jmp 0x425631
mov eax, edi
jmp 0x425631
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x14]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x18], eax
xor eax, eax
test eax, eax
jns 0x425656
mov ecx, dword [ebp + 8]
mov ebx, 0x8000
push ebx
call fcn.00423e74
push ebx
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
mov ecx, dword [ebp + 8]
push eax
call fcn.00425bfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x425667
call fcn.00424a9b
mov edi, eax
mov byte [ebp - 4], 0
test esi, esi
je 0x425676
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004965f3
mov eax, edi
call fcn.004bcf6a
ret 4
Function at 0x42568c
Capabilities:
Acquire debug privileges

Disassembly:
push 0x1c
mov eax, 0x4efbaa
call fcn.004bcf9c
mov esi, ecx
lea ecx, [ebp - 0x28]
call fcn.004965b9
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.00496e23
push str.SeDebugPrivilege
lea ecx, [ebp - 0x28]
call fcn.00496856
mov dword [ebp - 0x10], ebx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00425577
push eax
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x425706
mov ecx, dword [ebp + 8]
mov edi, 0x8000
push edi
call fcn.00423e74
push edi
push eax
push ebx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
mov ecx, dword [ebp + 8]
mov edi, eax
push edi
call fcn.00425bfa
test edi, edi
jne 0x425720
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x425719
call fcn.00424a9b
mov edi, eax
jmp 0x42572b
mov edi, 0x80004005
jmp 0x42572b
push dword [ebp + 8]
call fcn.004960ee
pop ecx
mov edi, ebx
mov byte [ebp - 4], bl
test esi, esi
je 0x425739
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004965f3
mov eax, edi
call fcn.004bcf6a
ret 4

Function at 0x42574f
Capabilities:
Acquire debug privileges

Disassembly:
push 0x20
mov eax, 0x4efbd5
call fcn.004bcf9c
mov ebx, ecx
lea ecx, [ebp - 0x2c]
call fcn.004965b9
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00496e23
push str.SeDebugPrivilege
lea ecx, [ebp - 0x2c]
call fcn.00496856
and dword [ebp - 0x10], 0
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00425577
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x425840
cmp dword [ebx + 0x18], 0
jne 0x4257ef
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4257da
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4257d3
call fcn.00424a9b
mov edi, eax
jmp 0x4257eb
mov edi, 0x80004005
jmp 0x4257eb
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x14]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
xor edi, edi
mov dword [ebx + 0x18], eax
test edi, edi
js 0x42585c
mov ecx, dword [ebp + 8]
push 0x8000
call fcn.00423e74
cmp dword [ebx + 0x1c], 0
mov edi, eax
jne 0x425827
cmp dword [ebx + 0x18], 0
jne 0x42580e
xor eax, eax
jmp 0x42581c
push str.GetProcessImageFileNameW
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x1c], eax
test eax, eax
jne 0x425827
xor edi, edi
jmp 0x425833
push 0x8000
push edi
push esi
call dword [ebx + 0x1c]
mov edi, eax
mov ecx, dword [ebp + 8]
push edi
call fcn.00425bfa
test edi, edi
jne 0x42585a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x425853
call fcn.00424a9b
mov edi, eax
jmp 0x42585c
mov edi, 0x80004005
jmp 0x42585c
xor edi, edi
mov byte [ebp - 4], 0
test esi, esi
je 0x42586b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004965f3
mov eax, edi
call fcn.004bcf6a
ret 4
Function at 0x425881
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4efc11
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x52fe80]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov eax, dword [0x52fe80]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x14]
call fcn.004965b9
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x278], ebx
call fcn.00496e23
push str.SeDebugPrivilege
lea ecx, [esp + 0x18]
call fcn.00496856
call fcn.00420bd2
push eax
lea ecx, [esp + 0x14]
call fcn.00423e41
lea eax, [esp + 0x10]
mov byte [esp + 0x278], 1
push eax
mov ecx, esi
call fcn.00425588
test eax, eax
jns 0x4259b5
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.0042574f
test eax, eax
jns 0x4259b5
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x25c], ebx
mov ecx, esi
mov byte [esp + 0x278], 2
call fcn.00425577
push eax
lea ecx, [esp + 0x30]
call fcn.00425a54
test eax, eax
jne 0x425970
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x425a11
call fcn.00424a9b
mov esi, eax
jmp 0x425a16
cmp dword [esp + 0x25c], 0
je 0x425a11
lea eax, [esp + 0x54]
push eax
call fcn.004241d7
pop ecx
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x18]
call fcn.0042415e
mov byte [esp + 0x278], 1
cmp dword [esp + 0x2c], 0
je 0x4259b5
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x10]
call fcn.00496502
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.00425c4a
mov esi, ebx
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004206ab
or dword [esp + 0x278], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004965f3
mov eax, esi
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret 4
mov esi, 0x80004005
mov byte [esp + 0x278], 1
cmp dword [esp + 0x2c], 0
je 0x4259cc
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x2c], ebx
jmp 0x4259cc