joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403940
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x41c690]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x11c
lea eax, [esp + 8]
push 0
push eax
call fcn.00409190
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call esi
test eax, eax
jne 0x403991
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x114
call esi
mov eax, dword [esp + 0x14]
pop esi
cmp eax, 2
jne 0x403bb6
mov ecx, dword [esp + 4]
lea eax, [ecx - 4]
cmp eax, 6
ja case.0x4039af.7
jmp dword [eax*4 + 0x403c2c]
mov eax, 6
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00408f97
add esp, 0x120
ret
mov eax, dword [esp + 8]
sub eax, 0
je 0x403a6e
sub eax, 2
je 0x4039fc
mov eax, 8
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00408f97
add esp, 0x120
ret
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x403a22
mov eax, 0xc
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00408f97
add esp, 0x120
ret
test dword [esp + 0x118], 0x8000
je 0x403a49
mov eax, 0xb
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00408f97
add esp, 0x120
ret
xor eax, eax
cmp byte [esp + 0x11a], 1
sete al
add eax, 9
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00408f97
add esp, 0x120
ret
mov eax, 7
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00408f97
add esp, 0x120
ret
mov eax, dword [esp + 8]
cmp eax, 3
ja case.default.0x403a95
jmp dword [eax*4 + 0x403c48]
xor eax, eax
cmp byte [esp + 0x11a], 1
sete al
add eax, 0xd
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00408f97
add esp, 0x120
ret
xor eax, eax
cmp byte [esp + 0x11a], 1
sete al
add eax, 0xf
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00408f97
add esp, 0x120
ret
xor eax, eax
cmp byte [esp + 0x11a], 1
sete al
add eax, 0x11
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00408f97
add esp, 0x120
ret
xor eax, eax
cmp byte [esp + 0x11a], 1
setne al
add eax, 0x13
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00408f97
add esp, 0x120
ret
cmp dword [esp + 8], 0
jne case.default.0x403a95
cmp byte [esp + 0x11a], 1
jne 0x403b63
cmp dword [esp + 0xc], 0x4e20
sbb eax, eax
add eax, 0x17
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00408f97
add esp, 0x120
ret
mov eax, 0x15
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00408f97
add esp, 0x120
ret
cmp ecx, 4
jae case.default.0x403a95
mov eax, 5
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00408f97
add esp, 0x120
ret
mov eax, 0x18
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00408f97
add esp, 0x120
ret
test eax, eax
jne 0x403bd4
mov eax, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00408f97
add esp, 0x120
ret
cmp dword [esp + 4], 4
jne 0x403c12
mov eax, dword [esp + 8]
cmp eax, 0xa
jne 0x403c08
cmp dword [esp + 0xc], 0x7ce
jne 0x403c12
mov eax, 3
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00408f97
add esp, 0x120
ret
cmp eax, 0x5a
mov eax, 4
je 0x403c17
mov eax, 2
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00408f97
add esp, 0x120
ret
Function at 0x403ca0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x18
mov eax, dword [0x41c690]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov byte [eax], 0
lea eax, [esp]
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 8], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00408f97
add esp, 0x18
ret
Function at 0x404040
Capabilities:
Get disk information
Get file system object information

Disassembly:
sub esp, 0x240
mov eax, dword [0x41c690]
xor eax, esp
mov dword [esp + 0x23c], eax
mov eax, dword [esp + 0x244]
push ebx
mov ebx, dword [esp + 0x24c]
push esi
push ebx
xor esi, esi
push esi
push eax
mov dword [esp + 0x20], eax
call fcn.00409190
add esp, 0xc
cmp ebx, esi
je 0x40407a
dec ebx
lea eax, [esp + 0x1c4]
push eax
push 0x80
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], esi
cmp eax, esi
jbe 0x404201
push ebp
push edi
nop
mov edi, dword [esp + 0x14]
lea edi, [esp + edi + 0x1cc]
push edi
mov byte [esp + 0x190], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebp, eax
sub eax, 2
je 0x404111
sub eax, 2
je 0x404101
sub eax, 1
je case.0x40410a.1
push 0x20
lea ecx, [esp + 0x1b0]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push 0x20
lea ecx, [esp + 0x1a4]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x404101
mov byte [esp + 0x18c], al
cmp ebp, 6
ja case.0x40410a.1
jmp dword [ebp*4 + 0x404218]
movsx edx, byte [edi]
push edx
call fcn.0040a407
add esp, 4
cmp eax, 0x43
jg switch.0x0040410a
jmp case.0x40410a.1
mov byte [esp + 0x13], 0x30
jmp 0x404141
mov byte [esp + 0x13], 0x31
jmp 0x404141
mov byte [esp + 0x13], 0x32
jmp 0x404141
mov byte [esp + 0x13], 0x33
cmp byte [esp + 0x18c], 0
je 0x404154
lea ebp, [esp + 0x18c]
jmp 0x404184
push 0x160
lea eax, [esp + 0x30]
push 0
push eax
call fcn.00409190
add esp, 0xc
push 0x200
push 0x160
lea ecx, [esp + 0x34]
push ecx
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea ebp, [esp + 0x38]
cmp esi, ebx
jae case.0x40410a.1
mov eax, dword [esp + 0x1c]
mov dl, byte [esp + 0x13]
mov byte [eax + esi], dl
inc esi
mov dword [esp + 0x18], esi
add esi, eax
push ebx
push esi
push edi
call fcn.00401190
push ebx
push esi
push 0x41c038
call fcn.00401190
push ebx
push esi
push ebp
call fcn.00401190
push ebx
push esi
push 0x41c038
call fcn.00401190
add esp, 0x30
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4041c8
sub esi, ecx
add dword [esp + 0x18], esi
mov esi, dword [esp + 0x18]
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4041e0
mov ecx, dword [esp + 0x14]
sub eax, edx
lea eax, [ecx + eax + 1]
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x20]
jb 0x4040a0
pop edi
pop ebp
mov ecx, dword [esp + 0x244]
pop esi
pop ebx
xor ecx, esp
call fcn.00408f97
add esp, 0x240
ret
Function at 0x4042a0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x41c690]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, dword [esp + 0x19c]
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
je 0x4042df
inc ecx
mov dword [esi], ecx
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00408f97
add esp, 0x194
ret 4
push 0x190
lea eax, [esp + 8]
push 0
push eax
call fcn.00409190
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x404308
inc dword [esi]
mov ecx, dword [esp + 0x194]
pop esi
xor ecx, esp
call fcn.00408f97
add esp, 0x194
ret 4

Function at 0x4045b0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, ecx
movzx ecx, word [esi + 0x21c]
push edi
mov eax, 2
lea edi, [esi + 0x220]
push ecx
mov dword [esi + 4], 0
mov dword [esi + 0x108], 0
mov word [edi], ax
mov dword [esi + 0x224], 0
call sub.WSOCK32.dll_htons
push 0
push 1
push 2
mov word [esi + 0x222], ax
call sub.WSOCK32.dll_socket
mov dword [esi + 0x230], eax
cmp eax, 0xffffffff
jne 0x40461d
mov ecx, ebx
or esi, eax
call fcn.00404550
pop edi
mov eax, esi
pop esi
pop ebx
ret 4
push 0x10
push edi
push eax
call sub.WSOCK32.dll_bind
mov edi, eax
cmp edi, 0xffffffff
jne 0x40463c
mov ecx, ebx
call fcn.00404550
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
mov edx, dword [esi + 0x230]
push 5
push edx
call sub.WSOCK32.dll_listen
mov esi, eax
cmp esi, 0xffffffff
jne 0x40465a
mov ecx, ebx
call fcn.00404550
mov eax, esi
pop edi
pop esi
pop ebx
ret 4

Function at 0x404660
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push 0x104
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
call fcn.00409190
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, 0x40
jae 0x4046a2
mov ecx, dword [esp + 0x110]
mov dword [esp + eax*4 + 0xc], ecx
inc dword [esp + 8]
lea edx, [esp]
push edx
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.WSOCK32.dll_select
add esp, 0x10c
ret 4

Function at 0x4048b0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x110
push ebx
mov ebx, dword [esp + 0x118]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov dword [esp + 0xc], 0xa
mov esi, 1
push 0x104
lea eax, [esp + 0x1c]
push 0
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], esi
call fcn.00409190
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, 0x40
jae 0x404904
mov dword [esp + eax*4 + 0x1c], ebx
add dword [esp + 0x18], esi
lea ecx, [esp + 0x10]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
push 0
push 0
call sub.WSOCK32.dll_select
test eax, eax
jg 0x40492b
jl 0x40492d
sub dword [esp + 0xc], esi
je 0x40492d
push 0x64
call ebp
jmp 0x4048d3
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
Function at 0x404940
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
push edi
lea edi, [esi + 4]
push edi
push eax
mov ebp, ecx
xor ebx, ebx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x404a28
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esi]
push ebx
push ecx
push edx
push eax
call sub.WSOCK32.dll_recv
mov ebx, eax
test ebx, ebx
jge 0x404989
mov ecx, ebp
call fcn.00404550
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0xc
jne 0x404a2a
mov edx, dword [edi]
xor eax, eax
test edx, edx
jbe 0x4049c9
mov ebp, dword [esi]
lea ecx, [esi + 8]
lea esp, [esp]
cmp dword [ecx], ebp
je 0x4049ae
inc eax
add ecx, 4
cmp eax, edx
jb 0x4049a0
jmp 0x4049c9
dec edx
cmp eax, edx
jae 0x4049c7
lea ecx, [esi + eax*4 + 8]
mov edx, dword [ecx + 4]
mov dword [ecx], edx
mov edx, dword [edi]
inc eax
dec edx
add ecx, 4
cmp eax, edx
jb 0x4049b7
dec dword [edi]
mov edi, dword [esi + 0x108]
xor eax, eax
test edi, edi
jbe 0x404a1a
mov edx, dword [esi]
lea ecx, [esi + 0x10c]
lea ecx, [ecx]
cmp dword [ecx], edx
je 0x4049ee
inc eax
add ecx, 4
cmp eax, edi
jb 0x4049e0
jmp 0x404a1a
dec edi
cmp eax, edi
jae 0x404a14
lea ecx, [esi + eax*4 + 0x10c]
lea ebx, [ebx]
mov edx, dword [ecx + 4]
mov dword [ecx], edx
mov edx, dword [esi + 0x108]
inc eax
dec edx
add ecx, 4
cmp eax, edx
jb 0x404a00
dec dword [esi + 0x108]
mov eax, dword [esi]
push eax
call sub.WSOCK32.dll_closesocket
mov dword [esi], 0xffffffff
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x404a40
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
test edi, edi
jbe 0x404a95
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea esp, [esp]
mov eax, 0x400
cmp edi, 0x400
ja 0x404a6f
mov eax, edi
push 0
push eax
push ebx
push ebp
call sub.WSOCK32.dll_send
mov ecx, dword [esp + 0x10]
mov esi, eax
test esi, esi
jle 0x404aa3
push ebp
call fcn.004048b0
test eax, eax
jl 0x404a95
sub edi, esi
add ebx, esi
test edi, edi
ja 0x404a60
mov eax, dword [esp + 0x20]
sub eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
call fcn.00404550
pop edi
mov eax, esi
pop esi
pop ebp
neg eax
pop ebx
pop ecx
ret 0xc
Function at 0x4051c0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0xc
mov eax, dword [0x41c690]
xor eax, esp
mov dword [esp + 8], eax
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov eax, ebx
push edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4051e0
sub eax, edx
sar eax, 1
lea esi, [eax - 1]
mov eax, 0x55555556
imul esi
mov edi, edx
shr edi, 0x1f
add edi, edx
add edi, esi
lea eax, [edi + 1]
cmp eax, dword [esp + 0x20]
jge 0x40526d
mov dx, word [0x41dd48]
test dx, dx
jne 0x405242
push 4
lea ecx, [esp + 0x10]
push ecx
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dx, word [esp + 0xc]
test eax, eax
jne 0x40523b
mov dx, word [0x41c03c]
mov word [0x41dd48], dx
xor ecx, ecx
lea eax, [ebx + edi*2]
mov word [eax + 2], cx
test esi, esi
jl 0x40526d
nop
cmp ecx, 3
jne 0x40525d
xor ecx, ecx
mov word [eax], dx
sub eax, 2
mov di, word [ebx + esi*2]
mov word [eax], di
dec esi
sub eax, 2
inc ecx
test esi, esi
jge 0x405250
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408f97
add esp, 0xc
ret

Function at 0x4053a0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x54
mov eax, dword [0x41c690]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x64]
push ebp
mov ebp, dword [esp + 0x6c]
mov dword [esp + 8], eax
test ebp, ebp
je 0x4054a6
push ebx
mov ebx, dword [esp + 0x68]
push esi
dec ebp
mov esi, 0xa
push edi
mov dword [esp + 0x10], esi
test ebx, ebx
jle 0x4053ee
mov eax, ebx
lea ebx, [ebx]
lea esi, [esi + esi*4]
add esi, esi
sub eax, 1
jne 0x4053e0
mov dword [esp + 0x10], esi
fild dword [esp + 0x10]
push ebx
fld qword [0x4185d0]
push str.__ld__c__0_ldld
fnstcw word [esp + 0x18]
push 0x1f
fdiv st(1)
movzx eax, word [esp + 0x1c]
or eax, 0xc00
mov dword [esp + 0x24], eax
fadd qword [esp + 0x74]
fmulp st(1)
fldcw word [esp + 0x24]
fistp qword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov eax, ecx
cdq
idiv esi
fldcw word [esp + 0x1c]
mov edi, eax
mov edx, edi
imul edx, esi
sub ecx, edx
mov eax, 0x66666667
imul ecx
sar edx, 2
mov esi, edx
lea eax, [esp + 0x2c]
shr esi, 0x1f
push eax
add esi, edx
call fcn.00409384
mov ax, word [0x41dd44]
add esp, 0x10
test ax, ax
jne 0x40548a
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
mov ax, word [esp + 0x18]
jne 0x405484
mov ax, word [0x41c044]
mov word [0x41dd44], ax
mov ecx, dword [esp + 0x14]
push esi
movzx edx, ax
push edx
push edi
lea eax, [esp + 0x2c]
push eax
push ebp
push ecx
call fcn.00409384
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54]
pop ebp
xor ecx, esp
call fcn.00408f97
add esp, 0x54
ret
Function at 0x4069e0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0xffffffffffffffff
push 0x417d48
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41c690]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
jne 0x406b70
call fcn.00401a80
mov dword [esi + 0xc], eax
test eax, eax
je 0x406b70
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x406b70
mov edi, dword [esi + 0xc]
xor ecx, ecx
lea edi, [edi + edi + 2]
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040911d
mov dword [esi + 0x10], eax
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040911d
add esp, 8
cmp dword [esi + 0x10], 0
mov dword [esi + 0x14], eax
je 0x406b70
test eax, eax
je 0x406b70
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jl 0x406b70
lea ebp, [esi + 4]
push ebp
push 0x418a58
push 1
push 0
push 0x418b28
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x406b70
cmp dword [ebp], 0
je 0x406b70
push str.ROOTCIMV2
lea ecx, [esp + 0x18]
call fcn.00406110
mov eax, dword [eax]
mov dword [esp + 0x20], 0
test eax, eax
je 0x406aee
mov ecx, dword [eax]
jmp 0x406af0
xor ecx, ecx
mov eax, dword [ebp]
mov edx, dword [eax]
lea edi, [esi + 8]
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
test eax, eax
lea ecx, [esp + 0x14]
setge bl
mov dword [esp + 0x20], 0xffffffff
call fcn.00406990
test bl, bl
je 0x406b59
mov eax, dword [edi]
test eax, eax
je 0x406b59
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x406b57
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi], 0
jmp 0x406b59
inc dword [esi]
cmp dword [esi], 0
jne 0x406b70
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp], 0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x406b90
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417d80
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x41c690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [esi + 0xc]
xor edi, edi
lea ecx, [eax + eax + 2]
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], ecx
cmp dword [esi], edi
jne 0x406c00
mov ecx, esi
call fcn.004069e0
mov edx, dword [esi + 0x10]
push edx
mov ecx, esi
call fcn.00406b90
cmp dword [esi], edi
je 0x406d76
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi], edi
je 0x406d76
mov ebx, dword [ebp + 8]
cmp ebx, edi
je 0x406d76
push str.SELECT__FROM_Win32_PerfRawData_PerfOS_Processor
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], edi
call fcn.00406080
mov edi, eax
push 0x4188e0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00406080
mov ecx, dword [edi]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x406c3c
mov edx, dword [ecx]
jmp 0x406c3e
xor edx, edx
mov eax, dword [eax]
test eax, eax
je 0x406c48
mov ecx, dword [eax]
jmp 0x406c4a
xor ecx, ecx
mov eax, dword [esi + 8]
mov esi, dword [eax]
lea edi, [ebp - 0x14]
push edi
push 0
push 0x30
push edx
push ecx
push eax
mov eax, dword [esi + 0x50]
call eax
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00406990
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00406990
test esi, esi
jge 0x406c92
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x406d76
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [ebp - 0x1c], 0
xor esi, esi
lea esp, [esp]
cmp esi, dword [ebp - 0x28]
jge 0x406d60
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp + 8]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x1c], 0
jne 0x406cdf
mov dword [ebp - 0x18], 2
jmp 0x406d60
cmp dword [ebp + 8], 0
je 0x406d59
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0
push str.PercentProcessorTime
push eax
call edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.00408fa6
add esp, 4
lea ecx, [ebp - 0x38]
push ecx
mov dword [ebx + esi*4], eax
call edi
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0
push str.TimeStamp_Sys100NS
push eax
call edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.00408fa6
add esp, 4
lea ecx, [ebp - 0x38]
push ecx
mov dword [ebx + esi*4 + 4], eax
call edi
mov eax, dword [ebp - 0x14]
add esi, 2
jmp 0x406cb0
mov dword [ebp - 0x18], 3
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4083b0
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov esi, ecx
push 0x238
lea edi, [esi + 4]
push 0
push edi
mov dword [esi + 0x248], 0
call fcn.00409190
mov ax, word [esp + 0x18]
push 8
mov dword [esi + 0x23c], edi
mov word [esi + 0x240], ax
call fcn.0040911d
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40840b
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [edi], ecx
push 0x41dcfc
mov ecx, edi
mov dword [edi + 4], edx
call fcn.004042a0
jmp 0x40840d
xor edi, edi
mov dword [esi], edi
test edi, edi
je 0x40844f
mov eax, dword [esi + 0x23c]
mov dword [eax + 0x234], edi
cmp dword [esi + 0x248], 0
jne 0x40844f
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
push 0x408220
push 0
push 0
mov dword [esi + 0x244], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x248], eax
pop edi
mov eax, esi
pop esi
ret 0xc

Function at 0x4086a0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x2c
push esi
push edi
lea eax, [esp + 8]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp dword [esp + 0x40], esi
jne 0x4086fc
mov ecx, dword [0x41c04c]
mov edx, dword [ecx + 8]
mov dword [edx + 0x40], 1
mov eax, dword [0x41c04c]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 8]
push edx
push str.Debugging__s._n
call fcn.00401990
add esp, 8
push 1
push 0x406720
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
jmp 0x408798
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor eax, eax
mov dword [esp + 0x10], eax
push eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], 0x406560
call esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x34], str.RRL__FacelessWndProc_
call dword [sym.imp.USER32.dll_RegisterClassW]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x4189b4
push edx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x418998
call esi
test eax, eax
je 0x4087c2
push str.RegisterServiceProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x408798
push 1
push 0
call esi
mov eax, dword [esp + 8]
push edi
push eax
call fcn.00408460
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
je 0x4087b7
push 0
push 0
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x2c
ret
xor esi, esi
jmp 0x408798
Function at 0x408990
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
mov edi, 0x408910
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ebx, 1
add esi, 4
sub dword [esp + 0xc], ebx
je 0x408a4b
nop
mov eax, dword [esi]
cmp word [eax], 0x2d
jne case.0x4089db.103
movzx ecx, word [eax + 2]
add ecx, 0xffffff9c
cmp ecx, 0x11
ja case.0x4089db.103
movzx ecx, byte [ecx + 0x408ae8]
jmp dword [ecx*4 + 0x408ac8]
mov edi, 0x405730
jmp case.0x4089db.103
add eax, 4
cmp word [eax], 0
jne 0x4089fc
sub dword [esp + 0xc], ebx
mov eax, dword [esi + 4]
add esi, 4
mov edx, dword [0x41c04c]
mov ecx, dword [edx + 8]
mov dword [ecx + 0x60], eax
jmp case.0x4089db.103
add eax, 4
cmp word [eax], 0
jne 0x408a1d
sub dword [esp + 0xc], ebx
mov eax, dword [esi + 4]
add esi, 4
mov edx, dword [0x41c04c]
mov ecx, dword [edx + 8]
mov dword [ecx + 0x64], eax
jmp case.0x4089db.103
mov edi, 0x405980
jmp case.0x4089db.103
mov edi, 0x405db0
jmp case.0x4089db.103
mov edi, 0x405c10
add esi, 4
sub dword [esp + 0xc], ebx
jne 0x4089c0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp edi, 0x408910
jne 0x408abe
call fcn.00403c60
test al, al
jne 0x408abe
mov edx, dword [0x41c04c]
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebx
push ecx
push edx
mov dword [eax + 0x14], ebx
call fcn.004086a0
add esp, 0xc
pop edi
pop esi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [0x41c04c]
mov eax, dword [edx + 8]
mov dword [eax + 0x14], ebx
mov ecx, dword [esi]
mov eax, dword [esp + 0x18]
xor edx, edx
cmp word [ecx + 2], 0x66
mov ecx, dword [esp + 0x14]
sete dl
push edx
push eax
push ecx
call fcn.004086a0
add esp, 0xc
pop edi
pop esi
pop ebx
pop ecx
ret
call edi
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x408f97
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c690]
jne 0x408fa1
repz ret
jmp fcn.0040ae09