joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52ad81
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x5b2e28]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x52adc7
cmp word [ebx], dx
jne 0x52adc7
or byte [eax + edi + 0x28], 4
jmp 0x52adcc
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x52af2f
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x52af0f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x52ae0d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x52ae43
cmp eax, edx
jae 0x52ae51
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x52ade8
jmp 0x52af2f
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x52af0a
cmp dword [ebp - 0x18], 0
je 0x52af0a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5b2e28]
test byte [eax + edi + 0x28], 0x48
je 0x52aee0
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x52aea4
mov word [esi], cx
jmp 0x52aedb
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5b2e28]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5b2e28]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5b2e28]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x52af2f
pop eax
cmp word [ebp - 4], ax
jne 0x52aef0
cmp esi, ebx
jne 0x52aef0
mov word [esi], ax
jmp 0x52af2c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0052b7ba
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x52af2f
push 0xd
pop eax
jmp 0x52aeeb
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5b2e28]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x52af29
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x52af2f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x52d00f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x52d0ac
push ebx
push esi
call fcn.0052cfd8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0052a1e2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x52d059
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x52d0ab
push edi
push eax
call fcn.0052569d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x52d079
call fcn.00523c7e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x52d0aa
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0052a1e2
add esp, 0x20
test eax, eax
jne 0x52d098
push edi
call fcn.00523c7e
jmp 0x52d0a0
push ebx
call fcn.00523c7e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x52d0af
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x52d0c0
pop esi
ret
push ebx
push edi
push esi
call fcn.0052cfd8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0052569d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x52d0e8
push ebx
push esi
push edi
call fcn.00505bc0
add esp, 0xc
push 0
call fcn.00523c7e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x52d842
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052d35d

Function at 0x52fe42
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00523ff6
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x52feb1
cmp esi, dword [ebp - 4]
je 0x52feac
cmp dword [ebp + 0xc], 0
je 0x52feac
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x52fe89
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0052f994
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x52feb3
xor eax, eax
inc eax
jmp 0x52feb3
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x52ff18
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5a5014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00523ff6
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00523ff6
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x52ff8f
cmp word [ecx], dx
je 0x52ff8f
mov eax, dword [0x56bc04]
push edi
dec eax
push eax
push 0x56baf0
call fcn.0052feb7
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x530002
cmp word [eax], dx
je 0x530002
mov eax, dword [edi]
test eax, eax
je 0x52ffb3
cmp word [eax], dx
je 0x52ffb3
lea eax, [ebp - 0x10]
push eax
call fcn.0052f89a
jmp 0x52ffbc
lea eax, [ebp - 0x10]
push eax
call fcn.0052f935
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x53002c
mov eax, dword [0x56baec]
push dword [ebp - 0x14]
dec eax
push eax
push 0x56b7e0
call fcn.0052feb7
add esp, 0xc
test al, al
je 0x53002c
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x52fff7
cmp word [eax], di
je 0x52fff7
lea eax, [ebp - 0x10]
push eax
call fcn.0052f89a
pop ecx
jmp 0x53002e
lea eax, [ebp - 0x10]
push eax
call fcn.0052f935
jmp 0x52fff4
mov eax, dword [edi]
test eax, eax
je 0x530019
cmp word [eax], dx
je 0x530019
lea eax, [ebp - 0x10]
push eax
call fcn.0052f84f
pop ecx
jmp 0x53002c
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5300f7
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0052fd3c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5300f7
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5300f7
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5300f7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x530084
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.005249f4
test ebx, ebx
je 0x5300f2
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.005249f4
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5300f7
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5300f7
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00534546
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5300f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a1084
leave
ret
Function at 0x534e15
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00534d91
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x534f84
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x534f84
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x534f39
jg 0x534e71
test eax, eax
je 0x534f2f
push 1
push 0x1000
call fcn.00523c21
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x534e94
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x534f26
push 0x8000
push ebx
call fcn.0051fe8b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x534ebd
jg 0x534eb8
cmp ecx, 0x1000
jb 0x534ebd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00528f0d
add esp, 0x10
cmp eax, 0xffffffff
je 0x534f02
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x534eb8
jl 0x534ee9
test ecx, ecx
jne 0x534eaa
push dword [ebp - 0xc]
push ebx
call fcn.0051fe8b
push esi
call fcn.00523c7e
add esp, 0xc
xor ebx, ebx
jmp 0x534f92
cmp byte [edi + 0x24], 0
je 0x534f19
cmp dword [edi + 0x20], 5
jne 0x534f19
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x534f24
mov ebx, dword [edi + 0x18]
jmp 0x534f26
xor ebx, ebx
push esi
call fcn.00523c7e
pop ecx
jmp 0x534f92
test ecx, ecx
jg 0x534efb
jl 0x534f39
test eax, eax
jae 0x534efb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0052b7ba
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x534f59
cmp byte [edi + 0x1c], 0
je 0x534efb
jmp 0x534f8a
push ebx
call fcn.0052de13
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x534efb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x534f92
cmp byte [edi + 0x1c], 0
je 0x534f8f
mov ebx, dword [edi + 0x18]
jmp 0x534f92
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0052b7ba
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5358c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5358ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5358ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x535a70
Capabilities:
Access peb ldr_data

Disassembly:
lea esp, [esp - 0x2c]
stmxcsr dword [esp]
fnstcw word [esp + 4]
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x10]
mov dword [esp + 8], eax
mov eax, dword [edx + 0xe0c]
mov dword [esp + 0xc], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [edx]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov eax, esp
mov ecx, dword [esp + 0x30]
mov esp, ecx
ldmxcsr dword [esp]
fldcw word [esp + 4]
mov edx, dword fs:[0x18]
mov ecx, dword [esp + 8]
mov dword [edx + 0x10], ecx
mov ecx, dword [esp + 0xc]
mov dword [edx + 0xe0c], ecx
mov ecx, dword [esp + 0x10]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [edx], ecx
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
lea esp, [esp + 0x30]
mov edx, dword [eax + 0x34]
jmp ecx
Function at 0x5479f0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5a28e0
push 0x505740
mov eax, dword fs:[0]
push eax
add esp, 0xffffffd8
mov eax, dword [0x5a5014]
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
lea eax, [ebp - 0x30]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x547a44
xor al, al
jmp 0x547b0a
lea ecx, [ebp - 0x38]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x547a8d
mov dword [ebp - 4], 0
cmp dword [ebp - 0x30], 0
je 0x547a70
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
jmp 0x547a89
xor al, al
jmp 0x547b0a
mov dword [ebp - 0x2c], 1
mov eax, 0xc
imul ecx, eax, 0
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov dword [ebp + ecx - 0x28], edx
mov dword [ebp + ecx - 0x24], eax
mov ecx, 0xc
imul edx, ecx, 0
mov dword [ebp + edx - 0x20], 2
push 0
push 0
push 0x10
lea eax, [ebp - 0x2c]
push eax
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x547b08
mov dword [ebp - 4], 1
cmp dword [ebp - 0x30], 0
je 0x547aeb
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
jmp 0x547b04
xor al, al
jmp 0x547b0a
mov al, 1
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.004a1084
mov esp, ebp
pop ebp
ret
Function at 0x10006080
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [0x1004b640]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
lea eax, [ebp - 0xc]
push eax
push 0x40
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.1001d5e5
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100215a0
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.1001d5e5
push edx
mov ecx, ebp
push eax
lea edx, [0x1000611c]
call fcn.1001d591
pop eax
pop edx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001d608
add esp, 0x10
cmp ebp, esp
call fcn.1001d5e5
mov esp, ebp
pop ebp
ret

Function at 0x1000a340
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov esi, esp
mov eax, dword [ebp + 0x10]
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
lea ecx, [ebp + 8]
call fcn.1000d520
mov ecx, eax
call fcn.100037d0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.1001d5e5
test eax, eax
je 0x1000a38f
mov dword [ebp - 8], 1
jmp 0x1000a396
mov dword [ebp - 8], 0
movzx eax, byte [ebp - 8]
pop esi
add esp, 8
cmp ebp, esp
call fcn.1001d5e5
mov esp, ebp
pop ebp
ret

Function at 0x1000de10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [0x1004b640]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
lea eax, [ebp - 0xc]
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.1001d5e5
mov eax, dword [ebp + 0xc]
push eax
push 0x90
mov ecx, dword [ebp + 8]
push ecx
call fcn.10021b20
add esp, 0xc
mov esi, esp
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.1001d5e5
push edx
mov ecx, ebp
push eax
lea edx, [0x1000deb0]
call fcn.1001d591
pop eax
pop edx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001d608
add esp, 0x10
cmp ebp, esp
call fcn.1001d5e5
mov esp, ebp
pop ebp
ret
Function at 0x1000e9c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [0x1004db6c]
mov dword [ebp - 4], eax
jmp 0x1000e9e7
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1000ea00
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x1000e9fe
mov eax, dword [ebp - 4]
jmp 0x1000ea84
jmp 0x1000e9df
mov esi, esp
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.1001d5e5
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000ea81
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
cmp ecx, 0xfe0
jbe 0x1000ea43
mov edx, dword [ebp - 4]
mov eax, dword [0x1004db6c]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x1004db6c], ecx
mov eax, dword [ebp - 4]
pop esi
add esp, 8
cmp ebp, esp
call fcn.1001d5e5
mov esp, ebp
pop ebp
ret
Function at 0x100101b0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.1000fe50
add esp, 4
test eax, eax
jne 0x1001020c
mov dword [ebp - 4], 9
jmp 0x10010299
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x10010299
mov dword [ebp - 8], 0
jmp 0x1001022a
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 8]
jae 0x10010299
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov esi, esp
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*4]
push edx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.1001d5e5
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10010297
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp esi, esp
call fcn.1001d5e5
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.10010810
add esp, 0xc
mov esi, esp
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1001d5e5
jmp 0x10010221
mov eax, dword [ebp - 4]
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.1001d5e5
mov esp, ebp
pop ebp
ret

Function at 0x10010ae0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x10010b8b
mov dword [ebp - 4], 0
jmp 0x10010b13
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 8]
jae 0x10010b6e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov esi, esp
mov eax, dword [ebp - 4]
mov ecx, dword [edx + eax*4]
push ecx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.1001d5e5
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10010b6c
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, esp
call fcn.1001d5e5
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1001d5e5
jmp 0x10010b0a
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x1004cb68]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.1001d5e5
pop esi
add esp, 8
cmp ebp, esp
call fcn.1001d5e5
mov esp, ebp
pop ebp
ret
Function at 0x10011080
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x100110c9
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x90
je 0x100110c9
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax]
cmp edx, 0xcc
je 0x100110c9
xor eax, eax
jmp 0x1001110a
mov dword [ebp - 4], 1
jmp 0x100110db
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10011105
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
cmp eax, edx
je 0x10011103
xor eax, eax
jmp 0x1001110a
jmp 0x100110d2
mov eax, 1
mov esp, ebp
pop ebp
ret