joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c70d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x60ecbf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x40]
push esi
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x10], 0
mov dword [ebp], 0
call fcn.004a8620
mov ecx, dword [esp + 0x3c]
mov edx, 1
cmp ecx, 8
mov dword [esp + 0x2c], edx
mov dword [ebp], 0
jae 0x4c712a
mov dword [ebp], 0x29
jmp 0x4c7167
mov edi, dword [esp + 0x38]
lea esi, [ecx - 4]
mov eax, dword [edi]
and eax, 0xefffffff
cmp esi, edx
jb 0x4c714e
lea ecx, [edi + 1]
sub eax, edi
lea ebx, [eax + ecx]
cmp dword [ecx], ebx
je 0x4c715f
inc edx
inc ecx
cmp edx, esi
jbe 0x4c7141
lea ecx, [esp + 0x48]
mov dword [ebp], 0x36
push ecx
jmp 0x4c728f
lea ecx, [edx + 4]
cmp ecx, 0xffffff9c
jne 0x4c7184
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call fcn.004a8710
mov dword [esp + 0x10], 1
jmp 0x4c72a2
test ecx, ecx
jg 0x4c7192
lea ecx, [esp + 0x48]
push ecx
jmp 0x4c728f
mov esi, dword [esp + 0x44]
mov ebx, 0x10
mov byte [esp + 0x14], 0x43
mov byte [esp + 0x15], 0x44
mov dword [esi], ecx
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], 0x24
mov byte [esp + 0x18], 0x57
mov byte [esp + 0x19], 0x96
mov byte [esp + 0x1a], 0x55
mov byte [esp + 0x1b], 0x40
mov byte [esp + 0x1c], 0x54
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], 0x5a
mov byte [esp + 0x1f], 0x42
mov byte [esp + 0x20], 0
mov byte [esp + 0x21], 0
mov byte [esp + 0x22], 1
mov byte [esp + 0x23], 0x38
xor eax, eax
mov dl, byte [esp + eax + 0x14]
add dl, al
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, ebx
jb 0x4c71ed
add ecx, 0xfffffffc
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x50]
call fcn.004a8800
lea ecx, [esp + 0x48]
call fcn.004a8f30
mov edx, dword [esi]
push eax
sub edx, 4
lea eax, [esp + 0x18]
push edx
push edi
push ebx
push eax
push 3
call fcn.0052b610
test eax, eax
je 0x4c727a
cmp eax, 0xffffffff
je 0x4c727a
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x50]
call fcn.004a8800
lea ecx, [esp + 0x48]
call fcn.004a8f10
mov ecx, dword [esp + 0x40]
cmp dword [eax + ecx], ecx
je 0x4c7267
lea ecx, [esp + 0x48]
mov dword [ebp], 0xa5
call fcn.004a8af0
lea ecx, [esp + 0x48]
push ecx
jmp 0x4c728f
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x50]
call fcn.004a8800
lea edx, [esp + 0x48]
push edx
jmp 0x4c728f
lea ecx, [esp + 0x48]
mov dword [ebp], 0x9b
call fcn.004a8af0
lea eax, [esp + 0x48]
push eax
mov esi, dword [esp + 0x38]
mov ecx, esi
call fcn.004a8710
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x2c], 0
call fcn.004a8750
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4c72d0
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x60ed0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], ebx
call fcn.004a8620
push 0x69dc58
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 1
call fcn.00480200
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x28]
push eax
mov byte [esp + 0x138], 2
call fcn.00480200
mov ecx, dword [esp + 0x148]
mov edx, dword [eax]
mov eax, dword [esp + 0x140]
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push str.__d___s___d______
push ecx
mov byte [esp + 0x148], 3
call fcn.00483a80
add esp, 0x14
lea ecx, [esp + 0x28]
mov byte [esp + 0x134], 2
call fcn.00480a70
mov al, 0x41
mov ecx, 0x3f
mov byte [esp + 0x14], al
mov byte [esp + 0x23], al
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x15], 0x34
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov byte [esp + 0x16], 0x40
mov byte [esp + 0x17], 0x21
mov byte [esp + 0x18], 0x50
mov byte [esp + 0x19], 0x64
mov byte [esp + 0x1a], 0x36
mov byte [esp + 0x1b], 0x71
mov byte [esp + 0x1c], 0x55
mov byte [esp + 0x1d], 0x10
mov byte [esp + 0x1e], 0x5a
mov byte [esp + 0x1f], 0x42
mov byte [esp + 0x20], 9
mov byte [esp + 0x21], 0xa0
mov byte [esp + 0x22], 8
mov ecx, dword [eax - 8]
lea edx, [esp + 0x2c]
add ecx, ecx
push edx
push ecx
push eax
lea edx, [esp + 0x20]
push 0x10
push edx
push 7
call fcn.0052ba90
cmp eax, ebx
jne 0x4c741a
mov eax, dword [esp + 0x14c]
mov esi, dword [esp + 0x13c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
mov dword [eax], 0xc1
call fcn.004a8710
mov dword [esp + 0x24], 1
jmp 0x4c7444
lea edx, [esp + 0x2c]
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.004a8b30
mov esi, dword [esp + 0x13c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.004a8710
mov dword [esp + 0x24], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 1
call fcn.00480a70
lea ecx, [esp + 0xc]
mov byte [esp + 0x134], bl
call fcn.004a8750
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
Function at 0x4c7480
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xa4
push esi
mov esi, dword [esp + 0xac]
push edi
mov ecx, esi
mov dword [esp + 0xc], 0xc
mov dword [esp + 0x10], 0x1e
mov dword [esp + 0x14], 0x14
mov dword [esp + 0x18], 0x37
mov dword [esp + 0x1c], 0x19
mov dword [esp + 0x20], 0x52
mov dword [esp + 0x24], 0x21
mov dword [esp + 0x28], 0x46
mov dword [esp + 0x2c], 0x3c
mov dword [esp + 0x30], 0x5f
mov dword [esp + 0x34], 0x64
mov dword [esp + 0x38], 0x84
mov dword [esp + 0x3c], 0x85
mov dword [esp + 0x40], 0x91
mov dword [esp + 0x44], 0xa2
mov dword [esp + 0x48], 0x1a7
mov dword [esp + 0x4c], 0xef
mov dword [esp + 0x50], 0x1f1
mov dword [esp + 0x54], 0x19e
mov dword [esp + 0x58], 0x1ef
mov dword [esp + 0x5c], 0x1f4
mov dword [esp + 0x60], 0x2a2
mov dword [esp + 0x64], 0x226
mov dword [esp + 0x68], 0x2f1
mov dword [esp + 0x6c], 0x27f
mov dword [esp + 0x70], 0x2c5
mov dword [esp + 0x74], 0x32a
mov dword [esp + 0x78], 0x399
mov dword [esp + 0x7c], 0x3ba
mov dword [esp + 0x80], 0x3d4
mov dword [esp + 0x84], 0x3e8
mov dword [esp + 0x88], 0x96a
mov dword [esp + 0x8c], 0x598
mov dword [esp + 0x90], 0x644
mov dword [esp + 0x94], 0x657
mov dword [esp + 0x98], 0x7a2
mov dword [esp + 0x9c], 0xbee
mov dword [esp + 0xa0], 0x1243
mov dword [esp + 0xa4], 0x14d8
mov dword [esp + 0xa8], 0x24d0
call fcn.004a8f10
mov ecx, esi
mov edi, eax
call fcn.004a87f0
cmp eax, 0xc
jbe 0x4c7671
xor ecx, ecx
push ebx
push ebp
mov dword [esp + 0x10], ecx
mov ebx, 0x98
mov edx, dword [esp + 0xbc]
test edx, edx
jne 0x4c761f
mov ecx, ebx
mov edx, dword [esp + ecx + 0x14]
mov ecx, dword [esp + ecx + 0x18]
cmp edx, ecx
je 0x4c765c
jle 0x4c7633
mov esi, edx
mov edx, ecx
mov ecx, esi
lea esi, [edx + 4]
cmp esi, eax
jle 0x4c763d
lea edx, [eax - 4]
lea esi, [ecx + 4]
cmp esi, eax
jle 0x4c7647
lea ecx, [eax - 4]
mov esi, ecx
sub esi, edx
cmp esi, 4
jb 0x4c765c
mov ebp, dword [ecx + edi]
mov esi, dword [edx + edi]
mov dword [edx + edi], ebp
mov dword [ecx + edi], esi
mov ecx, dword [esp + 0x10]
sub ebx, 8
add ecx, 8
cmp ebx, 0xfffffff8
mov dword [esp + 0x10], ecx
jg 0x4c7612
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xa4
ret

Function at 0x4c7680
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x60ed41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x62910c]
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ebp, [esi + 0x14]
mov dword [ebp], eax
xor edi, edi
mov dword [esi + 0x28], 0x629c6c
mov dword [esp + 0x18], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
lea ecx, [esi + 0x3c]
mov byte [esp + 0x18], 1
call fcn.00491f10
push 0x69dc58
mov ecx, ebp
mov byte [esp + 0x1c], 2
mov dword [esi], 0x629c68
mov dword [esi + 4], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call fcn.00480d50
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4cbf60
Capabilities:
Get user security identifier

Disassembly:
mov eax, dword [0x6a2a54]
sub esp, 0x120
push ebx
xor ebx, ebx
push ebp
cmp eax, ebx
push edi
jne 0x4cbfac
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, 2
jne 0x4cbfa7
mov dword [0x6a2a58], eax
mov dword [0x6a2a54], eax
cmp dword [0x6a2a58], ebx
jne 0x4cbfc0
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret
mov ebp, dword [esp + 0x130]
mov edi, dword [esp + 0x134]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push ebp
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4cc00c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4cc00c
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret
mov ecx, dword [esp + 0xc]
push esi
push ecx
call fcn.005ed45a
mov edx, dword [esp + 0x18]
mov dword [edi], eax
lea eax, [edx + edx]
push eax
call fcn.005ed45a
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x4cc051
test esi, esi
je 0x4cc062
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x18]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x4cc05e
push esi
call fcn.005ed483
add esp, 4
test ebx, ebx
jne 0x4cc071
mov edi, dword [edi]
test edi, edi
je 0x4cc071
push edi
call fcn.005ed483
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x120
ret
Function at 0x4cc780
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60f298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov eax, dword [0x6a29fc]
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [ebp - 0x10], esp
jne 0x4cc96b
push 1
push 0x6a2a08
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push esi
push esi
push 1
push 0x6a2a08
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea ecx, [ebp - 0x34]
mov dword [0x6a2a20], 0xc
mov dword [0x6a2a28], esi
mov dword [0x6a2a24], 0x6a2a08
call fcn.00487780
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], esi
call fcn.005e624e
mov eax, dword [0x6a2a5c]
mov byte [ebp - 4], 1
cmp eax, esi
mov dword [ebp - 0x24], str.S_1_1_0
mov dword [ebp - 0x20], str.S_1_15_2_1
mov dword [ebp - 0x1c], str.S_1_15_2_2
mov ebx, 3
jne 0x4cc881
mov ecx, 0x44
xor eax, eax
lea edi, [ebp - 0x158]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x15c], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x14c]
mov ecx, 2
cmp eax, ecx
jne 0x4cc877
mov eax, dword [ebp - 0x158]
cmp eax, 6
ja 0x4cc86d
jne 0x4cc877
cmp dword [ebp - 0x154], ecx
jb 0x4cc877
mov dword [0x6a2a60], 1
mov dword [0x6a2a5c], 1
cmp dword [0x6a2a60], esi
jne 0x4cc88e
mov ebx, 1
cmp ebx, esi
jle 0x4cc8d5
lea esi, [ebp - 0x24]
mov edi, ebx
mov ecx, dword [esi]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00480200
mov edx, dword [ebp - 0x30]
push eax
push edx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00487ee0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00480a70
mov eax, dword [ebp - 0x40]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x48]
call fcn.005e6472
add esi, 4
dec edi
jne 0x4cc897
xor esi, esi
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x34]
push ecx
push edx
push 0x6a2a40
mov byte [ebp - 4], 3
call fcn.004cc340
add esp, 0xc
cmp eax, esi
jne 0x4cc929
lea eax, [ebp - 0x18]
push 0x652fc8
push eax
mov dword [ebp - 0x18], esi
call fcn.00467d6f
push 1
push 0x6a2a40
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
push 0x6a2a40
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, 0x4cc927
ret
mov eax, 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], eax
mov dword [0x6a2a30], 0xc
mov dword [0x6a2a38], esi
mov dword [0x6a2a34], 0x6a2a40
mov dword [0x6a29fc], eax
mov byte [ebp - 4], 0
call fcn.005e6281
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.00487790
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ced00
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60f55b
push eax
mov dword fs:[0], esp
sub esp, 0x65c
mov ecx, 0x6a3390
push ebx
push ebp
push esi
push edi
push str.PATH
push str.softwareTECOcular.3_agentdebug
call fcn.004cf8d0
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
je 0x4ced51
push ebp
call fcn.00465c4f
add esp, 4
test eax, eax
jne 0x4ced94
push ebp
call fcn.005ed483
add esp, 4
push 0x6893a0
call fcn.00465c4f
inc eax
lea esi, [eax + eax]
push esi
call fcn.005ed45a
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x4ceed8
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x6893a0
and ecx, 3
push ebp
rep stosb byte es:[edi], al
call fcn.00466936
add esp, 8
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x266]
mov word [esp + 0x264], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x264]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x67c]
lea ecx, [esp + 0x264]
push eax
push str.oadbg_
push str._s_s_
push ecx
call fcn.00466dce
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x476]
mov word [esp + 0x474], bx
rep stosd dword es:[edi], eax
add esp, 0x10
lea edx, [esp + 0x264]
stosw word es:[edi], ax
push edx
push ebp
lea eax, [esp + 0x46c]
push 0x689374
push eax
call fcn.00466dce
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], ebx
rep stosd dword es:[edi], eax
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x464]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ceecf
mov esi, dword [esp + 0x680]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [esp + 0x40]
push 0x687bf0
push eax
call edi
test eax, eax
je 0x4ceeb8
lea ecx, [esp + 0x40]
push 0x66d38c
push ecx
call edi
test eax, eax
je 0x4ceeb8
test byte [esp + 0x14], 0x10
jne 0x4ceeb8
lea edx, [esp + 0x40]
lea ecx, [esp + 0x10]
push edx
call fcn.005ece05
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x67c], 0
call fcn.005e68d3
lea ecx, [esp + 0x10]
mov dword [esp + 0x674], 0xffffffff
call fcn.005ecd91
lea edx, [esp + 0x14]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4cee54
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call fcn.005ed483
add esp, 4
mov ecx, dword [esp + 0x66c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x668
ret 8
Function at 0x4cf490
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x18]
push eax
push str.softwareTECOcular.3_agentdebug
push 0x66b78c
push ecx
call fcn.00466dce
add esp, 0x10
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
xor esi, esi
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4cf506
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4cf581
mov edi, dword [esp + 0x220]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
push ebx
push edi
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
call ebp
mov eax, dword [esp + 0x14]
cmp eax, 2
jb 0x4cf567
add eax, 2
mov dword [esp + 0x14], eax
shr eax, 1
add eax, eax
push eax
call fcn.005ed45a
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4cf567
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push ebx
push edi
push eax
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8

Function at 0x4cf590
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
push edi
xor esi, esi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x18]
push eax
push str.softwareTECOcular.3_agentdebug
push 0x66b78c
push ecx
call fcn.00466dce
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0x18]
mov dword [esp + 0xc], esi
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4cf607
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4cf641
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x224]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push esi
push eax
push ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x210
ret 8
Function at 0x4cf8d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
xor esi, esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4cf90d
lea ecx, [esp + 8]
push ecx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4cf98d
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
lea eax, [esp + 0x14]
push 0
push eax
push 0
push edi
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x4cf977
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.005ed45a
mov esi, eax
add esp, 4
test esi, esi
je 0x4cf977
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8
Function at 0x4d0460
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x60f67f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x682534]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebp, [esi + 0x18]
mov dword [ebp], eax
xor ebx, ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x1c], ebx
call fcn.005e6e82
lea edi, [esi + 0x30]
push ebx
mov ecx, edi
mov byte [esp + 0x20], 1
call fcn.0045e47a
mov dword [edi], 0x620aac
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x50]
mov byte [esp + 0x1c], 2
call fcn.005e6e82
lea edi, [esi + 0x64]
push ebx
mov ecx, edi
mov byte [esp + 0x20], 3
call fcn.0045e47a
mov dword [edi], 0x620aac
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x84]
mov byte [esp + 0x1c], 4
call fcn.004d3830
lea ecx, [esi + 0x128]
mov byte [esp + 0x1c], 5
call fcn.004d4600
lea ecx, [esi + 0x15c]
mov byte [esp + 0x1c], 6
call fcn.004ed580
mov ecx, dword [0x682534]
mov dword [esi + 0x190], ecx
mov edx, dword [esp + 0x24]
mov ecx, ebp
push edx
mov byte [esp + 0x20], 8
mov dword [esi], 0x629cfc
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 1
call fcn.005ecf28
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x18c], ebx
mov dword [esi + 0x194], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4d0590
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x60f707
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x629cfc
mov ecx, dword [esi + 0x194]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x28], 8
je 0x4d05e7
call fcn.004f7b10
mov ecx, dword [esi + 0x194]
cmp ecx, ebp
je 0x4d05e1
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x194], ebp
lea ebx, [esi + 0x84]
mov ecx, ebx
call fcn.004d39f0
lea ecx, [esi + 0x128]
call fcn.004d46d0
lea ecx, [esi + 0x15c]
call fcn.004edc80
lea edi, [esi + 0x64]
push 1
push edi
lea ecx, [esp + 0x1c]
call fcn.0045e264
mov eax, dword [esi + 0x58]
mov byte [esp + 0x28], 9
test eax, eax
jle 0x4d063d
mov ecx, dword [esi + 0x54]
mov ecx, dword [ecx + ebp*4]
test ecx, ecx
je 0x4d0635
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esi + 0x58]
inc ebp
cmp ebp, eax
jl 0x4d0625
lea ebp, [esi + 0x50]
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.005e6ee2
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 8
call fcn.0045e2a0
lea ecx, [esi + 0x190]
mov byte [esp + 0x28], 7
call fcn.005ecd91
lea ecx, [esi + 0x15c]
mov byte [esp + 0x28], 6
call fcn.004ed720
lea ecx, [esi + 0x128]
mov byte [esp + 0x28], 5
call fcn.004d4640
mov ecx, ebx
mov byte [esp + 0x28], 4
call fcn.004d38e0
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [edi + 8]
push eax
mov byte [esp + 0x2c], 3
mov dword [edi], 0x620aac
call ebx
mov ecx, edi
call fcn.0045e4a5
mov ecx, ebp
mov byte [esp + 0x28], 2
call fcn.005e6eb5
lea edi, [esi + 0x30]
mov byte [esp + 0x28], 1
lea ecx, [edi + 8]
mov dword [edi], 0x620aac
push ecx
call ebx
mov ecx, edi
call fcn.0045e4a5
lea ecx, [esi + 0x1c]
mov byte [esp + 0x28], 0
call fcn.005e6eb5
lea ecx, [esi + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.005ecd91
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret