joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0xc]
xor edx, edx
shl eax, 2
mov dword [ebp - 0x10], edx
push esi
mov esi, dword [ebp + 8]
test eax, eax
jne 0x1001901e
xor al, al
jmp 0x1001903a
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x10]
test eax, eax
setne al
mov byte [ebp - 4], al
mov esi, dword [esi]
test al, al
je 0x10019058
mov ecx, dword [ebp - 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp - 0xc]
mov dword [ebp + 0xc], ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10019060
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x10], edx
push ebx
push esi
mov esi, dword [ebp + 8]
test eax, eax
jne 0x1001907c
xor al, al
jmp 0x10019098
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x10]
test eax, eax
setne al
mov byte [ebp - 4], al
mov bl, byte [esi]
test al, al
je 0x100190b6
mov ecx, dword [ebp - 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp - 0xc]
mov dword [ebp + 0xc], ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10032bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x101c6474]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10032c7c
cmp byte [esi + 0x3d], 0
je 0x10032c7c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10032c6a
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x10032c32
sub eax, 1
je 0x10032c36
sub eax, 2
jne 0x10032c6a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10128533
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10032c53
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1012f655
add esp, 0x10
cmp edi, eax
jne 0x10032c6a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10128533
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10128533
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10128533
mov esp, ebp
pop ebp
ret
Function at 0x10038fe0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015497d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x101c6474]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.101281d6
mov edi, eax
add esp, 4
test edi, edi
je 0x1003907d
push 1
mov dword [ebp - 4], 0
call fcn.10127114
add esp, 4
mov dword [edi + 4], eax
jmp 0x1003907f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.1002a2b0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x100390da
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x100390da
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x100390f6
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x10039119
cmp byte [ebp + 0xc], 0
je 0x10039105
push esi
call fcn.1012761f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x10039125
mov esi, str.ios_base::badbit_set
jmp 0x10039135
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.1003b8f0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.1002c5a0
push 0x101ba5bc
lea eax, [ebp - 0x28]
push eax
call fcn.1012a64c
int3
Function at 0x1003a5a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ecx]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov edx, dword [eax + 8]
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push ebx
push 5
push ecx
mov eax, esp
mov dword [eax], esi
call edx
push ebx
push ecx
mov eax, esp
push dword [ebp + 8]
mov dword [eax], esi
call fcn.10018850
add esp, 0xc
movzx eax, bl
mov dword [ebp - 0x14], 0
test bl, bl
jne 0x1003a5e8
mov byte [ebp - 8], bl
mov byte [esi], 0xe8
jmp 0x1003a623
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
call ebx
test eax, eax
setne al
mov byte [ebp - 8], al
mov byte [esi], 0xe8
test al, al
je 0x1003a620
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
call ebx
mov ebx, dword [ebp + 0x14]
push ebx
push 4
push ecx
mov ecx, esp
inc esi
push ecx
mov dword [ecx], edi
mov ecx, esp
mov dword [ecx], esi
call fcn.100186f0
mov eax, dword [ebp + 8]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1003bc90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x101c6474]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1003bcc0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10128533
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1003bcfc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1003bcfc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10128533
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1003bde4
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1003bd24
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1003bd57
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.1012ecde
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10128533
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x28], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x1003bdb7
sub eax, 1
je 0x1003bdb7
sub eax, 2
jne 0x1003bde4
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.1001fa60
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10128533
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1003bdd4
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1012f655
add esp, 0x10
cmp edi, eax
jne 0x1003bde4
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x1003bce7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10128533
mov esp, ebp
pop ebp
ret 4
Function at 0x1003c4d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x14], 0
je 0x1003c548
mov ebx, dword [edi + 0x10]
xor eax, eax
cmp byte [edi + 0x15], al
mov esi, dword [edi + 0xc]
cmovne eax, ebx
mov dword [ebp - 0x14], 0
test eax, eax
jne 0x1003c4ff
mov byte [ebp - 8], al
jmp 0x1003c519
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 8]
push ebx
lea eax, [edi + 4]
push eax
push esi
call fcn.1012ab20
add esp, 0xc
cmp byte [ebp - 8], 0
je 0x1003c544
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [edi + 0x14], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1003c550
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
cmp edi, 5
jbe 0x1003c577
push 0x53
push str.E:plugin_sdkinjectorhooking.hpp
push str.size___bufsize
call fcn.1013012a
add esp, 0xc
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov al, byte [ebp + 0x10]
lea ecx, [ebx + 4]
mov esi, dword [ebp + 8]
mov dword [ebp + 0x10], ecx
xor ecx, ecx
test al, al
mov byte [ebx + 0x14], 1
mov dword [ebx + 0xc], esi
cmovne ecx, edi
mov dword [ebx + 0x10], edi
mov byte [ebx + 0x15], al
mov dword [ebp - 0x10], 0
test ecx, ecx
jne 0x1003c5ad
xor bl, bl
jmp 0x1003c5c6
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
push eax
push 0x40
push ecx
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne bl
push edi
push esi
push dword [ebp + 0x10]
mov byte [ebp - 4], bl
call fcn.1012ab20
add esp, 0xc
test bl, bl
je 0x1003c5f1
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003d590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x1003d65d
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x1003d64c
jg 0x1003d5c8
test edx, edx
je 0x1003d64c
call fcn.10033b80
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x1003d615
jg 0x1003d5de
test esi, esi
je 0x1003d615
cmp ebx, eax
jg 0x1003d5ed
jl 0x1003d5e8
cmp edi, esi
jae 0x1003d5ed
mov esi, edi
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 8]
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.1012ab20
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x1003d639
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x1003d646
mov ecx, dword [ebp - 4]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [ebp + 8], esi
test ebx, ebx
jg 0x1003d5c8
jl 0x1003d646
test edi, edi
jne 0x1003d5c8
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
mov edx, dword [eax]
lea eax, [ecx + 0x30]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
test edx, edx
je 0x1003d681
mov eax, dword [eax]
mov edx, dword [eax]
jmp 0x1003d686
xor edx, edx
mov dword [ebp - 0xc], eax
mov eax, edx
cdq
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], edx
test edi, edi
jl 0x1003d6e5
jg 0x1003d699
test esi, esi
je 0x1003d6e5
test edx, edx
jl 0x1003d6e0
jg 0x1003d6a3
test eax, eax
je 0x1003d6e0
cmp edi, edx
jg 0x1003d6b5
jl 0x1003d6ad
cmp esi, eax
jae 0x1003d6b5
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 8], edi
mov ebx, dword [ebp + 8]
push eax
push ebx
push dword [ebp - 0x10]
call fcn.1012ab20
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp + 0x10]
add ebx, edx
mov ecx, dword [ebp - 4]
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 8]
sub dword [eax], edx
mov eax, dword [ecx + 0x20]
add dword [eax], edx
jmp 0x1003d6e8
mov ebx, dword [ebp + 8]
jmp 0x1003d6f2
mov ebx, dword [ebp + 8]
test edi, edi
jl 0x1003d70b
jg 0x1003d6f2
test esi, esi
je 0x1003d70b
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x1003d70b
push eax
push esi
push 1
push ebx
call fcn.1012f655
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10040770
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101552d0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x101c6474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 1
jne 0x100408f4
call fcn.10017300
cmp eax, 0x64
jne 0x100407c6
push 0
push 0
push 0
push 0x10040740
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x100408f4
push 3
mov dword [ebp - 4], 0
call fcn.1007bbf0
add esp, 4
cmp dword [section..data], 0
jne 0x10040824
push 0xb0
call fcn.101281d6
add esp, 4
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x10040808
push 1
push 0x40
push 2
push str.CheatMenuIII.log
mov ecx, eax
call fcn.1002b030
jmp 0x1004080a
xor eax, eax
mov ecx, dword [section..data]
mov dword [section..data], eax
test ecx, ecx
je 0x10040824
mov eax, dword [ecx]
push 1
add ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax]
push 0x40
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
call fcn.10017a70
movups xmm0, xmmword [str.Unknown_game_version._GTA_III_v1.0_EN_is_required.]
mov ecx, eax
mov dword [ebp - 0x18], 0x32
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], 0x3f
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x1018257c]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [0x1018258c]
movups xmmword [ecx + 0x20], xmm0
mov ax, word [0x1018259c]
mov word [ecx + 0x30], ax
lea eax, [ebp - 0x28]
push eax
mov byte [ecx + 0x32], 0
call fcn.1007baf0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [section..data]
call fcn.1001fe40
push eax
call fcn.10026f00
mov ecx, dword [ebp - 0x14]
add esp, 0x14
cmp ecx, 0x10
jb 0x100408e0
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100408d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040914
push ecx
push edx
call fcn.10128206
add esp, 8
push 0x10
push str.CheatMenuIII
push str.Unknown_game_version._GTA_III_v1.0_EN_is_required.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10128533
mov esp, ebp
pop ebp
ret 0xc
call fcn.1012e26f
int3
Function at 0x10043080
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push dword [ebp + 8]
call fcn.100173c0
add esp, 4
lea ecx, [ebp - 4]
push eax
call fcn.100186c0
movzx eax, byte [ebp + 0x10]
mov esi, dword [ebp - 4]
shl eax, 2
mov dword [ebp - 0x14], 0
test eax, eax
jne 0x100430b6
mov byte [ebp - 8], 0
jmp 0x100430d0
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
cmp byte [ebp - 8], 0
je 0x100430f2
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10043100
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push dword [ebp + 8]
call fcn.100173c0
add esp, 4
lea ecx, [ebp - 4]
push eax
call fcn.100186c0
movzx eax, byte [ebp + 0x10]
mov esi, dword [ebp - 4]
shl eax, 2
mov dword [ebp - 0x14], 0
test eax, eax
jne 0x10043136
mov byte [ebp - 8], 0
jmp 0x10043150
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 8]
movss xmm0, dword [ebp + 0xc]
movss dword [esi], xmm0
cmp byte [ebp - 8], 0
je 0x10043176
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1004cb30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101568cd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x101c6474]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
sub esp, 0x28
mov dword [ebp - 4], 0
mov esi, esp
mov dword [esi + 0x24], 0
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x1004cba7
lea eax, [ebp + 0xc]
cmp ecx, eax
jne 0x1004cb9d
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov dword [esi + 0x24], eax
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x1004cba7
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne al
push eax
call edx
jmp 0x1004cba0
mov dword [esi + 0x24], ecx
mov dword [ebp + 0x30], 0
push dword [ebp + 8]
mov ecx, ebx
call fcn.1004c680
cmp byte [ebx + 0x24], 0
jne 0x1004cc5c
mov edi, dword [ebp + 0x34]
push 0x4cfe12
call fcn.100173c0
add esp, 4
lea ecx, [ebp - 0x10]
push eax
call fcn.100186c0
mov eax, dword [ebx]
mov esi, dword [ebp - 0x10]
push 1
push 5
mov edx, dword [eax + 8]
push ecx
mov eax, esp
mov ecx, ebx
mov dword [eax], esi
call edx
push 1
push ecx
mov eax, esp
mov dword [eax], esi
lea eax, [ebp - 0x14]
push eax
call fcn.10018850
add esp, 0xc
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], esi
push eax
push 0x40
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0x18]
mov byte [esi], 0xe8
cmp byte [ebp - 0x18], 0
je 0x1004cc3b
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 1
push 4
push ecx
mov eax, esp
inc esi
push ecx
mov dword [eax], edi
mov eax, esp
mov dword [eax], esi
call fcn.100186f0
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov dword [ebx + 0x18], eax
mov byte [ebx + 0x24], 1
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x1004cc74
mov edx, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x10066b80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10158b90
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x101c6474]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.101281d6
mov esi, eax
add esp, 4
test esi, esi
je 0x10066bd9
push 1
mov dword [ebp - 4], 0
call fcn.10127114
add esp, 4
mov dword [esi + 4], eax
jmp 0x10066bdb
xor esi, esi
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea edi, [eax + 0x14]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 0x2c], edx
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x14]
mov dword [eax + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x4c], 0
mov eax, dword [0x101d0d3c]
mov ecx, dword [0x101d0d40]
mov dword [edx + 0x40], eax
mov eax, edx
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret