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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push ebx
push edi
mov byte [ebp - 1], 1
push dword [esi]
lea eax, [ebp - 0x14]
push 4
push 1
push eax
call fcn.004509f1
add esp, 0x10
push 0x18ee
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.00412597
lea eax, [ebp - 0x14]
push str.FILE
push eax
mov byte [ebp - 0x10], 0
call fcn.004500f0
test eax, eax
pop ecx
pop ecx
jne 0x412b94
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.004509f1
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0xadbc
lea ebx, [edi + edi]
push ebx
lea eax, [ebp - 0x228]
push 1
push eax
call fcn.004509f1
add esp, 0x20
add edi, 0xb33f
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.00412597
and word [ebp + ebx - 0x228], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.0044d37c
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.004509f1
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0xf820
lea ebx, [edi + edi]
push ebx
lea eax, [ebp - 0x228]
push 1
push eax
call fcn.004509f1
add esp, 0x28
add edi, 0xf479
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.00412597
and word [ebp + ebx - 0x228], 0
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0xc]
call fcn.0044d37c
push dword [ebp + 8]
lea eax, [ebp - 0x438]
push eax
call fcn.0044d935
add esp, 0x10
test eax, eax
je 0x412bab
xor edi, edi
inc edi
push edi
push edi
push dword [esi]
call fcn.00450396
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.004509f1
xor dword [ebp - 8], 0x87bc
mov eax, dword [ebp - 8]
push edi
add eax, 0x18
push eax
push dword [esi]
call fcn.00450396
add esp, 0x1c
jmp 0x412b98
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 1
je 0x412a4e
push 6
pop eax
pop edi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x412ba5
Function at 0x419f8b
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 + 0x28c]
push edi
lea edi, [esi + 0x66c]
mov ebx, dword [edi]
mov dword [esp + 0x10], esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebx
je 0x419fc2
call fcn.0040dadf
cmp byte [ebp + 0x10], 0
je 0x41a12d
lea eax, [esi + 0x6b0]
push eax
lea ebx, [esp + 0x7c]
mov dword [esp + 0x18], eax
call fcn.0040f2de
lea edi, [esi + 0x6c0]
lea esi, [esp + 0x5c]
mov dword [esp + 0x18], edi
call fcn.0040dd1f
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x770]
mov dword [esp + 0x1c], eax
lea eax, [ebx + 0x6cc]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x778]
lea edi, [ebx + 0x7c4]
lea esi, [esp + 0x50]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
call fcn.0040dd1f
mov eax, dword [ebx + 0x7d0]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x7d4]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x354]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x358]
add ebx, 0x340
push ebx
mov dword [esp + 0x44], ebx
lea ebx, [esp + 0x6c]
mov dword [esp + 0x40], eax
call fcn.0040f2de
mov edi, dword [esp + 0x10]
push dword [ebp + 8]
mov eax, edi
call fcn.00418d10
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x78]
push eax
call fcn.0040f9ea
mov eax, dword [esp + 0x18]
lea ebx, [esp + 0x5c]
call fcn.0040dde3
mov eax, dword [esp + 0x1c]
push dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov dword [edi + 0x770], eax
call fcn.00402a47
mov eax, dword [esp + 0x28]
mov dword [edi + 0x778], eax
mov eax, dword [esp + 0x2c]
lea ebx, [esp + 0x50]
call fcn.0040dde3
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x40]
mov dword [edi + 0x7d0], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 0x7d4], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 0x354], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x358], eax
lea eax, [esp + 0x68]
push eax
call fcn.0040f9ea
lea ecx, [esp + 0x68]
call fcn.0040f530
push dword [esp + 0x50]
call fcn.0044d460
push dword [esp + 0x60]
call fcn.0044d460
pop ecx
pop ecx
lea ecx, [esp + 0x78]
call fcn.0040f530
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x10]
jmp 0x41a137
push dword [ebp + 8]
mov eax, esi
call fcn.00418d10
cmp byte [ebp + 0xc], 0
je 0x41a149
call fcn.0040db39
jmp 0x41a149
call fcn.0041a1bb
cmp ebx, dword [edi]
jl 0x41a144
mov eax, dword [esp + 0x4c]
pop edi
mov dword [esi + 0x28c], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b3be
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.00405435
cmp dword [eax + 8], 4
jne 0x41b439
push 0x60
call fcn.0044d3f6
test eax, eax
pop ecx
je 0x41b3ed
call fcn.0040ad2e
mov edi, eax
jmp 0x41b3ef
xor edi, edi
xor eax, eax
mov ecx, ebx
call fcn.00405435
mov esi, eax
call fcn.0040f5e3
xor ebx, ebx
push eax
inc ebx
mov eax, ebx
mov ecx, edi
call fcn.0040ad3e
test al, al
jne 0x41b4c7
test edi, edi
je 0x41b426
mov esi, edi
call fcn.0040af09
push edi
call fcn.0044d460
pop ecx
push 0
mov esi, dword [ebp + 0xc]
call fcn.0040fb9e
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
xor eax, eax
mov ecx, ebx
call fcn.00405435
call fcn.0040f6bb
mov esi, eax
dec esi
js 0x41b426
xor eax, eax
mov ecx, ebx
call fcn.00405435
call fcn.0041090a
test al, al
je 0x41b426
cmp esi, dword [edi + 0x680]
jge 0x41b426
jb 0x41b46f
call fcn.0041a200
jmp 0x41b478
mov eax, dword [edi + 0x67c]
mov eax, dword [eax + esi*4]
xor ebx, ebx
cmp dword [eax], ebx
je 0x41b426
cmp esi, dword [edi + 0x680]
jb 0x41b48d
call fcn.0041a200
jmp 0x41b496
mov eax, dword [edi + 0x67c]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
cmp dword [eax], ebx
jne 0x41b426
cmp esi, dword [edi + 0x680]
jb 0x41b4ab
call fcn.0041a200
jmp 0x41b4b4
mov eax, dword [edi + 0x67c]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
mov edi, dword [eax + 4]
test byte [edi], 3
jne 0x41b4c4
push ebx
jmp 0x41b428
xor ebx, ebx
inc ebx
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00405435
cmp dword [eax + 8], 0xb
je 0x41b568
test byte [edi], 0x10
jne 0x41b568
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00405435
mov esi, eax
call fcn.0040f5e3
mov ecx, eax
mov esi, edi
call fcn.0040afcb
cmp byte [ebp + 0x10], 0
je 0x41b5ae
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00405435
mov esi, eax
call fcn.0040f5e3
push eax
call fcn.0044d9c3
test eax, eax
pop ecx
je 0x41b55a
mov ecx, dword [ebp + 8]
lea ebx, [eax + eax - 2]
xor eax, eax
inc eax
call fcn.00405435
mov esi, eax
call fcn.0040f5e3
cmp word [eax + ebx], 0xd
je 0x41b5ae
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
call fcn.00405435
mov esi, eax
call fcn.0040f5e3
cmp word [eax + ebx], 0xa
je 0x41b5ae
mov ecx, 0x46b0e0
mov esi, edi
call fcn.0040afcb
jmp 0x41b5ae
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00405435
call fcn.0040f625
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, ebx
call fcn.00405435
mov ecx, eax
call fcn.0040f5a8
push dword [edi + 4]
push eax
push ebx
push esi
call fcn.004505e5
push dword [edi + 4]
call fcn.00450a3b
add esp, 0x14
test eax, eax
je 0x41b5ae
mov esi, dword [ebp + 0xc]
push 0
call fcn.0040fb9e
mov ecx, dword [ebp + 8]
xor eax, eax
call fcn.00405435
cmp dword [eax + 8], 4
jne 0x41b430
mov esi, edi
call fcn.0040af09
call fcn.0040af09
push edi
call fcn.0044d460
pop ecx
jmp 0x41b430
Function at 0x41ba72
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 0x41baf2
lea eax, [ebp - 0x22c]
push 0x46af28
push eax
call fcn.0044d935
test eax, eax
pop ecx
pop ecx
je 0x41bae0
lea eax, [ebp - 0x22c]
push 0x46dbc0
push eax
call fcn.0044d935
test eax, eax
pop ecx
pop ecx
je 0x41bae0
push dword [ebp + 0x10]
lea eax, [ebp - 0x22c]
push dword [ebp + 0xc]
push eax
call fcn.0040bc2e
add esp, 0xc
test al, al
je 0x41bb0a
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x41ba99
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41bb15
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 0x41bb03
lea eax, [ebp - 0x258]
push eax
push 0x46dbb8
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x41bba3
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test byte [ebp - 0x258], 0x10
je 0x41bb8f
lea eax, [ebp - 0x22c]
push 0x46af28
push eax
call fcn.0044d935
test eax, eax
pop ecx
pop ecx
je 0x41bb8f
lea eax, [ebp - 0x22c]
push 0x46dbc0
push eax
call fcn.0044d935
test eax, eax
pop ecx
pop ecx
je 0x41bb8f
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.0041ba72
test al, al
je 0x41bba7
push 0x46dbc0
call esi
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x41bb31
mov bl, 1
jmp 0x41bba9
xor bl, bl
push dword [ebp - 4]
call edi
mov al, bl
jmp 0x41bb03
Function at 0x41d130
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.0044d9d9
lea eax, [ebp - 0x208]
push eax
call fcn.0044d9c3
add esp, 0x10
xor ebx, ebx
cmp word [ebp + eax*2 - 0x20a], 0x5c
jne 0x41d197
lea eax, [ebp - 0x208]
push eax
call fcn.0044d9c3
cmp word [ebp + eax*2 - 0x20c], 0x3a
pop ecx
je 0x41d197
lea eax, [ebp - 0x208]
push eax
call fcn.0044d9c3
pop ecx
mov word [ebp + eax*2 - 0x20a], bx
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x41d1ac
cmp byte [ebp + 8], bl
je 0x41d278
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 0x41d263
push 0x14
lea eax, [ebp - 0x820]
push ebx
push eax
call fcn.0044fbe0
lea eax, [ebp - 0x208]
push eax
mov dword [ebp - 0x820], 0xa0000003
call fcn.0044d9c3
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.0044ff8a
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 0x41d26e
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
xor eax, eax
jmp 0x41d277
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 8
Function at 0x41de67
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 0x41de9c
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 0x46af28
push eax
call fcn.0044d935
test eax, eax
pop ecx
pop ecx
je 0x41def1
lea eax, [esp + 0x44]
push 0x46dbc0
push eax
call fcn.0044d935
test eax, eax
pop ecx
pop ecx
je 0x41def1
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 0x41df10
lea eax, [esp + 0x18]
push eax
push edi
call ebx
test eax, eax
jne 0x41dea2
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41df1c
mov al, 1
jmp 0x41de93
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
jmp 0x41de91
lea eax, [esp + 0x18]
push eax
push 0x46dbb8
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x41df9e
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test byte [esp + 0x18], 0x10
je 0x41df8f
lea eax, [esp + 0x44]
push 0x46af28
push eax
call fcn.0044d935
test eax, eax
pop ecx
pop ecx
je 0x41df8f
lea eax, [esp + 0x44]
push 0x46dbc0
push eax
call fcn.0044d935
test eax, eax
pop ecx
pop ecx
je 0x41df8f
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.0041de67
test al, al
je 0x41dfa2
push 0x46dbc0
call esi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call ebx
test eax, eax
jne 0x41df37
mov bl, 1
jmp 0x41dfa4
xor bl, bl
push dword [esp + 0x10]
call edi
mov al, bl
jmp 0x41de93
Function at 0x41ea89
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.0040dcac
mov edi, esi
lea esi, [ebp - 0x20]
call fcn.0040dd1f
push 0x46dbb8
mov eax, edi
call fcn.0040dea7
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 0x41ebdc
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x10]
call fcn.00418c55
cmp eax, 1
je 0x41ebd8
cmp eax, 0xb
jne 0x41eafc
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x41eadc
lea eax, [ebp - 0x244]
push 0x46af28
push eax
call fcn.0044d935
test eax, eax
pop ecx
pop ecx
je 0x41ebbe
lea eax, [ebp - 0x244]
push 0x46dbc0
push eax
call fcn.0044d935
test eax, eax
pop ecx
pop ecx
je 0x41ebbe
lea ebx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.0040dde3
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0xc]
call fcn.0040dea7
test byte [ebp - 0x270], 0x10
je 0x41eb96
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x41eb65
add dword [esi], 1
adc dword [esi + 4], ebx
cmp byte [ebp + 0x1c], bl
je 0x41ebbe
push 0x46a584
lea eax, [ebp - 0xc]
call fcn.0040dea7
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.0041ea89
cmp al, bl
mov byte [ebp + 0xb], al
je 0x41ebdc
jmp 0x41ebbe
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 0x41ebbe
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 0x41eadc
jmp 0x41ebdc
mov byte [ebp + 0xb], 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp - 0x20]
call fcn.0044d460
pop ecx
push dword [ebp - 0xc]
call fcn.0044d460
mov al, byte [ebp + 0xb]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x427188
Capabilities:
Set socket configuration

Disassembly:
push ebx
push edi
push dword [esp + 0x10]
or eax, 0xffffffff
mov word [esi], 2
call fcn.0040d90e
pop ecx
mov ebx, eax
push ebx
call sub.WSOCK32.dll_inet_addr
push ebx
mov edi, eax
call fcn.0044d460
cmp edi, 0xffffffff
pop ecx
jne 0x4271b9
xor ecx, ecx
push 0
inc ecx
jmp 0x4271de
mov eax, dword [esp + 0x14]
lea ecx, [eax - 1]
cmp ecx, 0xfffe
mov dword [esi + 4], edi
ja 0x4271d9
push eax
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x4271e9
push 0
push 2
pop ecx
mov eax, dword [esp + 0x10]
call fcn.0041a160
xor al, al
pop edi
pop ebx
ret 0xc

Function at 0x427e05
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.0040dc80
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 0x427e63
mov esi, 0x80004002
push dword [ebp - 0x20]
call fcn.0044d460
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 0x427f31
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.0040de0f
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x20]
call fcn.0040dea7
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
jne 0x427f1c
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 0x427f13
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.0044d2c1
test eax, eax
pop ecx
pop ecx
jne 0x427f13
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 0x427f31
inc dword [ebp - 8]
mov dword [ebp - 4], 0x28
jmp 0x427e63
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xc]
jmp 0x427e53
Function at 0x427f42
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.0040dc80
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 0x4280d9
push dword [ebp - 0xc]
call fcn.0040d0a5
mov esi, eax
lea eax, [ebp - 0x20]
mov dword [esp], str.interface_
call fcn.0040de0f
push esi
lea eax, [ebp - 0x20]
call fcn.0040dea7
push str.TypeLib
lea eax, [ebp - 0x20]
call fcn.0040dea7
push esi
call fcn.0044d460
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 0x4280d9
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 0x4280d0
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.0040d0a5
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.0044d460
cmp esi, edi
pop ecx
jl 0x4280d0
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 0x42807b
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.00450051
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.00451fb0
add esp, 0x10
call fcn.00464806
fld qword [ebp - 0x28]
push eax
call fcn.00464806
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, edi
jl 0x4280d0
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.0044d460
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4280e9
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.0040dc80
lea ecx, [ebp - 0x18]
call fcn.0040dc80
lea ecx, [ebp - 0x30]
call fcn.0040dc80
push str.SOFTWAREClasses_
lea eax, [ebp - 0x24]
call fcn.0040de0f
push dword [ebp + 8]
lea eax, [ebp - 0x24]
call fcn.0040dea7
push str.CLSID
lea eax, [ebp - 0x24]
call fcn.0040dea7
push 0x46a170
lea eax, [ebp - 0x18]
call fcn.0040de0f
cmp edi, esi
je 0x428170
cmp word [edi], 0x5c
je 0x428170
cmp word [edi + 2], 0x5c
je 0x428170
push 0x46e668
lea eax, [ebp - 0x18]
call fcn.0040de0f
push edi
lea eax, [ebp - 0x18]
call fcn.0040dea7
cmp dword [ebp + 0x10], esi
je 0x4281bf
push 0x20
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.0044fbe0
add esp, 0xc
lea ebx, [ebp - 0x18]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], esi
call fcn.0040dde3
push str.IPC_
lea eax, [ebp - 0x30]
call fcn.0040dea7
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 0x42825b
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 0x42825b
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 0x428256
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 0x428251
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.0040d0a5
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.0044d460
pop ecx
push dword [ebp - 8]
call ebx
push dword [ebp - 0xc]
call ebx
push dword [ebp - 0x30]
call fcn.0044d460
push dword [ebp - 0x18]
call fcn.0044d460
push dword [ebp - 0x24]
call fcn.0044d460
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret