joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10098520
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov dword [eax], 0
lea ebx, [edi + 1]
cmp ebx, 2
jb 0x10098541
call fcn.10065990
mov dword [esi], 0
test edi, edi
je 0x10098565
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x10098594
cmp ebx, 2
jae 0x100985b4
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi + 4]
mov edi, dword [ebp + 8]
lea eax, [edi + 4]
push eax
call fcn.1005b2a0
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
movzx eax, byte [edi + 0x18]
mov byte [esi + 0x18], al
movzx eax, byte [edi + 0x19]
mov byte [esi + 0x19], al
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.10065990
push dword [esi]
call fcn.100849b0
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
cmp ebx, 2
jb 0x1009855e
mov dword [esi], edi
mov edi, eax
call fcn.10065990
mov eax, edi
jmp 0x1009855e

Function at 0x10098610
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.1009d410
mov edi, dword [ebx]
mov dword [ebx], 0
lea ebx, [edi + 1]
cmp ebx, 2
jae 0x10098637
cmp dword [esi], edi
jne 0x10098640
jmp 0x1009865a
call fcn.10065990
cmp dword [esi], edi
je 0x1009865a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x10098689
cmp ebx, 2
jae 0x100986a9
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
lea eax, [edi + 4]
lea ecx, [esi + 4]
push eax
call fcn.1005cf00
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
movzx eax, byte [edi + 0x18]
mov byte [esi + 0x18], al
movzx eax, byte [edi + 0x19]
mov byte [esi + 0x19], al
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.10065990
push dword [esi]
call fcn.100849b0
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
cmp ebx, 2
jb 0x10098653
mov dword [esi], edi
mov edi, eax
call fcn.10065990
mov eax, edi
jmp 0x10098653
Function at 0x1009c110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x101b9014]
xor ecx, ebp
mov dword [esp + 0x78], ecx
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x5e], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
movzx ecx, byte [eax + 0xf]
mov dword [esp + 0x18], ecx
movzx edx, byte [eax + 0xe]
movzx esi, byte [eax + 0xd]
movzx ebx, byte [eax + 0xc]
movzx edi, byte [eax + 0xb]
movzx ecx, byte [eax + 0xa]
mov dword [esp + 0x1c], ecx
movzx ecx, byte [eax + 9]
mov dword [esp + 0x10], ecx
movzx ecx, byte [eax + 8]
mov dword [esp + 0x14], ecx
movzx ecx, word [eax + 6]
mov dword [esp + 8], ecx
movzx ecx, word [eax + 4]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x20]
push dword [esp + 0x18]
push edx
push esi
push ebx
push edi
mov edi, ecx
push dword [esp + 0x30]
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [eax]
push str._08lX__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
push 0x27
push ecx
call fcn.1009c250
add esp, 0x38
test eax, eax
js 0x1009c23c
mov esi, dword [ebp + 8]
push 0x50
call fcn.10145ba4
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0x80000028
mov dword [esi + 4], 0x26
lea ecx, [eax + 0x4c]
cmp ecx, edi
setbe cl
cmp eax, edi
ja 0x1009c1f5
test cl, cl
je 0x1009c23f
movups xmm0, xmmword [esp + 0x5c]
movups xmmword [eax + 0x3c], xmm0
movaps xmm0, xmmword [esp + 0x50]
movups xmmword [eax + 0x30], xmm0
movaps xmm0, xmmword [esp + 0x40]
movups xmmword [eax + 0x20], xmm0
movaps xmm0, xmmword [esp + 0x20]
movaps xmm1, xmmword [esp + 0x30]
movups xmmword [eax + 0x10], xmm1
movups xmmword [eax], xmm0
mov word [eax + 0x4c], 0
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.101465a3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
int3
int3
Function at 0x1009d710
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov dword [esp + 0xc], ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [0x101b9014]
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.10065960
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push 0
push edi
call fcn.100bcef0
test byte [0x101bacd0], 0x19
jne 0x1009d830
mov ebx, 0xffffffff
test esi, esi
js 0x1009d807
mov eax, dword [ebp + 0x14]
test eax, eax
js 0x1009d807
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], 0xffffffff
lea edx, [esp + 0x24]
push edi
push edx
push eax
push ecx
mov eax, dword [esp + 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1009d7ee
mov ebx, dword [esp + 0x24]
test ebx, ebx
jns 0x1009d7fe
int3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [esp + 0x28]
call fcn.100d8ca0
test byte [0x101bacd0], 0x19
jne 0x1009d868
lea ecx, [esp + 0x30]
call fcn.100bd420
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.101465a3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
sub esp, 8
movq xmm0, qword [esp + 0x30]
movq qword [esp], xmm0
lea edx, [esp + 0x2c]
mov ecx, str.ScopedBlockingCall
call fcn.10079ed0
add esp, 8
jmp 0x1009d781
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
sub esp, 0x18
movq xmm0, qword [esp + 0x28]
movq qword [esp + 0x10], xmm0
mov dword [esp + 0xc], 0x10178420
mov dword [esp + 8], 0x1019dfb6
mov dword [esp + 4], 0x101bacd0
mov dword [esp], 0x45
call fcn.1003beb0
add esp, 0x18
jmp 0x1009d810
Function at 0x1009d8c0
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 [0x101b9014]
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
mov ebx, esp
push 0x5b
push str....._base_files_file_win.cc
push str.ReadAtCurrentPos
push ebx
call fcn.10065960
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push 0
push ebx
call fcn.100bcef0
test byte [0x101bacd0], 0x19
jne 0x1009d9ae
test edi, edi
js 0x1009d9e9
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0x18]
push 0
push ecx
push edi
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1009d96e
mov ebx, dword [esp + 0x18]
test ebx, ebx
jns 0x1009d97e
int3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
mov ecx, esp
call fcn.100d8ca0
test byte [0x101bacd0], 0x19
jne 0x1009d9f7
lea ecx, [esp + 0x20]
call fcn.100bd420
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.101465a3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
sub esp, 8
movq xmm0, qword [esp + 0x20]
movq qword [esp], xmm0
lea edx, [esp + 0x1c]
mov ecx, str.ScopedBlockingCall
call fcn.10079ed0
add esp, 8
test edi, edi
jns 0x1009d932
mov ebx, 0xffffffff
test byte [0x101bacd0], 0x19
je 0x1009d98e
mov dword [esp + 4], 0
mov dword [esp], 0
sub esp, 0x18
movq xmm0, qword [esp + 0x18]
movq qword [esp + 0x10], xmm0
mov dword [esp + 0xc], 0x10178420
mov dword [esp + 8], 0x1019dfb6
mov dword [esp + 4], 0x101bacd0
mov dword [esp], 0x45
call fcn.1003beb0
add esp, 0x18
jmp 0x1009d98e
Function at 0x1009da50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov dword [esp + 0xc], ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [0x101b9014]
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.10065960
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push 0
push ebx
call fcn.100bcef0
test byte [0x101bacd0], 0x19
jne 0x1009db5a
mov edi, 0xffffffff
test esi, esi
js 0x1009db31
mov eax, dword [ebp + 0x14]
test eax, eax
js 0x1009db31
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], 0xffffffff
lea edx, [esp + 0x24]
push ebx
push edx
push eax
push ecx
mov eax, dword [esp + 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
cmp eax, 1
sbb edi, edi
or edi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
call fcn.100d8ca0
test byte [0x101bacd0], 0x19
jne 0x1009db92
lea ecx, [esp + 0x30]
call fcn.100bd420
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.101465a3
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
sub esp, 8
movq xmm0, qword [esp + 0x30]
movq qword [esp], xmm0
lea edx, [esp + 0x2c]
mov ecx, str.ScopedBlockingCall
call fcn.10079ed0
add esp, 8
jmp 0x1009dac1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
sub esp, 0x18
movq xmm0, qword [esp + 0x28]
movq qword [esp + 0x10], xmm0
mov dword [esp + 0xc], 0x10178420
mov dword [esp + 8], 0x1019dfb6
mov dword [esp + 4], 0x101bacd0
mov dword [esp], 0x45
call fcn.1003beb0
add esp, 0x18
jmp 0x1009db3a
Function at 0x1009dbe0
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 [0x101b9014]
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
mov ebx, esp
push 0x93
push str....._base_files_file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.10065960
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push 0
push ebx
call fcn.100bcef0
test byte [0x101bacd0], 0x19
jne 0x1009dcb7
test edi, edi
js 0x1009dcf2
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0x18]
push 0
push ecx
push edi
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [esp + 0x18]
mov ecx, esp
call fcn.100d8ca0
test byte [0x101bacd0], 0x19
jne 0x1009dd00
lea ecx, [esp + 0x20]
call fcn.100bd420
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.101465a3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
sub esp, 8
movq xmm0, qword [esp + 0x20]
movq qword [esp], xmm0
lea edx, [esp + 0x1c]
mov ecx, str.ScopedBlockingCall
call fcn.10079ed0
add esp, 8
test edi, edi
jns 0x1009dc51
mov esi, 0xffffffff
test byte [0x101bacd0], 0x19
je 0x1009dc97
mov dword [esp + 4], 0
mov dword [esp], 0
sub esp, 0x18
movq xmm0, qword [esp + 0x18]
movq qword [esp + 0x10], xmm0
mov dword [esp + 0xc], 0x10178420
mov dword [esp + 8], 0x1019dfb6
mov dword [esp + 4], 0x101bacd0
mov dword [esp], 0x45
call fcn.1003beb0
add esp, 0x18
jmp 0x1009dc97
Function at 0x1009dd50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, ecx
mov eax, dword [0x101b9014]
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 0xa8
push str....._base_files_file_win.cc
push str.GetLength
push edi
call fcn.10065960
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push 0
push edi
call fcn.100bcef0
test byte [0x101bacd0], 0x19
jne 0x1009de35
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0xffffffff
lea eax, [esp + 0x28]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edi, eax
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
call fcn.100d8ca0
test byte [0x101bacd0], 0x19
jne 0x1009de6d
xor ebx, ebx
cmp edi, 1
sbb ebx, ebx
or esi, ebx
or ebx, dword [esp + 0xc]
lea ecx, [esp + 0x30]
call fcn.100bd420
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.101465a3
mov eax, esi
mov edx, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
sub esp, 8
movq xmm0, qword [esp + 0x30]
movq qword [esp], xmm0
lea edx, [esp + 0x2c]
mov ecx, str.ScopedBlockingCall
call fcn.10079ed0
add esp, 8
jmp 0x1009ddbb
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
sub esp, 0x18
movq xmm0, qword [esp + 0x28]
movq qword [esp + 0x10], xmm0
mov dword [esp + 0xc], 0x10178420
mov dword [esp + 8], 0x1019dfb6
mov dword [esp + 4], 0x101bacd0
mov dword [esp], 0x45
call fcn.1003beb0
add esp, 0x18
jmp 0x1009de08
Function at 0x100aa110
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, ecx
lea esi, [ecx + 0x40]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
sub esp, 4
test al, al
je 0x100aa148
cmp byte [edi + 0x1168], 0
je 0x100aa158
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
add esp, 0x1c
jmp 0x100aa33d
mov ecx, esi
call fcn.100acfa0
cmp byte [edi + 0x1168], 0
jne 0x100aa137
lea ebx, [ebp + 8]
mov cl, 1
xor eax, eax
lock cmpxchg byte [0x101cd02d], cl
jne 0x100aa1c9
movaps xmm0, xmmword [0x101a7240]
movups xmmword [esp], xmm0
mov dword [esp + 0x10], 0
call fcn.100ee790
movaps xmm0, xmmword [0x101a7250]
movups xmmword [esp], xmm0
mov dword [esp + 0x10], 0
call fcn.100ee790
movaps xmm0, xmmword [0x101a7260]
movups xmmword [esp], xmm0
mov dword [esp + 0x10], 0
call fcn.100ee790
movaps xmm0, xmmword [0x101a7270]
movups xmmword [esp], xmm0
mov dword [esp + 0x10], 0
call fcn.100ee790
cmp byte [ebx], 1
sete byte [edi + 4]
cmp byte [ebx + 3], 1
sete byte [edi + 5]
movzx eax, byte [ebx + 4]
cmp al, 1
sete byte [edi + 6]
cmp byte [ebx + 5], 1
sete byte [edi + 7]
jne 0x100aa1f4
cmp al, 1
jne 0x100aa344
mov dword [ebp - 0x10], esi
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
cmp al, 1
jne 0x100aa214
mov dword [edi + 0xc], 4
cmp byte [ebx + 2], 0
setne byte [edi]
xorps xmm0, xmm0
movups xmmword [edi + 0x1148], xmm0
movups xmmword [edi + 0x1158], xmm0
call fcn.10033780
mov dword [edi + 0x1148], eax
mov eax, edi
not eax
mov dword [edi + 0x13cc], eax
lea ebx, [edi + 0x48]
mov eax, 8
mov esi, 0xffffff78
nop
mov dword [esp], eax
mov ecx, ebx
call fcn.100ad000
sub esp, 4
mov eax, dword [esi*4 + 0x101a7030]
add ebx, 0x20
inc esi
cmp eax, 1
jne 0x100aa250
mov eax, esi
add eax, 0x88
jae 0x100aa29d
neg esi
nop dword [eax + eax]
mov dword [esp], 1
mov ecx, ebx
call fcn.100ad000
sub esp, 4
mov dword [ebx], 0
add ebx, 0x20
dec esi
jne 0x100aa280
mov dword [esp], 0x101bbd78
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
sub esp, 4
test al, al
jne 0x100aa2bb
mov ecx, 0x101bbd78
call fcn.100acfa0
cmp byte [0x101cd084], 0
mov esi, dword [ebp - 0x10]
lea ebx, [ebp + 8]
jne 0x100aa2f9
cmp dword [0x101ce6b0], 0
jne 0x100aa347
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x100aa34a
mov dword [0x101cd030], eax
mov dword [0x101ce6b4], eax
mov dword [0x101ce6b0], 0x100ac380
mov byte [0x101cd084], 1
mov dword [esp], 0x101bbd78
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
sub esp, 4
cmp byte [ebx + 1], 1
sete byte [edi + 3]
jne 0x100aa31b
mov dword [esp], edi
call fcn.100ac560
mov byte [edi + 0x1168], 1
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
sub esp, 4
mov cl, 1
xor eax, eax
lock cmpxchg byte [0x101cd02c], cl
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 8
int3
int3
int3
Function at 0x100aa3c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [ecx + 0x1174]
mov ebx, dword [ecx + 0x1178]
add ebx, eax
mov eax, dword [ecx + 0x116c]
mov ecx, ebx
sub ecx, eax
cmp ecx, 0x40000001
jb 0x100aa3f6
push dword [ebp + 8]
call fcn.100e4610
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [esp + 0xc]
test eax, eax
mov ecx, 0x40000000
mov edi, 0xaf000000
cmove edi, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], 0x365f776f
mov dword [esp + 0x50], 0x775f7369
lea eax, [esp + 0x50]
push eax
call fcn.10012050
add esp, 4
cmp ebx, edi
jbe 0x100aa456
push ebx
call fcn.100e4640
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0x657a69
mov dword [esp + 0x40], 0x735f6176
lea eax, [esp + 0x40]
push eax
call fcn.10012050
add esp, 4
mov eax, dword [esi + 0x117c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 0x20200063
mov dword [esp + 0x30], 0x6f6c6c61
lea eax, [esp + 0x30]
push eax
call fcn.10012050
add esp, 4
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov eax, dword [esi + 0x116c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0x20007469
mov dword [esp + 0x10], 0x6d6d6f63
lea eax, [esp + 0x10]
push eax
call fcn.10012050
add esp, 4
mov esi, dword [ebp + 8]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x20202000
mov dword [esp + 0x20], 0x657a6973
lea eax, [esp + 0x20]
push eax
call fcn.10012050
add esp, 4
push esi
call fcn.10090ce0
int3

Function at 0x100ac560
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0xa34], 0x8000
jne 0x100ac65e
cmp dword [esi + 0x434], 0x200
jne 0x100ac661
push 0x101bbd78
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x100ac5a1
cmp byte [0x101cd084], 0
je 0x100ac5b4
jmp 0x100ac5eb
mov ecx, 0x101bbd78
call fcn.100acfa0
cmp byte [0x101cd084], 0
jne 0x100ac5eb
cmp dword [0x101ce6b0], 0
jne 0x100ac667
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x100ac66a
mov dword [0x101cd030], eax
mov dword [0x101ce6b4], eax
mov dword [0x101ce6b0], 0x100ac380
mov byte [0x101cd084], 1
push 0x101bbd78
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
lock cmpxchg dword [0x101cd088], esi
jne 0x100ac664
mov dword [0x101ce6b8], 0x100aca40
add esi, 0x48
mov eax, 0xffffffb0
jmp 0x100ac62e
xor ecx, ecx
mov byte [eax + 0x101cd084], cl
add esi, 0x20
inc eax
je 0x100ac65b
cmp dword [esi], 0
je 0x100ac620
mov edx, dword [esi + 0xc]
mov cl, 0x80
cmp edx, 0x81
jb 0x100ac622
mov cl, 0x40
cmp edx, 0x101
jb 0x100ac622
cmp edx, 0x201
setb cl
shl cl, 4
add cl, 0x10
jmp 0x100ac622
pop esi
pop ebp
ret
int3
int3
int3
int3
int3
Function at 0x100b60b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov edi, dword [ecx + 0x20]
lea eax, [ecx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
mov ebx, dword [eax + 0x48]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push dword [ebp - 0x10]
call ebx
mov byte [esi + 0x26d], 1
mov edi, dword [esi + 0x20]
mov eax, dword [edi]
mov ebx, dword [eax + 0x28]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
call ebx
test eax, eax
je 0x100b613c
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 0x100b614f
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x100b6144
mov ecx, dword [0x101ce4f8]
mov dword [eax + ecx*8], esi
mov ecx, dword [0x101ce4fc]
mov edx, dword [0x101ce4f8]
mov dword [eax + edx*8 + 4], ecx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
test esi, esi
je 0x100b613c
call fcn.1007a6e0
jmp 0x100b6123
push 0x101ce500
call fcn.10145c47
add esp, 4
cmp dword [0x101ce500], 0xffffffff
jne 0x100b6112
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 0x100b6112
Function at 0x100bd420
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov esi, ecx
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [esp + 0x28], eax
call fcn.1015869e
mov eax, dword [eax]
mov dword [esp + 0x14], eax
call fcn.1015869e
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov edi, dword [0x101ce51c]
cmp edi, 1
ja 0x100bd4bf
mov dword [esp], 0x101ce51c
call fcn.10065310
test al, al
je 0x100bd4b9
mov dword [0x101ce524], 0
mov dword [0x101ce520], 0xffffffff
mov dword [esp], 0
mov edi, 0x101ce520
mov ecx, 0x101ce520
call fcn.1007a5a0
sub esp, 4
mov dword [0x101ce51c], edi
jmp 0x100bd4bf
mov edi, dword [0x101ce51c]
mov ebx, dword [esi + 4]
mov eax, dword [0x101bac5c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
and eax, 0xfffffffc
je 0x100bd5eb
mov ecx, dword [edi]
mov dword [eax + ecx*8], ebx
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [eax + ecx*8 + 4], edx
mov ebx, dword [esi]
test ebx, ebx
je 0x100bd507
cmp dword [esi + 4], 0
jne 0x100bd507
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
call fcn.1015869e
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
cmp byte [esi + 0x20], 0
je 0x100bd582
mov edi, dword [esi + 0x30]
test edi, edi
je 0x100bd57e
mov ecx, dword [0x101bac60]
call dword [section..00cfg]
lea eax, [esp + 0x20]
mov dword [esp], eax
call ecx
movsd xmm0, qword [esi + 0x28]
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [esp + 0x20]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x18]
movsd qword [esp], xmm0
mov ecx, edi
call fcn.100bcb30
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x100bd57e
lock dec dword [ecx]
jne 0x100bd57e
call fcn.100bd600
mov byte [esi + 0x20], 0
lea ecx, [esi + 0xc]
call fcn.1005f380
mov eax, dword [esi + 4]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x101c1e84]
bt edx, ecx
jae 0x100bd5ab
mov dword [esp], eax
call fcn.10069280
mov dword [esi + 4], 0
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x101c1e84]
bt edx, ecx
jae 0x100bd5d2
mov dword [esp], eax
call fcn.10069280
mov dword [esi], 0
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.101465a3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
je 0x100bd4ea
call fcn.1007a6e0
jmp 0x100bd4dc