joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10162c70
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1a8
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
movzx eax, word [eax + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x1038a114]
cmp eax, 3
jne 0x10162e0c
cmp ebx, 0x17f
ja 0x10162e1d
lea eax, [ebp - 0x1b4]
push ebx
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebx + 1]
cmp ebx, 6
mov byte [ebp + ebx - 0x1b4], 0
ja 0x10162ce8
xor edx, edx
nop dword [eax + eax]
cmp byte [ebp + edx - 0x1b4], 0
je 0x10162d83
inc edx
cmp eax, edx
jne 0x10162cd0
jmp 0x10162dd2
mov dl, 1
xor ecx, ecx
test dl, dl
jne 0x10162d13
jne 0x10162d13
xor edx, edx
nop word cs:[eax + eax]
nop
cmp byte [ebp + edx - 0x1b4], 0
je 0x10162d83
inc edx
jne 0x10162d00
xor edx, edx
test dl, dl
jne 0x10162d5d
lea edx, [ebx - 7]
nop word cs:[eax + eax]
mov edi, dword [ebp + ecx - 0x1b4]
mov esi, edi
add edi, 0xfefefeff
not esi
and edi, esi
test edi, 0x80808080
jne 0x10162d5d
mov esi, dword [ebp + ecx - 0x1b0]
mov edi, esi
add esi, 0xfefefeff
not edi
and esi, edi
test esi, 0x80808080
jne 0x10162d5d
add ecx, 8
cmp ecx, edx
jbe 0x10162d20
mov esi, dword [ebp + 8]
cmp eax, ecx
je 0x10162dd2
nop word cs:[eax + eax]
nop
cmp byte [ebp + ecx - 0x1b4], 0
je 0x10162d81
inc ecx
cmp eax, ecx
jne 0x10162d70
jmp 0x10162dd2
mov edx, ecx
cmp edx, ebx
jne 0x10162dd2
xorps xmm0, xmm0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x34]
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x2c], 1
push eax
push ecx
push 0
lea eax, [ebp - 0x1b4]
push eax
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x10162df6
call sub.ws2_32.dll_WSAGetLastError
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x10162de9
mov eax, dword [0x1034b300]
mov ecx, dword [0x1034b304]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
mov eax, esi
add esp, 0x1a8
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
mov word [esi + 0xc], ax
xor eax, eax
mov dword [esi], eax
jmp 0x10162de9
call fcn.101516d0
cmp ebx, 0x17f
jbe 0x10162ca8
mov ecx, esi
mov edx, edi
push dword [ebp - 0x10]
push ebx
call fcn.10151ca0
add esp, 8
jmp 0x10162de9
Function at 0x10167760
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
movaps xmm0, xmmword [0x10349710]
mov eax, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x34], 0
mov word [esp + 0x38], 0
mov dword [esp + 0x18], 0
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x30], 0
mov byte [esp + 0x34], 1
lea esi, [esp + 0x18]
lea ecx, [esp + 0x10]
push esi
push eax
call fcn.10158120
add esp, 8
cmp byte [esp + 0x10], 4
jne 0x101677c0
mov esi, dword [esp + 0x14]
jmp 0x1016781e
movzx eax, byte [esp + 0x10]
mov esi, dword [esp + 0x14]
cmp eax, 4
je 0x1016781e
cmp eax, 3
jne 0x10167813
mov edi, dword [esi + 4]
mov dword [esp + 4], ebx
mov ebx, dword [esi]
mov eax, dword [edi]
push ebx
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x10167801
cmp dword [edi + 8], 9
jb 0x101677f3
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x1038a110]
call sub.KERNEL32.dll_HeapFree
push esi
push 0
push dword [0x1038a110]
call sub.KERNEL32.dll_HeapFree
mov ebx, dword [esp + 4]
mov dword [ebx], 0
jmp 0x10167958
lea edi, [esp + 0x18]
mov edx, esi
mov ecx, edi
call fcn.10158350
mov eax, dword [esp + 0x18]
xor eax, 2
or eax, dword [esp + 0x1c]
jne 0x10167890
cmp byte [esp + 0x20], 3
jne 0x101678d1
mov eax, dword [esp + 0x24]
mov dword [esp + 4], ebx
mov ebx, dword [eax + 4]
mov edi, dword [eax]
mov dword [esp + 8], eax
mov eax, dword [ebx]
push edi
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x10167879
cmp dword [ebx + 8], 9
jb 0x1016786b
mov edi, dword [edi - 4]
push edi
push 0
push dword [0x1038a110]
call sub.KERNEL32.dll_HeapFree
push dword [esp + 8]
push 0
push dword [0x1038a110]
call sub.KERNEL32.dll_HeapFree
mov ebx, dword [esp + 4]
jmp 0x101678d1
cmp dword [esp + 0x54], 0
jne 0x101678d1
mov eax, dword [esp + 0x50]
test esi, esi
mov dword [esp + 8], eax
je 0x101678d9
mov dword [esp + 0x18], 0
call sub.KERNEL32.dll_GetCurrentProcess
push 2
push 0
push 0
push edi
push eax
push esi
push eax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x10167947
mov eax, dword [esp + 0x18]
mov dword [esp + 4], ebx
jmp 0x101678df
mov dword [ebx], 0
jmp 0x10167952
mov dword [esp + 4], ebx
xor eax, eax
push 0
push 0
push 0
push 2
push 0
mov dword [esp + 0x20], eax
push eax
call sub.KERNEL32.dll_CreateFileMappingA
test eax, eax
je 0x10167932
mov edi, eax
push dword [esp + 8]
push 0
push 0
push 4
push eax
call sub.KERNEL32.dll_MapViewOfFile
mov ebx, eax
push edi
call sub.KERNEL32.dll_CloseHandle
test ebx, ebx
je 0x10167932
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov dword [eax], 1
jmp 0x10167952
mov eax, dword [esp + 4]
mov dword [eax], 0
push dword [esp + 0xc]
call sub.KERNEL32.dll_CloseHandle
jmp 0x10167952
call sub.KERNEL32.dll_GetLastError
mov dword [ebx], 0
push esi
call sub.KERNEL32.dll_CloseHandle
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101680b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x101d40a0]
mov esi, ecx
test eax, eax
je 0x101680d9
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x101680f1
cmp dword [eax + 4], 0
je 0x101680f1
add eax, 8
pop esi
pop edi
pop ebp
ret
push 0x101d40a0
call fcn.10160f60
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x101680cc
mov eax, dword [0x101d40a0]
test eax, eax
je 0x101681a1
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x101681bd
mov edi, eax
test eax, eax
jne 0x10168169
mov eax, dword [0x103564a0]
movzx eax, byte [eax]
mov eax, dword [0x1038a110]
test eax, eax
jne 0x10168137
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101681d2
mov dword [0x1038a110], eax
push 0x10
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101681d2
mov dword [eax], 0x101d40a0
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x101d40a0]
test eax, eax
je 0x101681c3
dec eax
push edi
push eax
call sub.KERNEL32.dll_TlsSetValue
test esi, esi
je 0x10168189
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0
mov dword [esi], 0
cmp eax, 1
jne 0x1016818d
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x1016818d
xor ecx, ecx
xor edx, edx
mov dword [edi + 4], 1
mov dword [edi + 8], ecx
lea eax, [edi + 8]
mov byte [edi + 0xc], dl
pop esi
pop edi
pop ebp
ret
push 0x101d40a0
call fcn.10160f60
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x1016810e
xor eax, eax
pop esi
pop edi
pop ebp
ret
push 0x101d40a0
call fcn.10160f60
add esp, 4
jmp 0x10168162
push 0x10
push 4
call fcn.1001a7e0
add esp, 8
ud2
Function at 0x101681e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [0x101d40b0]
mov esi, ecx
test eax, eax
je 0x1016820d
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x10168225
cmp dword [eax + 4], 0
mov ebx, eax
je 0x10168225
add ebx, 8
jmp 0x10168302
push 0x101d40b0
call fcn.10160f60
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x101681fd
mov eax, dword [0x101d40b0]
test eax, eax
je 0x101682e4
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x10168300
mov edi, eax
test eax, eax
jne 0x1016829d
mov eax, dword [0x103564a0]
movzx eax, byte [eax]
mov eax, dword [0x1038a110]
test eax, eax
jne 0x1016826b
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x1016831b
mov dword [0x1038a110], eax
push 0x10
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1016831b
mov dword [eax], 0x101d40b0
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x101d40b0]
test eax, eax
je 0x10168309
dec eax
push edi
push eax
call sub.KERNEL32.dll_TlsSetValue
test esi, esi
je 0x101682b7
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
mov edx, eax
je 0x101682bb
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x101682bb
xor eax, eax
xor edx, edx
mov ecx, dword [edi + 0xc]
cmp dword [edi + 4], 0
lea ebx, [edi + 8]
mov dword [edi + 4], 1
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
je 0x10168302
test ecx, ecx
je 0x10168302
lock dec dword [ecx]
jne 0x10168302
call fcn.10133380
jmp 0x10168302
push 0x101d40b0
call fcn.10160f60
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x10168242
xor ebx, ebx
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x101d40b0
call fcn.10160f60
add esp, 4
jmp 0x10168296
push 0x10
push 4
call fcn.1001a7e0
add esp, 8
ud2
Function at 0x10168330
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x101d40c0]
mov esi, ecx
test eax, eax
je 0x10168359
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x10168371
cmp byte [eax + 4], 0
je 0x10168371
add eax, 5
pop esi
pop edi
pop ebp
ret
push 0x101d40c0
call fcn.10160f60
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x1016834c
mov eax, dword [0x101d40c0]
test eax, eax
je 0x10168405
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x10168421
mov edi, eax
test eax, eax
jne 0x101683e2
mov eax, dword [0x103564a0]
movzx eax, byte [eax]
mov eax, dword [0x1038a110]
test eax, eax
jne 0x101683b7
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x10168436
mov dword [0x1038a110], eax
push 8
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x10168436
mov dword [eax], 0x101d40c0
mov byte [eax + 4], 0
mov edi, eax
mov eax, dword [0x101d40c0]
test eax, eax
je 0x10168427
dec eax
push edi
push eax
call sub.KERNEL32.dll_TlsSetValue
xor ecx, ecx
test esi, esi
je 0x101683f7
cmp byte [esi], 0
mov byte [esi], 0
movzx eax, byte [esi + 1]
cmove eax, ecx
mov ecx, eax
mov byte [edi + 4], 1
lea eax, [edi + 5]
mov byte [edi + 5], cl
pop esi
pop edi
pop ebp
ret
push 0x101d40c0
call fcn.10160f60
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x1016838e
xor eax, eax
pop esi
pop edi
pop ebp
ret
push 0x101d40c0
call fcn.10160f60
add esp, 4
jmp 0x101683db
push 8
push 4
call fcn.1001a7e0
add esp, 8
ud2

Function at 0x10168450
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x101d40d0]
test eax, eax
je 0x10168475
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x1016848d
cmp byte [eax + 4], 0
je 0x1016848d
add eax, 5
pop esi
pop ebp
ret
push 0x101d40d0
call fcn.10160f60
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x10168469
mov eax, dword [0x101d40d0]
test eax, eax
je 0x10168523
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x1016853f
mov esi, eax
test eax, eax
jne 0x101684fe
mov eax, dword [0x103564a0]
movzx eax, byte [eax]
mov eax, dword [0x1038a110]
test eax, eax
jne 0x101684d3
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x10168553
mov dword [0x1038a110], eax
push 8
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x10168553
mov dword [eax], 0x101d40d0
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x101d40d0]
test eax, eax
je 0x10168544
dec eax
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov eax, dword [ebp + 8]
xor ecx, ecx
test eax, eax
je 0x10168516
cmp byte [eax], 0
mov byte [eax], 0
movzx eax, byte [eax + 1]
cmove eax, ecx
mov ecx, eax
mov byte [esi + 4], 1
lea eax, [esi + 5]
mov byte [esi + 5], cl
pop esi
pop ebp
ret
push 0x101d40d0
call fcn.10160f60
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x101684aa
xor eax, eax
pop esi
pop ebp
ret
push 0x101d40d0
call fcn.10160f60
add esp, 4
jmp 0x101684f7
push 8
push 4
call fcn.1001a7e0
add esp, 8
ud2
Function at 0x10168570
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x101d40e0]
test eax, eax
je 0x1016859a
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x101685b2
cmp dword [eax + 4], 0
mov edi, eax
je 0x101685b2
add edi, 8
jmp 0x1016868a
push 0x101d40e0
call fcn.10160f60
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x1016858a
mov eax, dword [0x101d40e0]
test eax, eax
je 0x1016866c
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x10168688
mov esi, eax
test eax, eax
jne 0x1016862a
mov eax, dword [0x103564a0]
movzx eax, byte [eax]
mov eax, dword [0x1038a110]
test eax, eax
jne 0x101685f8
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x1016869f
mov dword [0x1038a110], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1016869f
mov dword [eax], 0x101d40e0
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x101d40e0]
test eax, eax
je 0x10168690
dec eax
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10168665
mov eax, dword [ecx + 4]
cmp dword [ecx], 0
mov dword [ecx], 0
je 0x10168665
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
je 0x1016868a
test ecx, ecx
je 0x1016868a
lock dec dword [ecx]
jne 0x1016868a
call fcn.101332c0
jmp 0x1016868a
call fcn.10151130
jmp 0x1016863f
push 0x101d40e0
call fcn.10160f60
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x101685cf
xor edi, edi
mov eax, edi
pop esi
pop edi
pop ebp
ret
push 0x101d40e0
call fcn.10160f60
add esp, 4
jmp 0x10168623
push 0xc
push 4
call fcn.1001a7e0
add esp, 8
ud2
Function at 0x101686d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [0x101d40f0]
mov esi, ecx
test eax, eax
je 0x101686fd
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x10168715
cmp dword [eax + 4], 0
mov ebx, eax
je 0x10168715
add ebx, 8
jmp 0x101687e8
push 0x101d40f0
call fcn.10160f60
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x101686ed
mov eax, dword [0x101d40f0]
test eax, eax
je 0x101687ca
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x101687e6
mov edi, eax
test eax, eax
jne 0x1016878d
mov eax, dword [0x103564a0]
movzx eax, byte [eax]
mov eax, dword [0x1038a110]
test eax, eax
jne 0x1016875b
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101687fe
mov dword [0x1038a110], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101687fe
mov dword [eax], 0x101d40f0
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x101d40f0]
test eax, eax
je 0x101687ef
dec eax
push edi
push eax
call sub.KERNEL32.dll_TlsSetValue
test esi, esi
je 0x101687a2
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
je 0x101687a4
mov eax, dword [esi + 4]
jmp 0x101687a4
xor eax, eax
mov ecx, dword [edi + 8]
cmp dword [edi + 4], 0
lea ebx, [edi + 8]
mov dword [edi + 4], 1
mov dword [edi + 8], eax
je 0x101687e8
test ecx, ecx
je 0x101687e8
lock dec dword [ecx]
jne 0x101687e8
call fcn.10133250
jmp 0x101687e8
push 0x101d40f0
call fcn.10160f60
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x10168732
xor ebx, ebx
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x101d40f0
call fcn.10160f60
add esp, 4
jmp 0x10168786
push 0xc
push 4
call fcn.1001a7e0
add esp, 8
ud2
Function at 0x10168810
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x101d4100]
test eax, eax
je 0x10168925
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x10168840
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x10168920
mov eax, dword [0x101d4100]
test eax, eax
je 0x10168946
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x10168962
mov esi, eax
test eax, eax
jne 0x101688c3
mov eax, dword [0x103564a0]
movzx eax, byte [eax]
mov eax, dword [0x1038a110]
test eax, eax
jne 0x10168886
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x1016897e
mov dword [0x1038a110], eax
push 0x20
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1016897e
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x101d4100
mov esi, eax
mov eax, dword [0x101d4100]
test eax, eax
je 0x1016896c
dec eax
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov eax, dword [ebp + 8]
test eax, eax
je 0x101688e2
mov ecx, dword [eax]
movups xmm0, xmmword [eax + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
cmp ecx, 1
je 0x1016890f
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 2
push 0x10
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x10168901
movaps xmm0, xmmword [esp]
jmp 0x1016890f
lea ecx, [esp + 0x10]
call fcn.10160000
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
jmp 0x10168964
push 0x101d4100
call fcn.10160f60
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x10168833
jmp 0x10168840
push 0x101d4100
call fcn.10160f60
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x1016885d
xor esi, esi
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x101d4100
call fcn.10160f60
add esp, 4
jmp 0x101688bc
push 0x20
push 8
call fcn.1001a7e0
add esp, 8
ud2
Function at 0x10170f40
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
cmp dword [edx + 8], 0
mov esi, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], 0
je 0x10170fea
push 0x1034d67a
call sub.oleaut32.dll_SysAllocString
mov ebx, eax
push str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.oleaut32.dll_SysAllocString
mov edi, eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x50]
lea edx, [ebp - 0x14]
push edx
push 0
push 0x30
push edi
push ebx
push eax
call ecx
mov dword [ebp - 0x18], eax
push ebx
call sub.oleaut32.dll_SysFreeString
push edi
call sub.oleaut32.dll_SysFreeString
cmp dword [ebp - 0x18], 0
js 0x10170fea
mov ebx, dword [ebp - 0x14]
cmp dword [esi + 0x10], 0
je 0x10170fb9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10170fb9
mov ecx, dword [eax]
mov ecx, dword [ecx + 8]
push eax
call ecx
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], ebx
mov ecx, dword [ebp - 0x10]
movsd xmm1, qword [esi + 8]
mov eax, dword [esi + 0x18]
movsd xmm0, qword [esi]
movsd qword [ecx + 8], xmm1
movsd xmm1, qword [esi + 0x10]
mov dword [ecx + 0x18], eax
movsd qword [ecx], xmm0
movsd qword [ecx + 0x10], xmm1
jmp 0x10170ffa
mov eax, dword [ebp - 0x10]
mov dword [eax], 2
mov ecx, esi
call fcn.1016b860
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1017c960
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xffffffc0
sub esp, 0x180
movaps xmm0, xmmword [0x1034dbf0]
mov edi, dword [0x103564a0]
mov esi, dword [0x1035648c]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0xc0], 0
mov byte [esp + 0xc4], 0
mov dword [esp + 0xc8], 4
mov dword [esp + 0xcc], 0
movaps xmmword [esp + 0xd0], xmm0
mov byte [esp + 0xe0], 1
mov dword [esp + 0x100], 1
mov dword [esp + 0x104], 1
mov byte [esp + 0x108], 0
movzx eax, byte [edi]
mov eax, dword [esi]
test eax, eax
jne 0x1017ca17
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x1017cb72
mov dword [esi], eax
push 0x140
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1017cb72
mov ecx, eax
and ecx, 0xffffffc0
mov dword [ecx + 0x3c], eax
add ecx, 0x40
lea ebx, [esp + 0x40]
push 0x100
push ebx
mov dword [esp + 0x44], ecx
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
je 0x1017ca5b
mov ebx, dword [ecx + 4]
jmp 0x1017ca7d
xorps xmm0, xmm0
mov dword [esp + 0x60], 0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
push ebx
call sub.KERNEL32.dll_GetSystemInfo
mov ebx, dword [esp + 0x54]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x18]
movsd xmm0, qword [ecx + 0x10]
mov dword [esp + 0x58], eax
movsd qword [esp + 0x50], xmm0
movsd xmm0, qword [ecx + 8]
mov eax, dword [esp + 0x3c]
movsd qword [esp + 0x48], xmm0
mov dword [esp + 0x5c], 0
mov byte [esp + 0x60], 0
mov dword [esp + 0x64], 1
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 0
mov byte [esp + 0x70], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], 0
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], 1
movzx eax, byte [edi]
mov eax, dword [esi]
test eax, eax
jne 0x1017cb1d
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x1017cb83
mov dword [esi], eax
push 0x4c
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1017cb83
lea esi, [esp + 0x40]
mov ecx, 0x13
mov edi, eax
inc ebx
rep movsd dword es:[edi], dword [esi]
mov edi, eax
nop dword [eax + eax]
dec ebx
je 0x1017cb51
lock inc dword [edi]
jle 0x1017cb6e
mov ecx, edi
call fcn.1017cec0
jmp 0x1017cb40
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x3c]
mov dword [ecx], 1
mov dword [ecx + 4], eax
mov dword [ecx + 8], edi
mov eax, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
push 0x100
push 0x40
call fcn.1001a7e0
add esp, 8
jmp 0x1017cb8f
push 0x4c
push 4
call fcn.1001a7e0
add esp, 8
ud2
Function at 0x1018cbc0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
xorps xmm0, xmm0
mov edi, ecx
lea esi, [ebp - 0x30]
mov dword [ebp - 0x10], edx
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x30], xmm0
push 2
push 0x20
push esi
push 0
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x1018cbfd
mov ebx, eax
push 0x20
push esi
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x1018cc3f
movups xmm0, xmmword [ebp - 0x30]
movups xmm1, xmmword [ebp - 0x20]
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
movups xmmword [edi], xmm0
xorps xmm0, xmm0
movups xmmword [edi + 0x10], xmm1
movups xmmword [edi + 0x20], xmm0
mov edx, dword [ebp + 8]
add eax, 0xffffff00
adc ecx, 0xffffffff
mov dword [edi + 0x40], edx
mov edx, dword [ebp - 0x10]
mov dword [edi + 0x3c], ecx
mov ecx, edi
mov dword [edi + 0x38], eax
call fcn.1018d100
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x103564a0]
mov esi, dword [0x1035648c]
movzx eax, byte [eax]
mov eax, dword [esi]
test eax, eax
jne 0x1018cc5e
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x1018cc86
mov dword [esi], eax
push 4
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1018cc86
add ebx, 0x80000000
mov dword [eax], ebx
push eax
push 0
push dword [esi]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
jmp 0x1018cc19
push 4
push 4
call fcn.1001a7e0
add esp, 8
ud2