joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.10009830
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10009830
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.10009830
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.10009830
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.10009830
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.10009830
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.10009830
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.10009830
push 0xd008
push edi
call fcn.10009830
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.10009830
int3

Function at 0x10009830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1000983f
pop dword [ebp - 0x3c]
mov eax, 0xb95984e8
sub eax, 0xa958eca9
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3311f
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x3046
xor edi, edi
add edi, eax
mov edx, 0xf1f33512
sub edx, 0xe1f1af12
add edx, dword [ebp - 0x3c]
mov esi, 0xceb8728d
add dword [ebp - 0x28], 0x6aa8932f
mov ebx, dword [edx]
xor ebx, esi
add dword [ebp - 0x30], eax
mov dword [edi], ebx
xor dword [ebp - 8], edi
add edi, 0x37405e05
add edi, 0xc8bfa1ff
add edx, 4
loop 0x1000988f
add eax, 0xc3b18f9a
sub eax, 0xc3b0dbaf
mov ebx, eax
add eax, 0xb3b9ed69
add eax, 0x4c46129c
mov ecx, 0xac098cce
add ecx, 0x63f67332
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x412d80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UzBUtnck
lea edi, [esi - 0xe000]
push edi
or ebp, 0xffffffff
jmp 0x412da2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x412da9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412d98
mov eax, 1
add ebx, ebx
jne 0x412dbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x412db0
jne 0x412dcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412db0
xor ecx, ecx
sub eax, 3
jb 0x412de0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x412e52
mov ebp, eax
add ebx, ebx
jne 0x412deb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x412df8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x412e1c
inc ecx
add ebx, ebx
jne 0x412e08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x412dfd
jne 0x412e19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412dfd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x412e3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x412e2d
jmp 0x412d9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x412e3c
add edi, ecx
jmp 0x412d9e
pop esi
mov edi, esi
mov ecx, 0x2ad
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x412e5a
cmp byte [edi], 0
jne 0x412e5a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x412e5f
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x412ece
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x120b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1211c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x412e8c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12124]
or eax, eax
je 0x412ec8
mov dword [ebx], eax
add ebx, 4
jmp 0x412ea9
call dword [esi + 0x12120]
mov ebp, dword [esi + 0x12128]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x412f02
sub esp, 0xffffff80
jmp 0x406f9c

Function at 0x1002195
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xf0
push 4
call fcn.010012b0
test eax, eax
pop ecx
je 0x10021b6
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_void___thiscall_CLASS_DESCRIPTOR::constructor_void_]
jmp 0x10021b8
xor eax, eax
test eax, eax
mov dword [0x1004004], eax
je 0x10021c9
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_CLASS_DESCRIPTOR::Initialize_void_]
lea ecx, [ebp - 0x78]
call fcn.010012ff
lea ecx, [ebp - 0x78]
call fcn.01001cd6
test al, al
je 0x10021ee
lea ecx, [ebp - 0x78]
call fcn.0100133e
test al, al
je 0x10021ee
push dword [ebp + 0x10]
jmp 0x10021f0
push 2
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x40f22e
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x84], edi
jne 0x40f2cb
push edi
xor ebx, ebx
mov dword [esi + 0x84], 2
inc ebx
push ebx
push edi
call dword [sym.imp.kernel32.dll_CreateMutexW]
mov dword [esi + 0x44], eax
test eax, eax
je 0x40f2cb
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x40f2cb
push 4
push 0xffffffffffffffff
push esi
push 0x40f9e5
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.kernel32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40f2cb
lea eax, [esi + 0x20]
cmp dword [eax + 0x14], 8
jb 0x40f296
mov eax, dword [eax]
push dword [esi + 0x38]
push edi
push 0x40
push 0x40
push ebx
push 6
push 0x40080003
push eax
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x40f2cb
push dword [esi + 0x9c]
call dword [sym.imp.kernel32.dll_SetEvent]
test eax, eax
jne 0x40f2d1
mov dword [esi + 0x84], ebx
xor al, al
pop edi
pop esi
pop ebx
ret
mov al, bl
jmp 0x40f2cd

Function at 0x413ca1
Capabilities:
Identify system language via api

Disassembly:
push ebx
mov ebx, ecx
push esi
test dl, dl
je 0x413cb1
call dword [sym.imp.kernel32.dll_GetSystemDefaultLangID]
jmp 0x413cb7
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
xor edx, edx
movzx esi, ax
mov ecx, 0x409
push edi
mov edi, edx
mov eax, ecx
cmp si, ax
je 0x413cdf
inc edi
imul eax, edi, 0x1a
movzx eax, word [eax + 0x438830]
test ax, ax
jne 0x413cc6
mov esi, ecx
jmp 0x413ce2
movzx esi, si
pop edi
cmp cx, si
je 0x413cff
inc edx
imul eax, edx, 0x1a
movzx ecx, word [eax + 0x438830]
test cx, cx
jne 0x413ce3
mov eax, 0x437338
jmp 0x413d07
imul eax, edx, 0x1a
add eax, 0x438832
push eax
mov ecx, ebx
call main
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x41862b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x41863a
pop dword [ebp - 0x1c]
mov eax, 0x55868815
sub eax, 0x554501db
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x4561d
push 0
mov eax, 0xea4f8562
sub eax, 0xea0cc266
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x51e9
mov edi, eax
mov ebx, 0x14ff571
add ebx, 0xfef4928f
add ebx, dword [ebp - 0x1c]
mov esi, 0x49630aac
mov dword [ebp - 0x10], 0xb05bffee
mov edx, dword [ebx]
xor dword [ebp - 0x18], 0x6feb2e5
xor edx, esi
sub dword [ebp - 4], esi
mov dword [edi], edx
add dword [ebp - 0x10], eax
add edi, 0xe56314d3
add edi, 0x1a9ceb31
add ebx, 4
loop 0x41868d
add eax, 0x1f52c83c
sub eax, 0x1f518dc5
mov ebx, eax
add eax, 0xe813692c
add eax, 0x17ec96d9
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x13d0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.013d01a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x13d007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x13d006a
add dl, dl
jne 0x13d0089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x13d00dc
xor eax, eax
add dl, dl
jne 0x13d0096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x13d017d
add dl, dl
jne 0x13d00a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13d00b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13d00bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13d00c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x13d00d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x13d0075
mov eax, 1
add dl, dl
jne 0x13d00ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13d00f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x13d00e1
sub eax, ebx
mov ebx, 1
jne 0x13d0128
mov ecx, 1
add dl, dl
jne 0x13d010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x13d0119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x13d0105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x13d0075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x13d013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x13d014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x13d0136
cmp eax, 0x7d00
jae 0x13d016d
cmp eax, 0x500
jb 0x13d0168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x13d0075
cmp eax, 0x7f
ja 0x13d0170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x13d0075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x13d019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x13d0075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1001204a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x10012059
pop dword [ebp - 0x48]
mov eax, 0x2d87e4dd
add eax, 0xe2793b7c
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3953c
push 0
mov eax, 0x12f4acf5
sub eax, 0x2f21be9
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x467a827d
add ecx, 0xb985c04c
xor ebx, ebx
add ebx, eax
mov edi, 0x10046c00
add edi, dword [ebp - 0x48]
mov edx, 0xbe5d2bca
sub edx, 0xd10a1317
xor dword [ebp - 8], ebx
mov esi, dword [edi]
mov dword [ebp - 0xc], 0x6d3e4f5c
sub esi, edx
xor dword [ebp - 0xc], edx
mov dword [ebx], esi
mov dword [ebp - 0xc], 0x70be2cba
add ebx, 0xad7d737c
sub ebx, 0xad7d7378
add edi, 4
loop 0x100120b4
add eax, 0xfdf7
mov ebx, eax
add eax, 5
mov ecx, 0x937c1589
sub ecx, 0x837c1589
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x408b98
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x408ba7
pop dword [ebp - 0x4c]
mov eax, 0xfc137e16
sub eax, 0xfbd2f26f
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x3fd93
push 0
mov eax, 0xf91dd305
sub eax, 0xf8dc00f1
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x6c7e1bbc
sub ecx, 0x6c7dc9e2
mov esi, eax
mov edx, 0x5d381d7c
sub edx, 0x5cf4bd7c
add edx, dword [ebp - 0x4c]
mov edi, 0x78b9aa70
sub edi, 0x7faa0118
sub dword [ebp - 0x1c], 0x8ebad816
mov ebx, dword [edx]
mov dword [ebp - 0x14], 0x1418edbf
xor ebx, edi
add dword [ebp - 0x44], eax
mov dword [esi], ebx
sub dword [ebp - 0xc], eax
add esi, 4
add edx, 4
loop 0x408c06
add eax, 0xffe60ac4
add eax, 0x1b2f77
xor ebx, ebx
add ebx, eax
add eax, 0x19e6c4eb
sub eax, 0x19e6c4e6
mov ecx, 0x7db913e
sub ecx, 0x79b913e
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x10002790
Capabilities:
Get socket status
Get thread local storage value

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

Function at 0x10002860
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x10002904
mov eax, dword [esi + 0xe0]
mov ecx, eax
and ecx, 0x1002
cmp ecx, 2
je 0x10002921
cmp dword [esi + 0xf4], 0
jne 0x10002942
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
cmp dword [eax + 0x14], 0
jne 0x10002959
mov ebx, dword [ebp + 0x10]
xor esi, esi
test ebx, ebx
jg 0x100028d3
mov eax, dword [0x101de25c]
cmp dword [eax + 4], 4
jge 0x1000297d
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.100029a0
add esp, 0xc
test eax, eax
js 0x10002990
add esi, eax
mov ecx, dword [edi + 4]
cmp dword [ecx + 4], 0
jne 0x100028ba
mov ecx, dword [ebp - 0x10]
add ecx, eax
sub ebx, eax
jle 0x100028ba
jmp 0x100028d8
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x1000287d
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 0x10002951
push 0
push 0xffffe89b
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
jmp 0x100028c9
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 0x100028b1
jmp 0x10002951
push esi
push str.write_____d
call sym.nss3.dll_PR_LogPrint
add esp, 8
jmp 0x100028c9
xor esi, esi
dec esi
jmp 0x100028ba

Function at 0x100029a0
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 [0x101db014]
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 0x100029e8
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 8
pop esi
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.10001070
add esp, 4
xor esi, esi
dec esi
jmp 0x100029d6
Function at 0x10002a00
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 [0x101db014]
xor eax, ebp
mov dword [esp + 0x98], eax
cmp dword [0x101de200], 0
je 0x10002ab8
test edi, edi
je 0x10002a6f
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10002a6f
cmp byte [edi], 0
je 0x10002a6f
push 0x25
push edi
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
jne 0x10002ac2
mov ecx, edi
mov edx, esi
call fcn.10002bd0
mov esi, eax
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [0x101de200], 0
je 0x10002bbf
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10002aa0
mov dword [eax + 0x28], 0xffffe89d
xor ecx, ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
xor esi, esi
dec esi
jmp 0x10002a57
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x10002a8c
call fcn.100745f0
jmp 0x10002a2d
push 0x1014f0f0
push 0x101de02c
call sym.nss3.dll_PR_CallOnce
add esp, 8
test eax, eax
jne 0x10002a4c
test byte [0x101de038], 1
je 0x10002a4c
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 [0x101de248]
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 0x10002b42
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 0x10002a9b
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 ax, 2
je 0x10002b80
cmp ax, 0x17
jne 0x10002ba2
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 0x10002b8c
mov word [esi], 2
mov eax, dword [esp + 0x2c]
mov dword [esi + 4], eax
xor esi, esi
mov ecx, dword [0x101de24c]
call dword [section..00cfg]
push edi
call ecx
jmp 0x10002a57
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 0x10002b8e
call fcn.100745f0
jmp 0x10002a7c
Function at 0x100031c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax + 0x18]
call sub.wsock32.dll_getsockname
mov ecx, eax
xor eax, eax
test ecx, ecx
jne 0x100031e1
pop ebp
ret
call sub.wsock32.dll_WSAGetLastError
push eax
call fcn.1018a210
add esp, 4
xor eax, eax
dec eax
jmp 0x100031df

Function at 0x10003730
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movups xmm0, xmmword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x18]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call sub.wsock32.dll_setsockopt
sub esp, 0x14
mov ecx, eax
xor eax, eax
test ecx, ecx
jne 0x10003760
add esp, 0x14
pop ebp
ret
call sub.wsock32.dll_WSAGetLastError
mov dword [esp], eax
call fcn.10189fa0
xor eax, eax
dec eax
jmp 0x1000375b
Function at 0x100038f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [0x101de200], 0
je 0x10003a0d
mov ebx, dword [ebp + 8]
mov edi, dword [0x101debc4]
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
test eax, eax
je 0x100039e1
lea eax, [edi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [edi + 8], esi
mov edi, dword [ebx + 8]
mov eax, dword [0x101debc4]
mov esi, dword [ebx]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
test esi, esi
je 0x10003966
xor esi, esi
test edi, edi
jne 0x10003a17
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
inc eax
xchg dword [ebx + 4], eax
test eax, eax
jne 0x10003a32
mov ecx, dword [ebp + 0xc]
call dword [section..00cfg]
call ecx
mov esi, eax
mov eax, dword [0x101debc4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100039f8
mov edi, dword [ebp - 0x14]
lea eax, [edi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [edi + 8], eax
mov dword [ebx + 8], esi
mov dword [ebx], 1
mov eax, dword [0x101debc8]
mov dword [esp], eax
call sym.nss3.dll_PR_NotifyAllCondVar
mov eax, dword [0x101debc4]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
jmp 0x1000395c
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
mov esi, eax
jmp 0x1000392a
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
mov dword [ebp - 0x10], eax
jmp 0x100039a1
call fcn.100745f0
jmp 0x10003906
call sym.nss3.dll_PR_GetCurrentThread
mov dword [eax + 0x28], 0xffffe8db
xor ecx, ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov esi, edi
jmp 0x1000395c
mov eax, dword [0x101debc4]
mov dword [esp], eax
call sym.nss3.dll_PR_Lock
cmp dword [ebx], 0
jne 0x10003a5b
mov eax, dword [0x101debc8]
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
call sym.nss3.dll_PR_WaitCondVar
jmp 0x10003a3f
mov esi, dword [ebx + 8]
mov eax, dword [0x101debc4]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
test esi, esi
je 0x10003a88
call sym.nss3.dll_PR_GetCurrentThread
mov dword [eax + 0x28], 0xffffe8db
xor ecx, ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
jmp 0x1000395c
xor esi, esi
jmp 0x1000395c

Function at 0x10003a90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x10
mov esi, dword [ebp + 8]
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x10003ad0
mov ecx, dword [esi]
cmp dword [ecx + 8], eax
jne 0x10003ae2
add ecx, 0x1c
add esi, 0x74
mov dword [esp + 4], ecx
mov dword [esp], esi
call sym.nss3.dll__PR_MD_NOTIFYALL_CV
xor eax, eax
add esp, 0x10
pop esi
pop ebp
ret
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x10003aaf
xor eax, eax
dec eax
jmp 0x10003aca
Function at 0x10003c40
Capabilities:
Read 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 [0x101db014]
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_ReadFile]
test eax, eax
je 0x10003c88
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 8
pop esi
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
je 0x10003c76
push eax
call fcn.10001070
add esp, 4
xor esi, esi
dec esi
jmp 0x10003c76