joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475547
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x47558c
call fcn.0047c9d9
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47558c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4755a8
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0047e038
mov ebx, eax
test edi, edi
je 0x4755a6
test esi, esi
je 0x4755a6
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x475f9e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x47605c
cmp dword [esi + 0x20], 0
je 0x47605c
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47605c
cmp dword [ebp + 8], 0
je 0x47605c
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0047c9d9
push 0x5eda98
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x47602d
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x47605c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.004fb7db
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x47604d
test edi, edi
je 0x47604d
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x476058
mov ecx, esi
call fcn.00475d40
mov eax, ebx
jmp 0x47605e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x47a95e
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5db5a1
call fcn.005a8473
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x47a984
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x47a9e4
call fcn.00461574
push eax
lea ecx, [ebp - 0x10]
call fcn.004022f9
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x5eaa74]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.005b9558
push eax
call fcn.0040315f
add esp, 0x14
test esi, esi
je 0x47a9d7
push esi
call fcn.005b93e1
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402322
mov eax, ebx
call fcn.005a843c
ret 8
Function at 0x47cd2e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x47cd59
cmp dword [ebx + 0x80], 0
jne 0x47cd59
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.0047c9d9
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.0047cfef
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x47cd93
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0047c9d9
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x47cdca
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0047cde9
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x47e9b5
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x5dc5e0
call fcn.005a8473
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0047ea98
and dword [ebp - 4], 0
mov dword [ebx], vtable.CHttpConnection.0
call fcn.00461574
push eax
lea ecx, [ebx + 0x18]
call fcn.004022f9
push dword [ebp + 0xc]
lea ecx, [ebx + 0x18]
mov byte [ebp - 4], 1
call fcn.00402eee
push dword [ebx + 8]
push 0
push 3
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi + 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebx + 4], eax
test eax, eax
je 0x47ea3a
push dword [ebx + 0xc]
mov ecx, 0x661a6c
push eax
call fcn.0047fba4
mov eax, ebx
call fcn.005a843c
ret 0x18
push 0
push dword [ebx + 8]
call fcn.0047f194
int3

Function at 0x47ebaa
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x47ebd3
call fcn.0047c9d9
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
je 0x47ec00
push esi
push eax
mov ecx, 0x661a6c
call fcn.0047fba4
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.0047f194
int3
Function at 0x495e57
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push edi
test esi, esi
jne 0x495e71
call fcn.0047c9d9
mov esi, dword [eax + 0xc]
push 0x5ef48c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x495ec7
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x495ec7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x495ea6
xor esi, esi
jmp 0x495ebc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00495ed0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x495ec9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4fd21b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x4fd271
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4fd24a
call fcn.0047b8e4
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4fd25f
call fcn.0047b8e4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4fd271
call fcn.0047b8e4
call fcn.0047c9d9
cmp dword [eax + 0x3c], 0
je 0x4fd286
push edi
mov ecx, ebx
call fcn.004fc94b
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004fd458
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4fd2af
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4fd2bb
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x5052e3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.0047a53b
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.005054fc
cmp esi, 3
je 0x505321
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x50536a
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x505344
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00463a7b
jmp 0x505355
push 0xff
mov ecx, esi
call fcn.0040202d
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00463a9e
jmp 0x50538e
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x50538e
push dword [esi]
push dword [ebp - 4]
call fcn.00483468
pop edi
pop esi
leave
ret 0xc

Function at 0x505453
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.005054fc
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x50549b
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00463a7b
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00463a9e
jmp 0x5054a6
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00483468
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x5701b9
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005a3284
call fcn.0047ca2d
cmp dword [eax + 0x14], 0
jne 0x5701d4
mov ecx, esi
pop esi
jmp fcn.0056f4e4
pop esi
ret

Function at 0x57d16f
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00401f00
call fcn.0047ca2d
cmp dword [eax + 0x14], 0
jne 0x57d18a
mov ecx, esi
pop esi
jmp fcn.0057c9eb
pop esi
ret

Function at 0x581273
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.005bf9bb
pop ecx
test eax, eax
jne 0x5812b5
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00471ec8
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x58127b
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x5c9444
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005c9107
Function at 0x5c944f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005c9288

Function at 0x5ca7c2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005ca482
Function at 0x417fd9
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push edi
push eax
push 2
mov ecx, 0x80000002
call fcn.0041fb71
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
js 0x41801b
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea edx, [ebp - 8]
mov ecx, eax
call fcn.00427846
mov edi, dword [ebp - 8]
test eax, eax
jne 0x418022
mov ecx, edi
call fcn.004298bc
mov ecx, edi
call fcn.004298d9
cmp dword [ebp - 4], 0
je 0x418038
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x419321
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x419337
mov esi, 0x80070057
jmp 0x419375
lea edx, [ebp - 4]
call fcn.0042485e
mov esi, eax
test esi, esi
js 0x419375
cmp dword [ebp - 4], 0
je 0x41937c
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x419366
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41937c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004263e0
mov esi, eax
mov ecx, esi
call fcn.004298bc
mov ecx, esi
call fcn.004298d9
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x419a40
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push edi
push eax
push 2
mov edx, 0x407838
mov ecx, 0x80000002
call fcn.0041fb71
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
js 0x419a89
push 0x4078a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea edx, [ebp - 8]
mov ecx, eax
call fcn.00427846
mov edi, dword [ebp - 8]
test eax, eax
jne 0x419a90
mov ecx, edi
call fcn.004298bc
mov ecx, edi
call fcn.004298d9
cmp dword [ebp - 4], 0
je 0x419aa6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x41b63e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 2
mov ecx, 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call fcn.0041fb71
mov edi, eax
test edi, edi
js 0x41b699
xor ecx, ecx
mov dword [ebp - 0xc], ebx
call fcn.004298d9
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
push dword [ebp + 0xc]
push 1
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [ebp - 8]
mov ecx, eax
call fcn.00427846
mov edi, dword [ebp - 8]
test eax, eax
jne 0x41b6a0
mov ecx, edi
call fcn.004298bc
mov ecx, edi
call fcn.004298d9
lea ecx, [ebp - 0xc]
call fcn.0041f31d
cmp dword [ebp - 4], ebx
je 0x41b6bd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41bd25
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x47a008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x41bd48
mov esi, 0x80070057
jmp 0x41bd9d
push 0x410
lea eax, [ebp - 0x418]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x208
push eax
push 0x408dac
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x41bd8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004263e0
mov esi, eax
jmp 0x41bd9d
mov edx, esi
lea ecx, [ebp - 0x418]
call fcn.004275e9
mov esi, eax
test esi, esi
jns 0x41bda4
mov ecx, esi
call fcn.004298bc
mov ecx, esi
call fcn.004298d9
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00459020
mov esp, ebp
pop ebp
ret

Function at 0x41bdc1
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 2
mov ecx, 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call fcn.0041fb71
mov edi, eax
test edi, edi
js 0x41be1d
xor ecx, ecx
mov dword [ebp - 0xc], ebx
call fcn.004298d9
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov dword [ebp - 8], ebx
push eax
push 4
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [ebp - 8]
mov ecx, eax
call fcn.00427846
mov edi, dword [ebp - 8]
test eax, eax
jne 0x41be24
mov ecx, edi
call fcn.004298bc
mov ecx, edi
call fcn.004298d9
lea ecx, [ebp - 0xc]
call fcn.0041f31d
cmp dword [ebp - 4], ebx
je 0x41be41
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41cc4d
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x47a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x214], edi
mov ebx, edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x218], edi
test esi, esi
jne 0x41cc91
mov esi, 0x80070057
jmp 0x41ce20
push ecx
call fcn.0041e0d1
test al, al
jne 0x41cca5
mov esi, 0x80004001
jmp 0x41ce20
push esi
mov edx, 0x104
lea ecx, [ebp - 0x210]
call fcn.004248e3
mov esi, eax
test esi, esi
js 0x41ce20
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x41ccec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004263e0
mov esi, eax
jmp 0x41ce20
mov ecx, dword [ebp - 0x228]
test ecx, ecx
jne 0x41ce0d
lea eax, [ebp - 0x224]
xor edx, edx
push eax
inc edx
mov ecx, 0x409108
call fcn.0041d798
mov esi, eax
test esi, esi
js 0x41ce20
xor edx, edx
lea eax, [ebp - 0x218]
inc edx
mov ecx, 0x40913c
push eax
mov dword [ebp - 0x22c], edx
call fcn.0041d798
mov esi, eax
test esi, esi
jns 0x41cd44
mov ecx, esi
call fcn.004298bc
jmp 0x41cdcf
lea eax, [ebp - 0x21c]
xor ebx, ebx
push eax
lea eax, [ebp - 0x214]
inc ebx
push eax
push ebx
push edi
push edi
mov dword [ebp - 0x220], ebx
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
jne 0x41cd79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004263e0
mov esi, eax
jmp 0x41cd38
mov eax, dword [ebp - 0x21c]
mov ebx, edi
test eax, eax
je 0x41cdc9
mov edx, dword [ebp - 0x214]
mov ecx, dword [edi + edx]
test ecx, ecx
je 0x41cdb8
mov edx, dword [edi + edx + 8]
test edx, edx
je 0x41cd9f
cmp edx, 4
jne 0x41cdb8
push 0
lea edx, [ebp - 0x210]
call fcn.0041d8c0
mov esi, eax
test esi, esi
js 0x41cdc2
mov eax, dword [ebp - 0x21c]
inc ebx
add edi, 0xc
cmp ebx, eax
jb 0x41cd85
jmp 0x41cdc9
mov ecx, esi
call fcn.004298bc
mov ebx, dword [ebp - 0x220]
cmp dword [ebp - 0x224], 0
jne 0x41cdeb
lea eax, [ebp - 0x22c]
xor edx, edx
push eax
mov ecx, 0x409108
call fcn.0041d798
test ebx, ebx
je 0x41ce27
cmp dword [ebp - 0x218], 0
jne 0x41ce27
lea eax, [ebp - 0x218]
xor edx, edx
push eax
mov ecx, 0x40913c
call fcn.0041d798
jmp 0x41ce27
push 1
lea edx, [ebp - 0x210]
call fcn.0041d8c0
mov esi, eax
test esi, esi
jns 0x41ce27
mov ecx, esi
call fcn.004298bc
cmp dword [ebp - 0x214], 0
je 0x41ce3c
push dword [ebp - 0x214]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov ecx, esi
call fcn.004298d9
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459020
mov esp, ebp
pop ebp
ret
Function at 0x41d8c0
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x14], ecx
push edi
push 0x44
push eax
mov dword [ebp - 0x10], eax
mov esi, eax
mov dword [ebp - 8], eax
mov ebx, edx
lea eax, [ebp - 0x6c]
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [ebp - 0xc], edi
test ebx, ebx
jne 0x41d902
mov esi, 0x80070057
jmp 0x41d974
cmp dword [ebp + 8], esi
je 0x41d9d6
lea eax, [ebp - 8]
push eax
push 0xb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41d965
push edi
push dword [ebp - 8]
lea eax, [ebp - 0xc]
mov dword [ebp - 0x6c], 0x44
push eax
mov dword [ebp - 0x64], 0x409220
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x41d965
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push dword [ebp - 0xc]
push 0x408
push edi
push edi
push edi
push ebx
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x41d97b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004263e0
mov esi, eax
mov ecx, esi
call fcn.004298bc
cmp dword [ebp - 0x20], edi
je 0x41d989
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], edi
je 0x41d997
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], edi
je 0x41d9a5
push dword [ebp - 0xc]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov ecx, esi
call fcn.004298d9
cmp dword [ebp - 8], edi
je 0x41d9bd
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], edi
cmp dword [ebp - 0x10], edi
je 0x41d9cb
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x41d965
lea eax, [ebp - 8]
push eax
push 1
push 2
push edi
push 0xb
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
jmp 0x41d91e
Function at 0x41e20b
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
or dword [ebp - 0x14], 0xffffffff
xor eax, eax
push ebx
push esi
push edi
push eax
push eax
push 3
push eax
push 1
push 0x80000000
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x14]
call fcn.00424cbb
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x41e395
cmp esi, 0xffffffff
je 0x41e395
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 8], ebx
cmp ebx, 0xffffffff
je 0x41e395
cmp dword [ebp - 0x1c], edi
je 0x41e278
mov ecx, 0x80070057
mov ebx, ecx
jmp 0x41e3a6
push 0
lea eax, [ebp - 0xc]
push eax
push 3
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e395
cmp dword [ebp - 0xc], 2
mov al, byte [ebp - 3]
mov cl, byte [ebp - 4]
jb 0x41e2de
cmp cl, 0xfe
jne 0x41e2b1
cmp al, 0xff
jne 0x41e2de
mov dword [ebp - 0x10], 3
jmp 0x41e2c1
cmp cl, 0xff
jne 0x41e2de
cmp al, 0xfe
jne 0x41e2de
mov dword [ebp - 0x10], 2
push 1
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub ebx, 2
mov dword [ebp - 8], ebx
test ebx, 1
je 0x41e311
jmp 0x41e26c
cmp dword [ebp - 0xc], 3
jne 0x41e302
cmp cl, 0xef
jne 0x41e302
cmp al, 0xbb
jne 0x41e302
cmp byte [ebp - 2], 0xbf
jne 0x41e302
sub ebx, 3
mov dword [ebp - 0x10], 1
mov dword [ebp - 8], ebx
jmp 0x41e311
xor eax, eax
push eax
push eax
push eax
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
push 2
pop edx
call fcn.004274d1
mov ebx, eax
test ebx, ebx
js 0x41e3a4
push dword [ebp - 0x18]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x41e340
xor edi, edi
mov ebx, 0x8007000e
jmp 0x41e3a4
mov ebx, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push 0
push ecx
push ebx
push eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e395
cmp ebx, dword [ebp - 0xc]
je 0x41e367
mov ecx, 0x8000ffff
jmp 0x41e271
mov eax, dword [ebp - 0x18]
cmp eax, 2
jb 0x41e35d
mov ecx, dword [ebp - 0x20]
xor edi, edi
mov word [ecx + eax - 2], 0
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [eax], ebx
test ecx, ecx
je 0x41e391
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
xor ebx, ebx
jmp 0x41e3ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004263e0
mov ebx, eax
mov ecx, ebx
call fcn.004298bc
mov ecx, ebx
call fcn.004298d9
test edi, edi
je 0x41e3bd
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x14]
call fcn.00424c9a
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc