joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483bc4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
push 1
lea eax, [ebp - 4]
push eax
mov ecx, 0x483c34
mov edx, 0x80000002
xor eax, eax
call fcn.0042de1c
test eax, eax
jne 0x483c2d
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x483c60
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x483c24
cmp dword [ebp - 0xc], 4
jne 0x483c24
cmp dword [ebp - 8], 4
jne 0x483c24
mov ax, word [ebp - 0x10]
mov word [0x49c450], ax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
mov esp, ebp
pop ebp
ret

Function at 0x483da8
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffed0
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x483e5a
xor eax, eax
mov al, byte [esp + 4]
shl eax, 0x18
xor edx, edx
mov dl, byte [esp + 8]
shl edx, 0x10
or eax, edx
movzx edx, word [esp + 0xc]
or eax, edx
mov dword [0x49c44c], eax
cmp byte [0x49c439], 0
je 0x483e5a
mov eax, dword [esp + 4]
cmp eax, 5
jl 0x483e4b
mov dword [esp + 0x94], 0x9c
lea eax, [esp + 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x483e5a
xor eax, eax
mov al, byte [esp + 0x128]
shl eax, 8
xor edx, edx
mov dl, byte [esp + 0x12a]
or ax, dx
mov word [0x49c450], ax
mov al, byte [esp + 0x12e]
mov byte [0x49c452], al
mov ax, word [esp + 0x12c]
mov word [0x49c454], ax
jmp 0x483e5a
cmp eax, 4
jne 0x483e5a
call fcn.00483bc4
call fcn.00483c6c
add esp, 0x130
ret
Function at 0x48dda0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x48df41
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0x10]
mov ecx, 0x200
xor edx, edx
call fcn.004034e0
push 0
xor eax, eax
mov al, byte [ebp + 8]
mov eax, dword [eax*4 + 0x49a0e0]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00403738
mov ecx, eax
mov edx, edi
mov eax, ebx
call fcn.0042de1c
test eax, eax
jne 0x48df26
xor edx, edx
push ebp
push 0x48df1b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [esi]
xor ecx, ecx
mov edx, dword [esi + 4]
call fcn.00436adc
xor ebx, ebx
mov eax, dword [ebp - 0x10]
call fcn.00403574
mov dword [ebp - 0x18], eax
cmp byte [ebp + 8], 0
je 0x48de58
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
call fcn.00403744
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExA
jmp 0x48de77
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
call fcn.00403744
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumValueA
sub eax, 1
jb 0x48dec5
sub eax, 0xe9
je 0x48de8a
sub eax, 0x19
je 0x48df04
jmp 0x48debe
mov eax, dword [ebp - 0x10]
call fcn.00403574
cmp eax, 0x10000
jl 0x48dea3
call fcn.004031bc
jmp 0x48df26
mov eax, dword [ebp - 0x10]
call fcn.00403574
mov ecx, eax
add ecx, ecx
lea eax, [ebp - 0x10]
xor edx, edx
call fcn.004034e0
jmp 0x48de26
call fcn.004031bc
jmp 0x48df26
lea ecx, [ebx + 1]
mov eax, dword [esi]
mov edx, dword [esi + 4]
call fcn.00436adc
lea eax, [ebp - 0x10]
call fcn.00403744
mov edx, eax
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
call fcn.004034e0
lea ecx, [ebp - 0x24]
mov eax, esi
mov edx, ebx
call fcn.004434fc
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
call fcn.00435a2c
inc ebx
jmp 0x48de26
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48df22
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48df48
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403420
ret
Function at 0x4963a0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x496443
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x49645c
push ebx
push 0x496468
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403634
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402934
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x496421
mov eax, dword [0x49bdf8]
call fcn.004962f8
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
mov ebx, dword [ebp - 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49644a
lea eax, [ebp - 4]
call fcn.00403400
ret
Function at 0x496c50
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x496e21
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.0042da18
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004538bc
test al, al
jne 0x496cb7
xor eax, eax
push ebp
push 0x496cad
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
xor eax, eax
call fcn.00453d30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x496cb7
push 0
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
mov eax, dword [0x49c534]
call fcn.00403738
push eax
call fcn.004057fc
test eax, eax
jne 0x496ce0
mov eax, dword [0x49bdf4]
call fcn.004962f8
push 0x80
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
mov eax, dword [0x49b014]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x496e30
push 0x496e34
push 0
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 8], eax
push 0x4964a8
push 0xfffffffffffffffc
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetWindowLongA
mov dword [0x49c560], eax
xor eax, eax
push ebp
push 0x496df4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x49b628]
mov eax, dword [eax + 0x20]
push eax
call sub.user32.dll_SetWindowPos
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.0042d44c
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, 0x496e44
call fcn.004078f4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
call fcn.0042d32c
mov edx, dword [ebp - 0x24]
pop eax
call fcn.0040357c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004963a0
mov dword [ebp - 0xc], eax
call fcn.0049646c
test al, al
jne 0x496dd4
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x496db4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496dfb
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_DestroyWindow
ret
Function at 0x4980a4
Capabilities:
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4981e2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x148]
push eax
mov edx, ebx
lea eax, [ebp - 0x14c]
call fcn.00403494
lea eax, [ebp - 0x14c]
mov edx, 0x4981f8
call fcn.0040357c
mov eax, dword [ebp - 0x14c]
call fcn.00403738
push eax
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4981c1
xor eax, eax
push ebp
push 0x4981ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x498208
lea eax, [ebp - 0x11c]
mov ecx, 5
call fcn.00407458
test eax, eax
jne 0x49818b
test byte [ebp - 0x148], 0x10
jne 0x49818b
lea eax, [ebp - 0x14c]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.0040355c
mov ecx, dword [ebp - 0x14c]
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004035c0
mov esi, dword [ebp - 0x148]
test esi, 1
je 0x498183
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 8]
call fcn.00403738
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 8]
call fcn.00406f50
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x49811b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4981c1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindClose
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4981e9
lea eax, [ebp - 0x14c]
call fcn.00403400
lea eax, [ebp - 8]
call fcn.00403400
ret
Function at 0x498210
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x498306
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00403400
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0042c954
xor edi, edi
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x49831c
call fcn.004078f4
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004035c0
mov eax, dword [ebp - 0x10]
call fcn.00403738
push eax
call sub.kernel32.dll_GetFileAttributesA
mov esi, eax
cmp esi, 0xffffffff
je 0x4982ae
test esi, 0x10
jne 0x4982de
test esi, 1
je 0x4982ae
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 0x10]
call fcn.00403738
push eax
call sub.kernel32.dll_SetFileAttributesA
push 1
mov eax, dword [ebp - 0x10]
call fcn.00403738
push eax
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call sub.kernel32.dll_MoveFileExA
test eax, eax
je 0x4982d8
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00403494
jmp 0x4982eb
inc edi
cmp edi, 0xa
je 0x4982eb
inc ebx
cmp ebx, 0x3e8
jne 0x49824f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49830d
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403420
ret

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x75d70a12
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x42d5198b
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x10017250
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push 0x5c1e70
call fcn.100173c0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.10018f80
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 0x100172b1
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, 0x53e58955
jne 0x100172c3
mov eax, 0x64
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x5c2130
call fcn.10018e80
cmp eax, 0x53e58955
jne 0x100172de
mov eax, 0x6e
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x5c6fd0
call fcn.10018e80
xor ecx, ecx
mov edx, 0x78
cmp eax, 0x53e58955
pop esi
cmove ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x100186f0
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 0x10018724
sub eax, 1
je 0x1001877f
sub eax, 2
je 0x100187e1
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 0x10018749
mov byte [ebp - 0xc], bh
mov byte [eax], bl
jmp 0x10018782
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 0x10018782
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 0x10018782
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 0x100187ac
mov byte [ebp - 0xc], 0
mov word [esi], cx
jmp 0x100187e1
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 0x100187e1
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 0x1001880c
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 0x1001883d
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 0x10018850
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov esi, eax
push edi
movzx edi, cl
test cl, cl
jne 0x10018877
xor cl, cl
jmp 0x10018892
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], edi
push ecx
push 0x40
push edi
push eax
mov dword [ebp - 0x18], eax
call ebx
mov edx, dword [ebp - 0x18]
test eax, eax
mov eax, dword [ebp + 0xc]
setne cl
mov byte [ebp - 0xc], cl
mov ch, byte [esi]
mov byte [ebp - 1], ch
test cl, cl
je 0x100188b5
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 ebx
mov eax, dword [ebp + 0xc]
mov ch, byte [ebp - 1]
movzx ecx, ch
sub ecx, 0xe8
je 0x1001898e
sub ecx, 1
je 0x1001898e
sub ecx, 0x16
jne 0x1001897e
mov dword [ebp - 0x18], ecx
lea esi, [eax + 1]
test edi, edi
jne 0x100188e4
xor cl, cl
jmp 0x100188fc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], edi
push eax
push 0x40
push edi
push esi
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
mov eax, dword [ebp + 0xc]
setne cl
mov byte [ebp - 0xc], cl
mov dl, byte [esi]
mov byte [ebp + 0x13], dl
test cl, cl
je 0x10018921
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 ebx
mov eax, dword [ebp + 0xc]
mov dl, byte [ebp + 0x13]
cmp dl, 0x15
je 0x1001892b
cmp dl, 0x25
jne 0x1001897e
shl edi, 2
lea esi, [eax + 2]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
test edi, edi
jne 0x1001893e
xor al, al
jmp 0x10018956
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], edi
push eax
push 0x40
push edi
push esi
mov dword [ebp - 0x18], esi
call ebx
mov ecx, dword [ebp - 0x18]
test eax, eax
setne al
mov byte [ebp - 0xc], al
mov esi, dword [esi]
test al, al
je 0x10018970
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 ebx
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 dword [ebp + 0x10]
inc eax
push ecx
mov ecx, esp
lea esi, [eax + 4]
mov dword [ecx], eax
call fcn.10019000
add esp, 8
lea ecx, [esi + eax]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10018c40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push dword [ebp + 8]
call fcn.100173c0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.10018f80
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 0x10018c7c
mov byte [ebp - 0xc], al
jmp 0x10018c96
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.1012b0a0
add esp, 0xc
cmp byte [ebp - 0xc], 0
je 0x10018cc4
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 0x10018cd0
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.100173c0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.10018f80
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.10018850
add esp, 0xc
movzx eax, bl
mov dword [ebp - 0x18], 0
test bl, bl
jne 0x10018d1c
mov byte [ebp - 0xc], bl
jmp 0x10018d36
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 0x10018d56
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.100186f0
add esp, 0x10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10018d80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push dword [ebp + 8]
call fcn.100173c0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.10018f80
mov dword [ebp - 0x18], 0
mov esi, dword [eax]
movzx eax, byte [ebp + 0x10]
test eax, eax
jne 0x10018db7
mov byte [ebp - 0xc], al
jmp 0x10018dd1
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 0x10018df3
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 0x10018e00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push dword [ebp + 8]
call fcn.100173c0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.10018f80
mov dword [ebp - 0x18], 0
mov esi, dword [eax]
movzx eax, byte [ebp + 0x10]
shl eax, 2
test eax, eax
jne 0x10018e3a
mov byte [ebp - 0xc], al
jmp 0x10018e54
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 0x10018e7a
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 0x10018e80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push ecx
call fcn.100173c0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.10018f80
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 0x10018edd
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 0x10018ef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push dword [ebp + 8]
call fcn.100173c0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.10018f80
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 0x10018f2c
mov byte [ebp - 0xc], al
jmp 0x10018f46
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.1012ab20
add esp, 0xc
cmp byte [ebp - 0xc], 0
je 0x10018f72
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