joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012d0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
call esi
test eax, eax
jne 0x401310
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
je 0x4012fd
xor al, al
pop esi
pop ecx
ret
push 8
push 1
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
call esi
test eax, eax
je 0x4012f8
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
push ebx
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov edx, dword [esp + 8]
push 0
test eax, eax
push edx
setne bl
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
pop ebx
pop esi
pop ecx
ret

Function at 0x401650
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or eax, 0xffffffff
test ecx, ecx
je 0x40167c
push esi
jmp 0x401660
movsx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4f6948]
dec ecx
inc edx
test ecx, ecx
jne 0x401660
pop esi
not eax
ret

Function at 0x401680
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x54
mov eax, dword [0x4f4de0]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x5c]
push esi
push edi
mov edi, edx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea edx, [esp + 8]
lea eax, [esp + 0x18]
call fcn.00403720
mov esi, dword [esp + 0x60]
lea edx, [esp + 0x18]
mov eax, edx
xor ecx, ecx
sub esi, edx
sub edi, eax
lea ebx, [ebx]
lea eax, [esp + ecx + 0x18]
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc ecx
cmp ecx, 0x30
mov byte [edi + eax], dl
jl 0x4016d0
mov ecx, dword [esp + 0x58]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00497941
add esp, 0x54
ret

Function at 0x4017b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x80
push ebx
push ebp
mov ebp, dword [esp + 0x8c]
push esi
push edi
push ebp
mov ecx, 0x20
mov esi, ebp
lea edi, [esp + 0x14]
push ebp
mov ebx, 0x4d64f8
rep movsd dword es:[edi], dword [esi]
call fcn.00401700
mov ecx, dword [ebp + 0x7c]
shr ecx, 7
and ecx, 1
lea edi, [esp + 0x18]
lea ebx, [esp + 0x1c]
add esp, 8
neg ecx
xor edx, edx
sub edi, ebp
lea eax, [ebp + 8]
sub ebx, ebp
lea esp, [esp]
mov esi, dword [eax - 8]
mov ebp, dword [esp + edx*4 + 0x10]
xor ebp, esi
and ebp, ecx
xor ebp, esi
mov esi, dword [eax - 4]
mov dword [eax - 8], ebp
mov ebp, dword [esp + edx*4 + 0x14]
xor ebp, esi
and ebp, ecx
xor ebp, esi
mov esi, dword [eax]
mov dword [eax - 4], ebp
mov ebp, dword [edi + eax]
xor ebp, esi
and ebp, ecx
xor ebp, esi
mov esi, dword [eax + 4]
mov dword [eax], ebp
mov ebp, dword [ebx + eax]
xor ebp, esi
and ebp, ecx
xor ebp, esi
mov dword [eax + 4], ebp
add edx, 4
add eax, 0x10
cmp edx, 0x20
jb 0x401800
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
Function at 0x402460
Capabilities:
Encrypt data using curve25519

Disassembly:
sub esp, 0x1a4
mov eax, dword [0x4f4de0]
xor eax, esp
mov dword [esp + 0x1a0], eax
mov eax, dword [esp + 0x1a8]
push 0x20
push eax
lea ecx, [esp + 0x188]
push ecx
call fcn.00497950
mov dl, byte [esp + 0x1ab]
and byte [esp + 0x18c], 0xf8
and dl, 0x3f
or dl, 0x40
add esp, 0xc
mov byte [esp + 0x19f], dl
xor eax, eax
lea esp, [esp]
movzx ecx, byte [eax + edi]
mov dword [esp + eax*4], ecx
inc eax
cmp eax, 0x20
jb 0x4024b0
lea edx, [esp + 0x180]
push edx
lea eax, [esp + 4]
push eax
call fcn.00401c30
lea ecx, [esp + 0x88]
push ecx
mov eax, ecx
call fcn.00402070
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x110]
push eax
lea edx, [esp + 0x14]
call fcn.00401860
lea ecx, [esp + 0x114]
push ecx
call fcn.004017b0
add esp, 0x18
xor eax, eax
lea esp, [esp]
mov dl, byte [esp + eax*4 + 0x100]
mov byte [esi + eax], dl
inc eax
cmp eax, 0x20
jb 0x402510
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
xor eax, eax
call fcn.00497941
add esp, 0x1a4
ret

Function at 0x402540
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 0x44
push ebx
push esi
push edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x24]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x34]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0x3c]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x40]
mov dword [esp + 0x48], edx
xor edx, edx
mov esi, 0x4d64a0
mov dword [esp + 0x4c], ecx
mov ecx, eax
sub esi, eax
lea edi, [edx + 0x11]
lea ebx, [ebx]
mov ebx, dword [esi + ecx]
add ebx, dword [ecx]
add ecx, 4
add edx, ebx
movzx ebx, dl
mov dword [ecx - 4], ebx
shr edx, 8
sub edi, 1
jne 0x4025d0
mov edx, dword [eax + 0x40]
shr edx, 7
lea esi, [esp + 0xc]
neg edx
sub esi, eax
mov edi, 0x11
jmp 0x402600
mov ecx, dword [eax]
mov ebx, dword [esi + eax]
xor ebx, ecx
and ebx, edx
xor ebx, ecx
mov dword [eax], ebx
add eax, 4
sub edi, 1
jne 0x402600
pop edi
pop esi
pop ebx
add esp, 0x44
ret
Function at 0x402fb0
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x40314e
test eax, eax
je 0x40314e
mov dword [eax + 0xf0], 0xa
mov ecx, dword [esi]
push edi
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edx, ecx
mov dword [eax], edx
mov edx, dword [esi + 4]
mov edi, edx
ror edi, 8
and edi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or edi, edx
mov dword [eax + 4], edi
mov edx, dword [esi + 8]
mov edi, edx
ror edi, 8
and edi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or edi, edx
mov dword [eax + 8], edi
mov edx, dword [esi + 0xc]
lea ecx, [eax + 4]
mov esi, edx
ror esi, 8
and esi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or esi, edx
mov dword [eax + 0xc], esi
mov edx, esi
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x4d4b78]
xor edx, 0x1000000
mov edi, esi
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x4d4f78]
and edi, 0xff0000
and edx, 0xff000000
xor edx, edi
mov edi, esi
shr edi, 0x18
movzx edi, byte [edi*4 + 0x4d4778]
xor edx, edi
mov edi, esi
and edi, 0xff
mov edi, dword [edi*4 + 0x4d4378]
and edi, 0xff00
xor edx, edi
xor edx, dword [eax]
mov edi, dword [ecx]
xor edi, edx
mov dword [eax + 0x10], edx
mov edx, dword [eax + 8]
xor edx, edi
mov dword [eax + 0x18], edx
xor edx, esi
mov dword [eax + 0x14], edi
mov dword [eax + 0x1c], edx
mov esi, 0x4d647c
jmp 0x4030c0
mov edx, dword [ecx + 0x18]
add ecx, 0x10
mov eax, edx
shr eax, 8
mov edi, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x4d4f78]
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4d4b78]
and eax, 0xff0000
and edi, 0xff000000
xor eax, edi
mov edi, edx
and edx, 0xff
mov edx, dword [edx*4 + 0x4d4378]
shr edi, 0x18
movzx edi, byte [edi*4 + 0x4d4778]
xor eax, edi
and edx, 0xff00
xor eax, edx
xor eax, dword [ecx - 4]
add esi, 4
xor eax, dword [esi - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ecx]
xor edx, eax
mov dword [ecx + 0x10], edx
mov eax, dword [ecx + 4]
xor eax, edx
mov dword [ecx + 0x14], eax
mov edx, dword [ecx + 8]
xor edx, eax
mov dword [ecx + 0x18], edx
cmp esi, 0x4d64a0
jne 0x4030c0
pop edi
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x404a90
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 0x404aa9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404ae4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404ae0
lea ebx, [ebx]
cmp esi, eax
jae 0x404ae4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404ad0
cmp esi, eax
jb 0x404aea
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 0x4066d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x4f4de0]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, dword [esp + 0x21c]
push 0x208
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x10], 0
call fcn.00497680
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xc]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 0x208
mov dword [esp + 0x1c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x406774
mov eax, dword [esp + 8]
shr eax, 1
dec eax
cmp eax, 0x104
jae 0x406774
cmp word [esp + eax*2 + 0xc], 0x5c
je 0x40676e
cmp eax, 0x103
jae 0x406774
mov ecx, 0x5c
xor edx, edx
mov word [esp + eax*2 + 0xc], cx
mov word [esp + eax*2 + 0xe], dx
lea eax, [esp + 0xc]
jmp 0x406779
mov eax, 0x4d67f4
push eax
mov ecx, esi
call fcn.00404050
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00497941
add esp, 0x214
ret

Function at 0x4074a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4f4de0]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00497680
add esp, 0xc
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4074f9
xor eax, eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00497941
add esp, 0x20c
ret
push str.ntdll.dll
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4074e2
push str.RtlGetVersion
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00497941
add esp, 0x20c
ret
Function at 0x407540
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4f4de0]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.00497680
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 5
jne 0x40758c
mov eax, 1
cmp dword [esp + 8], eax
je 0x40758e
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00497941
add esp, 0x118
ret

Function at 0x4075b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4f4de0]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.00497680
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
sbb eax, eax
xor ecx, esp
inc eax
call fcn.00497941
add esp, 0x118
ret

Function at 0x407610
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4f4de0]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.00497680
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407677
cmp dword [esp + 4], 6
jne 0x407660
mov eax, 1
cmp dword [esp + 8], eax
je 0x407679
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00497941
add esp, 0x118
ret
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00497941
add esp, 0x118
ret

Function at 0x408070
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4c1e48
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4f4de0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], ax
call fcn.00405ad0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4080c3
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00408370
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.00405ad0
cmp dword [esp + 0x24], 8
jb 0x40810c
mov eax, dword [esp + 0x10]
push eax
call fcn.00493cb0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x408770
Capabilities:
Get disk information

Disassembly:
sub esp, 0x3a8
mov eax, dword [0x4f4de0]
xor eax, esp
mov dword [esp + 0x3a4], eax
mov eax, dword [esp + 0x3ac]
xor ecx, ecx
push 0x18e
push ecx
lea edx, [esp + 0x21e]
push edx
mov dword [esp + 0xc], eax
mov word [esp + 0x220], cx
call fcn.00497680
add esp, 0xc
lea eax, [esp + 0x214]
push eax
push 0xc7
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x4087db
mov ecx, dword [esp + 0x3a4]
xor ecx, esp
call fcn.00497941
add esp, 0x3a8
ret
push ebp
push edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x1e]
push edx
mov word [esp + 0x20], cx
call fcn.00497680
mov eax, dword [0x4d68f0]
mov cx, word [0x4d68f4]
mov ebp, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
add esp, 0xc
mov dword [esp + 0xc], eax
mov word [esp + 0x10], cx
lea edi, [esp + 0x21c]
push esi
lea ebx, [ebx]
mov dx, word [edi]
push 0x104
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov word [esp + 0x1c], dx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x408880
lea eax, [esp + 0x18]
lea edx, [eax + 2]
jmp 0x408850
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408850
sub eax, edx
sar eax, 1
mov esi, eax
mov edx, 0x5c
mov word [esp + esi*2 + 0x18], dx
inc esi
push esi
lea ecx, [esp + 0x1c]
push ecx
xor eax, eax
push ebx
mov word [esp + esi*2 + 0x24], ax
call ebp
test eax, eax
je 0x4088aa
mov dx, word [edi]
add edi, 2
test dx, dx
jne 0x408880
cmp word [edi], dx
jne 0x408820
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x3a4]
xor ecx, esp
call fcn.00497941
add esp, 0x3a8
ret
mov edx, dword [esp + 0xc]
lea eax, [ebx + esi*2]
push eax
lea ecx, [esp + 0x14]
push ecx
push str._s_s
push 0x104
push edx
call fcn.00408640
mov ecx, dword [esp + 0x3c4]
add esp, 0x14
pop esi
pop edi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00497941
add esp, 0x3a8
ret
Function at 0x4088f0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4c1e11
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4f4de0]
xor eax, esp
mov dword [esp + 0x23c], eax
push esi
push edi
mov eax, dword [0x4f4de0]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x25c]
test edi, edi
je 0x408994
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x254], 0
cmp dword [0x4f687c], esi
je 0x408994
test esi, esi
je 0x408994
push 0x228
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00497680
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push esi
mov dword [esp + 0x24], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40899c
cmp dword [0x4f687c], esi
je 0x408994
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x408a94
push edi
lea ecx, [esp + 0x14]
call fcn.00404050
lea ecx, [esp + 0x10]
mov byte [esp + 0x254], 1
call fcn.004050f0
or edi, 0xffffffff
lea ebx, [ebx]
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x10]
call fcn.00404050
lea ecx, [esp + 0xc]
mov byte [esp + 0x254], 2
call fcn.00409990
mov ecx, eax
call fcn.004099e0
lea ecx, [esp + 0xc]
call fcn.004050f0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.004093a0
add esp, 8
test al, al
je 0x408a2a
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov ecx, dword [esp + 0x260]
cmp ecx, dword [esp + 0x14]
je 0x408aba
push 0x22c
lea edx, [esp + 0x20]
push 0
push edx
call fcn.00497680
mov byte [esp + 0x260], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x1c], 0x22c
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4089c0
lea ecx, [esp + 0x10]
call fcn.00404550
lea ecx, [esp + 0x18]
call fcn.004086f0
mov eax, edi
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.00497941
add esp, 0x24c
ret
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0xc]
call fcn.00404550
lea ecx, [esp + 0x10]
call fcn.00404550
lea ecx, [esp + 0x18]
call fcn.004086f0
mov eax, esi
jmp 0x408a94
Function at 0x408df0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x87c
mov eax, dword [0x4f4de0]
xor eax, esp
mov dword [esp + 0x878], eax
push ebx
push esi
mov esi, dword [esp + 0x888]
push edi
xor edi, edi
cmp esi, edi
jne 0x408e2e
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x878]
xor ecx, esp
call fcn.00497941
add esp, 0x87c
ret
push 0x400
push esi
call fcn.00498625
add esp, 8
cmp eax, 0x400
jge 0x408e14
push 0x800
lea ecx, [esp + 0x7e]
xor eax, eax
push edi
push ecx
mov word [esp + 0x84], ax
call fcn.00497680
push 0x400
push esi
lea edx, [esp + 0x8c]
push 0x401
push edx
call fcn.004992c2
add esp, 0x1c
lea eax, [esp + 0x14]
push eax
push 0x8b
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
cmp esi, edi
je 0x408fa2
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
push 1
push 2
push edi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, edi
je 0x408f7d
lea eax, [esp + 0x10]
push eax
push str.S_1_16_8192
call sub.ADVAPI32.dll_ConvertStringSidToSidW
mov esi, eax
cmp esi, edi
je 0x408f7d
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], edi
push eax
mov dword [esp + 0x20], 0x20
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edx, dword [esp + 0xc]
add eax, 8
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x19
push edx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov esi, eax
cmp esi, edi
je 0x408f7d
xor eax, eax
push 0x40
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x38]
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x3c], edi
call fcn.00497680
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x34]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0x98]
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x408f72
push eax
call ebx
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x408f7d
push eax
call ebx
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x408f8c
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x408f97
push eax
call ebx
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x408fa2
push eax
call ebx
mov ecx, dword [esp + 0x884]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00497941
add esp, 0x87c
ret
Function at 0x408fd0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4f4de0]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40900d
xor eax, eax
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00497941
add esp, 0x230
ret
push edi
push 0x228
lea eax, [esp + 0x10]
push 0
push eax
or edi, 0xffffffff
call fcn.00497680
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40905b
lea esp, [esp]
cmp dword [esp + 0x10], ebx
je 0x409057
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x409040
jmp 0x40905b
mov edi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00497941
add esp, 0x230
ret

Function at 0x409190
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4f4de0]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push edi
mov edi, dword [esp + 0x240]
mov eax, edi
call fcn.00409300
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4091dd
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00497941
add esp, 0x230
ret
push ebx
push 0x228
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00497680
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push esi
mov dword [esp + 0x14], 0x22c
xor ebx, ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40922f
push ebp
mov ebp, dword [esp + 0x244]
cmp dword [esp + 0x18], ebp
je 0x40922a
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x409213
jmp 0x40922e
mov ebx, dword [esp + 0x28]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call fcn.00409080
mov ecx, dword [esp + 0x238]
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.00497941
add esp, 0x230
ret

Function at 0x4092d0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
lea ecx, [esp]
push ecx
push 0x408720
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_EnumWindows]
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 4]
add esp, 8
ret

Function at 0x40b320
Capabilities:
Create thread
Terminate thread

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x40b32b
xor al, al
ret
push esi
lea ecx, [esp + 8]
push ecx
push 0
push eax
push 0x40b1d0
push 0
push 0
mov dword [esp + 0x20], 0
call fcn.0049befe
mov esi, eax
add esp, 0x18
cmp dword [0x4f687c], esi
je 0x40b35b
test esi, esi
jne 0x40b35f
xor al, al
pop esi
ret
mov edx, dword [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40b37b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [0x4f687c], esi
je 0x40b38a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret