joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4112c6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x4112e6
xor al, al
jmp 0x411479
push ebx
push edi
push esi
call fcn.00446648
pop ecx
push eax
push esi
push 0
push dword [ebp + 8]
mov dword [ebp - 4], eax
call sub.VERSION.dll_GetFileVersionInfoA
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.004466d0
add eax, 0x1a
push eax
call fcn.00446648
mov esi, 0x4598b8
mov edi, eax
push esi
push edi
call fcn.00446250
push esi
push ebx
call fcn.004464a0
add esp, 0x18
test eax, eax
je 0x4113b0
push str.StringFileInfo_
push edi
call fcn.00446260
push esi
push ebx
call fcn.00447a50
add esp, 0x10
test eax, eax
jne 0x4113a7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x411387
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
push ebx
push 4
lea edx, [edi + 0x10]
pop ecx
call fcn.004122f3
shr ebx, 0x10
lea edx, [edi + 0x14]
push ebx
call fcn.004122f3
mov ebx, dword [ebp + 0x10]
add esp, 8
jmp 0x411394
push str.04090000
push edi
call fcn.00446260
pop ecx
pop ecx
push esi
push edi
call fcn.00446260
push ebx
push edi
call fcn.00446260
add esp, 0x10
jmp 0x4113b0
push ebx
push edi
call fcn.00446260
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.0044857e
test eax, eax
pop ecx
pop ecx
jne 0x4113ec
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x10]
push eax
push esi
call fcn.004467e0
push dword [ebp - 4]
mov byte [esi + 8], 0
call fcn.0044624a
push edi
call fcn.0044624a
add esp, 0x14
mov al, 1
jmp 0x411477
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x411465
push esi
push ebx
call fcn.004464a0
test eax, eax
pop ecx
pop ecx
jne 0x411440
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov esi, ecx
mov edx, 0xffff
and esi, edx
push esi
shr ecx, 0x10
push ecx
mov ecx, eax
and ecx, edx
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
push dword [ebp + 0xc]
call fcn.00447329
add esp, 0x18
jmp 0x411453
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.004467e0
add esp, 0xc
push dword [ebp - 4]
call fcn.0044624a
push edi
call fcn.0044624a
mov al, 1
jmp 0x411475
push dword [ebp - 4]
call fcn.0044624a
push edi
call fcn.0044624a
xor al, al
pop ecx
pop ecx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x411491
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4114ce
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
jne 0x4114ba
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4114c1
or eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [ebp - 0x140]
leave
ret
Function at 0x4114d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4114e6
test al, 0x10
je 0x4114e6
mov al, 1
ret
xor al, al
ret

Function at 0x411678
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
mov byte [ebp - 1], 0
call fcn.004114e9
lea eax, [ebp - 0x10c]
push eax
call fcn.004114d0
test al, al
pop ecx
pop ecx
je 0x4116b8
lea eax, [ebp - 0x10c]
push str..
push eax
call fcn.00446260
pop ecx
pop ecx
push ebx
push esi
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x564]
push eax
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00446e39
add esp, 0x14
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov bl, 1
je 0x41177b
cmp bl, 1
jne 0x41177b
test byte [ebp - 0x24c], 0x10
jne 0x411761
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp - 1], bl
call fcn.00446250
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00446260
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00446260
add esp, 0x18
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp eax, 1
jne 0x411777
lea eax, [ebp - 0x24c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x411702
xor bl, bl
jmp 0x411702
xor bl, bl
jmp 0x41177e
mov bl, byte [ebp - 1]
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x411b65
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.004466d0
dec eax
add eax, esi
cmp byte [eax], 0x5c
pop ecx
jne 0x411b7e
mov byte [eax], 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x411bf6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
jne 0x411ba6
push 0
push esi
call ebp
test eax, eax
je 0x411bab
jmp 0x411bfa
cmp eax, 3
jne 0x411bc9
push esi
call fcn.00412798
mov edi, eax
push 0x5c
push edi
call fcn.00447bb0
add esp, 0xc
test eax, eax
jne 0x411bcf
push edi
call fcn.0044624a
pop ecx
xor al, al
pop edi
pop esi
pop ebp
ret
push ebx
push edi
mov byte [eax], 0
call fcn.00411b65
push edi
mov bl, al
call fcn.0044624a
pop ecx
pop ecx
test bl, bl
je 0x411bf1
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x411bcb
test al, 0x10
je 0x411bc9
mov al, 1
jmp 0x411bcb
Function at 0x411bfe
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push dword [ebp + 8]
lea eax, [ebp - 0x230]
call fcn.004114e9
push dword [ebp + 0xc]
lea eax, [ebp - 0x128]
call fcn.004114e9
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x100230]
push eax
call fcn.004464a0
add esp, 0x10
test eax, eax
jne 0x411c45
cmp byte [ebp + 0x10], al
setne al
leave
ret
lea eax, [ebp - 0x230]
push eax
call fcn.004114d0
test al, al
pop ecx
jne 0x411c58
leave
ret
lea eax, [ebp - 0x128]
push ebx
push eax
call fcn.004114d0
xor ebx, ebx
test al, al
pop ecx
je 0x411c78
cmp byte [ebp + 0x10], bl
je 0x411c9a
xor al, al
jmp 0x411d0f
lea eax, [ebp - 0x128]
push eax
call fcn.00411b65
test al, al
pop ecx
je 0x411c71
lea eax, [ebp - 0x8000128]
push eax
call fcn.004114d0
pop ecx
test al, al
jmp 0x411c6f
lea eax, [ebp - 0x230]
push str..
push eax
call fcn.00446260
lea eax, [ebp - 0x230]
push eax
call fcn.004466d0
mov byte [ebp + eax - 0x22f], bl
lea eax, [ebp - 0x128]
push eax
call fcn.004466d0
or byte [ebp + eax - 0x137], bl
lea eax, [ebp - 0x230]
mov dword [ebp - 0x20], eax
test dword [ebp - 0x128], eax
mov dword [ebp - 0x14], eax
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x2a], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 2
mov word [ebp + 0x70], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb al, al
inc al
pop ebx
leave
ret

Function at 0x411d12
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push dword [ebp + 8]
lea eax, [ebp - 0x128]
call fcn.004114e9
push dword [ebp + 0xc]
lea eax, [ebp - 0x230]
call fcn.004114e9
lea eax, [ebp - 0x128]
push eax
call fcn.004114d0
add esp, 0xc
test al, al
jne 0x411d4c
leave
ret
lea eax, [ebp - 0x230]
push ebx
push eax
call fcn.004114b0
xor ebx, ebx
test al, al
pop ecx
je 0x411d6c
cmp byte [ebp + 0x10], bl
jne 0x411d6c
xor al, al
jmp 0x411e1b
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.004115d5
test al, al
pop ecx
pop ecx
je 0x411db8
push 1
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00411bfe
add esp, 0xc
test al, al
je 0x411d65
lea eax, [ebp - 0x128]
push 1
push eax
call fcn.00411e1e
pop ecx
test al, al
pop ecx
sete al
retf
lea eax, [ebp - 0x128]
push eax
call fcn.004466d0
mov byte [ebp + eax - 0x127], bl
or eax, 0xfffdd085
call dword [eax - 0x18]
stc
dec eax
add eax, dword [eax]
mov byte [ebp + eax - 0x22f], bl
lea eax, [ebp - 0x528]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x10000230]
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 0x411e1e
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push dword [ebp + 8]
lea eax, [ebp - 0x128]
call fcn.004114e9
lea eax, [ebp - 0x128]
push eax
call fcn.004114d0
test al, al
pop ecx
pop ecx
jne 0x411e49
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x128]
push eax
jne 0x411e65
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
setne al
jmp 0x411ea7
call fcn.004466d0
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 0x411f89
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 0x412013
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 0x412013
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x411fdc
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x411fd3
cmp esi, edx
jle 0x411fe7
push str.0.0.0.0
jmp 0x412002
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 4]
push eax
call fcn.00447390
add esp, 0xc
push dword [ebp - 4]
call sub.WSOCK32.dll_inet_ntoa
push eax
push dword [ebp + 8]
call fcn.00446250
pop ecx
pop ecx
call sub.WSOCK32.dll_WSACleanup
leave
ret
push 0x459596
push dword [ebp + 8]
call fcn.00446250
pop ecx
pop ecx
leave
ret

Function at 0x4121a7
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 0x412210
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 0x41220c
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 0x412212
xor eax, eax
jmp 0x412252
xor esi, esi
cmp byte [0x46dfd5], 0
je 0x41222f
test bl, 4
je 0x41222f
push esi
push 0x412256
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x412243
cmp ebx, 0x40
je 0x412243
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x412252
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 0x4123c0
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x4123df
push 0x1388
push dword [esp + 8]
call fcn.0041239d
test al, al
pop ecx
pop ecx
jne 0x4123fb
push 1
jmp 0x4123e1
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 0x4126b1
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
test edi, edi
push esi
jl 0x412743
jne 0x4126c6
push 0
jmp 0x41273d
mov al, byte [0x46dfd5]
neg al
sbb eax, eax
and eax, 0x2d
add eax, 0xa
cmp edi, eax
jae 0x41273c
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x41273c
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 [0x45cb10]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.00454178
cmp eax, edi
jb 0x4126f3
jmp 0x412743
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
leave
ret
Function at 0x41f55d
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 0x41f5dd
lea eax, [ebp - 0x114]
push 0x459e54
push eax
call fcn.004464a0
test eax, eax
pop ecx
pop ecx
je 0x41f5cb
lea eax, [ebp - 0x114]
push 0x45b6d0
push eax
call fcn.004464a0
test eax, eax
pop ecx
pop ecx
je 0x41f5cb
push dword [ebp + 0x10]
lea eax, [ebp - 0x114]
push dword [ebp + 0xc]
push eax
call fcn.00411252
add esp, 0xc
test al, al
je 0x41f5f1
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x41f584
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [ebp + 0x14], 0
jne 0x41f5f8
mov al, 1
jmp 0x41f68e
xor bl, bl
jmp 0x41f685
lea eax, [ebp - 0x140]
push eax
push 0x45b6d4
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x41f683
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
test byte [ebp - 0x140], 0x10
je 0x41f671
lea eax, [ebp - 0x114]
push 0x459e54
push eax
call fcn.004464a0
test eax, eax
pop ecx
pop ecx
je 0x41f671
lea eax, [ebp - 0x114]
push 0x45b6d0
push eax
call fcn.004464a0
test eax, eax
pop ecx
pop ecx
je 0x41f671
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.0041f55d
test al, al
je 0x41f5f1
push 0x45b6d0
call esi
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x41f613
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 0x4227a9
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x454f34
call fcn.00454158
sub esp, 0x160
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
call fcn.00413053
and dword [ebp - 4], 0
lea edi, [ebp - 0x18]
lea esi, [ebp - 0x2c]
call fcn.004130a3
push 0x45b6d4
or eax, 0xffffffff
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00413379
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 0x422917
mov edi, dword [ebp + 0x10]
push ebx
mov esi, dword [ebp - 0x3c]
call fcn.0041c476
cmp eax, 1
je 0x422912
cmp eax, 3
jne 0x422830
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x422810
lea eax, [ebp - 0x140]
push 0x459e54
push eax
call fcn.004464a0
test eax, eax
pop ecx
pop ecx
je 0x4228f8
lea eax, [ebp - 0x140]
push 0x45b6d0
push eax
call fcn.004464a0
test eax, eax
pop ecx
pop ecx
je 0x4228f8
lea ebx, [ebp - 0x2c]
lea eax, [ebp - 0x18]
call fcn.004133c8
or eax, 0xfffec085
call dword [eax - 0x7d]
enter 0xffffffffffff8dff, 0x4d
call 0xff4d0f6a
push esi
test dword [esi + edi*8 + 0x7410ffff], edx
inc esp
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x42289c
add dword [esi], 1
adc dword [esi + 4], ebx
cmp byte [ebp + 0x1c], bl
je 0x4228f8
dec eax
mov eax, 0x83000598
enter 0xffffffffffff8dff, 0x4d
call 0xff4cf198
invalid
lea eax, [ebp - 0x16c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test dword [eax + 0xf], eax
test dword [eax], eax
invalid
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.0044624a
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.0044624a
mov byte [ebp + 0xb], al
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x42cccb
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
mov eax, 0x454f08
call fcn.00454158
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.00413036
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00413036
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00413036
push str.SOFTWAREClasses_
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x18], 0xff
call fcn.0041316e
push dword [ebp + 8]
or edi, 0xffffffff
mov eax, edi
lea ecx, [ebp - 0x30]
call fcn.00413379
push str.CLSID
mov eax, edi
lea ecx, [ebp - 0x30]
call fcn.00413379
push 0x459596
lea eax, [ebp - 0x24]
push eax
call fcn.0041316e
cmp esi, ebx
je 0x42cd64
cmp byte [esi], 0x5c
je 0x42cd64
cmp byte [esi + 1], 0x5c
je 0x42cd64
push 0x45be04
lea eax, [ebp - 0x24]
push eax
call fcn.0041316e
push esi
mov eax, edi
lea ecx, [ebp - 0x24]
call fcn.00413379
cmp dword [ebp + 0x10], ebx
je 0x42cdb8
push 0x20
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00446660
mov dword [ebp - 0x58], ebx
add esp, 0xc
lea ebx, [ebp - 0x24]
lea eax, [ebp - 0x3c]
call fcn.004133c8
push str.IPC_
mov eax, edi
lea ecx, [ebp - 0x3c]
call fcn.00413379
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 0x42ce49
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 0x42ce49
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 0x42ce40
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 0x42ce37
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x160], bl
lea eax, [ebp - 0x160]
push ebx
push eax
call fcn.00412a6f
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.0044624a
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.0044624a
mov byte [ebp - 4], bl
push dword [ebp - 0x24]
call fcn.0044624a
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x30]
call fcn.0044624a
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 0x432f9a
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x45516c
call fcn.00454158
mov eax, 0x1020
call fcn.0044f570
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.00413036
xor edi, edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.00413036
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004149b3
mov esi, eax
mov al, byte [esi]
test al, al
mov byte [ebp - 0xd], 0
mov byte [ebp - 0x20], al
push cs
test byte [edx], al
add dword [eax], eax
add byte [ebx - 0x45], dl
pushfd
add dword [ebp], 0x7253c47
inc edi
cmp al, 0x25
pop es
test dword [eax + 0x38000000], ebp
add al, 0x3e
jne 0x43300c
push 0x25
lea eax, [ebp - 0x1c]
mov byte [ebp + 0x53], 1
call fcn.004131fe
inc edi
jmp 0x4330a6
push 0x459596
lea eax, [ebp - 0x2c]
push eax
call fcn.0041316e
xor eax, eax
jmp 0x43302c
test al, al
je 0x433033
push eax
lea eax, [ebp - 0x2c]
call fcn.004131fe
inc edi
mov al, byte [esi + edi]
cmp al, 0x25
jne 0x43301e
cmp byte [esi + edi], 0
je 0x4330b6
push 0xfff
lea eax, [ebp - 0x102c]
push eax
push dword [ebp - 0x2c]
inc edi
mov byte [ebp - 0x102c], 0
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
test eax, eax
lea ecx, [ebp - 0x1c]
je 0x433072
lea eax, [ebp - 0x102c]
push eax
or eax, 0xffffffff
call fcn.00413379
mov byte [ebp - 0xd], 1
jmp 0x4330a6
push ebx
or eax, 0xffffffff
mov byte [ebp - 0xd], 1
call fcn.00413379
push dword [ebp - 0x2c]
or eax, 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00413379
push ebx
or eax, 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00413379
jmp 0x4330a6
mov al, byte [esi + edi]
test al, al
mov byte [ebp - 0x20], al
jne 0x432fea
jmp 0x4330d4
push ebx
or eax, 0xffffffff
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0xd], 1
call fcn.00413379
push dword [ebp - 0x2c]
or eax, 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00413379
cmp byte [ebp - 0xd], 0
pop ebx
je 0x4330e6
push dword [ebp - 0x1c]
mov esi, dword [ebp + 8]
call fcn.00415109
mov byte [ebp - 4], 0
push dword [ebp - 0x2c]
call fcn.0044624a
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x1c]
call fcn.0044624a
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4