joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003a1e8
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
test eax, eax
push edi
mov edi, dword [esp + 0x10]
jle 0x1003a213
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x14]
sub edx, edi
mov ecx, edi
sub esi, edi
mov bl, byte [esi + ecx]
xor bl, byte [edx + ecx]
mov byte [ecx], bl
inc ecx
dec eax
jne 0x1003a205
pop esi
pop ebx
mov eax, edi
pop edi
ret

Function at 0x1003b0eb
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
lea eax, [esi + 4]
push 0
push eax
mov dword [esi], 0x10058a94
call fcn.10046f80
and dword [esi + 0x48], 0
and dword [esi + 0x44], 0
add esp, 0xc
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
pop esi
ret

Function at 0x1003bfe6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x1003c000
xor esi, esi
jmp 0x1003c02f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.100462e0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call fcn.1003c10d
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x1003c06b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1003c056
call esi
mov esi, eax
jmp 0x1003c101
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1003c101
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x1003c09c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x1003c0af
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1003c0f8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x1003c0b3
jmp 0x1003c07e
call esi
jmp 0x1003c0f6
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x1003c0ea
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.100462e0
mov edi, esp
lea eax, [esi + 1]
push eax
push dword [ebp + 8]
push edi
call fcn.100458e0
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.1003c23b
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1003cbfb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.100462e0
push ebx
push esi
push edi
lea eax, [ebp - 0x2014]
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.1003c394
xor edi, edi
cmp eax, edi
jl 0x1003cdb7
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.1003cdc4
test eax, eax
pop ecx
pop ecx
jne 0x1003cc46
mov eax, 0x80020009
jmp 0x1003cdb7
mov ecx, esi
call fcn.1003c36c
lea eax, [ebp - 0x1014]
push eax
mov ecx, esi
call fcn.1003c394
cmp eax, edi
jl 0x1003cdb7
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x1003cd7f
sub eax, 9
je 0x1003cce1
dec eax
dec eax
jne 0x1003cda6
lea eax, [ebp - 0x1014]
test eax, eax
jne 0x1003cc8b
xor ebx, ebx
jmp 0x1003ccc1
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.100462e0
mov ebx, esp
push esi
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x1014]
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
push 4
lea eax, [ebp - 8]
push eax
push 4
jmp 0x1003cd97
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x1003cd1e
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.100462e0
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call fcn.10046f80
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x1003cd28
mov eax, 0x80004005
jmp 0x1003cdb7
cmp dword [ebp - 8], 0
jle 0x1003cd64
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
xor eax, eax
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.1003ce4b
pop ecx
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x1003cd2e
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 4]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x1003cda6
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.1003c394
cmp eax, edi
jl 0x1003cdb7
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1003f666
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x10055efa
call fcn.100457f4
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 0x2b8]
test eax, eax
lea edi, [esi + 0x2b8]
mov dword [ebp - 4], 7
je 0x1003f698
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [edi], 0
mov eax, dword [0x1006f66c]
test eax, eax
je 0x1003f6ab
push eax
call dword [sym.imp.USER32.dll_DestroyCursor]
lea ecx, [esi + 0x3a0]
call fcn.1003f4a5
push 1
lea ecx, [esi + 0x380]
call fcn.1002376b
lea ecx, [esi + 0x2bc]
mov byte [ebp - 4], 6
call fcn.1003f61d
mov eax, dword [esi + 0x2ac]
test eax, eax
mov byte [ebp - 4], 5
je 0x1003f6e6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x2a8]
test eax, eax
mov byte [ebp - 4], 4
je 0x1003f6fa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x28c]
test eax, eax
mov byte [ebp - 4], 3
je 0x1003f70e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x288]
test eax, eax
mov byte [ebp - 4], 2
je 0x1003f722
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x98]
mov byte [ebp - 4], 1
call fcn.10020e25
and byte [ebp - 4], 0
push 1
lea ecx, [esi + 0x88]
call fcn.1002376b
or dword [ebp - 4], 0xffffffff
mov eax, esi
add esi, 8
neg eax
sbb eax, eax
and eax, esi
add eax, 4
mov eax, dword [eax]
test eax, eax
pop edi
pop esi
je 0x1003f762
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x1004cf9e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1006c878
cmp edx, dword [eax]
je 0x1004cfc0
add eax, 8
inc ecx
cmp eax, 0x1006c908
jl 0x1004cfb1
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1006c878]
jne 0x1004d0ee
mov eax, dword [0x1006d0b4]
cmp eax, 1
je 0x1004d0c8
test eax, eax
jne 0x1004cff1
cmp dword [0x1006d0b8], 1
je 0x1004d0c8
cmp edx, 0xfc
je 0x1004d0ee
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1004d028
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.100460c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10045c20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1004d06b
lea eax, [ebp - 0x1a4]
push eax
call fcn.10045c20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10059d6c
push edi
call fcn.1004df60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.100460c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.100460d0
lea eax, [ebp - 0xa0]
push 0x10059d4c
push eax
call fcn.100460d0
push dword [esi + 0x1006c87c]
lea eax, [ebp - 0xa0]
push eax
call fcn.100460d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1004ee73
add esp, 0x2c
pop edi
jmp 0x1004d0ee
lea eax, [ebp + 8]
lea esi, [esi + 0x1006c87c]
push 0
push eax
push dword [esi]
call fcn.10045c20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
nop
nop
mov ecx, 0x40386511
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x47ae2ffd
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x447004]
jne 0x40100a
repz ret
jmp fcn.0040130e

Function at 0x4054c3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x447004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004034d1
and dword [ebp - 0x14], 0
cmp dword [0x44995c], 0
mov dword [ebp - 0x18], eax
jne 0x405576
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40561e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40561e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44995c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x449960], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x449964], eax
call edi
push eax
call esi
mov dword [0x44996c], eax
test eax, eax
je 0x405576
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x449968], eax
mov eax, dword [0x449968]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4055cf
cmp dword [0x44996c], ecx
je 0x4055cf
push eax
call esi
push dword [0x44996c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4055cf
test ebx, ebx
je 0x4055cf
call edi
test eax, eax
je 0x4055c6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4055c6
test byte [ebp - 8], 1
jne 0x4055cf
or dword [ebp + 0x10], 0x200000
jmp 0x405602
mov eax, dword [0x449960]
cmp eax, dword [ebp - 0x18]
je 0x405602
push eax
call esi
test eax, eax
je 0x405602
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405602
mov eax, dword [0x449964]
cmp eax, dword [ebp - 0x18]
je 0x405602
push eax
call esi
test eax, eax
je 0x405602
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44995c]
call esi
test eax, eax
je 0x40561e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405620
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x4437a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0x20
add dword [ebp - 4], 0x20
mov edx, dword [0x1f1bde4]
mov eax, dword [0x1f1bb08]
xor ecx, ecx
mov word [0x1f1be00], cx
lea ecx, [ebp - 8]
push ecx
push 0x40
push edx
push eax
mov dword [0x1f1bdec], 0x6e0072
mov dword [0x1f1bdf0], 0x6c0065
mov dword [0x1f1bdf4], 0x320033
mov dword [0x1f1bdf8], 0x64002e
mov dword [0x1f1bdfc], 0x6c006c
mov dword [0x1f1bde8], 0x65006b
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x4439d0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x447dd0]
sub esp, 0x10
push ebx
mov ebx, dword [0x1f1bb08]
push edi
mov edi, dword [0x1f1bde4]
push eax
call fcn.004438f0
add esp, 4
cmp dword [0x1f1bde4], 0x2f
jne 0x443a2d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00443940
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443cb0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x447004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
xor edi, edi
cmp dword [0x1f1bde4], 0x8cf
jne 0x443ce6
push 0
push 0
call ebx
cmp edi, 0x845013
jne 0x443cfd
mov eax, dword [0x448bf0]
add eax, 0xa231
mov dword [0x1f1bde4], eax
cmp dword [0x1f1bde4], 0x141
jne 0x443d2b
push str.viwesorihefukenapedumate_ronofo_virejesirahipuj_cafaloteceselu_dizupucucakixucafukiz
lea ecx, [ebp - 0x804]
push ecx
call esi
mov dword [0x449e80], 0xec58acac
mov dword [0x449e84], 0xffffffff
inc edi
cmp edi, 0xbbe2a98
jl 0x443cd4
call fcn.00443a40
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10004e20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100447c0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
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]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1001aa40
add esp, 0xc
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100175b6
mov esp, ebp
pop ebp
ret

Function at 0x10008200
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 8]
push edx
lea ecx, [ebp + 8]
call fcn.1000a710
mov ecx, eax
call fcn.10002ff0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10008237
mov dword [ebp - 4], 1
jmp 0x1000823e
mov dword [ebp - 4], 0
movzx eax, byte [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x1000adf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100447c0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
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]
mov eax, dword [ebp + 0xc]
push eax
push 0x90
mov ecx, dword [ebp + 8]
push ecx
call fcn.1001afc0
add esp, 0xc
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100175b6
mov esp, ebp
pop ebp
ret

Function at 0x1000b730
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1004764c]
mov dword [ebp - 4], eax
jmp 0x1000b748
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1000b75e
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x1000b75c
mov eax, dword [ebp - 4]
jmp 0x1000b7d9
jmp 0x1000b740
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000b7d6
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 0x1000b798
mov edx, dword [ebp - 4]
mov eax, dword [0x1004764c]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x1004764c], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1000c630
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100447c0]
xor eax, ebp
mov dword [ebp - 4], eax
imul eax, dword [ebp + 8], 0x2c
add eax, dword [0x10047640]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 5
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x1000c67e
mov eax, dword [ebp - 0x10]
sub eax, 5
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 8]
push edx
push 0x40
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000c6a0
mov eax, 0xa
jmp 0x1000c787
cmp dword [ebp + 0xc], 0
je 0x1000c6ec
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov byte [eax], 0xe9
mov ecx, dword [ebp - 0x10]
add ecx, 5
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
sub eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 1], eax
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 0x14]
and al, 1
movzx ecx, al
test ecx, ecx
je 0x1000c6ea
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov byte [ecx], 0xeb
mov edx, dword [ebp - 0x1c]
mov byte [edx + 1], 0xf9
jmp 0x1000c728
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x1000c713
push 7
mov eax, dword [ebp - 0xc]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.1001aa40
add esp, 0xc
jmp 0x1000c728
push 5
mov edx, dword [ebp - 0xc]
add edx, 0xc
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.1001aa40
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, byte [ebp + 0xc]
and cl, 1
shl cl, 1
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 0x14]
and al, 0xfd
or al, cl
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x14], al
mov dl, byte [ebp + 0xc]
and dl, 1
shl dl, 2
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x14]
and cl, 0xfb
or cl, dl
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x14], cl
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100175b6
mov esp, ebp
pop ebp
ret
Function at 0x1000c7f0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x100447c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x1000c98b
mov dword [ebp - 0x20], 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1000c981
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x20], 0x10
jb 0x1000c922
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1000c922
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1000c922
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x1000c8ad
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x80
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shl edx, 2
push edx
push 0
mov eax, dword [0x10046658]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x1000c8ab
mov dword [ebp - 0x24], 0
jmp 0x1000c93e
jmp 0x1000c902
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x1000c902
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 [eax + 4]
shl ecx, 2
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x10046658]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x1000c8fa
mov dword [ebp - 0x24], 0
jmp 0x1000c93e
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x18]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov dword [ebp - 0x20], 0x1c
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1000c840
cmp dword [ebp - 0x24], 0
je 0x1000c956
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1000c956
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 0
jne 0x1000c981
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x1000c981
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x10046658]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100175b6
mov esp, ebp
pop ebp
ret