joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411d2d
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push dword [ebp + 8]
lea eax, [ebp - 0x128]
call fcn.00411504
push dword [ebp + 0xc]
lea eax, [ebp - 0x230]
call fcn.00411504
lea eax, [ebp - 0x128]
push eax
call fcn.004114eb
add esp, 0xc
test al, al
jne 0x411d67
leave
ret
lea eax, [ebp - 0x230]
push ebx
push eax
call fcn.004114eb
xor ebx, ebx
test al, al
pop ecx
je 0x411d87
cmp byte [ebp + 0x10], bl
jne 0x411d87
xor al, al
jmp 0x411e36
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.004115f0
test al, al
pop ecx
pop ecx
je 0x411dd3
push 1
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00411c19
add esp, 0xc
test al, al
je 0x411d80
lea eax, [ebp - 0x128]
push 1
push eax
call fcn.00411e39
pop ecx
test al, al
pop ecx
setne al
jmp 0x411e36
lea eax, [ebp - 0x128]
push eax
call fcn.00446710
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x230]
push eax
call fcn.00446710
mov byte [ebp + eax - 0x22f], bl
lea eax, [ebp - 0x128]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x230]
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_SHFileOperationA]
neg eax
sbb al, al
inc al
pop ebx
leave
ret

Function at 0x411e39
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push dword [ebp + 8]
lea eax, [ebp - 0x128]
call fcn.00411504
lea eax, [ebp - 0x128]
push eax
call fcn.004114eb
test al, al
pop ecx
pop ecx
jne 0x411e64
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x128]
push eax
jne 0x411e80
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
setne al
jmp 0x411ec2
call fcn.00446710
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x128]
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_SHFileOperationA]
neg eax
sbb al, al
inc al
pop ebx
leave
ret
Function at 0x411fa4
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
lea eax, [ebp - 0x294]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x41202e
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 0x41202e
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x411ff7
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x411fee
cmp esi, edx
jle 0x412002
push str.0.0.0.0
jmp 0x41201d
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 4]
push eax
call fcn.004473d0
add esp, 0xc
push dword [ebp - 4]
call sub.WSOCK32.dll_inet_ntoa
push eax
push dword [ebp + 8]
call fcn.00446290
pop ecx
pop ecx
call sub.WSOCK32.dll_WSACleanup
leave
ret
push 0x459596
push dword [ebp + 8]
call fcn.00446290
pop ecx
pop ecx
leave
ret

Function at 0x4121c2
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x46dfd4], 0
push ebx
push esi
mov ebx, eax
je 0x41222b
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 0x412227
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
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 0x41222d
xor eax, eax
jmp 0x41226d
xor esi, esi
cmp byte [0x46dfd5], 0
je 0x41224a
test bl, 4
je 0x41224a
push esi
push 0x412271
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x41225e
cmp ebx, 0x40
je 0x41225e
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x41226d
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 0x412371
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x412390
push 0x1388
push dword [esp + 8]
call fcn.0041234e
test al, al
pop ecx
pop ecx
jne 0x4123ac
push 1
jmp 0x412392
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 0x412662
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
test edi, edi
push esi
jl 0x4126f4
jne 0x412677
push 0
jmp 0x4126ee
mov al, byte [0x46dfd5]
neg al
sbb eax, eax
and eax, 0x2d
add eax, 0xa
cmp edi, eax
jae 0x4126ed
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x4126ed
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 [0x45cb08]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.004541b8
cmp eax, edi
jb 0x4126a4
jmp 0x4126f4
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
push edi
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x41f5fe
lea eax, [ebp - 0x114]
push 0x459e54
push eax
call fcn.004464e0
test eax, eax
pop ecx
pop ecx
je 0x41f5ec
lea eax, [ebp - 0x114]
push 0x45b6c8
push eax
call fcn.004464e0
test eax, eax
pop ecx
pop ecx
je 0x41f5ec
push dword [ebp + 0x10]
lea eax, [ebp - 0x114]
push dword [ebp + 0xc]
push eax
call fcn.00411286
add esp, 0xc
test al, al
je 0x41f612
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x41f5a5
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [ebp + 0x14], 0
jne 0x41f619
mov al, 1
jmp 0x41f6af
xor bl, bl
jmp 0x41f6a6
lea eax, [ebp - 0x140]
push eax
push 0x45b6cc
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x41f6a4
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
test byte [ebp - 0x140], 0x10
je 0x41f692
lea eax, [ebp - 0x114]
push 0x459e54
push eax
call fcn.004464e0
test eax, eax
pop ecx
pop ecx
je 0x41f692
lea eax, [ebp - 0x114]
push 0x45b6c8
push eax
call fcn.004464e0
test eax, eax
pop ecx
pop ecx
je 0x41f692
lea eax, [ebp - 0x114]
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.0041f57e
test al, al
je 0x41f612
push 0x45b6c8
call esi
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x41f634
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 0x420ddb
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x518
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x518]
push eax
mov esi, 0x104
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
test eax, eax
je 0x420f53
push ebx
push edi
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x108]
push str.___s
push eax
call fcn.00447369
lea eax, [ebp - 0x108]
lea edi, [ebp - 0x108]
push eax
dec edi
call fcn.00446710
add esp, 0x10
xor ebx, ebx
cmp byte [eax + edi], 0x5c
jne 0x420e6a
lea eax, [ebp - 0x108]
push eax
call fcn.00446710
pop ecx
lea ecx, [ebp - 0x108]
dec ecx
dec ecx
cmp byte [eax + ecx], 0x3a
je 0x420e6a
lea eax, [ebp - 0x108]
push eax
call fcn.00446710
pop ecx
mov byte [eax + edi], bl
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
jne 0x420e81
cmp byte [ebp + 0x10], bl
je 0x420f44
push ebx
push 0x2200000
push 3
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x420f3b
push 0x14
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004466a0
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x414], 0xa0000003
call fcn.00446710
shl eax, 1
mov word [ebp - 0x40a], ax
mov eax, dword [ebp - 0x40a]
add esp, 0x10
add eax, 2
push esi
mov word [ebp - 0x408], ax
lea eax, [ebp - 0x404]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [ebp - 0x40a]
push ebx
add eax, 0xc
mov word [ebp - 0x410], ax
lea ecx, [ebp - 4]
push ecx
push ebx
movzx eax, ax
push ebx
add eax, 8
push eax
lea eax, [ebp - 0x414]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
push edi
jne 0x420f48
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
xor eax, eax
jmp 0x420f51
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x421ba6
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x148
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
lea eax, [ebp - 0xe0]
push eax
push dword [ebp + 0x70]
mov dword [ebp + 0x60], ecx
call esi
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp + 0x64], ebx
jne 0x421bd9
xor al, al
jmp 0x421cf6
push edi
lea eax, [ebp - 0xb4]
push 0x459e54
push eax
call fcn.004464e0
test eax, eax
mov edi, dword [sym.imp.KERNEL32.DLL_FindClose]
pop ecx
pop ecx
je 0x421c37
lea eax, [ebp - 0xb4]
push 0x45b6c8
push eax
call fcn.004464e0
test eax, eax
pop ecx
pop ecx
je 0x421c37
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
or eax, dword [ebp + 0x74]
mov ecx, dword [ebp + 0x78]
not ecx
and eax, ecx
push eax
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test eax, eax
je 0x421c59
lea eax, [ebp - 0xe0]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x421bda
push ebx
call edi
cmp byte [ebp + 0x7c], 0
jne 0x421c60
mov al, 1
jmp 0x421cf5
xor bl, bl
jmp 0x421cee
lea eax, [ebp - 0xe0]
push eax
push 0x45b6cc
call esi
cmp eax, 0xffffffff
mov dword [ebp + 0x64], eax
je 0x421cec
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
test byte [ebp - 0xe0], 0x10
je 0x421cd8
lea eax, [ebp - 0xb4]
push 0x459e54
push eax
call fcn.004464e0
test eax, eax
pop ecx
pop ecx
je 0x421cd8
mov ebx, 0x45b6c8
lea eax, [ebp - 0xb4]
push ebx
push eax
call fcn.004464e0
test eax, eax
pop ecx
pop ecx
je 0x421cd8
lea eax, [ebp - 0xb4]
push eax
call esi
push dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x60]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
push dword [ebp + 0x70]
call fcn.00421ba6
test al, al
je 0x421c59
push ebx
call esi
lea eax, [ebp - 0xe0]
push eax
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x421c7c
mov bl, 1
push dword [ebp + 0x64]
call edi
mov al, bl
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10
Function at 0x4227ca
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x454f74
call fcn.00454198
sub esp, 0x160
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
call fcn.00413004
and dword [ebp - 4], 0
lea edi, [ebp - 0x18]
lea esi, [ebp - 0x2c]
call fcn.00413054
push 0x45b6cc
or eax, 0xffffffff
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041332a
lea eax, [ebp - 0x16c]
push eax
push dword [ebp - 0x18]
mov byte [ebp + 0xb], 1
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x422938
mov edi, dword [ebp + 0x10]
push ebx
mov esi, dword [ebp - 0x1c]
call fcn.0041c497
cmp eax, 1
je 0x422933
cmp eax, 0xb
jne 0x422851
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x422831
lea eax, [ebp - 0x140]
push 0x459e54
push eax
call fcn.004464e0
test eax, eax
pop ecx
pop ecx
je 0x422919
lea eax, [ebp - 0x140]
push 0x45b6c8
push eax
call fcn.004464e0
test eax, eax
pop ecx
pop ecx
je 0x422919
lea ebx, [ebp - 0x2c]
lea eax, [ebp - 0x18]
call fcn.00413379
lea eax, [ebp - 0x140]
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041332a
test byte [ebp - 0x16c], 0x10
je 0x4228f1
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x4228bd
add dword [esi], 1
adc dword [esi + 4], ebx
cmp byte [ebp + 0x1c], bl
je 0x422919
push 0x4598b8
or eax, 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041332a
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x1c]
push dword [ebp + 0x18]
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call fcn.004227ca
cmp al, bl
mov byte [ebp + 0xb], al
je 0x422937
jmp 0x422919
mov eax, dword [ebp - 0x14c]
mov edx, dword [ebp - 0x150]
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 0x422919
add dword [edi], 1
adc dword [edi + 4], esi
lea eax, [ebp - 0x16c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x422831
jmp 0x422937
mov byte [ebp + 0xb], 0
pop ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov byte [ebp - 4], 0
push dword [ebp - 0x2c]
call fcn.0044627e
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.0044627e
mov al, byte [ebp + 0xb]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x42bb91
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
mov word [esi], 2
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x42bbad
xor eax, eax
push 0
inc eax
jmp 0x42bbd4
cmp dword [ebp + 0x10], 0
mov dword [esi + 4], eax
jle 0x42bbcf
cmp dword [ebp + 0x10], 0xffff
jg 0x42bbcf
push dword [ebp + 0x10]
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x42bbde
push 0
push 2
pop eax
mov ecx, dword [ebp + 8]
call fcn.0041da9c
xor al, al
pop ebp
ret 0xc
Function at 0x42ccf1
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
mov eax, 0x454f48
call fcn.00454198
sub esp, 0x154
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call fcn.00412fe7
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00412fe7
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00412fe7
push str.SOFTWAREClasses_
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x18], 0xff
call fcn.0041311f
push dword [ebp + 8]
or edi, 0xffffffff
mov eax, edi
lea ecx, [ebp - 0x30]
call fcn.0041332a
push str.CLSID
mov eax, edi
lea ecx, [ebp - 0x30]
call fcn.0041332a
push 0x459596
lea eax, [ebp - 0x24]
push eax
call fcn.0041311f
cmp esi, ebx
je 0x42cd9b
cmp byte [esi], 0x5c
je 0x42cd9b
cmp byte [esi + 1], 0x5c
je 0x42cd9b
push 0x45bdfc
lea eax, [ebp - 0x24]
push eax
call fcn.0041311f
push esi
mov eax, edi
lea ecx, [ebp - 0x24]
call fcn.0041332a
cmp dword [ebp + 0x10], ebx
je 0x42cdef
push 0x20
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.004466a0
mov dword [ebp - 0x58], ebx
add esp, 0xc
lea ebx, [ebp - 0x24]
lea eax, [ebp - 0x3c]
call fcn.00413379
push str.IPC_
mov eax, edi
lea ecx, [ebp - 0x3c]
call fcn.0041332a
mov eax, dword [ebp - 0x3c]
push 0
push dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x5c]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
xor ebx, ebx
test esi, esi
jne 0x42ce80
lea eax, [ebp - 0x10]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
mov esi, eax
cmp esi, ebx
jne 0x42ce80
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x42ce77
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x160]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, ebx
jne 0x42ce6e
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x160], bl
lea eax, [ebp - 0x160]
push ebx
push eax
call fcn.00412a20
pop ecx
pop ecx
push dword [ebp + 0xc]
mov edi, eax
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push edi
mov esi, eax
call fcn.0044627e
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
push dword [ebp - 0x3c]
call fcn.0044627e
mov byte [ebp - 4], bl
push dword [ebp - 0x24]
call fcn.0044627e
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x30]
call fcn.0044627e
mov ecx, dword [ebp - 0xc]
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4390db
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edi
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], 0xff
call esi
mov edi, 0x103
jmp 0x439190
xor eax, eax
cmp byte [0x46dfe8], bl
je 0x439124
mov eax, 0x100
lea ecx, [ebp - 0xc]
push ecx
or eax, 0x20019
push eax
push ebx
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x439198
push dword [ebp - 0xc]
call fcn.004390db
pop ecx
push dword [ebp - 0xc]
mov byte [ebp - 1], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 1], bl
je 0x439198
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x439198
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], 0xff
call esi
cmp eax, edi
jne 0x439115
mov al, 1
jmp 0x43919a
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x439bfa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x439c82
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileType]
cmp eax, 1
jne 0x439c82
mov esi, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push eax
xor ebx, ebx
push ebx
push ebx
push edi
call esi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
je 0x439c56
cmp dword [ebp + 0x10], ebx
jbe 0x439c56
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x439c4e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
jmp 0x439c84
push ebx
push ebx
push dword [ebp - 4]
push edi
call esi
cmp dword [ebp + 0x18], ebx
je 0x439c76
push 2
push ebx
push ebx
push edi
call esi
push ebx
push ebx
push dword [ebp - 4]
mov edi, eax
push dword [ebp + 8]
call esi
sub edi, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
inc eax
jmp 0x439c8c
push 6
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43c2d7
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x45545f
call fcn.00454198
sub esp, 0xc
mov al, byte [ebp + 8]
push esi
mov esi, edi
mov byte [edi + 0x806], al
call fcn.0043c271
cmp dword [edi + 0x7a8], 7
jne 0x43c339
lea esi, [edi + 0x7a0]
mov eax, esi
call fcn.00414bd6
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43c332
mov eax, esi
call fcn.00414bd6
push eax
mov esi, edi
mov dword [edi + 0x7ec], eax
call fcn.0043c2a3
mov al, 1
jmp 0x43c4df
xor al, al
jmp 0x43c4df
push ebx
push dword [edi + 0x7f0]
call fcn.00446700
cmp eax, 4
pop ecx
lea esi, [edi + 0x7a0]
jne 0x43c477
call fcn.004149d4
cmp byte [eax], 0
je 0x43c468
push str.last
call fcn.004149d4
push eax
call fcn.004485be
test eax, eax
pop ecx
pop ecx
je 0x43c468
push str.active
call fcn.004149d4
push eax
call fcn.004485be
test eax, eax
pop ecx
pop ecx
jne 0x43c3ae
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [edi + 0x7ec], eax
push eax
mov esi, edi
call fcn.0043c2a3
mov al, 1
jmp 0x43c4de
push 7
push str.handle
call fcn.004149d4
push eax
call fcn.00452a7a
add esp, 0xc
test eax, eax
jne 0x43c3dd
push str.Use_directly_Windows_handle
push 0xb8
mov ebx, edi
call fcn.0041c13a
jmp 0x43c4dc
push 7
push str.regexp
call fcn.004149d4
push eax
call fcn.00452a7a
add esp, 0xc
test eax, eax
jne 0x43c495
lea ebx, [edi + 0x7d0]
mov esi, ebx
call fcn.0040c6ad
lea esi, [edi + 0x7a0]
call fcn.004149d4
add eax, 7
push eax
lea esi, [ebp - 0x18]
call fcn.00413004
lea eax, [ebp - 0x18]
push eax
xor esi, esi
mov eax, ebx
mov dword [ebp - 4], esi
call fcn.0040c6e1
test eax, eax
setne bl
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.0044627e
test bl, bl
pop ecx
je 0x43c497
xor eax, eax
push esi
inc eax
mov ecx, edi
call fcn.0041da9c
push esi
lea esi, [edi + 0x108]
call fcn.00415029
and dword [edi + 0x58], 0
mov byte [edi + 0x120], 1
jmp 0x43c4dc
mov eax, dword [edi + 0x7ec]
test eax, eax
je 0x43c4dc
jmp 0x43c39f
call fcn.004149d4
cmp byte [eax], 0
jne 0x43c495
lea esi, [edi + 0x7b8]
call fcn.004149d4
cmp byte [eax], 0
je 0x43c393
xor esi, esi
cmp byte [edi + 0x805], 0
push edi
push 0x43c4ee
jne 0x43c4ae
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x43c4bb
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_EnumChildWindows]
cmp dword [edi + 0x800], esi
je 0x43c4d6
mov eax, dword [edi + 0x7f8]
mov eax, dword [eax]
mov dword [edi + 0x7ec], eax
jmp 0x43c3a7
mov dword [edi + 0x7ec], esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4