joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477119
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00466f81
and dword [ebp - 4], 0
cmp dword [0x4a0758], 0
mov ebx, eax
jne 0x4771ca
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47727b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x48abec
push edi
call esi
test eax, eax
je 0x47727b
push eax
call fcn.00466f0f
mov dword [esp], 0x48abdc
push edi
mov dword [0x4a0758], eax
call esi
push eax
call fcn.00466f0f
mov dword [esp], 0x48abc8
push edi
mov dword [0x4a075c], eax
call esi
push eax
call fcn.00466f0f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a0760], eax
call esi
push eax
call fcn.00466f0f
pop ecx
mov dword [0x4a0768], eax
test eax, eax
je 0x4771ca
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00466f0f
pop ecx
mov dword [0x4a0764], eax
mov eax, dword [0x4a0764]
cmp eax, ebx
je 0x477222
cmp dword [0x4a0768], ebx
je 0x477222
push eax
call fcn.00466f8a
push dword [0x4a0768]
mov esi, eax
call fcn.00466f8a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x477222
test edi, edi
je 0x477222
call esi
test eax, eax
je 0x477219
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x477219
test byte [ebp - 0xc], 1
jne 0x477222
or dword [ebp + 0x10], 0x200000
jmp 0x47725b
mov eax, dword [0x4a075c]
cmp eax, ebx
je 0x47725b
push eax
call fcn.00466f8a
pop ecx
test eax, eax
je 0x47725b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x47725b
mov eax, dword [0x4a0760]
cmp eax, ebx
je 0x47725b
push eax
call fcn.00466f8a
pop ecx
test eax, eax
je 0x47725b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a0758]
call fcn.00466f8a
pop ecx
test eax, eax
je 0x47727b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47727d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x2580f206
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x2580f215
pop dword [ebp - 0x4c]
mov eax, 0xd88d3a02
add eax, 0x4cf3b813
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xa737b8e3
sub dword [ebp - 0x5c], 0x58e57398
mov dword [ebp - 0x58], 0x90df9ae7
add dword [ebp - 0x58], 0xa153b15e
mov dword [ebp - 0x54], 0xa243dbe8
add dword [ebp - 0x54], 0xaa086846
mov dword [ebp - 0x50], 0xec80aa15
sub dword [ebp - 0x50], 0xec80aa15
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xcd5e2a5
sub eax, 0xe7541261
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xf2d3d817
sub dword [ebp - 0x5c], 0x7e616ec1
mov dword [ebp - 0x58], 0xab9f17a7
sub dword [ebp - 0x58], 0x6a32b632
mov dword [ebp - 0x54], 0x73fccc0b
add dword [ebp - 0x54], 0xef72a061
mov dword [ebp - 0x50], 0x10f358a6
sub dword [ebp - 0x50], 0x10f358a6
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3d5d1
push 0
call eax
mov ecx, 0x16e15989
add ecx, 0xe91ef18c
xor edi, edi
add edi, eax
mov ebx, 0xd78572d9
add ebx, 0x4dfd2327
add ebx, dword [ebp - 0x4c]
mov esi, 0x780c9074
add dword [ebp - 0x40], edx
mov edx, dword [ebx]
xor dword [ebp - 0x34], 0x112820ce
add edx, esi
add dword [ebp - 0x2c], esi
mov dword [edi], edx
add dword [ebp - 0x48], 0x8df09e71
add edi, 4
add ebx, 4
loop 0x2580f32e
add eax, 0x2221e6c9
sub eax, 0x2220c7a2
mov ebx, eax
add eax, 0x60430a60
sub eax, 0x60430a5b
mov ecx, 0x57123769
add ecx, 0xce6dc897
add ecx, dword [ebp - 0x4c]
call ebx
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 0x4827b0
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 0x4824d8
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, 0x4824d8
push ebx
push 0x482c5c
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 4
call fcn.00401c0c
push ebx
push 0x482c60
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 0x482f78
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 0x483078
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 0x482b10
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 0x483080
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 0x4832b8
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 0x4832b8
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