joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e69
Capabilities:
Create process on windows

Disassembly:
push 0x16c
mov eax, 0x433bed
call fcn.0041af0e
mov ebx, ecx
xor eax, eax
lea edi, [ebp - 0xcc]
stosd dword es:[edi], eax
push 0x44
pop esi
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xbc]
xor edi, edi
push edi
push eax
call fcn.0041c400
add esp, 0xc
mov dword [ebp - 0xbc], esi
lea ecx, [ebp - 0x58]
call fcn.00401dce
mov dword [ebp - 4], edi
cmp dword [ebp - 0x48], edi
je 0x402065
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
lea ecx, [ebp - 0x16]
mov eax, esi
xor edx, edx
push 0xa
pop esi
div esi
sub ecx, 2
mov esi, eax
lea eax, [edx + 0x30]
mov word [ecx], ax
test esi, esi
jne 0x401ec1
push ecx
lea eax, [ebp - 0x16]
push eax
push ecx
lea ecx, [ebp - 0x130]
call fcn.00404452
mov eax, 0x7ffffffe
mov byte [ebp - 4], 1
sub eax, dword [ebp - 0x48]
cmp eax, 1
jb 0x402073
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
jb 0x401f0b
mov eax, dword [ebp - 0x58]
push dword [ebp - 0x48]
mov esi, 0x442670
push eax
push 1
push esi
push ecx
push dword [ebp - 0xd0]
lea ecx, [ebp - 0x118]
call fcn.0040357c
push 0x442678
lea edx, [ebp - 0x118]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x178]
call fcn.004032e7
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x160]
mov edx, eax
mov dword [esp], str._cleanup_
call fcn.004032e7
pop ecx
push ebx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004040de
push eax
lea ecx, [ebp - 0x100]
call fcn.00402c56
push 0x442674
lea edx, [ebp - 0x100]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x148]
call fcn.004032e7
pop ecx
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 6
push ecx
push eax
push dword [ebp - 0xd0]
lea ecx, [ebp - 0xe8]
call fcn.00403406
push esi
lea edx, [ebp - 0xe8]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x70]
call fcn.004032e7
pop ecx
lea ecx, [ebp - 0xe8]
call fcn.00404484
lea ecx, [ebp - 0x148]
call fcn.00404484
lea ecx, [ebp - 0x100]
call fcn.00404484
lea ecx, [ebp - 0x160]
call fcn.00404484
lea ecx, [ebp - 0x178]
call fcn.00404484
lea ecx, [ebp - 0x118]
call fcn.00404484
lea ecx, [ebp - 0x130]
call fcn.00404484
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
jb 0x402019
mov ecx, dword [ebp - 0x70]
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
jb 0x402025
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0xcc]
push edx
lea edx, [ebp - 0xbc]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40205d
push dword [ebp - 0xc8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xcc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x70]
call fcn.00404484
lea ecx, [ebp - 0x58]
call fcn.00404484
call fcn.0041aebd
ret
call fcn.0040451c
int3
Function at 0x402079
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4480e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 7
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4020cd
push edi
lea eax, [ebp - 8]
push eax
push 0x400000
push dword [0x44c784]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4020c6
cmp dword [ebp - 8], edi
jne 0x4020a6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041a4ab
leave
ret
Function at 0x4048cb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x4048d3
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4048e6
test al, 0x10
jne 0x4048e6
mov al, 1
ret
xor al, al
ret
Function at 0x404d6f
Capabilities:
Move file

Disassembly:
push 0x24
mov eax, 0x43404e
call fcn.0041af0e
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x14], edi
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov dword [ebp - 4], ecx
mov ebx, dword [esi + 0x14]
push 0x5c
pop ecx
mov word [ebp - 0x18], cx
mov word [ebp - 0x16], cx
mov word [ebp - 0x12], cx
mov ecx, esi
push 0x3f
pop eax
mov word [ebp - 0x14], ax
cmp ebx, 8
jb 0x404dbf
mov ecx, dword [esi]
push ecx
lea edx, [ebp - 0x18]
call fcn.0040790a
pop ecx
test al, al
jne 0x404de6
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x28], ax
mov ecx, esi
cmp ebx, 8
jb 0x404def
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push ecx
push ecx
call fcn.004079c3
add esp, 8
mov ecx, eax
mov eax, esi
cmp ebx, 8
jb 0x404e07
mov eax, dword [esi]
lea eax, [eax + ecx*2]
mov ecx, esi
add eax, 2
cmp ebx, 8
jb 0x404e16
mov ecx, dword [esi]
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x30]
call fcn.00407419
mov ebx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x30]
lea eax, [ebx + 0x20]
push eax
call fcn.00405cc8
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
jb 0x404e40
mov eax, dword [ebp - 0x30]
lea eax, [eax + ebx*2]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.00404cf0
push 8
pop ebx
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x1c], ebx
jb 0x404e5c
mov ecx, dword [ebp - 0x30]
mov eax, esi
cmp dword [esi + 0x14], ebx
jb 0x404e65
mov eax, dword [esi]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x404e95
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, esi
call fcn.00404797
and dword [edi], 0
and dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
jmp 0x404ea0
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.00402c56
cmp dword [ebp - 0x1c], ebx
jb 0x404eb7
push dword [ebp - 0x30]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
call fcn.0041aebd
ret
Function at 0x409439
Capabilities:
Create process on windows

Disassembly:
push 0x114
mov eax, 0x434680
call fcn.0041af7a
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0xd8]
mov dword [ebp - 4], ebx
call fcn.004049b9
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x409466
mov eax, dword [eax]
xor ecx, ecx
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x34], cx
lea ecx, [ebp - 0x34]
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 7
call fcn.004030d4
lea ecx, [ebp - 0xd8]
call fcn.00403003
push 0x442a70
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x120]
call fcn.00403291
pop ecx
push 0x4429d8
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x108]
call fcn.004032e7
pop ecx
push 0x442a68
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xf0]
call fcn.004032e7
pop ecx
push esi
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004040de
push eax
lea ecx, [ebp - 0xc0]
call fcn.00402c56
push 0x442670
lea edx, [ebp - 0xc0]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4c]
call fcn.004032e7
pop ecx
lea ecx, [ebp - 0xc0]
call fcn.00404484
lea ecx, [ebp - 0xf0]
call fcn.00404484
lea ecx, [ebp - 0x108]
call fcn.00404484
lea ecx, [ebp - 0x120]
call fcn.00404484
push 0x40
lea eax, [ebp - 0x90]
mov dword [ebp - 0x94], 0x44
push ebx
push eax
call fcn.0041c400
xor eax, eax
lea edi, [ebp - 0xa8]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x4c]
add esp, 0xc
cmp dword [ebp - 0x38], 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jb 0x409563
mov ecx, dword [ebp - 0x4c]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
jb 0x40956f
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0xa8]
push edx
lea edx, [ebp - 0x94]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4095a7
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x4c]
call fcn.00404484
mov eax, dword [ebp - 0x20]
cmp eax, 8
jb 0x4095f5
mov ecx, dword [ebp - 0x34]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x98], ecx
cmp eax, 0x1000
jb 0x4095ec
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0040129b
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x98]
push eax
push ecx
call fcn.0041a4e9
pop ecx
pop ecx
call fcn.0041aecc
ret

Function at 0x40a5b1
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push 0x10
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40a5fd
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40a5eb
mov eax, 0x10000
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi], 0x40
inc eax
mov dword [0x44a758], esi
pop esi
leave
ret
Function at 0x40a6bf
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [0x44a758]
mov dword [ebp - 0x14], edx
mov esi, dword [edi + 4]
mov dword [ebp - 0xc], esi
jmp 0x40a6ed
mov eax, dword [esi + 0xc]
shl eax, 2
cmp eax, edx
ja 0x40a7fb
mov dword [ebp - 0xc], esi
mov esi, dword [esi + 4]
test esi, esi
jne 0x40a6d9
lea eax, [edx + 0x10]
xor ecx, ecx
xor edx, edx
div dword [edi + 8]
test edx, edx
setne cl
xor edx, edx
add ecx, eax
mov eax, dword [edi + 0xc]
div dword [edi + 8]
cmp ecx, eax
jae 0x40a712
mov ecx, eax
jmp 0x40a713
inc ecx
mov edx, dword [ebp + 8]
mov esi, 0x80000000
mov dword [ebp - 0x10], ecx
mov eax, esi
imul ecx, dword [edi + 8]
lea ebx, [edx - 0x80000000]
sub eax, ecx
mov dword [ebp - 8], ecx
cmp ebx, eax
jb 0x40a73c
mov ebx, esi
sub ebx, ecx
jmp 0x40a73c
mov ecx, dword [ebp - 8]
push edx
mov edx, ecx
mov ecx, ebx
call fcn.0040a600
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40a857
push dword [edi]
push 0x3000
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp + 8]
mov esi, eax
test esi, esi
je 0x40a739
cmp dword [edi + 4], 0
jne 0x40a776
mov dword [edi + 4], esi
jmp 0x40a7ac
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push 0x40
push dword [edi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40a857
lea eax, [ebp - 4]
mov dword [ebx + 4], esi
push eax
push 0x20
push dword [edi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40a857
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 8]
mov ecx, eax
shr ecx, 8
xor ecx, eax
shr ecx, 8
xor ecx, eax
shl eax, 4
shr ecx, 4
xor ecx, eax
and ecx, 0xff0
lea eax, [ecx + 0x10]
add eax, esi
mov dword [esi + 8], eax
mov eax, edx
sub eax, ecx
sub eax, 0x10
shr eax, 2
mov dword [esi + 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20
push edx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40a857
lea eax, [ebp - 4]
push eax
push 0x40
push dword [edi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40a857
mov eax, dword [ebp - 0x14]
test al, 3
mov ebx, dword [esi + 8]
push 0
pop ecx
setne cl
shr eax, 2
add ecx, eax
sub dword [esi + 0xc], ecx
lea eax, [ebx + ecx*4]
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push 0x20
push dword [edi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test ebx, ebx
je 0x40a853
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40a857
mov eax, ebx
jmp 0x40a859
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a96f
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x44a748], 0
jne 0x40aa2b
and dword [ebp - 4], 0
mov eax, dword [0x44a750]
test eax, eax
jne 0x40a9ac
push 4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x44a750], eax
test eax, eax
je 0x40aa32
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x448b28], eax
cmp eax, 0xffffffff
je 0x40aa32
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x448b2c], eax
cmp eax, 0xffffffff
je 0x40aa32
push esi
push 0x44cc28
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.0040a5b1
push str.ntdll
mov dword [0x44a748], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x40aa2a
push str.NtQueryInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40aa2a
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
js 0x40aa2a
mov eax, dword [ebp - 0x18]
mov dword [0x44c794], eax
pop esi
mov eax, dword [0x44a748]
leave
ret
xor eax, eax
leave
ret

Function at 0x40aa36
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x44cc28
mov ebx, edx
mov esi, ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40aa85
mov edi, dword [esi]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov dword [esi], ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push 0x44cc28
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40aa97
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
push 0x44cc28
xor edi, edi
mov ebx, dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40aafa
mov ecx, dword [esi + 0x5c]
test ebx, ebx
je 0x40aad5
mov eax, esi
sub eax, dword [esi + 0x60]
mov dword [ecx], eax
jmp 0x40aad7
mov dword [ecx], esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x44a74c]
xor edi, edi
mov dword [esi + 0x50], eax
inc edi
mov dword [0x44a74c], esi
push 0x44cc28
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b119
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4480e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov ebx, ecx
mov dword [0x44a320], edi
mov esi, edi
mov dword [ebp - 0x1c], eax
mov edi, ebx
mov ecx, edi
call fcn.0040b32c
cmp eax, 0xffffffff
je 0x40b15b
add esi, eax
add edi, eax
cmp esi, 5
jb 0x40b146
cmp esi, 5
mov dword [ebp - 0x10], esi
push 0
sbb esi, esi
not esi
pop edi
and esi, dword [ebp - 0x10]
je 0x40b253
lea edx, [esi + 0x26]
push ebx
call fcn.0040a6bf
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
je 0x40b253
lea ecx, [esi + 0x26]
push ecx
mov ecx, eax
call fcn.0040a56a
mov eax, dword [ebp - 0x10]
mov edx, ebx
push esi
lea ecx, [eax + 0x1c]
mov dword [eax], ebx
mov dword [ebp - 0xc], ecx
mov dword [eax + 4], 0x409eb0
mov dword [eax + 0xc], esi
mov dword [eax + 8], ecx
call fcn.0040a590
add esp, 8
test esi, esi
je 0x40b1c3
cmp byte [edi + ecx], 0x90
jne 0x40b1c3
inc edi
cmp edi, esi
jb 0x40b1b8
lea eax, [edi + 5]
cmp eax, esi
ja 0x40b1dd
mov al, byte [edi + ecx]
cmp al, 0xe8
je 0x40b1d5
cmp al, 0xe9
jne 0x40b1dd
mov eax, ebx
sub eax, ecx
add dword [edi + ecx + 1], eax
mov eax, 0x25ff
mov word [ecx + esi], ax
add ecx, 6
add ecx, esi
lea eax, [ebx + esi]
push 5
pop edi
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
mov byte [ebp - 0xc], 0xe9
mov dword [eax + esi + 2], ecx
mov eax, 0x409eb0
sub eax, ebx
sub eax, edi
mov dword [ebp - 0xb], eax
lea eax, [ebp - 0x20]
push eax
push 0x20
lea eax, [esi + 0x26]
mov esi, dword [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40b253
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [ebx], eax
mov al, byte [ebp - 8]
mov byte [ebx + 4], al
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
xor eax, eax
mov dword [0x44a320], esi
inc eax
jmp 0x40b255
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a4ab
leave
ret
Function at 0x40b264
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4480e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x44a320]
mov eax, dword [esi]
cmp byte [eax], 0xe9
jne 0x40b31d
lea ecx, [ebp - 0xa0]
push ecx
push 0x40
push dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40b31d
push ebx
mov ebx, dword [esi + 8]
lea ecx, [ebp - 0x9c]
push edi
mov edi, dword [esi + 0xc]
mov edx, ebx
push edi
call fcn.0040a590
add esp, 4
xor ecx, ecx
test edi, edi
je 0x40b2ce
cmp byte [ebp + ecx - 0x9c], 0x90
jne 0x40b2ce
inc ecx
cmp ecx, edi
jb 0x40b2bf
lea eax, [ecx + 5]
cmp eax, edi
ja 0x40b2ed
mov al, byte [ebp + ecx - 0x9c]
cmp al, 0xe8
je 0x40b2e4
cmp al, 0xe9
jne 0x40b2ed
sub ebx, dword [esi]
add dword [ebp + ecx - 0x9b], ebx
mov ecx, dword [esi]
lea edx, [ebp - 0x9c]
push edi
call fcn.0040a590
add esp, 4
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
push dword [esi + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
pop edi
inc eax
pop ebx
jmp 0x40b31f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041a4ab
leave
ret
Function at 0x40d527
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4341b2
mov eax, dword fs:[0]
push eax
push ebx
push edi
mov eax, dword [0x4480e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov byte [edx + 0xb], 0xb
lea ecx, [edx + 0x4c]
xor ebx, ebx
mov edi, ecx
mov byte [edx], bl
xor eax, eax
mov dword [edx + 0x18], ebx
mov dword [edx + 0xc], ebx
mov dword [edx + 0x10], ebx
mov dword [edx + 0x14], ebx
mov dword [edx + 0x28], ebx
mov dword [edx + 0x1c], ebx
mov dword [edx + 0x20], ebx
mov dword [edx + 0x24], ebx
mov dword [edx + 0x38], ebx
mov dword [edx + 0x2c], ebx
mov dword [edx + 0x30], ebx
mov dword [edx + 0x34], ebx
mov dword [edx + 0x48], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, edx
mov dword [edx + 0x3c], ecx
mov dword [edx + 0x40], ebx
mov dword [edx + 0x44], 0xf
mov byte [ecx], bl
mov dword [edx + 0x5c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
leave
ret

Function at 0x40d8c2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push str.NtSuspendProcess
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtResumeProcess
push dword [ebp + 8]
mov dword [0x44cc50], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationProcess
push dword [ebp + 8]
mov dword [0x44cc54], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationProcess
push dword [ebp + 8]
mov dword [0x44cc58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationThread
push dword [ebp + 8]
mov dword [0x44cc5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationThread
push dword [ebp + 8]
mov dword [0x44cc60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtCompareTokens
push dword [ebp + 8]
mov dword [0x44cc64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlNtStatusToDosError
push dword [ebp + 8]
mov dword [0x44cc68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlCaptureStackBackTrace
push dword [ebp + 8]
mov dword [0x44cc6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x44cc70], eax
mov eax, 0x44cc50
pop ebp
ret 4
Function at 0x40e14d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4480e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x28], 0x33323130
mov ecx, dword [edx]
mov dword [ebp - 0x24], 0x37363534
mov dword [ebp - 0x20], 0x42413938
mov eax, dword [esi]
mov dword [ebp - 0x1c], 0x46454443
mov dword [ebp - 0x18], 0x4a494847
mov dword [ebp - 0x14], 0x4e4d4c4b
movzx eax, byte [eax]
shr eax, 4
mov dword [ebp - 0x10], 0x5251504f
mov dword [ebp - 0xc], 0x56555453
mov dword [ebp - 8], 0x5a595857
mov al, byte [ebp + eax - 0x28]
mov byte [ecx], al
inc dword [edx]
mov eax, dword [esi]
mov ecx, dword [edx]
mov dword [ebp - 0x28], 0x33323130
mov dword [ebp - 0x24], 0x37363534
movzx eax, byte [eax]
and eax, 0xf
mov dword [ebp - 0x20], 0x42413938
mov dword [ebp - 0x1c], 0x46454443
mov dword [ebp - 0x18], 0x4a494847
mov dword [ebp - 0x14], 0x4e4d4c4b
mov dword [ebp - 0x10], 0x5251504f
mov dword [ebp - 0xc], 0x56555453
mov dword [ebp - 8], 0x5a595857
mov al, byte [ebp + eax - 0x28]
mov byte [ecx], al
inc dword [edx]
mov ecx, dword [ebp - 4]
inc dword [esi]
xor ecx, ebp
pop esi
call fcn.0041a4ab
leave
ret