joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d6f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov ecx, dword [ebp + 8]
mov word [ecx + 0x32], 0
and byte [ecx + 1], 0xf9
cmp byte [ecx], 0
jne 0x1000d729
mov eax, dword [ecx + 0x74]
movzx edx, word [ecx + 0x46]
lea esi, [edx + 1]
mov word [ecx + 0x46], si
cmp si, word [eax + 0x18]
jae 0x1000d725
cmp byte [eax + 8], 0
je 0x1000d730
xor eax, eax
pop esi
pop ebp
ret
mov word [ecx + 0x46], dx
pop esi
pop ebp
jmp fcn.1000f570
pop esi
pop ebp
jmp fcn.1000eed0

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
cmp byte [ecx + 0x44], 0
jns 0x1000e364
mov edx, dword [esi + 0x40]
test edx, edx
je 0x1000e39b
mov al, byte [esi]
cmp al, 3
jae 0x1000e3d2
movzx eax, byte [esi + 2]
lea edi, [esi + 0x74]
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 4]
push eax
push 0
push edi
call fcn.1000e4a0
add esp, 0xc
test eax, eax
jne 0x1000e3db
mov byte [esi + 0x44], 0
mov ecx, dword [esi + 0x74]
mov al, byte [ecx + 2]
mov byte [esi + 0x45], al
cmp byte [ecx], 0
je 0x1000e3ad
cmp dword [esi + 0x70], 0
sete al
cmp byte [ecx + 2], al
jne 0x1000e3ad
xor eax, eax
mov word [esi + 0x46], ax
mov word [esi + 0x32], ax
and byte [esi + 1], 0xf1
cmp word [ecx + 0x18], ax
je 0x1000e391
mov byte [esi], 0
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esi + 0x74]
je 0x1000e334
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
jne 0x1000e400
call fcn.1001c870
mov al, byte [esi + 0x44]
dec al
mov byte [esi + 0x44], al
je 0x1000e3a5
movsx eax, al
mov eax, dword [esi + eax*4 + 0x78]
mov ecx, dword [eax + 0x48]
jmp 0x1000e36c
cmp byte [ecx + 8], 0
je 0x1000e456
mov byte [esi], 1
mov eax, 0x10
jmp 0x1000e35c
mov ecx, dword [esi + 0x78]
mov dword [esi + 0x74], ecx
jmp 0x1000e345
push 0x101c47ed
push 0x1144d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov eax, 0xb
jmp 0x1000e35c
cmp al, 4
jne 0x1000e3e3
mov eax, dword [esi + 4]
jmp 0x1000e35c
mov byte [esi], 1
jmp 0x1000e35c
push dword [esi + 0x10]
call sym.nss3.dll_sqlite3_free
add esp, 4
mov dword [esi + 0x10], 0
mov byte [esi], 1
mov edx, dword [esi + 0x40]
jmp 0x1000e306
mov edi, dword [ecx + 0x14]
dec dword [edi + 0x78]
mov eax, dword [edi + 0x88]
mov dword [ecx + 0x10], eax
mov dword [edi + 0x88], ecx
mov eax, dword [ecx + 0x18]
dec eax
mov edx, dword [edi + 0x98]
mov ebx, edx
sar ebx, 0x1f
imul ebx, eax
mul edx
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], eax
mov edi, dword [edi + 0x3c]
add edx, ebx
mov ebx, edx
mov eax, dword [edi]
mov ecx, dword [eax + 0x48]
call dword [section..00cfg]
push dword [ebp - 0x10]
push ebx
push dword [ebp - 0x14]
push edi
call ecx
add esp, 0x10
jmp 0x1000e37b
cmp dword [ecx + 4], 1
jne 0x1000e482
mov eax, dword [ecx + 0x38]
movzx ecx, byte [ecx + 9]
push dword [ecx + eax + 8]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov byte [esi], 0
mov ecx, esi
mov edx, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.1014e4c0
push 0x101c47ed
push 0x1145a
jmp 0x1000e3b7
Function at 0x1000f570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov cl, byte [ecx]
test cl, cl
jne 0x1000f62e
mov edi, dword [esi + 0x74]
movzx ebx, word [esi + 0x46]
inc ebx
mov word [esi + 0x46], bx
cmp byte [edi], 0
je 0x1000f6a8
mov ecx, dword [0x101db120]
test ecx, ecx
jne 0x1000f690
mov cl, byte [edi + 8]
cmp bx, word [edi + 0x18]
jb 0x1000f6d0
test cl, cl
je 0x1000f65e
movsx eax, byte [esi + 0x44]
test eax, eax
jne 0x1000f5d5
mov byte [esi], 1
mov eax, 0x65
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov word [esi + 0x32], 0
and byte [esi + 1], 0xf9
movzx ecx, word [esi + eax*2 + 0x46]
mov word [esi + 0x46], cx
mov ecx, dword [esi + 0x74]
dec al
mov byte [esi + 0x44], al
movsx eax, al
mov eax, dword [esi + eax*4 + 0x78]
mov dword [esi + 0x74], eax
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
jne 0x1000f6dc
call fcn.1001c870
mov ecx, dword [esi + 0x74]
movzx eax, word [esi + 0x46]
cmp ax, word [ecx + 0x18]
jae 0x1000f5bd
xor eax, eax
cmp byte [ecx + 2], 0
je 0x1000f5cd
push 0
push esi
call fcn.1000d6f0
add esp, 0x10
jmp 0x1000f5d0
cmp cl, 3
jae 0x1000f732
mov eax, 0x65
cmp cl, 1
je 0x1000f5cd
cmp cl, 2
jne 0x1000f585
mov byte [esi], 0
xor eax, eax
cmp dword [esi + 4], 0
jg 0x1000f5cd
jmp 0x1000f585
mov eax, dword [edi + 0x38]
movzx ecx, byte [edi + 9]
push dword [ecx + eax + 8]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov ecx, esi
mov edx, eax
call fcn.1014e4c0
test eax, eax
jne 0x1000f5cd
mov ecx, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.1000eed0
call dword [section..00cfg]
push 0x19c
call ecx
add esp, 4
test eax, eax
je 0x1000f5a8
push 0x101c47ed
push 0x1164d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov eax, 0xb
jmp 0x1000f5cd
xor eax, eax
test cl, cl
jne 0x1000f5cd
jmp 0x1000f682
mov edi, dword [ecx + 0x14]
dec dword [edi + 0x78]
mov eax, dword [edi + 0x88]
mov dword [ecx + 0x10], eax
mov dword [edi + 0x88], ecx
mov eax, dword [ecx + 0x18]
dec eax
mov edx, dword [edi + 0x98]
mov ebx, edx
sar ebx, 0x1f
imul ebx, eax
mul edx
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], eax
mov edi, dword [edi + 0x3c]
add edx, ebx
mov ebx, edx
mov eax, dword [edi]
mov ecx, dword [eax + 0x48]
call dword [section..00cfg]
push dword [ebp - 0x10]
push ebx
push dword [ebp - 0x14]
push edi
call ecx
add esp, 0x10
jmp 0x1000f60c
mov ecx, esi
call fcn.10155660
test eax, eax
jne 0x1000f5cd
mov cl, byte [esi]
jmp 0x1000f637
Function at 0x10018660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x1001878e
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edx
lea eax, [edx + 1]
mov dword [ebp - 0x1c], eax
xor eax, eax
xor ecx, ecx
xor edx, edx
cmp ecx, 2
setb dl
mov dword [ebp - 0x14], ecx
xor edx, ecx
mov ecx, edx
shl ecx, 4
mov esi, dword [ebp - 0x18]
mov esi, dword [esi + ecx + 0xc]
mov dword [ebp - 0x24], esi
cmp dword [ebp + 8], 0
je 0x100186ee
mov esi, dword [ebp - 0x18]
mov edi, dword [esi + ecx]
xor esi, esi
movzx ebx, byte [edi + esi]
mov ecx, dword [ebp + 8]
movzx ecx, byte [ecx + esi]
cmp bl, cl
jne 0x100186ca
test bl, bl
je 0x100186ee
inc esi
jmp 0x100186b4
mov bl, byte [ebx + 0x1019c728]
cmp bl, byte [ecx + 0x1019c728]
je 0x100186c7
test edx, edx
je 0x10018798
mov ecx, dword [ebp - 0x14]
inc ecx
cmp ecx, dword [ebp - 0x20]
jne 0x1001868a
jmp 0x10018790
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebx + 0x24]
test esi, esi
jne 0x10018754
lea edi, [ebx + 0x20]
add ebx, 0x1c
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebx]
mov ecx, 0x101dded0
test ebx, ebx
je 0x10018744
mov edi, dword [edi]
dec ebx
mov ecx, dword [edi + 0xc]
xor esi, esi
movzx edx, byte [ecx + esi]
movzx eax, byte [eax + esi]
cmp dl, al
jne 0x1001872a
test dl, dl
je 0x10018750
inc esi
mov eax, dword [ebp - 0x10]
jmp 0x10018714
mov dl, byte [edx + 0x1019c728]
cmp dl, byte [eax + 0x1019c728]
je 0x10018724
test ebx, ebx
mov eax, dword [ebp - 0x10]
jne 0x1001870c
mov ecx, 0x101dded0
mov eax, dword [ecx + 8]
test eax, eax
mov ecx, dword [ebp - 0x14]
je 0x100186e3
jmp 0x10018790
mov ecx, edi
jmp 0x10018744
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
xor eax, eax
test cl, cl
je 0x1001877b
mov edx, dword [ebp - 0x1c]
movzx ecx, cl
movzx ecx, byte [ecx + 0x1019c728]
add ecx, eax
imul eax, ecx, 0x9e3779b1
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x10018762
xor edx, edx
div dword [ebx + 0x18]
lea edi, [esi + edx*8]
add edi, 4
lea ebx, [esi + edx*8]
jmp 0x100186fe
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
movzx edx, byte [ecx + str.main]
mov esi, dword [ebp + 8]
movzx ebx, byte [esi + ecx]
cmp dl, bl
je 0x100187c0
mov dl, byte [edx + 0x1019c728]
cmp dl, byte [ebx + 0x1019c728]
jne 0x100186e0
jmp 0x100187c8
test dl, dl
je 0x100186ee
inc ecx
jmp 0x1001879a
Function at 0x1001c760
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
cmp byte [ecx + 0x44], 0
js 0x1001c788
mov esi, ecx
jne 0x1001c790
mov eax, dword [esi + 0x74]
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
jne 0x1001c7af
call fcn.1001c870
mov byte [esi + 0x44], 0xff
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
mov eax, dword [esi + edi*4 + 0x78]
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
jne 0x1001c802
call fcn.1001c870
inc edi
movsx eax, byte [esi + 0x44]
cmp edi, eax
jge 0x1001c773
jmp 0x1001c792
mov edi, dword [ecx + 0x14]
dec dword [edi + 0x78]
mov eax, dword [edi + 0x88]
mov dword [ecx + 0x10], eax
mov dword [edi + 0x88], ecx
mov eax, dword [ecx + 0x18]
dec eax
mov edx, dword [edi + 0x98]
mov ebx, edx
sar ebx, 0x1f
imul ebx, eax
mul edx
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x14], eax
mov edi, dword [edi + 0x3c]
add edx, ebx
mov ebx, edx
mov eax, dword [edi]
mov ecx, dword [eax + 0x48]
call dword [section..00cfg]
push dword [ebp - 0x14]
push ebx
push dword [ebp - 0x18]
push edi
call ecx
add esp, 0x10
jmp 0x1001c784
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x10], edx
dec dword [edx + 0x78]
mov eax, dword [edx + 0x88]
mov dword [ecx + 0x10], eax
mov dword [edx + 0x88], ecx
mov eax, dword [ecx + 0x18]
dec eax
mov edx, dword [edx + 0x98]
mov ebx, edx
sar ebx, 0x1f
imul ebx, eax
mul edx
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x10], eax
add edx, ebx
mov ebx, edx
mov eax, dword [eax]
mov ecx, dword [eax + 0x48]
call dword [section..00cfg]
push dword [ebp - 0x14]
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call ecx
add esp, 0x10
jmp 0x1001c7a4
Function at 0x10068d60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10068dfb
cmp dword [0x101de200], 0
je 0x10068e0f
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x10068de1
xor edi, edi
dec edi
test esi, esi
je 0x10068dda
push dword [esi + 0x3c]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
inc ebx
push ebx
call dword [sym.imp.mozglue.dll_malloc]
add esp, 4
mov dword [esi + 0x3c], eax
test eax, eax
je 0x10068dda
push ebx
push dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [esi + 0x3c]
call fcn.10068e20
add esp, 4
xor edi, edi
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x10068d90
push 0
push 0xffffe89d
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
dec edi
jmp 0x10068dda
call fcn.100745f0
jmp 0x10068d7e

Function at 0x10069070
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [0x101db014]
xor edx, ebp
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], 1
push ecx
push eax
push edi
call sub.wsock32.dll_socket
cmp eax, 0xffffffff
je 0x100690d6
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push 0x8004667e
push esi
call sub.wsock32.dll_ioctlsocket
test eax, eax
jne 0x100690e6
cmp edi, 0x17
jne 0x100690c3
test byte [0x101de020], 1
jne 0x10069104
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebp
ret
call sub.wsock32.dll_WSAGetLastError
push eax
call fcn.10189fa0
add esp, 4
jmp 0x100690ff
call sub.wsock32.dll_WSAGetLastError
push eax
push 0xffffe896
call sym.nss3.dll_PR_SetError
add esp, 8
push esi
call sub.wsock32.dll_closesocket
xor esi, esi
dec esi
jmp 0x100690c3
lea eax, [ebp - 0x18]
mov dword [eax], 4
lea edi, [ebp - 0x14]
push eax
push edi
push 0x1002
push 0xffff
push esi
call sub.wsock32.dll_getsockopt
test eax, eax
jne 0x100690c3
cmp dword [ebp - 0x14], 0x10000
jl 0x100690c3
mov eax, 0xffff
mov dword [ebp - 0x14], eax
push dword [ebp - 0x18]
push edi
push 0x1002
push eax
push esi
call sub.wsock32.dll_setsockopt
jmp 0x100690c3
Function at 0x10069770
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, ecx
mov ebx, dword [0x101debd8]
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 0x1006984d
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [ebx + 8], edi
test byte [esi + 0xe0], 1
jne 0x100698b7
mov eax, dword [0x101de238]
dec eax
mov dword [0x101de238], eax
cmp eax, dword [0x101debdc]
je 0x10069808
mov esi, dword [0x101debd8]
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x10069864
cmp dword [esi + 8], eax
jne 0x10069800
mov dword [esi + 8], 0
add esi, 0x1c
mov dword [esp], esi
call sym.nss3.dll__PR_MD_UNLOCK
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [0x101debe0]
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x100698a2
mov edi, dword [esi]
cmp dword [edi + 8], eax
jne 0x100697ce
add esi, 0x74
mov ecx, dword [edi + 0x34]
add edi, 0x34
xor ebx, ebx
test ecx, ecx
jg 0x10069879
lea eax, [ebx + ebx*2]
mov dword [edi + eax*4 + 8], 1
mov dword [edi + eax*4 + 4], esi
inc ecx
mov dword [edi], ecx
jmp 0x100697ce
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
mov edi, eax
jmp 0x1006979c
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x100697e9
mov eax, edi
mov edi, eax
test ecx, ecx
mov eax, 1
cmovg eax, ecx
lea edx, [edi + 8]
mov dword [ebp - 0x10], eax
cmp dword [edx - 4], esi
je 0x100698c2
add edx, 0xc
dec eax
jne 0x1006988d
cmp ecx, 6
jge 0x100698d5
mov ebx, dword [ebp - 0x10]
jmp 0x10069839
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x10069823
dec dword [0x101de23c]
jmp 0x100697ce
mov eax, dword [edx]
cmp eax, 0xffffffff
je 0x100697ce
inc eax
mov dword [edx], eax
jmp 0x100697ce
mov eax, dword [edi + 0x4c]
test eax, eax
jne 0x100698f4
mov dword [esp + 4], 0x50
mov dword [esp], 1
call dword [sym.imp.mozglue.dll_calloc]
mov dword [edi + 0x4c], eax
mov ecx, dword [eax]
test ecx, ecx
jg 0x1006987b
mov edi, eax
jmp 0x10069839
Function at 0x1006a700
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
mov edi, dword [eax + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call sub.wsock32.dll_connect
mov esi, eax
cmp eax, 0xffffffff
jne 0x1006a74d
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x1006a737
mov ecx, dword [ebx + 4]
cmp dword [ecx + 4], 0
je 0x1006a762
mov ecx, 0xffffe8d2
cmp eax, 0x2733
jne 0x1006a754
push eax
push ecx
call sym.nss3.dll_PR_SetError
add esp, 8
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
cmp eax, 0x274c
jne 0x1006a779
mov ecx, 0xffffe89a
jmp 0x1006a743
mov ecx, edi
mov edx, 3
push dword [ebp + 0x14]
call fcn.10077cb0
add esp, 4
sar eax, 0x1f
jmp 0x1006a74f
cmp eax, 0x2726
jne 0x1006a787
mov ecx, 0xffffe8d3
jmp 0x1006a743
push eax
call fcn.10001070
add esp, 4
jmp 0x1006a74d

Function at 0x1006a7a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 8]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1006a815
mov ecx, edi
mov edi, dword [edi]
xor eax, eax
dec eax
cmp dword [edi + 8], esi
jne 0x1006a810
mov ebx, 0x1002
mov eax, dword [esi + 0xe0]
and eax, ebx
cmp eax, 2
je 0x1006a82f
mov eax, dword [ebp + 0xc]
mov edx, ecx
mov dword [esi + 0xd8], ecx
xor ecx, ecx
mov dword [edi + 8], ecx
lea ecx, [edi + 0x1c]
add edx, 0x74
push eax
push ecx
push edx
call sym.nss3.dll__PR_MD_WAIT_CV
xor eax, eax
add esp, 0xc
mov dword [esi + 0xd8], eax
mov dword [edi + 8], esi
and ebx, dword [esi + 0xe0]
cmp ebx, 2
je 0x1006a82f
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x1006a7bb
push 0
push 0xffffe897
call sym.nss3.dll_PR_SetError
add esp, 8
and byte [esi + 0xe0], 0xfd
xor eax, eax
dec eax
jmp 0x1006a810
Function at 0x1006e540
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x140], eax
lea eax, [esi + 0xdc]
mov ecx, dword [esi + 0x10]
push eax
push 0x10004
push esi
push 0x1007fb50
push dword [ecx + 0x1c]
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x108], eax
test eax, eax
je 0x1006e5bf
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 0xdc]
mov dword [esi + 0x10c], edx
cmp ecx, 1
jne 0x1006e5a7
push eax
call dword [sym.imp.kernel32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
neg ecx
mov eax, ecx
pop esi
pop ebp
ret
lea eax, [esi + 0x100]
push ecx
push eax
call fcn.10076670
add esp, 8
mov eax, dword [esi + 0x108]
jmp 0x1006e591
xor eax, eax
dec eax
jmp 0x1006e5a4

Function at 0x1006e740
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
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 0x1006e7e3
test byte [esi + 0xe0], 8
jne 0x1006e7dc
mov dword [esp], esi
call fcn.1014a4b0
mov eax, dword [esi + 0x24]
mov dword [esp], eax
call dword [sym.imp.mozglue.dll_free]
xor edi, edi
mov dword [esi + 0x24], edi
mov ecx, esi
call fcn.10069770
mov dword [esp], esi
call fcn.1006e800
mov eax, dword [0x101de1f0]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
sub esp, 8
cmp dword [esi + 0xf0], edi
jne 0x1006e7c4
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call dword [sym.imp.mozglue.dll_free]
mov dword [esi + 0x10], 0
lea eax, [esi + 0x40]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.mozglue.dll_free]
add esp, 0x10
pop esi
pop edi
pop ebp
ret
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
mov esi, eax
jmp 0x1006e763
Function at 0x10070ae0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x18
mov esi, edx
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov edi, dword [ecx + 0xc]
test edi, edi
jne 0x10070b9f
push esi
push dword [ecx + 0x10]
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test eax, eax
je 0x10070b22
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
cmp dword [0x101de200], 0
je 0x10070bdd
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10070b87
mov dword [eax + 0x28], 0xffffe8a9
mov dword [eax + 0x2c], edi
mov dword [eax + 0x30], 0
call dword [sym.imp.kernel32.dll_GetLastError]
lea edi, [ebp - 0x20]
push eax
push str.error__d
push 0x14
push edi
call sym.nss3.dll_PR_snprintf
add esp, 0x10
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push edi
push eax
call sym.nss3.dll_PR_SetErrorText
add esp, 8
jmp 0x10070b0f
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x10070b47
mov eax, dword [edi]
test eax, eax
je 0x10070bbf
add edi, 8
push eax
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x10070bd5
mov eax, dword [edi]
add edi, 8
test eax, eax
jne 0x10070ba8
push 0
push 0xffffe8a9
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
jmp 0x10070b0f
mov esi, dword [edi - 4]
jmp 0x10070b0f
call fcn.100745e0
jmp 0x10070b37

Function at 0x10070bf0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
cmp dword [0x101de200], 0
je 0x10070c6d
mov edi, dword [ebp + 8]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x10070c53
test edi, edi
je 0x10070c74
mov eax, dword [esi + 0x38]
cmp dword [esi + 0x34], edi
jg 0x10070c3b
lea ebx, [edi + 0x1f]
test eax, eax
jne 0x10070c94
push ebx
call dword [sym.imp.mozglue.dll_malloc]
add esp, 4
mov dword [esi + 0x38], eax
test eax, eax
je 0x10070ca6
mov dword [esi + 0x34], ebx
lea ecx, [edi + 1]
push ecx
push dword [ebp + 0xc]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esi + 0x30], edi
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x10070c14
call fcn.100745f0
jmp 0x10070bff
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10070c8b
push eax
call sym.nss3.dll_PR_Free
add esp, 4
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
jmp 0x10070c4b
push eax
call sym.nss3.dll_PR_Free
add esp, 4
mov dword [esi + 0x38], 0
jmp 0x10070c27
mov dword [esi + 0x34], 0
xor edi, edi
jmp 0x10070c4b
Function at 0x10072010
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 8]
cmp dword [0x101de200], 0
je 0x10072106
test eax, eax
je 0x10072114
call sym.nss3.dll_PR_IntervalNow
mov dword [ebp - 0x10], eax
push dword [0x101de240]
call sym.nss3.dll_PR_NewCondVar
add esp, 4
mov esi, eax
mov ebx, dword [0x101de240]
call fcn.1014c8b0
mov edi, eax
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov edi, dword [sym.imp.winmm.dll_timeGetTime]
cmp dword [0x101de200], 0
je 0x100720b0
call edi
mov edi, eax
sub edi, dword [ebp - 0x10]
xor ebx, ebx
cmp edi, dword [ebp + 8]
ja 0x100720bc
call fcn.1014c8b0
mov ebx, dword [esi]
cmp dword [ebx + 8], eax
mov edx, esi
jne 0x100720b7
mov esi, dword [ebp + 8]
sub esi, edi
mov ecx, eax
mov edi, edx
push esi
push ebx
call fcn.1014f2d0
add esp, 8
test eax, eax
mov esi, edi
mov edi, dword [sym.imp.winmm.dll_timeGetTime]
je 0x10072067
xor ebx, ebx
dec ebx
jmp 0x100720bc
call fcn.100745f0
jmp 0x10072070
xor ebx, ebx
dec ebx
mov esi, edx
mov edi, dword [0x101de240]
call fcn.1014c8b0
cmp dword [edi + 8], eax
jne 0x100720df
mov dword [edi + 8], 0
add edi, 0x1c
push edi
call sym.nss3.dll__PR_MD_UNLOCK
add esp, 4
mov dword [esi + 0x74], 0xffffffff
mov eax, esi
add eax, 0xc
push eax
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, ebx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, eax
call fcn.100745f0
mov eax, esi
jmp 0x10072027
cmp dword [0x101de200], 0
jne 0x10072122
call fcn.100745f0
call fcn.1014c8b0
push dword [0x101de1f8]
call dword [sym.imp.kernel32.dll_TlsGetValue]
call fcn.10195a50
xor ebx, ebx
jmp 0x100720fc