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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
push esi
mov esi, eax
lea eax, [ebp - 0x294]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x415ab1
push 0x100
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x415ab1
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x415a4b
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x415a42
cmp esi, edx
jle 0x415a60
push str.0.0.0.0
push dword [ebp + 8]
call fcn.00449154
pop ecx
pop ecx
jmp 0x415aaa
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 4]
push eax
call fcn.0044a210
add esp, 0xc
push dword [ebp - 4]
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00449b90
lea eax, [ebp - 0x104]
push eax
or eax, 0xffffffff
call fcn.0041684e
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.00449154
push esi
call fcn.00449078
add esp, 0x18
call sub.WSOCK32.dll_WSACleanup
jmp 0x415ac0
push 0x45c6d0
push dword [ebp + 8]
call fcn.00449154
pop ecx
pop ecx
pop esi
leave
ret

Function at 0x415c2e
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x479bb4], 0
push ebx
push esi
mov ebx, eax
je 0x415c97
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 0x415c93
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 0x415c99
xor eax, eax
jmp 0x415cd9
xor esi, esi
cmp byte [0x479bb5], 0
je 0x415cb6
test bl, 4
je 0x415cb6
push esi
push 0x415cdd
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x415cca
cmp ebx, 0x40
je 0x415cca
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x415cd9
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 0x415d17
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x415d36
push 0x1388
push dword [esp + 8]
call fcn.00415cf4
test al, al
pop ecx
pop ecx
jne 0x415d52
push 1
jmp 0x415d38
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 0x415f9f
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
test edi, edi
push esi
jl 0x416031
jne 0x415fb4
push 0
jmp 0x41602b
mov al, byte [0x479bb5]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x41602a
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x41602a
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 [0x462760]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.004581c4
cmp eax, edi
jb 0x415fe1
jmp 0x416031
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
leave
ret
Function at 0x4230d5
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 0x423155
lea eax, [ebp - 0x224]
push 0x45d7f4
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x423143
lea eax, [ebp - 0x224]
push 0x4604d0
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x423143
push dword [ebp + 0x10]
lea eax, [ebp - 0x224]
push dword [ebp + 0xc]
push eax
call fcn.00414bd2
add esp, 0xc
test al, al
je 0x423169
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4230fc
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x14], 0
jne 0x423170
mov al, 1
jmp 0x423206
xor bl, bl
jmp 0x4231fd
lea eax, [ebp - 0x250]
push eax
push 0x4604d8
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x4231fb
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test byte [ebp - 0x250], 0x10
je 0x4231e9
lea eax, [ebp - 0x224]
push 0x45d7f4
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x4231e9
lea eax, [ebp - 0x224]
push 0x4604d0
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x4231e9
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.004230d5
test al, al
je 0x423169
push 0x4604d0
call esi
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42318b
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 0x424856
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 0x4249cc
push ebx
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x20c]
push str.___s
push eax
call fcn.004493ce
lea eax, [ebp - 0x20c]
push eax
call fcn.004493b8
add esp, 0x10
xor ebx, ebx
cmp word [ebp + eax*2 - 0x20e], 0x5c
jne 0x4248e4
lea eax, [ebp - 0x20c]
push eax
call fcn.004493b8
cmp word [ebp + eax*2 - 0x210], 0x3a
pop ecx
je 0x4248e4
lea eax, [ebp - 0x20c]
push eax
call fcn.004493b8
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 0x4248fb
cmp byte [ebp + 0x10], bl
je 0x4249cb
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 0x42492b
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
jmp 0x4249ca
push 0x14
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.00449660
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x824], 0xa0000003
call fcn.004493b8
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.004497d7
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 0x4249c1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42491b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x425639
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 0x42566a
xor al, al
jmp 0x425787
push edi
lea eax, [ebp - 0x22c]
push 0x45d7f4
push eax
call fcn.0044925f
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
pop ecx
pop ecx
je 0x4256c8
lea eax, [ebp - 0x22c]
push 0x4604d0
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x4256c8
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 0x4256ea
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42566b
push ebx
call edi
cmp byte [ebp + 0x14], 0
jne 0x4256f1
mov al, 1
jmp 0x425786
xor bl, bl
jmp 0x42577f
lea eax, [ebp - 0x258]
push eax
push 0x4604d8
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x42577d
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test byte [ebp - 0x258], 0x10
je 0x425769
lea eax, [ebp - 0x22c]
push 0x45d7f4
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x425769
mov ebx, 0x4604d0
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x425769
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.00425639
test al, al
je 0x4256ea
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 0x42570d
mov bl, 1
push dword [ebp - 4]
call edi
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x426292
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.00416bfe
lea edi, [ebp - 0xc]
lea esi, [ebp - 0x20]
call fcn.00416c4c
push 0x4604d8
or eax, 0xffffffff
lea ecx, [ebp - 0xc]
call fcn.00416ee1
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 0x4263f1
mov edi, dword [ebp + 0x10]
push ebx
mov esi, dword [ebp - 0x10]
call fcn.0042003a
cmp eax, 1
je 0x4263ec
cmp eax, 0xb
jne 0x42630a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4262ea
lea eax, [ebp - 0x244]
push 0x45d7f4
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x4263d2
lea eax, [ebp - 0x244]
push 0x4604d0
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x4263d2
lea ebx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.00416f37
lea eax, [ebp - 0x244]
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0xc]
call fcn.00416ee1
test byte [ebp - 0x270], 0x10
je 0x4263aa
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x426376
add dword [esi], 1
adc dword [esi + 4], ebx
cmp byte [ebp + 0x1c], bl
je 0x4263d2
push 0x45d09c
or eax, 0xffffffff
lea ecx, [ebp - 0xc]
call fcn.00416ee1
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.00426292
cmp al, bl
mov byte [ebp + 0xb], al
je 0x4263f0
jmp 0x4263d2
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 0x4263d2
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 0x4262ea
jmp 0x4263f0
mov byte [ebp + 0xb], 0
pop ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x20]
call fcn.00449078
push dword [ebp - 0xc]
call fcn.00449078
mov al, byte [ebp + 0xb]
pop ecx
pop ecx
pop edi
pop esi
leave
ret 0x18
Function at 0x42f602
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 0xc]
or eax, 0xffffffff
mov word [esi], 2
call fcn.004168a2
pop ecx
mov ebx, eax
push ebx
call sub.WSOCK32.dll_inet_addr
push ebx
mov edi, eax
call fcn.00449078
cmp edi, 0xffffffff
pop ecx
jne 0x42f635
xor ecx, ecx
push 0
inc ecx
jmp 0x42f65c
cmp dword [ebp + 0x10], 0
mov dword [esi + 4], edi
jle 0x42f657
cmp dword [ebp + 0x10], 0xffff
jg 0x42f657
push dword [ebp + 0x10]
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x42f666
push 0
push 2
pop ecx
mov eax, dword [ebp + 8]
call fcn.0042159c
xor al, al
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x430474
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.00416bde
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 0x4304c7
mov esi, 0x80004002
jmp 0x4305a5
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 0x430599
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.00416d00
lea eax, [ebp - 0x78]
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00416ee1
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
jne 0x430584
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 0x43057b
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.0044907d
test eax, eax
pop ecx
pop ecx
jne 0x43057b
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 0x430599
inc dword [ebp - 8]
mov dword [ebp - 4], 0x28
jmp 0x4304c7
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xc]
push dword [ebp - 0x20]
call fcn.00449078
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4305b5
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.00416bde
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 0x430753
push dword [ebp - 0xc]
call fcn.00416034
mov esi, eax
lea eax, [ebp - 0x20]
mov dword [esp], str.interface_
push eax
call fcn.00416d00
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00416ee1
push str.TypeLib
or eax, 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00416ee1
push esi
call fcn.00449078
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 0x430753
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 0x43074a
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.00416034
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.00449078
cmp esi, edi
pop ecx
jl 0x43074a
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 0x4306f5
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.004496c0
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.0044b9a0
add esp, 0x10
call fcn.004581c4
fld qword [ebp - 0x28]
push eax
call fcn.004581c4
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, edi
jl 0x43074a
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.00449078
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x430763
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.00416bde
lea ecx, [ebp - 0x18]
call fcn.00416bde
lea ecx, [ebp - 0x30]
call fcn.00416bde
push str.SOFTWAREClasses_
lea eax, [ebp - 0x24]
push eax
call fcn.00416d00
push dword [ebp + 8]
or edi, 0xffffffff
mov eax, edi
lea ecx, [ebp - 0x24]
call fcn.00416ee1
push str.CLSID
mov eax, edi
lea ecx, [ebp - 0x24]
call fcn.00416ee1
push 0x45c6d0
lea eax, [ebp - 0x18]
push eax
call fcn.00416d00
cmp ebx, esi
je 0x4307f6
cmp word [ebx], 0x5c
je 0x4307f6
cmp word [ebx + 2], 0x5c
je 0x4307f6
push 0x4610d8
lea eax, [ebp - 0x18]
push eax
call fcn.00416d00
push ebx
mov eax, edi
lea ecx, [ebp - 0x18]
call fcn.00416ee1
cmp dword [ebp + 0x10], esi
je 0x430847
push 0x20
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.00449660
add esp, 0xc
lea ebx, [ebp - 0x18]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], esi
call fcn.00416f37
push str.IPC_
mov eax, edi
lea ecx, [ebp - 0x30]
call fcn.00416ee1
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 0x4308e3
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 0x4308e3
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 0x4308de
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 0x4308d9
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.00416034
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.00449078
pop ecx
push dword [ebp - 8]
call ebx
push dword [ebp - 0xc]
call ebx
push dword [ebp - 0x30]
call fcn.00449078
push dword [ebp - 0x18]
call fcn.00449078
push dword [ebp - 0x24]
call fcn.00449078
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x436375
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x201c
call fcn.0044c070
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.00416bde
lea ecx, [ebp - 0x1c]
call fcn.00416bde
mov esi, dword [ebp + 8]
xor edi, edi
call fcn.004184a9
mov esi, eax
mov ax, word [esi]
test ax, ax
mov byte [ebp - 1], 0
je 0x4364b4
push ebx
mov ebx, 0x4617a8
inc edi
cmp ax, 0x25
jne 0x43646e
cmp word [esi + edi*2], ax
jne 0x4363db
push 0x25
lea eax, [ebp - 0x10]
mov byte [ebp - 1], 1
call fcn.00416d7e
inc edi
jmp 0x436477
push 0x45c6d0
lea eax, [ebp - 0x1c]
push eax
call fcn.00416d00
jmp 0x4363fa
test ax, ax
je 0x436406
push eax
lea eax, [ebp - 0x1c]
call fcn.00416d7e
inc edi
xor eax, eax
mov ax, word [esi + edi*2]
cmp ax, 0x25
jne 0x4363eb
cmp word [esi + edi*2], 0
je 0x436486
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 0x436447
lea eax, [ebp - 0x201c]
push eax
or eax, 0xffffffff
call fcn.00416ee1
mov byte [ebp - 1], 1
jmp 0x436477
push ebx
or eax, 0xffffffff
mov byte [ebp - 1], 1
call fcn.00416ee1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
call fcn.00416d3b
push ebx
or eax, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00416ee1
jmp 0x436477
push eax
lea eax, [ebp - 0x10]
call fcn.00416d7e
mov ax, word [esi + edi*2]
test ax, ax
jne 0x4363b6
jmp 0x4364a2
push ebx
or eax, 0xffffffff
lea ecx, [ebp - 0x10]
mov byte [ebp - 1], 1
call fcn.00416ee1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
call fcn.00416d3b
cmp byte [ebp - 1], 0
je 0x4364b3
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x10]
call fcn.00418b0c
pop ebx
push dword [ebp - 0x1c]
call fcn.00449078
push dword [ebp - 0x10]
call fcn.00449078
pop ecx
pop ecx
pop edi
pop esi
leave
ret 4