joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f5cb
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x4cae18
lea ecx, [ebp - 8]
call fcn.004021d0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0040b4a0
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x42f5f8
mov eax, dword [eax + 4]
jmp 0x42f5fb
add eax, 4
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor esi, esi
push esi
push esi
push eax
call edi
mov ebx, eax
neg ebx
push esi
sbb bl, bl
push 1
lea ecx, [ebp - 0x3c]
inc bl
call fcn.00402ea0
test bl, bl
je 0x42f629
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push 0x4cae28
lea ecx, [ebp - 8]
call fcn.004021d0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0040b4a0
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x42f650
mov eax, dword [eax + 4]
jmp 0x42f653
add eax, 4
push esi
push esi
push eax
call edi
push 0
push 1
lea ecx, [ebp - 0x3c]
mov esi, eax
call fcn.00402ea0
test esi, esi
jne 0x42f66e
mov al, 1
jmp 0x42f624
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045565c
lea ecx, [ebp - 8]
mov ebx, eax
mov dword [esp], 0x4cae28
call fcn.004021d0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0040b4a0
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x42f6b0
mov eax, dword [eax + 4]
jmp 0x42f6b3
add eax, 4
push esi
push ebx
push eax
call edi
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x3c]
call fcn.00402ea0
xor eax, eax
lea ecx, [ebp - 0x20]
mov word [ebx + esi*2], ax
call fcn.0041e610
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0040aa70
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x3c]
push 0x7c
push eax
call fcn.0040af00
add esp, 0xc
push edi
push 1
lea ecx, [ebp - 0x3c]
call fcn.00402ea0
push ebx
call fcn.00456149
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
pop ecx
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 3
jae 0x42f72b
mov bl, 1
lea ecx, [ebp - 0x20]
call fcn.00403150
push dword [ebp - 0x20]
call fcn.00455c1a
pop ecx
mov al, bl
jmp 0x42f624
push 0x31
pop esi
push 0x4cae38
lea ecx, [ebp - 8]
call fcn.004021d0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0040b4a0
pop ecx
pop ecx
push eax
push 2
lea ecx, [ebp - 0x20]
call fcn.004056e0
push eax
call fcn.0040ee90
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x3c]
mov bl, al
call fcn.00402ea0
test bl, bl
je 0x42f773
mov esi, 0x180031
push edi
lea ecx, [ebp - 0x20]
call fcn.004056e0
cmp dword [eax + 0x18], 8
jb 0x42f787
mov edi, dword [eax + 4]
jmp 0x42f78a
lea edi, [eax + 4]
push 1
lea ecx, [ebp - 0x20]
call fcn.004056e0
cmp dword [eax + 0x18], 8
jb 0x42f79f
mov eax, dword [eax + 4]
jmp 0x42f7a2
add eax, 4
push dword [ebp + 8]
push esi
push edi
push eax
call fcn.0042e849
add esp, 0x10
mov bl, al
jmp 0x42f713
Function at 0x4309a7
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x573510]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], 1
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x430a16
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x430a0d
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.0045633d
leave
ret

Function at 0x430a26
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x573510]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004561f0
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
je 0x430a8f
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
test eax, eax
je 0x430a8f
cmp dword [ebp - 0x11c], 6
jae 0x430a8f
xor eax, eax
inc eax
jmp 0x430aa4
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x430a8a
call fcn.004309a7
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045633d
leave
ret

Function at 0x430bf9
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x573510]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x24], eax
call fcn.0044f827
movzx eax, al
pop ecx
neg eax
sbb eax, eax
push 1
add eax, 0x80000002
push edi
push eax
lea ecx, [ebp - 0x2c]
xor bl, bl
call fcn.00413b40
cmp dword [ebp - 0x2c], 0
je 0x430ca8
push esi
lea ecx, [ebp - 0x20]
call fcn.0040aa70
push 0x4e1430
lea ecx, [ebp - 0x20]
call fcn.00411ca0
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x430c61
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x430c84
push dword [ebp - 0x24]
lea ecx, [ebp - 0x2c]
push 0x4e0ee0
call fcn.00413dc0
test eax, eax
jne 0x430c84
mov bl, 1
jmp 0x430c9c
push dword [ebp - 0x24]
lea ecx, [ebp - 0x2c]
push 0x4e0fa0
call fcn.00413dc0
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00402ea0
lea ecx, [ebp - 0x2c]
call fcn.00413b90
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0045633d
leave
ret
Function at 0x4311c7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x573510]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.004561f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x244]
call fcn.0040aa70
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00430ea4
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x244]
call fcn.00402d90
push ebx
push 1
lea ecx, [ebp - 0x260]
call fcn.00402ea0
push 0x4c9c48
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00430bc4
mov eax, dword [ebp - 0x224]
add esp, 0xc
cmp dword [ebp - 0x210], 8
jae 0x431291
lea eax, [ebp - 0x224]
push eax
push ebx
mov edi, 0x4c9c38
push edi
mov esi, 0x4c9c20
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
je 0x4312de
cmp eax, 2
je 0x4312de
xor esi, esi
push ebx
push 1
lea ecx, [ebp - 0x228]
call fcn.00402ea0
push ebx
push 1
lea ecx, [ebp - 0x244]
call fcn.00402ea0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045633d
leave
ret
cmp dword [ebp - 0x210], 8
mov eax, dword [ebp - 0x224]
jae 0x4312f3
lea eax, [ebp - 0x224]
push eax
push 0x4c9c1c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor esi, esi
inc esi
jmp 0x4312b1
Function at 0x4375b9
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x573510]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [ebp + 0x14]
push eax
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x2f4], ecx
call fcn.0045712c
pop ecx
push eax
lea ecx, [esi + 0x2c]
call fcn.0044137b
push ebx
call fcn.0045712c
xor ebx, ebx
pop ecx
mov dword [ebp - 0x2ec], eax
cmp edi, ebx
je 0x43761b
push edi
call fcn.0045712c
pop ecx
mov dword [ebp - 0x2d4], eax
jmp 0x437621
mov dword [ebp - 0x2d4], ebx
mov eax, dword [ebp - 0x2d4]
push 0x40
mov dword [ebp - 0x2f0], eax
lea eax, [ebp - 0x334]
push ebx
push eax
mov dword [ebp - 0x338], 0x44
call fcn.004561f0
add esp, 0xc
cmp edi, ebx
je 0x437659
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x330], eax
lea ecx, [ebp - 0x2e4]
call fcn.00416e30
mov edi, dword [esi + 0x10]
lea ecx, [ebp - 0x2e4]
call fcn.00416e80
push eax
lea eax, [ebp - 0x338]
push eax
push ebx
push ebx
push 0x100040c
push ebx
push ebx
push ebx
push dword [ebp - 0x2ec]
push dword [ebp - 0x2e8]
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x4376d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x2e4]
call fcn.00416e40
push ebx
lea ecx, [ebp - 0x2f0]
call fcn.0044137b
push ebx
lea ecx, [ebp - 0x2ec]
call fcn.0044137b
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045633d
leave
ret 0x10
push dword [ebp - 0x2e4]
call fcn.00437504
pop ecx
push dword [ebp - 0x2e4]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x43770f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push dword [ebp - 0x2e4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4376a3
mov eax, dword [ebp - 0x2e0]
push dword [esi + 0x14]
mov dword [ebp - 0x2d4], eax
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x4376f8
lea eax, [ebp - 0x2d0]
push eax
push dword [ebp - 0x2e0]
mov dword [ebp - 0x2d0], 0x1003f
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4376f8
mov ecx, dword [ebp - 0x2f4]
mov edi, dword [ebp - 0x220]
lea eax, [ebp - 0x2e4]
push eax
call fcn.00416f10
test al, al
jne 0x437781
push ebx
push dword [ebp - 0x2e4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor esi, esi
inc esi
jmp 0x4376a3
push edi
push dword [ebp - 0x2e8]
call fcn.00437440
pop ecx
pop ecx
mov dword [esi + 0x28], eax
lea eax, [ebp - 0x2e4]
push eax
mov ecx, esi
call fcn.00416ec0
xor esi, esi
jmp 0x4376a3
Function at 0x43781a
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 0x14]
xor edi, edi
push edi
add eax, ecx
push eax
push edi
push 0x8000004
push edi
push 0xffffffffffffffff
mov dword [ebp - 8], edi
lea ebx, [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
mov ecx, ebx
call fcn.004138b0
push dword [ebx]
call fcn.00412d20
pop ecx
test al, al
jne 0x437866
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, dword [esi]
push edi
push edi
push 6
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebx]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x43789b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [ebp - 4]
call fcn.00413900
mov eax, edi
jmp 0x43785f
mov ebx, dword [ebx]
push edi
push edi
push edi
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x437887
mov ebx, dword [ebp + 0x10]
add eax, ebx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.00437406
mov eax, dword [ebp - 4]
add esp, 0xc
push 4
push 0x576ed0
push 0x4cd300
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [0x576ed0], eax
call fcn.0043748d
mov dword [0x576ed0], edi
cmp eax, edi
jne 0x43790f
push 4
push 0x576f48
push 0x4cd2ec
mov ecx, esi
mov dword [0x576f48], ebx
call fcn.0043748d
mov dword [0x576f48], edi
cmp eax, edi
je 0x437920
cmp eax, 1
je 0x437887
xor eax, eax
inc eax
jmp 0x43788d
mov eax, dword [ebp + 0x14]
push 4
push 0x576f4c
push 0x4cd2d4
mov ecx, esi
mov dword [0x576f4c], eax
call fcn.0043748d
mov dword [0x576f4c], edi
cmp eax, edi
jne 0x43790f
push 0x34
call fcn.004560e4
pop ecx
cmp eax, edi
je 0x43796a
push dword [ebp + 8]
mov edx, dword [esi + 8]
push dword [esi + 0x24]
mov ebx, dword [esi]
push dword [esi + 0x1c]
mov ecx, eax
push edx
push ebx
call fcn.0043a5a7
jmp 0x43796c
xor eax, eax
lea ebx, [esi + 0x20]
push eax
mov ecx, ebx
call fcn.00437596
mov ecx, dword [ebx]
push 0x400
push dword [ebp + 0x10]
push dword [ebp - 8]
call fcn.0043a8aa
test al, al
jne 0x437995
push 8
pop edi
jmp 0x43788f
mov ecx, esi
call fcn.00417000
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43788f
Function at 0x43949b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x573510]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x28], ebx
call fcn.004021a0
push 0x4cd658
push 4
push ebx
lea ecx, [ebp - 0x20]
call fcn.0043906c
or esi, 0xffffffff
test eax, eax
jne 0x439505
lea eax, [ebp - 0x21]
push eax
push esi
push 4
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x44]
call fcn.00405d00
push esi
push ebx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x20]
call fcn.00402d90
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.00402ea0
lea eax, [ebp - 0x20]
push eax
call fcn.00439098
pop ecx
test al, al
je 0x439533
mov byte [edi], bl
xor esi, esi
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.00402ea0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045633d
leave
ret
mov eax, esi
lea ecx, [ebp - 0x21]
push ecx
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x44]
call fcn.00405d00
push esi
push ebx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x20]
call fcn.00402d90
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.00402ea0
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x43956c
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
jne 0x439590
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x439597
cmp eax, 3
je 0x439597
cmp eax, 0x7b
je 0x439597
mov esi, eax
jmp 0x439517
test eax, 0x400
jne 0x4395b6
push 1
push esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x28], 0x5c
call fcn.0040edd0
cmp eax, esi
jne 0x439535
jmp 0x439513
mov byte [edi], 1
jmp 0x439515
Function at 0x439cc8
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push edi
mov ebx, ecx
xor edi, edi
cmp byte [ebx + 0x50], 0
mov dword [ebp - 0xc], edi
jne 0x439ce7
mov eax, 0x3f0
jmp 0x439dd3
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push eax
push edi
push edi
push 2
push dword [ebx + 0x48]
mov dword [ebp - 4], edi
call esi
cmp dword [ebp - 4], edi
je 0x439d2b
push dword [ebp - 4]
call fcn.0045565c
pop ecx
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
push edi
push 2
push dword [ebx + 0x48]
call esi
test eax, eax
jne 0x439d36
push edi
call fcn.00456149
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x439dd2
and dword [ebp - 8], 0
cmp dword [edi], 0
jbe 0x439dc9
mov esi, dword [ebp + 8]
add edi, 4
mov eax, dword [edi + 4]
test al, 0x20
jne 0x439db7
test eax, 0xc0000000
jne 0x439db7
test esi, esi
je 0x439da1
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x44
cdq
pop ecx
idiv ecx
and dword [ebp + 8], 0
test eax, eax
jbe 0x439da1
push dword [edi]
mov ecx, esi
push dword [ebp + 8]
call fcn.00439888
mov ecx, eax
call fcn.0043a1a7
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x439db7
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x44
cdq
pop ecx
idiv ecx
inc dword [ebp + 8]
cmp dword [ebp + 8], eax
jb 0x439d6f
push dword [edi]
lea ecx, [ebp - 0x50]
call fcn.0043a18e
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebx + 0x30]
call fcn.00436e14
inc dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
add edi, 8
cmp ecx, dword [eax]
jb 0x439d49
mov edi, eax
push edi
call fcn.00456149
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x439e5d
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
mov ebx, ecx
xor edi, edi
cmp byte [ebx + 0x50], 0
mov dword [ebp - 0x10], edi
jne 0x439e7c
mov eax, 0x3f0
jmp 0x439f7d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push eax
push edi
push edi
push 3
push dword [ebx + 0x48]
mov dword [ebp - 4], edi
call esi
cmp dword [ebp - 4], edi
je 0x439ec0
push dword [ebp - 4]
call fcn.0045565c
pop ecx
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
push edi
push 3
push dword [ebx + 0x48]
call esi
test eax, eax
jne 0x439ecb
push edi
call fcn.00456149
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x439f7c
and dword [ebp - 0xc], 0
cmp dword [edi], 0
jbe 0x439f73
mov esi, dword [ebp + 8]
lea eax, [edi + 4]
mov dword [ebp - 8], eax
test esi, esi
je 0x439f51
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
and dword [ebp + 8], 0
test eax, eax
jbe 0x439f51
and dword [ebp - 0x18], 0
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x14]
mov ecx, esi
stosd dword es:[edi], eax
call fcn.004056e0
cmp dword [eax + 0x18], 8
jb 0x439f18
mov eax, dword [eax + 4]
jmp 0x439f1b
add eax, 4
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp - 0x14]
jne 0x439f3a
mov eax, dword [eax]
cmp eax, dword [ebp - 0x18]
je 0x439f5e
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
inc dword [ebp + 8]
cmp dword [ebp + 8], eax
jb 0x439ef9
mov edi, dword [ebp - 0x10]
push dword [ebp - 8]
lea ecx, [ebx + 0x18]
call fcn.0044c08d
jmp 0x439f61
mov edi, dword [ebp - 0x10]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], 0xc
cmp eax, dword [edi]
jb 0x439ee1
push edi
call fcn.00456149
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x43d5a6
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x573510]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
cmp byte [ebp + 8], bl
jne 0x43d5ce
cmp dword [edi + 0x1c], ebx
jne 0x43d5fc
mov al, 1
jmp 0x43d69c
push ebx
push 0x444fc6
push 1
push 0x4cd83c
mov esi, 0x4cd934
push esi
call fcn.0043ceae
push 1
push 0x4450e4
push 1
push 0x4cd7c8
push esi
mov ecx, edi
call fcn.0043ceae
mov esi, dword [edi + 0x1c]
mov eax, dword [edi]
mov eax, dword [eax]
push 0x40
push 0x1000
shl esi, 6
add esi, 0x50
push esi
push ebx
push eax
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0x60
push ebx
mov dword [ebp - 0x48], ebx
mov ebx, 0x576f78
push ebx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 0x10
call fcn.004561f0
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push esi
push dword [ebp - 0x58]
mov ecx, edi
call fcn.0043d111
test al, al
je 0x43d69a
lea eax, [ebp - 0x60]
push eax
push 0x10
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x43d69a
cmp dword [ebp - 0x60], 0x10
jne 0x43d69a
lea eax, [ebp - 0x64]
push eax
push 0x20
push esi
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [edi]
push 0x60
push ebx
push 0x4cda04
call fcn.0043748d
neg eax
sbb al, al
inc al
jmp 0x43d69c
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045633d
leave
ret 4

Function at 0x43e570
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x34]
push ebx
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x43e604
cmp dword [ebp + 0xc], 0
mov eax, 0x101c01
mov dword [ebp - 4], 0x100c43
je 0x43e5b8
mov eax, 0x1fffff
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push 1
push 0
push eax
push ebx
push dword [ebp + 8]
push dword [ebx]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x43e5e7
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x43e602
push 1
push 0
push dword [ebp - 4]
lea eax, [ebx + 4]
push eax
push dword [ebp + 8]
push dword [eax]
call esi
push eax
call edi
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x444b03
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push esi
mov esi, ecx
mov eax, dword [esi]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x444b23
xor al, al
jmp 0x444b8c
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [esi + 8]
call edi
mov ebx, 0x102
jmp 0x444b84
cmp eax, 0x80
je 0x444b88
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x444b88
mov ecx, esi
call fcn.004422e8
mov byte [ebp - 1], al
test al, al
je 0x444b6a
mov eax, dword [esi]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
test eax, eax
jne 0x444b88
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x444b88
cmp byte [ebp - 1], 0
jne 0x444b8f
push 0xffffffffffffffff
push dword [esi + 8]
call edi
cmp eax, ebx
jne 0x444b39
xor al, al
pop edi
pop ebx
pop esi
leave
ret
mov al, 1
jmp 0x444b8a