joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10103130
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102133bd
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10282800]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x60], eax
lea eax, [esi + 0x10]
push eax
call fcn.100fb8c0
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [esi]
lea ebx, [esi + 4]
push dword [0x1028dd8c]
mov esi, dword [ebx]
mov dword [ebp - 4], 0
mov dword [ebp - 0x64], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x101031ab
nop dword [eax + eax]
cmp dword [eax], esi
je 0x101031c6
mov eax, dword [eax + 8]
test eax, eax
jne 0x101031a0
push dword [0x1028dd78]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x101031e3
mov eax, dword [eax + 4]
jmp 0x101031e5
cmp dword [eax + 4], 0
je 0x101031ab
nop
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x60]
call fcn.100e5b50
nop
jmp 0x10103268
xor eax, eax
push 8
push 0x78
push eax
push dword [ebp - 0x64]
call fcn.100ed620
add esp, 0x10
mov esi, eax
mov dword [esi + 0x14], 0
lea ecx, [esi + 0x28]
mov dword [esi + 0x18], 0x101118b0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 2
call fcn.100fb850
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x64]
push esi
push ebx
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], edx
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
call fcn.10113870
lea ecx, [ebp - 0x58]
call fcn.101004c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101e3b75
mov esp, ebp
pop ebp
ret
Function at 0x10103ad0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102134f5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x10282800]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx]
lea esi, [ecx + 8]
push dword [0x1028dd8c]
mov edi, dword [ecx + 4]
mov dword [ebp - 0x14], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10103b23
cmp dword [eax], edi
je 0x10103b3b
mov eax, dword [eax + 8]
test eax, eax
jne 0x10103b18
push dword [0x1028dd78]
mov dword [ebp - 0x28], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10103b67
mov eax, dword [eax + 4]
jmp 0x10103b69
cmp dword [eax + 4], 0
je 0x10103b23
nop
mov ecx, dword [esi + 0x24]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x10103bbf
mov eax, dword [ecx]
call dword [eax + 8]
nop
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
push 8
push 0x50
push eax
push dword [ebp - 0x14]
call fcn.100ed620
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
push ecx
push esi
mov ecx, eax
call fcn.100f9f70
mov ecx, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.10113870
lea ecx, [ebp - 0x28]
call fcn.1012e430
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.101e09d3
int3
Function at 0x10107960
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10213abd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x10282800]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x10107b34
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x10], eax
jle 0x10107b2d
nop dword [eax]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ecx + eax*4]
lea eax, [ecx + eax*4]
push 0
push 0xfde9
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jle 0x10107b34
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
cmp edi, 0x7fffffff
ja 0x10107b45
cmp edi, 0x1000
jb 0x10107a3d
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x10107b4a
push eax
call fcn.101e3738
add esp, 4
test eax, eax
je 0x10107b4f
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x10107a48
push edi
call fcn.101e3738
add esp, 4
mov esi, eax
push dword [ebp - 0x14]
add edi, esi
mov dword [ebp - 0x30], esi
push 0
push esi
mov dword [ebp - 0x28], edi
call fcn.101e5b40
add esp, 0xc
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push dword [eax]
mov dword [ebp - 4], 0
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], esi
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x10107aca
mov edx, esi
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
lea eax, [edx + 1]
mov dword [ebp - 0x24], eax
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x10107ab0
sub edx, dword [ebp - 0x24]
push edx
push esi
call fcn.100ce110
mov ecx, dword [ebp - 0x18]
add dword [ecx + 4], 0x18
jmp 0x10107ad6
lea edx, [ebp - 0x24]
push edx
push ecx
mov ecx, eax
call fcn.100e8b30
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10107b1a
cmp edi, 0x1000
jb 0x10107afb
mov eax, dword [esi - 4]
add edi, 0x23
sub esi, eax
add esi, 0xfffffffc
cmp esi, 0x1f
ja 0x10107b4f
mov esi, eax
push edi
push esi
call fcn.101e3768
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x10]
jl 0x101079c0
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.100de3c0
call fcn.100de260
call fcn.101e90af
int3
Function at 0x1010da90
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x15c
mov eax, dword [0x10282800]
xor eax, esp
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0x168]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
xor edi, edi
mov eax, dword [esp + 0x174]
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
mov dword [esp + 0x24], 0xc3d2e1f0
cmp eax, 0x40
jb 0x1010db5a
lea ebp, [eax - 0x40]
nop dword [eax]
lea eax, [edi + 0x40]
cmp edi, eax
jae 0x1010db3d
mov eax, dword [esp + 0x170]
lea esi, [esp + 0x28]
add eax, 2
mov ebx, 0x10
add eax, edi
add edi, 0x40
nop
movzx edx, byte [eax - 2]
lea esi, [esi + 4]
movzx ecx, byte [eax - 1]
lea eax, [eax + 4]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax - 4]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax - 3]
shl edx, 8
or edx, ecx
mov dword [esi - 4], edx
sub ebx, 1
jne 0x1010db10
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.10121210
add esp, 8
cmp edi, ebp
jbe 0x1010daf0
mov eax, dword [esp + 0x174]
mov ebx, eax
mov eax, 0xf
sub ebx, edi
mov dword [esp + eax*4 + 0x28], 0
sub eax, 1
jns 0x1010db63
xor esi, esi
lea ebp, [esi + 3]
test ebx, ebx
je 0x1010dba5
add edi, dword [esp + 0x170]
mov eax, esi
lea edx, [esp + 0x28]
shr eax, 2
mov ecx, ebp
lea edx, [edx + eax*4]
mov eax, esi
and eax, 3
sub ecx, eax
movzx eax, byte [edi + esi]
shl ecx, 3
inc esi
shl eax, cl
or dword [edx], eax
cmp esi, ebx
jb 0x1010db80
mov eax, esi
lea edx, [esp + 0x28]
shr eax, 2
and esi, ebp
sub ebp, esi
lea edx, [edx + eax*4]
shl ebp, 3
mov eax, 0x80
mov ecx, ebp
shl eax, cl
or dword [edx], eax
cmp ebx, 0x38
jb 0x1010dbf1
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.10121210
xorps xmm0, xmm0
add esp, 8
movups xmmword [esp + 0x28], xmm0
movups xmmword [esp + 0x38], xmm0
movups xmmword [esp + 0x48], xmm0
movups xmmword [esp + 0x58], xmm0
mov eax, dword [esp + 0x174]
shl eax, 3
mov dword [esp + 0x64], eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.10121210
mov esi, dword [esp + 0x18]
add esp, 8
mov edx, 0x13
nop word [eax + eax]
mov eax, edx
mov ecx, edx
and eax, 0xfffffffc
not ecx
and ecx, 3
shl ecx, 3
mov eax, dword [esp + eax + 0x14]
shr eax, cl
mov byte [esi + edx], al
sub edx, 1
jns 0x1010dc20
mov ecx, dword [esp + 0x168]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101e3b75
add esp, 0x15c
ret
Function at 0x1010e050
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x24
push esi
push dword [0x1028dd78]
mov esi, ecx
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1010e1a7
cmp dword [eax], esi
je 0x1010e083
mov eax, dword [eax + 8]
test eax, eax
jne 0x1010e073
pop esi
add esp, 0x24
ret
mov esi, dword [eax + 4]
test esi, esi
je 0x1010e1a7
mov eax, dword [esi + 0x28]
sub eax, 0
je 0x1010e161
sub eax, 1
jne 0x1010e1a7
mov dword [esi + 0x28], 2
add esi, 0x2c
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push esi
push eax
call fcn.101e280f
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], vtable.asio::multiple_exceptions.0
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
push eax
movq qword [esp + 0x28], xmm0
call fcn.101e280f
lea eax, [esp + 0x1c]
push eax
call fcn.101e2937
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
mov dword [esp + 0x20], 0
call fcn.101e284c
push 0x10273644
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.101e2826
lea eax, [esp + 0x44]
push eax
call fcn.101e2937
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], vtable.std::exception.0
push eax
call fcn.101e50d1
lea eax, [esp + 0x30]
push eax
push esi
call fcn.101e27ff
lea eax, [esp + 0x38]
push eax
call fcn.101e2937
add esp, 0x38
pop esi
add esp, 0x24
ret
lea eax, [esp + 4]
mov dword [esi + 0x28], 1
push eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.101e284c
lea eax, [esp + 8]
push eax
call fcn.101e285b
lea eax, [esp + 0xc]
push eax
lea eax, [esi + 0x2c]
push eax
call fcn.101e27ff
lea eax, [esp + 0x14]
push eax
call fcn.101e2937
add esp, 0x14
pop esi
add esp, 0x24
ret

Function at 0x1010f270
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, dword [edi]
cmp esi, 0x4cf
jg 0x1010f2a4
je 0x1010f29d
cmp esi, 0x79
je 0x1010f296
cmp esi, 0x4c9
jne 0x1010f2bb
mov esi, 0x274d
jmp 0x1010f2b1
mov esi, 0x274c
jmp 0x1010f2b1
mov esi, 0x2743
jmp 0x1010f2b1
cmp esi, 0x4d0
jne 0x1010f309
mov esi, 0x2751
call fcn.100e0d20
mov dword [edi + 4], eax
mov dword [edi], esi
test esi, esi
jne 0x1010f309
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
jne 0x1010f2d9
call fcn.100e0d20
mov dword [edi], 0x2719
mov dword [edi + 4], eax
pop edi
pop esi
ret
push 0
push 0
push 0x7010
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1010f2f7
mov dword [edi], eax
pop edi
pop esi
ret
call fcn.100e0d20
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
pop edi
pop esi
ret
Function at 0x1010f3b0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0xffffffff
jne 0x1010f3cf
call fcn.100e0d20
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], eax
or eax, 0xffffffff
mov dword [ecx], 0x2719
ret
push edi
push dword [esp + 0x10]
push dword [esp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
test edi, edi
jne 0x1010f3ed
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], eax
ret
push esi
call fcn.100e0d20
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x18]
mov dword [ecx + 4], esi
mov dword [ecx], eax
mov eax, edi
pop esi
pop edi
ret
Function at 0x10111600
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021480d
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x10282800]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ecx + 0x7c]
xor edx, edx
mov esi, dword [ecx + 0x80]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], edx
mov ecx, dword [ebp + 0x30]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x10111663
mov eax, dword [ecx]
lea edx, [ebp - 0x70]
push edx
call dword [eax]
mov edx, eax
mov dword [ebp - 0x4c], edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x14], 0
test edx, edx
je 0x101116b1
lea eax, [ebp - 0x70]
cmp edx, eax
jne 0x101116a7
mov eax, dword [edx]
lea ecx, [ebp - 0x38]
push ecx
mov ecx, edx
call dword [eax + 4]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x101116b1
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x70]
cmp ecx, eax
setne al
push eax
call edx
jmp 0x101116aa
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x4c], 0
push dword [0x1028dd8c]
mov esi, dword [ebp - 0x3c]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x101116d3
cmp dword [eax], esi
je 0x101116f0
mov eax, dword [eax + 8]
test eax, eax
jne 0x101116c8
xor eax, eax
push dword [0x1028dd78]
test eax, eax
setne byte [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x101116f5
mov eax, dword [eax + 4]
jmp 0x101116f7
mov eax, dword [eax + 4]
jmp 0x101116d5
xor eax, eax
push 8
push 0x58
push eax
push dword [ebp - 0x48]
call fcn.100ed620
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x40]
push eax
lea ecx, [esi + 0x20]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x10112190
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
call fcn.100fb9b0
mov ecx, dword [ebp - 0x48]
push dword [ebp - 0x44]
push esi
mov ecx, dword [ecx + 8]
call fcn.10127de0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10111773
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp + 0x30]
mov dword [edi], 0
mov dword [edi + 4], 0x10282038
test ecx, ecx
je 0x10111798
mov esi, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101e3b75
mov esp, ebp
pop ebp
ret 0x2c
Function at 0x101218d0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x18
push esi
push 0
push 0
lea eax, [esp + 0xf]
mov byte [esp + 0xf], 0
push 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 1
push eax
push dword [ecx + 4]
mov dword [esp + 0x24], 0
call dword [sym.imp.WS2_32.dll_WSASend]
call fcn.100e0d20
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop esi
cmp eax, 0x40
je 0x10121924
cmp eax, 0x4d2
jne 0x10121929
call fcn.100e0d20
add esp, 0x18
ret

Function at 0x10121930
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, 0x1028de88
lock xadd dword [ecx], eax
mov ecx, dword [esi + 4]
test eax, eax
push 0
setne al
push ecx
test al, al
je 0x10121983
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
add esp, 8
ret
push method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_56
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
add esp, 8
ret

Function at 0x10123430
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x10]
cmp dword [edi + 0x14], 0xf
jbe 0x10123442
mov edi, dword [edi]
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x10123451
add ecx, dword [eax]
mov eax, dword [eax]
jmp 0x10123453
add ecx, eax
xor esi, esi
cmp eax, ecx
je 0x10123472
sub edi, eax
nop dword [eax + eax]
mov dl, byte [esp + esi + 0x14]
inc esi
xor dl, byte [eax]
and esi, 3
mov byte [edi + eax], dl
inc eax
cmp eax, ecx
jne 0x10123460
pop edi
pop esi
ret 0xc
Function at 0x1012c610
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
mov eax, ecx
push ebp
mov ebp, dword [esp + 0x18]
push esi
cmp byte [eax + 0xd], 0
lea ebx, [eax + 0x48]
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jge 0x1012c662
mov eax, dword [ebx]
xor ecx, ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x1c], edx
test ebp, ebp
je 0x1012c653
nop dword [eax]
mov eax, ecx
and eax, 3
mov al, byte [esp + eax + 0x1c]
xor byte [edi + ecx], al
inc ecx
cmp ecx, ebp
jb 0x1012c640
mov eax, dword [ebx]
mov ecx, ebp
and ecx, 3
je 0x1012c65f
shl cl, 3
ror edx, cl
mov dword [eax + 8], edx
mov eax, dword [ebx]
push ebp
push edi
mov esi, dword [eax]
add esi, 0x38
mov ecx, esi
lea eax, [esi + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov dword [esp + 0x18], eax
call fcn.100de800
mov ebx, dword [ebx]
mov eax, dword [ebx]
cmp dword [eax + 0x50], 1
jne 0x1012c6f9
cmp dword [esi + 0x14], 0xf
mov edx, dword [esp + 0x1c]
mov edx, dword [edx]
jbe 0x1012c69d
mov eax, dword [esi]
mov esi, eax
add edx, eax
jmp 0x1012c69f
add edx, esi
mov eax, dword [esp + 0x10]
add eax, esi
cmp eax, edx
je 0x1012c6f9
nop dword [eax]
cmp dword [ebx + 0xc], 0
movzx edi, byte [eax]
movzx ebp, byte [edi + 0x102211a0]
je 0x1012c6cd
mov esi, dword [ebx + 0x10]
and edi, 0x3f
shl esi, 6
or esi, edi
jmp 0x1012c6d8
mov esi, 0xff
mov ecx, ebp
sar esi, cl
and esi, edi
mov dword [ebx + 0x10], esi
mov ecx, dword [ebx + 0xc]
add ecx, ecx
movzx ecx, byte [ebp + ecx*8 + 0x102212a0]
mov dword [ebx + 0xc], ecx
cmp ecx, 1
je 0x1012c70c
inc eax
cmp eax, edx
jne 0x1012c6b0
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
pop edi
pop esi
sub dword [eax + 0x18], ebp
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 0xc
call fcn.10118d90
mov ecx, eax
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword [eax], 0x10
mov dword [eax + 4], ecx
xor eax, eax
pop ebx
add esp, 8
ret 0xc

Function at 0x1012e190
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x1012e1aa
add ecx, 0x28
call fcn.101004c0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x1012e1ef
push dword [0x1028dd78]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1012e1df
mov edx, dword [eax + 4]
test edx, edx
je 0x1012e1df
xor eax, eax
nop word [eax + eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x1012e1f2
inc eax
cmp eax, 2
jl 0x1012e1d0
push esi
call fcn.101eb4d1
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x78]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x1012e210
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x1012e26c
mov esi, dword [ebx + 0x5c]
test esi, esi
je 0x1012e246
push ebp
or ebp, 0xffffffff
mov eax, ebp
lock xadd dword [esi + 4], eax
jne 0x1012e245
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebp
dec ebp
jne 0x1012e245
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
pop ebp
mov ecx, dword [ebx + 0x54]
add ebx, 0x30
test ecx, ecx
je 0x1012e265
mov edx, dword [ecx]
cmp ecx, ebx
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebx + 0x24], 0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x1012e2af
push dword [0x1028dd78]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1012e29f
mov edx, dword [eax + 4]
test edx, edx
je 0x1012e29f
xor eax, eax
nop dword [eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x1012e2b3
inc eax
cmp eax, 2
jl 0x1012e290
push esi
call fcn.101eb4d1
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
ret
mov al, byte [esi + 0x78]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
ret

Function at 0x1012e2d0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x1012e315
mov esi, dword [ebx + 0x7c]
test esi, esi
je 0x1012e306
push ebp
or ebp, 0xffffffff
mov eax, ebp
lock xadd dword [esi + 4], eax
jne 0x1012e305
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebp
dec ebp
jne 0x1012e305
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
pop ebp
lea ecx, [ebx + 0x28]
call fcn.101004c0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x1012e354
push dword [0x1028dd78]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1012e344
mov edx, dword [eax + 4]
test edx, edx
je 0x1012e344
xor eax, eax
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x1012e358
inc eax
cmp eax, 2
jl 0x1012e335
push esi
call fcn.101eb4d1
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
ret
mov al, byte [esi + 0x90]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
ret