joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006330
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010e6f2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x1011f8bc
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
sub esp, 8
mov dword [ebp - 4], 0
lea esi, [edi + 0x10]
mov dword [ebp - 0x10], 1
push esi
call fcn.10007e20
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x1011f8c4
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.10008340
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x48], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x3d], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov dword [esi + 0x4c], 0
mov eax, dword [0x10142b9c]
mov dword [esi + 0x40], eax
mov eax, dword [0x10142ba0]
mov dword [esi + 0x44], eax
mov dword [esi + 0x38], 0
push ecx
push 1
push dword [ebp + 8]
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.10007d50
test eax, eax
jne 0x10006462
mov eax, dword [edi]
push 0
mov ecx, dword [eax + 4]
add ecx, edi
mov edx, dword [ecx + 0xc]
or edx, 2
mov eax, edx
or eax, 4
cmp dword [ecx + 0x38], 0
cmovne eax, edx
push eax
call fcn.1000cf50
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10007a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1010e768
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x10007b8c
cmp byte [edi + 0x3d], 0
je 0x10007b8c
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x10007a88
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov byte [ebp - 0x2c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], ecx
cmp ecx, 0x10
movq qword [ebp - 0x2c], xmm0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 8
cmovae eax, dword [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
nop
mov eax, dword [edi + 0x38]
lea ebx, [ebp - 0x2c]
cmp edx, 0x10
lea esi, [ebp - 0x2c]
cmovae ebx, ecx
cmovae esi, ecx
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp eax, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x10007ae5
mov dword [ebp - 0x10], esi
xor eax, eax
jmp 0x10007b06
mov ecx, dword [edi + 0x38]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
add eax, ebx
push eax
push esi
lea eax, [edi + 0x40]
push eax
mov eax, dword [ebp - 0x14]
call dword [eax + 0x20]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x10]
sub eax, 0
je 0x10007b19
sub eax, 1
je 0x10007b1d
sub eax, 2
je 0x10007b6a
xor bl, bl
jmp 0x10007b6c
mov byte [edi + 0x3d], 0
cmp edx, 0x10
lea eax, [ebp - 0x2c]
cmovae eax, ecx
sub esi, eax
je 0x10007b4c
push dword [edi + 0x4c]
cmp edx, 0x10
lea eax, [ebp - 0x2c]
push esi
cmovae eax, ecx
push 1
push eax
call fcn.100f5ff9
mov edx, dword [ebp - 0x18]
add esp, 0x10
mov ecx, dword [ebp - 0x2c]
cmp esi, eax
jne 0x10007b15
cmp byte [edi + 0x3d], 0
je 0x10007b6a
test esi, esi
jne 0x10007ac0
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.1000d240
jmp 0x10007ab8
mov bl, 1
cmp edx, 0x10
jb 0x10007b79
push 1
inc edx
call fcn.1000d8e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008340
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1010e5e6
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100e9ed3
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.100e8df1
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000c250
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010ea0a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.100e9040
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x1000c2ff
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.100ec22d
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x1013a7b0
push eax
call fcn.100ec787
push eax
push esi
call fcn.100e8ef4
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1000e300
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x400
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
xor edx, edx
nop
mov esi, edx
mov eax, edx
shr eax, 1
and esi, 1
neg esi
and esi, 0x1edc6f41
xor esi, eax
mov eax, esi
shr esi, 1
and eax, 1
neg eax
and eax, 0x1edc6f41
xor eax, esi
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0x1edc6f41
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0x1edc6f41
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0x1edc6f41
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0x1edc6f41
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0x1edc6f41
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0x1edc6f41
xor eax, ecx
mov dword [esp + edx*4 + 0xc], eax
inc edx
cmp edx, 0x100
jb 0x1000e310
or eax, 0xffffffff
xor esi, esi
test edi, edi
je 0x1000e3c5
movzx edx, byte [esi + ebx]
inc esi
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [esp + edx*4 + 0xc]
cmp esi, edi
jb 0x1000e3b0
pop edi
pop esi
not eax
pop ebx
add esp, 0x400
ret
Function at 0x1000e760
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push 2
mov ebx, ecx
push 0
push ebx
call fcn.100f5d4b
add esp, 0xc
push ebx
call fcn.100f6c93
add esp, 4
mov esi, eax
push esi
call fcn.100ea148
add esp, 4
mov edi, eax
push 0
push 0
push ebx
call fcn.100f5d4b
add esp, 0xc
push ebx
push esi
push 1
push edi
call fcn.100f6e6a
add esp, 0x10
mov edx, esi
mov ecx, edi
call fcn.1000e300
push edi
mov esi, eax
call fcn.100e9b8b
add esp, 4
mov ecx, esi
call fcn.1000e3e0
xor ecx, ecx
test al, al
pop edi
cmove ecx, esi
pop esi
mov eax, ecx
pop ebx
ret

Function at 0x1000f430
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebx
mov bl, cl
test bl, bl
je 0x1000f46e
lea eax, [esp + 4]
push eax
push 0x40
push 4
push 0x506aba
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 4]
mov dword [0x506aba], 0x546734
push eax
push dword [esp + 8]
push 4
push 0x506aba
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1000f475
or dword [0x1013cfbc], 1
push 0x64
mov edx, str.MouseSensitivity
mov ecx, str.Input
call fcn.1000dcb0
cmp eax, 0x64
je 0x1000f4aa
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mov byte [0x10174f80], 1
mulsd xmm0, qword [0x101327d0]
movsd qword [0x101553c8], xmm0
test bl, bl
jne 0x1000f542
push 0
mov edx, str.ReverseMouseButtons
mov ecx, str.Input
call fcn.1000dcb0
test eax, eax
mov edx, str.UseScrollWheel
push 1
mov ecx, str.Input
setne byte [0x1015539c]
call fcn.1000dcb0
test eax, eax
mov edx, str.ScrollMod
push 0
mov ecx, str.Input
setne byte [0x1013ca24]
call fcn.1000dcb0
push 0x30
mov edx, str.MiddleMouse
mov dword [0x10154e8c], eax
mov ecx, str.Input
call fcn.1000dcb0
push 0
mov edx, str.BackgroundKeyboard
mov dword [0x101553c0], eax
mov ecx, str.Input
call fcn.1000dcb0
test eax, eax
mov edx, str.BackgroundMouse
push 0
mov ecx, str.Input
setne byte [0x1015539d]
call fcn.1000dcb0
mov dword [0x1013ca20], eax
pop ebx
pop ecx
ret

Function at 0x1000f550
Capabilities:
Get keyboard layout

Disassembly:
push str.dinput.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp byte [0x10174f83], 0
je 0x1000f56b
mov dword [0x563450], eax
jmp 0x1000f570
mov dword [0x51e450], eax
test eax, eax
jne 0x1000f57a
or eax, 0xffffffff
ret 0x10
push 0x1011fbf0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000f574
push esi
push edi
push dword [esp + 0x18]
mov edi, dword [esp + 0x18]
push edi
push dword [esp + 0x18]
push dword [esp + 0x18]
call eax
mov esi, eax
test esi, esi
js 0x1000f5d6
push 0xc
call fcn.100e9ed3
mov ecx, dword [edi]
add esp, 4
mov dword [esp + 0x18], eax
mov dword [eax], 0x1011fc18
mov dword [eax + 4], ecx
mov dword [eax + 8], 1
push 0
mov dword [edi], eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x101553d4], eax
mov eax, esi
pop edi
pop esi
ret 0x10
Function at 0x100108c0
Capabilities:
Query or enumerate registry value
Terminate process

Disassembly:
sub esp, 0x110
push esi
lea eax, [esp + 4]
mov dword [esp + 8], 0x104
push eax
mov eax, dword [esp + 0x11c]
mov esi, edx
or eax, 0x20001
push eax
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x100109c3
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100109b9
cmp dword [esp + 8], eax
je 0x100109b9
mov eax, dword [esp + 0xc]
cmp eax, 2
je 0x1001093e
cmp eax, 7
je 0x1001093e
cmp eax, 1
jne 0x100109b9
lea eax, [esp + 0x10]
push str.256COLOR
push eax
call fcn.100ec2b0
add esp, 8
test eax, eax
jne 0x10010980
lea eax, [esp + 0x10]
push str.640X480
push eax
call fcn.100ec2b0
add esp, 8
test eax, eax
jne 0x10010980
lea eax, [esp + 0x10]
push 0x10120250
push eax
call fcn.100ec2b0
add esp, 8
test eax, eax
je 0x100109b9
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [0x10174f82], 0
mov ecx, str.Fallout_appears_to_be_running_in_compatibility_mode._nPlease_check_the_compatibility_tab_of_fallout2.exe__and_ensure_that_the_all_settings_are_unchecked._nIf_these_options_are_disabled__click_the__Change_settings_for_all_users__button.If_nothing_helps__set_the_SkipCompatModeCheck_option_in_ddraw.ini_to_1.
push 0x2010
push str.sFall_v5.0.7.3
mov eax, 0x1011ff70
cmove eax, ecx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x110
ret 4
Function at 0x10010fb0
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
sub esp, 0x208
lea eax, [esp + 0x104]
mov edx, str.WrapperDLL
mov ecx, 0x1011f8fc
push esi
push edi
push 0x104
push eax
push 0x1011f824
call fcn.1000dde0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x10011033
push 4
mov edx, str.Mode
mov ecx, str.Graphics
call fcn.1000dcb0
cmp eax, 3
ja 0x10011033
mov ecx, 2
call fcn.1007b370
cmp eax, 1
je 0x1001100c
test eax, eax
jne 0x10011033
push 0x104
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.100f731d
add esp, 0xc
lea eax, [esp + 8]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x10011077
push 0xf9
lea eax, [esp + 0xc]
mov byte [0x1013ca25], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movq xmm0, qword [0x10120564]
lea ecx, [esp + 8]
add ecx, eax
mov ax, word [0x1012056c]
movq qword [ecx], xmm0
mov word [ecx + 8], ax
mov al, byte [0x1012056e]
mov byte [ecx + 0xa], al
lea eax, [esp + 8]
push eax
call esi
mov edi, eax
mov dword [0x10142bbc], edi
test edi, edi
je 0x100111b6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10120570
push edi
call esi
push 0x10120584
push edi
mov dword [0x10142bcc], eax
call esi
push 0x10120594
push edi
mov dword [0x10142bd4], eax
call esi
push 0x101205b0
push edi
mov dword [0x10142bd8], eax
call esi
push 0x101205c8
push edi
mov dword [0x10142bdc], eax
call esi
push 0x101205e0
push edi
mov dword [0x10142be0], eax
call esi
push 0x101205f0
push edi
mov dword [0x10142be4], eax
call esi
push 0x10120604
push edi
mov dword [0x10142be8], eax
call esi
push 0x10120610
push edi
mov dword [0x10142bec], eax
call esi
push 0x10120628
push edi
mov dword [0x10142bf0], eax
call esi
push 0x1012063c
push edi
mov dword [0x10142bc4], eax
call esi
push 0x10120650
push edi
mov dword [0x10142bc8], eax
call esi
push 0x10120668
push edi
mov dword [0x10142bf4], eax
call esi
push 0x10120680
push edi
mov dword [0x10142bc0], eax
call esi
push 0x10120698
push edi
mov dword [0x10142bf8], eax
call esi
push 0x101206b0
push edi
mov dword [0x10142bfc], eax
call esi
push 0x101206c0
push edi
mov dword [0x10142c00], eax
call esi
push 0x101206d4
push edi
mov dword [0x10142c04], eax
call esi
push 0x101206e8
push edi
mov dword [0x10142c08], eax
call esi
push 0x101206f8
push edi
mov dword [0x10142c0c], eax
call esi
mov dword [0x10142c10], eax
push 0x1012070c
push edi
call esi
push 0x10120720
push edi
mov dword [0x10142c14], eax
call esi
push 0x10120734
push edi
mov dword [0x10142bd0], eax
call esi
mov dword [0x10142c18], eax
pop edi
pop esi
add esp, 0x208
ret
Function at 0x100111c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, dword [esp + 8]
sub eax, 0
je 0x100112ca
sub eax, 1
jne 0x10011290
mov eax, dword [esp + 4]
push esi
push 0xe
push str.FALLOUT_Mapper
push 0x53c938
mov dword [0x10142bb8], eax
call fcn.100f71d0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 0xc
test eax, eax
lea eax, [esp + 0xc]
push eax
push 0x40
push 5
je 0x10011295
push 0x4de8de
call esi
mov eax, 0x100109d0
mov byte [0x4de8de], 0xe8
sub eax, 0x4de8e3
mov dword [0x4de8df], eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push 5
push 0x4de8de
call esi
lea eax, [esp + 0xc]
push eax
push 0x40
push 1
push 0x4de8e5
call esi
lea eax, [esp + 0xc]
mov byte [0x4de8e5], 0xeb
push eax
push dword [esp + 0x10]
push 1
push 0x4de8e5
call esi
lea eax, [esp + 0xc]
push eax
push 0x40
push 4
push 0x4de8e6
call esi
lea eax, [esp + 0xc]
mov dword [0x4de8e6], 0x7f
push eax
push dword [esp + 0x10]
push 4
push 0x4de8e6
call esi
pop esi
mov al, 1
ret 0xc
push 0x506a82
call esi
mov eax, 0x10010f90
mov byte [0x506a82], 0xe8
sub eax, 0x506a87
mov dword [0x506a83], eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push 5
push 0x506a82
call esi
pop esi
mov al, 1
ret 0xc
mov eax, dword [0x10142bbc]
test eax, eax
je 0x10011290
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
ret 0xc

Function at 0x10011f50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
xor ebx, ebx
push edi
mov edi, edx
mov dword [esp + 0xc], ecx
sub ebp, edi
xor ecx, ecx
add ebp, 3
shr ebp, 2
cmp edi, dword [esp + 0x14]
cmova ebp, ecx
test ebp, ebp
je 0x10011fa9
push esi
mov esi, dword [edi]
lea eax, [esp + 0x18]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 0x10]
mov dword [esi], eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc ebx
lea edi, [edi + 4]
cmp ebx, ebp
jne 0x10011f76
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x10012100
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov bl, cl
lea ecx, [esp + 0x1c]
mov ebp, edx
push ecx
push 0x40
lea eax, [edi + 5]
push eax
push ebp
mov dword [esp + 0x20], eax
lea esi, [ebp + 5]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 0x18]
sub eax, esi
mov byte [ebp], bl
mov dword [ebp + 1], eax
mov byte [esi], 0x90
lea esi, [esi + 1]
sub edi, 1
jne 0x10012132
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x20]
push dword [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x10012160
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
mov esi, edx
push eax
push 0x40
push 8
push 0x444a64
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi]
mov ecx, 0x444a64
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
lea eax, [esp + 4]
push eax
push dword [esp + 8]
push 8
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ecx
ret 4

Function at 0x100121a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebx
push edi
lea eax, [esp + 8]
mov edi, ecx
push eax
push 0x40
push 1
push edi
mov bl, dl
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
mov byte [edi], bl
push eax
push dword [esp + 0xc]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
pop ecx
ret

Function at 0x100121d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebx
push edi
lea eax, [esp + 8]
mov ebx, ecx
push eax
push 0x40
push 4
push ebx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
mov dword [ebx], edi
push eax
push dword [esp + 0xc]
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
pop ecx
ret

Function at 0x10012200
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
mov esi, ecx
push eax
push 0x40
push 4
lea ebp, [esi + 1]
mov ebx, edx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0xc]
sub ebx, esi
push eax
push dword [esp + 0x10]
sub ebx, 5
push 4
push ebp
mov dword [ebp], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10012240
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebx
push edi
lea eax, [esp + 8]
mov ebx, ecx
push eax
push 0x40
push 5
push ebx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
mov byte [ebx], 0xe8
push eax
push dword [esp + 0xc]
sub edi, ebx
push 5
sub edi, 5
push ebx
mov dword [ebx + 1], edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
pop ecx
ret

Function at 0x10012280
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebx
push edi
lea eax, [esp + 8]
mov ebx, ecx
push eax
push 0x40
push 5
push ebx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
mov byte [ebx], 0xe9
push eax
push dword [esp + 0xc]
sub edi, ebx
push 5
sub edi, 5
push ebx
mov dword [ebx + 1], edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
pop ecx
ret
Function at 0x100122c0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
sub ebx, ebp
add ebx, 3
mov dword [esp + 0x10], ecx
shr ebx, 2
xor ecx, ecx
cmp ebp, dword [esp + 0x1c]
mov dword [esp + 0xc], 0
cmova ebx, ecx
test ebx, ebx
je 0x10012335
push esi
push edi
mov esi, dword [ebp]
lea eax, [esp + 0x10]
push eax
push 0x40
push 4
lea edi, [esi + 1]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 0x18]
sub eax, esi
sub eax, 5
mov dword [edi], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 0x14]
lea ebp, [ebp + 4]
inc eax
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x100122f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8

Function at 0x10012340
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
sub ebx, edi
mov dword [esp + 0x10], ecx
add ebx, 3
xor ecx, ecx
shr ebx, 2
cmp edi, dword [esp + 0x1c]
cmova ebx, ecx
test ebx, ebx
je 0x100123ac
push esi
nop word [eax + eax]
mov esi, dword [edi]
lea eax, [esp + 0x10]
push eax
push 0x40
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 0x14]
sub eax, esi
mov byte [esi], 0xe8
sub eax, 5
mov dword [esi + 1], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc ebp
lea edi, [edi + 4]
cmp ebp, ebx
jne 0x10012370
pop esi
pop edi
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x10012920
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010ebb7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x10120a20
mov dword [edi + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.1000bff0
lea ebx, [edi + 4]
mov dword [esi + 0x3c], 0
push 0x20
mov ecx, esi
mov dword [esi + 0x38], ebx
call fcn.10008ca0
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x100129ba
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.1000cf50
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov dword [ebp - 0x18], ebx
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x10120a28
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.10008340
lea eax, [ebx + 4]
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [ebx + 0xc], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 0x14]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x3d], 0
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx + 0x4c], 0
mov eax, dword [0x10142b9c]
mov dword [ebx + 0x40], eax
mov eax, dword [0x10142ba0]
mov dword [ebx + 0x44], eax
mov eax, edi
pop edi
mov dword [ebx + 0x38], 0
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4