joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1014b6d0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
test eax, eax
jne 0x1014b6ef
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test ebx, ebx
je 0x1014b778
mov ecx, esi
mov esi, eax
cmp eax, 3
jb 0x1014b7bc
mov edi, ebx
mov eax, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
movzx esi, byte [eax + 2]
add eax, 3
mov ebx, ecx
shl edx, 8
shr ecx, 2
shl ebx, 0x10
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
or ebx, edx
or edx, esi
and esi, 0x3f
shr ebx, 0xc
shr edx, 6
and ebx, 0x3f
and edx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], cl
mov byte [edi + 1], bl
mov byte [edi + 2], dl
mov edx, dword [ebp - 0x10]
mov bl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
add edx, 0xfffffffd
mov byte [edi + 3], bl
add edi, 4
cmp edx, 2
mov dword [ebp - 0x10], edx
ja 0x1014b70e
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov ecx, eax
jmp 0x1014b7be
xor ebx, ebx
cmp eax, 0xbffffffd
ja 0x1014b831
mov esi, eax
add eax, 2
mov ecx, 0xaaaaaaab
mul ecx
mov edi, edx
add edi, edx
and edi, 0xfffffffc
lea eax, [edi + 1]
push eax
call sym.nss3.dll_PR_Malloc
add esp, 4
test eax, eax
je 0x1014b831
mov byte [eax + edi], 0
mov ebx, eax
mov eax, esi
mov esi, dword [ebp + 8]
jmp 0x1014b6f7
mov edi, ebx
cmp esi, 1
je 0x1014b809
cmp esi, 2
jne 0x1014b831
mov eax, ecx
movzx ecx, byte [ecx]
shr ecx, 2
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], cl
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
shl ecx, 4
shr edx, 4
and ecx, 0x30
mov cl, byte [ecx + edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 1], cl
movzx ecx, byte [eax + 1]
and ecx, 0xf
mov cl, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 2], cl
mov byte [edi + 3], 0x3d
jmp 0x1014b831
mov eax, ecx
movzx ecx, byte [ecx]
shr ecx, 2
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], cl
movzx ecx, byte [eax]
shl ecx, 4
and ecx, 0x30
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 1], cl
mov word [edi + 2], 0x3d3d
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1014d880
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
test dl, dl
je 0x1014d8a0
inc ecx
xor eax, eax
rol eax, 4
movzx edx, dl
xor eax, edx
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x1014d88f
pop ebp
ret
xor eax, eax
jmp 0x1014d89e
Function at 0x10161070
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x101610c2
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x101610c2
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1fc], 0x401
jb 0x101610aa
push ecx
call fcn.10180570
mov ecx, dword [ebp + 8]
add esp, 4
test eax, eax
je 0x101611f8
xor edx, edx
test ebx, ebx
je 0x101610ce
mov eax, dword [ecx + 0x50]
test eax, eax
je 0x101610ce
cmp byte [esi], al
jne 0x101610c2
inc esi
dec ebx
xor eax, eax
inc eax
jmp 0x101610d0
push 0
push 0xffffe89d
jmp 0x101611ff
xor eax, eax
cmp ebx, 2
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
jl 0x101610fe
test byte [ecx + 0x1e], 2
je 0x101610fe
movzx eax, word [ecx + 0x58]
cmp eax, 0x301
ja 0x101610fe
mov eax, dword [ecx + 0x3b8]
xor edx, edx
mov eax, dword [eax + 0x14]
cmp dword [eax + 0x10], 1
sete dl
xor esi, esi
mov dword [ebp - 0x1c], ebx
mov edi, ebx
sub edi, esi
jle 0x101611d0
test esi, esi
jle 0x10161156
test byte [ecx + 0x1d], 4
mov ebx, ecx
mov dword [ebp - 0x18], edx
jne 0x1016112a
push dword [ebx + 0x168]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
push 0
call sym.nss3.dll_PR_Sleep
add esp, 4
test byte [ebx + 0x1d], 4
mov ecx, ebx
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jne 0x10161156
push dword [ecx + 0x168]
call sym.nss3.dll_PR_EnterMonitor
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add esp, 4
cmp edi, 0x4001
mov eax, 0x4000
cmovge edi, eax
test edx, edx
mov eax, 1
cmovne edi, eax
mov eax, dword [ebp - 0x14]
add eax, esi
push dword [ebp + 0x14]
push edi
push eax
push 0x17
push 0
push ecx
mov edi, ecx
call fcn.10160680
add esp, 0x18
test eax, eax
js 0x101611a0
add esi, eax
xor edx, edx
cmp dword [edi + 0x1fc], 0
mov ecx, edi
je 0x10161103
jmp 0x101611d9
xor edi, edi
dec edi
test esi, esi
jle 0x1016120a
cmp dword [0x101d4d40], 0
je 0x10161239
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10161228
cmp dword [eax + 0x28], 0xffffe892
mov ecx, dword [ebp + 8]
jne 0x1016120a
cmp dword [ecx + 0x1fc], 0
je 0x1016121a
test esi, esi
jle 0x101611ed
mov eax, dword [ebp - 0x14]
movzx eax, byte [esi + eax - 1]
or eax, 0x100
mov dword [ecx + 0x50], eax
mov ecx, dword [ebp - 0x10]
lea eax, [esi + ecx]
cmp eax, 1
jg 0x10161214
push 0
push 0xffffe892
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
dec edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
lea edi, [esi + ecx - 1]
jmp 0x1016120a
add esi, dword [ebp - 0x10]
mov dword [ecx + 0x50], 0
mov edi, esi
jmp 0x1016120a
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x101611c4
call sym.nss3.dll_PR_Init
jmp 0x101611b4
Function at 0x10161250
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x9f8], 1
jne 0x10161269
pop esi
pop edi
pop ebp
jmp fcn.1015d5f0
mov eax, dword [edi + 0xa0]
xor esi, esi
test eax, eax
je 0x10161316
mov ecx, dword [edi + 0xa4]
test ecx, ecx
je 0x10161316
mov edx, dword [ebp + 0xc]
test edx, 0xbfffffff
je 0x101612a6
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
jmp 0x10161316
push edx
push ecx
push eax
push 0x16
push 0
push edi
call fcn.10160680
add esp, 0x18
test eax, eax
js 0x101612d8
xor esi, esi
cmp eax, dword [edi + 0xa4]
jae 0x1016130c
push 0
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
jmp 0x1016130c
cmp dword [0x101d4d40], 0
je 0x1016132d
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1016131c
xor esi, esi
dec esi
cmp dword [eax + 0x28], 0xffffe892
jne 0x1016130c
push 0
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
mov dword [edi + 0xa4], 0
mov eax, esi
pop esi
pop edi
pop ebp
ret
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x101612f1
call sym.nss3.dll_PR_Init
jmp 0x101612e1

Function at 0x101638c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [0x101d6194]
test edi, edi
je 0x101639c5
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x101639cb
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov esi, 0xfffffe98
mov eax, dword [esi + 0x101d6300]
test eax, eax
je 0x10163918
push eax
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov dword [esi + 0x101d6300], 0
mov eax, dword [esi + 0x101d6304]
test eax, eax
je 0x10163935
push eax
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov dword [esi + 0x101d6304], 0
mov eax, dword [esi + 0x101d6308]
test eax, eax
je 0x10163952
push eax
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov dword [esi + 0x101d6308], 0
mov eax, dword [esi + 0x101d630c]
test eax, eax
je 0x1016396f
push eax
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov dword [esi + 0x101d630c], 0
mov eax, dword [esi + 0x101d6310]
test eax, eax
je 0x1016398c
push eax
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov dword [esi + 0x101d6310], 0
mov eax, dword [esi + 0x101d6314]
test eax, eax
je 0x101639a9
push eax
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov dword [esi + 0x101d6314], 0
add esi, 0x18
jne 0x101638fb
push dword [0x101d6194]
call sym.nss3.dll_PR_Unlock
add esp, 4
call fcn.10177270
xor eax, eax
pop esi
pop edi
pop ebp
ret
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x101638e9
Function at 0x10167340
Capabilities:
Get thread local storage value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xd8
mov eax, dword [0x101d2014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x101d671c], 0
je 0x1016736f
mov esi, dword [ebp + 0x10]
push esi
call sym.nss3.dll_PK11_ExtractKeyValue
add esp, 4
test eax, eax
je 0x10167384
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
add esp, 0xd8
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [esi + 0x1c], 0
je 0x1016736f
mov edi, dword [ebp + 0xc]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ecx, dword [esi + 0x20]
lea eax, [eax + ecx*2 + 0x43]
cmp eax, 0xc8
ja 0x1016736f
mov ebx, dword [ebp + 8]
lea esi, [ebp - 0xd8]
mov dword [ebp - 0xe4], eax
push edi
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
lea edx, [ebp + eax - 0xd8]
mov edi, 0xffffffe0
mov dword [ebp - 0xdc], eax
add byte [edx], 0x20
movzx ecx, byte [ebx + edi + 0x430]
shr ecx, 4
mov cl, byte [ecx + 0x101a80bb]
mov byte [edx + edi*2 + 0x41], cl
movzx ecx, byte [ebx + edi + 0x430]
and ecx, 0xf
mov cl, byte [ecx + 0x101a80bb]
mov byte [edx + edi*2 + 0x42], cl
inc edi
jne 0x101673db
mov ecx, dword [ebp - 0xdc]
add eax, 0x42
mov byte [ecx + esi + 0x41], 0x20
mov ecx, dword [ebp + 0x10]
mov esi, eax
mov dword [ebp - 0xe0], esi
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x10167464
mov edx, dword [ecx + 0x1c]
lea ebx, [ebp + esi - 0xd8]
xor edi, edi
movzx esi, byte [edx + edi]
shr esi, 4
mov cl, byte [esi + 0x101a80bb]
mov byte [ebx + edi*2], cl
movzx ecx, byte [edx + edi]
and ecx, 0xf
mov cl, byte [ecx + 0x101a80bb]
mov byte [ebx + edi*2 + 1], cl
inc edi
cmp eax, edi
jne 0x10167434
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x20]
add ecx, ecx
jmp 0x10167466
xor ecx, ecx
add ecx, dword [ebp - 0xe0]
mov ebx, dword [0x101d6720]
mov byte [ebp + ecx - 0xd8], 0xa
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x101674de
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
push dword [0x101d671c]
push 1
push dword [ebp - 0xe4]
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x101674cb
push dword [0x101d671c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
push dword [0x101d6720]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x1016736f
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x1016748c
Function at 0x101708a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
movzx esi, word [ebp + 0x10]
movzx eax, word [eax + 0x58]
cmp eax, 0x303
jbe 0x101708f9
push 2
push esi
call fcn.10189740
add esp, 8
test eax, eax
je 0x101708f9
push 8
push esi
call fcn.10189740
add esp, 8
test eax, eax
je 0x101708f3
push 0xb
push esi
call fcn.10189740
add esp, 8
test eax, eax
jne 0x10170a87
add edi, 0x150
jmp 0x101708f9
add edi, 0xa8
cmp dword [edi + 4], 0
je 0x10170a9d
cmp dword [edi], esi
je 0x10170a87
cmp dword [edi + 0xc], 0
lea eax, [edi + 8]
je 0x10170a9b
cmp dword [eax], esi
je 0x10170a87
cmp dword [edi + 0x14], 0
lea eax, [edi + 0x10]
je 0x10170a9b
cmp dword [eax], esi
je 0x10170a87
cmp dword [edi + 0x1c], 0
lea eax, [edi + 0x18]
je 0x10170a9b
cmp dword [eax], esi
je 0x10170a87
cmp dword [edi + 0x24], 0
lea eax, [edi + 0x20]
je 0x10170a9b
cmp dword [eax], esi
je 0x10170a87
cmp dword [edi + 0x2c], 0
lea eax, [edi + 0x28]
je 0x10170a9b
cmp dword [eax], esi
je 0x10170a87
cmp dword [edi + 0x34], 0
lea eax, [edi + 0x30]
je 0x10170a9b
cmp dword [eax], esi
je 0x10170a87
cmp dword [edi + 0x3c], 0
lea eax, [edi + 0x38]
je 0x10170a9b
cmp dword [eax], esi
je 0x10170a87
cmp dword [edi + 0x44], 0
lea eax, [edi + 0x40]
je 0x10170a9b
cmp dword [eax], esi
je 0x10170a87
cmp dword [edi + 0x4c], 0
lea eax, [edi + 0x48]
je 0x10170a9b
cmp dword [eax], esi
je 0x10170a87
cmp dword [edi + 0x54], 0
lea eax, [edi + 0x50]
je 0x10170a9b
cmp dword [eax], esi
je 0x10170a87
cmp dword [edi + 0x5c], 0
lea eax, [edi + 0x58]
je 0x10170a9b
cmp dword [eax], esi
je 0x10170a87
cmp dword [edi + 0x64], 0
lea eax, [edi + 0x60]
je 0x10170a9b
cmp dword [eax], esi
je 0x10170a87
cmp dword [edi + 0x6c], 0
lea eax, [edi + 0x68]
je 0x10170a9b
cmp dword [eax], esi
je 0x10170a87
cmp dword [edi + 0x74], 0
lea eax, [edi + 0x70]
je 0x10170a9b
cmp dword [eax], esi
je 0x10170a87
cmp dword [edi + 0x7c], 0
lea eax, [edi + 0x78]
je 0x10170a9b
cmp dword [eax], esi
je 0x10170a87
cmp dword [edi + 0x84], 0
lea eax, [edi + 0x80]
je 0x10170a9b
cmp dword [eax], esi
je 0x10170a87
cmp dword [edi + 0x8c], 0
lea eax, [edi + 0x88]
je 0x10170a9b
cmp dword [eax], esi
je 0x10170a87
cmp dword [edi + 0x94], 0
lea eax, [edi + 0x90]
je 0x10170a9b
cmp dword [eax], esi
je 0x10170a87
cmp dword [edi + 0x9c], 0
lea eax, [edi + 0x98]
je 0x10170a9b
cmp dword [eax], esi
je 0x10170a87
cmp dword [edi + 0xa4], 0
je 0x10170aab
push 0
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
xor eax, eax
dec eax
jmp 0x10170aa7
mov edi, eax
mov eax, dword [ebp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], eax
xor eax, eax
pop esi
pop edi
pop ebp
ret
add edi, 0xa0
jmp 0x10170a9d
Function at 0x10175660
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov ecx, dword [eax]
mov ebx, dword [eax + 0x150]
mov esi, dword [ecx + 8]
mov eax, dword [esi]
mov ecx, dword [eax + 0x44]
call dword [section..00cfg]
push ebx
push edi
mov edi, dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
push esi
call ecx
add esp, 0x14
mov esi, eax
test eax, eax
js 0x101756af
cmp esi, edi
jle 0x101756e0
push 0
push 0xffffe8b6
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
jmp 0x101756e0
cmp dword [0x101d4d40], 0
je 0x101756f8
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x101756e7
cmp dword [eax + 0x28], 0xffffe8d7
jne 0x101756e0
push 0
push 0xffffe8b7
call sym.nss3.dll_PR_SetError
add esp, 8
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x101756c8
call sym.nss3.dll_PR_Init
jmp 0x101756b8

Function at 0x10175700
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esi, ebx
sub esi, edi
mov eax, dword [eax]
mov ecx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x154]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
add eax, edi
mov dword [ebp - 0x14], eax
call dword [section..00cfg]
push dword [ebp - 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call ecx
add esp, 0x14
mov esi, eax
test eax, eax
js 0x1017577b
add edi, esi
cmp edi, ebx
jge 0x10175769
mov eax, dword [ebp + 8]
cmp dword [eax + 0x9f8], 1
je 0x10175777
cmp edi, ebx
jl 0x10175719
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], 0
mov esi, edi
jmp 0x101757d3
cmp dword [0x101d4d40], 0
je 0x101757ee
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x101757dd
mov eax, dword [eax + 0x28]
cmp eax, 0xffffe892
jne 0x101757b3
mov eax, dword [ebp + 8]
xor esi, esi
cmp edi, 1
sbb esi, esi
or esi, edi
mov dword [eax + 0x44], 1
jmp 0x101757d3
mov ecx, dword [ebp + 8]
cmp eax, 0xffffe8d8
mov dword [ecx + 0x44], 0
jne 0x101757d3
push 0
push 0xffffe8b7
call sym.nss3.dll_PR_SetError
add esp, 8
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x10175794
call sym.nss3.dll_PR_Init
jmp 0x10175784
Function at 0x101771c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x1017722d
cmp dword [eax], 0
je 0x10177203
mov eax, dword [eax + 4]
lea ecx, [eax + 1]
cmp ecx, 1
jbe 0x1017722d
push 0xffffffffffffffff
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x10177243
mov ecx, eax
xor eax, eax
test ecx, ecx
je 0x1017723f
cmp ecx, 0x80
je 0x1017723f
push 0
push 0xffffe896
jmp 0x10177234
mov edi, dword [eax + 4]
test edi, edi
je 0x1017722d
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x10177254
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
xor eax, eax
jmp 0x1017723f
push 0
push 0xffffe89d
call sym.nss3.dll_PR_SetError
add esp, 8
xor eax, eax
dec eax
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.10192120
add esp, 4
jmp 0x1017723c
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x1017721c

Function at 0x101775c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1017762b
cmp byte [0x101d6624], 0
jne 0x101775e8
push 0x10177400
push 0x101d6628
call sym.nss3.dll_PR_CallOnce
add esp, 8
mov ebx, dword [0x101d6634]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x10177630
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
dec dword [edi + 8]
jne 0x1017761d
push 1
push edi
call fcn.101774d0
add esp, 8
push dword [0x101d6634]
call sym.nss3.dll_PR_Unlock
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x10177600

Function at 0x10177650
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
cmp byte [0x101d6624], 0
jne 0x10177671
push 0x10177400
push 0x101d6628
call sym.nss3.dll_PR_CallOnce
add esp, 8
mov esi, dword [ebp + 8]
mov ebx, dword [0x101d6634]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x101776b1
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
inc dword [esi + 8]
push dword [0x101d6634]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov edi, eax
jmp 0x1017768c
Function at 0x101776d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
cmp dword [ebp + 0x1c], 0
je 0x101777ff
cmp byte [0x101d6624], 0
jne 0x101776fb
push 0x10177400
push 0x101d6628
call sym.nss3.dll_PR_CallOnce
add esp, 8
mov edi, dword [0x101d6634]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x10177808
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov esi, dword [0x101d6638]
test esi, esi
je 0x101777ed
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ebx, 0x101d6638
mov eax, dword [esi + 0x5c]
cmp dword [esi + 0x58], edi
sbb eax, ecx
jge 0x1017776d
mov eax, dword [esi]
mov dword [ebx], eax
mov dword [esi + 4], 3
dec dword [esi + 8]
jne 0x101777b4
push 1
push esi
call fcn.101774d0
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
add esp, 8
jmp 0x101777b4
movdqu xmm0, xmmword [esi + 0x38]
movdqu xmm1, xmmword [edx]
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x101777b2
movzx eax, word [ebp + 0x14]
cmp word [esi + 0x48], ax
jne 0x101777b2
cmp dword [ebp + 0x18], 0
mov eax, dword [esi + 0x24]
je 0x101777ae
test eax, eax
je 0x101777b2
push dword [ebp + 0x18]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
add esp, 8
test eax, eax
je 0x101777bc
mov ebx, esi
mov esi, dword [ebx]
test esi, esi
jne 0x10177740
jmp 0x101777ed
cmp byte [esi + 0xce], 0
je 0x101777b2
mov eax, dword [esi + 0x28]
test eax, eax
je 0x101777b2
push eax
push dword [ebp + 0x1c]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
add esp, 8
test eax, eax
jne 0x101777b2
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
inc dword [esi + 8]
jmp 0x101777ef
xor esi, esi
push dword [0x101d6634]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x10177801
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x10177717
Function at 0x10178740
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1c], 0
js 0x10178773
mov edi, dword [eax + 0xc4]
test edi, edi
je 0x10178773
cmp dword [eax + 0x60], 0
je 0x1017876a
push edi
call fcn.1017b170
add esp, 4
jmp 0x10178773
cmp dword [eax + 0x138], 0
je 0x10178778
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [0x101d6624], 0
jne 0x10178793
push 0x10177400
push 0x101d6628
call sym.nss3.dll_PR_CallOnce
add esp, 8
mov ebx, dword [0x101d6634]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x10178809
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
cmp dword [edi + 4], 1
jne 0x101787f9
mov eax, dword [0x101d6638]
test eax, eax
je 0x101787f9
cmp eax, edi
je 0x101787d9
mov ecx, eax
mov eax, dword [eax]
test eax, eax
je 0x101787f9
cmp eax, edi
jne 0x101787cb
jmp 0x101787de
mov ecx, 0x101d6638
mov eax, dword [edi]
mov dword [ecx], eax
mov dword [edi + 4], 3
dec dword [edi + 8]
jne 0x101787f9
push 1
push edi
call fcn.101774d0
add esp, 8
push dword [0x101d6634]
call sym.nss3.dll_PR_Unlock
jmp 0x10178765
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x101787ab

Function at 0x10178820
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
cmp byte [0x101d6624], 0
jne 0x10178840
push 0x10177400
push 0x101d6628
call sym.nss3.dll_PR_CallOnce
add esp, 8
mov edi, dword [0x101d6634]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x101788b5
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [0x101d6638]
test eax, eax
je 0x101788a3
cmp dword [eax + 4], 1
jne 0x1017889b
mov ecx, dword [eax]
mov dword [0x101d6638], ecx
mov dword [eax + 4], 3
dec dword [eax + 8]
jne 0x1017889d
push 1
push eax
call fcn.101774d0
add esp, 8
mov ecx, dword [0x101d6638]
jmp 0x1017889d
mov ecx, eax
test ecx, ecx
mov eax, ecx
jne 0x1017886e
push dword [0x101d6634]
call sym.nss3.dll_PR_Unlock
add esp, 4
pop esi
pop edi
pop ebp
ret
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x10178858