joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1c8e8d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, ecx
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [esp + 0x78], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
lea edi, [esp + 0x10]
push 0x3e
push str....._base_files_file_win.cc
push str.Read
push edi
call fcn.01c67b60
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push edi
call fcn.01c7f810
mov ebx, 0xffffffff
cmp dword [ebp + 0xc], 0
js 0x1c8e9d8
mov eax, dword [ebp + 0x14]
test eax, eax
js 0x1c8e9d8
mov ebx, eax
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.01c91700
test al, al
je 0x1c8e974
lea ecx, [esp + 0x28]
push 0
push ebx
push esi
push str.File::Read
call fcn.01c91810
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
push edi
push eax
push ebx
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1c8e9bf
mov ebx, dword [esp + 0xc]
test ebx, ebx
jns 0x1c8e9cf
int3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [esp + 0x28]
call fcn.01c917a0
lea ecx, [esp + 0x30]
call fcn.01c7f890
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10

Function at 0x1c8ea00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
lea ebx, [esp + 0x10]
push 0x5b
push str....._base_files_file_win.cc
push str.ReadAtCurrentPos
push ebx
call fcn.01c67b60
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push ebx
call fcn.01c7f810
test edi, edi
js 0x1c8eab9
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.01c91700
test al, al
je 0x1c8ea8f
lea ecx, [esp + 0x10]
push 0
push edi
push esi
push str.File::ReadAtCurrentPos
call fcn.01c91810
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
push 0
push eax
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1c8eac0
mov ebx, dword [esp + 0xc]
test ebx, ebx
jns 0x1c8ead0
int3
mov ebx, 0xffffffff
jmp 0x1c8ead9
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [esp + 0x10]
call fcn.01c917a0
lea ecx, [esp + 0x20]
call fcn.01c7f890
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x1c8eb00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, ecx
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [esp + 0x78], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
lea ebx, [esp + 0x10]
push 0x7b
push str....._base_files_file_win.cc
push str.Write
push ebx
call fcn.01c67b60
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push ebx
call fcn.01c7f810
mov edi, 0xffffffff
cmp dword [ebp + 0xc], 0
js 0x1c8ebef
cmp dword [ebp + 0x14], 0
js 0x1c8ebef
mov edi, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.01c91700
test al, al
je 0x1c8eba2
lea ecx, [esp + 0x28]
push 0
push dword [ebp + 0x14]
push esi
push str.File::Write
call fcn.01c91810
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
push ebx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
cmp eax, 1
sbb edi, edi
or edi, dword [esp + 0xc]
lea ecx, [esp + 0x28]
call fcn.01c917a0
lea ecx, [esp + 0x30]
call fcn.01c7f890
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10

Function at 0x1c8ec10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
lea ebx, [esp + 0x10]
push 0x93
push str....._base_files_file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.01c67b60
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push ebx
call fcn.01c7f810
test edi, edi
js 0x1c8ecd1
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.01c91700
test al, al
je 0x1c8eca2
lea ecx, [esp + 0x10]
push 0
push edi
push esi
push str.File::WriteAtCurrentPos
call fcn.01c91810
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
push 0
push eax
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
call fcn.01c917a0
jmp 0x1c8ecd6
mov esi, 0xffffffff
lea ecx, [esp + 0x20]
call fcn.01c7f890
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x1c8edc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
lea esi, [esp + 0x10]
push 0x16f
push str....._base_files_file_win.cc
push str.DoInitialize
push esi
call fcn.01c67b60
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push esi
call fcn.01c7f810
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov ecx, 1
cmove ecx, eax
test bl, 4
mov edx, 4
cmovne ecx, edx
test bl, 8
mov esi, 2
cmove esi, ecx
test bl, 0x10
mov eax, 5
cmove eax, esi
test eax, eax
je 0x1c8ef73
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov ecx, ebx
and ecx, 0x40
shl ecx, 0x18
test bl, 0x80
cmove edx, ecx
mov ecx, ebx
rol ecx, 0x1a
mov esi, ebx
shl esi, 0xb
and esi, 0x20000000
mov edi, ebx
shr edi, 4
and edi, 0x10000
and ecx, 0x80000100
or ecx, esi
or ecx, edi
or ecx, edx
mov esi, ebx
shr esi, 8
and esi, 3
mov edx, ebx
shr edx, 0xd
and edx, 4
or edx, esi
mov esi, ebx
and esi, 0x400
mov eax, ebx
mov dword [esp + 0xc], esi
mov ebx, esi
shl ebx, 0x14
mov esi, eax
shr esi, 3
and esi, 0x100
or esi, ebx
mov edi, eax
shr edi, 0xb
and edi, 2
or edi, esi
mov esi, eax
shl esi, 0xd
and esi, 0x4000000
or esi, edi
mov edi, eax
shl edi, 8
and edi, 0xa000000
or edi, esi
mov esi, dword [ebp + 8]
xor edx, 3
cmp byte [esi + 0xb], 0
jns 0x1c8eeff
mov esi, dword [esi]
mov ebx, dword [esp + 8]
mov eax, dword [esp + 4]
push 0
push edi
push eax
push 0
push edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp dword [ebx], eax
je 0x1c8ef59
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebx]
inc eax
cmp eax, 2
jb 0x1c8ef41
call fcn.01c67b90
push dword [ebx]
call fcn.01c6d8e0
add esp, 4
mov dword [ebx], 0
mov eax, edi
inc eax
cmp eax, 2
jb 0x1c8ef50
mov dword [ebx], edi
call fcn.01c67b90
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebx]
inc edi
cmp edi, 2
jae 0x1c8ef84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01c8ed00
add esp, 4
mov dword [ebx + 0x14], eax
jmp 0x1c8efb5
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [edi + 0x14], 0xffffffff
jmp 0x1c8efb5
mov eax, dword [esp + 0xc]
shr eax, 0xa
mov dword [ebx + 0x14], 0
mov byte [ebx + 0x19], al
mov eax, dword [ebp + 0xc]
test al, 4
jne 0x1c8efa6
test al, 0xa
je 0x1c8efb5
mov byte [ebx + 0x18], 1
jmp 0x1c8efb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [ebx + 0x18]
lea ecx, [esp + 0x20]
call fcn.01c7f890
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.01cb0ac3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x1c98a20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1d0d090]
mov ecx, dword [0x1cfb0d8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c98a4b
mov ecx, 0x1d0d088
pop ebp
jmp fcn.01c7eb00
push 0x1d0d090
call fcn.01cafb77
add esp, 4
cmp dword [0x1d0d090], 0xffffffff
jne 0x1c98a40
mov dword [0x1d0d08c], 0
mov dword [0x1d0d088], 0
mov ecx, 0x1d0d088
push 0
call fcn.01c7eb70
push 0x1d0d090
call fcn.01cafbed
add esp, 4
jmp 0x1c98a40

Function at 0x1c99ad0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [esp + 0x18], eax
mov edi, dword [ecx + 0x38]
test edi, edi
jne 0x1c99b95
mov esi, ecx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0x9ffffff
lea edx, [esp + 0xc]
cmp edx, str.discarded
ja 0x1c99b27
lea eax, [esp + 0x15]
cmp eax, str.discarded
ja 0x1c99bac
mov dword [esp + 0x10], 0x65647261
mov dword [esp + 0xc], 0x63736964
mov word [esp + 0x14], 0x64
mov edi, esp
mov ecx, esi
push edx
push edi
call fcn.01c99a40
push 0x48
call fcn.01cafad0
add esp, 4
mov ebx, eax
mov ecx, eax
push edi
push dword [esi + 0x28]
lea eax, [esp + 0x14]
push eax
call fcn.01c9b180
mov edi, dword [esi + 0x38]
mov dword [esi + 0x38], ebx
test edi, edi
je 0x1c99b7f
mov ecx, edi
call fcn.01c9b270
push edi
call fcn.01cafb00
add esp, 4
cmp byte [esp + 0x17], 0
jns 0x1c99b92
push dword [esp + 0xc]
call fcn.01cafb00
add esp, 4
mov edi, dword [esi + 0x38]
mov ecx, dword [esp + 0x18]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
push str.char_traits::copy_overlapped_range
push str.__s2_____s1____s2_____s1__n
push 0xec
push str....._buildtools_third_partylibc_trunkinclude__stringchar_traits.h
push str._s:_d:_assertion__s_failed:__s
call fcn.01c36838
int3
Function at 0x1c9dd20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x1c9dd31
test eax, eax
jne 0x1c9dd81
test eax, eax
jne 0x1c9dd47
mov ecx, dword [0x1d0d108]
test ecx, ecx
je 0x1c9dd47
call dword [section..00cfg]
call ecx
cmp dword [0x1d0d100], 0
je 0x1c9dd81
mov esi, dword [0x1d0d104]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x1c9dd87
test esi, esi
je 0x1c9dd81
mov ecx, dword [0x1d0d100]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
pop esi
pop edi
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x1c9dd6f
jmp 0x1c9dd81
Function at 0x1c9fff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov eax, dword [ebp + 0x14]
mov ecx, dword [0x1cf7014]
xor ecx, ebp
mov dword [esp + 0x88], ecx
xor esi, esi
cmp eax, 0x30
ja 0x1ca0245
mov ecx, dword [ebp + 0xc]
movups xmm0, xmmword [ecx + 0x20]
movaps xmmword [esp + 0x40], xmm0
movdqu xmm0, xmmword [ecx]
movdqu xmm1, xmmword [ecx + 0x10]
movdqa xmmword [esp + 0x30], xmm1
movdqa xmmword [esp + 0x20], xmm0
test eax, eax
je 0x1ca005d
mov ecx, dword [ebp + 0x10]
xor edx, edx
nop word cs:[eax + eax]
movzx ebx, byte [ecx + edx]
xor byte [esp + edx + 0x20], bl
inc edx
cmp eax, edx
jne 0x1ca0050
mov esi, dword [ebp + 8]
xor eax, eax
nop word cs:[eax + eax]
movzx ecx, byte [eax + 0x1ceffb0]
xor byte [esp + eax + 0x20], cl
inc eax
cmp eax, 0x30
jne 0x1ca0070
lea edi, [esi + 0xf4]
mov eax, dword [0x1d0d110]
test eax, 0x2000000
jne 0x1ca01db
test eax, 0x200
jne 0x1ca01fa
mov dword [esp + 0xc], edi
mov dword [esi + 0xf0], 0xe
movaps xmm0, xmmword [esp + 0x20]
movaps xmmword [esp + 0x70], xmm0
movups xmmword [esi], xmm0
movaps xmm0, xmmword [esp + 0x30]
movaps xmmword [esp + 0x60], xmm0
movups xmmword [esi + 0x10], xmm0
mov edi, 0x30
mov ebx, 0x1cf0000
movdqa xmm0, xmmword [esp + 0x70]
movdqa xmmword [esp + 0x10], xmm0
lea esi, [esp + 0x50]
nop word cs:[eax + eax]
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
mov ecx, esi
lea edx, [esp + 0x60]
call fcn.01ca09e0
movzx eax, byte [ebx]
movd xmm1, eax
pxor xmm1, xmmword [esp + 0x10]
movdqa xmm0, xmmword [esp + 0x50]
movdqa xmm2, xmm0
psrld xmm2, 8
pslld xmm0, 0x18
por xmm0, xmm2
psrldq xmm0, 0xc
pxor xmm0, xmm1
movdqa xmm1, xmm0
pslldq xmm1, 4
movdqa xmm2, xmm0
pslldq xmm2, 8
pxor xmm2, xmm1
movdqa xmm1, xmm0
pslldq xmm1, 0xc
pxor xmm1, xmm2
pxor xmm1, xmm0
movdqa xmmword [esp + 0x70], xmm1
movaps xmm0, xmmword [esp + 0x70]
mov eax, dword [ebp + 8]
movups xmmword [eax + edi - 0x10], xmm0
cmp edi, 0xf0
je 0x1ca025d
movdqa xmmword [esp + 0x10], xmm1
mov ecx, esi
lea edx, [esp + 0x70]
call fcn.01ca09e0
movdqa xmm0, xmmword [esp + 0x50]
psrldq xmm0, 0xc
pxor xmm0, xmmword [esp + 0x60]
movdqa xmm1, xmm0
movdqa xmm2, xmm0
pslldq xmm2, 0xc
pxor xmm2, xmm0
pslldq xmm0, 4
pslldq xmm1, 8
pxor xmm1, xmm0
pxor xmm2, xmm1
movdqa xmmword [esp + 0x60], xmm2
movdqa xmm0, xmmword [esp + 0x60]
mov eax, dword [ebp + 8]
movdqu xmmword [eax + edi], xmm0
add edi, 0x20
inc ebx
jmp 0x1ca00f0
lea eax, [esp + 0x20]
push esi
push 0x100
push eax
call fcn.01c23500
add esp, 0xc
mov ecx, 0x1c21180
mov eax, 0x1c21d10
jmp 0x1ca0214
lea eax, [esp + 0x20]
push esi
push 0x100
push eax
call fcn.01c24020
add esp, 0xc
mov ecx, 0x1c240d0
xor eax, eax
test edi, edi
je 0x1ca021a
mov dword [edi], ecx
mov dword [esi + 0xf8], eax
movaps xmm0, xmmword [esp + 0x40]
movups xmmword [esi + 0xfc], xmm0
mov dword [esi + 0x114], 0
mov dword [esi + 0x110], 1
mov esi, 1
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x1c9ddd0
mov eax, 0x1c9f110
mov edi, dword [esp + 0xc]
test edi, edi
mov esi, dword [ebp + 8]
jne 0x1ca0218
jmp 0x1ca021a
Function at 0x1ca3140
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.01ca2242
or byte [eax + 0x2ff845c6], ah
mov al, byte [0x2ff845c6]

Function at 0x1ca3184
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov al, byte [0x2ff845c6]
mov byte [ebp - 0x24], 0x34
invalid
movsd dword es:[edi], dword [esi]
xchg esp, eax

Function at 0x1cad060
Capabilities:
Reference processor manufacturer constants

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, ecx
xor eax, eax
xor ecx, ecx
cpuid
test eax, eax
jle 0x1cad16b
mov esi, eax
mov dword [ebp - 0x14], edi
mov eax, 1
xor ecx, ecx
cpuid
mov edi, eax
mov dword [ebp - 0x10], ecx
mov ecx, 0
cmp esi, 7
mov ebx, 0
jb 0x1cad0b1
mov eax, 7
xor ecx, ecx
mov esi, edx
cpuid
mov edx, esi
and ebx, 0x20
shr cl, 3
and cl, 1
mov esi, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ecx], edi
mov eax, edi
and eax, 0xf
mov dword [ecx + 8], eax
shr edi, 0xc
and edi, 3
mov dword [ecx + 4], edi
mov edi, ecx
mov eax, edx
shr eax, 0x17
and al, 1
mov byte [ecx + 0xc], al
mov eax, edx
shr eax, 0x19
and al, 1
mov byte [ecx + 0xd], al
shr edx, 0x1a
and dl, 1
mov byte [ecx + 0xe], dl
mov ecx, dword [ebp - 0x10]
mov eax, ecx
and al, 1
mov byte [edi + 0xf], al
mov eax, ecx
shr eax, 9
and al, 1
mov byte [edi + 0x10], al
mov eax, ecx
shr eax, 0x13
and al, 1
mov byte [edi + 0x11], al
mov eax, ecx
shr eax, 0x14
and al, 1
mov byte [edi + 0x12], al
mov eax, ecx
shr eax, 0x17
and al, 1
mov byte [edi + 0x13], al
mov eax, ecx
shr eax, 0x1f
mov byte [edi + 0x1a], al
mov eax, ecx
not eax
test eax, 0x1c000000
jne 0x1cad13b
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
jmp 0x1cad13d
xor eax, eax
mov byte [edi + 0x14], al
mov edx, dword [ebp - 0x10]
mov ecx, edx
shr ecx, 0x19
and cl, 1
mov byte [edi + 0x17], cl
shr edx, 0xc
and dl, 1
mov byte [edi + 0x15], dl
test al, al
setne al
test ebx, ebx
setne cl
and cl, al
mov byte [edi + 0x16], cl
mov eax, esi
mov byte [edi + 0x18], al
mov eax, 0x80000000
xor ecx, ecx
cpuid
cmp eax, 0x80000006
jle 0x1cad190
mov eax, 0x80000007
xor ecx, ecx
cpuid
and dh, 1
mov byte [edi + 0x19], dh
test dh, dh
jne 0x1cad1c2
jmp 0x1cad197
mov dh, byte [edi + 0x19]
test dh, dh
jne 0x1cad1c2
cmp byte [edi + 0x1a], 0
je 0x1cad1c2
mov eax, 0x40000000
xor ecx, ecx
cpuid
cmp ebx, 0x7263694d
jne 0x1cad1c2
cmp ecx, 0x666f736f
jne 0x1cad1c2
cmp edx, 0x76482074
jne 0x1cad1c2
mov byte [edi + 0x19], 1
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1cad830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x1cad8ac
mov eax, dword [ebp + 8]
cmp dword [0x1d0d194], eax
jg 0x1cad8ac
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
mov dword [ebp - 0x1c], esi
add esi, ebx
nop dword [eax]
cmp ebx, esi
jae 0x1cad89b
mov dword [ebp - 0x18], 0
mov eax, esi
sub eax, ebx
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1cad89b
mov eax, dword [ebp - 0x18]
add ebx, eax
test eax, eax
jne 0x1cad870
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
mov eax, dword [ebp + 0xc]
je 0x1cad8ac
cmp byte [ecx + eax - 1], 0xa
jne 0x1cad8c4
cmp dword [ebp + 8], 3
je 0x1cad911
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb0ac3
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 0x1ce52d3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
lea ebx, [ebp - 0x14]
nop word cs:[eax + eax]
cmp edi, 0x1ce52d4
jae 0x1cad8ac
mov dword [ebp - 0x14], 0
mov eax, 0x1ce52d4
sub eax, edi
push 0
push ebx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1cad8ac
mov eax, dword [ebp - 0x14]
add edi, eax
test eax, eax
jne 0x1cad8e0
jmp 0x1cad8ac
int3
Function at 0x1cae350
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x1cf7014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 3
jne 0x1cae46d
mov dword [ebp - 0x14], 0x1cae510
lea eax, [ebp - 0x14]
push 0
push eax
push 0x1cae310
push 0x1d0d1b8
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1cae481
cmp dword [0x1d0d1bc], 0
jne 0x1cae46d
push dword [0x1d0d1c0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1cae46d
mov esi, eax
push 0x1d0d1c4
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov edi, dword [0x1d0d1c8]
mov ebx, dword [0x1d0d1cc]
mov eax, dword [0x1d0d1d0]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x1d0d1d4]
mov dword [ebp - 0x20], eax
mov eax, dword [0x1d0d1d8]
mov dword [ebp - 0x24], eax
push 0x1d0d1c4
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test edi, edi
je 0x1cae40b
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov ecx, edi
call dword [section..00cfg]
push dword [ebp - 0x18]
call edi
add esp, 4
test ebx, ebx
je 0x1cae420
mov edi, dword [esi + 4]
mov ecx, ebx
call dword [section..00cfg]
push edi
call ebx
add esp, 4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1cae436
mov edi, dword [esi + 8]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov ecx, dword [ebp - 0x20]
test ecx, ecx
mov ebx, dword [ebp - 0x24]
je 0x1cae44f
mov edi, dword [esi + 0xc]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
test ebx, ebx
je 0x1cae464
mov edi, dword [esi + 0x10]
mov ecx, ebx
call dword [section..00cfg]
push edi
call ebx
add esp, 4
push esi
call fcn.01cae8e0
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb0ac3
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
call fcn.01cc3c50
int3

Function at 0x1cae490
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x1cae510
lea eax, [ebp - 0x14]
push 0
push eax
push 0x1cae310
push 0x1d0d1b8
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1cae50a
xor esi, esi
cmp dword [0x1d0d1bc], 0
jne 0x1cae4f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x1d0d1c0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x1cae4f6
mov eax, dword [ebp + 8]
mov esi, dword [edi + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.01cc3c50
int3