joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10159140
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 8], eax
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov esi, dword [esi + 0x1c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret
Function at 0x10166860
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, edx
mov dword [ebp - 0x18], ecx
mov ebx, dword [ebp + 8]
mov ecx, edx
call fcn.10007e90
cmp eax, 0x10
je 0x1016695a
mov esi, eax
test eax, eax
jne 0x10166961
mov dword [ebp - 0x14], ebx
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x120]
test eax, eax
jne 0x10166961
mov eax, dword [edi + 0x74]
cmp byte [eax + 8], 0
je 0x1016691d
movzx ecx, word [eax + 0x18]
add ebx, ecx
adc dword [ebp - 0x10], 0
movsx ecx, byte [edi + 0x44]
test ecx, ecx
je 0x1016696b
mov word [edi + 0x32], 0
and byte [edi + 1], 0xf9
movzx edx, word [edi + ecx*2 + 0x46]
mov word [edi + 0x46], dx
dec cl
mov byte [edi + 0x44], cl
movsx ecx, cl
mov ecx, dword [edi + ecx*4 + 0x78]
mov dword [edi + 0x74], ecx
mov ecx, dword [eax + 0x48]
call fcn.10157430
movzx ecx, word [edi + 0x46]
mov eax, dword [edi + 0x74]
cmp cx, word [eax + 0x18]
jae 0x101668bd
inc ecx
mov word [edi + 0x46], cx
movzx ecx, word [edi + 0x46]
cmp cx, word [eax + 0x18]
jne 0x1016692f
mov ecx, dword [eax + 0x38]
movzx eax, byte [eax + 9]
add ecx, eax
add ecx, 8
jmp 0x10166943
cmp byte [eax + 1], 0
jne 0x10166905
movzx ecx, word [eax + 0x18]
add ebx, ecx
adc dword [ebp - 0x10], 0
jmp 0x10166905
mov edx, dword [eax + 0x40]
movzx ecx, word [edx + ecx*2]
rol cx, 8
movzx edx, word [eax + 0x1a]
and ecx, edx
add ecx, dword [eax + 0x38]
mov edx, dword [ecx]
bswap edx
mov ecx, edi
call fcn.1000ed10
test eax, eax
je 0x10166899
mov esi, eax
jmp 0x10166961
xor esi, esi
mov dword [ebx + 4], esi
mov dword [ebx], esi
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov ecx, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.10007e90
Function at 0x10168580
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, edx
mov esi, ecx
mov dword [ecx], 0
mov ecx, 0x14
xor edx, edx
call fcn.10143580
test eax, eax
je 0x10168630
mov ebx, eax
cmp byte [0x101ef024], 0
je 0x101685fe
mov ecx, dword [0x101ef120]
test ecx, ecx
je 0x101685cd
call dword [section..00cfg]
push 0xc8
call ecx
add esp, 4
test eax, eax
jne 0x101685fe
mov dword [ebx + 8], edi
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
mov eax, ebx
add eax, 4
xor ecx, ecx
push eax
push ecx
push ebx
push 0x10168a00
push ecx
push ecx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebx], eax
test eax, eax
je 0x101685fe
cmp dword [ebx + 8], 0
jne 0x10168627
jmp 0x1016860b
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [ebx + 4], eax
mov ecx, edi
call dword [section..00cfg]
push dword [ebp + 8]
call edi
add esp, 4
mov dword [ebx + 0x10], eax
mov dword [esi], ebx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 7
jmp 0x1016862b
Function at 0x1017b3b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, edx
mov esi, ecx
mov ebx, dword [ebp + 8]
mov byte [ecx + 0x10], 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push edx
push edx
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
push ecx
call fcn.10020d70
add esp, 0x1c
test ebx, ebx
jne 0x1017b3f1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
push esi
call fcn.10020d70
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1019bbc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor edi, edi
cmp byte [ecx + 0x20], 0
je 0x1019bbef
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, edx
mov ebx, ecx
mov ecx, dword [ebx + 0x1c]
mov eax, dword [esi]
xor ecx, dword [eax + 0x24]
mov edx, dword [ebx + 0x18]
xor edx, dword [eax + 0x20]
or edx, ecx
jne 0x1019bbdb
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x1019bc26
mov edx, esi
call fcn.1019bbc0
test eax, eax
jne 0x1019bd15
mov ebx, dword [ebx + 0x10]
cmp byte [ebx + 0x20], 0
je 0x1019bbf3
jmp 0x1019bbdb
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x20], eax
mov edi, dword [eax + 0x1c]
mov dword [ebp - 0x14], 0
cmp byte [esi + 0x18], 0x79
mov ecx, dword [esi + 4]
je 0x1019bc52
lea eax, [ecx + 0x1f]
add ecx, 0x3e
test eax, eax
cmovns ecx, eax
sar ecx, 5
test edi, edi
je 0x1019bd04
imul ecx, dword [ebx + 0x24]
mov dword [ebp - 0x18], ecx
xor ecx, ecx
mov dword [ebp - 0x1c], esi
movzx ebx, byte [edi]
xor eax, eax
cmp ebx, 2
jb 0x1019bc90
and ebx, 0x80
mov edx, ebx
shr edx, 7
xor edx, 1
add eax, edx
movzx esi, byte [edi + 1]
inc edi
mov edx, esi
and edx, 0xfffffffe
or edx, ebx
mov ebx, esi
jne 0x1019bc70
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 0x44]
mov esi, dword [ebp - 0x24]
cmp edx, dword [esi + 0x18]
mov esi, dword [ebp - 0x1c]
jge 0x1019bcc2
cmp edx, ecx
je 0x1019bcc2
cmp byte [edi], 1
jne 0x1019bd04
movzx ecx, byte [edi + 1]
inc edi
test cl, cl
js 0x1019bcf5
mov dword [ebp - 0x14], ecx
xor eax, eax
inc eax
add edi, eax
cmp ecx, dword [esi + 4]
jl 0x1019bc66
jmp 0x1019bd0b
cmp byte [esi + 0x18], 0x79
jne 0x1019bcd3
mov edx, dword [esi + 0x1c]
add ecx, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
jmp 0x1019bca5
test eax, eax
je 0x1019bca5
xor eax, eax
inc eax
shl eax, cl
lea edx, [ecx + 1]
add ecx, 0x20
test edx, edx
cmovns ecx, edx
mov edx, dword [esi + 0x1c]
sar ecx, 5
add ecx, dword [ebp - 0x18]
or dword [edx + ecx*4], eax
jmp 0x1019bca5
mov ecx, edi
lea edx, [ebp - 0x14]
call fcn.10186b40
mov ecx, dword [ebp - 0x14]
jmp 0x1019bcb9
xor edi, edi
jmp 0x1019bbdb
mov edi, 0x10b
jmp 0x1019bbdb
mov edi, eax
jmp 0x1019bbdb
Function at 0x1019f210
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
mov edi, dword [eax + 0x18]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push 0
push esi
push dword [ebp + 0xc]
push edi
call sub.wsock32.dll_sendto
cmp eax, 0xffffffff
jne 0x1019f282
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x1019f26e
mov ecx, dword [ebx + 4]
cmp dword [ecx + 4], 0
jne 0x1019f26e
mov ecx, edi
mov edx, 2
push dword [ebp + 0x20]
call fcn.1019ed00
add esp, 4
test eax, eax
jns 0x1019f22a
jmp 0x1019f277
push eax
call fcn.101a5720
add esp, 4
xor eax, eax
dec eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov eax, dword [ebx + 4]
cmp dword [eax + 4], 0
jne 0x1019f299
cmp ecx, esi
jge 0x1019f299
mov dword [ebp - 0x10], ecx
jmp 0x1019f256
mov eax, ecx
jmp 0x1019f27a

Function at 0x1019f2a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov esi, dword [eax + 0x18]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call sub.wsock32.dll_recvfrom
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1019f2fe
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x1019f2f5
mov ecx, dword [edi + 4]
cmp dword [ecx + 4], 0
jne 0x1019f2f5
mov ecx, esi
xor edx, edx
inc edx
push dword [ebp + 0x20]
call fcn.1019ed00
add esp, 4
test eax, eax
jns 0x1019f2af
jmp 0x1019f2fe
push eax
call fcn.101a4a30
add esp, 4
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1019faa0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x101f2f50], 0
jne 0x1019fac1
call fcn.100029d0
xor eax, eax
lea ecx, [ebp - 0x24]
mov dword [ecx + 4], eax
mov dword [ecx], 0xc
mov dword [ecx + 8], 1
lea edx, [ebp - 0x18]
lea esi, [ebp - 0x14]
push eax
push ecx
push edx
push esi
call dword [sym.imp.kernel32.dll_CreatePipe]
test eax, eax
je 0x1019fb4d
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
call fcn.100024c0
test eax, eax
je 0x1019fb78
mov edi, dword [ebp + 0xc]
mov dword [eax], 0x101f121c
mov ecx, dword [eax + 4]
mov dword [ecx], 0xaaaaaaaa
mov ecx, dword [eax + 4]
mov dword [ecx + 0x18], ebx
mov dword [esi], eax
mov ebx, dword [ebp - 0x18]
call fcn.100024c0
test eax, eax
je 0x1019fb9c
mov dword [eax], 0x101f121c
mov ecx, dword [eax + 4]
mov dword [ecx], 0xaaaaaaaa
mov ecx, dword [eax + 4]
mov dword [ecx + 0x18], ebx
mov dword [edi], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor ecx, ecx
inc ecx
mov dword [eax + 8], ecx
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [eax + 8], ecx
xor esi, esi
jmp 0x1019fb64
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 0xffffe896
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
push edi
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
mov dword [esi], edi
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x18]
call esi
jmp 0x1019fb61
xor ebx, ebx
push ebx
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
mov dword [edi], ebx
mov esi, dword [esi]
mov eax, dword [esi]
mov ecx, dword [eax + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x1019fb61

Function at 0x101a05e0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp dword [0x101f2544], 0
je 0x101a0657
cmp dword [0x101f2540], 0
je 0x101a0657
mov eax, dword [0x101f2530]
add eax, 0x1c
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [0x101f2548]
mov eax, dword [0x101f2544]
sub ecx, eax
jbe 0x101a0646
mov edx, dword [0x101f2540]
cmp edx, 0xfffffffe
je 0x101a065a
push edx
push ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
push dword [0x101f2540]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
mov eax, dword [0x101f2544]
mov dword [0x101f2548], eax
mov eax, dword [0x101f2530]
add eax, 0x1c
push eax
call sym.nss3.dll__PR_MD_UNLOCK
add esp, 4
pop ebx
pop ebp
ret
mov bl, byte [eax + ecx]
mov byte [eax + ecx], 0
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [0x101f2544]
mov ecx, dword [0x101f2548]
mov byte [ecx], bl
jmp 0x101a0641
Function at 0x101a2970
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
cmp dword [0x101f2f50], 0
jne 0x101a2982
call fcn.100029d0
push dword [0x101f255c]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov eax, dword [0x101f2568]
test eax, eax
je 0x101a29b9
push eax
call dword [sym.imp.mozglue.dll_strdup]
add esp, 4
mov esi, eax
push dword [0x101f255c]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
test esi, esi
jne 0x101a2a03
jmp 0x101a29f2
push str.LD_LIBRARY_PATH
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
mov ecx, str.._lib
cmovne ecx, eax
push ecx
call dword [sym.imp.mozglue.dll_strdup]
add esp, 4
mov dword [0x101f2568], eax
test eax, eax
jne 0x101a2999
push dword [0x101f255c]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x101a3e30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x101f25a0], 0
je 0x101a3e62
mov esi, dword [0x101f259c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x101f25a0], eax
lea ecx, [eax - 1]
bsr ecx, ecx
xor ecx, 0xffffffe0
add ecx, 0x21
xor esi, esi
cmp eax, 2
cmovae esi, ecx
mov dword [0x101f259c], esi
jmp 0x101a3e50
Function at 0x101a44b0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.wsock32.dll_gethostname
test eax, eax
je 0x101a44d5
call sub.wsock32.dll_WSAGetLastError
push eax
call fcn.10128810
add esp, 4
xor eax, eax
dec eax
pop ebp
ret
xor eax, eax
jmp 0x101a44d3

Function at 0x101a4a30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10128810

Function at 0x101a5120
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, eax
xor eax, eax
test ecx, ecx
jne 0x101a5146
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.10128810
add esp, 4
xor eax, eax
dec eax
pop ebp
ret

Function at 0x101a53a0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_MoveFileA]
mov ecx, eax
xor eax, eax
test ecx, ecx
jne 0x101a53c9
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.10128810
add esp, 4
xor eax, eax
dec eax
pop ebp
ret

Function at 0x101a5460
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
mov ecx, eax
xor eax, eax
test ecx, ecx
jne 0x101a5488
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.10128810
add esp, 4
xor eax, eax
dec eax
pop ebp
ret

Function at 0x101a5490
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
lea edi, [ebp - 0x20]
mov dword [edi], eax
lea ebx, [ebp - 0x24]
mov dword [ebx], eax
mov edx, 0x101f1508
push ebx
push edi
call fcn.101a4610
add esp, 8
test eax, eax
je 0x101a54ff
push 0
push esi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
mov esi, eax
xor edi, edi
test esi, esi
jne 0x101a54eb
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.10128810
add esp, 4
xor edi, edi
dec edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0x1c]
mov dword [eax], 0xc
mov edi, dword [ebp - 0x20]
mov dword [eax + 4], edi
mov dword [eax + 8], 0
push eax
push esi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
mov esi, eax
mov ebx, dword [ebp - 0x24]
test edi, edi
je 0x101a5530
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test ebx, ebx
je 0x101a54d3
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x101a54d3

Function at 0x101a5540
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
mov ecx, eax
xor eax, eax
test ecx, ecx
jne 0x101a5566
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.10128810
add esp, 4
xor eax, eax
dec eax
pop ebp
ret
Function at 0x101a5570
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 8]
movaps xmm0, xmmword [0x101b7a50]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LockFile]
sub esp, 0x14
xor esi, esi
test eax, eax
je 0x101a55a2
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
mov dword [esp], eax
call fcn.10128810
mov eax, dword [0x101f2f3c]
xor esi, esi
dec esi
cmp dword [eax + 4], 2
jl 0x101a5599
mov dword [esp + 4], edi
mov dword [esp], str._PR_MD_LOCKFILE___failed._Error:__d
call sym.nss3.dll_PR_LogPrint
jmp 0x101a5599

Function at 0x101a56e0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax + 0x108]
call dword [sym.imp.kernel32.dll_SuspendThread]
pop ebp
ret

Function at 0x101a5700
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax + 0x108]
call dword [sym.imp.kernel32.dll_ResumeThread]
pop ebp
ret

Function at 0x101a5720
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0x2738
jne 0x101a5740
push 0x2738
push 0xffffe89d
call sym.nss3.dll_PR_SetError
add esp, 8
pop ebp
ret
pop ebp
jmp fcn.10128810

Function at 0x101a5750
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 0x273d
je 0x101a576b
cmp eax, 0x2726
jne 0x101a577c
mov ecx, 0xffffe8d5
jmp 0x101a5770
mov ecx, 0xffffe8b0
push eax
push ecx
call sym.nss3.dll_PR_SetError
add esp, 8
pop ebp
ret
pop ebp
jmp fcn.10128810

Function at 0x101a5790
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0x2726
jne 0x101a57b0
push 0x2726
push 0xffffe8b1
call sym.nss3.dll_PR_SetError
add esp, 8
pop ebp
ret
pop ebp
jmp fcn.10128810

Function at 0x101a57c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0x2726
jne 0x101a57e0
push 0x2726
push 0xffffe8d5
call sym.nss3.dll_PR_SetError
add esp, 8
pop ebp
ret
pop ebp
jmp fcn.10128810

Function at 0x101a57f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0x2736
jne 0x101a5810
push 0x2736
push 0xffffe891
call sym.nss3.dll_PR_SetError
add esp, 8
pop ebp
ret
pop ebp
jmp fcn.10128810

Function at 0x101a7e10
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.101a3e90

Function at 0x101a7e80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.101a4470
Function at 0x101a7ff0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push eax
mov esi, dword [ebp + 8]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [0x101f2f50], 0
jne 0x101a8011
call fcn.100029e0
push esi
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x101a8050
mov edi, 0xffffe8ab
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
call sym.nss3.dll_PR_GetCurrentThread
mov dword [eax + 0x28], edi
mov dword [eax + 0x2c], esi
mov dword [eax + 0x30], 0
xor esi, esi
dec esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebp
ret
lea esi, [ebp + 0x10]
lea edx, [ebp + 0xc]
mov ecx, eax
push dword [ebp + 0x14]
push 0
push esi
call fcn.101a8080
add esp, 0xc
mov edi, 0xffffe8aa
xor esi, esi
test eax, eax
jne 0x101a8028
jmp 0x101a803d

Function at 0x101a8350
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
movzx esi, word [ebp + 0xc]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x101f2f50], 0
jne 0x101a8373
call fcn.100029e0
cmp si, 0x17
je 0x101a8381
movzx eax, si
cmp eax, 2
jne 0x101a83c3
push dword [ebp + 8]
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x101a83cc
mov edi, 0xffffe8ab
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
call sym.nss3.dll_PR_GetCurrentThread
mov dword [eax + 0x28], edi
mov dword [eax + 0x2c], esi
mov dword [eax + 0x30], 0
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
mov edi, 0xffffe89d
jmp 0x101a839a
xor ebx, ebx
cmp si, 0x17
sete bl
lea esi, [ebp + 0x18]
lea edx, [ebp + 0x14]
mov ecx, eax
push dword [ebp + 0x1c]
push ebx
push esi
call fcn.101a8080
add esp, 0xc
mov edi, 0xffffe8aa
xor esi, esi
test eax, eax
jne 0x101a839a
jmp 0x101a83af

Function at 0x101ab3e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10155630

Function at 0x101ab830
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x101f2f50], 0
jne 0x101ab841
call fcn.100029e0
pop ebp
jmp fcn.10155630
Function at 0x101ac120
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 8]
cmp dword [0x101f2f50], 0
jne 0x101ac13a
call fcn.100029e0
test esi, esi
je 0x101ac1ae
call sym.nss3.dll_PR_IntervalNow
mov dword [ebp - 0x18], eax
push dword [0x101f2f68]
call sym.nss3.dll_PR_NewCondVar
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, dword [0x101f2f68]
call fcn.10155630
mov edi, eax
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
xor eax, eax
dec eax
mov dword [ebp - 0x10], eax
call sym.nss3.dll_PR_IntervalNow
mov edi, eax
sub edi, dword [ebp - 0x18]
cmp edi, esi
ja 0x101ac1d6
call fcn.10155630
mov edx, dword [ebp - 0x14]
mov ebx, dword [edx]
cmp dword [ebx + 8], eax
jne 0x101ac1dd
mov esi, dword [ebp + 8]
sub esi, edi
mov ecx, eax
push esi
mov esi, dword [ebp + 8]
push ebx
call fcn.101ab1a0
add esp, 8
test eax, eax
je 0x101ac177
jmp 0x101ac1dd
cmp dword [0x101f2f50], 0
jne 0x101ac1bc
call fcn.100029e0
call fcn.10155630
push dword [0x101f2598]
call dword [sym.imp.kernel32.dll_TlsGetValue]
call fcn.101a5690
xor eax, eax
jmp 0x101ac223
mov dword [ebp - 0x10], 0
mov edi, dword [0x101f2f68]
call fcn.10155630
cmp dword [edi + 8], eax
jne 0x101ac200
mov dword [edi + 8], 0
add edi, 0x1c
push edi
call sym.nss3.dll__PR_MD_UNLOCK
add esp, 4
mov esi, dword [ebp - 0x14]
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, dword [ebp - 0x10]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x101ac610
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
call fcn.10155630
mov ecx, dword [0x101f2f6c]
mov dword [0x101f2fc4], ecx
call fcn.101ac590
pop ebp
jmp fcn.10155630
Function at 0x100089d3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10008a12
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10008a12
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10008a12
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10008a12
cmp dword [ecx + 0x74], 0xe
jbe 0x10008a12
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret