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

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x406037
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x406046
pop dword [ebp - 0x14]
mov eax, 0x46e6a317
sub eax, 0x46a642d1
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x9a455cc7
sub dword [ebp - 0x24], 0x4bf3177c
mov dword [ebp - 0x20], 0x5bd20454
sub dword [ebp - 0x20], 0x299eb80f
mov dword [ebp - 0x1c], 0xe2a29c07
add dword [ebp - 0x1c], 0x69a9a827
mov dword [ebp - 0x18], 0x8b704ee5
add dword [ebp - 0x18], 0x748fb11b
lea eax, [ebp - 0x24]
push eax
mov eax, 0x64d75311
sub eax, 0x649682bd
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x3c30b21
sub dword [ebp - 0x24], 0x8f50a1cb
mov dword [ebp - 0x20], 0x64fae69b
add dword [ebp - 0x20], 0xdc717ada
mov dword [ebp - 0x1c], 0xc96d7e49
add dword [ebp - 0x1c], 0x9a01ee23
mov dword [ebp - 0x18], 0xbdf3972c
sub dword [ebp - 0x18], 0xbdf3972c
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xdf887cae
add eax, 0x20b8539e
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x394c3
push 0
call eax
mov ecx, 0xb80247d1
sub ecx, 0xb80200f0
xor esi, esi
add esi, eax
mov edx, 0xee161782
add edx, 0x122b987e
add edx, dword [ebp - 0x14]
mov ebx, 0x2f4bf1ea
add ebx, 0x6eac0cd4
add dword [ebp - 4], 0x2bb70f6
mov edi, dword [edx]
xor dword [ebp - 0xc], 0x5cbc9322
xor edi, ebx
add dword [ebp - 0xc], edi
mov dword [esi], edi
xor dword [ebp - 0xc], eax
add esi, 4
add edx, 0x8e8cf175
add edx, 0x71730e8f
loop 0x40616a
add eax, 0x10e57
xor ebx, ebx
add ebx, eax
add eax, 0xc48fd6de
sub eax, 0xc48fd6d9
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100062eb
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100062eb
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100062eb
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100062eb
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100062eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100062eb
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100062eb
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100062eb
push 0xd008
push edi
call fcn.100062eb
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100062eb
int3

Function at 0x100062eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x100062fa
pop dword [ebp - 8]
mov eax, 0x100062fa
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x39ea0
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x52cb7fd4
sub ecx, 0x52cb3443
xor esi, esi
add esi, eax
mov edi, 0x362f5e28
sub edi, 0x262dd828
add edi, dword [ebp - 8]
mov ebx, 0x983ff1f1
add dword [ebp - 4], 0x236ec282
mov edx, dword [edi]
sub dword [ebp - 4], 0xefcdf6fa
sub edx, ebx
xor dword [ebp - 4], 0x6fa87df5
mov dword [esi], edx
sub dword [ebp - 4], edx
add esi, 4
add edi, 0xd9bd262e
add edi, 0x2642d9d6
loop 0x1000634b
add eax, 0x34c31ddd
sub eax, 0x34c1fcc6
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xfc05ccaa
add ecx, 0x13fa3356
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x1000ac00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1000ac69
push 0x40
push str.INFORMATION
push str.LUA_INJECTOR_FOR_MTA__BY_11_DICE
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push str.0.0.9
push str._INFO__LUA_INJECTOR_FOR_MTA_1.6_BY_11_DICE_PROJECT_VERSION:__s_n
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 7
movups xmmword [ecx], xmm0
push str.Lua.log
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.1000dc40
call fcn.10003d60
add esp, 0x20
push 0
push 0
push 0
push 0x1000a9c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x1000b260
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x1000b292
jl 0x1000b285
test ecx, ecx
jne 0x1000b292
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1000b352
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.1000c7f0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1000b2fe
jg 0x1000b2bd
test esi, esi
je 0x1000b2fe
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x1000b2d5
mov eax, dword [esp + 0x10]
jl 0x1000b2cf
cmp eax, esi
jae 0x1000b2d5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.10014af0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1000b31f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1000b33b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x1000b2a4
jl 0x1000b33b
test ecx, ecx
jne 0x1000b2a4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x1000b390
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x1000b390
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.10014af0
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x1000b3f9
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1000b3b6
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x1000b3e4
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1001c66c
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x1000b3f9
cmp edi, eax
ja 0x1000b3c2
test edi, edi
je 0x1000b3f9
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1001c66c
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000eae8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1000eb0f
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1000eb12
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1000eac4
pop esi
leave
ret 8
Function at 0x10010a60
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
lea edi, [ebp - 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x10041400]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x10010c06
mov dword [ebp - 0x28], 0x1c
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10010bf3
cmp dword [ebp - 0x28], 0x10
jb 0x10010bd7
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, esp
call fcn.100135cc
cmp dword [ebp - 0x1c], eax
jne 0x10010bd7
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, esp
call fcn.100135cc
cmp dword [ebp - 0x20], eax
je 0x10010bd7
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x10010b37
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x80
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shl edx, 2
mov esi, esp
push edx
push 0
mov eax, dword [0x10042618]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.100135cc
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x10010b32
jmp 0x10010bf3
jmp 0x10010bb7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x10010bb7
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
shl ecx, 2
mov esi, esp
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x10042618]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp esi, esp
call fcn.100135cc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x10010ba1
mov esi, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x10042618]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.100135cc
mov edx, dword [ebp + 8]
mov dword [edx], 0
jmp 0x10010bf3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x20]
mov dword [edx + eax*4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
mov dword [ebp - 0x28], 0x1c
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10010ab3
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.100135cc
push edx
mov ecx, ebp
push eax
lea edx, [0x10010c34]
call fcn.10013578
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012a68
add esp, 0x30
cmp ebp, esp
call fcn.100135cc
mov esp, ebp
pop ebp
ret
Function at 0x10010c50
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 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.10010a60
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x10010d2b
mov dword [ebp - 8], 0
jmp 0x10010cba
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 0x10010d29
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.100135cc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10010d27
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp esi, esp
call fcn.100135cc
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.10010880
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.100135cc
jmp 0x10010cb1
jmp 0x10010d32
mov dword [ebp - 4], 9
mov eax, dword [ebp - 4]
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.100135cc
mov esp, ebp
pop ebp
ret

Function at 0x10010d50
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 dword [ebp - 4], 0
jmp 0x10010d77
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 8]
jae 0x10010dd2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov esi, esp
mov edx, dword [ebp - 4]
mov eax, dword [ecx + edx*4]
push eax
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.100135cc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10010dd0
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, esp
call fcn.100135cc
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.100135cc
jmp 0x10010d6e
mov esi, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x10042618]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.100135cc
pop esi
add esp, 8
cmp ebp, esp
call fcn.100135cc
mov esp, ebp
pop ebp
ret
Function at 0x10010e00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
imul eax, dword [ebp + 8], 0x2c
add eax, dword [0x100431b0]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x10010e63
mov eax, dword [ebp - 0x18]
sub eax, 5
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov esi, esp
lea edx, [ebp - 0xc]
push edx
push 0x40
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.100135cc
test eax, eax
jne 0x10010e8e
mov eax, 0xa
jmp 0x10010f90
cmp dword [ebp + 0xc], 0
je 0x10010eda
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0xe9
mov ecx, dword [ebp - 0x18]
add ecx, 5
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
sub eax, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 1], eax
mov edx, dword [ebp - 4]
mov al, byte [edx + 0x14]
and al, 1
movzx ecx, al
test ecx, ecx
je 0x10010ed8
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov byte [ecx], 0xeb
mov edx, dword [ebp - 0x20]
mov byte [edx + 1], 0xf9
jmp 0x10010f16
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x10010f01
push 7
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.10014af0
add esp, 0xc
jmp 0x10010f16
push 5
mov edx, dword [ebp - 4]
add edx, 0xc
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.10014af0
add esp, 0xc
mov esi, esp
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.100135cc
mov esi, esp
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.100135cc
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp esi, esp
call fcn.100135cc
mov cl, byte [ebp + 0xc]
and cl, 1
shl cl, 1
mov edx, dword [ebp - 4]
mov al, byte [edx + 0x14]
and al, 0xfd
or al, cl
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x14], al
mov dl, byte [ebp + 0xc]
and dl, 1
shl dl, 2
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 0xfb
or cl, dl
mov edx, dword [ebp - 4]
mov byte [edx + 0x14], cl
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x10010fb4]
call fcn.10013578
pop eax
pop edx
pop edi
pop esi
add esp, 0x20
cmp ebp, esp
call fcn.100135cc
mov esp, ebp
pop ebp
ret
Function at 0x10011660
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 [0x100431a4]
mov dword [ebp - 4], eax
jmp 0x10011687
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100116a0
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x1001169e
mov eax, dword [ebp - 4]
jmp 0x10011724
jmp 0x1001167f
mov esi, esp
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.100135cc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10011721
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 0x100116e3
mov edx, dword [ebp - 4]
mov eax, dword [0x100431a4]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x100431a4], ecx
mov eax, dword [ebp - 4]
pop esi
add esp, 8
cmp ebp, esp
call fcn.100135cc
mov esp, ebp
pop ebp
ret

Function at 0x10011c10
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 0x10011c59
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x90
je 0x10011c59
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax]
cmp edx, 0xcc
je 0x10011c59
xor eax, eax
jmp 0x10011c9a
mov dword [ebp - 4], 1
jmp 0x10011c6b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10011c95
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 0x10011c93
xor eax, eax
jmp 0x10011c9a
jmp 0x10011c62
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1001b92e
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10041400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1001b971
call fcn.1001d868
mov dword [eax], 0xf
call fcn.1001d87b
mov dword [eax], 0xd
call fcn.1001cca8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012a68
leave
ret
test eax, eax
jne 0x1001b978
inc eax
jmp 0x1001b965
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x1001b963
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1001b965

Function at 0x1001e4c7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001e506
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001e506
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001e506
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001e506
cmp dword [ecx + 0x74], 0xe
jbe 0x1001e506
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10024b20
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10038640
push 0x10038638
push str.FlsAlloc
push 0x1f
call fcn.1002498b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10024b54
push dword [ebp + 8]
mov ecx, esi
call dword [0x100341d4]
call esi
jmp 0x10024b5a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10024b9e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10038650
push 0x10038648
push str.FlsGetValue
push 0x21
call fcn.1002498b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10024bd5
push dword [ebp + 8]
mov ecx, esi
call dword [0x100341d4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10024bdd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10038658
push 0x10038650
push str.FlsSetValue
push 0x22
call fcn.1002498b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10024c17
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100341d4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]