joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004d58
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
mov esi, 0x104
push edi
push esi
push 0x10090704
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
push 0x10090600
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x100904fc
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, 0x10090808
push esi
push ebx
push 0
call edi
mov eax, dword [0x10090b14]
mov ebp, dword [sym.imp.MSVCRT.dll__strlwr]
test eax, eax
je 0x10004db3
push esi
mov esi, 0x10090a10
push esi
push eax
call edi
push esi
call ebp
pop ecx
push ebx
call ebp
push ebx
call fcn.10004dcf
push eax
push 0x1009090c
call sub.MSVCRT.dll_strcpy
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10004f41
Capabilities:
Set file attributes

Disassembly:
push 6
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x10004fd3
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x58], eax
ret

Function at 0x10005aa4
Capabilities:
Accept command line arguments
Delete file
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, str.ServerMain
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x10005aec
add esi, 0xb
push 0
push esi
call dword [sym.imp.MSVCRT.dll__access]
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x10005aec
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x10005ad3
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10005af6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x104], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
leave
ret 8
Function at 0x10005b68
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and byte [ebp - 0x10], 0
push edi
xor eax, eax
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
push dword [ebp + 8]
stosd dword es:[edi], eax
push dword [ebp + 0xc]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
pop edi
jne 0x10005bb7
mov eax, dword [ebp + 8]
shr eax, 0x10
test ax, ax
jne 0x10005baf
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x100090c0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_ExitProcess]
leave
ret 8
Function at 0x401aba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423064]
jne 0x401ac4
repz ret
jmp fcn.00403515
Function at 0x4143f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 8], 0
je 0x414409
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x41440e
jmp 0x41451c
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x140], 0
je 0x414432
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x140]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00401ac9
add esp, 4
mov eax, dword [ebp + 8]
push eax
call fcn.00401b30
add esp, 4
add eax, 1
push eax
call fcn.00401e11
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x140], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x140]
push edx
call fcn.00401bc0
add esp, 8
push 0x41ff04
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x140]
push ecx
call fcn.00402e07
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41451c
mov edx, dword [ebp - 0x20]
mov byte [edx + 0xf4], 1
mov eax, dword [ebp - 4]
push eax
call fcn.004030db
add esp, 4
push eax
call fcn.00402b84
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
push ecx
call fcn.00401e11
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp - 8]
push edx
call fcn.004030be
add esp, 0x10
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov byte [eax], 0
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x20]
add ecx, 0xdc
call fcn.00413f30
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00401ac9
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.004031bb
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x417270
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0xc], 0
je 0x417297
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00401ac9
add esp, 4
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x10], 0
je 0x4172b5
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00401ac9
add esp, 4
mov edx, dword [ebp + 8]
push edx
call fcn.00401cb8
add esp, 4
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00401e11
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.00401d88
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
call fcn.00401cb8
add esp, 4
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00401e11
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.00401d88
add esp, 8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x10]
mov dword [edx + 4], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov dword [ebp - 4], 0x65
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 0x416f10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x1c]
call fcn.00416ee0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4173a6
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4173a8
xor al, al
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001330
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100013d6
mov eax, dword [esi + 0xe0]
mov ecx, eax
and ecx, 0x1002
cmp ecx, 2
je 0x100013f3
cmp dword [esi + 0xf4], 0
jne 0x10001414
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
cmp dword [eax + 0x14], 0
jne 0x1000142b
mov ebx, dword [ebp + 0x10]
xor esi, esi
test ebx, ebx
jg 0x100013a3
mov eax, dword [0x101f4f6c]
cmp dword [eax + 4], 4
jge 0x1000144f
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 0xc]
xor esi, esi
push ebx
mov dword [ebp - 0x10], ecx
push ecx
push edi
call fcn.10001470
add esp, 0xc
test eax, eax
js 0x10001462
add esi, eax
mov ecx, dword [edi + 4]
cmp dword [ecx + 4], 0
jne 0x1000138a
mov ecx, dword [ebp - 0x10]
add ecx, eax
sub ebx, eax
test ebx, ebx
jg 0x100013a8
jmp 0x1000138a
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x1000134d
and eax, 0xfffffffd
mov dword [esi + 0xe0], eax
push 0
push 0xffffe897
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [esi + 0xf4], 0
je 0x10001423
push 0
push 0xffffe89b
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
jmp 0x10001399
mov eax, dword [edi]
mov ecx, dword [eax + 0x20]
call dword [section..00cfg]
xor eax, eax
push 2
push eax
push eax
push edi
call ecx
add esp, 0x10
and edx, eax
cmp edx, 0xffffffff
jne 0x10001381
jmp 0x10001423
push esi
push str.write_____d
call sym.nss3.dll_PR_LogPrint
add esp, 8
jmp 0x10001399
xor esi, esi
dec esi
jmp 0x1000138a

Function at 0x10001470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov esi, dword [0x101f1014]
xor esi, ebp
mov dword [ebp - 8], esi
mov edx, dword [edx + 4]
lea esi, [ebp - 0xc]
push 0
push esi
push ecx
push eax
push dword [edx + 0x18]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x100014b8
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10157a00
mov eax, esi
add esp, 8
pop esi
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.10129ef0
add esp, 4
xor esi, esi
dec esi
jmp 0x100014a6
Function at 0x10001cb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa0
mov edi, dword [ebp + 8]
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [esp + 0x98], eax
cmp dword [0x101f4f80], 0
je 0x10001d68
test edi, edi
je 0x10001d1f
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10001d1f
cmp byte [edi], 0
je 0x10001d1f
push 0x25
push edi
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
jne 0x10001d72
mov ecx, edi
mov edx, esi
call fcn.10001e80
mov esi, eax
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.10157a00
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [0x101f4f80], 0
je 0x10001e6d
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10001d50
mov dword [eax + 0x28], 0xffffe89d
xor ecx, ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
xor esi, esi
dec esi
jmp 0x10001d07
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x10001d3c
call fcn.1001b2f0
jmp 0x10001cdd
push 0x10072d30
push 0x101f441c
call sym.nss3.dll_PR_CallOnce
add esp, 8
test eax, eax
jne 0x10001cfc
test byte [0x101f4428], 1
je 0x10001cfc
xorps xmm0, xmm0
lea ebx, [esp + 4]
movups xmmword [ebx + 0xc], xmm0
xor eax, eax
mov dword [ebx + 0x1c], eax
mov dword [ebx], 4
mov dword [ebx + 4], eax
mov dword [ebx + 8], 1
mov ecx, dword [0x101f461c]
call dword [section..00cfg]
lea eax, [esp + 0x24]
push eax
push ebx
xor eax, eax
push eax
push edi
call ecx
test eax, eax
je 0x10001df2
mov edi, eax
call sym.nss3.dll_PR_GetCurrentThread
mov dword [eax + 0x28], 0xffffe89d
mov dword [eax + 0x2c], edi
mov dword [eax + 0x30], 0
jmp 0x10001d4b
mov edi, dword [esp + 0x24]
mov ebx, dword [edi + 0x18]
lea eax, [esp + 0x28]
push dword [edi + 0x10]
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movzx eax, word [ebx]
cmp eax, 2
je 0x10001e2e
cmp eax, 0x17
jne 0x10001e50
mov word [esi], 0x17
movups xmm0, xmmword [esp + 0x30]
movups xmmword [esi + 8], xmm0
mov eax, dword [esp + 0x40]
mov dword [esi + 0x18], eax
jmp 0x10001e3a
mov word [esi], 2
mov eax, dword [esp + 0x2c]
mov dword [esi + 4], eax
xor esi, esi
mov ecx, dword [0x101f4620]
call dword [section..00cfg]
push edi
call ecx
jmp 0x10001d07
call sym.nss3.dll_PR_GetCurrentThread
mov dword [eax + 0x28], 0xffffe89d
xor ecx, ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
xor esi, esi
dec esi
mov edi, dword [esp + 0x24]
jmp 0x10001e3c
call fcn.1001b2f0
jmp 0x10001d2c
Function at 0x100028c0
Capabilities:
Get socket status
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1012a510

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 8]
cmp edx, 0xb
ja case.default.0x10003a5d
jmp dword [edx*4 + 0x101b8c10]
add edx, 0xfffffff8
mov dword [eax], edx
mov dword [eax + 4], 0
mov word [eax + 0x10], 4
pop esi
pop edi
pop ebp
ret
mov word [eax + 0x10], 1
jmp 0x10003a76
movsx ecx, byte [ecx]
mov dword [eax], ecx
sar ecx, 0x1f
mov dword [eax + 4], ecx
jmp 0x10003a70
mov esi, dword [ecx]
mov ecx, dword [ecx + 4]
bswap esi
bswap ecx
mov dword [eax + 4], esi
mov dword [eax], ecx
cmp edx, 6
je 0x10003a70
mov edx, esi
not edx
and esi, 0xfffff
xor edi, edi
inc edi
or ecx, esi
mov ecx, 8
cmove edi, ecx
test edx, 0x7ff00000
cmovne edi, ecx
mov word [eax + 0x10], di
jmp 0x10003a76
mov dword [eax + 8], ecx
lea ecx, [edx - 0xc]
shr ecx, 1
mov dword [eax + 0xc], ecx
and edx, 1
movzx ecx, word [edx + edx + 0x101b2646]
mov word [eax + 0x10], cx
jmp 0x10003a76
movsx edx, byte [ecx]
mov esi, edx
shl esi, 8
movzx ecx, byte [ecx + 1]
or ecx, esi
sar edx, 0x1f
mov dword [eax + 4], edx
mov dword [eax], ecx
jmp 0x10003a70
mov edx, dword [ecx + 2]
bswap edx
movsx esi, byte [ecx]
shl esi, 8
movzx ecx, byte [ecx + 1]
or ecx, esi
mov dword [eax], edx
jmp 0x10003a8a
movsx edx, byte [ecx]
mov esi, edx
shl esi, 0x10
movzx edi, byte [ecx + 1]
shl edi, 8
or edi, esi
movzx ecx, byte [ecx + 2]
or ecx, edi
jmp 0x10003af2
mov ecx, dword [ecx]
bswap ecx
jmp 0x10003a85
mov word [eax + 0x10], 0x401
xor ecx, ecx
mov dword [eax + 0xc], ecx
mov dword [eax], ecx
jmp 0x10003a76
Function at 0x1001b6c0
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 [0x101f4f80], 0
je 0x1001b750
mov ebx, dword [0x101f45e0]
test ebx, ebx
je 0x1001b72f
mov eax, dword [0x101f45d4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
test eax, eax
je 0x1001b73c
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 [0x101f45e0]
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 0x1001b725
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 [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
mov esi, eax
jmp 0x1001b6f6
call fcn.1001b2f0
jmp 0x1001b6d5

Function at 0x1001b7b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 8], eax
mov esi, dword [0x101f45d0]
test esi, esi
jne 0x1001b7f8
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov esi, dword [esi + 4]
mov dword [0x101f45d0], esi
lea eax, [esi - 1]
bsr eax, eax
xor eax, 0xffffffe0
add eax, 0x21
xor ecx, ecx
cmp esi, 2
cmovae ecx, eax
mov dword [0x101f45cc], ecx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10157a00
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret
Function at 0x1001b990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
xor eax, eax
inc eax
mov dword [ebp - 0x1c], ecx
shl eax, cl
mov dword [ebp - 0x18], eax
dec eax
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
test eax, eax
je 0x1001bb62
mov esi, eax
mov ebx, 0xc
xor edi, edi
call sym.nss3.dll_PR_NewMonitor
mov dword [esi + ebx], eax
test eax, eax
je 0x1001baa0
add ebx, 0x10
dec edi
mov eax, dword [ebp - 0x18]
add eax, edi
jne 0x1001b9cb
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
lea eax, [esi + 4]
mov ecx, eax
test edi, edi
mov ebx, dword [ebp - 0x1c]
je 0x1001ba0a
lea ecx, [esi + 0x14]
mov dword [ecx - 0x10], ecx
add ecx, 0x10
dec edi
jne 0x1001b9fe
add ecx, 0xfffffff0
mov edx, dword [0x101f4fd0]
mov dword [ecx], edx
mov dword [0x101f4fd0], eax
mov eax, dword [ebp - 0x10]
add dword [0x101f4fd4], eax
mov eax, dword [0x101f4fd8]
mov dword [esi], eax
mov dword [0x101f4fd8], esi
mov eax, 4
mov ecx, ebx
shl eax, cl
push eax
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
test eax, eax
je 0x1001bad3
mov ecx, dword [ebp - 0x14]
mov dword [0x101f4fe0], ecx
mov ecx, dword [0x101f4fdc]
mov edx, dword [0x101f4fe4]
test edx, edx
jne 0x1001baef
mov dword [0x101f4fdc], eax
mov esi, dword [ebp - 0x18]
mov dword [0x101f4fe4], esi
mov dword [0x101f4fe8], ebx
push ecx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [0x101f4fa0]
xor edi, edi
cmp dword [eax + 4], 4
jge 0x1001bb3f
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x18]
add eax, edi
je 0x1001b9e6
test edi, edi
je 0x1001bb58
mov eax, edi
neg eax
mov dword [ebp - 0x10], eax
add ebx, 0xfffffff8
push ebx
push esi
call sym.nss3.dll_PR_Realloc
add esp, 8
test eax, eax
cmovne esi, eax
not edi
jmp 0x1001b9ef
mov eax, dword [0x101f4fa0]
cmp dword [eax + 4], 3
jl 0x1001baeb
push str.unable_to_grow_monitor_cache_hash_buckets
call sym.nss3.dll_PR_LogPrint
add esp, 4
xor edi, edi
jmp 0x1001ba96
mov dword [ebp - 0x10], 0
mov esi, dword [ebp - 0x10]
mov edi, dword [ecx + esi*4]
test edi, edi
je 0x1001bb29
mov esi, dword [edi]
mov dword [ebp - 0x14], esi
mov esi, dword [edi + 4]
mov ebx, esi
shr ebx, 2
shr esi, 0xa
xor esi, ebx
and esi, dword [0x101f4fe0]
mov ebx, dword [eax + esi*4]
mov dword [edi], ebx
mov dword [eax + esi*4], edi
mov esi, dword [ebp - 0x14]
mov edi, esi
test esi, esi
jne 0x1001bb00
mov edi, dword [ebp - 0x10]
inc edi
mov esi, edi
mov dword [ebp - 0x10], edi
cmp edi, edx
mov ebx, dword [ebp - 0x1c]
je 0x1001ba67
jmp 0x1001baf6
push esi
push dword [0x101f4fd4]
push str.expanded_monitor_cache_to__d__buckets__d_
call sym.nss3.dll_PR_LogPrint
add esp, 0xc
jmp 0x1001ba96
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor edi, edi
dec edi
jmp 0x1001ba96
Function at 0x1001bcc0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x194
mov eax, dword [0x101f1014]
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 [0x101f440c], edi
mov dword [0x101f4410], edi
mov esi, 0
test ebx, ebx
jne 0x1001be44
test eax, eax
jne 0x1001be5f
test esi, esi
js 0x1001be75
cmp esi, 0x41
jae 0x1001be79
cmp edi, 0x40
jg 0x1001be89
cmp edi, esi
jl 0x1001be8e
call sym.nss3.dll_PR_NewLock
mov dword [0x101f43fc], eax
call sym.nss3.dll_PR_NewLock
mov dword [0x101f4414], eax
push eax
call sym.nss3.dll_PR_NewCondVar
add esp, 4
mov dword [0x101f4418], eax
push 0xfffffffffffffff6
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
call fcn.100024d0
mov esi, eax
test eax, eax
je 0x1001be99
mov dword [esi], 0x101f31b4
mov eax, dword [esi + 4]
mov dword [eax], 0xaaaaaaaa
mov eax, dword [esi + 4]
mov dword [eax + 0x18], edi
mov dword [0x101f4f5c], esi
push 0xfffffffffffffff5
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
call fcn.100024d0
mov esi, eax
test eax, eax
je 0x1001bead
mov dword [esi], 0x101f31b4
mov eax, dword [esi + 4]
mov dword [eax], 0xaaaaaaaa
mov eax, dword [esi + 4]
mov dword [eax + 0x18], edi
mov dword [0x101f4f60], esi
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
call fcn.100024d0
mov esi, eax
test eax, eax
je 0x1001bec1
mov dword [esi], 0x101f31b4
mov eax, dword [esi + 4]
mov dword [eax], 0xaaaaaaaa
mov eax, dword [esi + 4]
mov dword [eax + 0x18], edi
mov dword [0x101f4f9c], esi
mov eax, dword [0x101f4f5c]
mov eax, dword [eax + 4]
xor ecx, ecx
dec ecx
mov dword [eax + 8], ecx
mov eax, dword [0x101f4f60]
mov eax, dword [eax + 4]
mov dword [eax + 8], ecx
mov eax, dword [esi + 4]
mov dword [eax + 8], ecx
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
call fcn.1001bfd0
call fcn.1001bee0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
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 [0x101f440c], esi
jmp 0x1001bd0d
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov edi, eax
mov dword [0x101f4410], eax
jmp 0x1001bd15
xor esi, esi
jmp 0x1001be7e
mov esi, 0x40
mov dword [0x101f440c], esi
jmp 0x1001bd26
mov esi, 0x40
mov dword [0x101f4410], esi
jmp 0x1001bd37
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1001bd87
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1001bdbb
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1001bdef
Function at 0x1001bee0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x98
mov eax, dword [0x101f1014]
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
jne 0x1001bf2d
cmp dword [ebp - 0x94], 1
je 0x1001bf40
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10157a00
add esp, 0x98
pop esi
pop ebp
ret
mov byte [0x101f43f8], 1
jmp 0x1001bf2d