joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415821
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
push esi
lea eax, [ebp - 0x294]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x4158de
push 0x100
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostbyname
xor esi, esi
cmp eax, esi
je 0x4158de
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], esi
je 0x41587a
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], esi
jne 0x415872
cmp edi, edx
jle 0x41588f
push str.0.0.0.0
push dword [ebp + 8]
call fcn.004489a8
pop ecx
pop ecx
jmp 0x4158d7
push 4
push dword [eax + edi*4 - 4]
lea eax, [ebp - 4]
push eax
call fcn.00449a60
add esp, 0xc
push dword [ebp - 4]
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004493e0
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.0041667a
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.004489a8
push esi
call fcn.004488cc
add esp, 0x1c
call sub.WSOCK32.dll_WSACleanup
jmp 0x4158ed
push 0x45b6d0
push dword [ebp + 8]
call fcn.004489a8
pop ecx
pop ecx
pop esi
leave
ret

Function at 0x415a5b
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x478bb4], 0
push ebx
push esi
mov ebx, eax
je 0x415ac4
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x415ac0
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x415ac6
xor eax, eax
jmp 0x415b06
xor esi, esi
cmp byte [0x478bb5], 0
je 0x415ae3
test bl, 4
je 0x415ae3
push esi
push 0x415b0a
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x415af7
cmp ebx, 0x40
je 0x415af7
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x415b06
xor eax, eax
cmp ebx, 0x20
sete al
push esi
push eax
call sub.KERNEL32.dll_SetSystemPowerState
pop esi
pop ebx
leave
ret

Function at 0x415b44
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x415b63
push 0x1388
push dword [esp + 8]
call fcn.00415b21
test al, al
pop ecx
pop ecx
jne 0x415b7f
push 1
jmp 0x415b65
push 0
push 0
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
ret
Function at 0x415dcc
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
test edi, edi
push esi
jl 0x415e5e
jne 0x415de1
push 0
jmp 0x415e58
mov al, byte [0x478bb5]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x415e57
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x415e57
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
call esi
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
sbb ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
fild qword [ebp - 0x18]
fstp qword [ebp - 0x28]
fild qword [ebp - 0x20]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x28]
fdiv qword [ebp - 0x30]
fmul qword [0x4616e0]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.00457ac4
cmp eax, edi
jb 0x415e0e
jmp 0x415e5e
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
leave
ret

Function at 0x422d3e
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push edi
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x422dbe
lea eax, [ebp - 0x224]
push 0x45c7f4
push eax
call fcn.00448ab3
test eax, eax
pop ecx
pop ecx
je 0x422dac
lea eax, [ebp - 0x224]
push 0x45f45c
push eax
call fcn.00448ab3
test eax, eax
pop ecx
pop ecx
je 0x422dac
push dword [ebp + 0x10]
lea eax, [ebp - 0x224]
push dword [ebp + 0xc]
push eax
call fcn.00414a02
add esp, 0xc
test al, al
je 0x422dd2
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x422d65
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x14], 0
jne 0x422dd9
mov al, 1
jmp 0x422e6f
xor bl, bl
jmp 0x422e66
lea eax, [ebp - 0x250]
push eax
push 0x45f464
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x422e64
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test byte [ebp - 0x250], 0x10
je 0x422e52
lea eax, [ebp - 0x224]
push 0x45c7f4
push eax
call fcn.00448ab3
test eax, eax
pop ecx
pop ecx
je 0x422e52
lea eax, [ebp - 0x224]
push 0x45f45c
push eax
call fcn.00448ab3
test eax, eax
pop ecx
pop ecx
je 0x422e52
lea eax, [ebp - 0x224]
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.00422d3e
test al, al
je 0x422dd2
push 0x45f45c
call esi
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x422df4
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4244bf
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xa2c]
push eax
mov esi, 0x104
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x424635
push ebx
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x20c]
push str.___s
push eax
call fcn.00448c22
lea eax, [ebp - 0x20c]
push eax
call fcn.00448c0c
add esp, 0x10
xor ebx, ebx
cmp word [ebp + eax*2 - 0x20e], 0x5c
jne 0x42454d
lea eax, [ebp - 0x20c]
push eax
call fcn.00448c0c
cmp word [ebp + eax*2 - 0x210], 0x3a
pop ecx
je 0x42454d
lea eax, [ebp - 0x20c]
push eax
call fcn.00448c0c
pop ecx
mov word [ebp + eax*2 - 0x20e], bx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x424564
cmp byte [ebp + 0x10], bl
je 0x424634
push edi
push ebx
push 0x2200000
push 3
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x424594
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
jmp 0x424633
push 0x14
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.00448eb0
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x824], 0xa0000003
call fcn.00448c0c
shl eax, 1
mov word [ebp - 0x81a], ax
mov eax, dword [ebp - 0x81a]
add eax, 2
mov word [ebp - 0x818], ax
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.00449027
mov eax, dword [ebp - 0x81a]
add esp, 0x1c
push ebx
add eax, 0xc
mov word [ebp - 0x820], ax
lea ecx, [ebp - 4]
push ecx
push ebx
movzx eax, ax
push ebx
add eax, 8
push eax
lea eax, [ebp - 0x824]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push edi
jne 0x42462a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x424584
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x42529f
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call esi
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 4], ebx
jne 0x4252d0
xor al, al
jmp 0x4253ed
push edi
lea eax, [ebp - 0x22c]
push 0x45c7f4
push eax
call fcn.00448ab3
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
pop ecx
pop ecx
je 0x42532e
lea eax, [ebp - 0x22c]
push 0x45f45c
push eax
call fcn.00448ab3
test eax, eax
pop ecx
pop ecx
je 0x42532e
lea eax, [ebp - 0x22c]
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, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x425350
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4252d1
push ebx
call edi
cmp byte [ebp + 0x14], 0
jne 0x425357
mov al, 1
jmp 0x4253ec
xor bl, bl
jmp 0x4253e5
lea eax, [ebp - 0x258]
push eax
push 0x45f464
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4253e3
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test byte [ebp - 0x258], 0x10
je 0x4253cf
lea eax, [ebp - 0x22c]
push 0x45c7f4
push eax
call fcn.00448ab3
test eax, eax
pop ecx
pop ecx
je 0x4253cf
mov ebx, 0x45f45c
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.00448ab3
test eax, eax
pop ecx
pop ecx
je 0x4253cf
lea eax, [ebp - 0x22c]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042529f
test al, al
je 0x425350
push ebx
call esi
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x425373
mov bl, 1
push dword [ebp - 4]
call edi
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x425ef8
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
call fcn.00416a3c
lea edi, [ebp - 0xc]
lea esi, [ebp - 0x20]
call fcn.00416a8a
push 0x45f464
or eax, 0xffffffff
lea ecx, [ebp - 0xc]
call fcn.00416d28
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 0x426057
mov edi, dword [ebp + 0x10]
push ebx
mov esi, dword [ebp - 0x10]
call fcn.0041fc82
cmp eax, 1
je 0x426052
cmp eax, 0xb
jne 0x425f70
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x425f50
lea eax, [ebp - 0x244]
push 0x45c7f4
push eax
call fcn.00448ab3
test eax, eax
pop ecx
pop ecx
je 0x426038
lea eax, [ebp - 0x244]
push 0x45f45c
push eax
call fcn.00448ab3
test eax, eax
pop ecx
pop ecx
je 0x426038
lea ebx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.00416d7e
lea eax, [ebp - 0x244]
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0xc]
call fcn.00416d28
test byte [ebp - 0x270], 0x10
je 0x426010
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x425fdc
add dword [esi], 1
adc dword [esi + 4], ebx
cmp byte [ebp + 0x1c], bl
je 0x426038
push 0x45c09c
or eax, 0xffffffff
lea ecx, [ebp - 0xc]
call fcn.00416d28
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.00425ef8
cmp al, bl
mov byte [ebp + 0xb], al
je 0x426056
jmp 0x426038
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 0x426038
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 0x425f50
jmp 0x426056
mov byte [ebp + 0xb], 0
pop ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x20]
call fcn.004488cc
push dword [ebp - 0xc]
call fcn.004488cc
mov al, byte [ebp + 0xb]
pop ecx
pop ecx
pop edi
pop esi
leave
ret 0x18
Function at 0x42f14e
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push 0
push dword [ebp + 0xc]
mov word [esi], 2
call fcn.004166c7
pop ecx
pop ecx
mov ebx, eax
push ebx
call sub.WSOCK32.dll_inet_addr
push ebx
mov edi, eax
call fcn.004488cc
cmp edi, 0xffffffff
pop ecx
jne 0x42f181
xor ecx, ecx
push 0
inc ecx
jmp 0x42f1a8
cmp dword [ebp + 0x10], 0
mov dword [esi + 4], edi
jle 0x42f1a3
cmp dword [ebp + 0x10], 0xffff
jg 0x42f1a3
push dword [ebp + 0x10]
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x42f1b2
push 0
push 2
pop ecx
mov eax, dword [ebp + 8]
call fcn.004211e9
xor al, al
pop edi
pop ebx
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
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.00416a1c
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, connect
push edi
call esi
test eax, eax
je 0x430020
mov esi, 0x80004002
jmp 0x4300fe
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 0x4300f2
mov eax, dword [ebp - 4]
and word [ebp + eax*2 - 0x78], 0
push str.interface_
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 4], 0x1fe
call fcn.00416b3e
lea eax, [ebp - 0x78]
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00416d28
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
jne 0x4300dd
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x27c]
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 0x4300d4
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
and word [ebp + eax*2 - 0x27c], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x27c]
push eax
call fcn.004488d1
test eax, eax
pop ecx
pop ecx
jne 0x4300d4
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 0x4300f2
inc dword [ebp - 8]
mov dword [ebp - 4], 0x28
jmp 0x430020
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xc]
push dword [ebp - 0x20]
call fcn.004488cc
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43010e
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.00416a1c
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 0x4302ac
push dword [ebp - 0xc]
call fcn.00415e61
mov esi, eax
lea eax, [ebp - 0x20]
mov dword [esp], str.interface_
push eax
call fcn.00416b3e
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00416d28
push str.TypeLib
or eax, 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00416d28
push esi
call fcn.004488cc
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 connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x4302ac
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 0x4302a3
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.00415e61
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.004488cc
cmp esi, edi
pop ecx
jl 0x4302a3
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 0x43024e
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.00448f10
fstp qword [ebp - 0x28]
pop ecx
lea eax, [ebp - 0x10]
fld1
push eax
push edi
sub esp, 0x10
fstp qword [esp + 8]
fld qword [ebp - 0x28]
fstp qword [esp]
call fcn.0044b1d0
add esp, 0x10
call fcn.00457ac4
fld qword [ebp - 0x28]
push eax
call fcn.00457ac4
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, edi
jl 0x4302a3
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.004488cc
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4302bc
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
xor esi, esi
push edi
lea ecx, [ebp - 0x24]
mov ebx, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.00416a1c
lea ecx, [ebp - 0x18]
call fcn.00416a1c
lea ecx, [ebp - 0x30]
call fcn.00416a1c
push str.SOFTWAREClasses_
lea eax, [ebp - 0x24]
push eax
call fcn.00416b3e
push dword [ebp + 8]
or edi, 0xffffffff
mov eax, edi
lea ecx, [ebp - 0x24]
call fcn.00416d28
push str.CLSID
mov eax, edi
lea ecx, [ebp - 0x24]
call fcn.00416d28
push 0x45b6d0
lea eax, [ebp - 0x18]
push eax
call fcn.00416b3e
cmp ebx, esi
je 0x43034f
cmp word [ebx], 0x5c
je 0x43034f
cmp word [ebx + 2], 0x5c
je 0x43034f
push 0x460068
lea eax, [ebp - 0x18]
push eax
call fcn.00416b3e
push ebx
mov eax, edi
lea ecx, [ebp - 0x18]
call fcn.00416d28
cmp dword [ebp + 0x10], esi
je 0x4303a0
push 0x20
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.00448eb0
add esp, 0xc
lea ebx, [ebp - 0x18]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], esi
call fcn.00416d7e
push str.IPC_
mov eax, edi
lea ecx, [ebp - 0x30]
call fcn.00416d28
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 0x43043c
lea eax, [ebp - 0xc]
push eax
push reloc.WSOCK32.dll_bind
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov edi, eax
cmp edi, esi
jne 0x43043c
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 0x430437
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x254]
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 0x430432
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x254], si
lea eax, [ebp - 0x254]
push eax
call fcn.00415e61
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.004488cc
pop ecx
push dword [ebp - 8]
call ebx
push dword [ebp - 0xc]
call ebx
push dword [ebp - 0x30]
call fcn.004488cc
push dword [ebp - 0x18]
call fcn.004488cc
push dword [ebp - 0x24]
call fcn.004488cc
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x435ec0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x201c
call fcn.0044b8a0
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.00416a1c
lea ecx, [ebp - 0x1c]
call fcn.00416a1c
mov esi, dword [ebp + 8]
xor edi, edi
call fcn.004181d6
mov esi, eax
mov ax, word [esi]
test ax, ax
mov byte [ebp - 1], 0
je 0x435fff
push ebx
mov ebx, 0x460738
inc edi
cmp ax, 0x25
jne 0x435fb9
cmp word [esi + edi*2], ax
jne 0x435f26
push 0x25
lea eax, [ebp - 0x10]
mov byte [ebp - 1], 1
call fcn.00416bbc
inc edi
jmp 0x435fc2
push 0x45b6d0
lea eax, [ebp - 0x1c]
push eax
call fcn.00416b3e
jmp 0x435f45
test ax, ax
je 0x435f51
push eax
lea eax, [ebp - 0x1c]
call fcn.00416bbc
inc edi
xor eax, eax
mov ax, word [esi + edi*2]
cmp ax, 0x25
jne 0x435f36
cmp word [esi + edi*2], 0
je 0x435fd1
and word [ebp - 0x201c], 0
push 0xfff
lea eax, [ebp - 0x201c]
push eax
push dword [ebp - 0x1c]
inc edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
lea ecx, [ebp - 0x10]
je 0x435f92
lea eax, [ebp - 0x201c]
push eax
or eax, 0xffffffff
call fcn.00416d28
mov byte [ebp - 1], 1
jmp 0x435fc2
push ebx
or eax, 0xffffffff
mov byte [ebp - 1], 1
call fcn.00416d28
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
call fcn.00416b79
push ebx
or eax, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00416d28
jmp 0x435fc2
push eax
lea eax, [ebp - 0x10]
call fcn.00416bbc
mov ax, word [esi + edi*2]
test ax, ax
jne 0x435f01
jmp 0x435fed
push ebx
or eax, 0xffffffff
lea ecx, [ebp - 0x10]
mov byte [ebp - 1], 1
call fcn.00416d28
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
call fcn.00416b79
cmp byte [ebp - 1], 0
je 0x435ffe
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x10]
call fcn.00418839
pop ebx
push dword [ebp - 0x1c]
call fcn.004488cc
push dword [ebp - 0x10]
call fcn.004488cc
pop ecx
pop ecx
pop edi
pop esi
leave
ret 4