joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a23a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
cmp byte [ebp + 0xc], 0
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x190]
push edi
lea edi, [esi + 0x56c]
mov ebx, dword [edi]
mov dword [esp + 0xc], esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebx
je 0x41a271
call fcn.0040de3a
cmp byte [ebp + 0x10], 0
je 0x41a3ea
lea eax, [esi + 0x5b0]
push eax
lea ebx, [esp + 0x7c]
mov dword [esp + 0x14], eax
call fcn.0040f563
lea edi, [esi + 0x5c0]
lea esi, [esp + 0x5c]
mov dword [esp + 0x14], edi
call fcn.0040e073
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x670]
mov dword [esp + 0x1c], eax
lea eax, [ebx + 0x5cc]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x678]
lea edi, [ebx + 0x6c4]
lea esi, [esp + 0x50]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
call fcn.0040e073
mov eax, dword [ebx + 0x6d0]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x6d4]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x254]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x258]
add ebx, 0x240
push ebx
mov dword [esp + 0x44], ebx
lea ebx, [esp + 0x6c]
mov dword [esp + 0x40], eax
call fcn.0040f563
mov edi, dword [esp + 0xc]
push dword [ebp + 8]
mov eax, edi
call fcn.00418fbf
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x78]
push eax
call fcn.0040fc2e
mov eax, dword [esp + 0x14]
lea ebx, [esp + 0x5c]
call fcn.0040e109
mov eax, dword [esp + 0x18]
push dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x670], eax
call fcn.00403928
mov eax, dword [esp + 0x28]
mov dword [edi + 0x678], eax
mov eax, dword [esp + 0x2c]
lea ebx, [esp + 0x50]
call fcn.0040e109
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x40]
mov dword [edi + 0x6d0], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 0x6d4], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 0x254], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x258], eax
lea eax, [esp + 0x68]
push eax
call fcn.0040fc2e
lea ecx, [esp + 0x68]
call fcn.0040f7b5
push dword [esp + 0x50]
call fcn.0044db10
push dword [esp + 0x60]
call fcn.0044db10
pop ecx
pop ecx
lea ecx, [esp + 0x78]
call fcn.0040f7b5
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0xc]
jmp 0x41a3f4
push dword [ebp + 8]
mov eax, esi
call fcn.00418fbf
cmp byte [ebp + 0xc], 0
je 0x41a406
call fcn.0040de94
jmp 0x41a406
call fcn.0041a478
cmp ebx, dword [edi]
jl 0x41a401
mov eax, dword [esp + 0x4c]
pop edi
mov dword [esi + 0x190], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b623
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.004058fd
cmp dword [eax + 8], 4
jne 0x41b69e
push 0x60
call fcn.0044daa6
test eax, eax
pop ecx
je 0x41b652
call fcn.0040b13f
mov edi, eax
jmp 0x41b654
xor edi, edi
xor eax, eax
mov ecx, ebx
call fcn.004058fd
mov esi, eax
call fcn.0040f865
xor ebx, ebx
push eax
inc ebx
mov eax, ebx
mov ecx, edi
call fcn.0040b14f
test al, al
jne 0x41b72a
test edi, edi
je 0x41b68b
mov esi, edi
call fcn.0040b31a
push edi
call fcn.0044db10
pop ecx
mov esi, dword [ebp + 0xc]
push 0
call fcn.0040fde2
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
xor eax, eax
mov ecx, ebx
call fcn.004058fd
call fcn.0040f937
mov esi, eax
dec esi
js 0x41b68b
xor eax, eax
mov ecx, ebx
call fcn.004058fd
call fcn.00410b7a
test al, al
je 0x41b68b
cmp esi, dword [edi + 0x580]
jge 0x41b68b
jb 0x41b6d4
call fcn.004072ee
jmp 0x41b6dd
mov eax, dword [edi + 0x57c]
mov eax, dword [eax + esi*4]
cmp dword [eax], 0
je 0x41b68b
cmp esi, dword [edi + 0x580]
jb 0x41b6f1
call fcn.004072ee
jmp 0x41b6fa
mov eax, dword [edi + 0x57c]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
cmp dword [eax], 0
jne 0x41b68b
cmp esi, dword [edi + 0x580]
jb 0x41b710
call fcn.004072ee
jmp 0x41b719
mov eax, dword [edi + 0x57c]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
mov edi, dword [eax + 4]
test byte [edi], 3
je 0x41b68b
xor ebx, ebx
inc ebx
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.004058fd
cmp dword [eax + 8], 0xb
je 0x41b7c9
test byte [edi], 0x10
jne 0x41b7c9
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.004058fd
mov esi, eax
call fcn.0040f865
mov ecx, eax
mov esi, edi
call fcn.0040b3dc
cmp byte [ebp + 0x10], 0
je 0x41b80f
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.004058fd
mov esi, eax
call fcn.0040f865
push eax
call fcn.0044e140
mov ebx, eax
test ebx, ebx
pop ecx
je 0x41b7bb
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
call fcn.004058fd
mov esi, eax
call fcn.0040f865
cmp byte [eax + ebx - 1], 0xd
je 0x41b80f
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
call fcn.004058fd
mov esi, eax
call fcn.0040f865
cmp byte [eax + ebx - 1], 0xa
je 0x41b80f
mov ecx, 0x46ab2c
mov esi, edi
call fcn.0040b3dc
jmp 0x41b80f
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.004058fd
call fcn.0040f8a7
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, ebx
call fcn.004058fd
mov ecx, eax
call fcn.0040f82d
push dword [edi + 4]
push eax
push ebx
push esi
call fcn.00450cbe
push dword [edi + 4]
call fcn.00451114
add esp, 0x14
test eax, eax
je 0x41b80f
mov esi, dword [ebp + 0xc]
push 0
call fcn.0040fde2
mov ecx, dword [ebp + 8]
xor eax, eax
call fcn.004058fd
cmp dword [eax + 8], 4
jne 0x41b695
mov esi, edi
call fcn.0040b31a
call fcn.0040b31a
push edi
call fcn.0044db10
pop ecx
jmp 0x41b695
Function at 0x41bcd4
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
push edi
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x41bd54
lea eax, [ebp - 0x11c]
push 0x46aa54
push eax
call fcn.0044dfd0
test eax, eax
pop ecx
pop ecx
je 0x41bd42
lea eax, [ebp - 0x11c]
push 0x46c304
push eax
call fcn.0044dfd0
test eax, eax
pop ecx
pop ecx
je 0x41bd42
push dword [ebp + 0x10]
lea eax, [ebp - 0x11c]
push dword [ebp + 0xc]
push eax
call fcn.0040bff5
add esp, 0xc
test al, al
je 0x41bd6c
lea eax, [ebp - 0x148]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x41bcfb
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41bd77
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 0x41bd65
lea eax, [ebp - 0x148]
push eax
push 0x46c300
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x41be05
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
test byte [ebp - 0x148], 0x10
je 0x41bdf1
lea eax, [ebp - 0x11c]
push 0x46aa54
push eax
call fcn.0044dfd0
test eax, eax
pop ecx
pop ecx
je 0x41bdf1
lea eax, [ebp - 0x11c]
push 0x46c304
push eax
call fcn.0044dfd0
test eax, eax
pop ecx
pop ecx
je 0x41bdf1
lea eax, [ebp - 0x11c]
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.0041bcd4
test al, al
je 0x41be09
push 0x46c304
call esi
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x41bd93
mov bl, 1
jmp 0x41be0b
xor bl, bl
push dword [ebp - 4]
call edi
mov al, bl
jmp 0x41bd65
Function at 0x41d382
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push str.___s
push eax
call fcn.0044e1cb
lea eax, [ebp - 0x104]
lea esi, [ebp - 0x104]
push eax
dec esi
call fcn.0044e140
add esp, 0x10
xor ebx, ebx
cmp byte [eax + esi], 0x5c
jne 0x41d3ea
lea eax, [ebp - 0x104]
push eax
call fcn.0044e140
pop ecx
lea ecx, [ebp - 0x104]
dec ecx
dec ecx
cmp byte [eax + ecx], 0x3a
je 0x41d3ea
lea eax, [ebp - 0x104]
push eax
call fcn.0044e140
pop ecx
mov byte [eax + esi], bl
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
jne 0x41d402
cmp byte [ebp + 8], bl
jne 0x41d402
xor eax, eax
jmp 0x41d4d1
push ebx
push 0x2200000
push 3
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41d428
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
jmp 0x41d3fb
push 0x14
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.004507e0
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 0x410], 0xa0000003
call fcn.0044e140
add eax, eax
mov word [ebp - 0x406], ax
mov eax, dword [ebp - 0x406]
add esp, 0x10
add eax, 2
push 0x104
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x400]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x104]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [ebp - 0x406]
push ebx
add eax, 0xc
mov word [ebp - 0x40c], ax
lea ecx, [ebp + 0xc]
push ecx
push ebx
movzx eax, ax
push ebx
add eax, 8
push eax
lea eax, [ebp - 0x410]
push eax
push 0x900a4
push esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
push esi
jne 0x41d4c8
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x41d41f
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 8
Function at 0x41e0d7
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, 0x14c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
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 0x41e10c
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
lea eax, [esp + 0x44]
push 0x46aa54
push eax
call fcn.0044dfd0
test eax, eax
pop ecx
pop ecx
je 0x41e161
lea eax, [esp + 0x44]
push 0x46c304
push eax
call fcn.0044dfd0
test eax, eax
pop ecx
pop ecx
je 0x41e161
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
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_SetFileAttributesA]
test eax, eax
je 0x41e180
lea eax, [esp + 0x18]
push eax
push edi
call ebx
test eax, eax
jne 0x41e112
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41e18c
mov al, 1
jmp 0x41e103
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
jmp 0x41e101
lea eax, [esp + 0x18]
push eax
push 0x46c300
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x41e20e
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
test byte [esp + 0x18], 0x10
je 0x41e1ff
lea eax, [esp + 0x44]
push 0x46aa54
push eax
call fcn.0044dfd0
test eax, eax
pop ecx
pop ecx
je 0x41e1ff
lea eax, [esp + 0x44]
push 0x46c304
push eax
call fcn.0044dfd0
test eax, eax
pop ecx
pop ecx
je 0x41e1ff
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.0041e0d7
test al, al
je 0x41e212
push 0x46c304
call esi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call ebx
test eax, eax
jne 0x41e1a7
mov bl, 1
jmp 0x41e214
xor bl, bl
push dword [esp + 0x10]
call edi
mov al, bl
jmp 0x41e103
Function at 0x41ecf9
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
push ebx
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
call fcn.0040e021
mov edi, esi
lea esi, [ebp - 0x20]
call fcn.0040e073
push 0x46c300
mov eax, edi
call fcn.0040e1f0
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0xc]
mov byte [ebp + 0xb], 1
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x41ee4c
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x10]
call fcn.00418f04
cmp eax, 1
je 0x41ee48
cmp eax, 0xb
jne 0x41ed6c
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x41ed4c
lea eax, [ebp - 0x134]
push 0x46aa54
push eax
call fcn.0044dfd0
test eax, eax
pop ecx
pop ecx
je 0x41ee2e
lea eax, [ebp - 0x134]
push 0x46c304
push eax
call fcn.0044dfd0
test eax, eax
pop ecx
pop ecx
je 0x41ee2e
lea ebx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.0040e109
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0xc]
call fcn.0040e1f0
test byte [ebp - 0x160], 0x10
je 0x41ee06
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x41edd5
add dword [esi], 1
adc dword [esi + 4], ebx
cmp byte [ebp + 0x1c], bl
je 0x41ee2e
push 0x46a330
lea eax, [ebp - 0xc]
call fcn.0040e1f0
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.0041ecf9
cmp al, bl
mov byte [ebp + 0xb], al
je 0x41ee4c
jmp 0x41ee2e
mov eax, dword [ebp - 0x140]
mov edx, dword [ebp - 0x144]
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 0x41ee2e
add dword [edi], 1
adc dword [edi + 4], esi
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x41ed4c
jmp 0x41ee4c
mov byte [ebp + 0xb], 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp - 0x20]
call fcn.0044db10
pop ecx
push dword [ebp - 0xc]
call fcn.0044db10
mov al, byte [ebp + 0xb]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x4273c7
Capabilities:
Set socket configuration

Disassembly:
push ebx
push edi
push dword [esp + 0x10]
mov word [esi], 2
call fcn.0040d437
pop ecx
mov ebx, eax
push ebx
call sub.WSOCK32.dll_inet_addr
push ebx
mov edi, eax
call fcn.0044db10
cmp edi, 0xffffffff
pop ecx
jne 0x4273f5
xor ecx, ecx
push 0
inc ecx
jmp 0x42741a
mov eax, dword [esp + 0x14]
lea ecx, [eax - 1]
cmp ecx, 0xfffe
mov dword [esi + 4], edi
ja 0x427415
push eax
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x427425
push 0
push 2
pop ecx
mov eax, dword [esp + 0x10]
call fcn.0041a41d
xor al, al
pop edi
pop ebx
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
and dword [ebp - 8], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc], 0x80004002
mov dword [ebp - 4], 0x28
call fcn.0040e004
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
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 0x4280b2
mov esi, 0x80004002
push dword [ebp - 0x24]
call fcn.0044db10
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x2c]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x428191
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x54], 0
push str.interface_
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0xff
call fcn.0040e132
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x24]
call fcn.0040e1f0
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp - 0x24]
push edi
call esi
test eax, eax
jne 0x42817c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x160]
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x428173
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov byte [ebp + eax - 0x160], 0
lea eax, [ebp - 0x160]
push eax
call fcn.0044d8f4
test eax, eax
pop ecx
pop ecx
jne 0x428173
lea eax, [ebp - 0x54]
push eax
or eax, 0xffffffff
call fcn.0040dbd3
pop ecx
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
push dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
call fcn.0044db10
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x428191
inc dword [ebp - 8]
mov dword [ebp - 4], 0x28
jmp 0x4280b2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xc]
jmp 0x4280a2
Function at 0x4281a2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0040e004
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 ebx, ebx
cmp esi, ebx
jl 0x428337
push dword [ebp - 0xc]
or eax, 0xffffffff
call fcn.0040dc42
mov esi, eax
lea eax, [ebp - 0x20]
mov dword [esp], str.interface_
call fcn.0040e132
push esi
lea eax, [ebp - 0x20]
call fcn.0040e1f0
push str.TypeLib
lea eax, [ebp - 0x20]
call fcn.0040e1f0
push esi
call fcn.0044db10
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push dword [ebp - 0x20]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x428337
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x140]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], 0xff
call edi
mov esi, eax
cmp esi, ebx
jne 0x42832e
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x140], bl
lea eax, [ebp - 0x140]
push eax
or eax, 0xffffffff
call fcn.0040dbd3
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.0044db10
cmp esi, ebx
pop ecx
jl 0x42832e
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x140]
push eax
push ebx
push ebx
push str.Version
push dword [ebp - 8]
mov dword [ebp - 4], 0xff
call edi
test eax, eax
jne 0x4282d9
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x140], bl
lea eax, [ebp - 0x140]
push eax
call fcn.00450903
fstp qword [ebp - 0x28]
pop ecx
fld1
lea eax, [ebp - 0x10]
push eax
push ebx
sub esp, 0x10
fstp qword [esp + 8]
fld qword [ebp - 0x28]
fstp qword [esp]
call fcn.004527f0
add esp, 0x10
call fcn.00463f06
fld qword [ebp - 0x28]
push eax
call fcn.00463f06
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, ebx
jl 0x42832e
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.0044db10
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x428347
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x24]
mov esi, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.0040e004
lea ecx, [ebp - 0x18]
call fcn.0040e004
lea ecx, [ebp - 0x30]
call fcn.0040e004
push str.SOFTWAREClasses_
lea eax, [ebp - 0x24]
call fcn.0040e132
push dword [ebp + 8]
lea eax, [ebp - 0x24]
call fcn.0040e1f0
push str.CLSID
lea eax, [ebp - 0x24]
call fcn.0040e1f0
push 0x469ede
lea eax, [ebp - 0x18]
call fcn.0040e132
cmp esi, ebx
je 0x4283cc
cmp byte [esi], 0x5c
je 0x4283cc
cmp byte [esi + 1], 0x5c
je 0x4283cc
push 0x46c9ac
lea eax, [ebp - 0x18]
call fcn.0040e132
push esi
lea eax, [ebp - 0x18]
call fcn.0040e1f0
cmp dword [ebp + 0x10], ebx
je 0x42841e
push 0x20
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.004507e0
mov dword [ebp - 0x4c], ebx
add esp, 0xc
lea ebx, [ebp - 0x18]
lea eax, [ebp - 0x30]
call fcn.0040e109
push str.IPC_
lea eax, [ebp - 0x30]
call fcn.0040e1f0
mov eax, dword [ebp - 0x30]
push 0
push dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x50]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
test esi, esi
jne 0x4284b5
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
mov esi, eax
cmp esi, ebx
jne 0x4284b5
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push dword [ebp - 0x24]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
cmp esi, ebx
jne 0x4284b0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x158]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 0xc], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, ebx
jne 0x4284ab
mov eax, dword [ebp - 0xc]
mov byte [ebp + eax - 0x158], bl
lea eax, [ebp - 0x158]
push eax
or eax, 0xffffffff
call fcn.0040dbd3
pop ecx
push dword [ebp + 0xc]
mov ebx, eax
push ebx
call dword [sym.imp.ole32.dll_CLSIDFromString]
push ebx
mov esi, eax
call fcn.0044db10
pop ecx
push dword [ebp - 8]
call edi
push dword [ebp - 4]
call edi
push dword [ebp - 0x30]
call fcn.0044db10
push dword [ebp - 0x18]
call fcn.0044db10
push dword [ebp - 0x24]
call fcn.0044db10
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x430fb7
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.0040e021
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.004507e0
add esp, 0xc
cmp dword [ebp + 0x14], 2
jb 0x43101f
mov ecx, dword [ebp + 0x10]
mov eax, esi
call fcn.004058fd
mov esi, eax
call fcn.0040f865
cmp byte [eax], bl
je 0x43101f
mov ecx, dword [ebp + 0x10]
xor eax, eax
inc eax
call fcn.004058fd
mov esi, eax
call fcn.0040f865
push eax
call fcn.0040d437
pop ecx
mov edi, eax
cmp dword [ebp + 0x14], 3
jb 0x431041
mov ecx, dword [ebp + 0x10]
push 2
pop eax
call fcn.004058fd
mov esi, eax
call fcn.0040f865
push eax
call fcn.0040d437
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 4
jb 0x43107b
mov ecx, dword [ebp + 0x10]
push 3
pop eax
call fcn.004058fd
mov esi, eax
call fcn.0040f865
cmp byte [eax], bl
je 0x43107b
mov ecx, dword [ebp + 0x10]
push 3
pop eax
call fcn.004058fd
mov esi, eax
call fcn.0040f887
mov ebx, eax
lea eax, [ebp - 0x14]
call fcn.0040e109
xor ebx, ebx
cmp dword [ebp + 0x14], 5
jb 0x431097
mov ecx, dword [ebp + 0x10]
push 4
pop eax
call fcn.004058fd
call fcn.0040f937
movzx eax, ax
mov dword [ebp - 8], eax
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.004507e0
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.004058fd
mov esi, eax
call fcn.0040f865
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_ShellExecuteExA]
cmp edi, ebx
mov dword [ebp + 0x10], eax
je 0x4310f6
push edi
call fcn.0044db10
pop ecx
cmp esi, ebx
je 0x431101
push esi
call fcn.0044db10
pop ecx
cmp dword [ebp + 0x10], ebx
jne 0x43115f
mov esi, dword [ebp + 8]
cmp byte [esi + 0x19c], 1
jne 0x431149
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
call fcn.00418e0d
push dword [eax]
mov ebx, esi
push 0x87
call fcn.00418c47
push dword [ebp - 0x20]
call fcn.0044db10
xor ebx, ebx
pop ecx
inc ebx
push dword [ebp - 0x14]
call fcn.0044db10
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.0041a41d
mov esi, dword [ebp + 0x18]
push ebx
call fcn.0040fde2
jmp 0x431137
cmp byte [ebp + 0xc], bl
je 0x431172
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6d8], eax
jmp 0x431137
mov esi, dword [ebp + 0x18]
push 1
call fcn.0040fde2
cmp dword [ebp - 0x24], ebx
je 0x431137
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x431137