joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4156ef
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.0044985c
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
pop ecx
jne 0x41570b
and word [eax], 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x415784
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
jne 0x415733
push 0
push esi
call ebp
test eax, eax
je 0x415738
jmp 0x415788
cmp eax, 3
jne 0x415756
push esi
call fcn.004161b7
mov edi, eax
push 0x5c
push edi
call fcn.0044b5d7
add esp, 0xc
test eax, eax
jne 0x41575c
push edi
call fcn.0044951c
pop ecx
xor al, al
pop edi
pop esi
pop ebp
ret
and word [eax], 0
push ebx
push edi
call fcn.004156ef
push edi
mov bl, al
call fcn.0044951c
pop ecx
pop ecx
test bl, bl
je 0x41577f
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x415758
test al, 0x10
je 0x415756
mov al, 1
jmp 0x415758

Function at 0x41578c
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push dword [ebp + 8]
lea eax, [ebp - 0x438]
call fcn.00415029
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
call fcn.00415029
pop ecx
pop ecx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x415805
cmp byte [ebp + 0x10], al
je 0x415801
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.00449703
test eax, eax
pop ecx
pop ecx
je 0x4157fd
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
mov al, 1
leave
ret
xor al, al
leave
ret
lea eax, [ebp - 0x438]
push eax
call fcn.00415010
test al, al
pop ecx
je 0x415801
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.00415010
xor ebx, ebx
test al, al
pop ecx
je 0x415836
cmp byte [ebp + 0x10], bl
jne 0x415858
xor al, al
jmp 0x4158cf
lea eax, [ebp - 0x22c]
push eax
call fcn.004156ef
test al, al
pop ecx
je 0x41582f
lea eax, [ebp - 0x22c]
push eax
call fcn.00415010
pop ecx
test al, al
jmp 0x41582d
lea eax, [ebp - 0x438]
push 0x45d108
push eax
call fcn.004495ce
lea eax, [ebp - 0x438]
push eax
call fcn.0044985c
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
push eax
call fcn.0044985c
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x438]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x14], eax
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 2
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
leave
ret
Function at 0x4158d2
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
call fcn.00415029
push dword [ebp + 0xc]
lea eax, [ebp - 0x438]
call fcn.00415029
lea eax, [ebp - 0x22c]
push eax
call fcn.00415010
add esp, 0xc
test al, al
jne 0x41590c
leave
ret
lea eax, [ebp - 0x438]
push ebx
push eax
call fcn.00415010
xor ebx, ebx
test al, al
pop ecx
je 0x41597b
cmp byte [ebp + 0x10], bl
jne 0x41592c
xor al, al
jmp 0x415a2d
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x41597b
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00449703
test eax, eax
pop ecx
pop ecx
je 0x41597b
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
setne al
jmp 0x415a2d
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00415110
test al, al
pop ecx
pop ecx
je 0x4159c8
push 1
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0041578c
add esp, 0xc
test al, al
je 0x415925
lea eax, [ebp - 0x22c]
push 1
push eax
call fcn.00415a30
pop ecx
pop ecx
test al, al
jmp 0x415973
lea eax, [ebp - 0x22c]
push eax
call fcn.0044985c
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x438]
push eax
call fcn.0044985c
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x438]
mov dword [ebp - 0x14], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
leave
ret

Function at 0x415a30
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
call fcn.00415029
lea eax, [ebp - 0x22c]
push eax
call fcn.00415010
test al, al
pop ecx
pop ecx
jne 0x415a5b
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x22c]
push eax
jne 0x415a77
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x415aba
call fcn.0044985c
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 3
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
leave
ret
Function at 0x415ba5
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 0x415c65
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 0x415c65
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x415bff
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x415bf6
cmp esi, edx
jle 0x415c14
push str.0.0.0.0
push dword [ebp + 8]
call fcn.004495f8
pop ecx
pop ecx
jmp 0x415c5e
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 4]
push eax
call fcn.0044a6b0
add esp, 0xc
push dword [ebp - 4]
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0044a030
lea eax, [ebp - 0x104]
push eax
or eax, 0xffffffff
call fcn.004169d1
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.004495f8
push esi
call fcn.0044951c
add esp, 0x18
call sub.WSOCK32.dll_WSACleanup
jmp 0x415c74
push 0x45bfe0
push dword [ebp + 8]
call fcn.004495f8
pop ecx
pop ecx
pop esi
leave
ret

Function at 0x415db1
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 0x415e1a
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 0x415e16
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 0x415e1c
xor eax, eax
jmp 0x415e5c
xor esi, esi
cmp byte [0x479bb5], 0
je 0x415e39
test bl, 4
je 0x415e39
push esi
push 0x415e60
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x415e4d
cmp ebx, 0x40
je 0x415e4d
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x415e5c
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 0x415e9a
Capabilities:
Log keystrokes

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
test edi, edi
push esi
jl 0x4161b4
jne 0x416137
push 0
jmp 0x4161ae
mov al, byte [0x479bb5]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x4161ad
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x4161ad
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 [0x462070]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.00458664
cmp eax, edi
jb 0x416164
jmp 0x4161b4
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
leave
ret

Function at 0x423388
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 0x423408
lea eax, [ebp - 0x224]
push 0x45d104
push eax
call fcn.00449703
test eax, eax
pop ecx
pop ecx
je 0x4233f6
lea eax, [ebp - 0x224]
push 0x45fde0
push eax
call fcn.00449703
test eax, eax
pop ecx
pop ecx
je 0x4233f6
push dword [ebp + 0x10]
lea eax, [ebp - 0x224]
push dword [ebp + 0xc]
push eax
call fcn.00414d8d
add esp, 0xc
test al, al
je 0x42341c
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4233af
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [ebp + 0x14], 0
jne 0x423423
mov al, 1
jmp 0x4234b9
xor bl, bl
jmp 0x4234b0
lea eax, [ebp - 0x250]
push eax
push 0x45fde8
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x4234ae
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test byte [ebp - 0x250], 0x10
je 0x42349c
lea eax, [ebp - 0x224]
push 0x45d104
push eax
call fcn.00449703
test eax, eax
pop ecx
pop ecx
je 0x42349c
lea eax, [ebp - 0x224]
push 0x45fde0
push eax
call fcn.00449703
test eax, eax
pop ecx
pop ecx
je 0x42349c
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.00423388
test al, al
je 0x42341c
push 0x45fde0
call esi
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x42343e
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 0x424b0d
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 0x424c83
push ebx
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x20c]
push str.___s
push eax
call fcn.00449872
lea eax, [ebp - 0x20c]
push eax
call fcn.0044985c
add esp, 0x10
xor ebx, ebx
cmp word [ebp + eax*2 - 0x20e], 0x5c
jne 0x424b9b
lea eax, [ebp - 0x20c]
push eax
call fcn.0044985c
cmp word [ebp + eax*2 - 0x210], 0x3a
pop ecx
je 0x424b9b
lea eax, [ebp - 0x20c]
push eax
call fcn.0044985c
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 0x424bb2
cmp byte [ebp + 0x10], bl
je 0x424c82
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 0x424be2
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
xor eax, eax
jmp 0x424c81
push 0x14
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.00449b00
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x824], 0xa0000003
call fcn.0044985c
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.00449c77
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 0x424c78
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x424bd2
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x4258f8
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 0x425929
xor al, al
jmp 0x425a46
push edi
lea eax, [ebp - 0x22c]
push 0x45d104
push eax
call fcn.00449703
test eax, eax
mov edi, dword [sym.imp.KERNEL32.DLL_FindClose]
pop ecx
pop ecx
je 0x425987
lea eax, [ebp - 0x22c]
push 0x45fde0
push eax
call fcn.00449703
test eax, eax
pop ecx
pop ecx
je 0x425987
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 0x4259a9
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x42592a
push ebx
call edi
cmp byte [ebp + 0x14], 0
jne 0x4259b0
mov al, 1
jmp 0x425a45
xor bl, bl
jmp 0x425a3e
lea eax, [ebp - 0x258]
push eax
push 0x45fde8
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x425a3c
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test byte [ebp - 0x258], 0x10
je 0x425a28
lea eax, [ebp - 0x22c]
push 0x45d104
push eax
call fcn.00449703
test eax, eax
pop ecx
pop ecx
je 0x425a28
mov ebx, 0x45fde0
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.00449703
test eax, eax
pop ecx
pop ecx
je 0x425a28
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.004258f8
test al, al
je 0x4259a9
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 0x4259cc
mov bl, 1
push dword [ebp - 4]
call edi
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x42655f
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.00416d81
lea edi, [ebp - 0xc]
lea esi, [ebp - 0x20]
call fcn.00416dcf
push 0x45fde8
or eax, 0xffffffff
lea ecx, [ebp - 0xc]
call fcn.00417064
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 0x4266be
mov edi, dword [ebp + 0x10]
push ebx
mov esi, dword [ebp - 0x10]
call fcn.00420336
cmp eax, 1
je 0x4266b9
cmp eax, 0xb
jne 0x4265d7
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x4265b7
lea eax, [ebp - 0x244]
push 0x45d104
push eax
call fcn.00449703
test eax, eax
pop ecx
pop ecx
je 0x42669f
lea eax, [ebp - 0x244]
push 0x45fde0
push eax
call fcn.00449703
test eax, eax
pop ecx
pop ecx
je 0x42669f
lea ebx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.004170ba
lea eax, [ebp - 0x244]
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0xc]
call fcn.00417064
test byte [ebp - 0x270], 0x10
je 0x426677
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x426643
add dword [esi], 1
adc dword [esi + 4], ebx
cmp byte [ebp + 0x1c], bl
je 0x42669f
push 0x45c9ac
or eax, 0xffffffff
lea ecx, [ebp - 0xc]
call fcn.00417064
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.0042655f
cmp al, bl
mov byte [ebp + 0xb], al
je 0x4266bd
jmp 0x42669f
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 0x42669f
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 0x4265b7
jmp 0x4266bd
mov byte [ebp + 0xb], 0
pop ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp - 0x20]
call fcn.0044951c
push dword [ebp - 0xc]
call fcn.0044951c
mov al, byte [ebp + 0xb]
pop ecx
pop ecx
pop edi
pop esi
leave
ret 0x18
Function at 0x42f973
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.00416a25
pop ecx
mov ebx, eax
push ebx
call sub.WSOCK32.dll_inet_addr
push ebx
mov edi, eax
call fcn.0044951c
cmp edi, 0xffffffff
pop ecx
jne 0x42f9a6
xor ecx, ecx
push 0
inc ecx
jmp 0x42f9cd
cmp dword [ebp + 0x10], 0
mov dword [esi + 4], edi
jle 0x42f9c8
cmp dword [ebp + 0x10], 0xffff
jg 0x42f9c8
push dword [ebp + 0x10]
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x42f9d7
push 0
push 2
pop ecx
mov eax, dword [ebp + 8]
call fcn.00421898
xor al, al
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x43081f
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.00416d61
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 0x430872
mov esi, 0x80004002
jmp 0x430950
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 0x430944
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.00416e83
lea eax, [ebp - 0x78]
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00417064
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
jne 0x43092f
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 0x430926
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.00449521
test eax, eax
pop ecx
pop ecx
jne 0x430926
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 0x430944
inc dword [ebp - 8]
mov dword [ebp - 4], 0x28
jmp 0x430872
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xc]
push dword [ebp - 0x20]
call fcn.0044951c
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x430960
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.00416d61
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 0x430afe
push dword [ebp - 0xc]
call fcn.004161b7
mov esi, eax
lea eax, [ebp - 0x20]
mov dword [esp], str.interface_
push eax
call fcn.00416e83
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00417064
push str.TypeLib
or eax, 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00417064
push esi
call fcn.0044951c
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 0x430afe
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 0x430af5
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.004161b7
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.0044951c
cmp esi, edi
pop ecx
jl 0x430af5
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 0x430aa0
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.00449b60
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.0044be40
add esp, 0x10
call fcn.00458664
fld qword [ebp - 0x28]
push eax
call fcn.00458664
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, edi
jl 0x430af5
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.0044951c
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret