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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68c
push ebx
push esi
mov esi, eax
push edi
lea eax, [ebp - 0x478]
call fcn.004141e1
push 0
push dword [esi + 4]
xor edi, edi
push dword [esi]
inc edi
mov dword [ebp - 0xc], edi
call fcn.00452905
add esp, 0xc
lea eax, [ebp - 0x688]
push eax
push str.___AUTOIT_SCRIPT___
call fcn.004157e6
test eax, eax
je 0x4156c1
push 6
pop eax
jmp 0x4157df
push dword [esi]
lea eax, [ebp - 1]
push edi
push edi
push eax
call fcn.00452f60
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.00452f60
push dword [esi]
mov edi, dword [ebp - 8]
push 1
lea eax, [ebp - 8]
push 4
mov ebx, 0x87bc
push eax
xor edi, ebx
call fcn.00452f60
push dword [esi]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
xor eax, ebx
push 1
mov dword [ecx], eax
lea eax, [ebp - 8]
push 4
push eax
call fcn.00452f60
mov ebx, dword [ebp - 8]
add esp, 0x40
push 1
push 0x10
push dword [esi]
xor ebx, 0xa685
call fcn.00452905
mov eax, dword [ebp + 0xc]
add esp, 0xc
push dword [eax]
call fcn.00451e16
pop ecx
push edi
mov dword [ebp + 0xc], eax
call fcn.00451e16
pop ecx
push dword [esi]
mov dword [ebp - 0x10], eax
push 1
push edi
push eax
call fcn.00452f60
mov eax, dword [esi + 8]
mov esi, dword [ebp - 0x10]
add esp, 0x10
add eax, 0x2477
push eax
push edi
push esi
call fcn.0041533e
push edi
push esi
lea edi, [ebp - 0xc]
call fcn.0041418d
cmp ebx, dword [ebp - 0xc]
je 0x415787
push dword [ebp + 0xc]
call fcn.00452068
pop ecx
push esi
call fcn.00452068
pop ecx
push 0xa
jmp 0x4156bb
cmp byte [ebp - 1], 1
jne 0x4157c9
lea eax, [ebp - 0x478]
call fcn.004141e1
xor eax, eax
inc eax
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x478], eax
lea eax, [ebp - 0x478]
mov dword [ebp - 0x474], esi
call fcn.0041420f
push esi
call fcn.00452068
jmp 0x4157d4
push dword [ebp + 0xc]
call fcn.00452068
mov dword [ebp + 0xc], esi
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4157e6
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.00452f60
add esp, 0x10
push 0x18ee
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.0041533e
lea eax, [ebp - 0x14]
push str.FILE
push eax
mov byte [ebp - 0x10], 0
call fcn.00452570
test eax, eax
pop ecx
pop ecx
jne 0x41593b
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.00452f60
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.00452f60
add esp, 0x20
add edi, 0xb33f
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.0041533e
and word [ebp + ebx - 0x228], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.0044f86d
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.00452f60
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.00452f60
add esp, 0x28
add edi, 0xf479
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.0041533e
and word [ebp + ebx - 0x228], 0
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0xc]
call fcn.0044f86d
push dword [ebp + 8]
lea eax, [ebp - 0x438]
push eax
call fcn.004518ea
add esp, 0x10
test eax, eax
je 0x415952
xor edi, edi
inc edi
push edi
push edi
push dword [esi]
call fcn.00452905
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.00452f60
xor dword [ebp - 8], 0x87bc
mov eax, dword [ebp - 8]
push edi
add eax, 0x18
push eax
push dword [esi]
call fcn.00452905
add esp, 0x1c
jmp 0x41593f
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 1
je 0x4157f5
push 6
pop eax
pop edi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x41594c
Function at 0x41d87d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov eax, dword [edi + 4]
mov eax, dword [eax]
cmp dword [eax + 8], 4
jne 0x41d8e3
push 0x60
call fcn.0044f8e7
test eax, eax
pop ecx
je 0x41d8a4
call fcn.0040cfd3
mov ebx, eax
jmp 0x41d8a6
xor ebx, ebx
mov eax, dword [edi + 4]
mov esi, dword [eax]
call fcn.00412336
push eax
xor eax, eax
inc eax
mov ecx, ebx
call fcn.0040cfe3
test al, al
jne 0x41d920
test ebx, ebx
je 0x41d8d1
mov esi, ebx
call fcn.0040d1b5
push ebx
call fcn.0044f951
pop ecx
mov esi, dword [ebp + 8]
push 0
call fcn.00412914
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
call fcn.00412431
mov ecx, eax
dec ecx
js 0x41d8d1
mov eax, dword [edi + 4]
mov eax, dword [eax]
call fcn.004136b1
test al, al
je 0x41d8d1
cmp ecx, dword [esi + 0x374]
jge 0x41d8d1
mov eax, dword [esi + 0x370]
mov ecx, dword [eax + ecx*4]
cmp dword [ecx], 0
je 0x41d8d1
mov ecx, dword [ecx]
cmp dword [ecx], 0
jne 0x41d8d1
mov ebx, dword [ecx + 4]
test byte [ebx], 3
je 0x41d8d1
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
cmp dword [eax + 8], 0xb
je 0x41d9a0
test byte [ebx], 0x10
jne 0x41d9a0
mov esi, eax
call fcn.00412336
mov ecx, eax
mov esi, ebx
call fcn.0040d277
cmp byte [ebp + 0xc], 0
je 0x41d9d7
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
call fcn.00412336
push eax
call fcn.0045177a
test eax, eax
pop ecx
je 0x41d992
mov ecx, dword [edi + 4]
mov esi, dword [ecx + 4]
lea eax, [eax + eax - 2]
mov dword [ebp + 0xc], eax
call fcn.00412336
mov ecx, dword [ebp + 0xc]
cmp word [eax + ecx], 0xd
je 0x41d9d7
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
call fcn.00412336
mov ecx, dword [ebp + 0xc]
cmp word [eax + ecx], 0xa
je 0x41d9d7
mov ecx, 0x46d1e0
mov esi, ebx
call fcn.0040d277
jmp 0x41d9d7
call fcn.0041239b
push dword [ebx + 4]
mov edx, eax
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
call fcn.004122fb
push eax
push 1
push edx
call fcn.00452b54
push dword [ebx + 4]
call fcn.00452776
add esp, 0x14
test eax, eax
je 0x41d9d7
mov esi, dword [ebp + 8]
push 0
call fcn.00412914
mov eax, dword [edi + 4]
mov eax, dword [eax]
cmp dword [eax + 8], 4
jne 0x41d8db
mov esi, ebx
call fcn.0040d1b5
call fcn.0040d1b5
push ebx
call fcn.0044f951
pop ecx
jmp 0x41d8db
Function at 0x41de6d
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 0x41deed
lea eax, [ebp - 0x22c]
push 0x46d028
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x41dedb
lea eax, [ebp - 0x22c]
push 0x46fe2c
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x41dedb
push dword [ebp + 0x10]
lea eax, [ebp - 0x22c]
push dword [ebp + 0xc]
push eax
call fcn.0040df4d
add esp, 0xc
test al, al
je 0x41df05
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x41de94
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41df10
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 0x41defe
lea eax, [ebp - 0x258]
push eax
push 0x46fe24
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x41df9e
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test byte [ebp - 0x258], 0x10
je 0x41df8a
lea eax, [ebp - 0x22c]
push 0x46d028
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x41df8a
lea eax, [ebp - 0x22c]
push 0x46fe2c
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x41df8a
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.0041de6d
test al, al
je 0x41dfa2
push 0x46fe2c
call esi
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x41df2c
mov bl, 1
jmp 0x41dfa4
xor bl, bl
push dword [ebp - 4]
call edi
mov al, bl
jmp 0x41defe
Function at 0x41f41d
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.00451a06
lea eax, [ebp - 0x208]
push eax
call fcn.0045177a
add esp, 0x10
xor ebx, ebx
cmp word [ebp + eax*2 - 0x20a], 0x5c
jne 0x41f484
lea eax, [ebp - 0x208]
push eax
call fcn.0045177a
cmp word [ebp + eax*2 - 0x20c], 0x3a
pop ecx
je 0x41f484
lea eax, [ebp - 0x208]
push eax
call fcn.0045177a
pop ecx
mov word [ebp + eax*2 - 0x20a], bx
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x41f499
cmp byte [ebp + 8], bl
je 0x41f565
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 0x41f550
push 0x14
lea eax, [ebp - 0x820]
push ebx
push eax
call fcn.00451700
lea eax, [ebp - 0x208]
push eax
mov dword [ebp - 0x820], 0xa0000003
call fcn.0045177a
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.00451790
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 0x41f55b
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
xor eax, eax
jmp 0x41f564
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 8
Function at 0x4200e7
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 0x42011c
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 0x46d028
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x420171
lea eax, [esp + 0x44]
push 0x46fe2c
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x420171
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 0x420190
lea eax, [esp + 0x18]
push eax
push edi
call ebx
test eax, eax
jne 0x420122
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x42019c
mov al, 1
jmp 0x420113
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
jmp 0x420111
lea eax, [esp + 0x18]
push eax
push 0x46fe24
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x42021e
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test byte [esp + 0x18], 0x10
je 0x42020f
lea eax, [esp + 0x44]
push 0x46d028
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x42020f
lea eax, [esp + 0x44]
push 0x46fe2c
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x42020f
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.004200e7
test al, al
je 0x420222
push 0x46fe2c
call esi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call ebx
test eax, eax
jne 0x4201b7
mov bl, 1
jmp 0x420224
xor bl, bl
push dword [esp + 0x10]
call edi
mov al, bl
jmp 0x420113
Function at 0x420b94
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.0040ffd4
mov edi, esi
lea esi, [ebp - 0x20]
call fcn.00410020
push 0x46fe24
mov eax, edi
call fcn.00410227
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 0x420ce7
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 0x10]
call fcn.0041b406
cmp eax, 1
je 0x420ce3
cmp eax, 0xb
jne 0x420c07
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x420be7
lea eax, [ebp - 0x244]
push 0x46d028
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x420cc9
lea eax, [ebp - 0x244]
push 0x46fe2c
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x420cc9
lea ebx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.00410163
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0xc]
call fcn.00410227
test byte [ebp - 0x270], 0x10
je 0x420ca1
mov edi, dword [ebp + 0x14]
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x420c70
add dword [edi], 1
adc dword [edi + 4], ebx
cmp byte [ebp + 0x1c], bl
je 0x420cc9
push 0x46c6b8
lea eax, [ebp - 0xc]
call fcn.00410227
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0x18]
push edi
push esi
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.00420b94
cmp al, bl
mov byte [ebp + 0xb], al
je 0x420ce7
jmp 0x420cc9
mov eax, dword [ebp - 0x250]
mov edx, dword [ebp - 0x254]
xor ecx, ecx
xor edi, edi
or ecx, eax
mov eax, dword [ebp + 0xc]
or edx, edi
add dword [eax], ecx
adc dword [eax + 4], edx
cmp byte [ebp + 0x18], 0
je 0x420cc9
add dword [esi], 1
adc dword [esi + 4], edi
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x420be7
jmp 0x420ce7
mov byte [ebp + 0xb], 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp - 0x20]
call fcn.0044f951
pop ecx
push dword [ebp - 0xc]
call fcn.0044f951
mov al, byte [ebp + 0xb]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x428ccc
Capabilities:
Set socket configuration

Disassembly:
push ebx
push edi
push dword [esp + 0x10]
or eax, 0xffffffff
mov word [esi], 2
call fcn.0040fc4b
pop ecx
mov ebx, eax
push ebx
call sub.WSOCK32.dll_inet_addr
push ebx
mov edi, eax
call fcn.0044f951
cmp edi, 0xffffffff
pop ecx
jne 0x428cfc
push 0
push 1
jmp 0x428d20
mov eax, dword [esp + 0x14]
lea ecx, [eax - 1]
cmp ecx, 0xfffe
mov dword [esi + 4], edi
ja 0x428d1c
push eax
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x428d2b
push 0
push 2
mov eax, dword [esp + 0x14]
call fcn.0041c783
xor al, al
pop edi
pop ebx
ret 0xc

Function at 0x42999d
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.0040ff82
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 0x4299fb
mov esi, 0x80004002
push dword [ebp - 0x20]
call fcn.0044f951
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 0x429ac9
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.0041018f
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x20]
call fcn.00410227
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
jne 0x429ab4
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 0x429aab
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.0044f7b2
test eax, eax
pop ecx
pop ecx
jne 0x429aab
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 0x429ac9
inc dword [ebp - 8]
mov dword [ebp - 4], 0x28
jmp 0x4299fb
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xc]
jmp 0x4299eb
Function at 0x429ada
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.0040ff82
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 0x429c71
push dword [ebp - 0xc]
call fcn.0040f3a1
mov esi, eax
lea eax, [ebp - 0x20]
mov dword [esp], str.interface_
call fcn.0041018f
push esi
lea eax, [ebp - 0x20]
call fcn.00410227
push str.TypeLib
lea eax, [ebp - 0x20]
call fcn.00410227
push esi
call fcn.0044f951
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 0x429c71
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 0x429c68
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.0040f3a1
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.0044f951
cmp esi, edi
pop ecx
jl 0x429c68
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 0x429c13
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.0045255a
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.004544c0
add esp, 0x10
call fcn.00466d06
fld qword [ebp - 0x28]
push eax
call fcn.00466d06
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, edi
jl 0x429c68
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.0044f951
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x429c81
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.0040ff82
lea ecx, [ebp - 0x18]
call fcn.0040ff82
lea ecx, [ebp - 0x30]
call fcn.0040ff82
push str.SOFTWAREClasses_
lea eax, [ebp - 0x24]
call fcn.0041018f
push dword [ebp + 8]
lea eax, [ebp - 0x24]
call fcn.00410227
push str.CLSID
lea eax, [ebp - 0x24]
call fcn.00410227
push 0x46bf80
lea eax, [ebp - 0x18]
call fcn.0041018f
cmp edi, esi
je 0x429d08
cmp word [edi], 0x5c
je 0x429d08
cmp word [edi + 2], 0x5c
je 0x429d08
push 0x470924
lea eax, [ebp - 0x18]
call fcn.0041018f
push edi
lea eax, [ebp - 0x18]
call fcn.00410227
cmp dword [ebp + 0x10], esi
je 0x429d57
push 0x20
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.00451700
add esp, 0xc
lea ebx, [ebp - 0x18]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], esi
call fcn.00410163
push str.IPC_
lea eax, [ebp - 0x30]
call fcn.00410227
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 0x429df3
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 0x429df3
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 0x429dee
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 0x429de9
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.0040f3a1
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.0044f951
pop ecx
push dword [ebp - 8]
call ebx
push dword [ebp - 0xc]
call ebx
push dword [ebp - 0x30]
call fcn.0044f951
push dword [ebp - 0x18]
call fcn.0044f951
push dword [ebp - 0x24]
call fcn.0044f951
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42f1e7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.00454dd0
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.0040ff82
lea ecx, [ebp - 0x18]
call fcn.0040ff82
mov esi, dword [ebp + 8]
xor edi, edi
call fcn.00412336
mov esi, eax
movzx eax, word [esi]
xor bl, bl
test ax, ax
je 0x42f315
inc edi
cmp ax, 0x25
jne 0x42f2d4
cmp word [esi + edi*2], ax
jne 0x42f244
push 0x25
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0041026e
inc edi
jmp 0x42f2dd
push 0x46bf80
lea eax, [ebp - 0x18]
call fcn.0041018f
jmp 0x42f265
test ax, ax
je 0x42f26f
movzx eax, ax
push eax
lea eax, [ebp - 0x18]
call fcn.0041026e
inc edi
movzx eax, word [esi + edi*2]
cmp ax, 0x25
jne 0x42f253
cmp word [esi + edi*2], 0
je 0x42f2ec
and word [ebp - 0x2018], 0
push 0xfff
lea eax, [ebp - 0x2018]
push eax
push dword [ebp - 0x18]
inc edi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x42f2ab
lea eax, [ebp - 0x2018]
push eax
lea eax, [ebp - 0xc]
call fcn.00410227
mov bl, 1
jmp 0x42f2dd
push 0x4716f8
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.00410227
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.004101eb
push 0x4716f8
lea eax, [ebp - 0xc]
call fcn.00410227
jmp 0x42f2dd
push eax
lea eax, [ebp - 0xc]
call fcn.0041026e
movzx eax, word [esi + edi*2]
test ax, ax
jne 0x42f221
jmp 0x42f306
push 0x4716f8
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.00410227
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.004101eb
test bl, bl
je 0x42f315
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0xc]
call fcn.00412a0c
push dword [ebp - 0x18]
call fcn.0044f951
push dword [ebp - 0xc]
call fcn.0044f951
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4