joyce8/EMBER2024-capa huggingface dataset:
Function at 0xad8c90
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0xc05fa8]
xorpd xmm0, xmm0
xor eax, ebp
mov dword [esp + 0x30], eax
movsd xmm1, qword [0xc07c08]
ucomisd xmm1, xmm0
jne 0xad8e14
jp 0xad8e14
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esp + 0xc], eax
call edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [0xc09ccc]
mov edx, dword fs:[0x2c]
mov eax, dword [0xc07c18]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0xad8e39
mov ecx, dword [0xc09ccc]
mov edx, dword fs:[0x2c]
mov eax, dword [0xc07c28]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0xad8e72
rdtsc
lea esi, [esp + 0x28]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 8], eax
mov dword [esp + 4], edx
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub edi, dword [0xc07c20]
movsd xmm2, qword [0xbb7cc0]
sbb ebx, dword [0xc07c24]
movd xmm1, edi
fild qword [esp + 0x28]
fstp qword [esp + 0x20]
movd xmm0, ebx
punpckldq xmm1, xmm0
punpckldq xmm1, xmmword [0xbb2970]
subpd xmm1, xmmword [0xbb2980]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
xorpd xmm1, xmm1
divsd xmm0, qword [esp + 0x20]
ucomisd xmm2, xmm0
ja 0xad8e14
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub eax, dword [0xc07c10]
sbb ecx, dword [0xc07c14]
movd xmm2, eax
movd xmm1, ecx
punpckldq xmm2, xmm1
punpckldq xmm2, xmmword [0xbb2970]
subpd xmm2, xmmword [0xbb2980]
movapd xmm1, xmm2
unpckhpd xmm1, xmm2
addsd xmm1, xmm2
divsd xmm1, xmm0
movsd qword [0xc07c08], xmm1
movsd qword [esp + 0x18], xmm1
fld qword [esp + 0x18]
fstp xword [esp + 0xc]
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.00b868d1
fld xword [esp + 0xc]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xc07c18
call fcn.00b86917
add esp, 4
cmp dword [0xc07c18], 0xffffffff
jne 0xad8d02
rdtsc
mov dword [0xc07c10], eax
mov dword [0xc07c14], edx
push 0xc07c18
call fcn.00b8698d
add esp, 4
jmp 0xad8d02
push 0xc07c28
call fcn.00b86917
add esp, 4
cmp dword [0xc07c28], 0xffffffff
jne 0xad8d23
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [0xc07c24], ecx
mov dword [0xc07c20], eax
push 0xc07c28
call fcn.00b8698d
add esp, 4
jmp 0xad8d23
Function at 0xae0930
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0xae093f
test eax, eax
jne 0xae096f
cmp byte [0xc07c68], 1
jne 0xae096f
push dword [0xc07c6c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0xae096f
push eax
call fcn.00aa4fe0
add esp, 4
push 0
push dword [0xc07c6c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop ebp
ret 0xc
Function at 0xae0d4f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0xc05fa8]
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, ebp
mov dword [esp + 0x20], eax
push 0xbba7f8
call fcn.00abdc5e
mov ecx, edi
push 0xbba806
call fcn.00abdc5e
cmp byte [esi + 0xb], 0
js 0xae0d99
mov word [esi], 0
mov byte [esi + 0xb], 0
jmp 0xae0da7
mov eax, dword [esi]
mov word [eax], 0
mov dword [esi + 4], 0
mov dword [esp + 0x1c], 0
mov eax, ebx
cmp byte [ebx + 0xb], 0
jns 0xae0db9
mov eax, dword [ebx]
mov edi, dword [ebp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0xae0f1f
mov esi, eax
push eax
call fcn.00b868c3
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x1c]
cmp byte [ebx + 0xb], 0
jns 0xae0de8
mov ebx, dword [ebx]
push edi
push esi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0xae0f13
lea esi, [esp + 0x10]
mov ecx, esi
push 0xbba822
call fcn.00aa2768
mov ecx, edi
mov edx, esi
push dword [ebp + 0x10]
call fcn.00ae0f86
add esp, 4
cmp byte [esi + 0xb], 0
jns 0xae0e2a
push dword [esp + 0x10]
call fcn.00b86896
add esp, 4
xor eax, eax
lea ebx, [esp + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov ecx, ebx
push 0xbba840
call fcn.00aa2768
mov ecx, edi
mov edx, ebx
push esi
call fcn.00ae0f86
add esp, 4
cmp byte [ebx + 0xb], 0
jns 0xae0e67
push dword [esp + 4]
call fcn.00b86896
add esp, 4
movzx eax, byte [esp + 0x1b]
test al, al
jns 0xae0e74
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0xae0e91
lea ecx, [esp + 0x10]
push 1
push 0xbb7f42
push 0xffffffffffffffff
push 0
call fcn.00abe1ca
test eax, eax
je 0xae0e9e
mov ecx, dword [ebp + 0x10]
push 0xbba85e
call fcn.00abdae2
lea esi, [esp + 4]
mov ecx, esi
push 0xbba86c
call fcn.00aa2768
mov ecx, edi
mov edx, esi
push dword [ebp + 0xc]
call fcn.00ae0f86
add esp, 4
cmp byte [esi + 0xb], 0
jns 0xae0ecf
push dword [esp + 4]
call fcn.00b86896
add esp, 4
lea esi, [esp + 4]
mov ecx, esi
push 0xbba88e
call fcn.00aa2768
mov ecx, edi
mov edx, esi
push dword [ebp + 0x14]
call fcn.00ae0f86
add esp, 4
cmp byte [esi + 0xb], 0
jns 0xae0f00
push dword [esp + 4]
call fcn.00b86896
add esp, 4
cmp byte [esp + 0x1b], 0
jns 0xae0f13
push dword [esp + 0x10]
call fcn.00b86896
add esp, 4
push edi
call fcn.00b868cc
add esp, 4
mov edi, dword [ebp + 0x18]
lea eax, [esp + 0x10]
push eax
call fcn.00ae10cb
add esp, 4
cmp byte [edi + 0xb], 0
js 0xae0f3d
mov word [edi], 0
mov byte [edi + 0xb], 0
jmp 0xae0f62
mov eax, dword [edi]
mov word [eax], 0
mov dword [edi + 4], 0
cmp byte [edi + 0xb], 0
jns 0xae0f62
push dword [edi]
call fcn.00b86896
add esp, 4
mov dword [edi + 8], 0
mov eax, dword [esp + 0x18]
mov dword [edi + 8], eax
movsd xmm0, qword [esp + 0x10]
movsd qword [edi], xmm0
mov ecx, dword [esp + 0x20]
xor ecx, ebp
call fcn.00b868d1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0xae0f86
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0xc05fa8]
mov esi, ecx
mov ecx, dword [ebp + 8]
mov edi, edx
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
js 0xae0fb4
mov word [ecx], 0
mov byte [ecx + 0xb], 0
jmp 0xae0fc2
mov eax, dword [ecx]
mov word [eax], 0
mov dword [ecx + 4], 0
test esi, esi
je 0xae10b6
lea eax, [ebp - 0x20]
xor ecx, ecx
lea edx, [ebp - 0x228]
mov dword [edx], ecx
mov dword [eax], ecx
push eax
push edx
push 0xbba8e6
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0xae10b6
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x234], esi
movzx ebx, word [eax]
movzx esi, word [eax + 2]
mov word [ebp - 0x20], bx
mov word [ebp - 0x1e], si
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0x1c], ax
mov word [ebp - 0x1a], si
mov si, 0x4e4
mov word [ebp - 0x18], bx
mov word [ebp - 0x16], si
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], si
mov esi, 2
movzx eax, word [ebp + esi*2 - 0x22]
cmp byte [edi + 0xb], 0
mov ecx, edi
jns 0xae1045
mov ecx, dword [edi]
movzx edx, bx
push ecx
push eax
push edx
push 0xbba8a8
mov eax, 0x104
push eax
push eax
lea eax, [ebp - 0x228]
mov ebx, eax
push eax
call fcn.00ae115e
add esp, 0x1c
xor eax, eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x22c]
push eax
push ebx
push dword [ebp - 0x234]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0xae109e
mov eax, dword [ebp - 0x22c]
test eax, eax
jne 0xae10ad
cmp esi, 7
ja 0xae10b6
movzx ebx, word [ebp + esi*2 - 0x20]
add esi, 2
jmp 0xae1036
mov ecx, dword [ebp + 8]
push eax
call fcn.00abdc5e
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00b868d1
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0xae4b74
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + 0x3c]
movzx edx, word [ecx + eax + 6]
test edx, edx
je 0xae4bbf
add eax, ecx
xor ebx, ebx
movzx esi, word [eax + 0x14]
lea edi, [eax + esi + 0x18]
xor esi, esi
test edi, edi
je 0xae4bbf
mov eax, dword [edi + ebx + 0xc]
test eax, eax
je 0xae4bac
add eax, ecx
cmp eax, dword [ebp + 8]
jbe 0xae4bae
jmp 0xae4bb7
xor eax, eax
add eax, dword [edi + ebx + 8]
cmp eax, dword [ebp + 8]
ja 0xae4bc8
inc esi
add ebx, 0x28
cmp esi, edx
jb 0xae4b97
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 4
add edi, ebx
mov eax, edi
jmp 0xae4bc1

Function at 0xae4c6a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, dword [ebp + 0xc]
test edi, edi
je 0xae4d4d
mov eax, dword [ecx + 4]
mov ebx, ecx
mov edx, dword [eax + 0x3c]
cmp dword [eax + edx + 0x74], 0
je 0xae4d4d
cmp word [eax + edx + 0x14], 0x68
jb 0xae4d4d
mov esi, dword [ebx]
mov ecx, ebx
push dword [eax + edx + 0x78]
call dword [esi + 4]
test eax, eax
je 0xae4d4d
mov esi, eax
mov eax, dword [ebp + 8]
cmp eax, 0xffff
ja 0xae4cc4
mov word [edi], ax
jmp 0xae4d7a
mov eax, dword [ebx]
mov ecx, ebx
push dword [esi + 0x20]
call dword [eax + 4]
mov edi, eax
mov eax, dword [esi + 0x18]
lea ecx, [eax*4]
test ecx, ecx
je 0xae4d4d
mov dword [ebp - 0x10], ebx
lea ebx, [edi + eax*4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
inc eax
mov dword [ebp - 0x1c], eax
mov eax, ebx
sub eax, edi
mov ecx, eax
shr eax, 0x1f
sar ecx, 2
add eax, ecx
mov ecx, dword [ebp - 0x10]
and eax, 0xfffffffe
lea esi, [edi + eax*2]
mov eax, dword [ecx]
push dword [esi]
call dword [eax + 4]
mov ecx, dword [ebp + 8]
mov cl, byte [ecx]
test cl, cl
je 0xae4d27
mov edx, dword [ebp - 0x1c]
cmp cl, byte [eax]
jne 0xae4d29
mov cl, byte [edx]
inc eax
inc edx
test cl, cl
jne 0xae4d1b
xor ecx, ecx
movzx eax, byte [eax]
movzx ecx, cl
mov edx, ecx
sub edx, eax
test edx, edx
lea edx, [esi + 4]
cmovg edi, edx
sub ecx, eax
cmovs ebx, esi
cmove edi, esi
je 0xae4d49
cmp edi, ebx
jne 0xae4cf1
test ecx, ecx
je 0xae4d59
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov eax, dword [ecx]
push dword [esi + 0x24]
call dword [eax + 4]
sub edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
sar edi, 1
movzx eax, word [eax + edi]
add ax, word [esi + 0x10]
mov word [ecx], ax
mov al, 1
jmp 0xae4d4f

Function at 0xae81e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test ecx, ecx
je 0xae8216
mov edx, dword [ebp + 0xc]
nop word cs:[eax + eax]
nop dword [eax]
movzx edi, byte [edx]
movzx esi, al
shr eax, 8
inc edx
xor edi, esi
xor eax, dword [edi*4 + 0xbbb22c]
dec ecx
jne 0xae8200
pop esi
pop edi
pop ebp
ret
Function at 0xae8620
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1408
call fcn.00b86ce0
mov eax, dword [0xc05fa8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0xc05fb8]
cmp eax, 0xffffffff
je 0xae876f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0xae876f
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.00b8a240
add esp, 0xc
mov ecx, dword [0xc05fb8]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1414], ecx
push ecx
call fcn.00b01960
add esp, 8
test ebx, ebx
je 0xae869b
push ebx
call fcn.00b868cc
add esp, 4
mov ecx, dword [0xc09ccc]
mov edx, dword fs:[0x2c]
mov eax, dword [0xc0a910]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0xae8784
mov esi, dword [0xc0a90c]
mov ecx, esi
call fcn.00ad0040
lea eax, [ebp - 0x1410]
push 0xc00
push 0xc09d0c
push eax
call fcn.00b8a240
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov esi, 0x100
mov al, 1
test al, 1
jne 0xae870c
jmp 0xae875f
cmp esi, 2
lea esi, [esi - 1]
jb 0xae875f
test al, 1
je 0xae875f
mov ebx, 0xfffff400
xor eax, eax
lea edi, [ebp - 0x810]
jmp 0xae8728
add edi, 8
add ebx, 0xc
je 0xae8700
mov ecx, dword [edi]
test ecx, ecx
je 0xae8720
cmp dword [ebp + ebx - 0x810], 0
je 0xae8720
mov edx, dword [edi + 4]
cmp edx, dword [ebp + ebx - 0x808]
jne 0xae8720
mov edx, dword [ebp + ebx - 0x80c]
test edx, edx
je 0xae8720
mov dword [edi], 0
push ecx
call edx
add esp, 4
mov al, 1
jmp 0xae8720
push 2
push dword [ebp - 0x1414]
call fcn.00b01960
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00b868d1
add esp, 0x1408
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xc0a910
call fcn.00b86917
add esp, 4
cmp dword [0xc0a910], 0xffffffff
jne 0xae86bc
push 4
call fcn.00b86866
add esp, 4
mov ecx, eax
mov esi, eax
call fcn.00ad0030
mov dword [0xc0a90c], esi
push 0xc0a910
call fcn.00b8698d
add esp, 4
jmp 0xae86bc
Function at 0xae8800
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xac
mov eax, dword [0xc05fa8]
mov esi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0xc05fb8]
cmp eax, 0xffffffff
je 0xae882d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0xae8832
call fcn.00ae89c0
mov ecx, dword [0xc09ccc]
mov edx, dword fs:[0x2c]
mov eax, dword [0xc0a910]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0xae8974
mov edi, dword [0xc0a90c]
mov ecx, edi
call fcn.00ad0040
mov eax, dword [0xc09d08]
mov ecx, 0x100
inc eax
nop dword [eax + eax]
movzx edx, al
lea ebx, [edx + edx*2]
cmp dword [ebx*4 + 0xc09d0c], 0
je 0xae8886
inc eax
dec ecx
jne 0xae8870
jmp 0xae88b6
mov ecx, dword [ebp + 8]
lea eax, [ebx*4 + 0xc09d0c]
mov dword [0xc09d08], edx
mov dword [eax], 1
lea eax, [edx*4]
mov dword [eax + eax*2 + 0xc09d10], ecx
mov dword [esi], edx
mov eax, dword [eax + eax*2 + 0xc09d14]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi]
mov dword [ebp - 0xb8], 0xffffffff
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0xae890c
lea eax, [ebp - 0xb8]
lea ecx, [ebp - 0x14]
push 0xbbb62c
push eax
push ecx
call fcn.00ac6b90
add esp, 0xc
test eax, eax
je 0xae890c
lea edi, [ebp - 0xb8]
mov ecx, edi
push eax
push 0x196
push str..._.._base_threading_thread_local_storage.cc
call fcn.00ac7d80
mov ecx, edi
call fcn.00ac6f60
mov eax, dword [esi]
mov dword [ebp - 0xb8], 0x100
cmp eax, 0xff
mov dword [ebp - 0x14], eax
jle 0xae895d
lea eax, [ebp - 0xb8]
lea ecx, [ebp - 0x14]
push str.slot____kThreadLocalStorageSize
push eax
push ecx
call fcn.00ac6b90
add esp, 0xc
test eax, eax
je 0xae895d
lea esi, [ebp - 0xb8]
mov ecx, esi
push eax
push 0x197
push str..._.._base_threading_thread_local_storage.cc
call fcn.00ac7d80
mov ecx, esi
call fcn.00ac6f60
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00b868d1
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret 4
push 0xc0a910
call fcn.00b86917
add esp, 4
cmp dword [0xc0a910], 0xffffffff
jne 0xae8853
push 4
call fcn.00b86866
add esp, 4
mov ecx, eax
mov edi, eax
call fcn.00ad0030
mov dword [0xc0a90c], edi
push 0xc0a910
call fcn.00b8698d
add esp, 4
jmp 0xae8853
Function at 0xaf4ba0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x160
mov eax, dword [0xc05fa8]
xor eax, ebp
mov dword [esp + 0x158], eax
mov ecx, dword [0xc09ccc]
mov edx, dword fs:[0x2c]
mov eax, dword [0xc0a9c8]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0xaf4bf5
mov ecx, dword [esp + 0x158]
xor ecx, ebp
call fcn.00b868d1
mov eax, 0xc0a9c4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xc0a9c8
call fcn.00b86917
add esp, 4
cmp dword [0xc0a9c8], 0xffffffff
jne 0xaf4bda
lea eax, [esp + 0x40]
push 0x118
push 0
push eax
call fcn.00b8ad40
add esp, 0xc
lea edi, [esp + 0x3c]
mov dword [esp + 0x3c], 0x11c
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0
push 0
push dword [esp + 0x50]
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x50
call fcn.00b86866
add esp, 4
mov ecx, dword [0xc09ccc]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0xc0a9f0]
mov ebx, dword [esp + 0xc]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0xaf4ca4
mov ecx, esi
push ebx
push 0xc0a9cc
push edi
call fcn.00af4e40
mov dword [0xc0a9c4], esi
push 0xc0a9c8
call fcn.00b8698d
add esp, 4
jmp 0xaf4bda
push 0xc0a9f0
call fcn.00b86917
add esp, 4
cmp dword [0xc0a9f0], 0xffffffff
jne 0xaf4c7e
xorps xmm0, xmm0
lea eax, [esp + 0x10]
mov dword [esp + 0x30], 0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movsd xmm1, qword [esp + 0x20]
mov eax, dword [esp + 0x30]
movsd xmm0, qword [esp + 0x28]
movsd xmm2, qword [esp + 0x10]
movsd qword [0xc0a9dc], xmm1
movsd xmm1, qword [esp + 0x18]
mov dword [0xc0a9ec], eax
movsd qword [0xc0a9e4], xmm0
movsd qword [0xc0a9cc], xmm2
movsd qword [0xc0a9d4], xmm1
push 0xc0a9f0
call fcn.00b8698d
add esp, 4
jmp 0xaf4c7e
Function at 0xb227d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov ecx, dword [0xc05fa8]
mov eax, dword [ebp + 0xc]
xor ecx, ebp
cmp eax, 3
mov dword [ebp - 0xc], ecx
jne 0xb22864
push 0xb22880
push 0xc0b250
call fcn.00b2277c
add esp, 8
cmp dword [0xc0b254], 0
jne 0xb22864
push dword [0xc0b258]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0xb22864
mov esi, eax
mov edi, 0xc0b25c
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [0xc0b268]
movsd xmm0, qword [0xc0b260]
mov dword [ebp - 0x10], eax
movsd qword [ebp - 0x18], xmm0
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov edi, 0xfffffff4
mov eax, dword [ebp + edi - 0xc]
test eax, eax
je 0xb22856
push dword [esi + edi + 0xc]
call eax
add esp, 4
add edi, 4
jne 0xb22845
push esi
call 0xb217ec
add esp, 4
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00b868d1
add esp, 0x10
pop esi
pop edi
pop ebp
ret 0xc

Function at 0xb2f4fc
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [0xc05fa8]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0x2c], 0
je 0xb2f60f
mov esi, ecx
lea edx, [ecx + 0x24]
lea eax, [ebp - 0x58]
lea edi, [ebp - 0x5c]
mov ecx, edi
push eax
push 2
call fcn.00b2f636
add esp, 8
mov edx, dword [edi]
test edx, edx
je 0xb2f616
cmp dword [edx], 0
mov dword [ebp - 0x64], esi
je 0xb2f5fb
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], edx
add eax, 0x18
mov dword [ebp - 0x6c], eax
xor eax, eax
test dword [edx + eax*8 + 8], 0xc0000020
mov dword [ebp - 0x60], eax
jne 0xb2f5ef
cmp dword [ebp + 8], 0
je 0xb2f5b2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp dword [eax + 4], ecx
je 0xb2f5b2
xor ebx, ebx
xor edi, edi
mov eax, dword [ebp - 0x60]
add ecx, ebx
mov esi, dword [edx + eax*8 + 4]
call fcn.00b2fec4
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov edx, dword [ebp - 0x68]
test eax, eax
jne 0xb2f5ef
mov eax, dword [ebp + 8]
inc edi
add ebx, 0x44
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
imul eax, eax, 0xf0f0f0f1
cmp edi, eax
jb 0xb2f57a
mov eax, dword [ebp - 0x60]
lea edi, [ebp - 0x54]
mov ecx, edi
push dword [edx + eax*8 + 4]
call fcn.00b2fc08
mov esi, dword [ebp - 0x64]
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
jae 0xb2f5e3
mov ebx, 0x44
push ebx
push edi
push eax
call fcn.00b8a240
add esp, 0xc
add dword [esi + 0x1c], ebx
jmp 0xb2f5ec
mov ecx, dword [ebp - 0x6c]
push edi
call fcn.00afeaa0
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x60]
inc eax
cmp eax, dword [edx]
jb 0xb2f555
mov dword [ebp - 0x5c], 0
push edx
call fcn.00b868cc
add esp, 4
xor esi, esi
jmp 0xb2f620
mov esi, 0x3f0
jmp 0xb2f620
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00b868d1
mov eax, esi
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0xb33c74
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
call fcn.00b05c90
test al, al
je 0xb33c98
push 0x32
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edi, [esi + 0x20]
mov ecx, edi
push 0
call fcn.00b33cf8
mov eax, dword [esi + 0x30]
test eax, eax
je 0xb33cb7
mov dword [esi + 0x34], eax
push eax
call fcn.00b86896
add esp, 4
mov eax, dword [esi + 0x2c]
xor ecx, ecx
mov dword [esi + 0x2c], ecx
test eax, eax
je 0xb33ccc
push eax
call fcn.00ad85d0
add esp, 4
mov ecx, edi
push 0
call fcn.00b33cf8
lea ecx, [esi + 0x18]
call fcn.00aa1c80
lea ecx, [esi + 0x14]
call fcn.00aa1c80
lea ecx, [esi + 0x10]
call fcn.00aa1c80
mov ecx, esi
pop esi
pop edi
pop ebp
jmp fcn.00b05ba0