joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b356
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, eax
xor eax, eax
mov ecx, ebx
call fcn.00405aa7
cmp dword [eax + 8], 4
jne 0x41b3d1
push 0x60
call fcn.0044e9ed
test eax, eax
pop ecx
je 0x41b385
call fcn.0040b34f
mov edi, eax
jmp 0x41b387
xor edi, edi
xor eax, eax
mov ecx, ebx
call fcn.00405aa7
mov esi, eax
call fcn.0040fc41
xor ebx, ebx
push eax
inc ebx
mov eax, ebx
mov ecx, edi
call fcn.0040b35f
test al, al
jne 0x41b45f
test edi, edi
je 0x41b3be
mov esi, edi
call fcn.0040b52a
push edi
call fcn.0044e722
pop ecx
push 0
mov esi, dword [ebp + 0xc]
call fcn.004101fc
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
xor eax, eax
mov ecx, ebx
call fcn.00405aa7
call fcn.0040fd19
mov esi, eax
dec esi
js 0x41b3be
xor eax, eax
mov ecx, ebx
call fcn.00405aa7
call fcn.00410f99
test al, al
je 0x41b3be
cmp esi, dword [edi + 0x678]
jge 0x41b3be
jb 0x41b407
call fcn.00407480
jmp 0x41b410
mov eax, dword [edi + 0x674]
mov eax, dword [eax + esi*4]
xor ebx, ebx
cmp dword [eax], ebx
je 0x41b3be
cmp esi, dword [edi + 0x678]
jb 0x41b425
call fcn.00407480
jmp 0x41b42e
mov eax, dword [edi + 0x674]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
cmp dword [eax], ebx
jne 0x41b3be
cmp esi, dword [edi + 0x678]
jb 0x41b443
call fcn.00407480
jmp 0x41b44c
mov eax, dword [edi + 0x674]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
mov edi, dword [eax + 4]
test byte [edi], 3
jne 0x41b45c
push ebx
jmp 0x41b3c0
xor ebx, ebx
inc ebx
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00405aa7
cmp dword [eax + 8], 0xb
je 0x41b500
test byte [edi], 0x10
jne 0x41b500
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00405aa7
mov esi, eax
call fcn.0040fc41
mov ecx, eax
mov esi, edi
call fcn.0040b5ec
cmp byte [ebp + 0x10], 0
je 0x41b546
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00405aa7
mov esi, eax
call fcn.0040fc41
push eax
call fcn.0044f00e
test eax, eax
pop ecx
je 0x41b4f2
mov ecx, dword [ebp + 8]
lea ebx, [eax + eax - 2]
xor eax, eax
inc eax
call fcn.00405aa7
mov esi, eax
call fcn.0040fc41
cmp word [eax + ebx], 0xd
je 0x41b546
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
call fcn.00405aa7
mov esi, eax
call fcn.0040fc41
cmp word [eax + ebx], 0xa
je 0x41b546
mov ecx, 0x46cecc
mov esi, edi
call fcn.0040b5ec
jmp 0x41b546
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00405aa7
call fcn.0040fc83
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, ebx
call fcn.00405aa7
mov ecx, eax
call fcn.0040fc06
push dword [edi + 4]
push eax
push ebx
push esi
call fcn.00451fc2
push dword [edi + 4]
call fcn.00451be4
add esp, 0x14
test eax, eax
je 0x41b546
mov esi, dword [ebp + 0xc]
push 0
call fcn.004101fc
mov ecx, dword [ebp + 8]
xor eax, eax
call fcn.00405aa7
cmp dword [eax + 8], 4
jne 0x41b3c8
mov esi, edi
call fcn.0040b52a
call fcn.0040b52a
push edi
call fcn.0044e722
pop ecx
jmp 0x41b3c8
Function at 0x41ba0a
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
push edi
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x41ba8a
lea eax, [ebp - 0x22c]
push 0x46cd14
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x41ba78
lea eax, [ebp - 0x22c]
push 0x46faa8
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x41ba78
push dword [ebp + 0x10]
lea eax, [ebp - 0x22c]
push dword [ebp + 0xc]
push eax
call fcn.0040c25d
add esp, 0xc
test al, al
je 0x41baa2
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x41ba31
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41baad
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x10
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
jmp 0x41ba9b
lea eax, [ebp - 0x258]
push eax
push 0x46faa0
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x41bb3b
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test byte [ebp - 0x258], 0x10
je 0x41bb27
lea eax, [ebp - 0x22c]
push 0x46cd14
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x41bb27
lea eax, [ebp - 0x22c]
push 0x46faa8
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x41bb27
lea eax, [ebp - 0x22c]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041ba0a
test al, al
je 0x41bb3f
push 0x46faa8
call esi
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x41bac9
mov bl, 1
jmp 0x41bb41
xor bl, bl
push dword [ebp - 4]
call edi
mov al, bl
jmp 0x41ba9b
Function at 0x41d0c8
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push str.___s
push eax
call fcn.0044f059
lea eax, [ebp - 0x208]
push eax
call fcn.0044f00e
add esp, 0x10
xor ebx, ebx
cmp word [ebp + eax*2 - 0x20a], 0x5c
jne 0x41d12f
lea eax, [ebp - 0x208]
push eax
call fcn.0044f00e
cmp word [ebp + eax*2 - 0x20c], 0x3a
pop ecx
je 0x41d12f
lea eax, [ebp - 0x208]
push eax
call fcn.0044f00e
pop ecx
mov word [ebp + eax*2 - 0x20a], bx
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x41d144
cmp byte [ebp + 8], bl
je 0x41d210
push esi
push ebx
push 0x2200000
push 3
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41d1fb
push 0x14
lea eax, [ebp - 0x820]
push ebx
push eax
call fcn.00451260
lea eax, [ebp - 0x208]
push eax
mov dword [ebp - 0x820], 0xa0000003
call fcn.0044f00e
add eax, eax
mov word [ebp - 0x816], ax
mov eax, dword [ebp - 0x816]
add eax, 2
mov word [ebp - 0x814], ax
push 0x104
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.0045158d
mov eax, dword [ebp - 0x816]
add esp, 0x1c
push ebx
add eax, 0xc
mov word [ebp - 0x81c], ax
lea ecx, [ebp + 0xc]
push ecx
push ebx
movzx eax, ax
push ebx
add eax, 8
push eax
lea eax, [ebp - 0x820]
push eax
push 0x900a4
push esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
push esi
jne 0x41d206
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
xor eax, eax
jmp 0x41d20f
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 8
Function at 0x41de3c
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
push edi
lea eax, [esp + 0x18]
push eax
push dword [ebp + 8]
mov dword [esp + 0x1c], ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x41de71
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [sym.imp.KERNEL32.DLL_FindNextFileW]
lea eax, [esp + 0x44]
push 0x46cd14
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x41dec6
lea eax, [esp + 0x44]
push 0x46faa8
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x41dec6
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
or eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
not ecx
and eax, ecx
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x41dee5
lea eax, [esp + 0x18]
push eax
push edi
call ebx
test eax, eax
jne 0x41de77
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41def1
mov al, 1
jmp 0x41de68
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
jmp 0x41de66
lea eax, [esp + 0x18]
push eax
push 0x46faa0
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x41df73
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test byte [esp + 0x18], 0x10
je 0x41df64
lea eax, [esp + 0x44]
push 0x46cd14
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x41df64
lea eax, [esp + 0x44]
push 0x46faa8
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x41df64
lea eax, [esp + 0x44]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041de3c
test al, al
je 0x41df77
push 0x46faa8
call esi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call ebx
test eax, eax
jne 0x41df0c
mov bl, 1
jmp 0x41df79
xor bl, bl
push dword [esp + 0x10]
call edi
mov al, bl
jmp 0x41de68
Function at 0x41ea5e
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
call fcn.0040e30a
mov edi, esi
lea esi, [ebp - 0x20]
call fcn.0040e37d
push 0x46faa0
mov eax, edi
call fcn.0040e505
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0xc]
mov byte [ebp + 0xb], 1
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x41ebb1
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x10]
call fcn.00418c78
cmp eax, 1
je 0x41ebad
cmp eax, 0xb
jne 0x41ead1
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x41eab1
lea eax, [ebp - 0x244]
push 0x46cd14
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x41eb93
lea eax, [ebp - 0x244]
push 0x46faa8
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x41eb93
lea ebx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.0040e441
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0xc]
call fcn.0040e505
test byte [ebp - 0x270], 0x10
je 0x41eb6b
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x41eb3a
add dword [esi], 1
adc dword [esi + 4], ebx
cmp byte [ebp + 0x1c], bl
je 0x41eb93
push 0x46c388
lea eax, [ebp - 0xc]
call fcn.0040e505
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0x18]
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.0041ea5e
cmp al, bl
mov byte [ebp + 0xb], al
je 0x41ebb1
jmp 0x41eb93
mov eax, dword [ebp - 0x250]
mov edx, dword [ebp - 0x254]
xor ecx, ecx
xor esi, esi
or ecx, eax
mov eax, dword [ebp + 0xc]
or edx, esi
add dword [eax], ecx
adc dword [eax + 4], edx
cmp byte [ebp + 0x18], 0
je 0x41eb93
add dword [edi], 1
adc dword [edi + 4], esi
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x41eab1
jmp 0x41ebb1
mov byte [ebp + 0xb], 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp - 0x20]
call fcn.0044e722
pop ecx
push dword [ebp - 0xc]
call fcn.0044e722
mov al, byte [ebp + 0xb]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x4271b1
Capabilities:
Set socket configuration

Disassembly:
push ebx
push edi
push dword [esp + 0x10]
or eax, 0xffffffff
mov word [esi], 2
call fcn.0040df43
pop ecx
mov ebx, eax
push ebx
call sub.WSOCK32.dll_inet_addr
push ebx
mov edi, eax
call fcn.0044e722
cmp edi, 0xffffffff
pop ecx
jne 0x4271e2
xor ecx, ecx
push 0
inc ecx
jmp 0x427207
mov eax, dword [esp + 0x14]
lea ecx, [eax - 1]
cmp ecx, 0xfffe
mov dword [esi + 4], edi
ja 0x427202
push eax
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x427212
push 0
push 2
pop ecx
mov eax, dword [esp + 0x10]
call fcn.0041a11e
xor al, al
pop edi
pop ebx
ret 0xc

Function at 0x427f88
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
and dword [ebp - 8], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0x80004002
mov dword [ebp - 4], 0x28
call fcn.0040e2de
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x20019
push ebx
push 0
push str.interface
mov edi, SysReAllocString
push edi
call esi
test eax, eax
je 0x427fe6
mov esi, 0x80004002
push dword [ebp - 0x20]
call fcn.0044e722
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x28]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4280b4
mov eax, dword [ebp - 4]
and word [ebp + eax*2 - 0x78], 0
push str.interface_
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0x1fe
call fcn.0040e46d
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x20]
call fcn.0040e505
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
jne 0x42809f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x280]
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x428096
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
and word [ebp + eax*2 - 0x280], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x280]
push eax
call fcn.0044e8b8
test eax, eax
pop ecx
pop ecx
jne 0x428096
push dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x4280b4
inc dword [ebp - 8]
mov dword [ebp - 4], 0x28
jmp 0x427fe6
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xc]
jmp 0x427fd6
Function at 0x4280c5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0040e2de
fld1
lea eax, [ebp - 0xc]
fstp qword [ebp - 0x28]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromIID]
mov esi, eax
xor edi, edi
cmp esi, edi
jl 0x42825c
push dword [ebp - 0xc]
call fcn.0040d6da
mov esi, eax
lea eax, [ebp - 0x20]
mov dword [esp], str.interface_
call fcn.0040e46d
push esi
lea eax, [ebp - 0x20]
call fcn.0040e505
push str.TypeLib
lea eax, [ebp - 0x20]
call fcn.0040e505
push esi
call fcn.0044e722
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 8]
push eax
push 0x20019
push edi
push dword [ebp - 0x20]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x42825c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call ebx
mov esi, eax
cmp esi, edi
jne 0x428253
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x240], di
lea eax, [ebp - 0x240]
push eax
call fcn.0040d6da
pop ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
push dword [ebp - 0x14]
mov esi, eax
call fcn.0044e722
cmp esi, edi
pop ecx
jl 0x428253
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push str.Version
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call ebx
test eax, eax
jne 0x4281fe
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x240], di
lea eax, [ebp - 0x240]
push eax
call fcn.00451654
fstp qword [ebp - 0x28]
pop ecx
fld1
lea eax, [ebp - 0x10]
push eax
push edi
sub esp, 0x10
fstp qword [esp + 8]
fld qword [ebp - 0x28]
fstp qword [esp]
call fcn.004535c0
add esp, 0x10
call fcn.00465e16
fld qword [ebp - 0x28]
push eax
call fcn.00465e16
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, edi
jl 0x428253
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x20]
call fcn.0044e722
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42826c
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
xor esi, esi
push edi
lea ecx, [ebp - 0x24]
mov edi, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.0040e2de
lea ecx, [ebp - 0x18]
call fcn.0040e2de
lea ecx, [ebp - 0x30]
call fcn.0040e2de
push str.SOFTWAREClasses_
lea eax, [ebp - 0x24]
call fcn.0040e46d
push dword [ebp + 8]
lea eax, [ebp - 0x24]
call fcn.0040e505
push str.CLSID
lea eax, [ebp - 0x24]
call fcn.0040e505
push 0x46bf68
lea eax, [ebp - 0x18]
call fcn.0040e46d
cmp edi, esi
je 0x4282f3
cmp word [edi], 0x5c
je 0x4282f3
cmp word [edi + 2], 0x5c
je 0x4282f3
push 0x47060c
lea eax, [ebp - 0x18]
call fcn.0040e46d
push edi
lea eax, [ebp - 0x18]
call fcn.0040e505
cmp dword [ebp + 0x10], esi
je 0x428342
push 0x20
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.00451260
add esp, 0xc
lea ebx, [ebp - 0x18]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], esi
call fcn.0040e441
push str.IPC_
lea eax, [ebp - 0x30]
call fcn.0040e505
mov eax, dword [ebp - 0x30]
push esi
push dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x50]
push eax
call sub.MPR.dll_WNetAddConnection2W
mov edi, eax
cmp edi, esi
jne 0x4283de
lea eax, [ebp - 0xc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov edi, eax
cmp edi, esi
jne 0x4283de
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push dword [ebp - 0x24]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x4283d9
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x258]
push eax
push esi
push esi
push esi
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, esi
jne 0x4283d4
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x258], si
lea eax, [ebp - 0x258]
push eax
call fcn.0040d6da
pop ecx
push dword [ebp + 0xc]
mov esi, eax
push esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push esi
mov edi, eax
call fcn.0044e722
pop ecx
push dword [ebp - 8]
call ebx
push dword [ebp - 0xc]
call ebx
push dword [ebp - 0x30]
call fcn.0044e722
push dword [ebp - 0x18]
call fcn.0044e722
push dword [ebp - 0x24]
call fcn.0044e722
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430e75
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push str.open
lea esi, [ebp - 0x14]
call fcn.0040e30a
xor ebx, ebx
push 0x3c
xor esi, esi
lea eax, [ebp - 0x5c]
push ebx
inc esi
push eax
xor edi, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esi
call fcn.00451260
add esp, 0xc
cmp dword [ebp + 0x14], 2
jb 0x430ede
mov ecx, dword [ebp + 0x10]
mov eax, esi
call fcn.00405aa7
mov esi, eax
call fcn.0040fc41
cmp word [eax], bx
je 0x430ede
mov ecx, dword [ebp + 0x10]
xor eax, eax
inc eax
call fcn.00405aa7
mov esi, eax
call fcn.0040fc41
push eax
call fcn.0040d6da
pop ecx
mov edi, eax
cmp dword [ebp + 0x14], 3
jb 0x430f00
mov ecx, dword [ebp + 0x10]
push 2
pop eax
call fcn.00405aa7
mov esi, eax
call fcn.0040fc41
push eax
call fcn.0040d6da
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 4
jb 0x430f3b
mov ecx, dword [ebp + 0x10]
push 3
pop eax
call fcn.00405aa7
mov esi, eax
call fcn.0040fc41
cmp word [eax], bx
je 0x430f3b
mov ecx, dword [ebp + 0x10]
push 3
pop eax
call fcn.00405aa7
mov esi, eax
call fcn.0040fc63
mov ebx, eax
lea eax, [ebp - 0x14]
call fcn.0040e441
xor ebx, ebx
cmp dword [ebp + 0x14], 5
jb 0x430f57
mov ecx, dword [ebp + 0x10]
push 4
pop eax
call fcn.00405aa7
call fcn.0040fd19
movzx eax, ax
mov dword [ebp - 8], eax
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00451260
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], 0x40
mov dword [ebp - 0x54], ebx
call fcn.00405aa7
mov esi, eax
call fcn.0040fc41
mov esi, dword [ebp - 4]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp edi, ebx
mov dword [ebp + 0x10], eax
je 0x430fb6
push edi
call fcn.0044e722
pop ecx
cmp esi, ebx
je 0x430fc1
push esi
call fcn.0044e722
pop ecx
cmp dword [ebp + 0x10], ebx
jne 0x43101f
mov esi, dword [ebp + 8]
cmp byte [esi + 0x290], 1
jne 0x431009
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
call fcn.00418b7f
push dword [eax]
mov ebx, esi
push 0x87
call fcn.004189b9
push dword [ebp - 0x20]
call fcn.0044e722
xor ebx, ebx
pop ecx
inc ebx
push dword [ebp - 0x14]
call fcn.0044e722
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14
xor ecx, ecx
push ebx
inc ecx
mov eax, esi
call fcn.0041a11e
mov esi, dword [ebp + 0x18]
push ebx
call fcn.004101fc
jmp 0x430ff7
cmp byte [ebp + 0xc], bl
je 0x431032
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x7e8], eax
jmp 0x430ff7
mov esi, dword [ebp + 0x18]
push 1
call fcn.004101fc
cmp dword [ebp - 0x24], ebx
je 0x430ff7
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x430ff7