joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10072140
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x100722b5
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov esi, dword [sym.imp.kernel32.dll_TlsSetValue]
push edi
push dword [0x101de1f0]
call esi
push edi
push dword [0x101de1f8]
call esi
test ebx, ebx
cmovs ebx, edi
push 0x144
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
test eax, eax
je 0x100722ab
mov esi, eax
mov ecx, dword [ebp + 0x10]
cmp ebx, 3
mov eax, 3
cmovl eax, ebx
mov dword [esi + 4], eax
mov dword [esi + 0x10], ecx
mov dword [esi], 2
lea eax, [esi + 0xc8]
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], eax
lea ebx, [esi + 0x40]
mov ecx, dword [0x101de1ec]
test ecx, ecx
je 0x100722b9
call dword [section..00cfg]
push 0x1000000
push 0x5dc
push ebx
call ecx
test eax, eax
je 0x100722ca
mov edi, dword [ebp + 0x14]
xor eax, eax
mov dword [esi + 0x58], eax
mov dword [esi + 0xa4], eax
push esi
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsSetValue]
or edi, 0x84
mov dword [esi + 0xe0], edi
cmp dword [ebp + 0x10], 0
jne 0x1007223b
push 0x2c
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
mov dword [esi + 0x10], eax
test eax, eax
je 0x100722e5
mov dword [eax + 0x1c], 0
mov eax, esi
add eax, 0xb8
mov dword [esi + 0xb8], eax
mov dword [esi + 0xbc], eax
push esi
call fcn.100695f0
add esp, 4
cmp eax, 0xffffffff
je 0x100722f5
mov ebx, dword [ebp + 8]
push 0
push dword [0x101de1f8]
call dword [sym.imp.kernel32.dll_TlsSetValue]
push dword [0x101de1f8]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x1007231b
mov eax, 0x101de238
cmp ebx, 1
je 0x1007233e
inc dword [eax]
push dword [0x101de1f8]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, esi
test eax, eax
jne 0x1007234f
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, eax
jmp 0x100722ab
push 0x5dc
push ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
jmp 0x100721e7
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.10001070
add esp, 4
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x100722ab
push ebx
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
push esi
call dword [sym.imp.mozglue.dll_free]
jmp 0x10072314
mov edi, dword [sym.imp.mozglue.dll_free]
push dword [esi + 0x10]
call edi
add esp, 4
mov dword [esi + 0x10], 0
push ebx
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
push esi
call edi
add esp, 4
xor edi, edi
jmp 0x100722ab
mov edi, dword [0x101debd8]
call fcn.1014c8b0
mov dword [ebp - 0x10], eax
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x10]
mov dword [edi + 8], eax
jmp 0x10072285
or byte [esi + 0xe0], 1
mov eax, 0x101de23c
jmp 0x10072293
mov ebx, dword [0x101debd8]
call fcn.1014c8b0
mov edi, esi
cmp dword [ebx + 8], eax
jne 0x100722ab
mov dword [ebx + 8], 0
add ebx, 0x1c
push ebx
call sym.nss3.dll__PR_MD_UNLOCK
add esp, 4
mov edi, esi
jmp 0x100722ab
Function at 0x10074920
Capabilities:
Get thread local storage value
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, dword [ebp + 8]
cmp dword [0x101de200], 0
je 0x100749b0
mov ebx, dword [0x101de204]
test ebx, ebx
je 0x1007498f
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
test eax, eax
je 0x1007499c
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [ebx + 8], esi
mov ebx, dword [0x101de204]
mov dword [esp], edi
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov esi, eax
test ebx, ebx
je 0x10074985
mov dword [esp], ebx
call sym.nss3.dll_PR_Unlock
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
mov esi, eax
jmp 0x10074956
call fcn.100745f0
jmp 0x10074935

Function at 0x10074a50
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 8], eax
mov esi, dword [0x101de1d8]
test esi, esi
jne 0x10074a94
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov esi, dword [esi + 4]
mov dword [0x101de1d8], esi
cmp esi, 2
jb 0x10074aa6
lea eax, [esi - 1]
bsr eax, eax
xor eax, 0xffffffe0
add eax, 0x21
mov dword [0x101de1dc], eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret
xor eax, eax
jmp 0x10074a8f
Function at 0x10074c60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
xor edi, edi
inc edi
mov esi, edi
mov dword [ebp - 0x1c], ecx
shl esi, cl
lea eax, [esi - 1]
mov dword [ebp - 0x14], eax
shl eax, 4
add eax, 0x14
push eax
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10074e37
test esi, esi
mov dword [ebp - 0x18], esi
cmovne edi, esi
xor ebx, ebx
mov esi, 0xc
call sym.nss3.dll_PR_NewMonitor
mov ecx, dword [ebp - 0x10]
mov dword [ecx + esi], eax
test eax, eax
je 0x10074d72
inc ebx
add esi, 0x10
cmp edi, ebx
jne 0x10074ca5
mov ebx, dword [ebp - 0x10]
lea eax, [ebx + 4]
mov edx, edi
mov ecx, eax
dec edx
mov esi, dword [ebp - 0x18]
je 0x10074ce2
lea ecx, [ebx + 0x14]
mov dword [ecx - 0x10], ecx
add ecx, 0x10
dec edx
jne 0x10074cd3
add ecx, 0xfffffff0
mov ebx, dword [ebp - 0x10]
mov edx, dword [0x101dec08]
mov dword [ecx], edx
mov dword [0x101dec08], eax
add dword [0x101dec0c], edi
mov eax, dword [0x101dec10]
mov dword [ebx], eax
mov dword [0x101dec10], ebx
lea eax, [esi*4]
push eax
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
test eax, eax
je 0x10074da6
mov ecx, dword [ebp - 0x14]
mov dword [0x101dec18], ecx
mov ecx, dword [0x101dec14]
mov edx, dword [0x101dec1c]
test edx, edx
jne 0x10074dc2
mov dword [0x101dec14], eax
mov dword [0x101dec1c], esi
mov eax, dword [ebp - 0x1c]
mov dword [0x101dec20], eax
push ecx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [0x101de258]
xor edi, edi
cmp dword [eax + 4], 4
jge 0x10074e12
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov edi, eax
cmp eax, ebx
je 0x10074cc0
test ebx, ebx
je 0x10074e2b
add esi, 0xfffffff8
push esi
mov esi, dword [ebp - 0x10]
push esi
call sym.nss3.dll_PR_Realloc
add esp, 8
test eax, eax
cmovne esi, eax
mov dword [ebp - 0x10], esi
mov edi, ebx
jmp 0x10074cc0
mov eax, dword [0x101de258]
cmp dword [eax + 4], 3
jl 0x10074dbe
push str.unable_to_grow_monitor_cache_hash_buckets
call sym.nss3.dll_PR_LogPrint
add esp, 4
xor edi, edi
jmp 0x10074d68
mov dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x14]
mov edi, dword [ecx + esi*4]
test edi, edi
je 0x10074dfc
mov esi, dword [edi]
mov dword [ebp - 0x10], esi
mov esi, dword [edi + 4]
mov ebx, esi
shr ebx, 2
shr esi, 0xa
xor esi, ebx
and esi, dword [0x101dec18]
mov ebx, dword [eax + esi*4]
mov dword [edi], ebx
mov dword [eax + esi*4], edi
mov esi, dword [ebp - 0x10]
mov edi, esi
test esi, esi
jne 0x10074dd3
mov edi, dword [ebp - 0x14]
inc edi
mov esi, edi
mov dword [ebp - 0x14], edi
cmp edi, edx
mov esi, dword [ebp - 0x18]
je 0x10074d3a
jmp 0x10074dc9
push esi
push dword [0x101dec0c]
push str.expanded_monitor_cache_to__d__buckets__d_
call sym.nss3.dll_PR_LogPrint
add esp, 0xc
jmp 0x10074d68
push dword [ebp - 0x10]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor edi, edi
dec edi
jmp 0x10074d68
Function at 0x10075070
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x194
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push str.NSPR_FD_CACHE_SIZE_LOW
call sym.nss3.dll_PR_GetEnv
add esp, 4
mov ebx, eax
push str.NSPR_FD_CACHE_SIZE_HIGH
call sym.nss3.dll_PR_GetEnv
add esp, 4
xor edi, edi
mov dword [0x101de1d0], edi
mov dword [0x101de1d4], edi
mov esi, 0
test ebx, ebx
jne 0x1007520f
test eax, eax
jne 0x1007522a
test esi, esi
js 0x10075240
cmp esi, 0x41
jge 0x10075244
mov eax, 0x40
cmp edi, 0x40
cmovle eax, edi
jg 0x100750e7
cmp eax, esi
jge 0x100750f1
cmp eax, esi
cmovl eax, esi
mov dword [0x101de1d4], eax
call sym.nss3.dll_PR_NewLock
mov dword [0x101de1c0], eax
call sym.nss3.dll_PR_NewLock
mov dword [0x101de024], eax
push eax
call sym.nss3.dll_PR_NewCondVar
add esp, 4
mov dword [0x101de028], eax
push 0xfffffffffffffff6
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
call fcn.10002190
mov esi, eax
test eax, eax
je 0x10075254
mov dword [esi], 0x101dcd1c
mov eax, dword [esi + 4]
mov dword [eax], 0xaaaaaaaa
mov eax, dword [esi + 4]
mov dword [eax + 0x18], edi
mov dword [0x101de27c], esi
push 0xfffffffffffffff5
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
call fcn.10002190
mov esi, eax
test eax, eax
je 0x10075268
mov dword [esi], 0x101dcd1c
mov eax, dword [esi + 4]
mov dword [eax], 0xaaaaaaaa
mov eax, dword [esi + 4]
mov dword [eax + 0x18], edi
mov dword [0x101de280], esi
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
call fcn.10002190
mov esi, eax
test eax, eax
je 0x1007527c
mov dword [esi], 0x101dcd1c
mov eax, dword [esi + 4]
mov dword [eax], 0xaaaaaaaa
mov eax, dword [esi + 4]
mov dword [eax + 0x18], edi
mov dword [0x101de284], esi
xor esi, esi
inc esi
push esi
push dword [0x101de27c]
call fcn.10002170
add esp, 8
push esi
push dword [0x101de280]
call fcn.10002170
add esp, 8
push esi
push dword [0x101de284]
call fcn.10002170
add esp, 8
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
call fcn.10075300
call fcn.10075290
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
add esp, 0x194
pop esi
pop edi
pop ebx
pop ebp
ret
push ebx
mov ebx, eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov esi, eax
mov eax, ebx
mov dword [0x101de1d0], esi
jmp 0x100750bd
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov edi, eax
mov dword [0x101de1d4], eax
jmp 0x100750c5
xor esi, esi
jmp 0x10075249
mov esi, 0x40
mov dword [0x101de1d0], esi
jmp 0x100750d6
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x10075141
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x10075175
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100751a9
Function at 0x10075290
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x98
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 8], eax
lea esi, [ebp - 0x98]
push 0x90
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi - 4], 0x94
lea esi, [ebp - 0x9c]
push esi
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [esi + 4], 5
je 0x100752e7
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1014dc80
add esp, 0x98
pop esi
pop ebp
ret
cmp dword [ebp - 0x94], 1
jne 0x100752d4
mov byte [0x101de020], 1
jmp 0x100752d4
Function at 0x10077920
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x98
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 8], eax
lea esi, [ebp - 0x98]
push 0x90
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi - 4], 0x94
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.kernel32.dll_GetVersionExA]
test eax, eax
je 0x100779b5
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x8c]
cmp esi, 2
jne 0x100779c9
xor esi, esi
cmp edx, 5
je 0x100779ef
cmp edx, 2
jne 0x1007799f
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push 0x101bc0e1
push ecx
push eax
call sym.nss3.dll_PR_snprintf
add esp, 0x14
jmp 0x10077a04
cmp edx, 1
jne 0x10077a04
push str.Windows_NT
push ecx
push eax
call sym.nss3.dll_PR_snprintf
add esp, 0xc
jmp 0x10077a04
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.10001070
add esp, 4
xor esi, esi
dec esi
jmp 0x10077a04
cmp esi, 1
jne 0x10077a19
xor esi, esi
cmp edx, 5
je 0x100779ef
cmp edx, 2
je 0x10077982
cmp edx, 1
jne 0x10077a04
cmp dword [ebp - 0x98], 4
jbe 0x10077a4f
push str.Windows_98
jmp 0x100779a9
push dword [ebp - 0x90]
push 0x101bc624
push ecx
push eax
call sym.nss3.dll_PR_snprintf
add esp, 0x10
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 0x98
pop esi
pop ebp
ret
cmp edx, 2
je 0x10077a36
cmp edx, 1
jne 0x10077a3f
push str.Windows_Unknown
push ecx
push eax
call sym.nss3.dll_PR_snprintf
add esp, 0xc
xor esi, esi
jmp 0x10077a04
xor esi, esi
push esi
push esi
jmp 0x1007798e
xor esi, esi
cmp edx, 5
jne 0x10077a04
test ecx, ecx
je 0x10077a04
mov byte [eax], 0
jmp 0x10077a04
jne 0x10077a5a
cmp dword [ebp - 0x94], 0
jne 0x100779e8
push str.Windows_95
jmp 0x100779a9
Function at 0x1007c1b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 8]
cmp dword [0x101de200], 0
je 0x1007c319
test esi, esi
je 0x1007c323
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
inc eax
push eax
call dword [sym.imp.mozglue.dll_malloc]
add esp, 4
test eax, eax
je 0x1007c341
push esi
mov dword [ebp - 0x14], eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
mov edi, dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, dword [sym.imp.mozglue.dll_calloc]
mov esi, dword [0x101de168]
mov eax, dword [0x101de16c]
inc eax
cmp eax, esi
jge 0x1007c272
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0
mov esi, dword [0x101de160]
push dword [0x101de1f0]
call edi
mov ebx, eax
test eax, eax
je 0x1007c2fc
lea eax, [esi + 0x1c]
push eax
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
call eax
mov dword [esi + 8], ebx
mov edi, dword [0x101de16c]
lea ebx, [edi + 1]
mov eax, dword [0x101de168]
xor esi, esi
cmp ebx, eax
jl 0x1007c294
mov esi, dword [ebp - 0x10]
test esi, esi
mov ecx, dword [ebp - 0x14]
je 0x1007c376
cmp ebx, dword [ebp - 0x18]
jl 0x1007c2d5
jmp 0x1007c376
lea eax, [esi*4 + 0x40]
push eax
push 1
call ebx
add esp, 8
test eax, eax
je 0x1007c32f
mov dword [ebp - 0x10], eax
add esi, 0x10
mov dword [ebp - 0x18], esi
jmp 0x1007c220
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1007c2a4
mov eax, dword [0x101de164]
mov dword [eax + edi*4 + 4], ecx
mov dword [0x101de16c], ebx
push dword [0x101de160]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
jne 0x1007c358
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1007c367
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
test eax, eax
jne 0x1007c3a9
mov esi, dword [0x101de164]
mov eax, dword [ebp - 0x10]
mov dword [0x101de164], eax
mov eax, dword [ebp - 0x18]
mov dword [0x101de168], eax
mov dword [ebp - 0x10], 0
jmp 0x1007c297
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov ebx, eax
jmp 0x1007c238
call fcn.100745e0
jmp 0x1007c1c9
mov dword [ebp - 0x14], 0
jmp 0x1007c1fa
cmp dword [ebp - 0x14], 0
je 0x1007c341
push dword [ebp - 0x14]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
dec ebx
jmp 0x1007c2cb
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x1007c2c0
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x1007c2cb
push dword [0x101de160]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
mov edi, dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, dword [sym.imp.mozglue.dll_calloc]
je 0x1007c206
push dword [ebp - 0x10]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x1007c206
mov esi, dword [0x101de164]
shl eax, 2
push eax
push esi
push dword [ebp - 0x10]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x14]
add esp, 0xc
jmp 0x1007c2e3
Function at 0x1007c500
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov edi, 0xffffe8d2
mov esi, dword [ebp + 8]
cmp esi, 0x2733
jne 0x1007c55c
cmp dword [0x101de200], 0
je 0x1007c56b
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x1007c54a
mov dword [eax + 0x28], edi
mov dword [eax + 0x2c], esi
mov dword [eax + 0x30], 0
add esp, 0x10
pop esi
pop edi
pop ebp
ret
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x1007c536
cmp esi, 0x274c
jne 0x1007c572
mov edi, 0xffffe89a
jmp 0x1007c518
call fcn.100745e0
jmp 0x1007c521
cmp esi, 0x2726
jne 0x1007c581
mov edi, 0xffffe8d3
jmp 0x1007c518
add esp, 0x10
pop esi
pop edi
pop ebp
jmp fcn.10001070

Function at 0x1007c600
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x101de200], 0
je 0x1007c6ca
xor eax, eax
lea ecx, [ebp - 0x24]
mov dword [ecx + 4], eax
mov dword [ecx], 0xc
mov dword [ecx + 8], 1
lea edx, [ebp - 0x18]
lea esi, [ebp - 0x14]
push eax
push ecx
push edx
push esi
call dword [sym.imp.kernel32.dll_CreatePipe]
test eax, eax
je 0x1007c6d4
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
call fcn.10002190
test eax, eax
je 0x1007c6ea
mov edi, dword [ebp + 0xc]
mov dword [eax], 0x101dcdac
mov ecx, dword [eax + 4]
mov dword [ecx], 0xaaaaaaaa
mov ecx, dword [eax + 4]
mov dword [ecx + 0x18], ebx
mov dword [esi], eax
mov ebx, dword [ebp - 0x18]
call fcn.10002190
test eax, eax
je 0x1007c70e
mov dword [eax], 0x101dcdac
mov ecx, dword [eax + 4]
mov dword [ecx], 0xaaaaaaaa
mov ecx, dword [eax + 4]
mov dword [ecx + 0x18], ebx
mov dword [edi], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor ecx, ecx
inc ecx
mov dword [eax + 8], ecx
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [eax + 8], ecx
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.100745e0
jmp 0x1007c620
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 0xffffe896
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1007c73c
xor edi, edi
push edi
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
mov dword [esi], edi
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x18]
call esi
jmp 0x1007c73c
xor ebx, ebx
push ebx
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
mov dword [edi], ebx
mov esi, dword [esi]
mov eax, dword [esi]
mov ecx, dword [eax + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_CloseHandle]
xor esi, esi
dec esi
jmp 0x1007c6b6
Function at 0x1007ca10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [ebp + 8]
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x1007cacb
mov ebx, dword [edi]
cmp dword [ebx + 8], eax
jne 0x1007cae0
add edi, 0x74
mov ecx, dword [ebx + 0x34]
add ebx, 0x34
xor esi, esi
test ecx, ecx
jg 0x1007ca6d
xor eax, eax
lea eax, [eax + eax*2]
mov dword [ebx + eax*4 + 8], 1
mov dword [ebx + eax*4 + 4], edi
inc ecx
mov dword [ebx], ecx
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor edx, edx
inc edx
mov eax, ebx
mov ebx, eax
test ecx, ecx
mov eax, edx
cmovg eax, ecx
lea edx, [ebx + 8]
mov dword [ebp - 0x10], edx
mov edx, eax
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x10]
cmp dword [edx - 4], edi
je 0x1007cae8
add dword [ebp - 0x10], 0xc
mov edx, dword [ebp - 0x14]
dec edx
jne 0x1007ca83
cmp ecx, 6
jl 0x1007ca51
mov eax, dword [ebx + 0x4c]
test eax, eax
jne 0x1007cabc
mov dword [esp + 4], 0x50
mov dword [esp], 1
call dword [sym.imp.mozglue.dll_calloc]
mov dword [ebx + 0x4c], eax
mov ecx, dword [eax]
test ecx, ecx
mov edx, 1
jg 0x1007ca72
mov ebx, eax
jmp 0x1007ca4f
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x1007ca35
xor esi, esi
dec esi
jmp 0x1007ca63
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1007ca63
inc eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x1007ca63
Function at 0x1007e430
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, dword [ebp + 8]
cmp dword [0x101de200], 0
je 0x1007e4cc
mov dword [esp], edi
mov dword [esp + 4], 0x3d
call sub.VCRUNTIME140.dll_strchr
test eax, eax
je 0x1007e4d6
mov ebx, dword [0x101de204]
test ebx, ebx
je 0x1007e490
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
test eax, eax
je 0x1007e4b8
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [ebx + 8], esi
mov dword [esp], edi
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
mov esi, eax
mov eax, dword [0x101de204]
test eax, eax
je 0x1007e4ac
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
neg esi
sbb eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
mov esi, eax
jmp 0x1007e47e
call fcn.100745f0
jmp 0x1007e449
xor eax, eax
dec eax
jmp 0x1007e4b0
Function at 0x1007e4f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
cmp dword [0x101de200], 0
je 0x1007e601
mov ebx, dword [ebp + 8]
mov edi, dword [0x101debc4]
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
test eax, eax
je 0x1007e5d6
lea eax, [edi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [edi + 8], esi
mov esi, dword [ebx + 8]
mov eax, dword [0x101debc4]
mov edi, dword [ebx]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
test edi, edi
jne 0x1007e64a
xor eax, eax
inc eax
xchg dword [ebx + 4], eax
test eax, eax
jne 0x1007e60b
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
call dword [section..00cfg]
mov dword [esp], esi
call ecx
mov esi, eax
mov ebx, dword [0x101debc4]
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
test eax, eax
je 0x1007e5ed
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [ebx + 8], edi
mov eax, dword [ebp + 8]
mov dword [eax + 8], esi
mov dword [eax], 1
mov eax, dword [0x101debc8]
mov dword [esp], eax
call sym.nss3.dll_PR_NotifyAllCondVar
mov eax, dword [0x101debc4]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
mov esi, eax
jmp 0x1007e52a
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
mov edi, eax
jmp 0x1007e594
call fcn.100745f0
jmp 0x1007e506
mov eax, dword [0x101debc4]
mov dword [esp], eax
call sym.nss3.dll_PR_Lock
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1007e637
mov eax, dword [0x101debc8]
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
call sym.nss3.dll_PR_WaitCondVar
jmp 0x1007e618
mov eax, dword [ebp + 8]
mov esi, dword [eax + 8]
mov eax, dword [0x101debc4]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
test esi, esi
je 0x1007e667
call sym.nss3.dll_PR_GetCurrentThread
mov dword [eax + 0x28], 0xffffe8db
xor ecx, ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
jmp 0x1007e5cc
xor esi, esi
jmp 0x1007e5cc