joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011e0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x401200
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x401218
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x401243
mov eax, dword [ebp + 8]
push 0
push 0
push 2
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40124c
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push 0
lea ecx, [ebp - 8]
push ecx
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp ebx, 1
pop ebx
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401280
Capabilities:
Inject apc

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0x40b1a4
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push 0x40b194
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push esi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x401332
mov eax, dword [ebp + 0xc]
lea esi, [ebp - 8]
mov dword [ebp - 8], 0
call fcn.00401040
test eax, eax
je 0x4012d3
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 8]
push 4
push 0x1000
lea edi, [edi + edi + 2]
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x401332
mov eax, dword [ebp + 0xc]
push 0
push edi
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x40131b
push 0x8000
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov al, byte [ebp - 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
test eax, eax
je 0x401332
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4024a9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d07c]
jne 0x4024b3
repz ret
jmp fcn.00402f73

Function at 0x406c62
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d07c]
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.00403a96
and dword [ebp - 0x14], 0
cmp dword [0x40e8d0], 0
mov dword [ebp - 0x18], eax
jne 0x406d15
push 0x40b0c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406dbd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40b0bc
push ebx
call edi
test eax, eax
je 0x406dbd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40b0ac
push ebx
mov dword [0x40e8d0], eax
call edi
push eax
call esi
push 0x40b098
push ebx
mov dword [0x40e8d4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40e8d8], eax
call edi
push eax
call esi
mov dword [0x40e8e0], eax
test eax, eax
je 0x406d15
push 0x40b064
push ebx
call edi
push eax
call esi
mov dword [0x40e8dc], eax
mov eax, dword [0x40e8dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406d6e
cmp dword [0x40e8e0], ecx
je 0x406d6e
push eax
call esi
push dword [0x40e8e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406d6e
test ebx, ebx
je 0x406d6e
call edi
test eax, eax
je 0x406d65
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406d65
test byte [ebp - 8], 1
jne 0x406d6e
or dword [ebp + 0x10], 0x200000
jmp 0x406da1
mov eax, dword [0x40e8d4]
cmp eax, dword [ebp - 0x18]
je 0x406da1
push eax
call esi
test eax, eax
je 0x406da1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406da1
mov eax, dword [0x40e8d8]
cmp eax, dword [ebp - 0x18]
je 0x406da1
push eax
call esi
test eax, eax
je 0x406da1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40e8d0]
call esi
test eax, eax
je 0x406dbd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406dbf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004024a9
leave
ret
Function at 0x100027a6
Capabilities:
Terminate process

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
call fcn.10018130
mov edx, dword [esp + 0x14]
lea ecx, [esp]
call fcn.10011000
mov edx, dword [esp]
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017fd0
lea eax, [esp + 8]
push eax
call fcn.10018030
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
push dword [esp + 0xc]
call fcn.10015f17
call fcn.100180c0
lea edx, [0x10020028]
call fcn.100121a0
mov ecx, eax
call fcn.100121b0
je 0x10002832
mov edx, dword [esp + 4]
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017fd0
lea edx, str..dll
push edx
call fcn.10017fd0
lea eax, [esp + 8]
push eax
call fcn.10018030
cmp dword [esp + 0x18], 0
je 0x1000286d
mov edx, dword [0x10029da4]
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017fd0
lea edx, [0x100203e0]
push edx
call fcn.10017fd0
mov edx, dword [esp + 8]
push edx
call fcn.10017fd0
lea eax, [esp + 8]
push eax
call fcn.10018030
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.dll_LoadLibraryW
mov dword [esp + 8], eax
mov ebx, dword [esp + 8]
and ebx, ebx
jne 0x100028d0
push edx
call fcn.10017f90
pop edx
push eax
push 0xffffffff
push edx
call fcn.10017f90
pop edx
push eax
lea edx, str.Failed_load_original_dll:_n
push edx
call fcn.10017fd0
mov edx, dword [esp + 0xc]
push edx
call fcn.10017fd0
call fcn.10012202
add dword [esp], edx
call fcn.1000966c
call fcn.10012220
push 0
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.KERNEL32.dll_TerminateProcess
mov eax, dword [esp + 8]
jmp 0x100028d8
push dword [esp + 4]
call fcn.10018190
push dword [esp]
call fcn.10018190
add esp, 0xc
pop ebx
ret 8
Function at 0x10007412
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.10018130
push dword [esp + 0x28]
call fcn.10012220
mov edx, dword [esp + 0x20]
lea ecx, [esp]
call fcn.10011000
mov edx, dword [esp + 0x24]
lea ecx, [esp + 4]
call fcn.10011000
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push dword [0x1002a778]
call sub.SHLWAPI.dll_SHGetValueW
mov dword [esp + 0x14], eax
cmp dword [esp + 0xc], 0
je 0x10007499
mov ebx, dword [esp + 8]
cmp ebx, 1
je 0x10007485
mov ebx, dword [esp + 8]
cmp ebx, 2
je 0x10007485
jmp 0x1000748c
mov eax, 1
jmp 0x1000748e
xor eax, eax
and eax, eax
je 0x10007499
mov eax, 1
jmp 0x1000749b
xor eax, eax
and eax, eax
je 0x10007518
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
mov ebx, dword [esp + 0x14]
inc ebx
mov eax, ebx
mov ecx, 2
cdq
idiv ecx
mov ebx, eax
push ebx
call fcn.10014720
lea eax, [esp + 0x14]
push eax
call fcn.10018030
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push dword [0x1002a778]
call sub.SHLWAPI.dll_SHGetValueW
mov ebx, eax
and ebx, ebx
jne 0x10007518
mov edx, dword [esp + 0x10]
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017fd0
pop eax
push eax
call fcn.100121f0
pop edx
add eax, edx
jmp 0x10007522
call fcn.100181c0
mov word [eax], 0
push dword [esp]
call fcn.10018190
push dword [esp + 0x10]
call fcn.10018190
push dword [esp + 4]
call fcn.10018190
add esp, 0x18
pop ebx
ret 8
Function at 0x1000895c
Capabilities:
Get file attributes

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.10018130
mov edx, dword [esp + 0xc]
lea ecx, [esp]
call fcn.10011000
mov eax, dword [esp]
push eax
call sub.KERNEL32.dll_GetFileAttributesW
mov ebx, eax
and ebx, 0x10
and ebx, ebx
jne 0x1000898a
mov eax, 1
jmp 0x1000898c
xor eax, eax
jmp 0x10008990
push dword [esp]
call fcn.10018190
add esp, 4
pop ebx
ret 4

Function at 0x10008a17
Capabilities:
Terminate process

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.10018130
push 0
push 0
push 0xf003f
push 0x1002a778
mov eax, dword [0x1002a154]
push eax
call sub.ADVAPI32.dll_RegLoadAppKeyW
mov dword [esp], eax
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
lea edx, str.REGLOADAPPKEY:
push edx
call fcn.10017fd0
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
mov eax, dword [esp + 0x10]
cdq
push edx
push eax
call fcn.10014210
pop eax
lea edx, [0x1002018a]
push edx
call fcn.10017fd0
mov edx, dword [0x1002a154]
push edx
call fcn.10017fd0
call fcn.10012202
add dword [esp], edx
call fcn.10003aa4
call fcn.10012220
mov ebx, dword [esp]
and ebx, ebx
je 0x10008b0b
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
lea edx, str.REGLOADAPPKEY:
push edx
call fcn.10017fd0
push edx
call fcn.10017f90
pop edx
push eax
push dword [esp + 0xc]
call fcn.1000f7c2
pop eax
call fcn.10012202
add dword [esp], edx
call fcn.10003aa4
call fcn.10012220
push dword [esp]
lea eax, str.RegLoadAppKey_rError_load_hive
push eax
call fcn.1000966c
push 0
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.KERNEL32.dll_TerminateProcess
push dword [0x10029b78]
call fcn.1000895c
and eax, eax
je 0x10008b25
push dword [0x10029b78]
call fcn.10001e7d
xor eax, eax
add esp, 4
pop ebx
ret
Function at 0x1000b983
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x1a
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x1000b98a
call fcn.10018130
mov edx, dword [esp + 0x74]
lea ecx, [esp]
call fcn.10011000
mov edx, dword [esp + 0x78]
lea ecx, [esp + 4]
call fcn.10011000
mov edx, dword [esp + 0x80]
lea ecx, [esp + 8]
call fcn.10011000
lea ebp, [esp + 0xc]
mov dword [ebp], 0x44
mov edx, dword [esp]
xor ecx, ecx
call fcn.100121b0
jne 0x1000ba51
push edx
call fcn.10017f90
pop edx
push eax
lea edx, [0x10020192]
push edx
call fcn.10017fd0
mov edx, dword [esp + 4]
push edx
call fcn.10017fd0
lea edx, [0x10020192]
push edx
call fcn.10017fd0
lea eax, [esp + 0x68]
push eax
call fcn.10018030
mov edx, dword [esp + 4]
xor ecx, ecx
call fcn.100121b0
jne 0x1000ba4f
mov edx, dword [esp + 0x64]
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017fd0
lea edx, [0x1002018a]
push edx
call fcn.10017fd0
mov edx, dword [esp + 8]
push edx
call fcn.10017fd0
lea eax, [esp + 0x68]
push eax
call fcn.10018030
jmp 0x1000ba6d
mov edx, dword [esp + 4]
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017fd0
lea eax, [esp + 0x68]
push eax
call fcn.10018030
mov ebx, dword [esp + 0x7c]
and ebx, 2
and ebx, ebx
je 0x1000ba8d
lea ebp, [esp + 0xc]
mov ebx, dword [ebp + 0x2c]
or ebx, 1
mov eax, ebx
mov dword [ebp + 0x2c], eax
mov word [ebp + 0x30], 0
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push dword [esp + 0x8c]
push 0
push 0
push 0
mov eax, dword [esp + 0x84]
push eax
push 0
call sub.KERNEL32.dll_CreateProcessW
and eax, eax
je 0x1000bb01
mov ebx, dword [esp + 0x7c]
and ebx, 1
and ebx, ebx
je 0x1000bae9
push 0xffffffff
lea ebp, [esp + 0x54]
push dword [ebp]
call sub.KERNEL32.dll_WaitForSingleObject
lea ebp, [esp + 0x50]
push dword [ebp]
call sub.KERNEL32.dll_CloseHandle
lea ebp, [esp + 0x50]
push dword [ebp + 4]
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
push dword [esp + 0x64]
call fcn.10018190
push dword [esp + 8]
call fcn.10018190
push dword [esp]
call fcn.10018190
push dword [esp + 4]
call fcn.10018190
add esp, 0x68
pop ebx
pop ebp
ret 0x10

Function at 0x1000cb6c
Capabilities:
Print debug messages

Disassembly:
xor eax, eax
push eax
call fcn.10018130
mov edx, dword [esp + 8]
lea ecx, [esp]
call fcn.10011000
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
lea edx, str.PORT:
push edx
call fcn.10017fd0
mov edx, dword [esp + 8]
push edx
call fcn.10017fd0
call fcn.10012202
add dword [esp], edx
call sub.KERNEL32.dll_OutputDebugStringW
call fcn.10012220
xor eax, eax
push dword [esp]
call fcn.10018190
add esp, 4
ret 4
Function at 0x1000de9e
Capabilities:
Set registry value

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
call fcn.10018130
mov edx, dword [esp + 0x14]
lea ecx, [esp]
call fcn.10011000
mov edx, dword [esp + 0x18]
lea ecx, [esp + 4]
call fcn.10011000
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 8]
call fcn.10011000
push dword [esp + 8]
call fcn.100146f0
mov ebx, eax
add ebx, 2
push ebx
mov eax, dword [esp + 0xc]
push eax
push 1
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push dword [0x1002a778]
call sub.SHLWAPI.dll_SHSetValueW
mov ebx, eax
and ebx, ebx
jne 0x1000df0a
mov eax, 1
jmp 0x1000df0c
xor eax, eax
jmp 0x1000df10
push dword [esp + 8]
call fcn.10018190
push dword [esp]
call fcn.10018190
push dword [esp + 4]
call fcn.10018190
add esp, 0xc
pop ebx
ret 0xc
Function at 0x1000e6ba
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
call fcn.10018130
mov eax, dword [0x100299bc]
mov dword [0x10029fd0], eax
cmp dword [section..share], 0
jne 0x1000e6db
inc dword [0x1002a010]
inc dword [section..share]
push dword [0x10029fd0]
call sub.KERNEL32.dll_DisableThreadLibraryCalls
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
push 0x7fff
call fcn.10014720
lea eax, [esp + 4]
push eax
call fcn.10018030
push 0x7fff
mov eax, dword [esp + 4]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
mov eax, dword [esp + 8]
push eax
call fcn.10017910
push 0x1002a238
call fcn.10018030
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
push 1
push dword [0x1002a238]
call fcn.10016183
push 0x1002a57c
call fcn.10018030
push 0x7fff
mov eax, dword [esp + 4]
push eax
push dword [0x10029fd0]
call sub.KERNEL32.dll_GetModuleFileNameW
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
mov eax, dword [esp + 8]
push eax
call fcn.10017910
push 0x10029a2c
call fcn.10018030
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
push 1
push dword [0x10029a2c]
call fcn.10016183
push 0x10029ca0
call fcn.10018030
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
push dword [0x10029a2c]
call fcn.10016240
push 0x1002a5b4
call fcn.10018030
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
lea eax, [0x100203e0]
push eax
push dword [0x1002a5b4]
call fcn.10014d10
push 0x10029dec
call fcn.10018030
push 0x7fff
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.dll_GetWindowsDirectoryW
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
lea eax, [0x100203e0]
push eax
push dword [esp + 0xc]
call fcn.10014d10
push 0x1002a130
call fcn.10018030
push 0x7fff
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
lea eax, [0x100203e0]
push eax
push dword [esp + 0xc]
call fcn.10014d10
push 0x10029da4
call fcn.10018030
mov eax, dword [esp]
push eax
push 0x7fff
call sub.KERNEL32.dll_GetTempPathW
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
lea eax, [0x100203e0]
push eax
push dword [esp + 0xc]
call fcn.10014d10
push 0x1002a10c
call fcn.10018030
xor eax, eax
push dword [esp]
call fcn.10018190
add esp, 4
ret
Function at 0x10012554
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
cmp eax, 0xffffffff
je 0x100126f2
mov esi, eax
mov dword [esp + 0x24], 0x1c
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_Thread32First
sub esp, 8
test eax, eax
je 0x1001273a
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
jmp 0x1001262d
mov dword [ebx + 4], pe_nt_image_headers32
mov dword [esp + 8], 0x200
mov dword [esp + 4], 0
mov eax, dword [0x1002aac8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
sub esp, 0xc
mov dword [ebx], eax
test eax, eax
je 0x10012711
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
lea ecx, [eax + 1]
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + eax*4], ecx
mov dword [esp + 0x24], 0x1c
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_Thread32Next
sub esp, 8
test eax, eax
je 0x10012706
cmp dword [esp + 0x24], 0xf
jbe 0x1001260a
mov edi, dword [esp + 0x30]
call ebp
cmp edi, eax
jne 0x1001260a
mov edi, dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x1001260a
mov edx, dword [ebx]
test edx, edx
je 0x100125c6
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
jb 0x100125f8
lea ecx, [eax + eax]
mov dword [ebx + 4], ecx
shl eax, 3
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [0x1002aac8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
sub esp, 0x10
test eax, eax
je 0x10012711
mov dword [ebx], eax
jmp 0x100125f8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
sub esp, 4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, edi
call fcn.100123ca
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
add esi, 1
cmp dword [ebx + 8], esi
jbe 0x100126eb
mov eax, dword [ebx]
mov eax, dword [eax + esi*4]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x5a
call ebp
sub esp, 0xc
mov edi, eax
test eax, eax
jne 0x10012697
jmp 0x100126be
mov eax, 0
jmp 0x100126f7
mov eax, 9
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0
jmp 0x100126f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1001274d
mov eax, dword [ebx]
test eax, eax
je 0x1001273a
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [0x1002aac8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
mov dword [ebx], 0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, 9
jmp 0x100126f7
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
cmp dword [ebx], 0
je 0x10012774
cmp dword [ebx + 8], 0
je 0x100126ff
mov esi, 0
mov ebp, dword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x100126c6
mov eax, 0
jmp 0x100126f7
Function at 0x1001277e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, edx
imul eax, eax, 0x2c
add eax, dword [0x1002ab34]
mov ebx, eax
mov esi, dword [eax]
mov ebp, 5
test byte [eax + 0x14], 1
je 0x100127a7
sub esi, 5
mov ebp, 7
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], ebp
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
mov edx, 0xa
test eax, eax
je 0x10012847
test edi, edi
je 0x10012851
mov byte [esi], 0xe9
lea eax, [esi + 5]
mov ecx, dword [ebx + 4]
sub ecx, eax
mov dword [esi + 1], ecx
test byte [ebx + 0x14], 1
je 0x100127f1
mov eax, dword [ebx]
mov byte [eax], 0xeb
mov byte [eax + 1], 0xf9
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
sub esp, 0xc
and edi, 1
lea edx, [edi + edi]
movzx eax, byte [ebx + 0x14]
and eax, 0xfffffff9
shl edi, 2
or eax, edx
or eax, edi
mov byte [ebx + 0x14], al
mov edx, 0
mov eax, edx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [ebx + 0x14], 1
je 0x1001286d
mov edx, dword [ebx + 0xc]
mov dword [esi], edx
movzx edx, word [ebx + 0x10]
mov word [esi + 4], dx
movzx eax, byte [ebx + 0x12]
mov byte [esi + 6], al
jmp 0x100127f1
mov eax, dword [ebx + 0xc]
mov dword [esi], eax
movzx eax, byte [ebx + 0x10]
mov byte [esi + 4], al
jmp 0x100127f1

Function at 0x1001287e
Capabilities:
Resume thread

Disassembly:
cmp dword [eax], 0
je 0x1001290f
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, eax
cmp dword [eax + 8], 0
je 0x100128e8
mov ebx, 0
mov ebp, dword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x100128c3
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
add ebx, 1
cmp dword [edi + 8], ebx
jbe 0x100128e8
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x5a
call ebp
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x100128a3
jmp 0x100128bb
mov eax, dword [edi]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [0x1002aac8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
ret