joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42138a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4fec30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0041ebc0
mov dword [ebp - 0x14], eax
cmp dword [0x5007b8], edi
jne 0x42147b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x421408
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x42155b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x42155b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42155b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x5007b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x5007bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x5007c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5007c8], eax
test eax, eax
je 0x421478
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5007c4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4214a0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x421493
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4214b5
push 4
pop eax
jmp 0x42155d
cmp dword [ebp - 0x14], edi
je 0x4214b5
push dword [0x5007b8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x42149a
mov eax, dword [0x5007c4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x421513
cmp dword [0x5007c8], esi
je 0x421513
push eax
call ebx
push dword [0x5007c8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x421513
test eax, eax
je 0x421513
call ecx
test eax, eax
je 0x421508
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x421508
test byte [ebp - 8], 1
jne 0x421513
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x421543
mov eax, dword [0x5007bc]
cmp eax, esi
je 0x421540
push eax
call ebx
test eax, eax
je 0x421540
call eax
mov edi, eax
test edi, edi
je 0x421540
mov eax, dword [0x5007c0]
cmp eax, esi
je 0x421540
push eax
call ebx
test eax, eax
je 0x421540
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x5007b8]
call ebx
test eax, eax
je 0x42155b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x42155d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fb73
leave
ret
Function at 0x408a96
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x498fa4]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00458750
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x408aef
cmp dword [ebp - 0x7c], 5
jae 0x408aeb
cmp dword [ebp - 0x7c], 4
jne 0x408aef
cmp dword [ebp - 0x78], 0x5a
jb 0x408aef
xor eax, eax
jmp 0x408af2
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00457fc4
add ebp, 0x98
leave
ret

Function at 0x409729
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x2c
mov eax, 0x470764
call fcn.0045c39c
mov ebx, ecx
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
cmp edi, esi
jne 0x40975d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [ebx + 4]
call fcn.0040aa9e
mov eax, dword [eax + 0x10]
call fcn.0045c474
ret
push 0x4827d0
push 2
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x409746
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
cmp eax, 1
jb 0x409746
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x409746
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [ebp - 0x38]
mov edi, eax
call fcn.0040a679
push dword [ebp - 0x14]
lea eax, [ebp - 0x38]
push edi
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.0040a486
mov dword [ebp - 4], 1
cmp dword [ebp - 0x1c], esi
je 0x4097e6
cmp dword [ebp - 0x18], esi
je 0x4097e6
push ebx
lea ecx, [ebp - 0x38]
call fcn.00409952
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0040a2c1
mov eax, ebx
jmp 0x409757
lea esi, [ebx + 4]
lea edi, [ebp - 0x38]
call fcn.00401920
mov ebx, dword [ebx + 0x14]
jmp 0x4097d3
Function at 0x40d5b8
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x30
mov eax, 0x46ce26
call fcn.0045c39c
mov edi, ecx
cmp dword [ebp + 0xc], 0
je 0x40d74f
push dword [ebp + 0xc]
call fcn.00457fd3
pop ecx
cmp eax, 4
jb 0x40d74f
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00401b81
and dword [ebp - 4], 0
push 0x5c
push 0x2f
lea ebx, [ebp - 0x10]
call fcn.0040d996
push 0x4824f8
mov esi, edi
call fcn.00408898
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0xc], eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0041315f
test al, al
jne 0x40d662
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
call fcn.0040aa9e
mov edi, dword [eax + 0x10]
lea esi, [ebp + 0xc]
call fcn.00413113
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402595
mov eax, edi
jmp 0x40d761
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040a28c
mov byte [ebp - 4], 2
cmp dword [ebp - 0x20], ebx
je 0x40d683
cmp dword [ebp - 0x1c], ebx
jne 0x40d69f
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x3c]
call fcn.00401920
mov edi, dword [eax + 0x10]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0040a2c1
jmp 0x40d648
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
push dword [ebp - 0x20]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40d6ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
call fcn.0040aa9e
jmp 0x40d68e
push dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
call fcn.0040c907
cmp eax, ebx
pop ecx
jge 0x40d6e5
mov esi, dword [ebp + 8]
push eax
call fcn.0040aab7
jmp 0x40d68e
cmp eax, 1
jne 0x40d70c
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push 0xb
mov ecx, esi
call dword [eax + 4]
mov esi, dword [esi + 0x10]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0040a2c1
mov edi, esi
jmp 0x40d648
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00409d19
push edi
mov byte [ebp - 4], 3
call fcn.004088d0
lea eax, [ebp - 0x14]
call fcn.0040da02
mov esi, dword [ebp + 8]
push 8
mov dword [edi + 8], eax
pop eax
mov word [edi], ax
call fcn.0040a7a8
mov ecx, dword [ebp - 0x14]
mov edi, dword [esi + 0x10]
add ecx, 0xfffffff0
call fcn.00402595
jmp 0x40d691
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push 0x80070057
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi + 0x10]
call fcn.0045c474
ret 8
Function at 0x40f45d
Capabilities:
Accept command line arguments

Disassembly:
push 0x40
mov eax, 0x46ee81
call fcn.0045c3cf
mov esi, dword [ebp + 8]
push 0x49ed00
mov ecx, esi
call fcn.00401e4f
lea eax, [esi + 4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00411d16
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x24]
call fcn.00401b81
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0x18], ebx
je 0x40f5dc
cmp edi, ebx
je 0x40f5e7
mov byte [ebp - 4], 3
push dword [edi]
mov ecx, esi
call fcn.004020ce
xor esi, esi
inc esi
cmp esi, dword [ebp - 0x18]
jge 0x40f5dc
push dword [edi + esi*4]
lea ecx, [ebp - 0x1c]
call fcn.00401b81
mov ebx, 0x4824f8
push ebx
push 0x482c7c
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 4
call fcn.00401c0c
push ebx
push 0x482c80
lea eax, [ebp - 0x1c]
push eax
call fcn.00401c0c
push ebx
lea ecx, [ebp - 0x20]
call fcn.00401b81
lea eax, [esi + 1]
mov byte [ebp - 4], 5
cmp eax, dword [ebp - 0x18]
jge 0x40f52f
push dword [edi + esi*4 + 4]
lea ecx, [ebp - 0x20]
call fcn.004020ce
push ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x2c], esp
mov ecx, esp
push eax
call fcn.00401f16
push ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x30], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 6
call fcn.00401f16
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 5
call fcn.00409fb5
add esp, 0xc
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0040a008
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 8
mov eax, dword [ebp + 8]
add eax, 4
push eax
lea ebx, [ebp - 0x4c]
call fcn.00409d8a
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.00402595
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.00402595
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.00402595
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.00402595
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00402595
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00402595
inc esi
jmp 0x40f4d2
test edi, edi
je 0x40f5e7
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00402595
mov eax, dword [ebp + 8]
call fcn.0045c474
ret 4

Function at 0x4104cf
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x498fa4]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
mov dword [ebp - 0x80], 0x114
call fcn.00458750
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41051d
cmp dword [ebp - 0x7c], 6
jb 0x41051d
xor eax, eax
inc eax
jmp 0x41051f
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00457fc4
add ebp, 0x98
leave
ret
Function at 0x410feb
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.0045c0d0
push 0xffffffffffffffff
push 0x46cc86
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, dword [0x498fa4]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
push 0x49ed00
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
call fcn.00401e4f
xor eax, eax
mov dword [ebp - 4], edi
push 0xffe
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
mov dword [ebp - 0x10], 1
call fcn.00458750
add esp, 0xc
push 0x800
lea eax, [ebp]
push eax
push 0x482f98
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.004020ce
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
je 0x411090
push str.Desktop
mov ecx, esi
call fcn.00403ec4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.00457fc4
add ebp, 0x1004
leave
ret

Function at 0x4117b4
Capabilities:
Query environment variable

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x498fa4]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 8
mov eax, 0x46c193
call fcn.0045c39c
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
push 0x49ed00
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00401e4f
and dword [ebp - 4], 0
xor eax, eax
push 0x7fe
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
mov dword [ebp - 0x10], 1
call fcn.00458750
add esp, 0xc
push 0x400
lea eax, [ebp]
push eax
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.004020ce
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00457fc4
add ebp, 0x804
leave
ret

Function at 0x4118f0
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.0045c0d0
push 0xffffffffffffffff
push 0x46c111
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, dword [0x498fa4]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
push 0x49ed00
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00401e4f
and dword [ebp - 4], 0
xor eax, eax
push 0xffe
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
mov dword [ebp - 0x10], 1
call fcn.00458750
add esp, 0xc
push 0x800
lea eax, [ebp]
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.004020ce
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.00457fc4
add ebp, 0x1004
leave
ret
Function at 0x4119a4
Capabilities:
Query environment variable

Disassembly:
push 0x4c
mov eax, 0x46c0d3
call fcn.0045c405
and dword [ebp - 4], 0
and dword [ebp - 0x54], 0
push 0x49ed00
mov ecx, esi
mov dword [ebp - 0x58], esi
call fcn.00401e4f
and dword [ebp - 4], 0
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x4e]
push eax
mov dword [ebp - 0x54], 1
call fcn.00458750
add esp, 0xc
push 0x20
lea eax, [ebp - 0x50]
push eax
push str.SystemDrive
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x50]
push eax
mov ecx, esi
call fcn.004020ce
mov eax, esi
call fcn.0045c488
ret

Function at 0x411a0b
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x498fa4]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x18
mov eax, 0x46cc45
call fcn.0045c39c
mov eax, dword [ebp + 0x40c]
xor ebx, ebx
lea esi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], ebx
call fcn.004119a4
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], ebx
jne 0x411a5f
push 0x483098
mov ecx, esi
call fcn.004020ce
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi - 0xc]
lea eax, [ecx - 1]
cmp eax, ebx
jl 0x411b68
cmp eax, ecx
jg 0x411b68
movzx eax, word [edi + eax*2]
cmp ax, 0x5c
je 0x411a8f
push 0x482b30
lea ecx, [ebp - 0x10]
call fcn.00403ec4
mov edi, dword [ebp - 0x10]
xor eax, eax
mov esi, 0x1fc
push esi
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
call fcn.00458750
xor eax, eax
push esi
mov word [ebp + 0x200], ax
lea eax, [ebp + 0x202]
push ebx
push eax
call fcn.00458750
add esp, 0x18
mov eax, 0xff
push eax
lea ecx, [ebp + 0x200]
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 0x49ed00
cmp eax, ebx
je 0x411b5e
lea ecx, [ebp - 0x18]
call fcn.00401e4f
mov byte [ebp - 4], 1
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push 0x4830a0
push eax
call fcn.004047a5
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.00401f16
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402595
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402595
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.00457fc4
add ebp, 0x404
leave
ret
mov ecx, dword [ebp - 0x14]
call fcn.00401e4f
jmp 0x411b2d
push 0x80070057
call fcn.004026e4
int3
Function at 0x413452
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 4
mov eax, 0x46be99
call fcn.0045c39c
xor esi, esi
cmp dword [ebp + 8], esi
je 0x41350a
push dword [ebp + 8]
call fcn.00457fd3
pop ecx
test eax, eax
je 0x41350a
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x10]
push eax
push 0x4813a4
push 1
push esi
push 0x481474
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, esi
jge 0x4134b2
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x4134ae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x41350f
push dword [ebp + 8]
mov edi, dword [ebp - 0x10]
lea ecx, [ebp + 8]
call fcn.0040ef7b
mov byte [ebp - 4], 1
mov eax, dword [eax]
cmp eax, esi
je 0x4134ce
mov eax, dword [eax]
jmp 0x4134d0
xor eax, eax
mov ecx, dword [edi]
push ebx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push edi
call dword [ecx + 0xc]
mov ecx, dword [ebp + 8]
mov edi, eax
cmp ecx, esi
je 0x4134ef
call fcn.0040ab72
mov dword [ebp + 8], esi
cmp edi, esi
jl 0x41349d
mov eax, dword [ebx]
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov edi, eax
jmp 0x41349d
mov eax, 0x80070057
call fcn.0045c474
ret

Function at 0x413515
Capabilities:
Reference wmi statements

Disassembly:
push 0x14
mov eax, 0x46cb4f
call fcn.0045c39c
and dword [ebp - 0x10], 0
and dword [ebp - 4], 0
push str.ROOTCIMV2
lea ebx, [ebp - 0x10]
call fcn.00413452
mov esi, eax
xor ebx, ebx
cmp esi, ebx
pop ecx
jl 0x4135e9
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x10]
push str.SELECT__FROM_Win32_ComputerSystem
lea ecx, [ebp - 0x1c]
call fcn.0040ef7b
mov edi, eax
push 0x4832d8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040ef7b
mov byte [ebp - 4], 3
mov ecx, dword [edi]
cmp ecx, ebx
je 0x41357b
mov ecx, dword [ecx]
jmp 0x41357d
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x413587
mov eax, dword [eax]
jmp 0x413589
xor eax, eax
mov edx, dword [esi]
lea edi, [ebp - 0x14]
push edi
push ebx
push 0x30
push ecx
push eax
push esi
call dword [edx + 0x50]
mov ecx, dword [ebp - 0x18]
mov esi, eax
cmp ecx, ebx
je 0x4135a9
call fcn.0040ab72
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x4135bc
call fcn.0040ab72
mov dword [ebp - 0x1c], ebx
cmp esi, ebx
jl 0x4135d9
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push edx
push dword [ebp + 8]
mov dword [ebp - 0x20], ebx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
mov esi, eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4135e9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4135fa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.0045c474
ret
Function at 0x4136e5
Capabilities:
Reference wmi statements

Disassembly:
push 0x14
mov eax, 0x46cb4f
call fcn.0045c39c
and dword [ebp - 0x10], 0
and dword [ebp - 4], 0
push str.ROOTCIMV2
lea ebx, [ebp - 0x10]
call fcn.00413452
mov esi, eax
xor ebx, ebx
cmp esi, ebx
pop ecx
jl 0x4137b9
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x10]
push str.SELECT__FROM_Win32_OperatingSystem
lea ecx, [ebp - 0x1c]
call fcn.0040ef7b
mov edi, eax
push 0x4832d8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040ef7b
mov byte [ebp - 4], 3
mov ecx, dword [edi]
cmp ecx, ebx
je 0x41374b
mov ecx, dword [ecx]
jmp 0x41374d
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x413757
mov eax, dword [eax]
jmp 0x413759
xor eax, eax
mov edx, dword [esi]
lea edi, [ebp - 0x14]
push edi
push ebx
push 0x30
push ecx
push eax
push esi
call dword [edx + 0x50]
mov ecx, dword [ebp - 0x18]
mov esi, eax
cmp ecx, ebx
je 0x413779
call fcn.0040ab72
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x41378c
call fcn.0040ab72
mov dword [ebp - 0x1c], ebx
cmp esi, ebx
jl 0x4137a9
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push edx
push dword [ebp + 8]
mov dword [ebp - 0x20], ebx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
mov esi, eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4137b9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4137ca
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.0045c474
ret
Function at 0x408f1a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42bd30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00407704
mov dword [ebp - 0x14], eax
cmp dword [0x42ccec], edi
jne 0x40900b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x408f98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4090eb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4090eb
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4090eb
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x42ccec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x42ccf0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x42ccf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42ccfc], eax
test eax, eax
je 0x409008
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42ccf8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x409030
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x409023
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x409045
push 4
pop eax
jmp 0x4090ed
cmp dword [ebp - 0x14], edi
je 0x409045
push dword [0x42ccec]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40902a
mov eax, dword [0x42ccf8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4090a3
cmp dword [0x42ccfc], esi
je 0x4090a3
push eax
call ebx
push dword [0x42ccfc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4090a3
test eax, eax
je 0x4090a3
call ecx
test eax, eax
je 0x409098
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x409098
test byte [ebp - 8], 1
jne 0x4090a3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4090d3
mov eax, dword [0x42ccf0]
cmp eax, esi
je 0x4090d0
push eax
call ebx
test eax, eax
je 0x4090d0
call eax
mov edi, eax
test edi, edi
je 0x4090d0
mov eax, dword [0x42ccf4]
cmp eax, esi
je 0x4090d0
push eax
call ebx
test eax, eax
je 0x4090d0
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x42ccec]
call ebx
test eax, eax
je 0x4090eb
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4090ed
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004090fc
leave
ret