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

Disassembly:
mov edi, dword [ebp + 0x3c]
add edi, ebp
mov esi, dword [0x601d2386]
mov dword [esp + 0x20010], esi
mov edx, dword [edi + ebx*8 + 0x78]
mov ebx, dword [edx + ebp + 0x20]
mov esi, dword [edx + ebp + 0x1c]
add ebx, ebp

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

Disassembly:
mov edi, dword [edx + ebp + 0x24]
add esi, ebp
mov ecx, dword [edx + ebp + 0x18]
add edi, ebp
test ecx, ecx
jbe 0x601b8259
lds eax, [eax]
add byte [eax], al
mov dword [esp + 0x20014], ecx
xor edx, edx
mov dword [esp + 0x20028], ebp
mov dword [esp + 0x20004], edi
mov dword [esp + 0x20000], esi
mov dword [esp + 0x20020], ebx
mov dword [esp + 0x2001c], eax
mov ecx, dword [esp + 0x20010]
mov eax, dword [esp + 0x20020]
mov esi, dword [esp + 0x20028]
add esi, dword [eax + edx*4]
cmp byte [esi], 0
je 0x601b8235
xor eax, eax
inc eax
cmp byte [eax + esi], 0
jne 0x601b81df
test eax, eax
je 0x601b8235
mov ebx, eax
xor ebp, ebp
shr ebx, 1
je 0x601b8505
mov dword [esp + 0x20010], edx
xor edi, edi
imul ebp, ecx
movzx edx, byte [esi + edi*2]
add ebp, edx
imul ebp, ecx
movzx edx, byte [esi + edi*2 + 1]
inc edi
add ebp, edx
cmp edi, ebx
jb 0x601b81ff
mov edx, dword [esp + 0x20010]
lea edi, [edi + edi + 1]
lea ebx, [edi - 1]
cmp ebx, eax
jae 0x601b8237
imul ebp, ecx
movzx eax, byte [edi + esi - 1]
inc dword [ebx]
invalid
jmp 0x601b8237
xor ebp, ebp
cmp ebp, dword [esp + 0x2001c]
je 0x601b8544
inc edx
cmp edx, dword [esp + 0x20014]
jb 0x601b81c7
mov ebp, dword [esp + 0x20028]
mov dword [esp + 0x20010], 0
mov eax, dword [esp + 0x20008]
mov esi, dword [0x601d238a]
movsx ebx, byte [eax]
add eax, ebx
mov dword [esp + 0x20008], eax
mov ebx, dword [0x601d2386]
and ebx, dword [0x1788060]
invalid
je 0x601b82fe
xor edi, edi
inc edi
cmp byte [edi + eax + 1], 0
jne 0x601b828b
test edi, edi
je 0x601b82fe
mov edx, edi
xor eax, eax
shr edx, 1
je 0x601b850f
mov dword [esp + 0x20004], esi
xor ecx, ecx
mov dword [esp + 0x20000], edi
add byte [edx], al
add byte [ebx + 0x824b4], cl
add al, byte [eax]
xor eax, eax
mov edi, 1
jmp 0x601b8222
mov edx, 1
jmp 0x601b82e5
mov edi, dword [esp + 0x20004]
movzx eax, word [edi + edx*2]
mov ebp, dword [esp + 0x20028]
mov edx, ebp
mov esi, dword [esp + 0x20000]
add edx, dword [esi + eax*4]
mov dword [esp + 0x20010], edx
jmp 0x601b8264
Function at 0x601b8190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, dword [edx + ebp + 0x24]
add esi, ebp
mov ecx, dword [edx + ebp + 0x18]
add edi, ebp
test ecx, ecx
jbe 0x601b8259
lds eax, [eax]
add byte [eax], al
mov dword [esp + 0x20014], ecx
xor edx, edx
mov dword [esp + 0x20028], ebp
mov dword [esp + 0x20004], edi
mov dword [esp + 0x20000], esi
mov dword [esp + 0x20020], ebx
mov dword [esp + 0x2001c], eax
mov ecx, dword [esp + 0x20010]
mov eax, dword [esp + 0x20020]
mov esi, dword [esp + 0x20028]
add esi, dword [eax + edx*4]
cmp byte [esi], 0
je 0x601b8235
xor eax, eax
inc eax
cmp byte [eax + esi], 0
jne 0x601b81df
test eax, eax
je 0x601b8235
mov ebx, eax
xor ebp, ebp
shr ebx, 1
je 0x601b8505
mov dword [esp + 0x20010], edx
xor edi, edi
imul ebp, ecx
movzx edx, byte [esi + edi*2]
add ebp, edx
imul ebp, ecx
movzx edx, byte [esi + edi*2 + 1]
inc edi
add ebp, edx
cmp edi, ebx
jb 0x601b81ff
mov edx, dword [esp + 0x20010]
lea edi, [edi + edi + 1]
lea ebx, [edi - 1]
cmp ebx, eax
jae 0x601b8237
imul ebp, ecx
movzx eax, byte [edi + esi - 1]
inc dword [ebx]
invalid
jmp 0x601b8237
xor ebp, ebp
cmp ebp, dword [esp + 0x2001c]
je 0x601b8544
inc edx
cmp edx, dword [esp + 0x20014]
jb 0x601b81c7
mov ebp, dword [esp + 0x20028]
mov dword [esp + 0x20010], 0
mov eax, dword [esp + 0x20008]
mov esi, dword [0x601d238a]
movsx ebx, byte [eax]
add eax, ebx
mov dword [esp + 0x20008], eax
mov ebx, dword [0x601d2386]
and ebx, dword [0x1788060]
invalid
je 0x601b82fe
xor edi, edi
inc edi
cmp byte [edi + eax + 1], 0
jne 0x601b828b
test edi, edi
je 0x601b82fe
mov edx, edi
xor eax, eax
shr edx, 1
je 0x601b850f
mov dword [esp + 0x20004], esi
xor ecx, ecx
mov dword [esp + 0x20000], edi
add byte [edx], al
add byte [ebx + 0x824b4], cl
add al, byte [eax]
xor eax, eax
mov edi, 1
jmp 0x601b8222
mov edx, 1
jmp 0x601b82e5
mov edi, dword [esp + 0x20004]
movzx eax, word [edi + edx*2]
mov ebp, dword [esp + 0x20028]
mov edx, ebp
mov esi, dword [esp + 0x20000]
add edx, dword [esi + eax*4]
mov dword [esp + 0x20010], edx
jmp 0x601b8264
Function at 0x601b8230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, dword [edx + ebp + 0x24]
add esi, ebp
mov ecx, dword [edx + ebp + 0x18]
add edi, ebp
test ecx, ecx
jbe 0x601b8259
lds eax, [eax]
add byte [eax], al
mov dword [esp + 0x20014], ecx
xor edx, edx
mov dword [esp + 0x20028], ebp
mov dword [esp + 0x20004], edi
mov dword [esp + 0x20000], esi
mov dword [esp + 0x20020], ebx
mov dword [esp + 0x2001c], eax
mov ecx, dword [esp + 0x20010]
mov eax, dword [esp + 0x20020]
mov esi, dword [esp + 0x20028]
add esi, dword [eax + edx*4]
cmp byte [esi], 0
je 0x601b8235
xor eax, eax
inc eax
cmp byte [eax + esi], 0
jne 0x601b81df
test eax, eax
je 0x601b8235
mov ebx, eax
xor ebp, ebp
shr ebx, 1
je 0x601b8505
mov dword [esp + 0x20010], edx
xor edi, edi
imul ebp, ecx
movzx edx, byte [esi + edi*2]
add ebp, edx
imul ebp, ecx
movzx edx, byte [esi + edi*2 + 1]
inc edi
add ebp, edx
cmp edi, ebx
jb 0x601b81ff
mov edx, dword [esp + 0x20010]
lea edi, [edi + edi + 1]
lea ebx, [edi - 1]
cmp ebx, eax
jae 0x601b8237
imul ebp, ecx
movzx eax, byte [edi + esi - 1]
inc dword [ebx]
invalid
jmp 0x601b8237
xor ebp, ebp
cmp ebp, dword [esp + 0x2001c]
je 0x601b8544
inc edx
cmp edx, dword [esp + 0x20014]
jb 0x601b81c7
mov ebp, dword [esp + 0x20028]
mov dword [esp + 0x20010], 0
mov eax, dword [esp + 0x20008]
mov esi, dword [0x601d238a]
movsx ebx, byte [eax]
add eax, ebx
mov dword [esp + 0x20008], eax
mov ebx, dword [0x601d2386]
and ebx, dword [0x1788060]
invalid
je 0x601b82fe
xor edi, edi
inc edi
cmp byte [edi + eax + 1], 0
jne 0x601b828b
test edi, edi
je 0x601b82fe
mov edx, edi
xor eax, eax
shr edx, 1
je 0x601b850f
mov dword [esp + 0x20004], esi
xor ecx, ecx
mov dword [esp + 0x20000], edi
add byte [edx], al
add byte [ebx + 0x824b4], cl
add al, byte [eax]
xor eax, eax
mov edi, 1
jmp 0x601b8222
mov edx, 1
jmp 0x601b82e5
mov edi, dword [esp + 0x20004]
movzx eax, word [edi + edx*2]
mov ebp, dword [esp + 0x20028]
mov edx, ebp
mov esi, dword [esp + 0x20000]
add edx, dword [esi + eax*4]
mov dword [esp + 0x20010], edx
jmp 0x601b8264
Function at 0x601b8280
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, dword [edx + ebp + 0x24]
add esi, ebp
mov ecx, dword [edx + ebp + 0x18]
add edi, ebp
test ecx, ecx
jbe 0x601b8259
lds eax, [eax]
add byte [eax], al
mov dword [esp + 0x20014], ecx
xor edx, edx
mov dword [esp + 0x20028], ebp
mov dword [esp + 0x20004], edi
mov dword [esp + 0x20000], esi
mov dword [esp + 0x20020], ebx
mov dword [esp + 0x2001c], eax
mov ecx, dword [esp + 0x20010]
mov eax, dword [esp + 0x20020]
mov esi, dword [esp + 0x20028]
add esi, dword [eax + edx*4]
cmp byte [esi], 0
je 0x601b8235
xor eax, eax
inc eax
cmp byte [eax + esi], 0
jne 0x601b81df
test eax, eax
je 0x601b8235
mov ebx, eax
xor ebp, ebp
shr ebx, 1
je 0x601b8505
mov dword [esp + 0x20010], edx
xor edi, edi
imul ebp, ecx
movzx edx, byte [esi + edi*2]
add ebp, edx
imul ebp, ecx
movzx edx, byte [esi + edi*2 + 1]
inc edi
add ebp, edx
cmp edi, ebx
jb 0x601b81ff
mov edx, dword [esp + 0x20010]
lea edi, [edi + edi + 1]
lea ebx, [edi - 1]
cmp ebx, eax
jae 0x601b8237
imul ebp, ecx
movzx eax, byte [edi + esi - 1]
inc dword [ebx]
invalid
jmp 0x601b8237
xor ebp, ebp
cmp ebp, dword [esp + 0x2001c]
je 0x601b8544
inc edx
cmp edx, dword [esp + 0x20014]
jb 0x601b81c7
mov ebp, dword [esp + 0x20028]
mov dword [esp + 0x20010], 0
mov eax, dword [esp + 0x20008]
mov esi, dword [0x601d238a]
movsx ebx, byte [eax]
add eax, ebx
mov dword [esp + 0x20008], eax
mov ebx, dword [0x601d2386]
and ebx, dword [0x1788060]
invalid
je 0x601b82fe
xor edi, edi
inc edi
cmp byte [edi + eax + 1], 0
jne 0x601b828b
test edi, edi
je 0x601b82fe
mov edx, edi
xor eax, eax
shr edx, 1
je 0x601b850f
mov dword [esp + 0x20004], esi
xor ecx, ecx
mov dword [esp + 0x20000], edi
add byte [edx], al
add byte [ebx + 0x824b4], cl
add al, byte [eax]
xor eax, eax
mov edi, 1
jmp 0x601b8222
mov edx, 1
jmp 0x601b82e5
mov edi, dword [esp + 0x20004]
movzx eax, word [edi + edx*2]
mov ebp, dword [esp + 0x20028]
mov edx, ebp
mov esi, dword [esp + 0x20000]
add edx, dword [esi + eax*4]
mov dword [esp + 0x20010], edx
jmp 0x601b8264

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

Disassembly:
add byte [edx], al
add byte [ebx + 0x824b4], cl
add al, byte [eax]
imul eax, ebx
movzx edi, byte [esi + ecx*2 + 1]
add eax, edi
imul eax, ebx
movzx edi, byte [esi + ecx*2 + 2]
inc ecx
add eax, edi
cmp ecx, edx
jb 0x601b82ba
mov edi, dword [esp + 0x20000]
lea edx, [ecx + ecx + 1]
mov esi, dword [esp + 0x20004]
lea ecx, [edx - 1]
cmp ecx, edi
jae 0x601b8300
imul ebx, eax
invalid
Function at 0x601bb4b0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x601d3208]
test eax, eax
jne 0x601bb4be
call fcn.601bba70
mov eax, dword [0x601d31c8]
test eax, eax
je 0x601bb4d0
push eax
call sym.nspr4.dll_PR_Lock
add esp, 4
mov eax, dword [esp + 4]
push esi
push eax
call sub.MSVCRT.dll_getenv
mov esi, eax
mov eax, dword [0x601d31c8]
add esp, 4
test eax, eax
je 0x601bb4f2
push eax
call sym.nspr4.dll_PR_Unlock
add esp, 4
mov eax, esi
pop esi
ret

Function at 0x601bbd80
Capabilities:
Suspend thread

Disassembly:
jmp 0x601c73c0
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.MSVCRT.dll__exit]
nop
nop
nop
nop
nop
Function at 0x601bc1b0
Capabilities:
Terminate process

Disassembly:
jmp 0x601c6910
mov eax, dword [esp + 4]
push 0x100
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x601c6929
xor eax, eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xffffe896
call sym.nspr4.dll_PR_SetError
add esp, 8
or eax, 0xffffffff
ret

Function at 0x601bc630
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [0x601d3208]
push esi
or esi, 0xffffffff
test eax, eax
jne 0x601bc642
call fcn.601bba70
mov eax, dword [esp + 8]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x601bc668
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xffffe8ab
call sym.nspr4.dll_PR_SetError
add esp, 8
mov eax, esi
pop esi
ret
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push 0
lea ecx, [esp + 0x14]
push edx
push ecx
push eax
call fcn.601bc6a0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x601bc697
push 0
push 0xffffe8aa
call sym.nspr4.dll_PR_SetError
add esp, 8
mov eax, esi
pop esi
ret

Function at 0x601bc990
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [0x601d3208]
push esi
or esi, 0xffffffff
push edi
test eax, eax
jne 0x601bc9a3
call fcn.601bba70
mov di, word [esp + 0x10]
cmp di, 2
je 0x601bc9c9
cmp di, 0x17
je 0x601bc9c9
push 0
push 0xffffe89d
call sym.nspr4.dll_PR_SetError
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
ret
mov eax, dword [esp + 0xc]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x601bc9f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xffffe8ab
call sym.nspr4.dll_PR_SetError
add esp, 8
mov eax, esi
pop edi
pop esi
ret
xor ecx, ecx
cmp di, 0x17
jne 0x601bc9fd
mov ecx, 1
mov edx, dword [esp + 0x20]
push edx
push ecx
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call fcn.601bc6a0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x601bca2b
push 0
push 0xffffe8aa
call sym.nspr4.dll_PR_SetError
add esp, 8
mov eax, esi
pop edi
pop esi
ret

Function at 0x601bd1f0
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
lea esi, [edi + 8]
push esi
push ebx
call fcn.601bd260
add esp, 8
cmp eax, 1
jne 0x601bd21c
mov word [edi], 0x17
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
xor eax, eax
push ebx
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov word [edi], 2
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [edi + 4], eax
jne 0x601bd24e
push 0
push 0xffffe89d
call sym.nspr4.dll_PR_SetError
add esp, 8
or ebp, 0xffffffff
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov eax, dword [0x601d3368]
test eax, eax
jne 0x601bdc7e
jmp sym.nspr4.dll_PR_Free
mov ecx, dword [esp + 4]
push ecx
call dword [0x601d3220]
ret

Function at 0x601bded0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x601bdef0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x40
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x601bdf33
push str.GlobalMemoryStatusEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x601bdf33
lea ecx, [esp]
mov dword [esp], 0x40
push ecx
call eax
test eax, eax
je 0x601bdf33
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, ecx
or ecx, edx
jne 0x601bdf53
push edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 4]
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0xc]
xor edx, edx
pop edi
add esp, 0x40
ret
Function at 0x601bfa60
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x601bfa85
mov ecx, dword [0x601d3244]
cmp dword [ecx + 4], 2
jl 0x601bfab3
mov dword [esp + 8], eax
mov dword [esp + 4], str.PRGetTraceOption:_Invalid_command__ld
jmp sym.nspr4.dll_PR_LogPrint
mov edx, dword [esp + 8]
mov eax, dword [0x601d3234]
mov dword [edx], eax
mov ecx, dword [0x601d3244]
cmp dword [ecx + 4], 4
jl 0x601bfab3
mov edx, dword [0x601d3234]
mov dword [esp + 4], str.PRGetTraceOption:_PRTraceBufSize:__ld
mov dword [esp + 8], edx
jmp sym.nspr4.dll_PR_LogPrint
ret
Function at 0x601c28b0
Capabilities:
Create pipe

Disassembly:
mov eax, dword [0x601d3208]
sub esp, 0x14
test eax, eax
jne 0x601c28c1
call fcn.601bba70
xor eax, eax
push esi
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], eax
lea edx, [esp + 4]
mov dword [esp + 0x14], eax
push eax
push ecx
lea eax, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x1c], 0xc
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x601c2916
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xffffe896
call sym.nspr4.dll_PR_SetError
add esp, 8
or eax, 0xffffffff
pop esi
add esp, 0x14
ret
mov ecx, dword [esp + 8]
push 0x601d2418
push ecx
call sym.nspr4.dll_PR_AllocFileDesc
mov esi, dword [esp + 0x24]
add esp, 8
test eax, eax
mov dword [esi], eax
jne 0x601c294e
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 4]
push eax
call esi
or eax, 0xffffffff
pop esi
add esp, 0x14
ret
mov ecx, dword [esp + 4]
push 0x601d2418
push ecx
call sym.nspr4.dll_PR_AllocFileDesc
mov ecx, dword [esp + 0x28]
add esp, 8
test eax, eax
mov dword [ecx], eax
mov edx, dword [esi]
jne 0x601c2988
push edx
call sym.nspr4.dll_PR_Close
mov eax, dword [esp + 8]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
add esp, 0x14
ret
mov eax, dword [edx + 4]
pop esi
mov dword [eax + 8], 1
mov ecx, dword [ecx]
xor eax, eax
mov edx, dword [ecx + 4]
mov dword [edx + 8], 1
add esp, 0x14
ret

Function at 0x601c29b0
Capabilities:
Check os version
Initialize winsock library

Disassembly:
push esi
push edi
call sym.nspr4.dll_PR_GetFileMethods
mov esi, eax
call fcn.601b12d0
call sym.nspr4.dll_PR_NewLock
push eax
mov dword [0x601d3304], eax
call sym.nspr4.dll_PR_NewCondVar
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 4
mov dword [0x601d3308], eax
push esi
push 0xfffffffffffffff6
call edi
push eax
call sym.nspr4.dll_PR_AllocFileDesc
add esp, 8
mov dword [0x601d332c], eax
push esi
push 0xfffffffffffffff5
call edi
push eax
call sym.nspr4.dll_PR_AllocFileDesc
add esp, 8
mov dword [0x601d3354], eax
push esi
push 0xfffffffffffffff4
call edi
push eax
call sym.nspr4.dll_PR_AllocFileDesc
mov dword [0x601d333c], eax
mov eax, dword [0x601d332c]
push 1
push eax
call fcn.601c8130
mov ecx, dword [0x601d3354]
push 1
push ecx
call fcn.601c8130
mov edx, dword [0x601d333c]
push 1
push edx
call fcn.601c8130
add esp, 0x20
pop edi
pop esi
jmp 0x601c7430
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
call fcn.601c6ce0
call fcn.601c83d0
add esp, 0x190
jmp 0x601c8860
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 8]
pop edi
cmp eax, 6
jb 0x601c88c4
push str.Ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x601d32b0], eax
je 0x601c88c4
push str.WSAIoctl
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x601d32b4], eax
je 0x601c88c4
mov dword [0x601d32b8], 1
add esp, 0x94
ret
Function at 0x601c4050
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x601d3208]
push esi
xor esi, esi
push edi
test eax, eax
jne 0x601c4062
call fcn.601bba70
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x601c4085
call sym.nspr4.dll_PR_GetCurrentThread
mov eax, dword [0x601d32c8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
call fcn.601c72d0
mov eax, esi
pop edi
pop esi
ret
push ebx
push ebp
call sym.nspr4.dll_PR_IntervalNow
mov ecx, dword [0x601d3344]
mov ebp, eax
push ecx
call sym.nspr4.dll_PR_NewCondVar
mov edx, dword [0x601d3344]
mov ebx, eax
push edx
call sym.nspr4.dll_PR_Lock
add esp, 8
call sym.nspr4.dll_PR_IntervalNow
sub eax, ebp
cmp eax, edi
ja 0x601c40ca
mov ecx, edi
sub ecx, eax
push ecx
push ebx
call sym.nspr4.dll_PR_WaitCondVar
mov esi, eax
add esp, 8
test esi, esi
je 0x601c40ab
mov edx, dword [0x601d3344]
push edx
call sym.nspr4.dll_PR_Unlock
push ebx
call sym.nspr4.dll_PR_DestroyCondVar
add esp, 8
mov eax, esi
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x601c4110
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x601d3208]
test eax, eax
jne 0x601c411e
call fcn.601bba70
jmp fcn.601c7410

Function at 0x601c4490
Capabilities:
Get thread local storage value

Disassembly:
call fcn.601c7410
mov eax, dword [0x601d333c]
push eax
mov dword [0x601d3300], eax
call fcn.601c43c0
add esp, 4
jmp fcn.601c7410
Function at 0x601c4f70
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
call sym.nspr4.dll_PR_NewLock
mov dword [0x601d3318], eax
call sym.nspr4.dll_PR_NewLock
mov ebx, 1
push 0x2c
push ebx
mov dword [0x601d32d8], eax
call sym.nspr4.dll_PR_Calloc
mov ecx, dword [0x601d3358]
push eax
lea edx, [esp + ecx + 0x1b]
mov ecx, dword [0x601d335c]
sar edx, cl
shl edx, cl
mov dword [eax + 0x18], edx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.601c5450
mov esi, eax
xor edi, edi
add esp, 0x14
cmp esi, edi
je 0x601c501f
mov edx, dword [0x601d32c4]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [esp + 0x10], ebx
jne 0x601c4ff3
mov dword [esi + 0xdc], ebx
mov eax, dword [0x601d3320]
inc eax
mov dword [0x601d32dc], edi
mov dword [0x601d3320], eax
jmp 0x601c5004
mov eax, dword [0x601d3334]
mov dword [0x601d32dc], ebx
inc eax
mov dword [0x601d3334], eax
mov dword [esi + 0xe0], ebx
mov eax, dword [0x601d32d8]
push eax
call sym.nspr4.dll_PR_NewCondVar
add esp, 4
mov dword [0x601d32e8], eax
jmp 0x601c5024
call sym.nspr4.dll_PR_Abort
mov ebx, dword [esi + 0xdc]
push esi
or bl, 0x88
mov dword [esi + 0xdc], ebx
call fcn.601c71d0
lea eax, [esi + 0xac]
add esp, 4
mov dword [eax], 0x601d22bc
mov ecx, dword [0x601d22c0]
mov dword [esi + 0xb0], ecx
mov edx, dword [0x601d22c0]
mov dword [edx], eax
mov dword [0x601d22c0], eax
mov eax, dword [0x601d32cc]
mov dword [0x601d327c], edi
inc eax
mov dword [0x601d32cc], eax
call sym.nspr4.dll_PR_NewLock
mov dword [0x601d32e0], eax
mov eax, 0x601d32d0
mov dword [0x601d32ec], edi
mov dword [0x601d32e4], edi
mov dword [0x601d32d0], eax
mov dword [0x601d32d4], eax
mov eax, 0x601d32f0
pop edi
pop esi
mov dword [0x601d32f0], eax
mov dword [0x601d32f4], eax
pop ebx
ret
Function at 0x601c5b50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x601d32c4]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x601c5c98
mov ecx, dword [0x601d32c4]
mov edi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push ecx
call edi
mov edx, dword [0x601d32c8]
push 0
push edx
call edi
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push ebx
push eax
push ecx
call fcn.601c5450
mov esi, eax
add esp, 0xc
test esi, esi
je 0x601c5c96
mov edx, dword [0x601d32c4]
push esi
push edx
call edi
mov eax, dword [esp + 0x1c]
or al, 0x84
test ebx, ebx
mov dword [esi + 0xdc], eax
jne 0x601c5be6
push 0x2c
push 1
call sym.nspr4.dll_PR_Calloc
add esp, 8
mov dword [esi + 0x10], eax
test eax, eax
jne 0x601c5bdf
push esi
call fcn.601c5230
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov dword [eax + 0x1c], 0
lea eax, [esi + 0xb4]
push esi
mov dword [esi + 0xb8], eax
mov dword [eax], eax
call fcn.601c71d0
add esp, 4
cmp eax, 0xffffffff
jne 0x601c5c21
mov ecx, dword [esi + 0x10]
push ecx
call sym.nspr4.dll_PR_Free
push esi
mov dword [esi + 0x10], 0
call fcn.601c5230
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov edx, dword [0x601d32c8]
push 0
push edx
call edi
mov eax, dword [0x601d32c8]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
test eax, eax
je 0x601c5c4d
mov ecx, dword [0x601d32d8]
push ecx
call sym.nspr4.dll_PR_Lock
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, 1
cmp ecx, eax
jne 0x601c5c75
mov ecx, dword [esi + 0xdc]
or ecx, eax
mov dword [esi + 0xdc], ecx
mov eax, dword [0x601d3320]
inc eax
mov dword [0x601d3320], eax
jmp 0x601c5c7b
inc dword [0x601d3334]
mov edx, dword [0x601d32c8]
push edx
call edi
test eax, eax
je 0x601c5c96
mov eax, dword [0x601d32d8]
push eax
call sym.nspr4.dll_PR_Unlock
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x601c5cc0
Capabilities:
Set thread local storage value

Disassembly:
push esi
call fcn.601c7410
mov esi, eax
test byte [esi + 0xdc], 8
jne 0x601c5d35
push esi
call fcn.601c3fd0
mov eax, dword [esi + 0x24]
push eax
call sym.nspr4.dll_PR_Free
push esi
mov dword [esi + 0x24], 0
call fcn.601c53e0
push esi
call fcn.601c7360
mov ecx, dword [0x601d32c4]
add esp, 0x10
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xec]
test eax, eax
jne 0x601c5d22
mov edx, dword [esi + 0x10]
push edx
call sym.nspr4.dll_PR_Free
add esp, 4
mov dword [esi + 0x10], 0
lea eax, [esi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
call sym.nspr4.dll_PR_Free
add esp, 4
pop esi
ret