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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002a071
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10040014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], 0
cmp dword [esi + 0x14], 8
jb 0x1000e973
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1000e98e
mov eax, edx
nop dword [eax]
cmp word [eax], 0x25
je 0x1000e9c1
add eax, 2
sub ecx, 1
jne 0x1000e980
push esi
mov ecx, edi
call fcn.10005660
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 1
mov eax, edi
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.10016ee0
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1000e98e
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x1000e98e
push esi
lea ecx, [ebp - 0x28]
call fcn.10005660
mov dword [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1000e9e8
mov eax, dword [esi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x1000ea60
push esi
mov ecx, edi
call fcn.10005660
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1000ea47
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000ea3d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000eb22
push edx
push ecx
call fcn.10017284
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x1000e9a4
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001786e
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [esi + 0x14], 8
jb 0x1000ea87
mov esi, dword [esi]
mov ecx, dword [ebp - 0x34]
inc ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [ebp - 0x2c]
test eax, eax
je 0x1000eac9
cmp eax, dword [ebp - 0x34]
ja 0x1000eac9
xor ecx, ecx
mov word [esi + eax*2], cx
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000eab0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10005860
push esi
call fcn.10017292
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi + 0x10], 0
add esp, 4
mov dword [edi + 0x14], 0
xor eax, eax
movups xmmword [edi], xmm0
mov word [ebp - 0x28], ax
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], al
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x1000e9a4
call fcn.1001afe9
int3
Function at 0x10010e50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x10040014]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x10010ed2
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x10010ed2
test ecx, ecx
je 0x10010ece
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x10010e90
xor eax, eax
jmp 0x10010ed7
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10010ee1
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10016ee0
add esp, 0xc
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002a7d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10040014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100112d6
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10011380
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.10011590
test al, al
je 0x1001132f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1001136c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10011362
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001139d
push edx
push ecx
call fcn.10017284
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, edi
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.10016ee0
mov esp, ebp
pop ebp
ret
call fcn.1001afe9
int3
Function at 0x100125a0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x10040014]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x10012605
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100125e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10012605
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10016ee0
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.10016ee0
add esp, 8
ret 4

Function at 0x10013410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002acd0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10040014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
test esi, esi
je 0x1001354f
cmp byte [esi + 0x54], 0
je 0x1001354f
add esi, 0x1c
xor bl, bl
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x3c], bl
test esi, esi
je 0x10013490
mov eax, dword [esi]
test eax, eax
je 0x1001348d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10013484
cmp eax, 0x80
je 0x10013484
xor bl, bl
jmp 0x1001348a
mov byte [esi + 4], 1
mov bl, 1
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 0x3c], bl
push ecx
mov edx, ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.1000f110
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x100134c7
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10013515
push 2
push 0
push 0
push edi
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.1000b1d0
mov dword [ebp - 4], 2
test esi, esi
je 0x10013541
test bl, bl
je 0x10013541
mov eax, dword [esi]
test eax, eax
je 0x1001353d
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10016ee0
mov esp, ebp
pop ebp
ret 4
Function at 0x10013840
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002ad10
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10040014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x10013883
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push 0x2c
mov word [edi + 4], 0
mov dword [ebp - 0x18], 0
call fcn.10016ef1
mov esi, eax
mov dword [ebp - 0x20], 0
add esp, 4
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], 0
mov dword [esi], 0
lea eax, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0xc
mov dword [esi + 0xc], eax
xor eax, eax
push 0xc
push str.Advapi32.dll
mov dword [esi + 0x10], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.10005860
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call fcn.1000f7f0
mov ecx, eax
call fcn.1000f8b0
mov dword [esi + 0x28], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x1001394c
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10013942
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013a2a
push edx
push ecx
call fcn.10017284
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
sub esp, 8
mov word [ebp - 0x30], ax
lea eax, [esi + 0x14]
mov dword [ebp - 0x1c], 7
lea ecx, [ebp - 0x18]
push eax
call fcn.10015a20
mov esi, dword [ebp - 0x18]
mov dword [esi], eax
mov dword [ebp - 4], 1
cmp dword [esi], 0
je 0x10013985
lea eax, [esi + 8]
jmp 0x10013987
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x10013997
cmp dword [ebx + 0x14], 8
jb 0x10013999
mov ebx, dword [ebx]
jmp 0x10013999
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x100139ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100139ba
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x100139e3
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100139f8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.10017284
add esp, 8
mov dword [ebp - 0x18], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10016ee0
mov esp, ebp
pop ebp
ret 4
call fcn.1001afe9
int3
Function at 0x10013ed0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002ae85
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10040014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x1050
call fcn.10016ef1
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push 0x1050
push 0
push esi
call fcn.10018a60
lea ecx, [esi + 0x44]
mov dword [esi], 0
mov eax, ecx
mov dword [esi + 4], 0
neg eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
lea edx, [esi + 0x1044]
mov dword [esi + 0x10], 0
and eax, 3
mov dword [esi + 0x14], 0
add esp, 0x10
mov dword [esi + 0x18], 0
add eax, ecx
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [edx], 0
mov dword [esi + 0x1048], 0
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edx
mov byte [ebp - 4], 2
mov dword [esi + 0x104c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov dword [edi], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10015a20
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1003e218
push 0x10018380
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10040014]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x10015a89
xor eax, eax
jmp 0x10015bff
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10015bca
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x10015bca
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10015bca
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x10015bca
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10015bca
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x10015bca
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10015bca
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x10015bca
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10015bca
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x10015bca
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x10015bca
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10015bb3
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x10015ba0
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x10015bb0
jmp 0x10015bca
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.10015c26
test ebx, ebx
jne 0x10015bfd
test esi, esi
je 0x10015bef
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10015bfd
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
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.10016ee0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10015c9c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
add eax, 0xffff0000
push esi
push edi
push eax
call fcn.10015dc3
mov esi, eax
pop ecx
cmp esi, dword [ebp + 8]
jbe 0x10015d2b
mov edi, 0x10000
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x10015cd3
mov esi, 0x4fff0000
jmp 0x10015d26
push 0x1c
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.10018a60
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10015d2b
cmp dword [ebp - 0xc], edi
jne 0x10015d15
cmp dword [ebp - 0x10], edi
jb 0x10015d15
push 0x40
push 0x3000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x10015d2d
sub esi, edi
jmp 0x10015d26
mov eax, dword [ebp - 0x18]
add eax, 0xffff0000
push eax
call fcn.10015dc3
pop ecx
mov esi, eax
cmp esi, dword [ebp + 8]
ja 0x10015cbf
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10015d33
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push dword [ebp + 8]
call fcn.10015dd4
mov esi, eax
pop ecx
cmp esi, dword [ebp + 0xc]
jae 0x10015dbb
mov edi, 0x10000
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x10015d64
mov esi, 0x80010000
jmp 0x10015db6
push 0x1c
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.10018a60
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10015dbb
mov ecx, dword [ebp - 0x10]
cmp dword [ebp - 0xc], edi
jne 0x10015da8
cmp ecx, edi
jb 0x10015da8
push 0x40
push 0x3000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x10015dbd
add esi, edi
jmp 0x10015db6
mov eax, dword [ebp - 0x1c]
add eax, ecx
push eax
call fcn.10015dd4
pop ecx
mov esi, eax
cmp esi, dword [ebp + 0xc]
jb 0x10015d50
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10015dea
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x10040b74]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x10040b70]
test edx, edx
jne 0x10015e36
test eax, eax
je 0x10015e49
mov edx, eax
mov dword [0x10040b74], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x10015e49
cmp ecx, ebx
jb 0x10015e49
cmp ecx, edi
jbe 0x10015f32
mov edx, eax
test eax, eax
jmp 0x10015e6b
test edx, edx
je 0x10015e66
mov eax, dword [edx + 8]
test eax, eax
je 0x10015e66
cmp eax, ebx
jb 0x10015e66
cmp eax, edi
jbe 0x10015f32
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x10040b74], edx
jne 0x10015e4f
movzx eax, si
sub esi, eax
cmp esi, 0x40000000
jbe 0x10015eb0
lea eax, [esi - 0x40000000]
push esi
push eax
call fcn.10015d33
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x10015efa
lea eax, [esi - 0x40000000]
push eax
push ebx
call fcn.10015c9c
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x10015efa
cmp esi, 0x40000000
jae 0x10015edc
lea eax, [esi + 0x40000000]
push eax
push esi
call fcn.10015c9c
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x10015efa
lea eax, [esi + 0x40000000]
push edi
push eax
call fcn.10015d33
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x10015efa
push esi
push ebx
call fcn.10015c9c
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x10015efa
push edi
push esi
call fcn.10015d33
mov edx, eax
pop ecx
pop ecx
test edx, edx
je 0x10015f57
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x10040b70]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10040b74], edx
mov dword [0x10040b70], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
dec esi
jne 0x10015f24
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x10015f57
cmp esi, edi
ja 0x10015f57
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.10018a60
add esp, 0xc
mov eax, esi
jmp 0x10015f59
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10016047
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x1003e238
call fcn.100177f0
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x100160b0
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x100160b0
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x100160b0
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x100160b0
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x100160b9
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.10017836
ret
Function at 0x100160bf
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x100160d1
xor eax, eax
pop ebp
ret
push esi
lea esi, [eax + 0x10000]
xor ecx, ecx
lea edx, [eax + 0x88]
cmp dword [edx], 0
je 0x100160ed
cmp dword [edx], eax
jb 0x100160ff
cmp dword [edx], esi
jae 0x100160ff
inc ecx
add edx, 0x48
cmp ecx, 0x38d
jb 0x100160e0
xor eax, eax
inc eax
pop esi
pop ebp
ret
xor eax, eax
jmp 0x100160fc

Function at 0x1001619e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x10040b70]
jmp 0x100161c0
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
test esi, esi
jne 0x100161ab
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10016487
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10040b80], eax
je 0x100164a3
mov eax, 0x10dd
jmp 0x10016593
mov eax, dword [0x10040b84]
test eax, eax
jne 0x10016593
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x100164c0
push 6
pop eax
jmp 0x10016592
cmp dword [edi], 0
jne 0x100164d8
push 6
pop eax
mov dword [0x10040b84], eax
mov dword [0x10040b88], edi
jmp 0x10016592
push ebx
push esi
push 0x18
call fcn.10016ef1
mov esi, eax
pop ecx
test esi, esi
jne 0x100164f0
push 8
pop ebx
jmp 0x10016577
push 0
push dword [edi]
call fcn.10016473
push 0
push dword [ebp + 0xc]
mov ebx, eax
call fcn.10016473
movzx ecx, byte [ebx + 0x36]
mov edx, eax
mov eax, dword [ebx + 0x40]
sub eax, ecx
mov dword [ebp + 8], eax
test ecx, ecx
je 0x1001656b
cmp ecx, 0x1e
ja 0x1001656b
cmp dword [ebx + 0x44], edx
jne 0x1001656b
and dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0x40
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10016541
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x10016577
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov dword [esi + 4], 1
mov dword [esi + 8], edi
mov dword [esi + 0x10], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x10040b90]
mov dword [esi], eax
xor eax, eax
mov dword [0x10040b90], esi
jmp 0x10016590
cmp dword [0x10040b78], 0
push 9
pop ebx
jne 0x1001657d
mov dword [0x10040b84], ebx
test esi, esi
je 0x10016588
push esi
call fcn.100177de
pop ecx
mov dword [0x10040b88], edi
mov eax, ebx
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x10016599
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10040b80], eax
je 0x100165b5
mov eax, 0x10dd
jmp 0x1001663f
push ebx
push esi
push edi
mov edi, dword [0x10040b90]
xor ebx, ebx
test edi, edi
je 0x10016601
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [edi + 4], ebx
jne 0x100165f2
cmp dword [edi + 0x10], ebx
je 0x100165f2
push dword [edi + 0x10]
call fcn.10015fb5
pop ecx
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push edi
call fcn.100177de
mov edi, esi
pop ecx
test esi, esi
jne 0x100165c4
mov dword [0x10040b90], ebx
call fcn.10016103
mov edi, dword [0x10040b8c]
test edi, edi
je 0x1001662e
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push edi
call fcn.100177de
mov edi, esi
pop ecx
test esi, esi
jne 0x10016616
pop edi
pop esi
mov dword [0x10040b8c], ebx
xor eax, eax
mov dword [0x10040b80], ebx
pop ebx
mov esp, ebp
pop ebp
ret