joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009e370
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push esi
push edi
cmp dword [ebx + 0x14], 0x10
mov edi, dword [ebx + 0x10]
mov dword [esp + 0xc], edi
jb 0x1009e38b
mov esi, dword [ebx]
jmp 0x1009e38d
mov esi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x1009e3a9
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x1009e398
mov ecx, dword [0x10154918]
and ecx, edx
mov edx, dword [0x1015490c]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov esi, dword [edx + ecx*4]
inc ecx
mov dword [esp + 0x10], esi
lea ecx, [edx + ecx*4]
mov dword [esp + 0x14], ecx
nop dword [eax + eax]
mov edx, dword [0x10154904]
cmp esi, edx
jne 0x1009e3de
mov ecx, edx
jmp 0x1009e3e2
mov ecx, dword [ecx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x1009e527
cmp dword [ebx + 0x14], 0x10
lea edx, [eax + 8]
jb 0x1009e3f7
mov edi, dword [ebx]
jmp 0x1009e3f9
mov edi, ebx
cmp dword [edx + 0x14], 0x10
lea ecx, [edx + 0x10]
jb 0x1009e404
mov edx, dword [edx]
mov ecx, dword [ecx]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xc]
mov esi, ecx
cmp dword [esp + 0x20], ecx
cmovb esi, dword [esp + 0x20]
test esi, esi
je 0x1009e476
sub esi, 4
jb 0x1009e433
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x1009e438
add edx, 4
add edi, 4
sub esi, 4
jae 0x1009e422
cmp esi, 0xfffffffc
je 0x1009e46c
mov cl, byte [edx]
cmp cl, byte [edi]
jne 0x1009e465
cmp esi, 0xfffffffd
je 0x1009e46c
mov cl, byte [edx + 1]
cmp cl, byte [edi + 1]
jne 0x1009e465
cmp esi, 0xfffffffe
je 0x1009e46c
mov cl, byte [edx + 2]
cmp cl, byte [edi + 2]
jne 0x1009e465
cmp esi, 0xffffffff
je 0x1009e46c
mov cl, byte [edx + 3]
cmp cl, byte [edi + 3]
je 0x1009e46c
sbb ecx, ecx
or ecx, 1
jmp 0x1009e46e
xor ecx, ecx
test ecx, ecx
jne 0x1009e480
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
cmp edx, ecx
jb 0x1009e480
jbe 0x1009e48f
mov eax, dword [eax]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x1009e3d0
cmp dword [eax + 0x1c], 0x10
lea edx, [eax + 8]
lea edi, [edx + 0x10]
jb 0x1009e49d
mov edx, dword [edx]
cmp dword [ebx + 0x14], 0x10
jb 0x1009e4a5
mov ebx, dword [ebx]
mov edi, dword [edi]
cmp ecx, edi
mov esi, edi
cmovb esi, ecx
test esi, esi
je 0x1009e50b
sub esi, 4
jb 0x1009e4c8
mov ecx, dword [ebx]
cmp ecx, dword [edx]
jne 0x1009e4cd
add ebx, 4
add edx, 4
sub esi, 4
jae 0x1009e4b7
cmp esi, 0xfffffffc
je 0x1009e501
mov cl, byte [ebx]
cmp cl, byte [edx]
jne 0x1009e4fa
cmp esi, 0xfffffffd
je 0x1009e501
mov cl, byte [ebx + 1]
cmp cl, byte [edx + 1]
jne 0x1009e4fa
cmp esi, 0xfffffffe
je 0x1009e501
mov cl, byte [ebx + 2]
cmp cl, byte [edx + 2]
jne 0x1009e4fa
cmp esi, 0xffffffff
je 0x1009e501
mov cl, byte [ebx + 3]
cmp cl, byte [edx + 3]
je 0x1009e501
sbb ecx, ecx
or ecx, 1
jmp 0x1009e503
xor ecx, ecx
test ecx, ecx
jne 0x1009e511
mov ecx, dword [esp + 0xc]
cmp ecx, edi
jb 0x1009e511
jbe 0x1009e516
mov eax, dword [0x10154904]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, ecx
add esp, 0xc
ret 8
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword [eax], edx
add esp, 0xc
ret 8
Function at 0x1009e5e0
Capabilities:
Hash data using fnv

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov edx, dword [0x101548ec]
push edi
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor ecx, eax
movzx eax, byte [esi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [0x101548f8]
and ecx, eax
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov edi, dword [edx + ecx*4]
lea ebx, [edx + ecx*4]
mov edx, dword [0x101548e4]
cmp edi, edx
jne 0x1009e640
mov ecx, edx
jmp 0x1009e645
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x1009e66a
mov ecx, dword [eax + 8]
cmp ecx, dword [esi]
je 0x1009e654
mov eax, dword [eax]
jmp 0x1009e638
mov ecx, dword [esi]
cmp ecx, dword [eax + 8]
mov ecx, dword [esp + 0x10]
pop edi
cmovne eax, edx
pop esi
mov dword [ecx], eax
mov eax, ecx
pop ebx
ret 8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword [eax], edx
ret 8

Function at 0x1009e720
Capabilities:
Hash data using fnv

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov edx, dword [0x101548cc]
push edi
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor ecx, eax
movzx eax, byte [esi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [0x101548d8]
and ecx, eax
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov edi, dword [edx + ecx*4]
lea ebx, [edx + ecx*4]
mov edx, dword [0x101548c4]
cmp edi, edx
jne 0x1009e780
mov ecx, edx
jmp 0x1009e785
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x1009e7aa
mov ecx, dword [eax + 8]
cmp ecx, dword [esi]
je 0x1009e794
mov eax, dword [eax]
jmp 0x1009e778
mov ecx, dword [esi]
cmp ecx, dword [eax + 8]
mov ecx, dword [esp + 0x10]
pop edi
cmovne eax, edx
pop esi
mov dword [ecx], eax
mov eax, ecx
pop ebx
ret 8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword [eax], edx
ret 8

Function at 0x1009f460
Capabilities:
Hash data using fnv

Disassembly:
mov edx, dword [esp + 4]
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 4]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 5]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 6]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 7]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
ret 4
Function at 0x100a0690
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x1c], 0x10
push ebx
mov ebx, dword [eax + 0x18]
push ebp
push esi
lea esi, [eax + 8]
mov ebp, ecx
push edi
jb 0x100a06a8
mov esi, dword [esi]
xor edx, edx
mov edi, 0x811c9dc5
test ebx, ebx
je 0x100a06c4
movzx ecx, byte [esi + edx]
inc edx
xor ecx, edi
imul edi, ecx, 0x1000193
cmp edx, ebx
jb 0x100a06b3
mov ecx, dword [ebp + 0x18]
and ecx, edi
lea edx, [ecx*8]
mov ecx, dword [ebp + 0xc]
add ecx, edx
cmp dword [ecx + 4], eax
jne 0x100a06f7
cmp dword [ecx], eax
jne 0x100a06ef
mov eax, dword [ebp + 4]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 4]
mov dword [ecx + edx + 4], eax
jmp 0x100a06ff
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
jmp 0x100a06ff
cmp dword [ecx], eax
jne 0x100a0703
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
lea ecx, [ebp + 4]
push eax
push esi
call fcn.100a0720
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x100a1670
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x10154944]
push edi
mov edi, ecx
mov dword [esp + 4], eax
push edi
push 1
lea eax, [esp + 0xc]
push 4
push eax
call fcn.100f607a
add esp, 0x10
cmp dword [esp + 4], 0
je 0x100a16fc
mov eax, dword [0x10154940]
push esi
mov esi, dword [eax]
cmp esi, eax
je 0x100a16c8
mov eax, dword [esi + 8]
push edi
push 1
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 4
push eax
call fcn.100f607a
mov esi, dword [esi]
add esp, 0x10
mov eax, dword [0x10154940]
cmp esi, eax
jne 0x100a16a4
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [0x10154940]
mov dword [eax + 4], eax
mov dword [0x10154944], 0
cmp ecx, dword [0x10154940]
je 0x100a16fb
mov esi, dword [ecx]
push ecx
call fcn.100e9b71
add esp, 4
mov ecx, esi
cmp esi, dword [0x10154940]
jne 0x100a16e6
pop esi
pop edi
add esp, 8
ret

Function at 0x100a1710
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
lea eax, [esp]
push ebp
mov ebp, ecx
push ebp
push 1
push 4
push eax
call fcn.100f6eeb
add esp, 0x10
cmp eax, 1
je 0x100a1733
xor al, al
pop ebp
add esp, 0xc
ret
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
jbe 0x100a179d
nop
push ebp
push 1
lea eax, [esp + 0x1c]
push 4
push eax
call fcn.100f6eeb
add esp, 0x10
cmp eax, 1
jne 0x100a17a7
mov eax, dword [esp + 0x14]
mov ebx, dword [0x10154940]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push dword [ebx + 4]
push ebx
call fcn.100a4c40
mov edx, dword [0x10154944]
mov ecx, 0x15555554
sub ecx, edx
mov esi, eax
cmp ecx, 1
jb 0x100a17b1
inc edx
inc edi
mov dword [0x10154944], edx
mov dword [ebx + 4], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
cmp edi, dword [esp + 0x10]
jb 0x100a1740
pop edi
pop esi
pop ebx
xor al, al
pop ebp
add esp, 0xc
ret
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
add esp, 0xc
ret
push str.list_T__too_long
call fcn.100e89b8
int3
Function at 0x100a9780
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x1017533c]
push esi
push 0
mov esi, ecx
lea ecx, [esp + 0xc]
mov edx, dword [eax]
push ecx
push 2
push 0x16
push dword [0x1016e910]
push dword [0x1016e90c]
push eax
call dword [edx + 0x90]
mov eax, dword [0x1017533c]
push dword [esp + 8]
push dword [0x1016ea60]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x80]
lea eax, [esp + 4]
push eax
mov eax, dword [0x1016e90c]
imul eax, dword [0x1016e910]
add eax, eax
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXCreateBuffer]
push 0
push 0
push dword [esp + 0x10]
lea eax, [esp + 0x10]
push 3
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXSaveSurfaceToFileInMemory]
mov eax, dword [esp + 4]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
push eax
call fcn.100f607a
push esi
call fcn.100f22da
mov eax, dword [esp + 0x1c]
add esp, 0x14
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x100aa120
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
push edi
push 0xa
mov esi, ecx
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x100aa13c
pop edi
xor al, al
pop esi
pop ecx
ret
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push 0x1012cbb8
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100aa180
pop ebx
pop edi
xor al, al
pop esi
pop ecx
ret
push 0
lea eax, [esp + 0x10]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov al, 1
pop esi
pop ecx
ret

Function at 0x100aa1a0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
test edi, edi
jle 0x100aa205
mov ebp, dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + edx]
push eax
push ecx
call ebp
test eax, eax
jle 0x100aa1db
add esi, eax
jmp 0x100aa1eb
call ebx
cmp eax, 0x2733
je 0x100aa1eb
cmp eax, 0x2747
jne 0x100aa1f9
cmp esi, edi
jge 0x100aa205
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x100aa1c5
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 4
Function at 0x100aa220
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
test edi, edi
jle 0x100aa285
mov ebp, dword [sym.imp.WS2_32.dll_recv]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + edx]
push eax
push ecx
call ebp
test eax, eax
jle 0x100aa25b
add esi, eax
jmp 0x100aa26b
call ebx
cmp eax, 0x2733
je 0x100aa26b
cmp eax, 0x2747
jne 0x100aa279
cmp esi, edi
jge 0x100aa285
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x100aa245
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 4
Function at 0x100aad60
Capabilities:
Create process on windows
Create tcp socket
Initialize winsock library
Start tcp server

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x204
lea eax, [esp + 0x74]
push ebx
push esi
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100aaec2
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x100aaebc
mov eax, 2
push 0x1012cbcc
mov word [esp + 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x1095
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x100aae4e
push 4
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x100aae4e
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.100ed150
mov esi, dword [sym.imp.KERNEL32.dll_CreateProcessA]
xorps xmm0, xmm0
add esp, 0xc
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x38], 0x44
mov bl, 1
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push str.FalloutDebug.exe__debugedit
push 0x1012cbb8
call esi
test eax, eax
jne 0x100aae62
mov al, bl
dec bl
test al, al
je 0x100aae4e
mov ecx, dword [0x10142bb8]
call fcn.100aa120
test al, al
jne 0x100aae11
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x20]
call esi
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x100aae4e
mov eax, dword [0x10142bb4]
test eax, eax
je 0x100aaea4
mov ecx, dword [eax]
cmp ecx, 0x1011fc38
jne 0x100aaea0
mov eax, dword [eax + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
lea ecx, [esp + 0xc]
call fcn.100aa2a0
push dword [esp + 0xc]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push edi
call esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100ab3b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010ea88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push str.DontDeleteProtos
mov edx, str.Debugging
mov ecx, str..ddraw.ini
call fcn.100052a0
mov dword [0x10154e3c], eax
cmp eax, 1
je 0x100ab42d
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x100ab4d6
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.1000d8e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
xor edx, edx
call fcn.10005410
mov dword [ebp - 4], 0xffffffff
mov esi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x100ab45b
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.1000d8e0
test esi, esi
je 0x100ab4d6
cmp byte [0x10174f84], 0
je 0x100ab4aa
test byte [0x10174f88], 1
je 0x100ab4aa
mov edx, str.Applying_permanent_protos_patch.
mov ecx, 0x10153db8
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
cmp dword [0x101553d8], 0
je 0x100ab4aa
mov edx, str.Applying_permanent_protos_patch.
mov ecx, 0x10141e60
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 1
push 0x48007e
call esi
lea eax, [ebp - 0x10]
mov byte [0x48007e], 0xeb
push eax
push dword [ebp - 0x10]
push 1
push 0x48007e
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100ab4f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010ea88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push str.AlwaysReloadMsgs
mov edx, str.Debugging
mov ecx, str..ddraw.ini
call fcn.100052a0
mov dword [0x10154e3c], eax
cmp eax, 1
je 0x100ab56d
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x100ab616
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.1000d8e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
xor edx, edx
call fcn.10005410
mov dword [ebp - 4], 0xffffffff
mov esi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x100ab59b
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.1000d8e0
test esi, esi
je 0x100ab616
cmp byte [0x10174f84], 0
je 0x100ab5ea
test byte [0x10174f88], 1
je 0x100ab5ea
mov edx, str.Applying_always_reload_messages_patch.
mov ecx, 0x10153db8
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
cmp dword [0x101553d8], 0
je 0x100ab5ea
mov edx, str.Applying_always_reload_messages_patch.
mov ecx, 0x10141e60
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 1
push 0x4a6b8d
call esi
lea eax, [ebp - 0x10]
mov byte [0x4a6b8d], 0
push eax
push dword [ebp - 0x10]
push 1
push 0x4a6b8d
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100ac050
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 4]
push eax
push 0x40
push 4
push 0x43ef84
call esi
mov eax, 0x100abae0
sub eax, 0x43ef88
mov dword [0x43ef84], eax
lea eax, [esp + 4]
push eax
push dword [esp + 8]
push 4
push 0x43ef84
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 4
push 0x43f142
call esi
mov eax, 0x100abb00
sub eax, 0x43f146
mov dword [0x43f142], eax
lea eax, [esp + 4]
push eax
push dword [esp + 8]
push 4
push 0x43f142
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 1
push 0x43ef76
call esi
lea eax, [esp + 4]
mov byte [0x43ef76], 0x32
push eax
push dword [esp + 8]
push 1
push 0x43ef76
call esi
lea eax, [esp + 0x10]
mov dword [esp + 4], 0x43efa4
push eax
lea edx, [esp + 8]
mov dword [esp + 0xc], 0x43efb9
mov ecx, 0x101755b0
mov dword [esp + 0x10], 0x43f2fc
call fcn.10011f50
lea eax, [esp + 0xc]
mov dword [esp + 4], 0x43efea
push eax
lea edx, [esp + 8]
mov dword [esp + 0xc], 0x43f315
mov ecx, 0x101755b8
call fcn.10011f50
lea eax, [esp + 4]
push eax
push 0x40
push 4
push 0x43f309
call esi
lea eax, [esp + 4]
mov dword [0x43f309], 0x101755b4
push eax
push dword [esp + 8]
push 4
push 0x43f309
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 4
push 0x43f438
call esi
mov dword [0x43f438], 0x10175420
lea eax, [esp + 4]
push eax
push dword [esp + 8]
push 4
push 0x43f438
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 4
push 0x43f475
call esi
lea eax, [esp + 4]
mov dword [0x43f475], 0x10175424
push eax
push dword [esp + 8]
push 4
push 0x43f475
call esi
lea eax, [esp + 0xc]
mov dword [esp + 4], 0x43f65e
push eax
lea edx, [esp + 8]
mov dword [esp + 0xc], 0x43f6bb
mov ecx, 0x10175350
call fcn.10011f50
push 2
push 0x100abb20
mov edx, 0x43f05d
mov cl, 0xe8
call fcn.10012100
push 2
push 0x100abb40
mov edx, 0x43f184
mov cl, 0xe8
call fcn.10012100
push 2
push 0x100abb60
mov edx, 0x43f1e4
mov cl, 0xe8
call fcn.10012100
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100ad290
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov edx, dword [0x10154a2c]
mov eax, 0x3a196b1f
push ebx
mov ebx, dword [0x10154a28]
sub edx, ebx
imul edx
push ebp
push esi
sar edx, 5
xor esi, esi
push edi
mov edi, ecx
mov dword [esp + 0x10], esi
mov ecx, edx
mov dword [esp + 0x14], edi
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x10175fe4]
cmp edx, ecx
jae 0x100ad2f3
imul eax, edx, 0x8d
add eax, ebx
sub ecx, edx
cmp byte [eax + 0x8c], 0
je 0x100ad2e9
cmp dword [eax], 0
je 0x100ad2e9
inc esi
mov dword [esp + 0x10], esi
add eax, 0x8d
sub ecx, 1
jne 0x100ad2d6
push edi
push 1
lea eax, [esp + 0x18]
push 4
push eax
call fcn.100f607a
mov ebp, dword [0x10154a2c]
mov eax, 0x3a196b1f
mov edi, dword [0x10154a28]
mov ecx, ebp
mov ebx, dword [0x10175fe4]
sub ecx, edi
imul ecx
add esp, 0x10
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x100ad3a0
imul esi, ebx, 0x8d
cmp byte [esi + edi + 0x8c], 0
je 0x100ad380
cmp dword [esi + edi], 0
je 0x100ad380
mov ebp, dword [esp + 0x14]
lea eax, [edi + 4]
push ebp
push 1
add eax, esi
push 0x88
push eax
call fcn.100f607a
mov eax, dword [0x10154a28]
push ebp
push 1
push dword [esi + eax + 4]
push dword [esi + eax]
call fcn.100f607a
mov ebp, dword [0x10154a2c]
add esp, 0x20
mov edi, dword [0x10154a28]
mov ecx, ebp
mov eax, 0x3a196b1f
sub ecx, edi
inc ebx
imul ecx
add esi, 0x8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x100ad336
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100b6570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1013caa8]
sub esp, 0x114
mov eax, dword [eax]
add eax, dword [0x101822e4]
push esi
push 0x1012cfa8
push eax
push dword [0x5193cc]
lea eax, [ebp - 0x110]
push str._s_savegame_slot_.2d_sfall_s.sav
push eax
call fcn.1000d880
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
push 0
push str.Saving_game:__s_n
call fcn.10012410
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x10124840
push eax
call fcn.100f224d
mov esi, eax
add esp, 8
test esi, esi
je 0x100b6729
mov ecx, esi
call fcn.1009d170
push esi
push 1
push 4
push 0x1013cf90
call fcn.100f607a
mov eax, dword [0x101751f4]
push esi
shl eax, 0x10
push 1
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 4
push eax
call fcn.100f607a
add esp, 0x20
mov ecx, esi
call fcn.100bf110
mov ecx, esi
call fcn.100d5330
mov ecx, esi
call fcn.100a1670
push esi
call fcn.100f22da
mov eax, dword [0x1013caa8]
add esp, 4
mov eax, dword [eax]
add eax, dword [0x101822e4]
push 0x1012db6c
push eax
push dword [0x5193cc]
lea eax, [ebp - 0x110]
push str._s_savegame_slot_.2d_sfall_s.sav
push eax
call fcn.1000d880
add esp, 0x14
lea eax, [ebp - 0x110]
push 0x10124840
push eax
call fcn.100f224d
mov esi, eax
add esp, 8
test esi, esi
je 0x100b6729
mov ecx, esi
call fcn.1009a340
mov ecx, esi
call fcn.10088390
push esi
push 1
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x70005cc
push 4
push eax
call fcn.100f607a
push esi
call fcn.100f22da
mov ecx, dword [0x10154a2c]
mov eax, 0x3a196b1f
sub ecx, dword [0x10154a28]
add esp, 0x14
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, dword [0x10175fe4]
test eax, eax
jle 0x100b6769
mov eax, dword [0x1013caa8]
push 0x1012ceb4
mov eax, dword [eax]
add eax, dword [0x101822e4]
push eax
push dword [0x5193cc]
lea eax, [ebp - 0x110]
push str._s_savegame_slot_.2d_sfall_s.sav
push eax
call fcn.1000d880
add esp, 0x14
lea eax, [ebp - 0x110]
push 0x10124840
push eax
call fcn.100f224d
mov esi, eax
add esp, 8
test esi, esi
je 0x100b6729
mov ecx, esi
call fcn.100ad290
push esi
call fcn.100f22da
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x110]
push eax
push 0
push str.ERROR_creating:__s_n
call fcn.10012410
add esp, 0xc
mov eax, 0x10153e68
cmp dword [0x10153e7c], 0x10
cmovae eax, dword [0x10153e68]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call dword [0x1012171c]
mov eax, str.IISXXXX1
call dword [0x101215bc]
pop esi
mov esp, ebp
pop ebp
ret