joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b261
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x46b435
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x473b20]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x46b435
test cl, 0x48
je 0x46b2cc
cmp byte [eax + 5], 0xa
je 0x46b2cc
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x46b31e
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x46b306
call fcn.004666b4
mov dword [eax], 9
call fcn.004666bd
mov dword [eax], esi
jmp 0x46b316
cmp eax, 0x6d
je 0x46b435
push eax
call fcn.004666c6
pop ecx
or eax, 0xffffffff
jmp 0x46b437
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x46b430
test eax, eax
je 0x46b345
cmp byte [ebx], 0xa
jne 0x46b345
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x46b34e
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x46b42a
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x46b41a
cmp al, 0xd
je 0x46b380
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x46b40c
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x46b39a
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x46b395
add dword [ebp + 0x10], 2
jmp 0x46b3ee
mov dword [ebp + 0x10], eax
jmp 0x46b408
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x46b3c2
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x46b408
cmp dword [ebp - 0xc], 0
je 0x46b408
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x46b3e3
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x46b3ee
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x46b40b
cmp ebx, dword [ebp + 0xc]
jne 0x46b3f3
cmp byte [ebp - 1], 0xa
jne 0x46b3f3
mov byte [ebx], 0xa
jmp 0x46b40b
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00468711
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x46b40c
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x46b364
jmp 0x46b42a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x46b42a
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x46b437
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406498
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp dword [0x405074], edi
jne 0x4064cb
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x4010a4]
push 0x4011dc
push dword [ebp + 8]
call dword [0x4010d4]
xor eax, eax
inc eax
jmp 0x406553
push esi
mov esi, dword [ebp + 8]
push 0x401300
push esi
call dword [0x4010e0]
test edi, edi
je 0x4064e3
mov byte [esi + 0x29], 0
lea eax, [ebp - 4]
push eax
push esi
push 0x80000002
call dword [sym.imp.ntdll.dll_NtSetValueKey]
test eax, eax
jne 0x406540
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtAdjustPrivilegesToken]
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
je 0x40652b
push 0x40137c
push esi
call dword [0x4010d4]
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlCreateHeap]
test eax, eax
je 0x406540
cmp dword [ebp - 8], 0
je 0x40654b
test edi, edi
jne 0x406550
mov edi, 0x401178
jmp 0x4064cf
xor eax, eax
inc eax
jmp 0x406552
xor eax, eax
pop esi
pop edi
leave
ret 8

Function at 0x406558
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 4
mov esi, 0x1000
push esi
push esi
push 0
push ebx
call dword [sym.imp.ntdll.dll_wcscpy]
mov edi, eax
test edi, edi
je 0x4065be
push 0
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_wcslen]
inc eax
push eax
push dword [ebp + 8]
push edi
push ebx
call dword [sym.imp.ntdll.dll_ZwOpenKey]
test eax, eax
je 0x4065b0
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push edi
push dword [sym.imp.ntdll.dll_NtDisplayString]
push ebx
call fcn.00406a50
push 0x8000
push esi
push edi
push ebx
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x406a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push esi
push esi
push dword [ebp + 8]
mov dword [ebx], esi
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x406abf
cmp dword [ebp + 0x1c], esi
jne 0x406a8f
mov dword [ebx], 1
jmp 0x406ab4
push 0xffffffffffffffff
lea eax, [ebp - 8]
push esi
push eax
cmp edi, esi
je 0x406a9e
push 2
jmp 0x406aa0
push 1
call dword [0x4010dc]
cmp eax, esi
jne 0x406ab4
push ebx
push dword [ebp - 8]
call dword [0x4010f8]
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_LdrLoadDll]
jmp 0x406ac9
push esi
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_wcsncpy]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x40712f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov word [esi + 0x1a], bx
push 0x7e
push esi
call 0x40563e
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], ebx
jmp 0x4071b5
cmp ebx, dword [esi]
jl 0x40715b
cmp ebx, edi
jge 0x40715b
mov edi, ebx
mov eax, ebx
sub eax, edi
je 0x407178
dec eax
je 0x407173
dec eax
je 0x40716e
add ebx, dword [ebp + 0xc]
mov bl, byte [ebx]
jmp 0x407187
mov bl, byte [esi + 0x1a]
jmp 0x407191
mov bl, byte [esi + 0x1b]
jmp 0x407191
mov bl, byte [esi + 0x18]
test edi, edi
je 0x407187
cmp edi, dword [ebp + 0x10]
jne 0x407187
or bl, 8
movzx eax, bl
push eax
push esi
call fcn.00407108
movzx eax, bl
bt dword [0x405198], eax
jae 0x4071a8
push 0x7d
push esi
call 0x40563e
xor bl, 0x20
movzx eax, bl
push eax
push esi
call 0x40563e
inc dword [ebp - 8]
lea eax, [edi + 3]
cmp dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
jl 0x407151
push 0x7e
push esi
call 0x40563e
push esi
call 0x405336
movzx ecx, byte [esi + 0x18]
shr ecx, 4
and cl, 7
mov edi, ecx
lea eax, [esi + 0x18]
push eax
call fcn.00406f18
mov eax, dword [ebp + 0xc]
mov dword [esi + edi*4 + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + edi*4 + 0x3c], eax
lea eax, [ebx - 3]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405d20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405d39
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405d74
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x405d70
lea ebx, [ebx]
cmp esi, eax
jae 0x405d74
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405d60
cmp esi, eax
jb 0x405d7a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40b8b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x48b688
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4ad650]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x3c]
lea esi, [edi + 0x84]
lea edx, [esp + 0x1c]
lea ecx, [esi + 4]
push edx
mov dword [esi + 0x24], eax
call fcn.00405ba0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 8], ecx
lea ecx, [esp + 0x18]
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, esi
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], eax
call fcn.00405ba0
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x2c], eax
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x28], edx
add eax, 0xfffffff0
mov dword [edi + 0xb4], ecx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b970
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b990
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 0x34
Function at 0x40c750
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x48b05c
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4ad650]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x1c]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00405c40
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x18], 0
mov eax, dword [edi + 4]
sub eax, 0x10
push eax
call fcn.00405c40
add eax, 0x10
mov dword [esi + 4], eax
mov byte [esp + 0x1c], 1
mov eax, dword [edi + 8]
sub eax, 0x10
push eax
call fcn.00405c40
add eax, 0x10
mov dword [esi + 8], eax
mov byte [esp + 0x20], 2
mov eax, dword [edi + 0xc]
sub eax, 0x10
push eax
call fcn.00405c40
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [esp + 0x24], 3
mov eax, dword [edi + 0x10]
sub eax, 0x10
push eax
call fcn.00405c40
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [esp + 0x28], 4
mov eax, dword [edi + 0x14]
sub eax, 0x10
push eax
call fcn.00405c40
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [esp + 0x2c], 5
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x20]
mov dword [esi + 0x20], edx
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
sub eax, 0x10
push eax
call fcn.00405c40
add eax, 0x10
mov dword [esi + 0x28], eax
mov byte [esp + 0x30], 6
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
mov edx, dword [edi + 0x30]
mov dword [esi + 0x30], edx
mov eax, dword [edi + 0x34]
sub eax, 0x10
push eax
call fcn.00405c40
add eax, 0x10
mov dword [esi + 0x34], eax
mov byte [esp + 0x34], 7
mov eax, dword [edi + 0x38]
sub eax, 0x10
push eax
call fcn.00405c40
add eax, 0x10
mov dword [esi + 0x38], eax
mov byte [esp + 0x38], 8
mov eax, dword [edi + 0x3c]
sub eax, 0x10
push eax
call fcn.00405c40
add eax, 0x10
mov dword [esi + 0x3c], eax
mov byte [esp + 0x3c], 9
mov eax, dword [edi + 0x40]
sub eax, 0x10
push eax
call fcn.00405c40
add eax, 0x10
mov dword [esi + 0x40], eax
mov byte [esp + 0x40], 0xa
mov eax, dword [edi + 0x44]
sub eax, 0x10
push eax
call fcn.00405c40
add eax, 0x10
mov dword [esi + 0x44], eax
mov byte [esp + 0x44], 0xb
mov eax, dword [edi + 0x48]
sub eax, 0x10
push eax
call fcn.00405c40
add eax, 0x10
mov dword [esi + 0x48], eax
mov byte [esp + 0x48], 0xc
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov edi, dword [edi + 0x50]
sub edi, 0x10
push edi
call fcn.00405c40
add esp, 0x38
add eax, 0x10
mov dword [esi + 0x50], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x4189f0
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, ecx
push 0
lea ecx, [ebx + 0x3d29c]
call fcn.0045abbc
mov eax, dword [ebx + 0x3ce9c]
test eax, eax
jl 0x418a25
push esi
lea esi, [eax + eax*2]
shl esi, 4
push edi
add esi, 0x4b383c
lea edi, [ebx + 0x3cea0]
call fcn.00434450
pop edi
pop esi
cmp dword [ebx + 0x8c], 0
push 0
push 0
push ebx
je 0x418a44
push 0x442a50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebx
ret
push 0x442990
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebx
ret
Function at 0x41b8a0
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x48b5d0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4ad650]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x34]
lea ecx, [edi + 0x29c]
push eax
mov dword [esp + 0x30], 1
call fcn.00405ba0
lea edx, [esp + 0x38]
lea ecx, [edi + 0x298]
push edx
call fcn.00405ba0
mov eax, dword [esp + 0x3c]
mov ecx, dword [edi + 0x77c]
mov edx, dword [edi + 0x780]
sub esp, 0x10
mov dword [edi + 0x2a0], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 0x784]
mov dword [eax + 4], edx
mov edx, dword [edi + 0x788]
mov dword [eax + 8], ecx
mov ecx, 0x90
lea esi, [esp + 0x20]
mov dword [eax + 0xc], edx
call fcn.00433bd0
mov ecx, dword [eax]
mov dword [edi + 0x77c], ecx
mov edx, dword [eax + 4]
mov dword [edi + 0x780], edx
mov ecx, dword [eax + 8]
mov dword [edi + 0x784], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [edi + 0x20]
add esp, 0x10
mov dword [edi + 0x788], edx
test eax, eax
je 0x41b969
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi]
mov edx, dword [eax + 0x14c]
mov ecx, edi
call edx
mov dword [edi + 0x2a4], 0x30
mov dword [edi + 0x2a8], 0
mov edi, dword [edi + 0x2ac]
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b9bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b9e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 0xc
Function at 0x41c1b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48b5a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4ad650]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x2c]
lea ecx, [edi + 0x29c]
push eax
mov dword [esp + 0x28], 1
call fcn.00405ba0
lea edx, [esp + 0x30]
lea ecx, [edi + 0x298]
push edx
call fcn.00405ba0
mov eax, dword [esp + 0x34]
mov ecx, dword [edi + 0x77c]
mov edx, dword [edi + 0x780]
sub esp, 0x10
cmp dword [esp + 0x48], 0
mov dword [edi + 0x2a0], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 0x784]
mov dword [eax + 4], edx
mov edx, dword [edi + 0x788]
mov dword [eax + 8], ecx
lea esi, [esp + 0x1c]
mov dword [eax + 0xc], edx
mov ecx, 0x8a
je 0x41c246
mov ecx, 0x90
call fcn.00433bd0
mov ecx, dword [eax]
mov dword [edi + 0x77c], ecx
mov edx, dword [eax + 4]
mov dword [edi + 0x780], edx
mov ecx, dword [eax + 8]
mov dword [edi + 0x784], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [edi]
mov dword [edi + 0x788], edx
mov edx, dword [eax + 0x14c]
add esp, 0x10
mov ecx, edi
call edx
mov dword [edi + 0x2a4], 0x30
mov dword [edi + 0x2a8], 0
mov edi, dword [edi + 0x2ac]
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c2bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c2e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 0x10
Function at 0x41ec80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x48afaa
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4ad650]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00405c40
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x14], 0
mov eax, dword [edi + 4]
sub eax, 0x10
push eax
call fcn.00405c40
add eax, 0x10
mov dword [esi + 4], eax
mov byte [esp + 0x18], 1
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x10], edx
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov ecx, dword [edi + 0x18]
mov dword [esi + 0x18], ecx
mov edx, dword [edi + 0x1c]
mov dword [esi + 0x1c], edx
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
sub eax, 0x10
push eax
call fcn.00405c40
add eax, 0x10
mov dword [esi + 0x24], eax
mov byte [esp + 0x1c], 2
mov eax, dword [edi + 0x28]
sub eax, 0x10
push eax
call fcn.00405c40
add eax, 0x10
mov dword [esi + 0x28], eax
mov byte [esp + 0x20], 3
mov eax, dword [edi + 0x2c]
sub eax, 0x10
push eax
call fcn.00405c40
add eax, 0x10
mov dword [esi + 0x2c], eax
mov byte [esp + 0x24], 4
mov eax, dword [edi + 0x30]
sub eax, 0x10
push eax
call fcn.00405c40
add eax, 0x10
mov dword [esi + 0x30], eax
mov byte [esp + 0x28], 5
mov eax, dword [edi + 0x34]
sub eax, 0x10
push eax
call fcn.00405c40
add eax, 0x10
mov dword [esi + 0x34], eax
mov byte [esp + 0x2c], 6
mov ecx, dword [edi + 0x38]
mov dword [esi + 0x38], ecx
mov eax, dword [edi + 0x3c]
sub eax, 0x10
push eax
call fcn.00405c40
add esp, 0x20
add eax, 0x10
mov dword [esi + 0x3c], eax
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov eax, dword [edi + 0x44]
mov dword [esi + 0x44], eax
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4
Function at 0x42ed20
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x48fdb8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4ad650]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0xce4], 0
je 0x42eec7
push 0x44
push 0xce8
mov ecx, 0xcec
call fcn.00433f30
add esp, 8
cmp eax, 6
jne 0x42ee69
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00457a8a
mov ecx, dword [eax + 0x20]
push 0
push 1
push 0x1429
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0xce4], 0
mov dword [0x4b2a00], 0
call fcn.004353f0
push 0
push 0
push esi
push 0x443d70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.00454183
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42eddb
push 0x80004005
call fcn.00406520
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
push 0x1b6b
mov dword [esp + 0x20], 0
call fcn.0045bffd
test eax, eax
je 0x42ee10
push 0x1b6b
push eax
lea ecx, [esp + 0x14]
call fcn.00405e60
mov esi, dword [esp + 0xc]
push 2
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x18], esp
mov edi, esp
push esi
call fcn.00405c40
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00433d70
add esp, 8
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42eec7
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
mov eax, dword [esi + 0xa04]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0xf1
push eax
call edi
push 0x413
mov ecx, esi
call fcn.0045a999
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0xf1
push ecx
call edi
mov dword [esi + 0xce4], 1
mov dword [0x4b2a00], 1
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00457a8a
mov ecx, eax
call fcn.0045abe3
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x435ab0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x4ad650]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp + 4], eax
cmp eax, ebx
je 0x435b2d
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x435b1e
mov dword [esp + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
pop ebx
xor ecx, esp
call fcn.004705a7
add esp, 0x14
ret

Function at 0x435b40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
push 0x3c
xor esi, esi
lea eax, [esp + 8]
push esi
push eax
call fcn.00472360
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
add esp, 0xc
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x14], str.RunAs
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0x499064
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x435bb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x3c
ret
mov ecx, dword [esp + 0x3c]
push esi
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
neg eax
sbb eax, eax
inc eax
pop esi
add esp, 0x3c
ret