joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100bdea0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [esp + 0x28], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], 0xffffffff
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
lea eax, [esp + 0x10]
push 0x10
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x100bdfd2
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
movzx edx, cx
shr ecx, 0x10
and ecx, 0x3fff
or ecx, 0x8000
mov edi, eax
and edi, 0xfff
or edi, 0x4000
shr eax, 0x10
lea ebx, [esp + 4]
push edx
push dword [esp + 0x1c]
push ecx
push edi
push eax
push dword [esp + 0x28]
push str._08x__04x__04x__04x__012llx
push ebx
call fcn.100772f0
add esp, 0x20
cmp byte [esp + 0xf], 0
js 0x100bdf53
mov eax, dword [esp + 0xc]
mov dword [esi + 8], eax
movq xmm0, qword [esp + 4]
movq qword [esi], xmm0
jmp 0x100bdfb8
mov edi, dword [esp + 4]
mov edx, dword [esp + 8]
cmp edx, 0xa
ja 0x100bdf6b
mov byte [esi + 0xb], dl
mov eax, esi
cmp eax, edi
jbe 0x100bdf9b
jmp 0x100bdfa3
cmp edx, 0x7ffffff0
jae 0x100bdfcd
mov dword [esp], edx
mov ebx, dword [esp]
or ebx, 0xf
inc ebx
push ebx
call fcn.10145ba4
add esp, 4
mov dword [esi], eax
or ebx, 0x80000000
mov dword [esi + 8], ebx
mov edx, dword [esp]
mov dword [esi + 4], edx
cmp eax, edi
ja 0x100bdfa3
lea ecx, [eax + edx]
inc ecx
cmp ecx, edi
ja 0x100bdfd5
inc edx
push edx
push edi
push eax
call fcn.10148eb0
add esp, 0xc
push edi
call fcn.10145bd4
add esp, 4
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.101465a3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.1015b4f0
int3
int3
Function at 0x100bf290
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x101ce500]
mov ecx, dword [0x101bd164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x100bf36d
mov esi, dword [ebp + 8]
mov ecx, 0x101ce4f8
call fcn.1007a870
test eax, eax
je 0x100bf2d1
mov ecx, 3
cmp dword [eax + 0x24], 3
je 0x100bf309
mov eax, dword [0x101ce500]
mov ecx, dword [0x101bd164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x100bf405
mov ecx, 0x101ce4f8
call fcn.1007a870
xor ecx, ecx
test eax, eax
je 0x100bf309
cmp dword [eax + 0x24], 1
sete cl
push ecx
push esi
call fcn.10084160
add esp, 8
mov eax, dword [0x101ce56c]
mov ecx, dword [0x101bd164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x100bf3b9
inc esi
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x100bf362
mov ecx, dword [0x101ce564]
mov dword [eax + ecx*8], esi
mov ecx, dword [0x101ce568]
mov edx, dword [0x101ce564]
mov dword [eax + edx*8 + 4], ecx
pop esi
pop ebp
ret
test esi, esi
je 0x100bf35f
call fcn.1007a6e0
jmp 0x100bf346
push 0x101ce500
call fcn.10145c47
add esp, 4
cmp dword [0x101ce500], 0xffffffff
jne 0x100bf2b5
mov dword [0x101ce4fc], 0
mov dword [0x101ce4f8], 0xffffffff
mov ecx, 0x101ce4f8
push 0
call fcn.1007a5a0
push 0x101ce500
call fcn.10145cbd
add esp, 4
jmp 0x100bf2b5
push 0x101ce56c
call fcn.10145c47
add esp, 4
cmp dword [0x101ce56c], 0xffffffff
jne 0x100bf334
mov dword [0x101ce564], 0xffffffff
mov dword [0x101ce568], 0
mov ecx, 0x101ce564
push 0
call fcn.1007a5a0
push 0x101ce56c
call fcn.10145cbd
add esp, 4
jmp 0x100bf334
push 0x101ce500
call fcn.10145c47
add esp, 4
cmp dword [0x101ce500], 0xffffffff
jne 0x100bf2f2
mov dword [0x101ce4fc], 0
mov dword [0x101ce4f8], 0xffffffff
mov ecx, 0x101ce4f8
push 0
call fcn.1007a5a0
push 0x101ce500
call fcn.10145cbd
add esp, 4
jmp 0x100bf2f2
Function at 0x100c0340
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x100c0385
mov ecx, dword [esi + 0x3f4]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [esi + 0x3f8]
jne 0x100c0385
cmp dword [eax + ecx*8], 0
jne 0x100c04e3
mov edi, dword [esi + 0x3fc]
mov ecx, edi
shr ecx, 0xe
mov eax, 1
shl eax, cl
mov dword [ebp - 0x28], eax
mov eax, edi
shr eax, 0x13
mov dword [ebp - 0x24], eax
mov eax, dword [eax*4 + 0x101c1e84]
bt eax, ecx
jae 0x100c043b
push edi
call fcn.10069180
add esp, 4
test edi, edi
je 0x100c044f
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x100c04f5
mov dword [ebp - 0x2c], edi
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.1009e280
add esp, 8
mov dword [ebp - 0x1c], esi
mov edi, dword [esi + 0x404]
test edi, edi
je 0x100c04c1
mov ecx, eax
mov edx, edi
shr edx, 1
and edx, 0x55555555
mov eax, edi
sub eax, edx
mov edx, eax
and edx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, edx
mov edx, eax
shr edx, 4
add edx, eax
and edx, 0xf0f0f0f
imul edx, edx, 0x1010101
shr edx, 0x18
cmp edx, 1
ja 0x100c0452
lea ebx, [edi - 1]
and ebx, ecx
mov esi, dword [ebp - 0x1c]
jmp 0x100c046b
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x101c9e84], 1
test edi, edi
jne 0x100c03c3
int3
cmp ecx, edi
mov esi, dword [ebp - 0x1c]
jae 0x100c045d
mov ebx, ecx
jmp 0x100c046b
mov eax, ecx
mov dword [ebp - 0x18], edx
xor edx, edx
div edi
mov ebx, edx
mov edx, dword [ebp - 0x18]
mov eax, dword [esi + 0x400]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x100c04c1
mov esi, dword [eax]
test esi, esi
je 0x100c04c1
lea eax, [edi - 1]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], edx
jmp 0x100c049e
mov eax, dword [ebp - 0x30]
cmp dword [esi + 8], eax
je 0x100c0501
mov esi, dword [esi]
test esi, esi
je 0x100c04c1
mov eax, dword [esi + 4]
cmp eax, ecx
je 0x100c0490
cmp edx, 1
ja 0x100c04b0
and eax, dword [ebp - 0x20]
jmp 0x100c04bd
cmp eax, edi
jb 0x100c04bd
xor edx, edx
div edi
mov eax, edx
mov edx, dword [ebp - 0x18]
cmp eax, ebx
je 0x100c0498
mov esi, dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
test dword [ecx*4 + 0x101c1e84], eax
je 0x100c04e3
push esi
call fcn.10069280
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101465a3
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edi
call fcn.10083990
jmp 0x100c03d2
add esi, 0xc
mov ecx, dword [ebp - 0x1c]
add ecx, 4
mov edx, esi
push dword [ebp + 8]
call fcn.100c0530
int3
Function at 0x100fae60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x100fc080
lea eax, [ebp - 0x14]
push 0
push eax
push 0x100fbeb0
push 0x101ce70c
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x100fb07f
cmp dword [0x101ce710], 0
je 0x100faefb
nop word cs:[eax + eax]
push 0
push 0x154
push 0x101a6dd4
call fcn.100a6c10
add esp, 0xc
mov esi, eax
test eax, eax
jne 0x100faf24
cmp byte [0x101bfbe0], 0
je 0x100faf24
call fcn.101557f1
test eax, eax
je 0x100fb06d
mov ecx, eax
call dword [section..00cfg]
push 0x154
call ecx
add esp, 4
test eax, eax
jne 0x100faeb0
jmp 0x100fb06d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [0x101ce714]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x100faeb0
mov esi, dword [esi]
test esi, esi
jne 0x100faf63
jmp 0x100faeb0
test esi, esi
je 0x100fb06d
mov dword [esi], 0x14c
add esi, 8
je 0x100fb06d
push 0x14c
push 0
push esi
call fcn.10149430
add esp, 0xc
push 0x100fb090
push esi
push 0
call fcn.100fc0a0
add esp, 0xc
test eax, eax
je 0x100fb06d
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
cmp ebx, 2
jne 0x100faf78
test eax, eax
jne 0x100faf78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x140]
lea eax, [ecx + 1]
and eax, 0xf
mov dword [esi + 0x140], eax
cmp eax, dword [esi + 0x144]
jne 0x100fafa1
add ecx, 2
and ecx, 0xf
mov dword [esi + 0x144], ecx
mov ecx, dword [ebp + 0x18]
lea eax, [eax + eax*4]
lea edx, [esi + eax*4]
mov dword [ebp - 0x20], edx
mov edx, dword [esi + eax*4 + 4]
test edx, edx
je 0x100fb047
mov dword [ebp - 0x18], eax
mov edi, dword [edx - 8]
add edx, 0xfffffff8
mov ecx, edi
add ecx, 8
je 0x100fb02e
mov eax, edi
and eax, 7
je 0x100faff5
xor ebx, ebx
nop word cs:[eax + eax]
mov byte [edx + ebx], 0
inc ebx
cmp eax, ebx
jne 0x100fafe0
lea eax, [edx + ebx]
sub ecx, ebx
cmp edi, 0xfffffff8
jbe 0x100faffc
jmp 0x100fb02e
mov eax, edx
cmp edi, 0xfffffff8
ja 0x100fb02e
xor ebx, ebx
nop
mov byte [eax + ebx], 0
mov byte [eax + ebx + 1], 0
mov byte [eax + ebx + 2], 0
mov byte [eax + ebx + 3], 0
mov byte [eax + ebx + 4], 0
mov byte [eax + ebx + 5], 0
mov byte [eax + ebx + 6], 0
mov byte [eax + ebx + 7], 0
add ebx, 8
cmp ecx, ebx
jne 0x100fb000
push 0
push edx
push 0x101a6dd4
call fcn.100a9680
add esp, 0xc
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x18]
xorps xmm0, xmm0
mov edi, dword [ebp - 0x20]
movups xmmword [edi + 4], xmm0
mov edx, dword [ebp + 0x14]
mov dword [edi], edx
mov word [esi + eax*4 + 0xc], cx
shl ebx, 0x18
mov ecx, dword [ebp - 0x1c]
and ecx, 0xfff
or ecx, ebx
mov dword [esi + eax*4 + 8], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101465a3
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.1015b4f0
int3
Function at 0x100fbed0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x101b9014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 3
jne 0x100fc05e
mov dword [ebp - 0x14], 0x100fc080
lea eax, [ebp - 0x14]
push 0
push eax
push 0x100fbeb0
push 0x101ce70c
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x100fc072
cmp dword [0x101ce710], 0
jne 0x100fc05e
push dword [0x101ce714]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100fc05e
mov esi, eax
mov ebx, eax
push 0x101ce718
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov edi, dword [0x101ce71c]
mov eax, dword [0x101ce720]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x101ce724]
mov dword [ebp - 0x20], eax
mov eax, dword [0x101ce728]
mov dword [ebp - 0x24], eax
mov eax, dword [0x101ce72c]
mov dword [ebp - 0x28], eax
push 0x101ce718
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test edi, edi
je 0x100fbf8f
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov ecx, edi
call dword [section..00cfg]
push dword [ebp - 0x18]
call edi
add esp, 4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100fbfa5
mov edi, dword [ebx + 4]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x100fbfbb
mov edi, dword [ebx + 8]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x100fbfd1
mov edi, dword [ebx + 0xc]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x100fbfe7
mov edi, dword [ebx + 0x10]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
add esi, 0xfffffff8
mov ecx, dword [ebx - 8]
mov eax, ecx
add eax, 8
je 0x100fc04e
mov edx, ecx
and edx, 7
je 0x100fc015
xor edi, edi
nop dword [eax]
mov byte [esi + edi], 0
inc edi
cmp edx, edi
jne 0x100fc000
lea edx, [esi + edi]
sub eax, edi
cmp ecx, 0xfffffff8
jbe 0x100fc01c
jmp 0x100fc04e
mov edx, esi
cmp ecx, 0xfffffff8
ja 0x100fc04e
xor ecx, ecx
nop
mov byte [edx + ecx], 0
mov byte [edx + ecx + 1], 0
mov byte [edx + ecx + 2], 0
mov byte [edx + ecx + 3], 0
mov byte [edx + ecx + 4], 0
mov byte [edx + ecx + 5], 0
mov byte [edx + ecx + 6], 0
mov byte [edx + ecx + 7], 0
add ecx, 8
cmp eax, ecx
jne 0x100fc020
push 0
push esi
push 0x101a6dd4
call fcn.100a9680
add esp, 0xc
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101465a3
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
call fcn.1015b4f0
int3
Function at 0x100fc0a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x100fc080
lea eax, [ebp - 0x14]
push 0
push eax
push 0x100fbeb0
push 0x101ce70c
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x100fc24f
mov esi, dword [ebp + 0x10]
cmp dword [0x101ce710], 0
je 0x100fc0f8
mov ecx, esi
call dword [section..00cfg]
push dword [ebp + 0xc]
call esi
add esp, 4
xor esi, esi
jmp 0x100fc144
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [0x101ce714]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x100fc177
mov edi, dword [ebp + 8]
push 0x101ce718
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov dword [edi*4 + 0x101ce71c], esi
push 0x101ce718
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp + 0xc]
mov dword [ebx + edi*4], eax
mov esi, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101465a3
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, eax
call dword [section..00cfg]
push 0x1c
call ecx
add esp, 4
test eax, eax
je 0x100fc0e4
push 0
push 0x1c
push 0x101a6dd4
call fcn.100a6c10
add esp, 0xc
mov edi, eax
test eax, eax
jne 0x100fc1a5
cmp byte [0x101bfbe0], 0
je 0x100fc1a5
call fcn.101557f1
test eax, eax
jne 0x100fc160
jmp 0x100fc0e4
test edi, edi
je 0x100fc0e4
mov dword [edi], 0x14
mov ebx, edi
add ebx, 8
je 0x100fc0e4
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
push ebx
push dword [0x101ce714]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x100fc119
mov ecx, dword [edi]
mov eax, ecx
add eax, 8
je 0x100fc23a
mov edx, ecx
and edx, 7
je 0x100fc203
xor ebx, ebx
mov byte [edi + ebx], 0
inc ebx
cmp edx, ebx
jne 0x100fc1f2
mov edx, edi
add edx, ebx
sub eax, ebx
jmp 0x100fc205
mov edx, edi
cmp ecx, 0xfffffff8
ja 0x100fc23a
xor ecx, ecx
mov byte [edx + ecx], 0
mov byte [edx + ecx + 1], 0
mov byte [edx + ecx + 2], 0
mov byte [edx + ecx + 3], 0
mov byte [edx + ecx + 4], 0
mov byte [edx + ecx + 5], 0
mov byte [edx + ecx + 6], 0
mov byte [edx + ecx + 7], 0
add ecx, 8
cmp eax, ecx
jne 0x100fc20c
push 0
push edi
push 0x101a6dd4
call fcn.100a9680
add esp, 0xc
jmp 0x100fc0e4
call fcn.1015b4f0
int3
Function at 0x1011a3e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov edi, dword [ebp + 0xc]
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [esp + 0x40], eax
test byte [0x101bb2dc], 0x19
jne 0x1011a507
cmp dword [edi + 0x34], 0
je 0x1011a422
mov ecx, dword [esp + 0x40]
xor ecx, ebp
call fcn.101465a3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, dword [0x102ce848]
mov ecx, dword [0x101bd164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1011a5a7
mov eax, dword [0x101bac5c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
and eax, 0xfffffffc
je 0x1011a47e
mov ecx, dword [0x102ce840]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x102ce844]
jne 0x1011a47e
mov eax, dword [eax + ecx*8]
test eax, eax
je 0x1011a47e
mov ecx, dword [eax + 8]
mov dword [edi + 0x48], ecx
mov eax, dword [eax + 4]
mov dword [edi + 0x44], eax
mov eax, dword [0x102ce828]
mov ecx, dword [0x101bd164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1011a5f9
mov eax, dword [0x101bac5c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
and eax, 0xfffffffc
je 0x1011a40d
mov ecx, dword [0x102ce820]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x102ce824]
jne 0x1011a40d
mov eax, dword [eax + ecx*8]
test eax, eax
je 0x1011a40d
mov ecx, dword [eax + 0x10]
mov dword [edi + 0x34], ecx
movsd xmm0, qword [eax + 0x34]
mov ecx, dword [eax + 0x3c]
mov dword [edi + 0x40], ecx
movsd qword [edi + 0x38], xmm0
mov cl, 1
cmp byte [eax + 0x50], 0
jne 0x1011a4ff
cmp dword [eax + 0x40], 0
setne cl
mov byte [edi + 0x50], cl
jmp 0x1011a40d
mov esi, ecx
mov ebx, dword [edi + 0x4c]
xor esi, dword [0x101be248]
xor ebx, dword [0x101be24c]
mov dword [esp + 0x38], 0x10095ce0
mov dword [esp + 0x3c], 0x101a52a0
mov dword [esp], 8
call fcn.10145ba4
mov dword [eax + 4], ebx
mov dword [eax], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
movsd xmm0, qword [esp + 0x20]
movsd qword [esp + 0x10], xmm0
lea eax, [esp + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x10178420
mov dword [esp + 4], 0x101bb2dc
mov dword [esp], 0x49
call fcn.10095dd0
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1011a407
mov esi, dword [esp + 0x30]
call dword [section..00cfg]
mov dword [esp], esi
call ecx
jmp 0x1011a407
mov dword [esp], 0x102ce848
call fcn.10145c47
cmp dword [0x102ce848], 0xffffffff
jne 0x1011a443
mov dword [0x102ce844], 0
mov dword [0x102ce840], 0xffffffff
mov dword [esp], 0
mov ecx, 0x102ce840
call fcn.1007a5a0
sub esp, 4
mov dword [esp], 0x102ce848
call fcn.10145cbd
jmp 0x1011a443
mov dword [esp], 0x102ce828
call fcn.10145c47
cmp dword [0x102ce828], 0xffffffff
jne 0x1011a49f
mov dword [0x102ce824], 0
mov dword [0x102ce820], 0xffffffff
mov dword [esp], 0
mov ecx, 0x102ce820
call fcn.1007a5a0
sub esp, 4
mov dword [esp], 0x102ce828
call fcn.10145cbd
jmp 0x1011a49f
Function at 0x1011b710
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x102ce858]
mov ecx, dword [0x101bd164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1011b809
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x1011b75f
mov ecx, dword [0x102ce850]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x102ce854]
jne 0x1011b75f
cmp dword [eax + ecx*8], 0
jne 0x1011b7d0
push 4
call fcn.10145ba4
add esp, 4
mov esi, eax
mov dword [eax], 0
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edi, edi
and eax, 0xfffffffc
je 0x1011b799
mov ecx, dword [0x102ce850]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x102ce854]
jne 0x1011b799
mov edi, dword [eax + ecx*8]
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x1011b7fe
mov ecx, dword [0x102ce850]
mov dword [eax + ecx*8], esi
mov ecx, dword [0x102ce854]
mov edx, dword [0x102ce850]
mov dword [eax + edx*8 + 4], ecx
test edi, edi
je 0x1011b7d0
push edi
call fcn.10145bd4
add esp, 4
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
xor eax, eax
and ecx, 0xfffffffc
je 0x1011b7fa
mov edx, dword [0x102ce850]
mov esi, dword [ecx + edx*8 + 4]
cmp esi, dword [0x102ce854]
jne 0x1011b7fa
mov eax, dword [ecx + edx*8]
pop esi
pop edi
pop ebp
ret
test esi, esi
je 0x1011b7c3
call fcn.1007a6e0
jmp 0x1011b7aa
push 0x102ce858
call fcn.10145c47
add esp, 4
cmp dword [0x102ce858], 0xffffffff
jne 0x1011b736
mov dword [0x102ce854], 0
mov dword [0x102ce850], 0xffffffff
mov ecx, 0x102ce850
push 0x100c8240
call fcn.1007a5a0
push 0x102ce858
call fcn.10145cbd
add esp, 4
jmp 0x1011b736
Function at 0x1011ea6e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x101b9014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov esi, 0x7fffffff
cmp eax, esi
cmovb esi, eax
lea eax, [ebp - 0x14]
mov dword [eax], 0xffffffff
push 0
push eax
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1011eae6
mov ecx, dword [sym.imp.KERNEL32.dll_GetFileType]
mov eax, ebx
mov ebx, dword [ebp - 0x14]
test ebx, ebx
jne 0x1011eaf8
mov ebx, eax
push eax
mov edi, ecx
call ecx
cmp eax, 3
jne 0x1011eb11
mov dword [ebp - 0x14], 0xffffffff
push 0
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov ecx, edi
jne 0x1011eab3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x6d
setne bl
neg ebx
jmp 0x1011eafd
cmp ebx, 0xffffffff
je 0x1011eb16
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101465a3
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x14]
jmp 0x1011eafd
int3

Function at 0x1011f0a0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0xac
mov esi, dword [ebp + 8]
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor ebx, ebx
push ebx
push ebx
push ebx
push esi
call fcn.1011efb5
add esp, 0x10
or edx, eax
jne 0x1011f11f
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov bl, 1
test eax, eax
jne 0x1011f11f
cmp dword [0x101bee4c], 2
jg 0x1011f11d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [ebp - 0xb4]
mov ecx, esi
push eax
push 2
push 0xfb
push str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
call fcn.10066f30
lea eax, [ebp - 0xac]
push 0xc
push 0x101aeaae
push eax
call fcn.10034b83
add esp, 0xc
mov ecx, esi
call fcn.100670a0
xor ebx, ebx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.101465a3
mov eax, ebx
add esp, 0xac
pop esi
pop ebx
pop ebp
ret
Function at 0x101222b8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 8
mov esi, ecx
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push eax
push ecx
push 0x10122340
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x101222f6
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.101465a3
add esp, 8
pop esi
pop edi
pop ebp
ret
lea esi, [ebp - 0x10]
push 0x1b
push str....._third_partycrashpadcrashpadutil_thread_thread_win.cc
push esi
call fcn.100d84a0
add esp, 0xc
mov esi, dword [esi]
lea eax, [esi + 8]
push 0xc
push 0x101ad385
push eax
call fcn.10034b83
add esp, 0xc
test esi, esi
je 0x101222e5
mov eax, dword [esi]
mov edi, dword [eax]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push 1
call edi
jmp 0x101222e5
Function at 0x1012e490
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [esp + 8], eax
push 0x102cf5a0
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1012e4cc
cmp byte [0x102cf5a4], 0
je 0x1012e4df
mov eax, dword [0x102cf5b4]
mov ecx, dword [0x102cf5b0]
jmp 0x1012e549
mov ecx, 0x102cf5a0
call fcn.100acf90
cmp byte [0x102cf5a4], 0
jne 0x1012e4bf
xorps xmm0, xmm0
movups xmmword [0x102cf5a8], xmm0
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0xffffffff
mov esi, esp
push 8
push esi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1012e5bf
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [0x102cf5ac], ecx
mov dword [0x102cf5a8], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0xffffffff
push 8
push esi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1012e5c2
mov ecx, dword [esp]
mov eax, dword [esp + 4]
mov byte [0x102cf5a4], 1
mov edx, dword [0x102cf5a8]
mov ebx, dword [0x102cf5ac]
mov esi, ebx
shld esi, edx, 0x17
mov edi, edx
shl edi, 0x17
xor edi, edx
xor esi, ebx
mov ebx, esi
shld ebx, edi, 0xf
mov edx, eax
shld edx, ecx, 6
xor edx, ecx
xor edx, edi
xor edx, ebx
mov edi, eax
shr edi, 0x1a
xor edi, eax
xor edi, esi
shr esi, 0x11
xor esi, edi
mov dword [0x102cf5a8], ecx
mov dword [0x102cf5ac], eax
mov dword [0x102cf5b0], edx
add edx, ecx
mov dword [0x102cf5b4], esi
adc esi, eax
push 0x102cf5a0
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esp + 8]
xor ecx, ebp
call fcn.101465a3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
int3
int3